3efce64519cb2d4caf7a3f8a748cf49ec675cf8c
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
2
3         * ToolStripSplitButton.cs: We can't add in extra width if
4         the button is not AutoSize.  [Fixes bug #401279]
5
6 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
7
8         * PaddingConverter.cs: 
9          - Implement conversion to InstanceDescriptor
10          - Handle "All" in CreateInstance by using the supplied 
11          ITypeDescriptorContext.
12          [Fixes bugs #396076 and #396078]
13
14          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
15          Code contributed under MIT/X11 license.
16
17 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
18
19         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
20         ButtonBase.cs:
21         Add Category attributes.
22         Code is contributed under the MIT/X11 license.
23
24 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
25
26         * Form.cs: 
27          - Fix a NRE when unparenting a form.
28          - Do not recreate or destroy a parented form when 
29         unparenting. 
30
31 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
32
33         * TextBox.cs: Implement basic support for AutComplete with custom
34         sources.
35
36 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
37
38         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
39         DropDownButtonBounds should be from the origin of the button, not the
40         ToolStrip.  [Fixes bug #401279]
41
42 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
43
44         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
45           running gtk_init_check.  This prevents GAIL from loading
46           unnecessarily, which was breaking UIA support.  Initial fix for bug
47           #375987.
48         * Application.cs: Add UIA support to Winforms.  New static constructor
49           uses reflection to initialize UIAutomationWinforms assembly.  Added
50           PreRun event so UIA can initialize before the mainloop starts, and
51           FormAdded event so UIA can provide a11y support for new Forms in an
52           Application.
53
54 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
55
56         * DataGridView.cs: When binding to a dataset, subscribe to table
57         and column change events.  Unsubscribe to these when we clear bindings.
58         [Fixes bug #399601]
59
60 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
61
62         [DataGrid drawing refactory]
63
64         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
65
66         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
67         must be handle by Theme, now it call DataGridPaintColumnHeader.
68
69         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
70         test cases must be also fixed because it checks for wrong size.
71
72         * ThemeWin32Classic.cs: 
73                 - Draw the bottom line of grid caption.
74                 - Prevent to draw caption text when it is empty.
75                 - Use CPDrawBorder3D for 3D efects to simplify code.
76                 - Uses 3D (when not flat) to paint corner shared between row and column
77                 header.
78                 - Fix header drawing issues on win32, now borders are drawing.
79                 - Fix column header paint issues to mimic win32.
80                 - Adjust header drawing for last column, like first one it must be draw
81                 different.
82                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
83                 not an character.
84                 - DataGridPaintColumnHeader created to draw column headers, it also
85                 paint stuff right on Win32.
86                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
87                 class.
88
89         * Theme.cs: 
90                 - DataGridPaintRowHeaderStar method added.
91                 - DataGridPaintColumnHeader method added.
92
93 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
94
95         * Control.cs: Don't reset to Dock style layout if DockStyle is
96         set to none.  [Fixes bug #399316]
97
98 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
99
100         * Win32DnD.cs: Fix the check for control not equal null.
101         Fixes bug #341420 and #381886. 
102
103 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
104
105         * DataGridViewRowCollection.cs: Update the indexes of rows after
106         one has been removed.
107         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
108         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
109         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
110         rows for the Rows collection, or deleting rows from the bound DataSet.
111
112 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
113
114         * DataGridView.cs: Listen to a DataSet's changed event even
115         when autogeneratecolumns is false.  Refactor the changed event's
116         add row code to use the same as the existing add row code.
117         [Fixes bug #399601]
118
119 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
120
121         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
122         much any time the caret moves and there is text, not just when
123         the selection changes as one would think.
124         * RichTextBox.cs: Override RaiseSelectionChanged and fire
125         SelectionChanged.
126         [Fixes bug #397271]
127
128 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
129
130         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
131         instead of trying to duplicate the code.
132         * ListBox.cs: Make method internal so we can send keyboard events.
133         [Fixes bug #398344]
134         
135 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
136
137         * TextBoxBase.cs: When pasting and checking the max length,
138         subtract the selected text length (the text we will be replacing) from
139         the document length.
140         * TextControl.cs: Ensure every character insertion is reflected in
141         charcount, so max length will work properly.
142         [Fixes bug #398605]
143
144 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
145
146         * ListBox.cs: Ensure scrollbars are updated when a single
147         column listbox with an already set top-index is created.
148         [Fixes bug #398342]
149
150 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
151
152         * FontDialog.cs: Typing in the font/style textboxes should search
153         the list boxes case-insensitively.  [Fixes bug #398343]
154
155 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
156
157         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
158         widths of icon and buttons instead of hard coded values.
159
160 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
161
162         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
163         as well as generating a SelectedIndexChanged event, just like .Net does
164         -surprise-.
165         Fixes #398345.
166
167 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
168
169         * ListBox.cs: When navigating items visually, use FocusedItem as the
170         reference point instead of SelectedIndex, since even in
171         SelectionMode.None we need to support navigation, and in that case we
172         just can't use SelectedIndex.
173         Fixes part of #398345.
174
175 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
176
177         * Control.cs: Make a SetBoundsInternal that avoids the new
178         SetBounds code.
179         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
180         SetBoundsInternal instead of SetBoundsCoreInternal.
181
182 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
183
184         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
185         SetBounds for the scrollbars.
186
187 2008-06-10  Andreia Gaita <avidigal@novell.com> 
188
189         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
190           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
191           OnMouseMove, OnMouseOver, OnMouseUp
192         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
193           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
194         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
195           to the WebControl object to pass to new collection objects
196         * HtmlHistory.cs: Implement support for individual window histories.
197         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
198           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
199           GotFocus, LostFocus, OnLoad, OnUnload
200         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
201           ContextMenu
202         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
203           security level changes and context menu event support.
204
205 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
206
207         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
208         as happens with Esc, patch my Andy Hume.
209         Fixes #396294.
210
211 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
212
213         * MdiWindowManager.cs: DrawMaximizedButtons now uses
214         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
215         * Theme.cs: Made MenuButtonSize platform dependent. Added
216         ManagedWindowButtonSize.
217         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
218         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
219
220 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
221
222         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
223         Added support for rendering with VisualStyles.
224
225 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
226
227         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
228         support for rendering the border with VisualStyles.
229
230 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
231
232         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
233         the icon is not shown.
234         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
235         its own logic.
236
237 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
238
239         * InternalWindowManager.cs: Draw minimized windows even if they don't have
240         borders.
241
242 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
243
244         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
245
246 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
247
248         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
249         [Fixes bug #397943]
250
251 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
252
253         * ComboBox.cs: When snaping height -because of IntegralHeight set to
254         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
255         if the requested height leaves the listbox area with *less* than the
256         required are to see one item. We were setting it to PreferredHeight
257         even for values matching the height for a single item.
258         Fixes #396297.
259
260 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
261
262         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
263
264 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
265
266         * DataGridViewCell.cs: Use property instead of field.
267
268 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
269
270         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
271         null checks.
272
273 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
274
275         * Theme.cs: Added #region around the managed window code. Made the managed
276         window methods abstract.
277         * ThemeWin32Classic.cs: Added #region around the managed window code.
278
279 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
280
281         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
282         if it has borders.
283         * ThemeWin32Classic.cs: Removed HasBorders checks in
284         DrawManagedWindowDecorations.
285
286 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
287
288         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
289         Extracted ManagedWindowGetTitleBarIconArea.
290
291 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
292
293         * DataGridViewCellStyle.cs: Don't clone the font.
294
295 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
296
297         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
298
299 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
300
301         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
302         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
303         in 64 bit machines.
304
305 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
306
307         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
308         Use Format/FormatProvider before trying converters.
309         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
310         are 'set'.  Change constructor to not use ApplyStyle since it wants
311         everything applied.  Clone the Font.
312         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
313         ApplyStyle the rest.
314
315 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
316
317         * ListView.cs: We need to calculate the scrollbars even if the handle
318         hasn't been created - this is needed when methods using scrollbars
319         info, such EnsureVisible, are called before control has been created.
320         Fixes #397272.
321
322 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
323
324         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
325         only if the elements are defined. 
326
327 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
328
329         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
330         section. Also, when setting bounds, snap height as well as save the
331         requested height if Dock has any value affecting the height: Left,
332         Right and Bottom - important if using IntegralHeight as true.
333
334 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
335
336         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
337         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
338         instead of doing that only in our SetBoundsCore override, since the 
339         bounds cached can be the same as saved one and we could not get the
340         new height applied.
341         Fixes #396297.
342
343 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
344
345         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
346         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
347         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
348         ToolWindowCaptionButtonSize.
349         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
350
351 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
352
353         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
354         hard coded values.
355         * Theme.cs: Made DoubleClickTime plaform dependent.
356
357 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
358
359         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
360         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
361         ToolWindowCaptionHeight.
362
363 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
364
365         * InternalWindowManager.cs: The adjustment to ensure positive client area
366         sizes is now platform dependent (disabled on Windows).
367         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
368         RequiresPositiveClientAreaSize.
369
370 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
371
372         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
373
374 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
375
376         * InternalWindowManager.cs: Changed IconicSize to use
377         SystemInformation.MinimizedWindowSize.
378         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
379         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
380
381 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
382
383         * ComboBox.cs: If the combobox is anchored both on top and bottom,
384         adjust height if IntegralHeight is true when calling SetBoundsCore (as
385         likely the height was modified even if Height wasn't specified in
386         BoundsSpecified parameter).
387         Fixes part of #396297.
388
389 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
390
391         * InternalWindowsManager.cs: Changed minimum window size while resizing to
392         SystemInformation.MinWindowTrackSize.
393         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
394         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
395
396 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
397
398         * MenuItem.cs: Fixed Dispose.
399
400 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
401
402         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
403         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
404         EnteredHeaderCell, PressedHeaderCell: Added.
405         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
406         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
407         theme a chance to override default painting.
408         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
409         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
410         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
411         ListView and DataGridView header rendering.
412         
413 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
414
415         * RichTextBox.cs: GetPositionFromCharIndex should return the 
416         visual position of the character relative to the viewport.
417         [Fixes part of bug #396664]
418
419 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
420
421         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
422         and not just for the existance of an UITypeEditor. In some cases 
423         there is an editor associated just to do PaintValue, but which 
424         doesn't actually support editing.
425         [Fixes bug #396632]
426
427 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
428
429         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
430         if needed, instead of 0 - this should help us in the corner case where
431         we have more than one item but we are only partially showing 1 item.
432         Fixes part of #374713.
433
434 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
435
436         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
437         control, return immediately if the any parent control's handle hasn't
438         been created or isn't visible, as well as avoiding creating the parent
439         Form if the handle hasn't been previously created.
440         Fixes tests.
441
442 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
443
444         * TableLayoutPanel.cs: Use border sizes when calculating the
445         panel's preferred size.  [Fixes part of bug #396433]
446
447 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
448
449         * SplitContainer.cs:
450          - Fix SplitterDistance to update only if needed. 
451          - Make it force min and max validation.
452          - Handle properly mouse moves outside the resizeable area.
453          [Fixes bug #396232]
454
455 2008-06-02  Andreia Gaita <avidigal@novell.com> 
456
457         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
458           (which also suppresses all popup dialogs). Throw NotSupported
459           exceptions for activex getters/setters.
460         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
461           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
462           StatusText, Version, GoSearch
463         * HtmlDocument.cs: Add DocType support
464
465 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
466
467         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
468         [Fixes bug 396124]
469
470 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
471
472         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
473
474 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
475
476         * TableLayoutPanel.cs: When calculating preferred size, use the
477         actual number of columns and rows, not what the user set them to.
478         [Fixes bug #396141]
479
480 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
481
482         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
483         394311.
484
485 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
486
487         * XplatUIX11.cs: When detecting areas obscured in a control by other
488         toplevel windows while scrolling, return if the control hasn't a 
489         container form.
490         Fixes some tests.
491
492 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
493
494         * XplatUIX11.cs: Properly detect the visible area of a control being
495         scrolled (obscured by other winforms controls and any X toplevel
496         windows), to mark as invalid the requested area to be scrolled that
497         isn't visible and thus can't be copied.
498         Fixes #324513.
499
500 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
501
502         * ListBox.cs: Compute the precise amount to vertically scroll when
503         using DrawMode.OwnerDrawVariable.
504         Patch by jkeymer (j.keymer@gmx.net).
505
506 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
507
508         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
509         to avoid setting an invalid value for the verticall scrollbar 
510         when navigating items. And, duh, also remove my silly debug messages
511         from previous commits.
512         Fixes #374713.
513
514 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
515
516         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
517         make it MS compatible.
518
519 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
520
521         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
522          - Allow the editing of entries even if their parent is read-only.
523          - Do not render expandable properties read-only.
524          - Refactor expansion checks form PropertyGrid into PropertyGrid.
525
526 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
527
528         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
529         support for the hover style.
530
531 2008-05-29  Andreia Gaita <avidigal@novell.com> 
532
533         * ContainerControl.cs: Check for null dead-end when traversing the tree
534           of parent controls.
535         
536           [Fixes #394332, patch by Ernesto Carrea]
537
538 2008-05-29  Geoff Norton  <gnorton@novell.com>
539
540         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
541         constant that it is.  Fixes #393981
542
543 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
544
545         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
546         that the user probably doesn't want to set this.
547
548 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
549
550         * ThemeWin32Classic.cs: Don't let the text size be bigger than
551         the control size for CheckBox/RadioBox.
552         [Fixes part of bug #394645]
553
554 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
555
556         * PropertyGrid.cs: Update the state of the sorting buttons in 
557         the toolbar if PropertySort is set programatically.
558
559 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
560
561         * GridItemCollection.cs: Add multiple items with conflicting names 
562         support and also preserve name ordering.
563         [Fixes #395345]
564
565 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
566
567         * GridItemCollection.cs: Revert my multiple items with same 
568         name patch.
569
570 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
571
572         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
573         or middle ones.
574         Fixes part of #393908.
575
576 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
577
578         * ToolStripDrowDown.cs: When using the Show () methods that have a
579         Control parameter, set the menu owner to that Control.
580         [Fixes bug #394345]
581
582 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
583
584         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
585         [Fixes bug #362756]
586
587 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
588
589         * GridItemCollection.cs: Refactor to support multiple items with the 
590         same name.
591         [Fixes bug #394314]
592
593 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
594
595         * Control.cs: The 2.0 check for illegal cross thread calls in 
596         Control.Handle were throwing an exception when we were getting
597         the Handle in order to invoke correctly.  Created a private
598         version that does not contain this check.
599         [Fixes bug #394531]
600
601 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
602
603         * PropertyGrid.cs: Respect DefaultTabType.
604
605 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
606
607         * ListView.cs: SPACE selects an item.
608         [Fixes bug #393023]
609
610 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
611
612         * ListView.cs: Reset the search string whenever the items are 
613         modified.
614         [Fixes bug #393020]
615
616 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
617
618         * ListControl.cs: For the first added item PositionChanged is fired
619         _before_ ItemChanged, which leave us in a temporary invalid state - so
620         we need to set the selected index from ItemChanged handler *if* we
621         know that the first item has just been added *and* the items have been
622         actually added to the ListControl.
623         Fixes #369048.
624
625 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
626
627         * TabControl.cs: Only clicks with the left button should be
628         handled.
629         Fixes #393908.
630
631 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
632
633         * ComboBox.cs: 
634         * FIleDialog.cs:
635         * TextBox.cs: Expose an internal method in TextBox to restore the
636         original context menu, and call it from ComboBox to re-use it in the
637         combobox containing the file name in FileDialog.cs.
638         Fixes part of #393775.
639
640 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
641
642         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
643         style.
644
645 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
646
647         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
648         down button style.
649
650 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
651
652         * ComboBox.cs: Minor correction to previous patch: PageDown should
653         also *try* to move by one item if the computed offset is negative,
654         just like the PageUp case.
655
656 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
657
658         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
659         should be done for at least 1 item, and not stay at the same item.
660         Fixes part of #374713.
661
662 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
663
664         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
665         directories.  [Fixes bug #393931]
666
667 2008-05-22  Andreia Gaita <avidigal@novell.com> 
668
669         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
670           Don't fire events until the initial about:blank page has finished
671           loading. Clean up events.
672
673 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
674
675         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
676           FocusIn() too. This should fix the issue on switching
677           scim keyboards.
678
679 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
680
681         * X11Keyboard.cs : set XIM font size to somewhat reasonable
682           number (ideally the input textbox size, but that could be
683           too messy).
684
685 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
686
687         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
688         the ToolStripItem's TextChanged.  [Fixes bug #393597]
689
690 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
691
692         * TabControl.cs: When invalidating in SelectedIndex and we need to
693         inflate to take into account the border of the tabs, make sure that
694         the invalidated rect doesn't overflow the control bounds, since that
695         would avoid updating at all.
696
697 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
698
699         * TabControl.cs: Don't substract scroller width from the row width,
700         since we need to take into account the total width of the control when
701         calculating the position of the tabs. This avoids showing scroller
702         when it is actually not needed.
703         Fixes part of #322325.
704
705 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
706
707         * ThemeVisualStyles.cs: Added support for TextBoxBase.
708
709 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
710
711         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
712         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
713
714 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
715
716         * DataGridView.cs: Only paint the top left header cell if there
717         are columns.
718
719 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
720
721         * DataGridView.cs: When binding to a BindingSource, get the underlying
722         list to bind to.  [Fixes bug #345483]
723
724 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
725
726         * DataGridView.cs: Do not bind to collection properties.
727         [Fixes bug #337470]
728
729 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
730
731         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
732
733 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
734
735         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
736         thumb style.
737
738 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
739
740         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
741
742 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
743
744         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
745         background.
746
747 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
748
749         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
750
751 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
752
753         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
754         checked styles.
755
756 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
757
758         * TabControl.cs: Extended to handle the hot style.
759
760 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
761
762         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
763         Extended UpDownBase code to handle hot and disabled styles.
764
765 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
766
767         * DataGridView.cs: Handle databinding to generic list type things.
768         [Fixes bug #325239]
769
770 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
771
772         * DataGridViewCellCollection.cs: Add a method to find the cell
773         with the given DataPropertyName.
774         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
775         * DataGridViewColumnCollection.cs: Add a method to clear all
776         autogenerated columns.
777         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
778         columns.
779         [Fixes bug #348082]
780
781 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
782
783         * DataGridView.cs: Don't try to update the RowTemplate with
784         a null CellTemplate.
785
786 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
787
788         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
789         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
790         * DataGridView.cs: Lots of fixes/enhancements to databinding to
791         a DataSet.
792
793 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
794
795         * Control.cs: Remove invalidating implicit child controls when
796         control is invalidated.  It was causing too many redraws on
797         controls with implicit scrollbars.
798         * ListView.cs: Listen to the Invalidated event and invalidate
799         child controls.
800
801 2008-05-20  Andreia Gaita <avidigal@novell.com> 
802
803         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
804         * HtmlDocument.cs: Check for nulls
805
806 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
807
808         * Control.cs: In ControlCollection.RemoveInternal, remove the
809         internal control before calling PerformLayout and OnControlRemoved,
810         which was leaving us in an invalid state and causing a X error (bad
811         match). Observe that Remove () call has the same order.
812         Fixes an X error changing ComboBoxStyle.DropDownStyle.
813
814 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
815
816         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
817         being fired if ControlStyles.UserPaint style is activated.
818         Fixes #371905.
819
820 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
821
822         * GridEntry.cs: Don't be so strict when setting the value - 
823         do not check if what we set is what we get.
824         [Fixes bug #389245]
825
826 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
827
828         * XplatUIX11.cs: If there are no timers timeout should be 0
829         [Fixes bug #363522]
830
831 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
832
833         * Control.cs: As a followup to invalidating implicit children when
834         a control is invalidated, only invalidate them if they are in the
835         clip rectangle.
836
837 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
838
839         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
840
841 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
842
843         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
844
845 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
846
847         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
848         * XplatUIWin32.cs: Made Win32DeleteObject public.
849
850 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
851
852         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
853         PropertyDescriptor.ShouldSerializeValue.
854         [Fixes bug #391924]
855
856 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
857
858         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
859         in the classic theme.
860
861 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
862
863         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
864         ThumbPressed.
865         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
866         ScrollBarHasPressedThumbStyle.
867
868 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
869
870         * TextRenderer.cs: Included some methods in the 1.1 profile.
871
872 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
873
874         * Control.cs: When we make a control visible, it may have been
875         previously visible and while it wasn't visible, the z-order of
876         things may have been shuffled, so the control needs to have its
877         z-order updated just in case.  [Fixes bug #391518]
878
879 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
880
881         * ThemeVisualStyles.cs: Added support for GroupBox.
882
883 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
884
885         * GroupBoxRenderer.cs: Included in the 1.1 profile.
886
887 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
888
889         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
890           bug #389996; XSelectInput() behaved as mouse handler robber,
891           so remove extra call to it.
892
893 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
894
895         * Control.cs: Simplify ControlCollection.Contains method.
896
897 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
898
899         * DataGridViewRow.cs: Implement GetPreferredSize.
900
901 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
902
903         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
904
905 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
906
907         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
908         painting and edit control fixes.
909
910 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
911
912         * DataGridView.cs, DataGridViewCell.cs: Work around some external
913         checks to make sure we are in an actual row/col for top left header cell.
914         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
915
916 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
917
918         * Control.cs: Use long instead of int when handling WParam from
919         mousewheel scrolling.  Int was overflowing on Win64.
920
921 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
922
923         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
924         flow panel without scrolling first, and then calculate the 
925         scrolling based on the new layout.  [Fixes bug #390149]
926
927 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
928
929         * ListBox.cs: Invalidate after scrolling up when selected index
930         changes.  [Fixes bug #390151]
931
932 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
933
934         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
935         set, default height to 150. I tried first with DefaultSize, but this
936         is not generating a SetBoundsCore call before handle creation time, so
937         we can take it into account. This is just what .net does.
938
939 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
940
941         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
942         as it broke some stuff.  Calberto is filing a bug for eno to
943         work with.
944
945 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
946
947         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
948         to 0 is the current value is -1, and if style is not Simple, just
949         return, like .net does.
950         Fixes part of #374713.
951
952 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
953
954         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
955         progress bar stuffs, use doubles instead of ints to prevent
956         overflow.  [Fixes bug #389798]
957
958 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
959
960         * XplatUIX11.cs, X11Keyboard.cs :
961           Significant refactoring on XIM support. Now IM engine UI
962           should show up, at mostly-correct preedit position.
963           - Eliminated use of FocusWindow, as it is never mapped
964             and hence blocks correct preedit position. XIC is now
965             created per window, and it must be destroyed too when
966             the window is destroyed.
967           - WM_QUIT messages should not be filtered even when hwnd
968             is zombie. Filtering it could cause endless loop.
969           - Preedit position must move only when the window is alive.
970           - Make it IDisposable and make sure to release XIM/XICs.
971
972 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
973
974         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
975           XplatUIX11.cs, XplatUIWin32.cs :
976           fix for bug #325033 and #387693;
977           - WM_QUIT should not be sent when no running application
978             exists.
979           - SetTimer/KillTimer (especially on win32) should be
980             invoked for the window that the timer is/will_be attached.
981           - There could be unattached timers to a window when it's
982             started. For those timers, hold pending timers and when
983             a window is mapped, attach them to it.
984           - WaitForHwndMessage() could run into loop when
985             WM_SHOWWINDOW is handled before this method is called.
986             So, strictly check wm_showwindow state.
987           - Tick handler should not be invoked while one Tick handler
988             call is still running (introduced Busy state).
989
990 2008-05-13  Andreia Gaita <avidigal@novell.com> 
991
992         * WebBrowserBase.cs: Override Internal alternative methods for
993           SetBoundsCore and OnResize instead of the protected ones.
994         * Control.cs: Move SetBoundsCore and OnResize implementations to
995           SetBoundsCoreInternal and OnResizeInternal, so they can be
996           overriden internally (WebBrowserBase needs to catch them but can't
997           override the protected methods without api compat problems)
998
999 2008-05-13  Andreia Gaita <avidigal@novell.com> 
1000
1001         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
1002
1003 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1004
1005         * Binding.cs:
1006         * ListView.cs: Remove debug messages.
1007
1008 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1009
1010         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
1011         area is empty. Also calculate scrollbars in Simple mode based in area
1012         height and total number of items, not in MaxDropDownItems.
1013         Fixes part of #371991.
1014
1015 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1016
1017         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
1018
1019 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1020
1021         * BindingSource.cs: GetListSortDescription is not public.
1022
1023 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1024
1025         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
1026
1027 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1028
1029         * HtmlElement.cs: Fix parameter names to match MS.
1030         * HtmlWindowCollection.cs: Should not be sealed.
1031
1032 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1033
1034         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
1035         button, because the thumb button will not get drawn if the scrollbar
1036         is disabled.  [Fixes bug #389262]
1037
1038 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1039
1040         * ListBox.cs: Handle End key for multi-column listboxen.
1041         [Fixes bug #389266]
1042
1043 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1044
1045         * ListBox.cs: Fix algorithm to determine which column our item is in.
1046         [Fixes bug #389265]
1047
1048 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1049
1050         * ListBox.cs: Invalidate when the listbox is resized.
1051         [Fixes bug #389256]
1052
1053 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1054
1055         * ListBox.cs: There is always at least one row in the ListBox (if
1056         we are doing these calculations.)  [Fixes bug #389253]
1057
1058 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1059
1060         * ListBox.cs: There is always at least one column in the ListBox.
1061         [Fixes bug #389250]
1062
1063 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1064
1065         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
1066         ensure in Simple mode that the height is exactly the requested one.
1067         Also add the ComboBoxListControl to the controls collection in Simple
1068         mode even if handle hasn't been created.
1069         Fixes part of #371991.
1070
1071 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1072
1073         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
1074         our ComboBox owner instead of giving it back to the previous control (
1075         as done in other controls). Also remove the empty override of Select
1076         method, since we want to be selected *and* give focus to our owner.
1077         This should let the user do keys-navigation in Simple mode. 
1078
1079 2008-05-10  Geoff Norton  <gnorton@novell.com>
1080
1081         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
1082         problems with rapid scrolling of treeviews. Fixes #381084
1083
1084 2008-05-10  Geoff Norton  <gnorton@novell.com>
1085
1086         * XplatUICarbon.cs: Deactivate the active window before
1087         activating the desired window.  Completes fixing #386504
1088
1089 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1090
1091         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
1092         SmallChange to the item size width plus the padding, to match .net.
1093
1094 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1095
1096         * FileDialog.cs: Apply the custom filter typed by the user in the file
1097         name combobox as much as possible while navigating in the file dialog.
1098         Fixes #385261.
1099
1100 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1101
1102         * Binding.cs: Actually use NullValue if the retrieved value of
1103         data source is null or DBNull. Makes a test pass.
1104
1105 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
1106
1107         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
1108         * MimeIcon.cs: Provide a way to get icons from resources.
1109
1110 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1111
1112         * Binding.cs: When the value retrieved from the control to be assigned
1113         to the data source is null, actually use the 2.0 DataSourceNullValue
1114         value. Make pass a data binding test.
1115
1116 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
1117
1118         * Control.cs: We need to invalidate implicit children even when
1119         invalidate is called with invalidatechildren = false.  (Implicit
1120         children are really part of the parent.)
1121         * ListView.cs: Double-buffer internal child controls for less
1122         flicker.
1123         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
1124         owner ListView subitems for greatly increased performance.
1125         [Fixes bug #388477]
1126
1127 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
1128
1129         * FileDialog.cs: When the user types a wildcard character in the
1130         filename combobox, update the contents of the folder using the text as
1131         a filter.
1132         Fixes part of #385261.
1133
1134 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
1135
1136         * ListBox.cs: Various fixes for MultiColumn listboxen.
1137         [Fixes bug #388114]
1138
1139 2008-05-08  Andreia Gaita <avidigal@novell.com> 
1140
1141         * HtmlElement.cs: Implement Style property
1142
1143 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
1144
1145         * ListBox.cs: Respect checkboxes when measuring item size.
1146         * ThemeWin32Classis.cs: When drawing list items, don't draw
1147         text outside of the item's bounds to prevent overlapping.
1148         (.Net actually overlaps, but that's just silly.)
1149         [Fixes bug #388117]
1150
1151 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
1152
1153         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
1154         Gert Driesen. Fixes bug #324830. 
1155
1156 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
1157
1158         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
1159         method implemented.
1160
1161 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1162
1163         * BindingSource.cs: When calling IsSynchronized, return the value of
1164         the related IList list.
1165
1166 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1167
1168         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
1169         make a test pass.
1170
1171 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
1172
1173         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
1174         navigation to scroll the grid if the current cell is not visible.
1175
1176 2008-05-07  Andreia Gaita <avidigal@novell.com> 
1177
1178         * HtmlElement.cs: Implement TabIndex
1179
1180 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
1181
1182         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
1183         properties, even when there are no items.
1184         [Fixes bug #387611]
1185
1186 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
1187
1188         * NativeWindow.cs: Add support for multiple handles per window.
1189         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
1190         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
1191         directly - use FromHandle instead.
1192         [Fixes bug #374660]
1193
1194 2008-05-07  Andreia Gaita <avidigal@novell.com> 
1195
1196         * HtmlElement.cs: Implement InnerHTML setter
1197
1198 2008-05-07  Andreia Gaita <avidigal@novell.com> 
1199
1200         * HtmlDocument.cs: Implement Focused
1201
1202 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1203
1204         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
1205         methods, as well as add messages to the exceptions.
1206
1207 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1208
1209         * BindingSource.cs: Setting DataSource should only reset DataMember if
1210         the previous value was null (make pass a not working test).
1211
1212 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1213
1214         * BindingSource.cs: When EndInit call is postponed and is called until
1215         DataSource.EndInit is called, remove the handler for data source.
1216
1217 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
1218
1219         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
1220
1221 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
1222
1223         * ToolStripManager.cs: Store references to toolstrips as
1224         weak references so they do not prevent forms from getting collected.
1225         [Fixes bug #386483]
1226
1227 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
1228
1229         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
1230         on .Net.  So do the same thing in WndProc.
1231
1232 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
1233
1234         * TrackBar.cs: Commit patch from Andy Hume that corrects
1235         the clickable areas to better match .Net.
1236         [Fixes bug #387074]
1237
1238 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
1239
1240         * TrackBar.cs: Commit patch from Andy Hume that adds the
1241         ResizeRedraw control flag so the track bar repaints itself
1242         when it is resized.  [Fixes bug #387072]
1243
1244 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
1245
1246         * TrackBar.cs: Commit patch from Andy Hume that adds better
1247         support for keyboard navigation when the TrackBar is vertical.
1248         [Fixes bug #387071]
1249
1250 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1251
1252         * BindingSource.cs: Implement ISupportInitializeNotification support.
1253
1254 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
1255
1256         * ThemeVisualStyles.cs: Added support for ToolBar.
1257
1258 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
1259
1260         * ToolBar.cs: Made the Vertical property internal.
1261
1262 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
1263
1264         * ThemeVisualStyles.cs: Added support for TrackBar.
1265
1266 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
1267
1268         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
1269         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
1270         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
1271         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
1272         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
1273         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
1274
1275 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
1276
1277         * ThemeVisualStyles.cs: Added support for UpDownBase.
1278
1279 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
1280
1281         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
1282         Extracted Theme.UpDownBaseDrawButton.
1283
1284 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
1285
1286         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
1287         removed from the static toolstrips collection in ToolStripManager
1288         when they are disposed.  Provides a workaround for bug #386483.
1289
1290 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
1291
1292         * GridEntry.cs: Read-only properties with Editor with 
1293         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
1294         [Fixes bug #384184]
1295
1296 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
1297
1298         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
1299         the menu key and there are no items on the menu.
1300         [Fixes bug #386644]
1301
1302 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
1303
1304         * Control.cs: Avoid calling ToString on a string.
1305         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
1306         * GroupBox.cs: In FlatStyle property throw, not just create, the 
1307         exception. Avoid calling ToString on a string.
1308         * ProgressBar.cs: Avoid calling ToString on a string. 
1309         * ScrollBar.cs: Avoid calling ToString on a string. 
1310         [All issues were found using Gendarme]
1311
1312 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
1313
1314         * NotifyIcon.cs: Prevent click events to be trigger after double click 
1315         events. Fixes remaining issues of bug #324832.
1316
1317 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
1318
1319         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
1320         to mimic win32 behavior. Partially fixes bug #324832.
1321
1322 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1323
1324         * BindingSource.cs: Implement Find methods.
1325
1326 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1327
1328         * BindingSource.cs: Implement Sort, ApplySort overloads, and
1329         RemoveSort methods.
1330
1331 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1332
1333         * ListBindingHelper.cs: When calling GetListItemProperties and the
1334         passed object is ITypedList, return the result of
1335         ITypedList.GetItemProperties instead.
1336
1337 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
1338
1339         * LinkLabel.cs: Set default value of name on constructor of Link class
1340         only for 2.0 profile.
1341
1342 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
1343
1344         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
1345         Fixes remaining issues of bug #346154.
1346
1347 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
1348
1349         * LinkLabel.cs: Set a default value for name on internal contructor of
1350         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
1351
1352 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
1353
1354         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
1355         and refer all instances to owner.links. Partially fixes #346154.
1356
1357 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1358
1359         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
1360         length equal zero. Also called CreateLinkPieces in constructor. It fixes
1361         the LinkLabel test 'TestLinkArea'.
1362
1363 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1364
1365         * Form.cs: Remove menu before close form to prevent form to be not gaced.
1366         [Fixes #386460]
1367
1368 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1369
1370         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
1371         [Fixes #386463]
1372
1373 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1374
1375         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
1376         [Fixed bug #357004]
1377
1378 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1379
1380         * MenuAPI.cs: Remove unused ProcessCmdKey method.
1381
1382 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1383
1384         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
1385         [Fixes bug #375398]
1386
1387 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1388
1389         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
1390         of bug #367492.
1391
1392 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1393
1394         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
1395         sometimes we open a conext menu on mouse down of some controls and the mouse
1396         up is dispatched to menu and dont need to. It fix remaining issues of 
1397         #363711 and other problems related to menu mouse click events.
1398
1399 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
1400
1401         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
1402         some var names to better fit changes, now we have month_menu and today_menu
1403         vars. Fixes bug #363711.
1404
1405 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
1406
1407         * MonthCalendar.cs: Handle every right mouse click to open context menu,
1408         right now the default month menu but it will be change to have "Go to today"
1409         menu.
1410
1411 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1412
1413         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
1414
1415 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
1416
1417         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
1418
1419 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1420
1421         * ThemeVisualStyles.cs: Added support for TreeView.
1422
1423 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1424
1425         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
1426         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
1427
1428 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1429
1430         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
1431
1432 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1433
1434         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
1435         Implement 2.0 SP1 stuffs.
1436
1437 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1438
1439         * FileDialog.cs: Implement 2.0 SP1 stuffs.
1440
1441 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1442
1443         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
1444         Implement CanEnableIme property. (2.0 SP1)
1445
1446 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1447
1448         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
1449         from the 2.0 API.
1450
1451 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1452
1453         * Control.cs: Provide an internal way for a control to override
1454         the setting of Height.
1455         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
1456         set height using new method.
1457
1458 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1459
1460         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
1461
1462 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1463
1464         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
1465         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
1466
1467 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1468
1469         * ThemeVisualStyles.cs: Added support for StatusBar.
1470
1471 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1472
1473         * DataObject.cs: Add the other IDataObject interface.
1474
1475 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1476
1477         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
1478         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
1479
1480 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1481
1482         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
1483         * ListView.cs: Hide non-public API.
1484         * MaskedTextBox.cs: Remove extra attribute.
1485
1486 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1487
1488         * DataGridViewImageCell.cs: Use formatted value instead of value
1489         to calculate preferred size.
1490
1491 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
1492
1493         * ListBox.cs: Move some initialization around so that selected_indices
1494         is not accessed before it is created.
1495
1496 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
1497
1498         * InputLanguageCollection.cs: Implement the collection better.
1499         [Fixes bug #385506]
1500
1501 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
1502
1503         * ToolStripDropDownItem.cs: Get the correct event object for
1504         DropDownItemClicked.
1505         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
1506         [Fixes bug #385475]
1507
1508 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
1509
1510         * DataGridViewRowCollection.cs: We don't currently support shared 
1511         rows.  Should fix test failures caused by previous commit.
1512
1513 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
1514
1515         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
1516         datagridview gets set.  Only paint cells in visible columns.
1517         * DataGridViewCell.cs: Draw border after cell content.
1518         * DataGridView.cs: Invalidate after setting some properties.  Only
1519         use visible columns.  Fit hit test bug with areas in the col/row header
1520         area but not in a row or col.  Implement UpdateCell/Row methods.
1521
1522 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
1523
1524         * DataGridViewElement.cs: Don't throw NIEX.
1525         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
1526         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
1527         * DataGridViewCheckBoxColumn.cs: Implement ToString.
1528         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
1529         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
1530         if the user filled in the formatting Value, use it.
1531
1532 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
1533
1534         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
1535         to a string.
1536
1537 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1538
1539         * BindingSource.cs: Some corrections to Filter property, as well as
1540         setting it for our list when resetting it.
1541
1542 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
1543
1544         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
1545         than the maximum.  Fixes reopened bug #384182.
1546
1547 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1548
1549         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
1550         Fixes remaining issues of #367490.
1551
1552 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1553
1554         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
1555         SystemInformation.WorkingArea to get max_screen value.
1556
1557 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1558
1559         * BindingSource.cs: Implement Filter and RemoveFilter.
1560
1561 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1562
1563         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
1564
1565 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1566
1567         * X11Dnd.cs: When trying to convert data and we know we started the
1568         dnd loop, don't try to use the cached data if the loop is not running,
1569         which means that the data has been resetted.
1570         Fixes #378191.
1571
1572 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1573
1574         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
1575         win32 behavior.
1576
1577 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1578
1579         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
1580         it to drawn off screen edge. Fixes bug #367490.
1581
1582 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1583
1584         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
1585         menu position to have only one assignment of Location var.
1586
1587 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1588
1589         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
1590         for this patch. Fixes bug #384115.
1591
1592 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
1593
1594         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
1595         the same.  If LargeChange is zero, set a minimum size for the scroll
1596         thumb grip.  [Fixes bug #384182]
1597
1598 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
1599
1600         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
1601         [Fixes bug #384181]
1602
1603 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
1604
1605         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
1606
1607 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
1608
1609         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
1610         patch from Ernesto).
1611
1612 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
1613
1614         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
1615
1616 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
1617
1618         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
1619
1620 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
1621
1622         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
1623
1624 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
1625
1626         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
1627
1628 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
1629
1630         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
1631
1632 2008-04-27  Andreia Gaita <avidigal@novell.com> 
1633
1634         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
1635           supposed to return a reference to an mshtml interface, which we
1636           don't support).
1637         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
1638           reference to an mshtml interface, which we don't support). Code
1639           formatting cleanup.
1640         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
1641           DomDocument getter (it's supposed to return a reference to an
1642           mshtml interface, which we don't support). Code formatting cleanup.
1643
1644 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1645
1646         * ListView.cs: Ouch, forgot to commit.
1647
1648 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1649
1650         * ListView.cs: 
1651         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
1652
1653 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1654
1655         * ListView.cs: When calculating box selection for virtual mode, don't
1656         look for intersection with item's text, but item bounds, since that
1657         would mean read ListViewItem's text for _every_ item, and that's
1658         something we just can't do in virtual mode (items are only requested
1659         when drawn).
1660
1661 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
1662
1663         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
1664         partial support for managed windows (based on the patch from Ernesto).
1665
1666 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1667
1668         * ListView.cs: When doing a key search use FindItemWithText method
1669         instead of doing the search by ourselves, this way we avoid
1670         duplicating the code and also we handle the special case for virtual
1671         mode. To achieve that make our private overload of FindItemWithText
1672         internal and also have a 'roundtrip' parameter.
1673
1674 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1675
1676         * ListView.cs: When doing the layout don't request the
1677         ListViewItem instance if we are in virtual mode (since we can't request it
1678         until the item is actully drawn).
1679
1680 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
1681
1682         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
1683         from Ernesto).
1684
1685 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
1686
1687         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
1688         the patch from Ernesto).
1689
1690 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
1691
1692         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
1693         * ThemeVisualStyles.cs: Added.
1694
1695 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
1696
1697         * IDeviceContext.cs: Added a missing using.
1698
1699 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
1700
1701         * ButtonBase.cs: Made IsDefault protected internal.
1702         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
1703
1704 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
1705
1706         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
1707         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
1708         RadioButtonRenderer.cs: Included in the 1.1 profile.
1709         * IDeviceContext.cs: Added.
1710         * TextRenderer.cs: Included a member in the 1.1 profile.
1711
1712 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
1713
1714         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
1715
1716 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
1717
1718         * ErrorProvider.cs: Make the error icons come after the control
1719         they refer to.  It isn't the way the MS does it, but its better
1720         than what we were doing.  See bug #368587.
1721
1722 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
1723
1724         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
1725         from Eric Albright that lazy loads the input language as ensures
1726         everything gets properly initialized.  Fixes bug #373871.
1727
1728 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
1729
1730         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
1731         implicit mnemonics.  [Fixes bug #383000]
1732
1733 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1734
1735         * X11Dnd.cs: When canceling the operation, automatically restore the
1736         default cursor - normally the default cursor is restored when the
1737         mouse buttons are released, but we should be able to restore it even
1738         if the buttons are still pressed (for example, when pressing ESC to
1739         cancel).
1740         Fixes #381894.
1741
1742 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1743
1744         * X11Dnd.cs: When starting a new drad and drop operation, set control
1745         field to null, just as the other fields, to avoid calling any
1746         operation on a previous control. Also, when calling DndLeave on a
1747         control, set it to null, thus we don't fire that event multiple times
1748         for that control.
1749         Fixes #209264.
1750
1751 2008-04-23  Geoff Norton  <gnorton@novell.com>
1752
1753         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
1754         the whole_window object.  Fixes #377084.
1755
1756 2008-04-23  Andreia Gaita <avidigal@novell.com> 
1757
1758         * HtmlElement.cs: Implement RaiseEvent (event injection into the
1759           embedded browser)
1760
1761 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
1762
1763         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
1764
1765 2008-04-23  Andreia Gaita <avidigal@novell.com> 
1766
1767         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
1768           invocation
1769
1770 2008-04-23  Andreia Gaita <avidigal@novell.com> 
1771
1772         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
1773           attaching/detaching
1774
1775 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1776
1777         * X11Dnd.cs: When the drop was cancelled, or could just not be
1778         performed, return DragDropEffect.None always (match .net).
1779
1780 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
1781
1782         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
1783
1784 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
1785
1786         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
1787
1788 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
1789
1790         * DataGridView.cs: Add support for error icon tool tips.
1791         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
1792         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
1793
1794 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
1795
1796         * X11Structs.cs: Add mouse button masks enum.
1797         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
1798         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
1799         form resize/move operation instead of for each step of it.
1800         [Fixes bug #346529 for the x11 backend]
1801
1802 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
1803
1804         * DataGridView*: Implement support for drawing error icons.
1805
1806 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
1807
1808         * TreeView.cs: Make vbar and hbar internal.
1809         * TreeNode.cs: If collapsing the node removes one of the TreeView's
1810         scrollbars, invalidate the whole thing.
1811         [Fixes bug #382001]
1812
1813 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
1814
1815         * TreeView.cs: Calling Sort() sets Sorted = true.
1816         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
1817         if the nodes need to be sorted.
1818         [Fixes bug #382028]
1819
1820 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
1821
1822         * Form.cs: Fire SizeChanged for both when the form is minimized and 
1823         restored.
1824         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
1825         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
1826
1827 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
1828
1829         * ComboBox.cs: If the combobox is disabled, draw a disabled
1830         background before painting anything else.
1831         [Fixes bug #381729]
1832
1833 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1834
1835         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
1836         forget to send a Leave event to the target window - just as .net does
1837         when cancelling dnd operations.
1838
1839 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1840
1841         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
1842         soon as possible - this happens when we send the drop message to the
1843         target window. This way we avoid firing any DragOver _after_ drop finished.
1844         Fixes #378179.
1845
1846 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
1847
1848         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
1849         * Form.cs: Handle form minimization as a special state, where size doesn't 
1850         change, but we have to fire SizeChanged.
1851         [Fixes bug #325122 for the win32 and x11 backends]
1852
1853 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
1854
1855         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
1856         if the handle is disabled.
1857         [Fixes bug #371751]
1858
1859 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
1860
1861         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
1862         for forms with FormBorderStyle.None.
1863         [Fixes bug #349571]
1864
1865 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
1866
1867         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
1868         WM_EXITSIZEMOVE.
1869         [Fixes bug #346529 for the X11 backend]
1870
1871 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
1872
1873         * XplatUIX11.cs: 
1874           - Send a mouse Enter message after say dragging the mouse with a 
1875           button down and then release it in another client.
1876           - Reset the cursor to prevent X11 from remembering it and setting it 
1877           before the control gets WM_SETCURSOR.
1878           - Qeueue a mouse move after a mouse enter like win32.
1879           [Fixes bug #323234]
1880
1881 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
1882
1883         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
1884         It's sent when the form gets moved, resized, closed.
1885         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
1886         [Fixes bug #359193 for X11]
1887
1888 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
1889
1890         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
1891         the build.
1892
1893 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
1894
1895         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
1896         group. Fixes the 1.1 build.
1897
1898 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1899
1900         * ListView.cs: Use display indexes for selection in Details view, as
1901         well as do the proper layout based on display indexes for that view
1902         too.
1903
1904 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1905
1906         * ListView.cs: Focused item information is now stored as a display
1907         index, and display indexes are used all over the place for selection,
1908         instead of ListViewItem.Index values, which doesn't give us enough
1909         information to modify the selection in groups mode, and was broken.
1910
1911 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
1912
1913         * Control.cs: Do not fire MouseDown if validation of the control has 
1914         failed.
1915         * Form.cs: Validate the form before closing.
1916         [Fixes bugs #330501 and #353310]
1917
1918 2008-04-18  Andreia Gaita <avidigal@novell.com> 
1919
1920         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
1921           CreateWebBrowserSiteBase implementations
1922         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
1923           Style and TabIndex setters
1924
1925 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1926
1927         * ListViewGroup.cs: When returning the actual item count, return the
1928         proper count for default group.
1929         Fix the tests.
1930
1931 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1932
1933         * ListView.cs:
1934         * ListViewGroup.cs: When calculating groups layout, get the actual
1935         number of items per group, since groups added to the group BUT not
1936         added to the ListView are just ignored, and can cause some nasty
1937         exceptions because of the lack of synchronization. Also for
1938         ListViewGroup don't use lazy initialization for items, since we 
1939         the common scenario is to use it always - and it helps us to  refactor
1940         and clean the .ctor overloads.
1941
1942 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1943
1944         * ListView.cs: When adding an item to a ListViewItemCollection
1945         belonging to a group (ListViewGroup.Items), don't generate a redraw if
1946         the added item hasn't beeen previously added to the ListView instance
1947         refered by the group, since it will be ignored. This should avoid some 
1948         really nasty flickering.
1949
1950 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1951
1952         * ListView.cs: When accessing an item in a specific display
1953         position, use the helper method GetItemAtDisplayIndex, instead of
1954         direct access to the reordered_items_indices array. When doing layout
1955         for groups set the correct Items index for the display position (since
1956         in groups mode items don't have the same position as in Items
1957         collection).
1958         * ListViewGroup.cs: Add a field to store the starting item number,
1959         which is later used when calculating the layout.
1960
1961         Fixes #360805.
1962
1963 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
1964
1965         * Application.cs: Fixed ProductVersion to fallback to the assembly
1966         version. Fixes regression for bug #325413.
1967
1968 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1969
1970         * ListView.cs: New helper method to retrieve an item in a _specific
1971         display_ position (the items can be displayed in a different order
1972         than one of Items collection).
1973         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
1974         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
1975         specific display position (again remember that items can be sorted
1976         different than Items).
1977
1978 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
1979
1980         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
1981         list and update it when the collection changes.  We were recreating
1982         this several times per row paint and for every pixel the mouse moved
1983         across the grid.
1984         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
1985         changes.
1986
1987 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
1988
1989         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
1990         list to use generics.
1991         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
1992         and remove unneccessay casts.
1993
1994 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
1995
1996         * DataGridViewBand.cs: Add internal way to set displayed variable.
1997         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
1998         * DataGridView.cs: Make sure we always keep track of Displayed
1999         rows and columns, and only draw things that are displayed.
2000
2001 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
2002
2003         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
2004           whether the key events are filtered or not. Introduced
2005           PreFilter() process for this purpose. This fixes atokx3/iiimx
2006           shift state issue.
2007
2008 2008-04-16  Andreia Gaita <avidigal@novell.com> 
2009
2010         * HtmlHistory.cs: Implement Length property
2011
2012 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
2013
2014         * DataGridView.cs: Call EndEdit when a sort is performed so we take
2015         away the edit textbox.  Refactor to reuse column sort code.
2016
2017 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
2018
2019         * MenuAPI.cs: Remove the code that save and restore capture status of 
2020         grab_control, this fixes some Menu and Context menu bugs but maybe it can
2021         cause some others, I cant figure the possible problems of this patch but
2022         right now remove the code looks to be better than keep it. This patch fixes
2023         bugs #357638, #378721 and #379570.
2024
2025 2008-04-12  Andreia Gaita <avidigal@novell.com> 
2026
2027         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
2028         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
2029         add missing properties and event handlers.
2030         
2031 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
2032
2033         * ListBox.cs: Make sure the LargeChange we are setting is at least
2034         zero, to prevent an IOORE.  [Fixes bug #379531]
2035
2036 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
2037
2038         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
2039         in DropDownList mode, for each key-press select the next item 
2040         starting with that letter.
2041         For other modes, when no item selected, on arrow-up/-down and open 
2042         drop-down select the first item matching the text in the textbox.
2043
2044 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
2045
2046         * X11Keyboard.cs : Control.FromHandle() could return null
2047           in MoveCurrentCaretPos().
2048
2049 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2050
2051         * ListView.cs: When changing the size in VirtualMode, also Reset the
2052         selection.
2053         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
2054         changing selection info for VirtualMode.
2055         Fixes #372618.
2056
2057 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2058
2059         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
2060         view, don't use LineLimit for the first item - use NoWrap *always*
2061         instead, since ListView.LabelWrap is not used for this view.
2062         Fixes #378054.
2063
2064 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2065
2066         * Binding.cs: Call UpdateIsBinding when setting control - probably
2067         Binding is already usable and we don't need to wait to check the
2068         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
2069         Created, just like 2.0 does.
2070         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
2071
2072 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2073
2074         * Binding.cs: Just realized we don't need to have a handler for
2075         BindingContextChanged, since this info should be now consumed directly
2076         in the BindingManagerBase. And also, the manager.IsBindingSuspended
2077         state info is checked directly, instead of caching it.
2078
2079         * CurrencyManager.cs: IsSuspended should return always false if Count
2080         == 0.
2081
2082 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2083
2084         * Binding.cs: When calling PushData, return if manager.Count == 0,
2085         since we just don't have data to be read. Also, when setting the
2086         Control for binding, hook up some events to refresh the IsBinding
2087         state when BindingContext change or control gets created; use
2088         Control.IsHandleCreated instead of Control.Created check to set
2089         IsBinding state - we *actually* need to modify IsBinding when control
2090         is created, but we don't have any Created event, only HandleCreated.
2091         Fixes part of #349364.
2092
2093 2008-04-11  Geoff Norton  <gnorton@novell.com>
2094
2095         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
2096         warping a null Caret.
2097
2098 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
2099
2100         * DataGridView.cs: Implement row/column autosizing methods. Implement
2101         autosorting.
2102         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
2103         * DataGridViewRowCollection.cs: Add an internal sorting method.
2104
2105 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
2106
2107         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
2108         value in ListView drawing code.
2109
2110 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
2111
2112         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
2113         is clicked.  Respect the user setting Cancel in FileOk.
2114
2115 2008-04-11  Geoff Norton  <gnorton@novell.com>
2116
2117         * ListView.cs: Avoid setting and resetting control Width/Heights and
2118         calculate the final value and set it once.  Prevents a feedback loop
2119         on the mac.
2120
2121 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
2122
2123         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
2124         [Fixes bug #378869]
2125
2126 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
2127
2128         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
2129           Add some on-the-spot code, but it seems we don't need it.
2130
2131 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
2132
2133         * Form.cs: Add method for DataGridView to trigger focus cues
2134         even when it handles the tab keypress.
2135
2136 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
2137
2138         * DataGridView.cs: More keyboard handling, tab, esc.
2139         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
2140         when at the beginning or end of the text in the text box.
2141
2142 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
2143
2144         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
2145
2146 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
2147
2148         * DataGridView.cs: Some fixups for showing and adding the edit control.
2149         * DataGridViewButtonColumn.cs: Implement ToString.
2150         * DataGridViewCell.cs: Size and position the control simultaneously.
2151         * DataGridViewTextBoxCell.cs: Use base to position control.
2152
2153 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
2154
2155         * DataGridViewCell.cs: Fix up some formatting and painting code.
2156         * DataGridViewImageCell.cs: Implement some NIEX methods.
2157
2158 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
2159
2160         * ToolStripItemCollection.cs: What moving an item from one owner
2161         to another, remove from source owner before adding to destination.
2162         [Fixes bug #378109]
2163
2164 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
2165
2166         * PictureBox.cs: Call Load when ImageLocation is set.
2167         [Fixes bug #378308]
2168
2169 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
2170
2171         * X11Keyboard.cs, XplatUIX11.cs :
2172           Implement over-the-spot mode (with some odd offsets).
2173           - set preedit position when caret is set.
2174           - Wrap XMoveResizeWindow() to move preedit position.
2175
2176 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
2177
2178         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
2179         array lenght.
2180
2181 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
2182
2183         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
2184         and ScanTableIndex public, it fix compilations errors when compiling
2185         WinForms to generate keyboard layout resources.
2186
2187 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
2188
2189         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
2190         different element count than scan table. It prevents some errors in non
2191         standard keyboards.
2192
2193 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
2194
2195         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
2196
2197 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
2198
2199         * DataGridView.cs: Call OnContentClick.
2200         * DataGridViewCell.cs: Do a null check on ValueType instead
2201         of valueType.
2202         * DataGridViewCheckBoxCell.cs: Implement.
2203
2204 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
2205
2206         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
2207
2208 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
2209
2210         * X11Keyboard.cs : Check XGetIMValues() return value in
2211           case it does not return input styles in some environment.
2212
2213 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
2214
2215         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
2216
2217 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2218
2219         * BindingContext.cs: Stub UpdateBinding method.
2220
2221 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
2222
2223         * X11Structs.cs : added couple of structs for XIM support.
2224         * X11Keyboard.cs :
2225           Release XIM in case it failed to create XIC. 
2226           Use consts for XNblah string.
2227           Add support for IM style customization and XIC creation
2228           for preedit-position and preedit-callback.
2229           Right now use MONO_WINFORMS_XIM_STYLE environment variable
2230           (list of: over-the-spot | on-the-spot | root). Only root
2231           mode works so far.
2232
2233           (redoing r99172 with fix.)
2234
2235 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
2236
2237         * TreeView.cs: Center the checkbox a little better.
2238
2239 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
2240
2241         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
2242         Apply very nice patch from Ernesto Carrea that simplifies our
2243         scrollbar drawing.  [From bug #376146]
2244
2245 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
2246
2247         * TreeView.cs: Correct the location of the root node checkbox when
2248         ShowRootLines = false.  Don't draw the root lines for the root node
2249         when ShowRootLines = false.  [Fixes bug #377535]
2250
2251 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
2252
2253         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
2254         Fixed line endings.
2255         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
2256         line endings.
2257         * MaskedTextBox.cs: Added missing attribute. Code formatting.
2258         * PageSetupDialog.cs: Added missing attribute. Code formatting.
2259         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
2260         * ImeMode.cs: Added missing field.
2261         * HtmlWindow.cs: Code formatting. Fixed line endings.
2262         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
2263         warnings.
2264         * HtmlHistory.cs: Code formatting. Fixed line endings.
2265         * HtmlDocument.cs: Code formatting. Fixed line endings.
2266         * ToolStripPanel.cs: Added missing IList implementation.
2267         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
2268
2269 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
2270
2271         * BindingContext.cs: Changed argument names to fix corcompare errors.
2272         * DataGridView.cs: Removed extra explicit interface implementation
2273         of IDropTarget. Code formatting.
2274         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
2275         * ComboBox.cs: Changed argument names to fix corcompare errors.
2276         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
2277         errors.
2278         * GridColumnStylesCollection.cs: Changed argument names to fix
2279         corcompare errors. Removed extra tabs.
2280         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
2281         errors.
2282         * Control.cs: Changed argument names to fix corcompare errors. Code
2283         formatting. Removed extra explicit IList implementation.
2284         * TextBox.cs: Changed argument names to fix corcompare errors. Code
2285         formatting. Use string.Empty instead of "".
2286         * GridItemCollection.cs: Changed argument names to fix corcompare
2287         errors. Code formatting.
2288         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
2289         corcompare errors. Code formatting.
2290         * ImageList.cs: Changed argument names to fix corcompare errors.
2291         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
2292         * DataGridViewRowCollection.cs: Changed argument names to fix
2293         corcompare errors. Code formatting.
2294         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
2295         * DataGridViewSelectedCellCollection.cs: Changed argument names to
2296         fix corcompare errors. Code formatting.
2297         * DataGridViewComboBoxCell.cs: Changed argument names to fix
2298         corcompare errors. Code formatting.
2299         * LinkLabel.cs: Changed argument names to fix corcompare errors.
2300         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
2301         formatting.
2302         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
2303         Code formatting.
2304         * BindingSource.cs: Changed argument names to fix corcompare errors.
2305         Removed extra explicit interface implementations.
2306         * DataGridViewSelectedRowCollection.cs: Changed argument names to
2307         fix corcompare errors. Code formatting.
2308         * ToolStripItemCollection.cs: Removed extra explicit interface
2309         implementation of IList.ReadOnly.
2310         * DataGridViewColumnCollection.cs: Changed argument names to fix
2311         corcompare errors. Code formatting.
2312         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
2313         * ListView.cs:  Changed argument names to fix corcompare errors.
2314         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
2315         errors.
2316         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
2317         errors.
2318         * ListBindingHelper.cs: Changed argument names to fix corcompare
2319         errors.
2320         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
2321         fix corcompare errors. Code formatting.
2322         * ToolStripPanel.cs: Removed extra explicit implementation of
2323         IDropTarget interface.
2324         * ListBox.cs: Changed argument names to fix corcompare errors. Code
2325         formatting. Removed extra tabs and spaces.
2326         * DataGridViewCellCollection.cs: Changed argument names to fix
2327         corcompare errors.
2328         * Help.cs: Changed argument names to fix corcompare errors. Code
2329         formatting.
2330         * TabControl.cs: Changed argument names to fix corcompare errors.
2331         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
2332         errors.
2333         * TableLayoutSettings.cs: Changed argument names to fix corcompare
2334         errors.
2335
2336 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2337
2338         * ListBindingHelper.cs: When returning properties, only return those
2339         that are browsable. Also, don't do a linear search of the properties,
2340         but use the indexer of the PropertyDescriptorCollection class.
2341
2342 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2343
2344         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
2345         Dictionary containing the related (child) currency managers. Also,
2346         when setting DataSource, add datasource to our List if it is not a list.
2347
2348 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
2349
2350         * PropertyGridTextBox.cs: Fix background color of the buttons.
2351         * PropertyGridView.cs: Make the entry less jumpy.
2352
2353 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
2354
2355         * PropertyGrid.cs: Fix unused variable warnings.
2356
2357 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
2358
2359         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
2360         double-click. It expanded it once in the mouse down and then 
2361         again in the double-click handler.
2362
2363 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
2364         
2365         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
2366         TypeConverter and UITypeEditors.
2367
2368 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
2369
2370         * Control.cs: Visibility should be set synchronously, 
2371         so we must also redraw once it is and not rely on layouting or 
2372         other code to repaint.
2373         [Fixes bug #339898]
2374
2375 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
2376
2377         * DataGridViewCell.cs: Respect DataGridView.GridColor.
2378
2379 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
2380
2381         * Control.cs: Invalidate when the alpha channel is less than 255,
2382         not only when control is transparent.
2383
2384 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
2385
2386         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
2387         Implement some painting convenience methods that threw NIEX.
2388
2389 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
2390
2391         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
2392         * DataGridViewLinkCell.cs: Implement.
2393
2394 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
2395
2396         * GridEntry.cs: Report the conversion exception error description.
2397         [Fixes bug #375792]
2398
2399 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
2400
2401         * PropertyGridView.cs: Do not scroll to item on resize.
2402         [Fixes bug #375789]
2403
2404 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2405
2406         * BindingContext.cs: When retrieving a BindingManagerBase, if the
2407         dataSource parameter is ICurrencyManagerProvider, then return
2408         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
2409         instead of creating a new one.
2410
2411 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2412
2413         * BindingSource.cs: Implement support for Type instances as
2414         DataSource.
2415
2416 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
2417
2418         * DataGridView.cs: Minor cleanups and call CellMouseUp.
2419         * DataGridViewCell.cs: Make some painting routines internally virtual.
2420         * DataGridViewButtonCell.cs: Implement.
2421
2422 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
2423
2424         * Control.cs: We always need to invalidate our children with
2425         transparent backgrounds when we are invalidated.
2426         [Fixes bug #376081]
2427
2428 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2429
2430         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
2431         and CancelCurrentEdit on CurrencyManager respectively. Implement
2432         support for ICancelAddNew too.
2433
2434 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2435
2436         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
2437         call EndNew/CancelNew if list is ICancelAddNew.
2438
2439 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
2440
2441         * DataGridView.cs: Guard against an exception while painting
2442         if there are no rows.
2443
2444 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
2445
2446         * DataGridView.cs: Implement a bunch of keyboard commands.
2447
2448 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
2449
2450         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
2451         isn't set, don't call OnPaint.  [Fixes bug #375300]
2452
2453 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2454
2455         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
2456         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
2457         hookup the remaining events related to CurrencyManager, and fire
2458         OnListChanged also for the Clear () method.
2459
2460 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2461
2462         * BindingSource.cs: Use Current and Position implementations in
2463         CurrencyManager instead of using our own routines, since we need 
2464         to be in synch with it. Count should NEVER return a -1 value, and 
2465         also report ListChanged events for both simple IList data 
2466         sources (manually) as well for IBindingList ones (by hooking up an
2467         event handler for it).
2468
2469 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2470
2471         * BindingSource.cs: Make one .ctor call the another, to avoid
2472         duplicate code. Add the CurrencyManager property, and also for AddNew
2473         throw the proper exceptions and show better error messages.
2474
2475 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
2476
2477         * ComboBox.cs: Only adjust selectedindex if Handle has been
2478         created.  Fixes failing test.
2479
2480 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
2481
2482         * ComboBox.cs: Adjust selectedindex if we insert a new item
2483         above the current selectedindex in a sorted ComboBox.
2484         [Fixes bug #374654]
2485
2486 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
2487
2488         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
2489         [Fixes bug #374712]
2490
2491 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
2492
2493         * DataGridViewTextBoxCell.cs: Implement stuffs.
2494
2495 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
2496
2497         * TreeView.cs: Create the scrollbars even earlier to be
2498         double dog certain they are created before they are accessed.
2499
2500 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
2501
2502         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
2503
2504 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
2505
2506         * ScrollBar.cs: Create an internal safe Value setter so we
2507         won't crash if we try to set a value outside the min and max.
2508         * TextBoxBase.cs: Use safe value setter to guard against a
2509         potential NRE that is being reported by Reflector.
2510
2511 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
2512
2513         * TreeView.cs: Create the scrollbars earlier in the constructor
2514         to attempt to guard against an NRE in SetTop in Reflector.
2515
2516 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
2517
2518         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
2519         DataGridViewRowCollection.cs: Do not scroll column and row headers,
2520         show messagebox on data format error, use column display index
2521         correctly, make sure HitTest supports new layout stuff,
2522         make sure scrollbars support new layout stuff.
2523
2524 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
2525
2526         * XplatUIX11.cs : Patch by Doug Rintoul.
2527           For some IM engines, keypress events need to delay call
2528           to XPending() and XNextEvent() in the loop so that it
2529           does not mess the orders in XIM commit callback.
2530           Some KeyRelease events such as shift keys need to be
2531           processed both in the IM engine and winforms driver
2532           itself since winforms holds its own state check.
2533
2534           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
2535
2536 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
2537
2538         * X11Keyboard.cs, XplatUIX11.cs :
2539           add primitive support for XIM input support (preedit-
2540           nothing and status-nothing). It requires precise event
2541           capturing (XSelectInput/"filterEvents") and different
2542           call to XFilterEvent against root window.
2543           Get composed string and send dummy WM_IME_COMPOSITION.
2544           Free XIM and XIC instances in finalizer.
2545
2546           (This first patch does not include suggested changes
2547            by Doug Rintoul. It will follow.)
2548
2549 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
2550
2551         * DataGridView.cs: When binding to a property, if the property
2552         doesn't have a setter, set the column to readonly.
2553         [Fixes bug #343965]
2554
2555 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
2556
2557         * ComboBox.cs: Guard against NRE if an arrow key is hit while
2558         we aren't dropped down.  Support Home/End in DropDownList mode.
2559         [Fixes bug #371990]
2560
2561 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
2562
2563         * TreeNodeCollection.cs: Don't increment count until we've
2564         saved our index to return.
2565         [Fixes bug #373603]
2566
2567 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
2568
2569         * Label.cs: Add padding to the label's AutoSize calculation.
2570         [Fixes bug #373792]
2571
2572 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2573
2574         * ListBindingHelper.cs: Actually implement GetListName method.
2575
2576 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2577
2578         * BindingSource.cs: Throw the propert expceptions for some methods, as
2579         well as detect the list item type for Add method if DataSource is null.
2580
2581 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
2582
2583         * DataGridViewCell.cs: I don't know why I commented this out,
2584         putting it back for now.
2585
2586 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
2587
2588         * DataGridViewCell.cs: Remove storage for owning column, just
2589         use column index.
2590         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
2591         * DataGridViewColumnHeaderCell.cs: If the header text has been
2592         explicitly set, return it.
2593         [Fixes bug #325979]
2594
2595 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
2596
2597         * DataGridViewRowCollection.cs: Disable row sharing when
2598         using data binding.  Its a great feature, but lets work on
2599         getting DGV usable first before we worry about optimizations.
2600
2601 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2602
2603         * BindingSource.cs: When resetting our internal list, compute list
2604         item type information to be used for indirect list access. Also
2605         implement/tune some properties and methods related to the list access
2606         too.
2607         * ListBindingHelper.cs: Add a stub for GetListName method, used from
2608         BindingSource.
2609
2610 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
2611
2612         * DataGridView.cs: If RowCount is increased while ColumnCount
2613         is zero, add a column.  [Fixes bug #331649]
2614
2615 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
2616
2617         * DataGridViewRowCollection.cs: When adding new rows for
2618         databinding, make sure they are place before the add row.
2619         [Fixes bug #343961]
2620
2621 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
2622
2623         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
2624         instead of Index order.
2625
2626 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
2627
2628         * DataGridView.cs: If columns are added by increasing ColumnCount,
2629         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
2630         [Fixes bug #325588]
2631
2632 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
2633
2634         * DataGridView.cs: Turn off and on the "new row" when 
2635         AllowUserToAddRows is toggled.  When the handle is created,
2636         set current cell and selected cell/row/col.
2637
2638 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
2639
2640         * ComboBox.cs: When navigating the drop down by keyboard, we
2641         need to scroll the list box if our selection moves out of the
2642         currently shown items.  [Fixes bug #371990]
2643
2644 2008-03-24  Luke Page <luke.a.page@gmail.com>
2645
2646         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
2647         on the control. Also now handles unicode compatibility characters and
2648         stores the unicode compatibility length on the stack. Fixes Bugs
2649         #355198 and #366436.
2650
2651 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2652
2653         * BindingSource..cs: Take into account DataMember when re-creating the
2654         List property, and also create a specific kind of list as needed.
2655
2656 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2657
2658         * ListBindingHelper.cs: Add a new case for GetList () method - when we
2659         get an empty IEnumerable, try to detect whether the datamember is
2660         valid or not for that type, if true, return null, and throw exception
2661         otherwise.
2662
2663 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
2664
2665         * ComboBox.cs: Alt-Down should drop down the list, Esc should
2666         retract it.  [Fixes bug #371989]
2667
2668 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
2669
2670         * PropertyGrid.cs: Initialize the sorting button as pushed.
2671
2672 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
2673
2674         * PropertyGrid.cs: 
2675          - Visually select the PropertyTab.
2676          - Filter Properties by Attributes properly.
2677
2678 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
2679
2680         * MenuItem.cs: Remove menu item from parent when disposed.
2681         [Fixes bug #372845]
2682
2683 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
2684
2685         * ToolBar.cs: Don't reset layout_type if Dock = None.
2686
2687 2008-03-21  Andreia Gaita <avidigal@novell.com> 
2688
2689         * UserControl.cs: Select the first available control when we get focus.
2690           Fixes #372616
2691
2692 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
2693
2694         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
2695         the content if we are in edit mode.  [Fixes bug #343964]
2696
2697 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
2698
2699         * DataGridViewCell.cs: Fix border painting for column headers.
2700
2701 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2702
2703         * BindingSource.cs: When setting or resetting data source,
2704         use ListBindingHelper.GetList () method, since it will get the list in
2705         case datasource is IListSource.
2706
2707 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
2708
2709         * DataGridViewCell.cs: Implement lots more stuffs.
2710
2711 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
2712
2713         * PropertyGridView.cs, GridEntry.cs: Implement support for 
2714         UITypeEditor.IsDropDownResizable.
2715
2716 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
2717
2718         * DataGridViewCell.cs: Remove unused variables, improve how
2719         several of the property getters work.
2720         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
2721         get its size from the parent row/col.
2722
2723 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
2724
2725         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
2726         user alters manually the PropertyTabs collection via the 
2727         PropertyTabs property.
2728
2729 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2730
2731         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
2732         new tests for them to be sure to be compatible with .net.
2733
2734 2008-03-20  Andreia Gaita <avidigal@novell.com> 
2735
2736         * WebBrowserBase.cs: Fix attributes, add events
2737         * WebBrowser.cs: Fix Padding signature
2738
2739 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
2740
2741         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
2742
2743 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
2744
2745         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
2746         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
2747         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
2748         passes the new suite of tests for it.
2749
2750 2008-03-18  Andreia Gaita <avidigal@novell.com> 
2751
2752         * WebBrowser.cs: Add missing attributes, missing Padding and
2753           DefaultSize properties, remove extraneous getters
2754
2755 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2756
2757         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
2758         method overloads.
2759
2760 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
2761
2762         * ComboBox.cs: Move resetting the selected index to keypress
2763         instead of textchanged.  Changing the text programmatically
2764         should not trigger resetting the selected index.  Fixes test.
2765
2766 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
2767
2768         * ComboBox.cs: When the user types into the textbox, reset
2769         the selected index to -1.  [Fixes bug #371672]
2770
2771 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
2772
2773         * FileDialog.cs: Support Control-A for selecting everything
2774         in an OpenFileDialog.  [Fixes bug #371564]
2775
2776 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
2777
2778         * DataGridView.cs: When row/column visible/height properties
2779         change, invalidate.  Take the NIEX out of InvalidateRow/Column
2780         etc.  We don't support them yet, but we can just invalidate
2781         everything until we do support them.  (Added MonoTODO).  Set
2782         proper control styles.
2783         * DataGridViewRow.cs: Don't call PaintHeader if row headers
2784         are turned off. 
2785
2786 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2787
2788         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
2789
2790 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
2791
2792         * DataGridViewRow.cs: Only paint the white background in
2793         cell bounds, the row bounds extends past the cells if the 
2794         grid width isn't as wide as the DGV.
2795
2796 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
2797
2798         * DataGridView*: Completely revamp the drawing to match the
2799         public API.  Our grids now look better, and call all the
2800         appropriate methods and event to allow users to override
2801         the painting and do their own.
2802
2803 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2804
2805         * ListBindingHelper.cs: Implement 2.0 GetList methods.
2806
2807 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
2808
2809         * DataGridView.cs: Implement BorderStyle.
2810
2811 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
2812
2813         * FileDialog.cs: Apply patch from Andy Hume: Any time we
2814         are comparing attributes, make sure we only look at the
2815         one we are interested.  These calls were failing if there
2816         were more than one attribute.
2817         [Fixes bug #370385]
2818
2819 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
2820
2821         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
2822
2823 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
2824
2825         * PageSetupDialog.cs: Stub EnableMetric.
2826         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
2827         * PrintPreviewDialog.cs: Add ProcessDialogKey,
2828         ProcessTabKey.
2829
2830 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
2831
2832         * MonthCalendar.cs: Remove unused variable.
2833
2834 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
2835
2836         * DataGridView*.cs: corcompare stuffs.
2837
2838 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
2839
2840         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
2841         The savings aren't worth the extra code to fix the optimization.
2842         [Fixes bug #368585]
2843
2844 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
2845
2846         * ToolBar.cs: Always call base.Dock in the Dock override so that
2847         Control's layout_type gets reset correctly.
2848         [Fixes bug #368882]
2849
2850 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
2851
2852         * X11Dnd.cs: End DnD operation also for the middle mouse button.
2853
2854 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
2855
2856         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
2857         at the same time we do explicit ones, because we have to give all
2858         other controls on the container a chance to handle explicit ones
2859         first.  If no one has an explicit mnemonic, then we can let the
2860         MenuStrip have a shot at implicit mnemonics.
2861         * MenuStrip.cs: Create an implicit mnemonic function.
2862         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
2863         mnemonics for MenuStrips.
2864         [Fixes bug #368493]
2865
2866 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
2867
2868         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
2869         DataGridColumnStyle.cs: corcompare stuffs.
2870
2871 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2872
2873         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
2874         Details - This is needed after we added the bits to use any available
2875         column also for List and SmallIcon view. 
2876
2877 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2878
2879         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
2880         at the proper place, not only when changing SelectedIndex and changing
2881         the selection using keys/mouse, as .net does.
2882
2883 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2884
2885         * ControlBindingsCollection.cs: Implement last 2.0
2886         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
2887         in the new 2.0 Add methods.
2888
2889 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2890
2891         * ListBox.cs: When calling SelectedIndexCollection.Clear,
2892         return if no items are previously selected - this is done to avoid 
2893         firing OnSelectedIndexChanged without need to do so. Also,
2894         when creating handle ensure that the focused item is visible (as
2895         .net does).
2896
2897 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2898
2899         * ListBox.cs: Rewrote/refactored most of selection code. We require
2900         the following things in selection: a) keep selection sorted (both
2901         indices and items), b) SelectedIndices automatically detect the
2902         selection mode, c) SelectedIndex should be the first selected item
2903         index, d) Need to Focus/adjust scroll bar when selecting a new item,
2904         not only for SelectedIndex, which is specially important in Multi*
2905         selection modes. To achieve this we are moving the selection core to
2906         SelectedIndexCollection and make depend all selection modifications on
2907         it.
2908         Fixes #366438.
2909
2910 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
2911
2912         * ToolStrip.cs: Enable implicit mnemonics for drop down
2913         menu strips.  [Fixes part of bug #367692]
2914
2915 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
2916
2917         corcompare - fix parameter names [stragglers].
2918         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
2919         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
2920         TabControl.cs.
2921
2922 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
2923
2924         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
2925         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
2926         mnemonic, let the ToolStripManager have it even if it doesn't
2927         have a matching mnemonic.
2928         [Fixes bug #367499]
2929
2930 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
2931
2932         corcompare - fix warning about implicit implementation
2933         * ToolStrip.cs: Add IToolStripData interface.
2934         * IToolStripData.cs: Add.
2935
2936 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
2937
2938         corcompare - fix warning about implicit implementation
2939         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
2940         * IBounds.cs: Add.
2941
2942 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
2943
2944         corcompare - fix parameter names [N-Z].
2945         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
2946         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
2947         PropertyManager.cs, RichTextBox.cs,
2948         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
2949         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
2950         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
2951         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
2952         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
2953         ToolStripContentPanel.cs, ToolStripDropDown.cs,
2954         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
2955         ToolStripPanel.cs, ToolStripSeparator.cs,
2956         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
2957         UICuesEventHandler.cs, UpDownBase.cs.
2958
2959 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
2960
2961         corcompare - fix parameter names [G-M].
2962         GridColumnStylesCollection.cs, GridItemCollection.cs,
2963         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
2964         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
2965         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
2966         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
2967         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
2968
2969 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
2970
2971         corcompare - fix parameter names [A-F].
2972         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
2973         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
2974         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
2975         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
2976         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
2977         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
2978         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
2979
2980 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
2981
2982         * GridEntry.cs: Do not convert not only if the types match, 
2983         but also if the property type is assigneable from the value's
2984         type.
2985         [Fixes bug #366566]
2986
2987 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
2988
2989         * PropertyGridView.cs: 
2990          - Subscribe to the listbox only once and not everytime.
2991          - Update the textbox even if SetValue fails.
2992          - Close the listbox before calling TrySetValue just in case.
2993          [Fixes bug #366569]
2994
2995 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
2996
2997         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
2998
2999 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3000
3001         * ListView.cs: Implement support for custom column width based on
3002         Columns collection (we were previously using this collection only
3003         with Details view).
3004         Fixes #364484.
3005
3006 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3007
3008         * ListViewItem.cs: For Tile view, always set bounds for the first
3009         subitem (which is the main one), and also don't let Width be larger
3010         than ListView.TileSize.Width. Improve code readibility also.
3011         * ThemeWin32Classic.cs: When painting the ListViewItem instances
3012         in Tile view, _always_ use the NoWrap flag.
3013         Fixes #360798.
3014
3015 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
3016
3017         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
3018         in case.
3019         * GridEntry.cs: For MS compitability make all child properties 
3020         readonly if the parent is readonly. Ugh.
3021         [Fixes bug #365945 and #365944]
3022
3023 2008-02-29  Andreia Gaita <avidigal@novell.com> 
3024
3025         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
3026           relative to the history
3027
3028 2008-02-29  Andreia Gaita <avidigal@novell.com>
3029
3030         * HtmlElement.cs: More handlers for mouse and key events
3031
3032 2008-02-28  Andreia Gaita <avidigal@novell.com>
3033
3034         * WebBrowserBase.cs: MouseClick sig changed.
3035         * HtmlHistory.cs: Implement history navigation
3036         * HtmlElement.cs: Add event handlers, and connect them.
3037
3038 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
3039
3040         * GridEntry.cs: 
3041          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
3042            so that DisplayNameAttribute doesn't get ignored.
3043          - Check for ParenthesizeNameAttribute and parenthesize the Label.
3044          - Add support for PasswordPropertyTextAttribute
3045         * PropertyGridView.cs: Check if an entry is a password.
3046         [Fixes bugs #365589, #365586, #365588]
3047
3048 2008-02-28  Andreia Gaita <avidigal@novell.com>
3049
3050         * PropertyGridView.cs: Revert the message filtering change, as we
3051         need it to block after all. Remove block parameter, unnecessary.
3052
3053 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
3054
3055         * UserControl.cs: Better implementation of GetPreferredSize.
3056         First step to fixing bug #361441.
3057
3058 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3059
3060         * Binding.cs: Actually implement data binding support for 
3061         classes implementing IBindableComponent.
3062         * ControlBindingsCollection.cs: Likewise.
3063
3064 2008-02-26  Andreia Gaita  <avidigal@novell.com>
3065
3066         * PropertyGridView.cs: Use a message filter to check when to 
3067         close the dropdown
3068
3069 2008-02-26  Andreia Gaita  <avidigal@novell.com>
3070
3071         * Application.cs: Change the message_filters loop so a filter 
3072         can be removed while looping.
3073
3074 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
3075
3076         * GridEntry.cs: Optimization in ToggleValue so that it caches
3077         the current value.
3078         * PropertyGridView.cs: An optimization so that the property isn't 
3079         re-read twice for each StandardValue added to the drop-down menu.
3080         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
3081         license.
3082         [Fixes bug #362755]
3083
3084 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
3085
3086         * Application.cs: Apply patch from Justin Cherniak to match
3087         MS better for ProductName, ProductVersion, and CompanyName.
3088         [Fixes bug #361709]
3089
3090 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3091
3092         * Binding.cs: Actually implement 2.0 NullValue property. Also
3093         when changing the formatting related properties, only update the state
3094         if formatting_enabled is true (we don't mind otherwise).
3095
3096 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
3097
3098         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
3099         [Fixes bug #364486]
3100
3101 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
3102
3103         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
3104         of GetType on the current value as it uses reflection to 
3105         determine the type. This fixes the case where the new value is 
3106         null. 
3107
3108 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
3109
3110         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
3111         past the view.
3112
3113 2008-02-24  Luke Page  <luke.a.page@gmail.com>
3114
3115         * Line.cs, TextControl.cs: Implement offset x and y so that a
3116         document doesn't have to begin  at (0,0) on the viewpoint.
3117         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
3118         bars and switches the text alignment (and therefore is now
3119         implemented for textbox). Fixes #321383.
3120
3121 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3122
3123         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
3124         properties. Also when changing FormattingEnabled update the control
3125         property -as .Net does-.
3126
3127 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
3128
3129         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
3130         * Binding.cs: Add stubs for the overloads of the Add method in
3131         CBCollection.
3132
3133 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3134
3135         * Binding.cs: PullData () returns a false value if we got an exception.
3136         Also when validating the control and we get an error, instead of
3137         setting the value of the previous one, cancel the event (tested in 1.1
3138         and 2.0).
3139
3140 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
3141
3142         * TreeView.cs: Make selected_node and highlighted_node internal.
3143         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
3144         to null when Nodes.Clear is called.
3145         [Fixes bug #363884]
3146
3147 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
3148
3149         * FontDialog.cs: Ensure that when the Font is set in code,
3150         all the gui pieces are updated accordingly.
3151         [Fixes bug #361020]
3152
3153 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
3154
3155         * TextRenderer.cs: Respect proposed size for MeasureString.
3156         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
3157         autosize, use a proposed width to force wrapping for long text.
3158         [Fixes bug #360981]
3159
3160 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
3161
3162         * TreeView.cs: Factor in checkboxes = false and state images in
3163         to HitTest.  [Fixes bug #363360]
3164
3165 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
3166
3167         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
3168         when drawing the selected range.
3169         [Fixes bug #363648]
3170
3171 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
3172
3173         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
3174         ResizeRedraw control styles.
3175         [Fixes bug #363555]
3176
3177 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
3178
3179         * TreeView.cs: StateImages are basically custom checkboxes, so
3180         factor their size the same as real checkboxes when determining
3181         what got clicked.
3182         [Fixes bug #363367]
3183
3184 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
3185
3186         * MessageBox.cs: Make the message box wider if the form caption
3187         is longer than the text in the form.
3188         [Fixes bug #361137]
3189
3190 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
3191
3192         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
3193
3194 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
3195
3196         * TreeNode.cs: Guard against an NRE when the parent's
3197         StateImageList hasn't been set.
3198         [Fixes bug #363353]
3199
3200 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
3201
3202         * SplitContainer.cs: Add SupportsTransparentBackColor and
3203         OptimizedDoubleBuffering control styles.
3204         [Fixes bug #363303]
3205
3206 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
3207
3208         * Application.cs: For the app data paths and the registry key paths,
3209         ensure they are created before returning them to the user.
3210         [Fixes bug #361709]
3211
3212 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
3213
3214         * Application.cs: Guard against an NRE in CompanyName and
3215         ProductName.
3216
3217 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
3218
3219         * Application.cs: For CompanyName, ProductName, and ProductVersion,
3220         make sure we handle all three cases correctly: attribute is present,
3221         attribute is present but is an empty string, and attribute is not
3222         present.
3223
3224 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
3225
3226         * PropertyGridView.cs: 
3227          - Fix a NRE that caused a test failure
3228          - Another performance improvement - cache the standard values
3229          listbox.
3230
3231 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
3232
3233         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
3234         code paths.
3235
3236 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
3237
3238         * PropertyGridView.cs: Fix a big performance bug.
3239
3240 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
3241
3242         * SelectionRange.cs: Apply patch from Andy Hume to make
3243         constructor behavior more accurate.  [Fixes bug #362117]
3244
3245 2008-02-19  Andreia Gaita <avidigal@novell.com> 
3246
3247         * Control.cs: Added a new flag is_disposing to track if the
3248         window is currently in the process of being disposed of.
3249         This is used so that, when firing visibility changes triggered
3250         by unparenting controls during Dispose, the control doesn't
3251         get created again.      
3252
3253 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
3254
3255         * ComboBox.cs: Set height to preferred height when the handle
3256         is created.  [Fixes bug #360862]
3257
3258 2008-02-18  Andreia Gaita <avidigal@novell.com>
3259
3260         * XplatUIX11.cs: Create FosterParent with border width at 0.
3261         With the previous value of 4, everytime a control got reparented
3262         from parent = null, it's location would be shifted right and 
3263         down by 4, since these coordinates would be offset by the 
3264         FosterParent's border width.
3265
3266 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
3267
3268         * Control.cs: During diposing firstly remove ourselfes from
3269         the parent and *then* destroy our handle, because removing
3270         ourselfes from the parent controls collection causes 
3271         VisibilityChange, etc events, which require a handle and end
3272         up recreating the control.
3273
3274 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
3275
3276         * GridEntry.cs: Set expanded state before notifying that the
3277         expansion has taken place.
3278         * PropertyGridView.cs:
3279          - Set the propertygridtextbox text to the selected 
3280          StandardValue before proceeding to setting it.
3281          - Scrolling bugfixes.
3282
3283 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
3284
3285         * GridEntry.cs:
3286          - Fix ValueText to not return null.
3287          - Fix conversion error reporting to actually happen.
3288         * PropertyGridView.cs: Set entry only if the text has changed.
3289         [Fixes bug #362116]
3290
3291 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
3292
3293         * GridEntry.cs: 
3294          - Fix handling of a null current value.
3295          - Swallow editor exceptions.
3296         [Fixes bug #362114]
3297
3298 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
3299
3300         * PropertyGrid.cs: Clear current items first thing before 
3301         repopulating subitems.
3302         * GridEntry.cs: 
3303          - Handle null StandardValuesCollection.
3304          - Mark as not editable if there is no PropertyDescriptor and
3305          if the Converter cannot convert from string.
3306         [Part of fix for bugs #360666 and #358332]
3307
3308 2008-02-15  Luke Page  <luke.a.page@gmail.com>
3309         * MaskedTextBox.cs: Now skips non editable characters after a
3310         character has been entered and we are progressing to the next
3311         position in the MaskedTextBox.
3312
3313 2008-02-15  Luke Page  <luke.a.page@gmail.com>
3314         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
3315         that it changes the selection rather than just repositioning the
3316         cursor. Fixes Bug #360873.
3317
3318 2008-02-15  Luke Page  <luke.a.page@gmail.com>
3319         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
3320         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
3321         correctly. See #359330
3322
3323 2008-02-15  Andreia Gaita <avidigal@novell.com>
3324
3325         * XplatUIX11.cs: If the handle is null when posting a message, use the
3326         current thread queue to post instead. Fixes #332409
3327
3328         * SendKeys.cs: Slight optimization
3329
3330 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
3331
3332         * PropertyGrid.cs, PropertyGridView.cs:
3333         Fix multiple scrolling and sizing issues.
3334         [Fixes bug #359199]
3335
3336 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
3337
3338         * PropertyGridView.cs: Ensure that drop down editors are shown
3339         in the WorkingArea of the screen.
3340         [Fixes bug #359807]
3341
3342 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
3343
3344         * GridEntry.cs: Fail silently when UITypeEditor is missing.
3345         [Fixes bug #360666]
3346
3347 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3348
3349         * Binding.cs: Implement 2.0 DataSourceNullValue property.
3350
3351 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
3352
3353         * PropertyGridView.cs:
3354          - Clear the controls in the drop down form after it is hidden.
3355          - Fix Width sizing of the dropdown editors to match MSFT.
3356
3357 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
3358
3359         * PropertyGridView.cs: 
3360          - Fix height for drawing the grid entry
3361          text value, so that it clips multiline text properly.
3362          - Fix unfocusing to match MSFT.
3363
3364 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
3365
3366         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
3367         Fixes a bug where on repopulation after value changed items become
3368         expandable.
3369
3370 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3371
3372         * Binding.cs: For the 2.0 profile, look for a 
3373         'PropertyChanged' event in the target control, and add checks for
3374         DataSourceUpdateMode property to change -or not- the data source
3375         from validation/control property change.
3376
3377 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
3378
3379         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
3380           not compare struct with null in 2.0).
3381
3382 2008-02-10  Luke Page <luke.a.page@gmail.com>
3383
3384         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
3385         updates the provider and if not using a provider, uses the internal document
3386         class implementation of password char. Also when showing text, uses display string
3387         from the provider, instead of the actual text.
3388
3389 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3390
3391         * Binding.cs: Ooooops, forgot to take into account the data_source
3392         and binding_member_info null case (it was breaking the Binding tests).
3393
3394 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3395
3396         * Binding.cs: Implement support for data source changes exposed by
3397         'PropertyNameChanged' events, and update the control property as
3398         needed.
3399
3400 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3401
3402         * Binding.cs: Implement 2.0 WriteValue method.
3403
3404 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
3405
3406         Commit patch from James Purcell for better AutoScale implementation:
3407
3408         * ScaleControl should call GetScaledBounds with the control's total size rather
3409         than client size.  GetScaledBounds should handle ignoring the borders in its
3410         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
3411         (for the most part they just call the base code now since that is fixed).
3412         * Added ScaleChildrenInternal to allow controls to disable scaling of children
3413         without having to override ScaleChildren (since none of .NET's controls do). 
3414         This is required for most controls in Mono that have scrollbars to prevent the
3415         scrollbars from being moved/resized.
3416         * Nested ContainerControls can have a different scale mode than their parent. 
3417         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
3418         designer produce different results both of which look incorrect).
3419         * Default AutoScaleMode for ContainerControl should be Inherit.
3420         * Simplified workaround for ComboBox scaling issue.
3421         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
3422         1.0 style auto scaling should scale the whole control's size instead of
3423         ignoring the borders (except for Form) and the rounding is done differently to
3424         preserve control alignment.
3425         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
3426         GetAutoScaleSize.
3427         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
3428         * CurrentAutoScaleDimensions should round the estimated character width instead
3429         of truncating.
3430         * ListBox's GetScaledBounds should always use the height it was set to instead
3431         of the height that was passed in.  This prevents rounding errors from
3432         accumulating quickly with IntegralHeight.
3433         [Bug #359098]
3434
3435 2008-02-08  Andreia Gaita <avidigal@novell.com>
3436
3437         * Form.cs: Add a null check (darn it). 
3438
3439 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
3440
3441         * MdiClient.cs: Make sure the requesting form actually owns the
3442         control menu items before removing them.  Also, use
3443         Suspend/ResumeLayout when adding or removing items so we only
3444         layout once.
3445         [Fixes bug #359887]
3446
3447 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
3448
3449         * Control.cs: Guard against an NRE in ShowFocusCues.
3450         [Fixes bug #359830]
3451
3452 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3453
3454         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
3455         property, as well as stubbing DataSourceUpdateMode.
3456
3457 2008-02-08  Andreia Gaita <avidigal@novell.com>
3458
3459         * Form.cs: When closing forms, get focus back to the active control of the
3460         active form. [Fixes #341314, corner case]
3461         
3462 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3463
3464         * MdiClient.cs: After we move the scrollbars, invalidate the NC
3465         area, so any old scrollbar artifacts are cleaned up.
3466         [Fixes bug #336305]
3467
3468 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3469
3470         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
3471         for our menus, display that control box menu instead of the 1.1
3472         menu one.
3473
3474 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3475
3476         * MdiControlStrip.cs: Add property to access the mdi form tied to
3477         each toolstripitem.
3478         * MdiClient.cs: Be smarter about removing and adding toolstripitems
3479         to the implicitly merged menu.  Every time we clicked the form, items
3480         were getting removed and the re-added, causing the form to jump around
3481         as the menu resized.
3482
3483 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3484
3485         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
3486         was being reset by the implicit menu merge for menustrips.
3487         [Fixes bug #336296]
3488
3489 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3490
3491         * Form.cs: Don't do the previous change when WindowState = Normal,
3492         or it messes up where the window is placed.  Fixes test failure.
3493
3494 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3495
3496         * Form.cs: When becoming visible, if we are an MDI child, call
3497         SetWindowState with a dummy old_state so that changes will actually
3498         be made.
3499         [Fixes the 2nd part of bug #325473]
3500
3501 2008-02-07  Andreia Gaita <avidigal@novell.com>
3502
3503         * Control.cs: Reset properties to their pre parent-change values in case
3504         the new parent == null (in which case we're basically removing the control, 
3505         and don't want any events fired due to fake property changes)
3506         [Fixes #355850]
3507
3508 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
3509
3510         * PropertyGridView.cs: 
3511          - Refactor SetValue to allow setting the value
3512         when a custom editor is used, but the entry is not editable.
3513          - Remove the custom editor control on CloseDropDown.
3514         [Fixes #359196]
3515
3516 2008-02-06  Andreia Gaita <avidigal@novell.com>
3517
3518         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
3519         reflection only on 1.1, this property is public on system.drawing on 2.0.
3520         Fixed #359247
3521
3522 2008-02-06  Andreia Gaita  <avidigal@novell.com>
3523         
3524         * WebBrowser.cs: Do a normal page refresh by default.
3525
3526 2008-02-05  Andreia Gaita  <avidigal@novell.com>
3527
3528         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
3529         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
3530         platforms. Fixes #359036
3531         
3532         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
3533         platform-specific flags.
3534
3535 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3536
3537         * Binding.cs: Add 2.0 BindableComponent property - just return control
3538         by now.
3539
3540 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
3541
3542         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
3543         Jonathan for this patch. Fixes #358442.
3544
3545 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
3546
3547         * Form.cs: If we change the active MDI child form, let the others
3548         know they need to repaint their title bar so it will appear inactive.
3549         [Fixes part 1 of bug #325473]
3550
3551 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
3552
3553          * PropertyGridView.cs: Do not trucate custom editors' width
3554          and align them to the left.
3555          [Fixes #358353 and #358349]
3556
3557 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3558
3559         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
3560         Also fix the arguments passed to CollectionChangeEventArgs in the
3561         related methods.
3562
3563 2008-02-04  Geoff Norton  <gnorton@novell.com>
3564
3565         * Hwnd.cs: The conversion to Quartz coordinates happens in
3566         System.Drawing.  Removing this translation from here.
3567
3568 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
3569
3570          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
3571          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
3572          GridItemCollection.cs:
3573          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
3574
3575 2008-02-04  Geoff Norton  <gnorton@novell.com>
3576
3577         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
3578         SYSKEYUP if any other key has been pressed in the mean time.
3579         Fixes #324404
3580
3581 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3582
3583         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
3584         when the item in current position is different than 0. Also, save the
3585         item index in the beginning of the operation, instead of getting the
3586         index of the item when the event is actually performed. Lastly clean
3587         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
3588         triggered.
3589         [Fixes #357873]
3590
3591 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
3592
3593         * Form.cs: Alt-Minus for MDI children system menu should work
3594         with both the minus keys on the keyboard.
3595         [Fixes bug #336295]
3596
3597 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
3598
3599         * Control.cs: Don't invalidate on region change.  The WM should
3600         take care of this automagically.  Keeps us out of an infinite
3601         paint loop if someone changes the Region in the OnPaint.
3602         [Fixes bug #358327]
3603
3604 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
3605
3606          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
3607
3608 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
3609
3610         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
3611         down the MonthCalendar only on F4, not Alt+F4.
3612         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
3613         [Fixes bug #358340]
3614
3615 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
3616
3617         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
3618         if its part of a DateTimePicker, else, use the back color.
3619         [Fixes bug #358339]
3620
3621 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
3622
3623         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
3624         [Fixes bug #358342]
3625
3626 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3627
3628         * CurrencyManager.cs: When we get a ListChanged event from our source,
3629         always fire our own ListChanged event, as .Net does.
3630
3631 2008-02-03  Luke Page  <luke.a.page@gmail.com>
3632
3633         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
3634         #358379.
3635
3636 2008-02-03  Luke Page  <luke.a.page@gmail.com>
3637
3638         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
3639         property. Removed if for richtext property that was always true.
3640         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
3641
3642 2008-02-03  Luke Page  <luke.a.page@gmail.com>
3643
3644         * TextBoxBase.cs - commited patch from James Purcell that
3645         correctly sets the FixedHeight control style when the MultiLine
3646         property is changed on a TextBox control. Fixes bug 358229.
3647
3648 2008-02-02  Luke Page  <luke.a.page@gmail.com>
3649
3650         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
3651         Fixes bug 351938 - caret is positioned correctly when drawn
3652         and when calculating textual position of caret, no longer
3653         has a NRE in certain situations.
3654         
3655 2008-02-01  Geoff Norton  <gnorton@novell.com>
3656
3657         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
3658         get that region removed from the paint event.
3659         * XplatUICarbon.cs: Remove the window mapping after disposing of 
3660         window.  Prevents a crash with handle reuse.  Optimize exposes
3661         only onto visible windows (rare; but possible).
3662
3663 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
3664
3665         * UpDownBase.cs: Make sure the internal textbox calls the base's
3666         OnMouseDown and OnMouseUp so the textbox will function correctly.
3667         There were notes saying it doesn't chain up, but its an internal
3668         class, so our implementation may differ.
3669         [Fixes bug #357482]
3670
3671 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
3672
3673         * ListBox.cs: Fix a logic error and don't process MouseDown
3674         for mouse buttons other than Left.
3675
3676 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
3677
3678         * Control.cs: Remove HeightInternal.
3679         * ListBox.cs: Commit patch from James Purcell that correctly
3680         calculates heights for ListBoxen.
3681         [Fixes bug #357152]
3682
3683 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
3684
3685         * Label.cs: Apply patch from James Purcell that corrects the 
3686         signature of the AutoSize property.
3687         [Fixes bug #357605]
3688
3689 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
3690
3691         * ListBox.cs: Don't throw [Mouse]Click events for buttons
3692         other than the left mouse button.
3693
3694 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
3695
3696         * Control.cs: Remove my awesome optimization as it caused some
3697         regressions with control ordering.  :(
3698         [Fixes bug #357467]
3699
3700 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
3701
3702          * PropertyGridView.cs: Fix a NRE on double click when there is no
3703          selected object.
3704
3705 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3706
3707         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
3708
3709 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
3710
3711         * ListBox.cs: Call MouseClick and MouseDoubleClick.
3712         [Fixes bug #357146]
3713
3714 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
3715
3716         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
3717         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
3718         instead of Hwnd.bmp_g.
3719
3720 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
3721
3722         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
3723         Use the Hwnd one instead.
3724
3725 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
3726
3727         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
3728
3729 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
3730
3731         * Form.cs: corcompare for RestoreBounds.
3732
3733 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
3734
3735         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
3736
3737 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
3738
3739         * Form.cs: Handle Alt-Minus for MDI children forms.
3740         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
3741         Add mnemonics to the control menu.
3742         [Fixes bug #336295]
3743
3744 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3745
3746         * Binding.cs: Initial implementation bits of FormattingEnabled
3747         property and BindingComplete event (2.0). 
3748         * BindingCompleteEventArgs.cs: Internal methods for setting error text
3749         and exception.
3750
3751 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
3752
3753         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
3754         table.Location.  [Fixes bug #354672]
3755
3756 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
3757
3758         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
3759         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
3760
3761 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3762
3763         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
3764         of doing all the re-bound work, just invalidate and call SetControlText 
3765         to set the updated text of selected item to our textbox.
3766         Fixes #333750.
3767
3768 2008-01-28  Andreia Gaita <avidigal@novell.com>
3769
3770         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
3771         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
3772         missing properties and methods. Add Load, Unload, Error, GotFocus, 
3773         LostFocus, Resize, Scroll events (only load and unload are connected)
3774
3775 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
3776
3777         * AccessibleObject.cs: Modified argument names to match MS.
3778         * Button.cs: Modified argument names to match MS.
3779         * BindingContext.cs: Modified argument names to match MS.
3780         * BindingMemberInfo.cs: Modified argument names to match MS.
3781         * ButtonBase.cs: Modified argument names to match MS.
3782         * ComboBox.cs: Modified argument names to match MS.
3783         * Control.cs: Modified argument names to match MS.
3784         * CheckedListBox.cs: Modified argument names to match MS.
3785         * CommonDialog.cs: Modified argument names to match MS.
3786         * DataGrid.cs: Modified argument names to match MS.
3787         * CursorConverter.cs: Modified argument names to match MS.
3788         * ControlPaint.cs: Modified argument names to match MS.
3789         * CheckBox.cs: Modified argument names to match MS.
3790         * ControlBindingsCollection.cs: Modified argument names to match MS.
3791         * BindingSource.cs: Modified argument names to match MS.
3792         * DataFormats.cs: Modified argument names to match MS.
3793         * ContainerControl.cs: Modified argument names to match MS.
3794         * CurrencyManager.cs: Modified argument names to match MS.
3795         * Application.cs: Modified argument names to match MS.
3796         * ContextMenuStrip.cs: Modified argument names to match MS.
3797         * ContextMenu.cs: Modified argument names to match MS.
3798         * BindingManagerBase.cs: Modified argument names to match MS.
3799         * WindowsFormsSection.cs: Fixed line ending.    
3800
3801 2008-01-27  Andreia Gaita <avidigal@novell.com>
3802
3803         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
3804         detecting that the dropdown toolwindow is hidden. EndLoop outside the
3805         while.
3806
3807 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
3808
3809         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
3810         MS. Code formatting.
3811
3812 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3813
3814         * Binding.cs: Don't avoid the Format event if the control 
3815         property type is object. Also, if the value retrieved by 
3816         the data source is null _and_ the control proeprty type 
3817         is object, return Convert.DBNull (match .Net).
3818         Fixes part of #324286.
3819
3820 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3821
3822         * ListControl.cs: Since we are getting two BinginContextChanged events
3823         for the same binding context instance (when the control is added to
3824         form, and when the form is actually shown), take it into account only the
3825         first time for a given binding context instance.
3826         Fixes part of #324286.
3827
3828 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
3829
3830          * PropertryGridView.cs: Ops.
3831
3832 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
3833
3834          * PropertyGridView.cs: Close dropdown form if the owner form is
3835          moved or minimized.
3836          [Fixes bug #322446]
3837
3838 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
3839
3840          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
3841          RootGridEntry.cs, CategoryGridEntry.cs:
3842          PropertyGrid rewrite.
3843          - Rewrite all of the control logic in PropertyGrid.
3844          - Rewrite all of the ComponentModel logic in GridEntry.
3845          - Rewrite all UI work in PropertyGridView.
3846          - Many bugfixes, etc.
3847
3848 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
3849
3850         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
3851         when all contained controls are autosize or dock-fill.  Also take into
3852         account when the total percentage of column/row sizes is not 100%.
3853         [Fixes bug #354672]
3854
3855 2008-01-24  Andreia Gaita <avidigal@novell.com>
3856
3857         * HtmlDocument.cs:
3858         - Save a reference to the IDocument in the instance and
3859           use that one instead of going to WebHost.Document; the document that the 
3860           WebHost returns might not be the right one (in case of frames).
3861         - Use the hashcode returned from the IDocument interface.
3862         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
3863           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
3864           LinkColor, Url, VisitedColor, Window
3865
3866         * HtmlElement.cs: 
3867         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
3868           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
3869           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
3870           SetAttribute, Equals, equality operators.
3871         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
3872           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
3873         
3874         * HtmlElementCollection.cs: Change implementation to use a generic
3875         collection. Implemented Enumerator and CopyTo
3876
3877         * HtmlHistory.cs: Add constructor, no implementation yet.
3878
3879         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
3880         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
3881         Equals, equality operators.
3882
3883         * HtmlWindowCollection.cs: Implemented. 
3884
3885         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
3886         has been deprecated).
3887
3888         * WebBrowserBase.cs: Use Completed event to track document loading
3889         (Navigated has been deprecated)
3890
3891 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
3892
3893         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
3894         level MenuItems do not respect tabs.
3895         [Fixes bug #355196]
3896
3897 2008-01-23  Geoff Norton  <gnorton@novell.com>
3898
3899         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
3900         FormWindowState.  Finished fixing Fullscreen windows on Carbon
3901
3902 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
3903
3904         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
3905         be used as grab_control. Also save status of capture before show ContextMenu
3906         and restore it after close.
3907
3908 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
3909
3910         * Control.cs: Internal FindRootParent method added to return high control
3911         in parent tree.
3912
3913 2008-01-23  Geoff Norton  <gnorton@novell.com>
3914
3915         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
3916         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
3917         it work again.  Handle HITTEST events.
3918
3919 2008-01-23  Geoff Norton  <gnorton@novell.com>
3920
3921         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
3922         a crash in certain cases.  Support for fullscreen windows in certain cases.
3923
3924 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
3925
3926         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
3927         [Fixes bug #355703]
3928
3929 2008-01-23  Geoff Norton  <gnorton@novell.com>
3930         
3931         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
3932
3933 2008-01-23  Geoff Norton  <gnorton@novell.com>
3934
3935         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
3936
3937 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
3938
3939         * SplitContainer.cs: Remove unused declarations.
3940         * Binding.cs: Remove unused declarations.
3941
3942 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
3943
3944         * Form.cs: Remove unused declaration of 'active' in Activate method.
3945         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
3946         prevent compilation warnings.
3947         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
3948         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
3949         * Bindings.cs: Remove unused formatting_enabled declaration.
3950         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
3951         warnings.
3952         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
3953         warnings.
3954         * PropertyGridView.cs: Remove usused 'ex' declaration.
3955         * DataGridView.cs: Remove unused declarations.
3956
3957 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
3958
3959         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
3960         
3961         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
3962         to Control class, it makes possible to grab menu to controls that can't 
3963         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
3964         WmMouseMove removed since it was used only to track menu events.
3965
3966         * Control.cs:
3967         - Moved all active_tracker stuff from Form.
3968         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
3969         can call this method instead of reimplement all necessary code handle for
3970         menu tracker.
3971         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
3972         and WmMouseMove).
3973         
3974         * MenuAPI.cs: 
3975         - Remove special handle to ToolStripOverflow, now we can grab menu to 
3976         controls that can't reach Form using parent tree.
3977         - Change type of grab_control from Form to Control.
3978
3979 2008-01-22  Geoff Norton  <gnorton@novell.com>
3980
3981         * TextBoxBase.cs: Split up the sizing of controls and placing of 
3982         controls.  Fixes a bug where scrollbars in Reflector could be sized
3983         wrong and have non-working thumbers.
3984
3985 2008-01-23  Geoff Norton  <gnorton@novell.com>
3986
3987         * XplatUI.cs: Refactor environment variables to default support to the
3988         Carbon driver on the Mac.
3989
3990 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
3991
3992         * Label.cs: Uses new LabelPainter for drawing operations.
3993         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
3994         * Theme.cs: DrawLabel and LabelDefaultSize removed.
3995
3996 2008-01-22  Geoff Norton  <gnorton@novell.com>
3997
3998         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
3999
4000 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
4001
4002         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
4003         through the normal flat button code and don't draw the checkbox glyph.
4004         * Theme.cs: Button->ButtonBase signature change.
4005         [Fixes bug #324755]
4006
4007 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
4008
4009         * LinkLabel.cs: Uses new class LinkLabelPainter.
4010
4011 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
4012
4013         * MessageBox.cs: Adjust right border space, we don't need to add 
4014         "space_border*2" two times.
4015
4016 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
4017
4018         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
4019         becomes a wrapper around Padding.
4020         [Fixes a part of bug #354676]
4021
4022 2008-01-22 Geoff Norton  <gnorton@novell.com>
4023
4024         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
4025         acquired.  Also ensure the buffer is large enough to grab the header
4026         we need on linux boxes.
4027
4028 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
4029
4030         * Control.cs: Implement a custom enumerator so people can delete
4031         from the Controls collection while in a foreach.
4032         [Fixes bug #355074]
4033
4034 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
4035
4036          * PropertyGridView.cs: Fix focusing behavior:
4037          - Tab should focus the grid text box.
4038          - Clicking on the labels shouldn't focus the grid text box.
4039
4040 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
4041
4042          * PropertyGridView.cs: IsValueTypeGridItem should return true 
4043          for Arrays as well.
4044
4045 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
4046
4047          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
4048           - Renamed GridEntry.SelectedObjects to TargetObjects to better
4049           reflect the property name role.
4050           - PropertyGrid.GetTarget is not required as the target is known
4051           (TargetObjects).
4052           - Setting values will handle value types as a special case now and
4053           populate them up in the chain.
4054           [Fixes #354990]
4055
4056 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
4057
4058         * Hwnd.cs: Create a public property for the Graphics we keep around.
4059
4060 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
4061
4062          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
4063          when the current object selection changes. 
4064          Fixes failing test SelectedObject_Null2.B5.
4065
4066 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
4067
4068          * PropertyGrid.cs: Process Browsable properties with 
4069          DesignerSerializationVisibilityAttribute.Content as being expandable.
4070          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
4071          will not be expandable. We should be nested components-friendly now.
4072
4073 2008-01-21  Andreia Gaita <avidigal@novell.com>
4074
4075         * WebBrowserBase.cs: Check if control was loaded properly, 
4076         don't bind if it wasn't.
4077
4078         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
4079         GetElementFromPoint, equality operators, OpenNew, Write.
4080         Remove extra set_Body
4081
4082 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
4083
4084         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
4085         that makes our AutoScale* stuff more tolerant to different orders
4086         of being set.  [Fixes bug #354669]
4087
4088 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
4089
4090          * PropertyGridView.cs, PropertyGridTextBox.cs: 
4091          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
4092          [Fixes #339005 and #348209]
4093
4094 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
4095
4096          * PropertyGridView.cs: Hide the grid text box before adjusting it
4097          for the newly selected GridItem.
4098          [Fixes #338999]
4099
4100 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
4101
4102         * Form.cs: Give MDI children the opportunity to cancel the parent form
4103         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
4104         properly for both the parent and child.
4105         * Application.cs: Signature of internal method changed, pass the previous
4106         default of false.
4107         [Fixes bug #354286]
4108
4109 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
4110
4111         * PropertyGridView.cs: Set the property value only if it has changed.
4112         [Fixes bug #338997]
4113
4114 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
4115
4116         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
4117         If the mouse hasn't actually moved, ignore these messages so the currently
4118         highlighted menuitem isn't reset to the one under the mouse.
4119         [Fixes bug #333668]
4120
4121 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
4122
4123         * PropertyGridView.cs: When the property changes Invalidate the GridItem
4124         in order for the properties with UITypeEditor.GetPaintValueSupported == true
4125         to reflect the change visually.
4126         [Fixes bug #338998]
4127
4128 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
4129
4130         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
4131         to 2.0 button drawing.
4132         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
4133         the button text is tall enough for one line.  LineLimit says it will
4134         always draw at least one line, but it is a lie.
4135         [Fixes bug #324941]
4136
4137 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
4138
4139         * XplatUIStructs.cs, X11Keyboard.cs :
4140           added some more VK_* keys to be handled.
4141
4142 2008-01-16  Andreia Gaita <avidigal@novell.com>
4143
4144         * Control.cs: Check if there is a container before setting or getting
4145         the validation flag.
4146
4147 2008-01-16  Andreia Gaita <avidigal@novell.com>
4148
4149         * ContainerControl.cs: Add flag to track if a control cancels validation, 
4150         so we don't fire click events.
4151
4152         * Control.cs: 
4153         - (HandleClick) Check if validation was cancelled before  firing the click
4154         events (doubleclicks are fired, but not clicks)
4155         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
4156         ContainerControl.set_ActiveControl, but in the case of non-selectable
4157         controls, like a Label, activecontrol is not set. 
4158
4159         * ButtonBase.cs: Only fire clicks if validation passes.
4160         
4161         Fixes #353310
4162
4163 2008-01-16  Geoff Norton  <gnorton@novell.com>
4164
4165         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
4166         trunk
4167
4168 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
4169
4170         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
4171         SelectedPath, just display the default dialog instead of crashing.
4172         [Fixes bug #348989]
4173
4174 2008-01-16  Geoff Norton  <gnorton@novell.com>
4175
4176         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
4177         AddExpose instead of trusting apples compositing manager which doesn't
4178         work for our use case.  Remove some dead code causing warnings and 
4179         redecorate some other code to prevent warnings.
4180
4181 2008-01-16  Geoff Norton  <gnorton@novell.com>
4182
4183         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
4184         carbon signals us to redraw.  Fixes another portion of the flickering bug
4185
4186 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
4187
4188         * Form.cs: Prevent the MdiParent property to be set when value is the same
4189         as value already set. Fixes bug #328019.
4190
4191 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
4192
4193         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
4194         it prevents NRE when closing mdi child windows. Fixes bug #325211.
4195
4196 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
4197
4198         * InternalWindowManager.cs: Invalidade close button after mouse up when 
4199         mdi form is prevented to close.
4200
4201 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
4202
4203         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
4204         thanks to Andy Hume. Fixes bug #325433.
4205
4206 2008-01-16  Andreia Gaita <avidigal@novell.com>
4207
4208         * LinkLabel.cs: Reset focused_index when resellecting the control.
4209         Fixes #323190
4210
4211 2008-01-15  Geoff Norton  <gnorton@novell.com>
4212
4213         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
4214         messages.
4215
4216 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
4217
4218         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
4219         of truncate.
4220
4221 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
4222
4223         * ContainerControl.cs: Setting AutoScaleMode to anything should set
4224         Form.AutoScale to false.
4225         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
4226         AutoScaleBaseSize should be changed on Font change unless it has been
4227         explicitly set.
4228         [Fixes bug #353827]
4229
4230 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
4231
4232         * MenuAPI.cs: On instance of MenuTracker check if source control is
4233         ToolStripOverflow and use properly method to find form.
4234         [Fixes bug #338511]
4235
4236 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
4237
4238         [Fixes bug #323241 Transparent toolbar support]
4239
4240         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
4241         is flat.
4242
4243         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
4244         defined in control style to mimic win32 behavior.
4245
4246         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
4247         it will be transparent.
4248
4249 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
4250
4251         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
4252         CreateParams for ToolBar controls.
4253
4254 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
4255
4256         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
4257         FixedToolWindow, SizeableToolWindow, or None for border styles have
4258         different minimum sizes than regular forms.  Implemented to fix
4259         regression in PDN with toolbox being too wide.
4260
4261 2008-01-14  Andreia Gaita <avidigal@novell.com>
4262
4263         * HtmlElementCollection.cs: Implemented
4264
4265         * HtmlElement.cs: Implemented:
4266           - All
4267           - InnerHtml
4268           - InnerText
4269           - Id
4270           - Name
4271           - FirstChild
4272
4273         * HtmlDocument.cs: Implemented GetElementsByTagName.
4274
4275 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
4276
4277         * Screen.cs: Stub BitsPerPixel to always return 32.
4278
4279 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
4280
4281         * Form.cs: Implement RestoreBounds.
4282
4283 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
4284
4285         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
4286         Sebastien and his fabulous magical problem-finding machine:
4287         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
4288         respect the value set.
4289
4290 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
4291
4292         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
4293         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
4294
4295 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4296
4297         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
4298         messages (to match .Net), we need to remove the capture ourselves.
4299
4300 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
4301
4302         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
4303         will process the message and close our window.
4304         [Fixes bug #324328]
4305
4306 2008-01-10  Geoff Norton  <gnorton@novell.com>
4307
4308         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
4309         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
4310         window manager.
4311
4312 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
4313
4314         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
4315         failing test.
4316
4317 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
4318
4319         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
4320         Linux doesn't care, having a minimum matches MS and keeps the window
4321         from becoming too small to use window decorations.
4322         [Fixes bug #338996]
4323
4324 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
4325
4326         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
4327         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
4328         control.  [Fixes bug #325419]
4329
4330 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
4331
4332         * ComboBox.cs: Guard against an NRE if the user open a new form from a
4333         SelectedIndexChanged event.  This closes the combobox dropdown, and we
4334         were trying to dispose it.  [Fixes bug #352830]
4335
4336 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
4337
4338         * Control.cs, Form.cs: Implement the necessary semantics for
4339         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
4340         to determine if a focus rectangle should be drawn.
4341         * PropertyGrid.cs: Fix property visibility to match override.
4342         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
4343
4344 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
4345
4346         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
4347         [Fixes bug #323552]
4348
4349 2008-01-09  Geoff Norton  <gnorton@novell.com>
4350         
4351         * XplatUICarbon.cs: Scroll windows in the correct direction.
4352
4353 2008-01-09  Geoff Norton  <gnorton@novell.com>
4354
4355         * XplatUICarbon.cs: Track all created utility windows so we can hide them
4356         when the app is deactivated or spaces is enabled.
4357
4358 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4359
4360         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
4361         extra separation pixel for the label rect origin if SmallImageList is
4362         null, and thus we don't need that separation between icon and label
4363         rects.
4364         Patch by Ernesto Carrea.
4365         Fixes # 340195.
4366
4367 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
4368
4369         * StatusStrip.cs: Invalidate after completing a layout.  The base
4370         OnLayout does this, but we don't call the base.
4371         * ToolStripItem.cs: Revert the previous change to invalidate after
4372         the item moves.
4373         [Fixes bug #351341 better.]
4374
4375 2008-01-07  Geoff Norton  <gnorton@novell.com>
4376
4377         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
4378         not a notification to exit the application.  Listen for WM_QUIT
4379         instead.
4380
4381 2008-01-07  Andreia Gaita <avidigal@novell.com>
4382
4383         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
4384
4385 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
4386
4387         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
4388         so it can repaint at the correct location.
4389         [Fixes bug #351341]
4390
4391 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4392
4393         * ListControl.cs: SelectedValue should return a null value if
4394         SelectedIndex is -1. Also, when setting it, it should throw an
4395         ArgumentNullException if the value is null, as well as taking
4396         into account the String.Empty value, instead of ignoring it (we have
4397         tests for that now).
4398         Fixes part of #324286.
4399
4400 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
4401
4402         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
4403         SelectionStart is updated after pressing enter.  Fixes bug #351918.
4404
4405 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4406
4407         * TextControl.cs: Revert a piece r92316 that prevented the fix
4408         from working when there were multiple tags in the text box.
4409         Fixes bug #351881.
4410
4411 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4412
4413         * TextControl.cs: Apply patch from Luke Page that prevents an
4414         NRE when determining the beginning of a paragraph.
4415         Fixes bug #351886.
4416
4417 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4418
4419         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
4420         caret gets moved with clicking away from a selected block of
4421         text.  Fixes bug #351885.
4422
4423 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4424
4425         * TextControl.cs: Apply patch from Luke Page that takes line
4426         alignment into account for mouse selection, so that center and
4427         right aligned text can be selected.
4428         Fixes bug #351881.
4429
4430 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4431
4432         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
4433         issues after loading an RTF file by using the correct line feeds.
4434         Fixes bug #351841.
4435
4436 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4437
4438         * TextControl.cs: When deleting multiple line selections, we need
4439         to invalidate every line beginning at the first line of the selection.
4440         Patch from Luke Page fixes bug #351791.
4441
4442 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4443
4444         * ListControl.cs: When getting a CurrencyManager.PositionChanged
4445         event, don't set SelectedIndex if the number of items is 1. This is
4446         because, for the first item, PositionChanged is fired _before_
4447         ItemChanged (the place where we actually populate the items), and
4448         leave us in a temporary invalid state (since items collection is
4449         empty).
4450         Fixes #349655.
4451
4452 2008-01-04  Geoff Norton  <gnorton@novell.com>
4453
4454         * XplatUICarbon.cs:  Create native toolwindows instead of
4455         the managed drawing ones.
4456
4457 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
4458
4459         * LineTag.cs: If the line doesn't have any characters, return
4460         0 for GetCharIndex.  Fixes an AOORE exception after certain
4461         caret movements.  Fixes bug #351683.  Patch by Luke Page.
4462
4463 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
4464
4465         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
4466         is hit when there is selected text, only the selected text gets
4467         deleted, not the character in front of the selection as well.
4468         Fixes bug #351578.
4469
4470 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4471
4472         * ComboBox.cs: When the values are displayed, calculate the
4473         ComboListBox scrollbar's LargeChange based on the visible area's
4474         height and  the actuall ItemHeight, instead of calculating it
4475         based on MaxDropItems value, since it's not used by our _current_ 
4476         2.0 profile.
4477         Fixes #332366.
4478
4479 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
4480
4481         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
4482         Patch from Luke Page that fixes issues with font colors and styles
4483         not showing up in a readonly RichTextBox.  Fixes bug #324354.
4484
4485 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
4486
4487         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
4488         from Luke Page.  This one fixes bug #349926.
4489
4490 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4491
4492         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
4493         an item in the IBindingList source changes with
4494         ListChangedType.ItemAdded. Ignore for now firing the event for other
4495         changes, since we want to have tests for those cases as well.
4496
4497 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
4498
4499         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
4500         created.
4501
4502 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
4503
4504         * TextBoxTextRenderer.cs: Implement a cache for measuring each
4505         character.  This is effective because the typical usage of a
4506         TextBox is with a limited amount of fonts and characters, and
4507         the current implementation of TextBox measures everything one
4508         character at a time.  Another second or two speedup for bug #347238.
4509
4510 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
4511
4512         * Control.cs: Rewrite the Font getter to only query the parent's
4513         Font property once instead of twice.  Since this operation is
4514         recursive, the queries were growing exponentially as the control
4515         tree got deeper.  Another second or two speedup for bug #347238.
4516
4517 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
4518
4519         * Control.cs: Avoid setting a parent (and more importantly, updating
4520         the zorder of all its children) if the parent is already correct in
4521         WmShowWindow.  Decreases the startup time of the test case on bug
4522         #347238 from 35 seconds to 11 seconds.
4523
4524 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4525
4526         * X11Dnd.cs: When the dnd operation has started and we are 
4527         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
4528         This is done to match .Net, which doesn't send those messages after
4529         dnd operation was completed/cancelled.
4530         Fixes #349922.
4531
4532 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
4533
4534         * ToolStrip.cs: Previous change should be != null, not == null.
4535         Thanks Gert!
4536
4537 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
4538
4539         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
4540         user may have moved the mouse off the current item during the event.
4541
4542 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4543
4544         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
4545         calling GetItemAt for every MouseMove event by also taking into
4546         account whether any mouse button is pressed (probably dragging); 
4547         if so, we can call GetItemAt, and if not, try to not call it 
4548         (GetItemAt can be quite expensive when used with a large number of items).
4549
4550 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4551
4552         * ListView.cs: Implement -finally- support for dnd, by calling
4553         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
4554         authors list ;-).
4555         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
4556         simple calculation of distances for all the items in the owner
4557         listview.
4558
4559 2007-12-21  Geoff Norton  <gnorton@novell.com>
4560
4561         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
4562         for windows that are originally created as invisible.  Fixes missing
4563         main window in paint-mono.
4564
4565 2007-12-21  Geoff Norton  <gnorton@novell.com>
4566
4567         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
4568         subclass handler for com.novell.mwfview subclassing HIView.  Implement
4569         Pasteboard and Dnd methods.
4570
4571 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4572
4573         * ListBox.cs: When we got focus, give focus to first item if there
4574         wasn't any pervious focused item. Also update navigation to depend on
4575         SelectedIndex rather than FocusedItem, just as .Net does.
4576         Fixes #349174.
4577
4578 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4579
4580         * ListBox.cs: Both FindString and FindStringExact methods must do an
4581         case insensitive search, should allow the last valid index to be
4582         passed in the overload taking an initial index, and should also
4583         continue searching from the top back to the specified index when it
4584         reaches the bottom.
4585
4586 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
4587
4588         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
4589         redraw issue, and allows RichTextBox to draw colored text even while
4590         disabled or readonly.
4591
4592 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
4593
4594         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
4595         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
4596         and doesn't grey text in a disabled RichTextBox.
4597
4598 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
4599
4600         * RichTextBox.cs: Apply patch from Luke Page that adds better support
4601         for many RTF commands: quad alignment, separate formatting for blocks
4602         inside groups, and ParDef support.  Makes the test case from bug #324589
4603         look much better.
4604
4605 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
4606
4607         * LineTag.cs: Fix an error in the new Draw method that caused
4608         a crash when rendering the document on bug #324589.
4609
4610 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
4611
4612         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
4613         TextControl.cs: Apply patch from Luke Page that adds support
4614         for URL links in RichTextBox.
4615         [Fixes enhancement #342516]
4616
4617 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
4618
4619         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
4620         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
4621
4622 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4623
4624         * ListBox.cs: When a key gets pressed, try to find a string
4625         if the key is a character or a digit.
4626         Fixes #343971.
4627
4628 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
4629
4630         * TableLayoutPanel.cs: Remove some unused variables.
4631
4632 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
4633
4634         * DateTimePicker.cs: Commit patch from Luke Page that ensures
4635         we don't end up at an invalid date when we click the up/down
4636         spinner to change the month or year.  Fixes bug #348682.
4637
4638 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
4639
4640         * Application.cs: Calling Exit in 2.0 should chain to the
4641         Exit (CancelEventArgs) version so it can be cancelled.
4642         * Form.cs: Create a flag to allow raising the Closing
4643         events to be skipped.  We raise them once in Application.Exit
4644         and don't want to raise them again when the Form is actually
4645         closed.  [Fixes bug #349073]
4646
4647 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
4648
4649         * ToolStripDropDown.cs: Guard against an NRE when there
4650         hasn't been a mainform set in the application context.
4651         [Fixes bug #349108]
4652
4653 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4654
4655         * ListBox.cs: When SetBoundsCore gets called, besides
4656         calling UpdateScrollBars, update the value of
4657         last_visible_index, since we could need to show more items
4658         than before, and we need to let the paint routines know that.
4659         Fixes #344445.
4660
4661 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4662
4663         * ListView.cs: Add DesignerSerializationVisibility attribute to
4664         InsertionMark property.
4665         * ListViewItem.cs: Add same attribute to Position property.
4666
4667 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4668
4669         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
4670         is 2.0 only.
4671
4672 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
4673
4674         * ThemeWin32Classic.cs: Don't draw the background on a
4675         flat button if there is a background image.
4676         [Fixes bug #348649]
4677
4678 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4679
4680         * ListBox.cs: If we remove the item currently selected,
4681         remove it not only from SelectedItems, but also
4682         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
4683         the items count decreased and focused_item has bigger value than that.
4684
4685 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
4686
4687         * Control.cs: Perform our layout after we resize ourselves
4688         if we had to adjust our AutoSize.  Missed commit for bug
4689         #346246.
4690
4691 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
4692
4693         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
4694         we can provide an implementation of AutoSize.
4695         [Fixes bug #346246]
4696
4697 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4698
4699         * ListBox.cs: Add the internal overload Sort (bool paint),
4700         to indicate whether we actually need a paint or we will
4701         call Refresh ourselves. This way we don't request a paint
4702         _before_ having an updated and valid layout.
4703         Fixes #347233.
4704
4705 2007-12-12  Andreia Gaita <avidigal@novell.com>
4706
4707         * XPlatUIX11.cs: Send paint messages when updating a systray icon
4708         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
4709         properly invalidated. 
4710         Fixes #324237
4711
4712 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4713
4714         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
4715         don't simply assign it to our internal group field, but instead 
4716         use our Group property, which should do all the neccessary work
4717         required to support groups. Fixes an issue reported to me (mail) by a 
4718         guy using this new feature.
4719
4720 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
4721
4722         * Control.cs: Use Scale instead of ScaleControl to ensure the
4723         whole hierarchy gets scaled.
4724         [Fixes bug #347282]
4725
4726 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
4727
4728         * DateTimePicker.cs: Don't set the internal MonthCalendar's
4729         Parent property.  Doing this causes the control to be hosted by
4730         the Form instead of being a popup window.
4731         [Fixes bug #347665]
4732
4733 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
4734
4735         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
4736         at an index higher than Count, just use Add instead of Insert.
4737         [Fixes bug #347669]
4738
4739 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
4740
4741         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
4742         DrawPictureBox, this is handled by Control.PaintBackground.
4743         [Fixes bug #347276]
4744
4745 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
4746
4747         * MenuAPI.cs: When process menu keys return true by default only if menu is
4748         active. Fixes bug #342892.
4749
4750 2007-12-09  Andreia Gaita <avidigal@novell.com>
4751
4752         * Control.cs: check if windows are actually mapped before
4753         trying to zorder. Fixes #342509, #346955
4754
4755 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4756
4757         * ListView.cs:
4758         * ListViewInsertionMark.cs:
4759         * ThemeWin32Classic.cs: Implement the drawing side of the
4760         new 2.0 ListView.InsertionMark property.
4761
4762 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
4763
4764         * CurrencyManager.cs: Silence some debug spew.
4765
4766 2007-12-07  Geoff Norton  <gnorton@novell.com>
4767         
4768         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
4769         masks for our children as well as siblings to avoid having to query
4770         Quartz for this information.
4771         * XplatUICarbon.cs: Implement a delegate based system to pass
4772         information to System.Drawing.  Implement Async methods.  Remove
4773         the hack for the resize thumb and imlpement a transparent Grow Box.
4774         Rework the messaging system to proplery create window's and messages,
4775         fixes TabControl.
4776
4777 2007-12-06  Andreia Gaita <avidigal@novell.com>
4778
4779         * X11Keyboard.cs: Use Xutf8LookupString to support international 
4780         characters under alternate codepages. Patch from #340878
4781
4782 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4783
4784         * ListView.cs: When doing layout computations, set position in the
4785         ListView instances (we cache the position just as .Net does).
4786         * ListViewItem.cs: New internal setter method for Position. Also set
4787         position field as also available in 1.1, since we are going to use it
4788         now in the common case.
4789
4790 2007-12-06  Andreia Gaita <avidigal@novell.com>
4791
4792         * Control.cs: When removing controls, get the actual container
4793         to notify about active control changes. Fixes 341314.
4794
4795 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4796
4797         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
4798
4799 2007-12-05  Andreia Gaita <avidigal@novell.com>
4800
4801         * Control.cs: When updating the zorder, ignore windows that are not
4802         mapped. Fixes #342509
4803
4804 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4805
4806         * ListViewItem.cs: Actually implement serialization on this class.
4807
4808 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
4809
4810         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
4811         LinkCollection. Spaces to tabs, and removed extra tabs.
4812
4813 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
4814
4815         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
4816           tests to fail (hopefully).
4817
4818 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
4819
4820         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
4821         the image margin so custom renderers can correctly place it.
4822
4823 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
4824
4825         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
4826         so custom renderers can correctly place it.
4827
4828 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
4829
4830         * Application.cs: Let WM_CHAR messages flow through to controls
4831         hosted in Strips.  [Fixes bug #343972]
4832
4833 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
4834
4835         * ToolStripManager.cs: Guard against an NRE I ran into.
4836
4837 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
4838
4839         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
4840         a Link is manually added to the Links collection, we need to set
4841         its owner, so it can invalidate properly.
4842         [Fixes bug #344012]
4843
4844 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4845
4846         * ListView.cs: When changing ListViewItem.Position (which calls
4847         ListView.ChangeItemLocation), invalidate not only the area
4848         corresponding to the main item, but also to the area occupied
4849         by the items being moved.
4850
4851 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4852
4853         * ListView.cs: When changing the position of a given item,
4854         don't use item bounds, but item areas (which includes the item spacing
4855         between them). Also, use first/last position if the requested
4856         position is outside bounds (as .Net does). Invalidate the previous and
4857         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
4858         in a specific position, instead of directly accessing Items collection
4859         (this is done to get the right item - remember an Item can have a
4860         different position in the grid than in the Items collection).
4861
4862 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
4863
4864         * MessageBox.cs: Calculate text area instead of just top left, this rect 
4865         area will be used in DrawString. Fixes bug #343364.
4866
4867 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
4868
4869         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
4870         screen width. Partially fixes bug #343364.
4871
4872 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
4873
4874         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
4875         code inside recalculate, it makes code more simple.
4876
4877 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
4878
4879         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
4880         between update or add icon. Fixes bug #324344.
4881
4882 2007-11-21  Andreia Gaita <avidigal@novell.com>
4883
4884         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
4885         window manager, since that stretches the drawing area to include
4886         the window decorations, and they get hidden. Reverts r84444 and fixes
4887         #335849 and #342790 (mdi and pdn3 regression)
4888
4889 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4890
4891         * ListView.cs: When setting focused item, try to give focus to the
4892         previous one _only_ if the previous one remains valid. 
4893         Fixes #342504.
4894
4895 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
4896
4897         * Application.cs: Revert r89650, as it broke a common case to fix
4898         an obscure case.  Fixes bug #342606.
4899
4900 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
4901
4902         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
4903
4904 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
4905
4906         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
4907         alignment. [Fixes #324228]
4908
4909 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
4910
4911         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
4912         [Fixes bug #342123]
4913
4914 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
4915
4916         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
4917         it prevent problems when empty captions. [Fixes #342141]
4918
4919 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
4920
4921         * Label.cs: Use Size instead of None.  Fixes bug #342077.
4922
4923 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4924
4925         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
4926
4927 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
4928
4929         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
4930         but there isn't a MdiContainer.
4931         [Fixes bug #342358]
4932
4933 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
4934
4935         * TextControl.cs: Don't recalculate document if the recalc_start and
4936         recalc_end hasn't changed.
4937         [Fixes bug #342505]
4938
4939 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
4940
4941         * DataGridViewTextBoxCell.cs: Removed CWL.
4942
4943 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4944
4945         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
4946
4947 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
4948
4949         * TextControl.cs: Missed some code for bug 341534 to trigger a
4950         recalculation when the font changes.
4951
4952 2007-11-16  Andreia Gaita <avidigal@novell.com>
4953
4954         * Control.cs: When updating the zorder, check if the child to update is
4955         the same control that is set to always be on top (i.e., scrollbars), and 
4956         just put it on top directly. Fixes BadMatch error on pdn3
4957
4958 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4959
4960         * ListView.cs: Throw the needed exceptions for FindNearestItem.
4961
4962 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
4963
4964         * Control.cs: Don't perform a new layout when a label changes its text,
4965         cause label handles its own autosizing.
4966         [Fixes bug #342077]
4967
4968 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4969
4970         * ListView.cs: Implement 2.0 FindNearestItem methods.
4971
4972 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
4973
4974         * ToolStripPanel.cs: Make Join at least add the control to the panel,
4975         even if the rest of what Join does isn't supported.  Add some more
4976         support for vertical toolbars.
4977         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
4978         [Fixes the application breaking parts of bug #341998]
4979
4980 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
4981
4982         * ToolStripItem.cs: When determining if we have a check/image margin,
4983         we need to look at ShowCheckMargin as well as ShowImageMargin.
4984
4985 2007-11-15  Geoff Norton  <gnorton@novell.com>
4986
4987         * XplatUIOSX.cs: Rename to...
4988         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
4989         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
4990
4991 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
4992
4993         * KeysConverter.cs: The default values should be an array of Keys, not
4994         strings.  Also, the array has more values for 2.0.
4995         [Fixes bug #341851]
4996
4997 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
4998
4999         * Application.cs: Change ExecutablePath to use 
5000         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
5001         [Fixes bug #323552]
5002
5003 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
5004
5005         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
5006         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
5007         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
5008         be ignored.  Create a new GetLineEnding that can specify which types of
5009         line endings to look for.  On Insert, only create new lines for \n and \r\n.
5010         [Fixes bug #324274]
5011
5012 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
5013
5014         * TextBoxBase.cs: As we loop through each line changing the font, tell
5015         the document that the line needs to be recalculated.  Fixes bug #341534.
5016
5017 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
5018         [Another round of refactoring]
5019         * Line.cs: Add DeleteCharacters.
5020         * LineTag.cs: Add Delete.
5021         * TextBoxBase.cs: Update to use new methods.
5022         * TextControl.cs: Refactor the Delete* methods.
5023
5024 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
5025
5026         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
5027         the patch. [Fixes #324856]
5028
5029 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5030
5031         * ListView.cs:
5032         * ListViewItem.cs: Add an initial implementation of
5033         2.0 ListViewItem.Position getter.
5034
5035 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5036
5037         * ListView.cs: Add a reordered_items_indices array, to allow us
5038         to have a different sorting than that of Items (the sorting in Items
5039         could not match the actual sorting in screen). This is needed to
5040         implement a pair of 2.0 features.
5041         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
5042         actual position in the ListView grid, since it could have a position
5043         different than its Index (position in ListViewItemCollection). 
5044
5045 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
5046
5047         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
5048         not draw partial lines.
5049         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
5050         LineLimit flag from the base is preserved.
5051         Fixes the windows part of bug #338965.
5052
5053 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
5054
5055         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
5056         so that it can be canceled in KeyPress.
5057         Fixes bug #340078.
5058
5059 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5060
5061         * ListView.cs: In ItemControl, reset mouse-handling related
5062         fields even if we dont' have items (we still should reset them when
5063         we had items but then called Items.Clear). Partially based in a patch
5064         by George Giolfan.
5065         Fixes #338399.
5066
5067 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
5068
5069         * Application.cs: In ProductVersion first try AssemblyFileVersion
5070         before falling back to assembly version. Fixes bug #339787.
5071
5072 2007-11-08  Andreia Gaita <avidigal@novell.com>
5073
5074         * HtmlElement.cs: Implement InnerText setter.
5075         * WebBrowserBase.cs: Implement Navigated event support.
5076         Add flag to track when the browser "document" is ready to be retrieved.
5077         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
5078         Make sure browser document is ready before retrieving it.
5079         Clean up cached objects (document) when moving to a new page through
5080         any of the navigation methods.
5081         Use the new Mono.WebBrowser.INavigation interface to control navigation.
5082         Implement OnNavigated event.
5083
5084 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
5085
5086         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
5087         DrawLinkLabel, this is handled by OnPaintBackground.
5088         Fixes bug #339565, part II.
5089
5090 2007-11-07  Andreia Gaita <avidigal@novell.com>
5091
5092         * Control.cs: Revert r88915. Selecting text on a textbox depends on
5093         getting a Select call on click, so this call needs to be here for now.
5094         Unfixes #325809
5095
5096 2007-11-07  Geoff Norton  <gnorton@novell.com>
5097
5098         * OSXStructs.cs: Add the kEventClassApplication constants.
5099         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
5100         application is deactivated otherwise Menu overlays linger on top of
5101         other application windows.
5102
5103 2007-11-07  Geoff Norton  <gnorton@novell.com>
5104
5105         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
5106         dont support cursors yet anyways.  This allows Reflector to run.
5107
5108 2007-11-07  Geoff Norton  <gnorton@novell.com>
5109
5110         * XplatUIOSX.cs: Implement DragSize.
5111
5112 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5113
5114         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
5115         ItemControl, request the focus, as .Net does. This is needed after 
5116         Control does not request focus anymore when it receives a
5117         WM_LBUTTONDOWN.
5118
5119 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
5120
5121         * Label.cs: Make DrawImage internal so it can be called from Theme code.
5122         Remove the DrawImage call from OnPaint.
5123         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
5124         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
5125         but before we draw the text for DrawLabel and DrawLinkLabel.
5126         Fixes bug #339565.
5127
5128 2007-11-05  Andreia Gaita <avidigal@novell.com>
5129
5130         * Control.cs: Remove select call on click. Fixes #325809
5131
5132 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5133
5134         * ListViewItem.cs: Add 2.0 Position property getter.
5135
5136 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5137
5138         * ListView.cs: Add 2.0 BackgroundImageTiled property.
5139         Also, to make it work properly, change item's BackColor and
5140         BackgroundImageLayout as needed.
5141         * ThemeWin32Classic.cs: Don't fill any background rectangle 
5142         in ListView.ItemControl when drawing items; just let the Control
5143         base implementation fill it.
5144
5145 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5146
5147         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
5148         as well as adding a custom 'dummy' Converter, as .net does.
5149
5150 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5151
5152         * PropertyGridView.cs: When clicking drop-down button,
5153         select an index in the listbox only if our standard values collection 
5154         has one or more items.
5155
5156 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5157
5158         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
5159         property.
5160
5161 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
5162
5163         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
5164         the value is not changed. This ensure a pushed button remains in that
5165         state when clicked again. When switching the value of PropertySort
5166         between Categorized and CategorizedAlphabetical, do not update the
5167         grid items and do not fire a PropertyChangedEvent. When clicking the
5168         sorting buttons, do not modify the PropertySort value when switching
5169         between Categorized and CategorizedAlphabetical but only update the
5170         button state.
5171
5172 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
5173
5174         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
5175         formatting.
5176         * PropertyGrid.cs: Also put Categorized button in pushed state when
5177         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
5178         for help description label.
5179
5180 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5181
5182         * ListView.cs: When calculating the biggest item for a given column,
5183         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
5184         the item's width.
5185
5186 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
5187
5188         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
5189         value for PropertySort on 1.0 profile. PropertySortChanged event
5190         should only be fired on 2.0 profile. Fixed NullReferenceException
5191         in UpdateSortLayout when PropertyGrid contains no items.
5192
5193 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
5194
5195         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
5196         [Fixes bug #338554]
5197
5198 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5199
5200         * ListViewItem.cs: Implement 2.0 IndentCount property.
5201
5202 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5203
5204         * X11Dnd.cs: When sending status in a dnd operation, compare current
5205         effect with the 'allowed' field instead of 'drag_data.Allowed', since
5206         the later is only created when a Winforms application is both the
5207         source and the target, but not when we are the target only.
5208         Fixes part of #324251.
5209
5210 2007-11-01  Geoff Norton  <gnorton@novell.com>
5211
5212         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
5213         order of Z-Order.
5214         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
5215         children out of the drawing view on mac.
5216         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
5217         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
5218         
5219 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
5220
5221         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
5222         on the non-hosted-control part of it shouldn't do anything.
5223         Fixes part of bug #327498.
5224
5225 2007-11-01  Andreia Gaita <avidigal@novell.com>
5226
5227         * WebBrowserBase.cs: revert previous change, resize can be called anytime
5228
5229 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
5230
5231         * Application.cs: When a toolstrip has the keyboard input loop, let messages
5232         it does not use flow through to controls that are hosted in menus.
5233         Same with mouse clicks.
5234         * Form.cs: Don't close all menus on click if the click is on a
5235         control hosted in a menu.
5236         Fixes part of bug #327498, and part of bug #325969.
5237
5238 2007-10-31  Andreia Gaita <avidigal@novell.com>
5239
5240         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
5241
5242 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
5243
5244         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
5245         Addresses an issue raised in bug #336218.
5246
5247 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
5248
5249         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
5250         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
5251
5252 2007-10-30  Andreia Gaita <avidigal@novell.com>
5253
5254         * ContainerControl.cs: Check if the active control is a
5255         child of a removed control and update active_control accordingly.
5256         Fixes #329718
5257
5258 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
5259
5260         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
5261         or the MaxDate.  Fixed bug #337693.
5262
5263 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
5264
5265         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
5266         after calling SetWindowLong for a form, to force an immediate NC refresh.
5267         Fixes first part of bug #325150.
5268
5269 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
5270
5271         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
5272         simple.  Fixes the last part of bug #322668.
5273
5274 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
5275
5276         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
5277         needs to be TopMost as well, or else the MessageBox is under the form.
5278         Patch by George fixes bug #325300.
5279
5280 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5281
5282         * X11Dnd.cs: When starting a new drag operation, reset the static
5283         'dropped' field to false (previously the implementation didn't reset
5284         it and got confused after the first drag).
5285         Fixes #325071.
5286
5287 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5288
5289         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
5290         items instead of re-creating them all. For this purpose we now cache
5291         both CategoryGridEntry items and the GridEntries for the main object's
5292         properties.
5293         * GridItem.cs: Make SetParent method abstract.
5294         * GridEntry.cs: Override the SetParent method (already there, but now
5295         we override it).
5296         Fixes #324866.
5297
5298 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5299
5300         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
5301         depending on its depth (as .Net does). Update the needed values in
5302         MouseDown handler. Also draw the plus/minus rect after the label,
5303         so we don't draw on top of it.
5304
5305 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
5306
5307         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
5308         processed by forms or controls when menu is active. [Fixes #333548]
5309
5310 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
5311
5312         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
5313         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
5314         focus on mouse over.
5315
5316 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
5317
5318         * TextControl.cs: Code cleaning, simplifying.
5319
5320 2007-10-24  Geoff Norton  <gnorton@novell.com>
5321
5322         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
5323         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
5324
5325 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
5326
5327         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
5328         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
5329
5330 2007-10-24  Andreia Gaita <avidigal@novell.com>
5331
5332         * SendKeys.cs: apply jpobst's patch to bug #332409
5333
5334 2007-10-23  Andreia Gaita <avidigal@novell.com>
5335
5336         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
5337         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
5338         for some reason
5339
5340 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5341
5342         * PropertyGridView.cs: If a property has an UIEditor available,
5343         make the drop-down/editor button available only if the property
5344         is _not_ read only.
5345
5346 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5347
5348         * PropertyGridView.cs: Don't make the grid item textbox 
5349         editable when a drop-down control is available, but 
5350         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
5351         true. The same bur the color of the grid item value's label.
5352
5353 2007-10-22  Geoff Norton  <gnorton@novell.com>
5354
5355         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
5356         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
5357         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
5358         driver.  Padd the bottom of all real windows so the resize thumb doesn't
5359         obscure scroll/status bars.
5360
5361 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
5362
5363         * WindowsFormsSection.cs: Implement.
5364
5365 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
5366
5367         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
5368         closed see #325434 patch.
5369
5370 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
5371
5372         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
5373         see #325434 patch.
5374
5375 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5376
5377         * PropertyGridView.cs: When showing the textbox for a grid item,
5378         have two local variables to store the read-only and non-editable
5379         status of a grid item (we were previously using just one variable
5380         to do this, when actually they are slightly different).
5381         Fixes part of #325023.
5382
5383 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5384
5385         * PropertyGridView.cs: When showing a drop-down list, try to get the
5386         values using TypeConverter.ConvertTo (to convert to a string). Fixes
5387         part of #325023.
5388
5389 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5390
5391         * PropertyGrid.cs: When updating a property and populating sub grid
5392         items, remove the previous ones, and invalidate the specific area.
5393         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
5394         area behind a grid item.
5395         * GridItemCollection.cs: Add an internal Clear method, to allow us to
5396         clean the items if needed (specially for controls implementing 
5397         ICustomTypeDescriptor and returning a variable number of properties).
5398         Fixes #324865.
5399
5400 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
5401
5402         * TextControl.cs: Clean up and document the Insert function.
5403
5404 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
5405
5406         * TextControl.cs: Make sure we know our start point for updating the view
5407         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
5408         update the view.
5409
5410 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
5411
5412         * ListView: Couple of corcompare fixes.
5413
5414 2007-10-17  Geoff Norton  <gnorton@novell.com>
5415
5416         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
5417         the title caption of real window.
5418
5419 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
5420
5421         * ErrorProvider.cs: Add the error provider's internal window to a 
5422         containercontrol when the parent changes.  [Fixes bug #329714]
5423
5424 2007-10-17  Geoff Norton  <gnorton@novell.com>
5425
5426         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
5427         When we make a new window; restore the old active window - fixes dialogs.
5428
5429 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5430
5431         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
5432         when modifying a property, and if found then invalidate as
5433         requested.
5434         Fixes part of #324865.
5435
5436 2007-10-17  Geoff Norton  <gnorton@novell.com>
5437
5438         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
5439         highly experimental.  Fixed coordinate translation.  Fixed window locations.
5440         Initial support for clipping. Implemented NC areas and menus.  Support for
5441         launching from command line from Will Johansson (wjohansson@atacomm.com).
5442         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
5443         wjohansson@atacomm.com)
5444         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
5445         Hwnds now track the existence of all of their children for Mac clipping.
5446     * XplatUI.cs: Re-enabled the native driver on the Mac.
5447
5448 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
5449
5450         * Line.cs: Move the InsertString function to here.
5451         * TextControl.cs: Cleanup some duplicate code, move some InsertString
5452         functionality to Line.
5453
5454 2007-10-17  Geoff Norton  <gnorton@novell.com>
5455
5456         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
5457
5458 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
5459
5460         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
5461         always setting value to true.
5462         * Form.cs: When changing AcceptButton, notify new and original button.
5463
5464 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
5465
5466         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
5467         a custom control that implements IButtonControl instead of an actual
5468         button.  [Fixes bug #334244]
5469
5470 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
5471
5472         * Form.cs: Change SelectActiveControl to internal, we need to call it in
5473         MdiWindowManager.
5474         
5475         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
5476         active control when activate a new mdi window.
5477         
5478         [Fixes bug #330495]
5479
5480 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
5481
5482         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
5483         is already added.
5484         [Fixes bug #333617]
5485
5486 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
5487
5488         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
5489         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
5490         so we always recalculate the whole document instead of just the new part.
5491         [Fixes bug #325082]
5492
5493 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
5494
5495         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
5496         when the mouse was to the left of the first character in the line.
5497
5498 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
5499
5500         * TextBox.cs, TextBoxBase.cs: When setting the document's password
5501         character, use the property instead of the variable so that the
5502         UseSystemPasswordChar property is taken into account.
5503         [Fixes bug #333748]
5504
5505 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5506
5507         * FolderBrowserDialog.cs: When a node is right clicked and the "New
5508         folder" contex menu appears, actually add the new folder to it, even
5509         if the node is not currently selected. Still use SelectedNode in case 
5510         there wasn't found a node under the pointer.
5511         Fixes #325452.
5512
5513 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5514
5515         * ListViewItem.cs: When retrieving the focused state, the index check
5516         should be done only when ListView is in virtualmode, as it is an
5517         expensive check for normal mode.
5518
5519 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5520
5521         * ListViewItem.cs: Make the focus state information be stored
5522         in the ListView, not in the items. This is done to match the MS
5523         behaviour for items that are not yet part of a ListView control;
5524         besides that, since just one item can be focused at the same time,
5525         we save a little space in our items.
5526         Fixes part of #331643.
5527
5528 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
5529
5530         * ComboBox.cs: When focus is lost, deselect the text. When setting
5531         text of control, select all text. Do not hide selection when control
5532         does not have focus. Fixes bug #333663.
5533
5534 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
5535
5536         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
5537         instead of ArgumentException when SelectionLength is set to negative
5538         value. Added same check to SelectionStart. Code formatting.
5539
5540 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
5541
5542         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
5543         or SelectionStart. Code formatting.
5544
5545 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5546
5547         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
5548         indicating that there was not a previous drag-and-drop operation going
5549         on.
5550         Fixes part of #325071.
5551
5552 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5553
5554         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
5555         AllowedEffect, don't let the drop operation happen. 
5556         Fixes #32580.
5557
5558 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
5559
5560         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
5561
5562 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
5563
5564         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
5565         is called.
5566
5567 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
5568
5569         * Line.cs: Add a method that finds the tag that contains an x-coord.
5570         * LineTag.cs: Add a method that finds the character at an x-coord using
5571         a binary search, the old way was a linear search.
5572         * TextControl.cs: Change FindCursor to use the above new methods.
5573
5574 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5575
5576         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
5577         value different than AllowedEffect). This should be possible to
5578         indicate that dragging is not possible in some control/area.
5579
5580 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
5581
5582         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
5583         descent internally when font changes instead of outside code being responsible
5584         for setting it.
5585         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
5586         instead of accessing internal variables.
5587
5588 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
5589
5590         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
5591         remove special treatment for ArrangeIcons since it is already arranged.
5592
5593 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
5594
5595         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
5596         the Win32 backend uses Color.
5597         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
5598         Refactor to store a Color instead of a Brush for Color.
5599
5600 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
5601
5602         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
5603         away.  I didn't realize I needed this when I refactored these earlier.
5604
5605 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
5606
5607         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
5608         store a Color structure and use the ResPool for back color instead of
5609         holding onto brushes.
5610
5611 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
5612
5613         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
5614         [Fixes bug #325592]
5615
5616 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
5617
5618         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
5619         to recalculate its size.  Fixes a part of bug #331052.
5620
5621 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
5622
5623         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
5624         button.  Fixes a part of bug #331052.
5625
5626 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
5627
5628         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
5629         the CreateParams.
5630         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
5631         decorations.
5632         [Fixes bug #330986]
5633
5634 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
5635
5636         * TextBoxTextRenderer.cs: Don't make this a static class, as static
5637         doesn't exist in 1.1.  (Thanks jb!)
5638
5639 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
5640
5641         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
5642         class to allow us to use different backends on different platforms.
5643         Linux uses the current [Draw|Measure]String backend.  Windows uses
5644         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
5645         of GDI+.  This leads to better looking text and more accurate measurements
5646         on Windows, fixing many of the reported issues.
5647         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
5648
5649 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5650
5651         * FolderBrowserDialog.cs: When running on Windows,
5652         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
5653         since we must match both "C:" and "C:\" forms. A little hackish, but
5654         works.
5655         Fixes #325247.
5656
5657 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5658
5659         * ListView.cs: When calling EndEdit (after editing an item),
5660         create a new instance of LabelEditEventArgs to keep clean the fields
5661         in case we get a new call to BeginEdit; also do Application.DoEvents
5662         to have focus in synch. This is a fix similar to TreeView's #325244.
5663
5664 2007-10-07  Andreia Gaita <avidigal@novell.com>
5665
5666         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
5667         * WebBrowserBase.cs: Added dialog support, calling the
5668           WebBrowserDialogs classes for each specific dialog type.
5669
5670 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5671
5672         * ListView.cs: When the last item is focused and is removed,
5673         move the focus to the previous item (in Items order). This is what MS
5674         does.
5675         Fixes #330415.
5676
5677 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5678
5679         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
5680         instead of the opposite (RemoveAt call Remove). This is a better
5681         approach since we don't need to to a pair of traversals when using
5682         RemoveAt.
5683
5684 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5685
5686         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
5687         check that the node actually has nodes, and if not, move to the
5688         parent node instead. 
5689         Fixes #325265.
5690
5691 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5692
5693         * TreeView.cs: Move the previous change to the general case (to
5694         call Application.DoEvents in cases where the method was called by
5695         different places).
5696
5697 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5698
5699         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
5700         call Application.DoEvents. This is neccessary when we get a call to
5701         BeginEdit from an AfterLabelEdit handler, because the focus always
5702         goes to the TreeView, even if we try to give it to our
5703         LabelEditTextBox. The call do Application.DoEvents seems to
5704         synchronize the focus, basically.
5705         Fixes #325244.
5706
5707 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5708
5709         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
5710         should be false. This also removes some nasty recursive paths. Fixes
5711         part of #325244.
5712
5713 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
5714
5715         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
5716         state to normal. Also resize window when cascading. Fixes #325433. 
5717
5718 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
5719
5720         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
5721         DefaultForeColor, as drawing empty colored lines isn't very useful.
5722         [Fixes the not drawn lines part of bug #324358]
5723
5724 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
5725
5726         * TextControl.cs: Move Line and LineTag classes into separate files to
5727         make things easier to find.
5728         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
5729         * RichTextBox.cs: Capitalize LineTag.Length property access.
5730         - This is purely an organizational/formatting change, no logic changed. -
5731
5732 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
5733
5734         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
5735         text is empty.
5736
5737 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
5738
5739         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
5740         text is empty.
5741
5742 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
5743
5744         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
5745         prevent calling of OnBackColorChanged. Fixes #325321.
5746
5747 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
5748
5749         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
5750         because control can be disabled because owner is disabled.
5751
5752 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
5753
5754         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
5755         string.Empty, test failed from previous change.
5756
5757 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
5758
5759         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
5760         is null, not String.Empty.  See bug #323038.
5761
5762 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
5763
5764         * TextControl.cs: Change the margins to match MS a little better.
5765         Still not perfect for X11 due to some DrawString differences, but
5766         is still an improvement over the old stuff.
5767         Partially fixes #324467.
5768
5769 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5770
5771         * FolderBrowserDialog.cs: When using MyComputer as 
5772         RootFolder, let absolute paths be considered as valid ones. Also, use
5773         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
5774         for Windows compatibility.
5775         Partially fixes #325247.
5776
5777 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5778
5779         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
5780         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
5781         method, since it causes the dialog to not select folders directly
5782         under the root path (when setting SelectedPath property).
5783
5784 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5785
5786         * TreeNode.cs: When calling Expand/Collapse and need to call 
5787         ExpandBelow/CollapseBelow respectively, take into account
5788         partially visible nodes (previously Expanding/Collapsing
5789         a partially visible node in the bottom was not updating its +- sign).
5790
5791 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5792
5793         * TreeView.cs: When calling Expand on a TreeNode, and we need to
5794         expand nodes below (ExpandBelow), scroll the entire Viewport
5795         area if the node is above it and not visible (instead of scrolling
5796         the area from node's Bottom, which applies only when the node is
5797         visible).
5798         Fixes #325266.
5799
5800 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5801
5802         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
5803         node in the bottom area (as .Net does). This is done to preserve the
5804         scroll position when ExpandAll is called before handle is created for
5805         the 1.1 profile (bottom area, as opposed to top area in 2.0).
5806         Fixes #324103.
5807
5808 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5809
5810         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
5811         bottom area if we are in fact not using the vertical scroll bar.
5812         Fixes #324824.
5813
5814 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
5815
5816         * Control.cs: Comment out a double buffering optimization that doesn't
5817         take into account invalidates created in OnPaint, causing the control
5818         to never be redrawn.  It would take quite a bit of work to work around
5819         this, but I left it commented with an explanation for later possible
5820         optimization.
5821         [Fixes bug #328681]
5822
5823 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
5824
5825         * Control.cs: Ask parent to perform a layout if control is AutoSize and
5826         the text changes.
5827         * RadioButton.cs: Implement GetPreferredSizeCore.
5828         [Fixes bug #328672]
5829
5830 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
5831
5832         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
5833         corcompare stuffs.
5834
5835 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
5836
5837         * Application.cs: Move the sync context stuff to Run instead of RunLoop
5838         so that it doesn't get uninstalled on modal forms.
5839         * Control.cs: Install a sync context when a control is created.
5840         * WindowsFormsSyncronizationContext.cs: Create a private static control
5841         to invoke on.  This is easier than trying to find a created control we
5842         can use.
5843         [Fixes bug #327608]
5844
5845 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
5846
5847         * Application.cs: Install a WindowsFormsSynchronizationContext in the
5848         run loop, and uninstall it when done.
5849         * WindowsFormsSynchronizationContext.cs: Implement.
5850         [Fixes the common case in bug #327608]
5851
5852 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
5853
5854         * DataGridViewCellCollection.cs: Added argument checks for indexers.
5855         Use case-insensitive lookup of column name in indexer. Code
5856         formatting.
5857
5858 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5859
5860         * TreeNode.cs: When collapsing or expanding a node, check whether its
5861         change will affect the visible area (we were previously doing a
5862         IsVisible check, but that check is not enough since children nodes
5863         could be still visible). Fixes part of #325266.
5864
5865 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
5866
5867         * TreeView.cs: Always select the first node when the TreeView gets
5868         focus if there is no currently selected node.
5869         [Fixes bug #324279]
5870
5871 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
5872
5873         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
5874         node being selected is null.
5875         [Patch from Yves Bastide fixes bug #326858]
5876
5877 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5878
5879         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
5880         whether all the parent nodes are expanded.
5881         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
5882         call RecalculateVisibleOrder if all previous nodes are expanded.
5883         Before that we were doing a IsVisible check, but sometimes the node
5884         is not in the visible area, but _should_already be ready, because of
5885         all previous nodes are expanded. Fixes #325259.
5886
5887 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
5888
5889         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
5890         portion of the item is clicked.
5891
5892 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
5893
5894         * TextControl.cs: Do not tell the system to move the cursor if the
5895         textbox isn't focused.  Fixes part of bug #322668.
5896
5897 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
5898
5899         * ComboBox.cs: When there are no items, do not show the dropdown if
5900         the down arrow is clicked.  Fixes part of bug #322668.
5901
5902 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
5903
5904         * ToolStripComboBox.cs: Manually set the size of this control in the
5905         constructor, as it doesn't seem to be the same as DefaultSize.
5906         Fixes a failing monobuild test.
5907
5908 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
5909
5910         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
5911         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
5912
5913 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
5914
5915         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
5916         Desktop.  This lets it work for people who have moved their desktops
5917         from the default location on windows.  For people who have not, both
5918         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
5919
5920 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
5921
5922         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
5923         but when the base constructor sets this, the control is null.  Set it
5924         again in the constructor.  Fixes a failing monobuild test.
5925
5926 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
5927
5928         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
5929         get called.
5930         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
5931         called.
5932
5933 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
5934
5935         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
5936         will handle it themselves.
5937         * ToolStripItem.cs: When deciding what the text of a tooltip should
5938         be, use the Text property instead of the text field.
5939         * ToolStripTextBox.cs: Handle tooltips.
5940         [Fixes bugs #325417 and #325973]
5941
5942 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
5943
5944         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
5945         left click.  Fixes the easy part of bug #325969.
5946
5947 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
5948
5949         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
5950         bug #325406, but set a minimum for StatusStrip to 22 to keep
5951         bug #325390 fixed.  I think this minimum would have been figured
5952         up automatically if the grip was actually a ToolStripItem, but it
5953         currently is not.
5954
5955 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5956
5957         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
5958         as this is apparently the actual value used by .Net. Also apply
5959         ItemPadding in Details view only, and decrease the general width padding,
5960         to have only the needed. This should fix #324340 in Windows too.
5961
5962 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5963
5964         * ListViewItem.cs: Don't Invalidate item if parent is inside
5965         a BeginUpdate/EndUpdate block. This prevents to have differences
5966         between the ListView and items state, as well as avoid some exceptions
5967         there.
5968         * ListView.cs: Make 'updating' field internal.
5969
5970 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
5971
5972         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
5973         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
5974         size if appropriate.
5975         Fixes reopened bug #325414.
5976
5977 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
5978
5979         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
5980         * ToolStripItem.cs: Invalidate before and after our new autosize when
5981         text changes.
5982         Fixes reopened bug #325390.
5983
5984 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
5985
5986         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
5987         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
5988         #325044.
5989
5990 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
5991
5992         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
5993
5994 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5995
5996         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
5997         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
5998         #82734.
5999
6000 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
6001
6002         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
6003         item to select when the ToolStrip is selected.
6004         * ToolStripControlHost: Realign the control when the bounds or visibility
6005         change.
6006         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
6007         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
6008         preferred height.
6009         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
6010         base.OnPaint.  Was causing text not to be drawn.
6011
6012 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
6013
6014         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
6015
6016 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6017
6018         * TreeView.cs: When creating the label edit text box,
6019         set is initially to Visible = false. This is done to
6020         prevent a confusion in the layout which makes it to lose
6021         focus when shown the first time. Fixes part of #82592.
6022
6023 2007-09-13 Andreia Gaita <avidigal@novell.com>
6024
6025         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
6026
6027 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
6028
6029         * ToolStrip.cs: Take Margin into account when calculating preferred
6030         size.  Also, allow preferred size to get smaller than the explicit
6031         size.
6032         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
6033         First step towards fixing bug #82747.
6034
6035 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
6036
6037         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
6038         full row select background over the plus/minus glyph.  Also, turn
6039         off the focus rectangle for full row select since MS doesn't seem
6040         to ever paint it.  [Fixes bug #81839]
6041
6042 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
6043
6044         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
6045         This was causing keyboard opened dropdowns to lose focus.
6046         [Fixes bug #82803]
6047
6048 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
6049
6050         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
6051         ClientRectangle instead.  [Fixes bug #82838]
6052
6053 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
6054
6055         * SplitContainer.cs: We can't reset Visible on every layout because
6056         someone may have set Visible = false explicitly on a SplitterPanel.
6057         Make sure when we switch orientation the SplitterDistance does not
6058         change.  Fixes two failing tests.
6059
6060 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6061
6062         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
6063         TextRenderer, since the latter is only available in 2.0.
6064
6065 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
6066
6067         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
6068         * SplitContainer.cs: Implement FixedPanel layouting.
6069
6070 2007-09-12  Andreia Gaita  <avidigal@novell.com>
6071
6072         * WebBrowserBase.cs: setup shutdown routine
6073
6074 2007-09-12  Andreia Gaita  <avidigal@novell.com>
6075
6076         * Application.cs: Let keyboard events that are targetted 
6077                 to non-mwf windows hosted inside mwf (as in, webbrowser),
6078                 propagate properly. Fixes keyboard handling on the webbrowser.
6079
6080 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6081
6082         * ListView.cs: When handling MouseUp event and we are 
6083         highligting a node with the mouse right button, don't trigger
6084         Before/AfterSelecting event, since we are not actually selecting
6085         the node.
6086
6087 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6088
6089         * TreeView.cs: When editing a node, modify the edit text box
6090         depending on the text length (as you are typing), like MS does.
6091
6092 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
6093
6094         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
6095         Override GetPreferredSizeCore to perform calculations.  Remove custom
6096         autosize logic.  [Fixes bug #82739]
6097
6098 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
6099
6100         * TextBoxBase.cs: Modified should default to false.
6101
6102 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
6103
6104         * Control.cs: Update the anchoring distances even when layout is supspended.
6105         Patch provided by George fixes bug #82805.
6106
6107 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
6108
6109         * Control.cs: Provide a setter for ExplicitHeight.
6110         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
6111         remove the hacks in here for requested_height.
6112         [Fixes bug #82749]
6113
6114 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
6115
6116         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
6117         Maximum to lower that its current Value caused an ArgumentException by setting
6118         the Value to the new Maximum.
6119
6120 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
6121
6122         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
6123         handle moves to the closest tick when it is being dragged.
6124         [Fixes bug #82751]
6125
6126 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
6127
6128         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
6129         can't let them count as real items when calculating where to merge in the
6130         user's items.  [Fixed bug #82786]
6131
6132 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
6133
6134         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
6135         who want to add a menu item directly onto a toolstrip.
6136         [Fixes bug #82775, part II]
6137
6138 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
6139
6140         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
6141         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
6142         don't set it to available.
6143         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
6144         [Fixes bug #82727, part II]
6145
6146 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
6147
6148         * StatusStrip.cs: Change item placement to None if not visible.
6149         * ToolStripItem.cs: Invalidate when InternalVisible changes.
6150         These should have been committed to fix 82723, but I missed them.
6151
6152 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
6153
6154         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
6155         Click, and that it is only called once.
6156         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
6157         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
6158         dropped down.
6159         [Fixes bug #82775]
6160
6161 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6162
6163         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
6164         to match .Net.
6165         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
6166         instead of 8, just like above. Partially fixes #82734.
6167
6168 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6169
6170         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
6171         fixes #82734.
6172
6173         * ListView.cs: Remove extra space between rows in Details view (match
6174         .Net). 
6175         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
6176         the DefaultFont.
6177
6178 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
6179
6180         * Application.cs: Modified ProductVersion to return value of
6181         AssemblyInformationVersion if available, and fallback to assembly
6182         version. Fixes bug #82746. Code formatting.
6183         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
6184         instead.
6185
6186 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6187
6188         * Control.cs: When updating ZOrder for a child control,
6189         take into account the implicit ones (we need it in our controls
6190         using them). Fixes #82642.
6191
6192 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
6193
6194         * ToolStripItem.cs: Add support for animated images.
6195         [Fixes bug #82726]
6196
6197 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
6198
6199         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
6200         visible.  [Fixes bug #82727]
6201
6202 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6203
6204         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
6205         so we repaint using the new size.  [Fixes bug #82723]
6206
6207 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6208
6209         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
6210         option.  [Fixes bug #81779]
6211
6212 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6213
6214         * TreeView.cs: Override HandleClick because the StandardClick style is
6215         set to false.  According to MSDN (and testing), the click events should
6216         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
6217
6218 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6219
6220         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
6221         the border will disappear.  Fixes reopened #82653.
6222
6223 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6224
6225         * Control.cs: If the control is autosize, and its preferred size changes
6226         when it lays out its children, tell its parent so it can be re-layed out.
6227         Fixing some of the fallout from r85433.
6228
6229 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6230
6231         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
6232         and CheckBox share some code.
6233
6234 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6235
6236         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
6237         the TrackBar, not every mouse move.  [Fixed bug #82718]
6238
6239 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6240
6241         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
6242         under 2.0 rendering.  [Fixes bug #82657]
6243
6244 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6245
6246         * TreeView.cs: If we found a TreeNode to display a context menu, but
6247         it doesn't have one to show, let the TreeView display its menu
6248         instead.  [Fixes bug #82680]
6249
6250 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6251
6252         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
6253         OnPaintInternal instead.  Give the internal TextBox a Border property
6254         so it can draw itself more correctly.  [Fixes bug #82653]
6255
6256 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
6257
6258         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
6259
6260 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
6261
6262         * ComboBox.cs: Adjust combobox button state to reflect current state when
6263         back to enabled = true. Fixes first issue of #82654.
6264
6265 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
6266
6267         * Control.cs: Fix last patch regression, prevent forms to update zorder when
6268         setting visible property.
6269
6270 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
6271
6272         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
6273         fix zorder for controls initially created as non visible. Fixes #82667.
6274
6275 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
6276
6277         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
6278         mimic win32 look. Fixes #82656.
6279
6280 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
6281
6282         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
6283         Stubs for new net 3.5 classes.
6284
6285 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6286
6287         * ListViewItem.cs: In ListViewItemCollection operations calculate
6288         Layout for owner as well as invalidate it. Fixes part of #82642.
6289
6290 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
6291
6292         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
6293         when returning Enabled.  [Fixes bug #82651]
6294
6295 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
6296
6297         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
6298
6299 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6300
6301         * ListView.cs: Put item padding info in a single place
6302         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
6303         columns again.
6304         * ThemeWin32Classic.cs:
6305         * Theme.cs: Likewise.
6306
6307 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6308
6309         * ListView.cs: When a ListViewSubItem instance is invalidated,
6310         invoke Invalidate on parent ListViewItem, not parent ListView.
6311         Fixes #81570.
6312
6313 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
6314
6315         * ListView.cs, ListViewItem.cs: corcompare stuffs.
6316
6317 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
6318
6319         * BindingMemberInfo.cs: Implement == and != operators.
6320
6321 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
6322
6323         * HtmlElementEventArgs.cs: Implement properties.
6324
6325 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
6326
6327         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
6328
6329 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
6330
6331         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
6332         Add (string,string,string) to implement the imagekey.  It turns out, we
6333         use the requested imagekey whereas .Net does not.  So I broke ours to match
6334         theirs.  :(
6335
6336 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
6337
6338         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
6339
6340 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
6341
6342         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
6343
6344 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
6345
6346         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
6347         up-to-date. Fixes bug #82618.
6348
6349 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
6350
6351         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
6352         reflect document changes. Fixes #82367.
6353
6354 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6355
6356         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
6357         as well as add new ones. This should make work the BackgroundImage
6358         property for ListView again.
6359
6360 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
6361
6362         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
6363         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
6364         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
6365
6366 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
6367
6368         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
6369         IsKeyLocked.
6370
6371 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
6372
6373         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
6374         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
6375
6376 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
6377
6378         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
6379         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
6380
6381 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
6382
6383         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
6384
6385 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
6386
6387         * GridEntry.cs: Implement GetService.
6388
6389 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
6390
6391         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
6392         for label editting, make sure we focus back on the TreeView.
6393         [Fixes bug #82590]
6394
6395 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6396
6397         * ListView.cs: Add some 2.0 overrides.
6398
6399 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
6400
6401         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
6402         because getter dont returns right value before handle creation. Thanks 
6403         to George. Fixes #82569.  
6404
6405 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
6406
6407         * Theme.cs: Revert last patch, it causes error under win32. 
6408
6409 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
6410
6411         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
6412         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
6413         logical Desktop rather than the physical file system location. Fixes #82603. 
6414
6415 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
6416
6417         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
6418         for the patch. Fixes #82568.
6419
6420 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6421
6422         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
6423         methods.
6424
6425 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6426
6427         * ListViewInsertionMark.cs: New stubbed class.
6428
6429 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
6430
6431         * FolderBrowserDialog.cs: When adding folder, immediately create the
6432         directory with temporary name and rename the directory when editing
6433         finishes. This matches MS. Ensure the node for the new folder is 
6434         selected and LabelEdit is disabled, when editing is either finished
6435         or cancelled.
6436
6437 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
6438
6439         * TreeView.cs: When editing label of node, ensure node is visible.
6440
6441 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
6442
6443         * PropertyGridView.cs: Set the value only if it has changed.
6444
6445 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6446
6447         * ListView.cs: Some more code refactoring to add support sorting
6448         with groups (now for Details view). Remove unused code also.
6449
6450 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
6451
6452         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
6453         Not a big fan of reacting immediately to a field in an EventArg, but that's
6454         the way it's done.  (This is part of the previous commit that got left out.)
6455
6456 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
6457
6458         * FolderBrowserDialog.cs: Removed need for separate description field.
6459         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
6460         has focus when dialog box is displayed again, regardless of what
6461         button was pressed the previous time. Set RootFolder and SelectedPath
6462         each time dialog box is displayed. This ensures the treeview is
6463         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
6464         when it does not have focus. Added support for more special folders.
6465
6466 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
6467
6468         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
6469         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
6470         it resets the edit_args.
6471         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
6472         [Fixes bug #82577]
6473
6474 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
6475
6476         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
6477         button to match MS. Provide more meaningful exception message for
6478         invalid RootFolder value. Use zero-length string when SelectedPath
6479         is set to null. Allow non-rooted paths in SelectedPath, but ignore
6480         them in FolderBrowserTreeView. Allow folders to be created in
6481         RootFolder. Fixes bug #82576.
6482
6483 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6484
6485         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
6486         since we need to take into account the group headers and the margin
6487         between them.
6488         * ListViewGroup.cs: Add a rows field to store the number of rows per
6489         group.
6490
6491 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6492
6493         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
6494           Anyways, let's just follow the lead.
6495
6496 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
6497
6498         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
6499         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
6500         controls in GetPreferredSizeCore.
6501         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
6502         [Fixes bug #82488]
6503
6504 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
6505
6506         * PrintDialog.cs: Need to instantiate the form variable here too.
6507
6508 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6509
6510         * ListView.cs: Do some reorganization to support sorting in groups,
6511         by doing the layout sequentially in ListView.Items. Also add support
6512         for the Default Group, which should be available for items with no
6513         group assigned.
6514         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
6515         for storing layout info also.
6516         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
6517         collection, as well as providing internal members to do a traversal
6518         including the default group (needed when doing layout/drawing).
6519         * ThemeWin32Classic.cs: When drawing group headers use internal
6520         ListViewGroupCollection members to take into account the default
6521         group.
6522
6523 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
6524
6525         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
6526
6527 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
6528
6529         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
6530         been created.  If handle is created, we want arror keys.  If we are editing
6531         a node, we want things like enter, esc, home, end, page up, page down.
6532         Allows Esc to work for FolderBrowserDialog.
6533
6534 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
6535
6536         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
6537         they close when ESC is pressed.  Thanks Andy!
6538
6539 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
6540
6541         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
6542         This way we can tell if this is a CommonDialog provided with mono, or one
6543         that is being implemented outside by a developer.  If it is an external one,
6544         the developer is responsible for showing their own form.  We were showing
6545         our blank form after the developer showed his.
6546         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
6547         PageSetupDialog.cs: Instantiate form variable in our constructor.
6548         [Fixes bug #82531]
6549
6550 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
6551
6552         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
6553         and always return true.  [Fixes bug #81616]
6554
6555 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
6556
6557         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
6558         TextBox.  [Fixes bug #82549]
6559
6560 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
6561
6562         * FileDialog.cs: When Save/Open is clicked and no filename is selected
6563         or entered then do not close the dialog. Fixes bug #82539. Removed
6564         CWLs.
6565
6566 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
6567
6568         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
6569         code to this method. It is calling every time filter changes. This method
6570         will help to fix the bug #80887.
6571
6572 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
6573
6574         * CheckBox.cs: Implement AutoSize calculation.
6575
6576 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
6577
6578         * CheckBox.cs: Use new 2.0 rendering for 2.0.
6579         * Theme.cs: Method declarations for 2.0 rendering path.
6580         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
6581
6582 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6583
6584         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
6585
6586 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6587
6588         * ListViewGroupCollection.cs: Implement AddRange the right way, to
6589         only call Redraw on the parent one time.
6590
6591 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6592
6593         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
6594           GetClipboardContent.
6595         * DataGridViewCell.cs: Implemented GetClipboardContent,
6596           GetEditedFormattedValue, GetFormattedValue.
6597         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
6598
6599 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
6600
6601         * TableLayoutStyleCollection.cs: corcompare fix.
6602
6603 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6604
6605         * DataObject.cs: Implemented retrieval of convertible / not convertible
6606           objects.
6607
6608 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
6609
6610         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
6611         ourselves.  This ensures the entire old bounds are repainted, in case our new
6612         size is smaller.  [Fixes bug #82518]
6613
6614 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
6615
6616         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
6617         flag to make fast handle of mouse events, without this the mouse move is
6618         handled in some manner, whether it is a mouse move or not. Fixes #81588.
6619
6620 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6621
6622         * ListView.cs: When doing layout calculations don't use a ref
6623         param to keep the current item; instead use its Index value (this 
6624         is specially important when doing the layout with Groups
6625         and Items being sparse). Also don't take into account items added to
6626         the Group but not yet added to the main ListView.Items collection.
6627
6628 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6629
6630         * ListViewGroupCollection.cs: Forgot to mimic an issue
6631         in the indexer (don't assign the ListView owner for new values).
6632
6633 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6634
6635         * ListViewGroupCollection.cs: Make the string indexer use
6636         the int based indexer to re-use code, instead of duplicate the code.
6637         Also Redraw as needed and take into account null values.
6638
6639 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
6640
6641         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
6642         [Fixes bug #82481]
6643
6644 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
6645
6646         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
6647         when other buttons are clicked or navigated to.
6648
6649 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6650
6651         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
6652           it's XplatUIX11 that attaches them.
6653
6654 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6655
6656         * DataGridView.cs: If a column has been added, recreate the editing row.
6657           Fixes #82226.
6658
6659 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6660
6661         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
6662           of the tag to draw. Makes disappearing text show up again.
6663
6664 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6665
6666         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
6667           Contents. Fixes #82487.
6668
6669 2007-08-19  Andreia Gaita  <avidigal@novell.com>
6670
6671         * Added HtmlElement.cs, HtmlElementCollection.cs, 
6672           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
6673           
6674 2007-08-19  Andreia Gaita  <avidigal@novell.com>
6675
6676         * BindingSource.cs: Implement this, dispose and getenumerator.
6677         * DataGridViewRowCollection.cs: Move the InvalidOperationException
6678         out of AddInternal, throw it only on public Add calls. The 
6679         UsingWebBrowser sample was blowing up with this when setting the
6680         DataSource after adding DataBindings, so it's likely that .net
6681         only throws this exception when Add is called directly. 
6682         
6683         * ToolStripControlHost.cs: Return the hosted control's text
6684         property, and not the ToolStripItem one (it would always return
6685         the initial value).
6686         
6687         * HtmlDocument.cs: Implement GetElementById and All
6688         * WebBrowser.cs: Remove exception on set_DocumentStream.        
6689
6690 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
6691
6692         * Form.cs: Fix the max and min value for opacity (0~1).
6693
6694 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
6695
6696         [Fixes #80118]
6697         * DataGridTableStyle.cs: Default header font is now null, on getter it 
6698         returns datagrid font when is null. On setter permits null.
6699
6700         * DataGrid.cs:
6701         - When ResetHeaderFont set header font to null.
6702         - On EndInit set grid_style.DataGrid.
6703
6704 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
6705
6706         * TabControl.cs: Fix regression in default padding x.
6707
6708 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
6709
6710         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
6711
6712 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
6713
6714         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
6715         not 2. Fixes #82229.
6716
6717 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
6718
6719         * TabControl.cs: Fix tab size when image height is less than text height.
6720         Partially fixes #81837.
6721
6722 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
6723
6724         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
6725         "alt + tab". It works only for Win32, for X11 theres no way to remove window
6726         from taskbar and keep it on "alt_tab". Fixes #81722.
6727
6728 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
6729
6730         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
6731         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
6732         Fixes #80877 and #79418.
6733
6734 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
6735
6736         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
6737         between position and one of the screen borders. Fixes #82349.
6738
6739 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
6740
6741         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
6742         the MessageBox in the taskbar. Fixes #82457.
6743
6744 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
6745
6746         * MessageBox.cs: Fix form size when icon is set and text height is bigger
6747         than icon. Fixes #82468.
6748
6749 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6750
6751         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
6752         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
6753           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
6754           Refactored HandleNCCalcSize somewhat to avoid code duplication.
6755         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
6756           FormBorderStyle to decide if we're calculating a new size from the
6757           client size or not. CreateParams: Don't fake tool windows, only the X11
6758           backend manages toolwindows manually.
6759
6760 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
6761
6762         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
6763         ObjectDisposedException.
6764
6765 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
6766
6767         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
6768         in OnLoad should not have any effect.  [Fixes bug #82470]
6769
6770 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
6771
6772         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
6773         paint for controls that create their own ToolTipWindow instead of
6774         going through ToolTip.
6775
6776 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
6777
6778         * ToolTip.cs: Make Hide internal instead of public to match MS API.
6779
6780 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6781
6782         * ListViewGroupCollection.cs: Use generic List instead of an
6783         ArrayList, since this collection is 2.0 only.
6784
6785 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
6786
6787         * ToolTip.cs (Hide): Made public to make the build work (should
6788         this not be public?).
6789
6790 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
6791
6792         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
6793         ToolTipWindow.
6794         * ToolTip.cs: Add an internal Visible property to facilitate transition.
6795
6796 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
6797
6798         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
6799         PopupEventHandler.cs: Make these internal for 1.1.
6800         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
6801         use ToolTipWindow internals.
6802         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
6803         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
6804
6805 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6806
6807         * X11Dnd.cs: Add a null check.
6808
6809 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6810
6811         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
6812           nothing else succeeds. Fixes #82453.
6813
6814 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6815
6816         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
6817           rectangle if we're painting to another window than the one the paint
6818           message was generated on. Simplify the code somewhat, which makes
6819           PaintEventEnd also simpler.
6820
6821 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6822
6823         * Control.cs: When changing parent of a form, let the form decide whether
6824           XplatUI.SetParent should be called or not.
6825         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
6826           recreating the handle. If the new parent's handle isn't created, don't
6827           recreate our handle, just destroy it. CreateParams: Check if the
6828           parent's handle is created before fetching it.
6829
6830 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6831
6832         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
6833           Update calls to PaintEventStart/End to take a Message argument.
6834         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
6835           take a Message argument.
6836         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
6837           Message argument, and handle the case where we don't paint to the window
6838           for which the paint message was generated.
6839
6840 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6841
6842         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
6843           Marshal.GetLastWin32Error. Plug nasty memory leak in
6844           PaintEventStart/End, we were creating a DC we weren't releasing.
6845
6846 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6847
6848         * ListView.cs: Add Groups support in Details view. Also have a small
6849         method to do the layout of the group header. Don't use a separate
6850         method to do the groups calculation in Icons view, since our methods
6851         are now a little simpler.
6852         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
6853         `Bounds'.
6854         * ThemeWin32Classic.cs: Likewise.
6855
6856 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
6857
6858         * Application.cs: Add FilterMessage method and rework our message loop
6859         logic to use it.
6860
6861 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
6862
6863         * Application.cs: Add some methods and stub a few methods that are
6864         pretty much never used.
6865
6866 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
6867
6868         * TreeNode.cs: Add some serialization methods.
6869
6870 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6871
6872         * ListView.cs: In ListViewItemCollection have a 
6873         'is_main_collection' field to not modify ListViewItem.ListView
6874         when using it as ListViewGroup.Items (and not ListView.Items)
6875         and also don't modify selection state (.Net behaviour). 
6876         Instead, set group for items contained in a ListViewGroup.Items collection.
6877         * ListViewItem.cs: Simplify some code in Group setter.
6878         * ListViewGroup.cs: use the new .ctor to pass the current instance
6879         to the ItemsCollection.
6880         * ListViewGroup.cs: Set the ListView property for ListViewGroup
6881         instances when adding/removing. Also make Remove use RemoveAt, which
6882         should perform better.
6883
6884 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
6885
6886         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
6887         that crept into the 1.1 profile.
6888
6889 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
6890
6891         * ToolBarButton.cs: Implement ImageKey.
6892
6893 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
6894
6895         * ToolBar.cs: Implement ScaleControl/ScaleCore.
6896
6897 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6898
6899         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
6900           created, it might have gotten destroyed since we last checked. Fixes
6901           #82405.
6902
6903 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
6904
6905         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
6906         tooltip will hide when mouse is moved off the control.
6907         [Fixes bug #82407]
6908
6909 2007-08-11 Andreia Gaita <avidigal@novell.com>
6910
6911         * WebBrowserBase.cs, WebBrowser.cs: add implementation
6912         using Mono.Mozilla for loading and navigating webcontrol
6913         with xulrunner.
6914         The initial implementation was done on 
6915         /trunk/mozembed/tests/browser , and copied here.
6916
6917 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
6918
6919         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
6920         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
6921
6922 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6923
6924         * DataGridView.cs: Add support for an editing row. Fixes #82226.
6925           RowTemplateFull: throw an exception if a column doesn't have a template.
6926         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
6927           add the row just before it.
6928         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
6929           selected.
6930         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
6931           DataGridView field to be able to reach the grid's editing row.
6932
6933 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
6934
6935         * ToolTip.cs: If the control's handle hasn't been created when it has a
6936         tooltip set on it, don't check to see if we need to show the tooltip.  This
6937         check was causing the control's handle to be created.
6938         [Fixes bug #82399]
6939
6940 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
6941
6942         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
6943                                         1.1             2.0
6944         Handle Not Created      -1              0
6945         Handle Created          0               0
6946         [Fixes bug #82371]
6947
6948 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
6949
6950         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
6951         [Fixes bug #82348]
6952
6953 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
6954
6955         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
6956         * ToolTip.cs: Implement some properties and owner draw.
6957
6958 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6959
6960         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
6961           show them again, since setting visibility causes a paint, causing an
6962           endless loop (instead use a temporary and set it all when it's known if
6963           they should be shown or not). Fixes #79265.
6964
6965 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6966
6967         * DataGridView.cs: Only do a full column/row selection if a header was
6968           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
6969           isn't pressed, deselect everything before selecting something.
6970
6971 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6972
6973         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
6974           behaviour according to bug #81075 - they are returned in the order they
6975           are selected. Fix HitTest to check if the point is within any of the
6976           headers. Allow for row/column selection when in ColumnHeader or
6977           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
6978           the row and column to call when their selected state changes, and
6979           updated selected_[rows|columns] whenever SetSelected* is called.
6980         * DataGridViewBand.cs: Initialize isRow correctly. Call
6981           SetSelected[Row|Column]CoreInternal when the selected state changes, and
6982           add a SelectedInternal to avoid StackOverflows.
6983         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
6984           ReadOnly no matter what.
6985         * DataGridViewSelectedColumnCollection.cs,
6986           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
6987           the items in reverse order (just as MS does...)
6988
6989 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
6990
6991         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
6992         itself, not part of a mnemonic.  [Fixes bug #82378]
6993
6994 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6995
6996         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
6997         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
6998           the DGV, the column, the row, or the cell itself is readonly.
6999
7000 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
7001
7002         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
7003         OSVersion.Platform.
7004         * FileDialog.cs: Same.
7005         * TextRendered.cs: Same.
7006         * FolderBrowserDialog.cs: Same.
7007         * TextBoxBase.cs: Same.
7008         * Application.cs: Same.
7009         * Cursors.cs: Same.
7010         * ThemeClearLooks.cs: Same.
7011
7012 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
7013
7014         * XplatUI.cs: Added RunningOnUnix property to be used by controls
7015         instead of duplicating these checks everywhere.
7016         * FileDialog.cs: Use case-insensitive comparison for populating the
7017         DirComboBox when not running on unix. Fixes bug #82385.
7018         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
7019         "Look in".
7020
7021 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7022
7023         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
7024           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
7025           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
7026           cell and column selection with ctrl and shift pressed. Call the correct
7027           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
7028           the corresponding virtual method (PaintBackground to paint background,
7029           etc).
7030         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
7031           either the column, row or the cell itself is selected.
7032         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
7033           OnRowsAdded.
7034         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
7035           here. When the row is selected, don't select all cells. Each cell now
7036           queries the row to see if the row is selected.
7037
7038 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7039
7040         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
7041           SelectionMode.
7042
7043 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7044
7045         * ListView.cs: In ListViewItemsCollection check that owner is
7046         not null before trying to access it (this happens quite often
7047         using Groups). Also don't duplicate calls by calling CollectionChanged
7048         method.
7049
7050 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
7051
7052         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
7053         when we are dismissed to clear keyboard mnemonics.
7054         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
7055         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
7056         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
7057         was activated by keyboard or the OS tells us to always draw them.
7058         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
7059         [Fixes bugs #82376, #82377]
7060
7061 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
7062
7063         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
7064         shot at having it because Alt was pressed.
7065         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
7066         the first real menu item.
7067         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
7068         a mnemonic if Text is null.
7069         [Fixes bug #82374]
7070
7071 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7072
7073         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
7074         search do check whether the item is already contained in the
7075         collection or not; instead check if the owner of the item is the same
7076         as ours. Also, remove a redundant check in the same method. 
7077
7078 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
7079
7080         * Control.cs: Allow the clip region to be set back to null.
7081         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
7082         [Fixes button still showing up in bug #82370 when Show Through is turned off]
7083
7084 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7085
7086         * GridEntry.cs: Add a null check.
7087         * PropertyGrid.cs: When checking for existing grid entries, ignore category
7088           entries. Fixes #82297.
7089
7090 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
7091
7092         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
7093         for 2.0.
7094
7095 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
7096
7097         * ListBox.cs: Implement ScaleControl.
7098
7099 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7100
7101         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
7102           have a menu strip.
7103         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
7104           parent has a menu strip. Fixes #81689.
7105
7106 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7107
7108         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
7109           moments, so apply some fuzzy logic to determine if the mouse is still
7110           inside a control or not. Fixes #82288 (for the third time).
7111
7112 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7113
7114         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
7115           Don't create the child if it has been disposed already (may happen if
7116           the user closes the form the Load event).
7117
7118 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7119
7120         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
7121           #82288.
7122
7123 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7124
7125         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
7126           might call us after we've been destroyed, in which case our own private
7127           parent field is null. Fixes #82326.
7128
7129 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
7130
7131         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
7132         check for setting the dropdown's owner.
7133
7134 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
7135
7136         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
7137         before removing system menu items.
7138
7139 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
7140
7141         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
7142         folding.
7143         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
7144         folding.
7145         * ToolStrip.cs: Add a null check to mnemonics.
7146         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
7147         no ConnectedArea.
7148         [Fixes most of bug #81689]
7149
7150 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7151
7152         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
7153
7154 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7155
7156         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
7157
7158 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7159
7160         * DataGridViewCell.cs: EditType: returns
7161           DataGridViewTextBoxEditingControl always.
7162
7163 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
7164
7165         * TextRenderer.cs: Remove the LineLimit string format flag from the
7166         DrawString fallback method so that things like buttons that aren't
7167         tall enough to draw a full line will still draw part of the text.
7168         [Fixes part of bug #82272]
7169
7170 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7171
7172         * DataGridView.cs: Implemented AutoResizeColumn(s).
7173         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
7174           according to the Alignment.
7175         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
7176           Implement alignment and padding when painting.
7177         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
7178           exists.
7179         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
7180           way.
7181         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
7182           a column is added.
7183
7184 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
7185
7186         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
7187         which is internal.
7188
7189 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
7190
7191         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
7192         hide GetPreferredSize from public API.
7193         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
7194         * ToolStripItem.cs: Stub out drag and drop methods and events.
7195         * ToolStripManager.cs: Stub out Save/LoadSettings.
7196         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
7197         * ToolStripPanel.cs: Fix corcompare error.
7198         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
7199         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
7200         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
7201
7202 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
7203
7204         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
7205         bounds height instead of PreferredHeight.  Puts things back the way 
7206         they were for height while still fixing the width.  Fixes broken unit
7207         tests.
7208
7209 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7210
7211         * Binding.cs: Implement 2.0 constructors and add a null check.
7212
7213 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7214
7215         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
7216           and fix row index (off by one).
7217
7218 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7219
7220         * PropertyGridView.cs: Remove debug output.
7221
7222 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7223
7224         * Control.cs: We need to reset the is_created flags when the handle is
7225           destroyed. Fixes #82187.
7226         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
7227           client coordinates if the window doesn't have a parent.
7228           Win32GetParent returns the parent or the owner, and for top-level
7229           windows with no parent (but with an owner) we were calculating the
7230           location from the location of the owner.
7231         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
7232           form has been disposed.
7233         * MdiClient.cs: Add a null-check.
7234
7235 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
7236
7237         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
7238         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
7239         so we can provide an implementation that returns the current width
7240         and preferred height.  Allows anchor = right to work with TextBox 2.0.
7241         [Fixes bug #82233]
7242
7243 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7244
7245         * ListView.cs: Add support for navigating items in Groups mode, by
7246         creating a big matrix containing all rows and cols of all groups. When
7247         are in other mode than Details, pressing Up should have a similar
7248         behaviour as that one of Down (moving to the next available column if
7249         current one doesn't have an item in the requested row). Also, don't
7250         proceed to use groups if ShowGroups is false.
7251         * ListViewGroup.cs: Add an internal int field to store the starting
7252         row of the group (used by the big matrix used for navigating the
7253         ListView).
7254         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
7255         false.
7256
7257 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
7258
7259         * ToolStripDropDown.cs: When we do Show, start with the 
7260         DefaultDropDownDirection, but if our popup menu is going to off-screen,
7261         modify the direction to keep it on screen.  [Fixes bug #82210]
7262
7263 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
7264
7265         * FileDialog.cs: Accept any FilterIndex value, and store it
7266         unmodified. When FilterIndex is less than 1, or greater than number
7267         of filters, then default to first filter. Only add filter extension to
7268         file if user did not specifiy an extension. When type of dialog is
7269         OpenFileDialog and DefaultExt is set, then only use filter extension
7270         if: CheckFileExists is true and no file wih the default extension
7271         exists, or CheckFileExists is false, and user specified file does not
7272         exist. When CheckFileExists is true, then add first extension of 
7273         selected filter that matches existing file. Perform checks for
7274         existing file, overwrite and create after extension has been added to
7275         file name. When CheckFileExists is true and type is SaveFileDialog,
7276         then only consider first filter extension if DefaultExt is set.
7277         When CheckFileExists is true, then ignore DefaultExt if file with that
7278         extension does not exist. Also perform check for existing file when
7279         type is SaveFileDialog. Changed some field to constants.
7280
7281 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7282
7283         * ListView.cs: Take into account the region used by header
7284         control when doing the vertical scroll (this way we invalidate
7285         the precise area, and don't get any dirty one).
7286
7287 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
7288
7289         * FileDialog.cs: Check for valid filterIndex on button open/save. 
7290         Fixes #82184.
7291
7292 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7293
7294         * ListView.cs: Update some layout calculations in details view
7295         and clean the code in a pair of assignations.
7296
7297 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
7298
7299         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
7300         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
7301         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
7302         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
7303
7304 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
7305
7306         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
7307         performance of thread-safe Graphic methods.  (Thanks rolf!)
7308
7309 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7310
7311         * ListView.cs: When doing the layout calculations, don't calculate
7312         scroll bars before handle is created. This is unnecessary and also
7313         calculating them before handle creation item causes a number of random
7314         bugs (which begin to appear after Chris' big patch for handle creation
7315         fixes). 
7316
7317 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
7318
7319         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
7320         for things that don't have a Graphics object.  Currently, things just use
7321         the static Hwnd.bmp_g which is not thread safe.
7322
7323 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7324
7325         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
7326           dialog. Fixes #82187.
7327
7328 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7329
7330         * DataGridViewElement.cs: Initialize state.
7331         * DataGridView.cs: Forward a few Mouse events to cells. Add
7332           GetRowInternal and GetCellInternal that doesn't unshare rows.
7333           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
7334           don't use the index, but look it up. Add
7335           DataGridViewControlCollection.RemoveInternal to remove controls
7336           that Remove won't remove (scrollbars, edit control).
7337         * DataGridViewColumn.cs: Initialize State correctly.
7338         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
7339           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
7340           implementing this.
7341         * DataGridViewRowCollection.cs: Implemented shared rows.
7342         * DataGridViewRow.cs: Throw exceptions as MS do.
7343         * DataGridViewCell.cs: A few properties are implemented by a
7344           Get<Property> method, so move implementation there and remove the
7345           NIEX in the method. Add a bunch of OnXInternal that DataGridView
7346           calls when necessary.
7347         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
7348           complicates matters.
7349         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
7350           unshare any rows.
7351
7352 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
7353
7354         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
7355         the children controls.  Instead, we will just set up the proper docking for the
7356         children controls so we don't have to worry about it.  [Fixes bug #82188]
7357
7358 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
7359
7360         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
7361         canceling and correct Before/AfterLabelEdit properties as layed out in bug
7362         81847.  [Fixes bug #81847]
7363
7364 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
7365
7366         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
7367         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
7368         an explicit size based on the design-time size of the text.  Since our fonts
7369         may not match this explicit size, we tend to cut off the ends of people's labels.
7370
7371 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
7372
7373         * Menu.cs: Add some missing methods to MenuItemCollection.
7374
7375 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7376
7377         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
7378         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
7379         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
7380         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
7381         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
7382         * DataGridViewElement.cs: State defaults to Visible.
7383         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
7384         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
7385
7386 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7387
7388         * Control.cs: Minor 1.1 corcompare fix.
7389
7390 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
7391
7392         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
7393         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
7394
7395 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7396
7397         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
7398           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
7399           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
7400           DataGridViewSelectedColumnCollection.cs,
7401           DataGridViewSelectedRowCollection.cs: Corcompare work.
7402
7403 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
7404
7405         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
7406         it is autoset by VS2005 designer and the effect is barely noticeable.
7407
7408 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
7409
7410         * TreeView.cs: Implement HitTest.
7411
7412 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7413
7414         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
7415           manually adding and removing the control from the Controls
7416           collecftion.
7417         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
7418           EditingControlInternal property that tracks the editing control.
7419           Always keeping the scrollbars in the Controls collection, as MS
7420           testing confirms is the right behaviour.
7421
7422 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7423
7424         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
7425           according to MSDN and new test.
7426
7427 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
7428
7429         * TreeNode.cs: Implement ToolTipText.
7430         * TreeView.cs: Implement tooltips, NodeMouse* events.
7431
7432 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
7433
7434         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
7435
7436 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
7437
7438         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
7439         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
7440
7441 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
7442
7443         * Control.cs, Form.cs, ContainerControl.cs,
7444         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
7445         for misc properties.
7446
7447 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
7448
7449         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
7450         * TreeView.cs: Implement StateImageList.
7451
7452 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7453
7454         * Form.cs: Don't check if the current form is the active form before
7455           activating it. Fixes #81904.
7456
7457 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7458
7459         * Form.cs: Don't check if the current form is the active form before
7460           activating it. Fixes #81904.
7461
7462 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7463
7464         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
7465
7466 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7467
7468         * Form.cs: Don't try to position the form after loading if the form was
7469           disposed. Fixes #81969.
7470
7471 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7472
7473         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
7474           properties. Had to change ToolBar into ToolStrip, which required a
7475           few #ifs.
7476
7477 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7478
7479         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
7480           resized, fixes part of #79829 (vertical lines in toolbar).
7481           PropertyGrid: Refactored Populate* to something that's easier to
7482           follow at least for me, as well as splitting it up into several new
7483           methods, required to update only subitems when something has
7484           changed by a popup editor or listbox. Don't use events to check
7485           when any values are changed, since the events are unreliable (we're
7486           changing the objects the events are registered with, and if the
7487           event handling requires the objects to be immutable (objects stored
7488           in hashtables for instance), the events will never be raised).
7489         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
7490           everytime we change a value, since events are unreliable.
7491           DropDownButtonClicked: For the same reason don't compare objects to
7492           check if it has changed or not, it would require all objects to
7493           derive Equals. Fix dialog location on windows, MS is doing weird
7494           things when creating parented forms.
7495         * GridEntry.cs: Add a SelectedObject setter.
7496
7497 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
7498
7499         * TreeNode.cs: Add some corcompare attributes.
7500         * TreeNodeCollection.cs: Implement 2.0 stuffs.
7501         * TreeView.cs: Implement some 2.0 stuffs.
7502
7503 2007-07-18  Andreia Gaita  <avidigal@novell.com>
7504
7505         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
7506         for moma.
7507
7508 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
7509
7510         * ListBox.cs: Implement custom tab offsets.
7511
7512 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7513
7514         * ToolStripContentPanel.cs: Support System renderer.
7515         * ToolStripControlHost.cs: Set RightToLeft to default to No.
7516
7517 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7518
7519         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
7520
7521 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7522
7523         * CheckBox.cs: Chain TextAlign to base implementation instead of
7524         maintaining another one.
7525
7526 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7527
7528         * ButtonBase.cs: Fix an incorrect string constant.
7529
7530 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7531
7532         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
7533         of creating one for measuring strings.
7534
7535 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7536
7537         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
7538         Implement MaxItemSize.
7539
7540 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
7541
7542         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
7543         for DeviceContext.  Instead, use the static one available in Hwnd.
7544         Informal tests show this saves about 500k on formtest.exe.
7545
7546 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
7547
7548         * ContainerControl.cs: Implement 2.0 AutoScaling.
7549
7550 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7551
7552         * ComboBox.cs: Work around bug #82120 (bug in mcs).
7553
7554 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
7555
7556         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
7557         Darken the focus color.
7558
7559 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
7560
7561         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
7562         for the checkbox.
7563         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
7564         X, Y instead of a rect for drawing text.
7565         - For ControlPaint.DrawCheckBox, center the check a little better when the
7566         checkbox is odd width.  When drawing a flat checkbox, use a white background
7567         when state != inactive.
7568         [Fixes bugs #82097, 82100]
7569
7570 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
7571
7572         * ListControl.cs: When changing CurrencyManager, disconnect event
7573         handlers from previous one. Fixes bug #81771. Code formatting.
7574
7575 2007-07-15  Andreia Gaita <avidigal@novell.com>
7576
7577         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
7578         full preview invalidation from layout invalidation, and only invalidate
7579         the layout when setting zoom or other properties. Invalidation should
7580         always be done even when resetting properties with the same values as
7581         what is there. Fixes #81744 and #79830.
7582
7583 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7584
7585         * ListView.cs: Implement initial support for Groups. Split some of the
7586         LayoutIcons code to render a partial list of the items (needed by
7587         items contained in ListViewGroup instances). Let the
7588         ListViewItemsCollection.ListView property be modifiable (needed when
7589         using Groups, too).
7590         * ListViewGroup.cs: Use a Bounds property rather than a Location
7591         one. Also invalidate the bounds when they get changed.
7592         * ThemeWin32Classic.cs: When drawing items, also draw the group header
7593         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
7594         method as well.
7595
7596 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7597
7598         * ListView.cs: When space gets pressed and CheckBoxes is true, 
7599         don't invoke the Begin and EndUpdate methods. We are generating 
7600         a redraw of the entire control without need to do so.
7601
7602 2007-07-13  William Holmes <billholmes54@gmail.com> 
7603
7604         * Control.cs: Changing logic in FindFlatForward and 
7605           FindFlatBackward to handle multiple Controls with 
7606           the same TabIndex.  
7607           This fixes bug 81687.
7608
7609 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
7610
7611         * OSFeature.cs: Enable IsPresent.
7612
7613 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7614
7615         * Control.cs: Don't do anything in WmShowWindow if the control has been
7616           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
7617           control is created, put on a form, the control is disposed (the
7618           form is never shown), and then we get a MapNotify, triggering a
7619           WM_SHOWWINDOW.
7620         * Form.cs: Exclude the current form when sending Deactivate to all
7621           MdiChildren.
7622         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
7623           there was a race condition because assigning the handle raises
7624           events, we can get more messages, therefore trying to assign the
7625           handle again, which would fail if any of those event handlers
7626           closed/disposed the control.
7627
7628 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7629
7630         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
7631
7632 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
7633
7634         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
7635         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
7636
7637 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7638
7639         * DateTimePicker.cs: If there's no part format specifier, return an
7640           empty string.
7641
7642 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
7643
7644         * FlatButtonAppearance.cs: Throw NotSupportedException for a
7645         Transparent BorderColor.
7646
7647 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7648
7649         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
7650           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
7651           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
7652           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
7653           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
7654           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
7655           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
7656           Remove warnings.
7657         * X11Structs.cs: Remove warnings, add ToString implementations.
7658
7659 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7660
7661         * XplatUIX11.cs: Translate min/max size according to the actual min/max
7662           size, and not the current size. Fixes #81798.
7663
7664 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7665
7666         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
7667           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
7668           to the control yet).
7669
7670 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7671
7672         * PropertyGridTextBox.cs: Add a method that sends any forwarded
7673           mousedowns to the contained textbox.
7674         * X11Structs.cs: More ToString implementation.
7675         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
7676           #81791.
7677
7678 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7679
7680         * PropertyGridView.cs: Add a null-check, fixes a few tests.
7681
7682 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
7683
7684         * TableLayoutPanelCellPosition.cs: TypeConverter.
7685
7686 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7687
7688         [ Fixes #79761]
7689         
7690         * PropertyGridTextBox.cs: Propagate any color changes to all contained
7691           controls.
7692         * PropertyGridView.cs: A few color fixes.
7693
7694 2007-07-10  Jackson Harper  <jackson@ximian.com>
7695
7696         * TextControl.cs: Remove some old unused text formatting stuff.
7697
7698 2007-07-10  Jackson Harper  <jackson@ximian.com>
7699
7700         * TreeView.cs: Update full row select invalidation to match the
7701         newer DrawSelection... method.
7702         - Make sure to invalidate the entire width when selecting a new
7703         node, if we have full row selection enabled.
7704
7705 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7706
7707         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
7708           display of properties again.
7709
7710 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
7711
7712         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
7713         to existing collections.
7714
7715 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
7716
7717         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
7718         that changed between 1.1 and 2.0.
7719
7720 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
7721
7722         * PowerStatus.cs: Added.  This is just a data class, it is filled
7723         in by SystemInformation.
7724
7725 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
7726
7727         * Message.cs: Add op_Equality and op_Inequality.
7728
7729 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
7730
7731         * MenuStrip.cs: Finish corcompare work.
7732
7733 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
7734
7735         * LinkArea.cs: Add op_Equality and op_Inequality.
7736
7737 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
7738
7739         * Application.cs: Add MessageLoopCallback delegate.
7740
7741 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
7742
7743         * ListBox.cs: First set of 2.0 stuffs.
7744
7745 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
7746
7747         * Control.cs: Make an internal Height property we can override
7748         without messing up the public API.
7749         * ListBox.cs: Override HeightInternal to always return the size
7750         the user set.  [Fixes bug #80466]
7751
7752 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
7753
7754         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
7755         paint cell borders if we haven't calculated where they go yet.
7756         [Fixes bugs #82040 and #82041]
7757
7758 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7759
7760         * ListView.cs: In Details view, set the location of item_control
7761         in the (0,0) position (and the header_control is thus on the
7762         item_control). This way the Bounds of the Items are relative to the
7763         ListView control (before this, they had a Bounds value without the
7764         header_control offset, which wasn't matching .Net). Fixes #82004.
7765
7766 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7767
7768         * ListControl.cs: When DataSource is set to null, pass an empty
7769         array of object to SetItemsCore. This is done to clean the items
7770         in the ListContol children. Fixes #81788.
7771
7772 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
7773
7774         * ListControl.cs: Add 2.0 stuffs.
7775
7776 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
7777
7778         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
7779         Refresh is overkill for just about every repaint request.
7780
7781 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
7782
7783         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
7784         so remove my custom Get method and fix the property getter.
7785
7786 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
7787
7788         * Label.cs: DefaultMargin for 2.0.
7789
7790 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
7791
7792         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
7793         reported issue where other controls with mnemonics would steal strokes
7794         from a selected ComboBox.
7795
7796 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
7797
7798         * ScrollOrientation.cs: Make internal for 1.1.
7799         * ScrollEventArgs.cs: Add 2.0 stuffs.
7800
7801 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
7802
7803         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
7804         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
7805         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
7806
7807 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7808
7809         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
7810
7811 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7812
7813         * ListView.cs: Implement the so-incredibly broken 2.0 
7814         VirtualItemsSelectionRangeChanged event.
7815
7816 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7817
7818         * ListView.cs: When enter is pressed and selection is non empty,
7819         an OnItemActivate event must be fired.
7820
7821 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7822
7823         * ListView.cs: Store the FocusedItem information as an
7824         int instead of a ListViewItem (needed by VirtualMode).
7825         Update the calls to SetFocusedItem to pass an index instead of
7826         an item.
7827         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
7828         the Focused state from the owner ListView. 
7829
7830 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7831
7832         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
7833         property. Also, invalidate previous focused item in the mentioned
7834         property (match .Net).
7835
7836 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7837
7838         * ListView.cs: Implement 2.0 FocusedItem property setter.
7839
7840 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7841
7842         * ListView.cs: Implement 2.0 TopItem property setter.
7843
7844 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
7845
7846         * StatusStrip.cs: The default renderer is System.
7847         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
7848         if the user specifies it.
7849         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
7850         if we are ManagerRenderMode.
7851         * ToolStripMenuItem.cs: Calculate our text color better.
7852         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
7853         from Professional to the base class based off working with the System renderer.
7854         * ToolStripSystemRenderer.cs: Added.
7855
7856 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7857
7858         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
7859
7860 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
7861
7862         * ToolTip.cs: Implement 2.0 Tag property.
7863
7864 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7865
7866         * ListView.cs: Implement 2.0 HitTest methods.
7867
7868 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7869
7870         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
7871         item is under the pointer or not (sugar). Also remove the TODO
7872         regarding to the cursor changes in OneClick activation.
7873         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
7874         the subitems use the parent's HotFont if UseItemStyleForSubItems is
7875         true; otherwise don't show the underline style.
7876
7877 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7878
7879         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
7880         the code to retrieve the item at position only one time. Also
7881         change cursor when Activation is ItemActivation.OneClick as well
7882         as invalidate the item if HotTracking is true (to show/hide the
7883         underline style). Add an internal HotItemIndex property to retrieve
7884         the current hot item's index.
7885         * ListViewItem.cs: Add an internal HotFont property to cache the
7886         font used when HotTracking is true and the pointer moves within the
7887         item's borders.
7888         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
7889         HotFont depending on the hot state of the item.
7890
7891 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7892
7893         * ListView.cs: Implement 2.0 HotTracking property.
7894
7895 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
7896
7897         * ToolStripControlHost.cs: If our hosted control never got created,
7898         don't try to dispose it.  [Fixes bug #81909]
7899
7900 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
7901
7902         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
7903
7904 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
7905
7906         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
7907
7908 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7909
7910         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
7911         Details view.
7912         * DrawListViewColumnHeaderEventArgs.cs:
7913         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
7914         using the DrawText () methods.
7915
7916 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
7917
7918         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
7919         background which got erased in my changes yesterday.
7920
7921 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7922
7923         * ListViewItem.cs: Actually set bounds for subitems in Details view
7924         (2.0 feature).
7925         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
7926         can invoke from the owner draw routines if we need it. Also, add
7927         support for Owner draw in Details view.
7928
7929 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
7930
7931         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
7932         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
7933         ShowImageMargin setting, properly align text in a ToolStripLabel
7934         hosted on a ToolStripDropDown.
7935
7936 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
7937
7938         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
7939         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
7940
7941 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7942
7943         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
7944
7945 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
7946
7947         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
7948         location to match ToolStripMenuItems.
7949
7950 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7951
7952         * DrawListViewColumnHeaderEventArgs.cs:
7953         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
7954         column headers in ListView. 
7955
7956 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
7957
7958         * UserControl.cs: Implement AutoSize.
7959
7960 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7961
7962         * DrawListViewItemEventArgs.cs:
7963         * ListView.cs:
7964         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
7965         ListView.
7966
7967 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
7968
7969         * ToolStripDropDownItemAccessibleObject.cs: Added.
7970         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
7971         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
7972         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
7973         ToolStripTextBox.cs: corcompare work.
7974
7975 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
7976
7977         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
7978         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
7979         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
7980                 corcompare.
7981
7982 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
7983
7984         * OSFeature.cs: Add IsPresent.
7985         * PrintPreviewControl.cs: Add RightToLeft.
7986         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
7987         * SplitterPanel.cs: Add AutoSizeMode.
7988
7989 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
7990
7991         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
7992         * MdiClient.cs: Add 2.0 ScaleControl.
7993         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
7994         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
7995
7996 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
7997
7998         * Form.cs: Implement some scaling methods, stub some RTL methods,
7999         corcompare work.
8000
8001 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
8002
8003         * Control.cs: corcompare work.
8004         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
8005
8006 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
8007
8008         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
8009         ControlPaint 2.0 stuffs.
8010
8011 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8012
8013         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
8014
8015 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8016
8017         * UpDownBase.cs: Add 2.0 stuffs.
8018
8019 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8020
8021         * NumericUpDown.cs: Add 2.0 stuffs.
8022
8023 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8024
8025         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
8026
8027 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8028
8029         * ErrorProvider.cs: Implement 2.0 stuffs.
8030
8031 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8032
8033         * DomainUpDown.cs: Implement 2.0 stuffs.
8034
8035 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8036
8037         * CheckedListBox.cs: Fix RefreshItems signature.
8038
8039 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8040
8041         * PictureBox.cs: Implement 2.0 stuffs.
8042
8043 2007-06-12  Andreia Gaita  <avidigal@novell.com>
8044         
8045         * TabControl.cs: Check if there are tabpages before checking
8046         the selected index - fix #81802 (font changes raise a ResizeTabs
8047         call on controls.add, which blew up nicely with no tabpages)
8048
8049 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8050
8051         * ListView.cs:
8052         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
8053
8054 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8055
8056         * ListView.cs:
8057         * ListViewItem.cs: In VirtualMode the selection information
8058         resides in the ListView, rather than in the Items. Also, throw
8059         InvalidOperationExceptions when VirtualMode is being used and
8060         CheckedItemCollection is accessed.
8061
8062 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
8063
8064         * ComboBox.cs: Add ScaleControl.
8065
8066 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
8067
8068         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
8069
8070 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
8071
8072         * GroupBox.cs: Add 2.0 stuffs.
8073
8074 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
8075
8076         * Panel.cs: Add autosize properties/event.
8077
8078 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
8079
8080         * Control.cs:
8081         - When we remove a control, remove it from the collection before performing the layout.
8082         - Setup an internal property for explicit_bounds.
8083         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
8084         - Perform a layout when we set a new AutoSizeMode.
8085
8086 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
8087
8088         * ScrollableControl.cs: Add 2.0 stuffs.
8089
8090 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
8091
8092         * ScrollBar.cs: Add 2.0 stuffs.
8093
8094 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
8095
8096         * Splitter.cs: Add 2.0 stuffs.
8097
8098 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
8099
8100         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
8101         to have BindingContext simply use base implementation.
8102
8103 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
8104
8105         * ColumnHeader.cs: corcompare fix.
8106
8107 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
8108
8109         * Button.cs: corcompare fixes.
8110         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
8111
8112 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
8113
8114         * Button.cs: Override GetPreferredSizeCore.
8115         * ButtonBase.cs: PerformLayout after changing properties that can affect
8116         AutoSize.  Simplify some mouse/keyboard code.
8117         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
8118         * MouseEventArgs.cs: Make Location internal for 1.1.
8119         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
8120         * Theme.cs: Add CalculateButtonAutoSize.
8121         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
8122
8123 2007-06-05  Miguel de Icaza  <miguel@novell.com>
8124
8125         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
8126
8127 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8128
8129         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
8130         since we can get different item instances every time we retrieve it.
8131
8132 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8133
8134         * ListView.cs: Work around for #81602, since an unkown an pretty
8135         infrequent condition appears only in some systems (old linux boxes, it
8136         seems).
8137
8138 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
8139
8140         * Button.cs: Completely reformat and a little refactor to bring
8141         this closer to Mono circa 2007.
8142
8143 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
8144
8145         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
8146         to be ButtonBase.Invalidate.
8147
8148 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
8149
8150         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
8151
8152 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
8153
8154         * ButtonBase.cs: Completely reformat and a little refactor to bring
8155         this closer to Mono circa 2007.
8156
8157 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
8158
8159         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
8160         values for autosize. Fixes #80137.
8161
8162 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
8163
8164         * Control.cs: Don't perform layout when AutoSize changes.
8165         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
8166         directly when autosizing, use SetBounds with BoundsSpecified.None.
8167         Fixes unit tests my last commit broke.
8168
8169 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
8170
8171         * Control.cs: Perform layout when AutoSize changes.
8172         * Form.cs: Implement AutoSizing.
8173
8174 2007-06-01  Chris Toshok  <toshok@ximian.com>
8175
8176         * DataGrid.cs: remove the XXX'ed check at the top of
8177         ProcessGridKey.  fixes #80464.
8178
8179 2007-06-01  Chris Toshok  <toshok@ximian.com>
8180
8181         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
8182         adding idempotent (add/remove in Edit()), and also make sure we
8183         don't add it until after we set the text, so it's not tripped in
8184         Edit().  Fixes unit test regression.
8185
8186 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
8187
8188         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
8189         change is user explicit, not when the layout engine moves stuff.  Fixes
8190         anchoring to bottom and right.  [Fixes bug #81790]
8191
8192 2007-06-01  Andreia Gaita  <avidigal@novell.com>
8193
8194         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
8195
8196 2007-06-01  Andreia Gaita  <avidigal@novell.com>
8197
8198         * ContainerControl.cs: 
8199         Fire enter event for common ancestor if it is not a ContainerControl.
8200         Send focus to the active_control and not the 'value', the active 
8201         control might have been changed in one of the events fired.     
8202         Definitely fixes #80159.
8203
8204 2007-06-01  Andreia Gaita  <avidigal@novell.com>
8205
8206         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
8207
8208 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8209
8210         * PropertyGrid.cs: Anchor the help description to the bottom of the
8211           help panel and refactor SelectGridItem into a
8212           SelectGridItemInternal that can be set to null (and update it to
8213           clear the help texts when it is set to null). Set root item to null
8214           when there's no SelectedObject. Fixes #80438.
8215         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
8216           when we're recalculating after a resize (only).
8217
8218 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8219
8220         * ListView.cs: Implement 2.0 RedrawItems method.
8221
8222 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8223
8224         * ListControl.cs: Disconnect PositionChanged and ItemChanged
8225         handlers from previous data manager when DataSource is set to
8226         null. Fixes #81771.
8227
8228 2007-05-31  Jackson Harper  <jackson@ximian.com>
8229
8230         * TextBoxBase.cs: These seem to be the correct values.
8231
8232 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
8233
8234         * FileDialog.cs: When close dialog with ok set filterindex using combobox
8235         value. Fixes #81784.
8236
8237 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
8238
8239         * Control.cs: Implement 2.0 scaling methods.
8240
8241 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8242
8243         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
8244           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
8245           corcompare issues.
8246
8247 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8248
8249         * ProgressBar.cs: Implemented missing 2.0 members.
8250
8251 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8252
8253         * Control.cs: Corcompare issues.
8254         * MessageBox.cs: Implemented missing 2.0 functions.
8255
8256 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8257
8258         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
8259           Implemented more 2.0 members.
8260
8261 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8262
8263         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
8264           null (strange, but it seems to happen when running unit tests).
8265
8266 2007-05-30  Andreia Gaita  <avidigal@novell.com>
8267
8268         * ContainerControl.cs: Set active_control even earlier, before 
8269         firing any events, and undo it if validation returns false.
8270
8271 2007-05-30  Andreia Gaita  <avidigal@novell.com>
8272
8273         * ContainerControl.cs: Raise Validation and Enter/Leave events
8274         even if there is no Form and set active_control earlier, just
8275         before firing Enter events (toshok's patches). Fixes #80647.
8276
8277 2007-05-30  Jackson Harper  <jackson@ximian.com>
8278
8279         * TextControl.cs: Redid the pageup/pagedown a little to simplify
8280         things and fix bug #81311.
8281
8282 2007-05-30  Jackson Harper  <jackson@ximian.com>
8283
8284         * X11Dnd.cs: Now that we have our own event loop, we need to
8285         cancel when we get a mouseup but it won't be accepted.
8286
8287 2007-05-30  Chris Toshok  <toshok@ximian.com>
8288
8289         * DataGrid.cs (set_CurrentCell): guard against negative
8290         column/row.
8291
8292         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
8293         array index syntax instead of looping over the property names.
8294
8295         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
8296         and set IsInEditOrNavigateMode to false there.
8297
8298 2007-05-30  Jackson Harper  <jackson@ximian.com>
8299
8300         * TreeView.cs: Make sure we don't get a bad visible order when
8301         setting to the top node.  Fixes some misc crashing in
8302         ControlInspector.
8303
8304 2007-05-30  Andreia Gaita  <avidigal@novell.com>
8305
8306         * UserControl.cs: Add 2.0 AutoSizeMode
8307
8308 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
8309
8310         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
8311
8312 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
8313
8314         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
8315         lines. Fixes #80285. 
8316
8317 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
8318
8319         * DataGridColumnStyle.cs: Add char trimming column header text format. 
8320
8321 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
8322
8323         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
8324         Fixes #80147.
8325
8326 2007-05-29  Jackson Harper  <jackson@ximian.com>
8327
8328         * TreeNode.cs: Fix off by one on calculating whether or not a node
8329         is visible.
8330
8331 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
8332
8333         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
8334         * ScrollableControl.cs: Force an UpdateDistances when we move the
8335         scrollbars.
8336         [Fixes bug #80605]
8337
8338 2007-05-29  Andreia Gaita  <avidigal@novell.com>
8339
8340         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
8341         update the page setup screen.
8342
8343 2007-05-29  Andreia Gaita  <avidigal@novell.com>
8344
8345         * PageSetupDialog.cs: Fix landscape mode.
8346
8347 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8348
8349         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
8350         IconSizeHorizontalSpacing.
8351
8352 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8353
8354         * ListView.cs: The declaration of prev_tooltip_item should be inside
8355         a NET_2_0 conditional (avoid a warning).
8356
8357 2007-05-28  Andreia Gaita  <avidigal@novell.com>
8358
8359         * PageSetupDialog.cs: Implement PrintPreview control to display
8360         the preview thumbnail. Change unit conversion to use 
8361         PrinterUnitConvert methods.
8362         
8363         Note: there is a huge bug in ms.net where the default margins are 
8364         interpreted as centimeters (?), when in fact they are set in inches. When 
8365         loading the page setup dialog initially (ms.net), the default margins 
8366         are set to 1 inch, and the dialog shows them with value 10, when in fact 
8367         it should be 25 (properly converted). Our dialog doesn't have this bug.
8368         
8369         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
8370         RectangleF.
8371         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
8372
8373 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8374
8375         * ListView.cs:
8376         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
8377         items.
8378
8379 2007-05-28  Andreia Gaita  <avidigal@novell.com>
8380
8381         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
8382         an IntPtr on csc (it builds fine on mcs, could it be a compiler
8383         bug?), convert the ptr to Int32 first.
8384
8385 2007-05-28  Jackson Harper  <jackson@ximian.com>
8386
8387         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
8388         recieved, we will exit the dnd tracking loop.
8389
8390 2007-05-28  Jackson Harper  <jackson@ximian.com>
8391
8392         * X11Dnd.cs: Keep tracking until the xdnd finished event is
8393         recieved. TODO: I should probably stick a timer on the dropped
8394         event, and finish the drag if the XDND Finished event never shows
8395         (because some apps don't seem to send it).
8396
8397 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
8398
8399         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
8400         #81733.
8401
8402 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8403
8404         * MonthCalendar.cs: Only mark the keypresses we actually handle as
8405           handled.
8406
8407 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8408
8409         * MonthCalendar.cs: Set the size after initializing all the relevant
8410           variables. Fixes #81742.
8411
8412 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8413
8414         * KeyEventArgs.cs: Fix typo.
8415
8416 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
8417
8418         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
8419         to match MS. Fixed MinDate to only accept value less than or equal
8420         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
8421         Removed TODO's that are now verified by unit tests.
8422
8423 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
8424
8425         * TreeNodeCollection.cs: Minor corrections to exceptions to match
8426         MS.
8427
8428 2007-05-25  Jackson Harper  <jackson@ximian.com>
8429
8430         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
8431         it's own message loop.
8432         * XplatUIX11.cs: Remove some of the dnd hooks
8433
8434 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
8435
8436         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
8437         instead of MinimizedWindowSize.
8438
8439 2007-05-25  Jackson Harper  <jackson@ximian.com>
8440
8441         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
8442
8443 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8444
8445         * KeyEventArgs.cs: Added SuppressKeyPress.
8446         * Control.cs: Added support for SuppressKeyPress.
8447
8448 2007-05-24  Andreia Gaita  <avidigal@novell.com>
8449
8450         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
8451         problems with PieChart. suppress_validation should not be a counter,
8452         if there are several BeginInit calls, the first EndInit will 
8453         activate validation. Fix exceptions thrown by set_Value.
8454         * UpDownBase.cs: ValidateText only if it's the user editing it.
8455
8456 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8457
8458         * ListControl.cs: FilterItemOnProperty should return the filtered
8459         item proeprty even if DataSource is null. The same applies for
8460         GetItemText. Fixes #80427.
8461
8462 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
8463
8464         * Control.cs: If a control doesn't have a parent when it's Dock is
8465         set, but it has children, it needs to do a layout.  Fixes some nested
8466         controls issues.  [Fixes bug #81199]
8467
8468 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8469
8470         * ComboBox.cs: If there are few items in the drop down list, make it
8471           the exact size the items need, no bigger. Fixes #81612.
8472
8473 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
8474
8475         * Application.cs: When we have captured the keyboard for a menu,
8476         check for mouse down events in case we need to close the menu.
8477         * Control.cs, Form.cs: Remove mouse down checks for menus.
8478
8479 2007-05-24  Jackson Harper  <jackson@ximian.com>
8480
8481         * TextControl.cs: Handle tabs in non multiline mode a little
8482         differently.
8483
8484 2007-05-24  Jackson Harper  <jackson@ximian.com>
8485
8486         * TextControl.cs: We need to manually break apart tabbed text and
8487         move the tabs, since the system.drawing tabbing mechanism relies
8488         on tab stops.
8489         * TextBoxBase.cs: Move the caret properly when the user enters a
8490         tab.
8491
8492 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
8493
8494         * ContainerControl.cs: Don't check CanSelect before calling
8495         ProcessMnemonic.
8496         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
8497         release a KeyboardActive on click if it's not ours.
8498
8499 2007-05-23  Andreia Gaita  <avidigal@novell.com>
8500
8501         * ColumnHeader.cs: Add TypeConverter
8502
8503 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8504
8505         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
8506
8507 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8508
8509         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
8510
8511 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8512
8513         * LinkLabel.cs: Implement public Padding property.
8514
8515 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8516
8517         * LinkLabel.cs: Implement public FlatStyle.
8518
8519 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
8520
8521         * Control.cs: Apply patch from George to call parent.PerformLayout
8522         when Visible is changed.  [Fixes bugs #81118, 81718]
8523
8524 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8525
8526         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
8527
8528 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8529
8530         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
8531
8532 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8533
8534         * ContextMenu.cs: Implement Collapse.
8535
8536 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
8537
8538         * ToolBarButton.cs: Implement Name.
8539
8540 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
8541
8542         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
8543         use current_item, it prevents some NRE. Fixes #81675.  
8544
8545 2007-05-22  Andreia Gaita  <avidigal@novell.com>
8546
8547         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
8548         without updating the text.
8549
8550 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
8551
8552         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
8553         without calling DeleteObject.  [Should fix bug #81709]
8554
8555 2007-05-22  Jackson Harper  <jackson@ximian.com>
8556
8557         * RichTextBox.cs: Set the line endings correctly, when flushing
8558         RTF text.
8559
8560 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
8561
8562         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
8563          {Width=0,Height=0}.
8564
8565 2007-05-22  Jackson Harper  <jackson@ximian.com>
8566
8567         * TreeView.cs: Setting top with a null node should set to the very
8568         top.
8569
8570 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8571
8572         * Form.cs: ShowDialog: destroy the handle when message loop is
8573           finished, matches MS behaviour. Refactor parts of WmClose into
8574           RaiseCloseEvents, that only raises events if they haven't already
8575           been raised. Fixes #81688 and #81521.
8576         * Application.cs: Don't call close on the form when exiting a modal
8577           loop, it will raise all the (Form)Closed/Closing events again if
8578           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
8579           which doesn'r raise any events it they have been raised before.
8580
8581 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
8582
8583         * Control.cs: Add OnPrint.
8584         * ToolStrip.cs: Add GetChildAtPoint.
8585         * ToolStripContainer.cs: Add OnRightToLeftChanged.
8586         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
8587
8588 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
8589
8590         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
8591
8592 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8593
8594         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
8595           isn't visible anymore. Fixes #81651.
8596
8597 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8598
8599         * Control.cs: WmShowWindow: Update children's z-order after setting
8600           their parent. SetParent may show the window, thereby corrupting
8601           z-order, since the window will be shown on top.
8602         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
8603           multiple (and redundant) WM_SHOWWINDOW messages.
8604         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
8605           event has already been raised.
8606         * Form.cs: Change is_changing_visible_state to a counter, since
8607           SetVisibleCore can be called recursively. CreateHandle: when
8608           creating mdi children, send (De)Activated events.
8609         * MdiClient.cs: Update use of is_changing_visible_state.
8610         * Application.cs: OnThreadException: Surround exception handling with
8611           try/finally to ensure we always reset the error-handling state
8612           before leaving.
8613
8614 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8615
8616         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
8617           (#81704).
8618
8619 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8620
8621         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
8622         SmallIcon views, now that we have a standarized horizontal spacing.
8623
8624         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
8625         4, just like the other views (Match .Net).
8626
8627 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
8628
8629         * Control.cs: Delay calculating anchor distances until we actually layout.
8630         Always query the WM for the actual size and location it put us at instead of
8631         only when we send negative values.
8632         [Fixes bugs #81694, 81695]
8633
8634 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8635
8636         * Application.cs: Avoid a possible stack overflow when trying to exit
8637           the application.
8638
8639 2007-05-19  Marek Safar  <marek.safar@gmail.com>
8640
8641         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
8642         enum value.
8643
8644 2007-05-19  Andreia Gaita  <avidigal@novell.com>
8645
8646         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
8647         * NumericUpDownAcceleration.cs, 
8648           NumericUpDownAccelerationCollection.cs: Added 2.0
8649           implementation.
8650
8651 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
8652
8653         * RichTextBox.cs: Recalculate the document after the ScrollBars
8654         property is changed. Fixes bug #81681.
8655
8656 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
8657
8658         * DataObject.cs: Implement 2.0 methods.
8659
8660 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8661
8662         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
8663         in the center of the checkbox, not in the left-top corner. 
8664         Fixes #80037.
8665
8666 2007-05-18  Jackson Harper  <jackson@ximian.com>
8667
8668         * RichTextBox.cs: Recalculate the document after the scrollbars
8669         property is changed.
8670         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
8671         81486.
8672
8673 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8674
8675         * CreateParams.cs: Make HasWindowManager marginally faster.
8676         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
8677           into Hwnd so that other drivers can use it as well.
8678         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
8679           the default location from Hwnd. Fixes MDI client windows always
8680           showing up at (0,0) in Windows (Win32 won't set the default
8681           location since the window styles aren't correct).
8682
8683 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
8684
8685         * TreeView.cs: Modified DoubleBuffered to just use the base
8686         implementation.
8687
8688 2007-05-18  Jackson Harper  <jackson@ximian.com>
8689
8690         * TreeView.cs: Set the top node to the last child node when
8691         expanding all
8692         - When we get focus, if there is no selected node, use the top
8693         node.
8694
8695 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
8696
8697         * KeysConverter.cs: Add CanConvertTo.
8698         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
8699         * LinkConverter.cs: Added.
8700
8701 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
8702
8703         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
8704         it prevents error when file dont have write access. Fixes #81669 and #81667.  
8705
8706 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
8707
8708         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
8709         button text. Fixes #79640.  
8710
8711 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
8712
8713         * Control.cs: According to MSDN controls created in the designer theres 
8714         keyboard accelerators visible by default. So included check for design
8715         in ShowKeyboardCuesInternal.  
8716
8717 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
8718
8719         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
8720         text. Fixes #81621.  
8721
8722 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
8723
8724         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
8725         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
8726
8727 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
8728
8729         * Control.cs: Finish implementation of UI State using WmChangeUIState
8730         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
8731         in some controls to check for show_keyboard_cues to draw accell keys "_".  
8732
8733 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8734
8735         * ListBox.cs: When calculating the horizontal scrollbar
8736         in single column mode, don't use values less than 0 for
8737         Maximum. Fixes #81474.
8738
8739 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8740
8741         * ListBox.cs: Throw the some missing exceptions in
8742         ListBox.ObjectCollection methods.
8743
8744 2007-05-17  Jackson Harper  <jackson@ximian.com>
8745
8746         * TextBoxBase.cs: Recalculate the document when the word wrap
8747         value has changed. This fixes 81488.
8748
8749 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
8750
8751         * Clipboard.cs: Implement missing GetText overload.
8752
8753 2007-05-17  Chris Toshok  <toshok@ximian.com>
8754
8755         * Control.cs (CheckDataBindings): remove the binding_context arg
8756         to binding.Check.
8757
8758         * CurrencyManager.cs (OnItemChanged): fix this now that
8759         BindingManagerBase is fixed. also remove the comment telling where
8760         the fix should go.  We set transfering_data to true/false around
8761         the call to PushData to keep UpdateIsBinding from being called.
8762         (ListChangedHandler): remove the extra OnMetaDataChanged call for
8763         PropertyDescriptorAdded in the 1.1 case.  The extra call is
8764         actually generated by System.Data generating 2 metadata changed
8765         events of its own per column add.  The fix should go there.  Add a
8766         comment to that affect in our test's Assert.Ignore.
8767
8768         * BindingManagerBase.cs: Rework PullData and PushData slightly.
8769         we keep a boolean flag (transfering_data) that keeps us from
8770         calling UpdateIsBinding multiple times if we re-enter either of
8771         them.
8772
8773         * ControlBindingsCollection.cs (AddCore): remove the
8774         binding_context arg to binding.Check.
8775
8776         * Binding.cs (IsBinding): don't check if we're binding here, just
8777         return our cached value.  we update it in UpdateIsBinding.
8778         (Check): don't take the binding_context arg, we'll just use our
8779         control's.  Also, for some reason MS doesn't use the data member
8780         field when getting the bindingmanager for this binding.  it just
8781         uses the datasource.  Make this method callable multiple times,
8782         and only do the is_null_desc stuff if manager.Position != -1 (so
8783         we don't get an exception accessing manager.Current).
8784         (UpdateIsBinding): move the code from IsBinding here.
8785         (PositionChangedHandler): call Check here to we can initialize
8786         things that require a non- -1 position.
8787
8788 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
8789
8790         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
8791         control.
8792
8793 2007-05-17  Andreia Gaita  <avidigal@novell.com>
8794
8795         * TabControl.cs: Add 2.0 methods and events, including
8796         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
8797         * TabPage.cs: Add 2.0 methods
8798
8799 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
8800
8801         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
8802         keyboard_cues is properly handled by message method.  
8803
8804 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
8805
8806         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
8807
8808 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
8809
8810         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
8811
8812 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
8813
8814         * Control.cs: 
8815         - WmUpdateUIState added to handle state changes, it make call to
8816         OnChangeUICues event.
8817         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
8818         SystemInformation.
8819
8820 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
8821
8822         * ImageKeyConverter.cs: Added.
8823         * TreeViewImageKeyConverter.cs: Added.
8824
8825 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8826         
8827         * ToolTips.cs: Update Text if SetToolTip is called for a control
8828         already showing the tooltip, as well as restarting its timer; show
8829         tooltip if we are inside the control bounds by the time of calling
8830         SetToolTip. Inside ShowTooltip remove the check to not show the 
8831         tooltip again for the active control (it is allowed by .Net to 
8832         show the tooltip on the same control multiple times).
8833
8834 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8835
8836         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
8837
8838 2007-05-16  Andreia Gaita <avidigal@novell.com> 
8839
8840         * ContainerControl.cs: only process tab key if there are no 
8841         modifier keys present, otherwise the control does the 
8842         tab processing, if it needs to. Fixes #81622
8843         * TabControl.cs: Fixes calculation for which tab to select on
8844         shift+ctrl+tab.
8845
8846 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8847
8848         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
8849
8850 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
8851
8852         * Control.cs: Make IsInputCharInternal to allow controls to
8853         override it and still match MS API.
8854         * TextBoxBase.cs: Override IsInputCharInternal and always
8855         return true.
8856         [Fixes bug #81616]
8857
8858 2007-05-15  Jackson Harper  <jackson@ximian.com>
8859
8860         * TextBox.cs: Disable some of the menu options when using a
8861         readonly textbox.
8862
8863 2007-05-15  Jackson Harper  <jackson@ximian.com>
8864
8865         * TextBox.cs:
8866         * TextBoxBase.cs:
8867         * RichTextBox.cs: Some new 2.0 methods
8868
8869 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
8870
8871         * FileDialog.cs: On 1.0 profile, do not support multidotted 
8872         extensions.
8873
8874 2007-05-14  Jackson Harper  <jackson@ximian.com>
8875
8876         * TextBoxBase.cs: Implement some of the new 2.0 methods.
8877         * RichTextBox.cs: We need to override these methods on 2.0.
8878         * MaskedTextBox.cs: These are implemented now
8879         * TextControl.cs: This was off by one.
8880
8881 2007-05-14  Jackson Harper  <jackson@ximian.com>
8882
8883         * TextControl.cs: Because the line endings are including in the
8884         text, we don't need to add them in anymore.
8885
8886 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
8887
8888         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
8889         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
8890
8891 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
8892
8893         * ToolBar.cs: Adjust size to default size when button theres no text and
8894         image, it fixes remaining issues from #81524.
8895
8896 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
8897
8898         * ToolBar.cs: 
8899         - When not flat call redraw to recalculate sizes on creare handle to match
8900         win32 behavior.
8901         - Revert 77220 because it causes some regressions in toobar
8902         button.
8903
8904 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8905
8906         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
8907           now actually enters a usable state.
8908
8909 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
8910
8911         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
8912         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
8913         3 buttons.
8914
8915 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
8916
8917         * ToolBar.cs: Save default_size on create handle to use later for buttons
8918         without text, needed to mimic win32 behavior.
8919
8920 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
8921
8922         * ToolBar.cs: Fix button layour to best fit width or height according to
8923         vertical or not. Fixes #81524.
8924
8925 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
8926
8927         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
8928         toolbar size info because different styles theres different sizes.
8929         Fixes #81522.
8930
8931 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8932
8933         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
8934         if we are using checkboxes, checked is true, and we have less
8935         than two images in StateImageList; for the 1.1 in the same scenario
8936         draw the first image if we have at least one image in StateImageList.
8937         Fixes part of #81191.
8938
8939 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
8940
8941         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
8942         the owner's Items collection on merge.
8943
8944 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
8945
8946         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
8947         * ToolStripItemCollection.cs: Lots of fixes to when events get called
8948         and parent/owner gets changed based on gert's unit tests.
8949
8950 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8951
8952         * MaskedTextBox.cs: Started implementing parts of it.
8953
8954 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8955
8956         * ListView.cs: When clicking the checkbox on the items
8957         take into account the double clicks even if we have only
8958         one image in StateImageList (only for 1.0/1.1). Also 
8959         generate an extra change of checked state when we receive
8960         the second click on checkbox (match .Net behaviour). 
8961         Fixes part of #81191.
8962
8963 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
8964
8965         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
8966
8967 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
8968
8969         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
8970         even if OnLoad is overriden and base.OnLoad is not called.
8971         [Fixes bug #81582]
8972
8973 2007-05-10  Andreia Gaita  <avidigal@novell.com>
8974
8975         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
8976         shame. (I blame my ever-persisting and annoying cold)
8977
8978 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
8979
8980         * ListView.cs: Don't eat navigation keys.  Let them flow through to
8981         KeyDown/KeyPress routines.  [Fixes bug #81569]
8982
8983 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
8984
8985         * ListView.cs: When handling keys for selecting the item based off
8986         keyboard input, do not consider keys pressed with Alt or Control.  Also,
8987         correctly handle keys when the Shift key is down. [Fixes bug #81578]
8988
8989 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
8990
8991         * Control.cs: When using UseWaitCursor, we have to store the requested
8992         Cursor to use when UseWaitCursor is turned off.
8993
8994 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
8995
8996         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
8997         to false.
8998         * Application.cs: Use PreProcessControlMessage instead of
8999         PreProcessMessage.
9000         * PreProcessControlMessage.cs: Make internal for 1.1.
9001
9002 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9003
9004         * Control.cs: Add InternalContains focus property, which hast the same
9005         functionality of ContainsFocus, but also including implicit controls.
9006         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
9007         since we need to know if the focus is contained in our implicit
9008         ItemControl when calculating Layout. Fixes part of #80888.
9009
9010 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
9011
9012         * ToolTip.cs: Remove center form string alignment as it must be align to
9013         left.
9014
9015 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
9016
9017         * ToolStripItemCollection.cs: Set the new item's parent and owner
9018         in Insert like we do in Add.  [Fixes bug #81568]
9019
9020 2007-05-08  Jackson Harper  <jackson@ximian.com>
9021
9022         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
9023         - Off by one error in SetTop
9024         - Disable DoubeBuffering
9025         
9026 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9027
9028         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
9029           control as much as necessary in order to make it entirely visible,
9030           instead of centering the control in the container (matches MS
9031           behaviour). CalculateCanvasSize: we need to take the current scroll
9032           position into account when calculating the maximum canvas,
9033           otherwise the following scenario will fail: resize so that the
9034           scrollbars appear, use the scrollbars to scroll, resize again
9035           smaller, and now the canvas size is too small. Recalculate: when
9036           showing scrollbars make sure they start off at 0, and try to scroll
9037           the active control into view. Fixes #79540. HandleScrollBar: don't
9038           scroll anywhere if the scrollbar isn't visible.
9039
9040 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9041
9042         * ListView.cs: When focus changed, call Layout/Invalidate
9043         in the focused item to update the selected state (should show
9044         entire label when ListView is focused, and a part of it if is not).
9045         * ListViewItem.cs: When doing layout for LargeIcon, take into account
9046         for displaying the entire label not only the Focused state of the
9047         item, but also the Focused state of the ListView (match .Net
9048         behaviour).
9049
9050 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
9051
9052         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
9053         Implement UseWaitCursor. 
9054
9055 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
9056         Applying contributed patch from Sergey Volk.
9057
9058         * Clipboard.cs: Implement SetDataObject retry logic and new overload
9059         of SetDataObject.
9060         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
9061
9062 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
9063
9064         * Control.cs: Implement DrawToBitmap.
9065
9066 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
9067         Applying contributed patch from Stefan Noack.
9068         
9069         * Control.cs: Add [Get|Set]AutoSizeMode.
9070
9071 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
9072
9073         * MdiClient.cs: Unmerge menus when the last child is closed.
9074
9075 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
9076
9077         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
9078         * ToolStripManager.cs: Call Merge on DropDowns.
9079         [Fixes bug #81477]
9080
9081 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9082
9083         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
9084           uints.
9085         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
9086           visibility. We can't create forms visible, since we have to set the
9087           owner before making the form visible (otherwise Win32 will do
9088           strange things with task bar icons). The problem is that we set the
9089           internal is_visible to true before creating the control, so
9090           is_changing_visible_state is the only way of determining if we're
9091           in the process of creating the form due to setting Visible=true -
9092           this works because SetVisibleCore explicitly makes the form
9093           visibile afterwards anyways. Fixes #80775.
9094
9095 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9096
9097         * ThemeWin32Classic.cs: When drawing ListViewItems,
9098         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
9099         or LargeIcon _and_ item is not focused (match .Net behaviour).
9100
9101 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
9102
9103         * Control.cs, Form.cs: Fix some obsolete method warnings.
9104
9105 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
9106
9107         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
9108         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
9109
9110 2007-05-04  Andreia Gaita  <avidigal@novell.com>
9111
9112         * ContainerControl.cs: Fix active_control attribution when going
9113         up the parent chain so that the first parent container gets the control
9114         and the rest of the parent containers get the child containers (skips
9115         non-containers). Fixes #80729
9116
9117 2007-05-04  Randolph Chung  <tausq@debian.org>
9118
9119         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
9120         [Fixes bug #81499]
9121
9122 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9123
9124         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
9125           takes a size parameter, since the CreateParam's size isn't true for
9126           minimized forms. Fixes #81518,
9127
9128 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9129
9130         * Form.cs: Add OnDeactivateInternal.
9131         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
9132
9133 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9134
9135         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
9136           accessing the parent. Fixes #81508.
9137
9138 2007-05-03  Chris Toshok  <toshok@ximian.com>
9139
9140         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
9141         2.0 block, pass listposition + 1 to ChangeRecordState when a row
9142         was added before the current listposition.  Fixes the
9143         TestInsertRowBeforeCurrent unit test.
9144
9145 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
9146
9147         * Application.cs: Add RaiseIdle.
9148         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9149         XplatUIX11.cs: Implement RaiseIdle.
9150
9151 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
9152         corcompare work: N - Z
9153         * NotifyIcon.cs
9154         * ProgressBar.cs
9155         * RadionButton.cs
9156         * ScrollableControl.cs
9157         * SplitContainer.cs
9158         * SplitterPanel.cs
9159         * StatusBar.cs
9160         * SystemInformation.cs
9161         * TabControl.cs
9162         * TableLayoutControlCollection.cs
9163         * TableLayoutPanel.cs
9164         * TabPage.cs
9165         * ToolBar.cs
9166         * ToolBarButton.cs
9167         * ToolStrip.cs
9168         * ToolStripComboBox.cs
9169         * ToolStripContainer.cs
9170         * ToolStripContentPanel.cs
9171         * ToolStripDropDown.cs
9172         * ToolStripDropDownItem.cs
9173         * ToolStripDropDownMenu.cs
9174         * ToolStripItem.cs
9175         * ToolStripItemCollection.cs
9176         * ToolStripMenuItem.cs
9177         * ToolStripPanel.cs
9178         * ToolStripSplitButton.cs
9179         * ToolTip.cs
9180         * TreeNode.cs
9181         * TreeNodeCollection.cs
9182         * TreeNodeMouseHoverEventArgs.cs
9183         * TreeView.cs
9184
9185 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
9186
9187         * ContextMenu.cs: Add public method Show with alignment property to 2.0
9188         stuff. Thanks aatdark for the patch. 
9189
9190 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
9191
9192         * GridItem.cs: Implement 2.0 Tag property.
9193
9194 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
9195
9196         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
9197         count instead of Nodes.Length.  [Fixes bug #81448]
9198
9199 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
9200
9201         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
9202         [Fixes bug #81506]
9203
9204 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
9205         corcompare work: A - M
9206         * BindingNavigator.cs
9207         * Button.cs
9208         * ButtonBase.cs
9209         * CheckBox.cs
9210         * Control.cs
9211         * FlowLayoutPanel.cs
9212         * Form.cs
9213         * Label.cs
9214         * LinkLabel.cs
9215         * ListView.cs
9216
9217 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
9218
9219         * Application.cs: Give toolstrips a chance to process mnemonics.
9220         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
9221         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
9222         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
9223
9224 2007-05-01  Jackson Harper  <jackson@ximian.com>
9225
9226         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
9227         wider area too.
9228         - Don't set the BoundsSpecified
9229
9230 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
9231
9232         * Application.cs: When using the toolstrip shortcut mechanism, allow the
9233         message to pass through to a regular control if it hosted by a toolstrip.
9234         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
9235         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
9236
9237 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
9238
9239         * TextRenderer.cs: Use the flags argument when using the MeasureString
9240         fallback algorithm.
9241
9242 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
9243
9244         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
9245         the MDI menu item.  [Fixes bug #81483]
9246
9247 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
9248
9249         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
9250         string. When setting Name to null, use zero-length string instead.
9251
9252 2007-04-29  Andreia Gaita  <avidigal@novell.com>
9253
9254         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
9255         DeselectTab). Implement missing 2.0 TabPageCollection methods
9256         (Add, ContainsKey, RemoveByKey, IndexOfKey)
9257
9258 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
9259
9260         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
9261
9262 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
9263
9264         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
9265         Fixes bug #81479. Include details of exception when LoadFile fails.
9266
9267 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
9268
9269         * DrawListViewSubItemEventArgs.cs: Added missing setter
9270
9271 2007-04-27  Andreia Gaita  <avidigal@novell.com>
9272
9273         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
9274         Hide methods (not complete). Implement missing 2.0 OnPopup event.
9275
9276 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9277
9278         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
9279         removed in ly last commit (it was breaking the Label edit feature).
9280
9281         * ThemeWin32Classic.cs: When drawing a ListViewItem use
9282         StringAlignment.Near for LineAlignment (match .Net).
9283
9284 2007-04-27  Andreia Gaita  <avidigal@novell.com>
9285
9286         * TabControl.cs: Change SetTab so it adds the tabpage to the list
9287         of controls if it isn't already there - was blowing up when doing
9288         tabcontrol.TabPages[i]=new TabPage(). 
9289         SetTab now does a replace by removing the page at the index. 
9290         Add a new InsertTab method that inserts a page in a given index 
9291         instead of replacing. 
9292         Implements TabPageCollection.Insert(int, TabPage).
9293
9294 2007-04-27  Chris Toshok  <toshok@ximian.com>
9295
9296         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
9297         internal handler that can be invoked from our subclasses.)  Also,
9298         add a comment to PushData about how we need to fix it.
9299
9300         * CurrencyManager.cs: tons of changes here.  trying to get things
9301         matching the behavior of .net wrt event orders (ItemChanged,
9302         CurrentChanged, PositionChanged.)  I've implemented a private .net
9303         symbol (ChangeRecordState) that appears in stack traces because
9304         it's actually easier to do this than to effective inline all its
9305         various behaviors at every call site.
9306
9307         * RelatedPropertyManager.cs: guard against an exception here by
9308         not using parent.Current if the position is set to -1 (if the
9309         parent datasource is cleared, for instance).
9310
9311         * Binding.cs: don't parse data in PushData (this might be wrong,
9312         but it jives with MS's behavior.)  Also, don't call PushData when
9313         we get a CurrentChanged event.
9314
9315 2007-04-27  Andreia Gaita  <avidigal@novell.com>
9316
9317         * WebBrowser.cs,
9318           WebBrowserBase.cs,
9319           WebBrowserSiteBase.cs,
9320           HtmlDocument.cs: Added stubbed out classes, no real implementations 
9321           yet.
9322
9323 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
9324
9325         * MainMenu.cs: In draw method without parameters call draw method with 
9326         PaintEvent, another one (just rect) adjust rectangle and we dont need it
9327         as Rect property is already adjusted. Fixes #80694.
9328
9329 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
9330
9331         * Application.cs: Need to handle keyboard menu deselection here.
9332         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
9333         navigation, allowing keyboard to work on X11.
9334         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
9335
9336 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
9337
9338         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
9339         menu bar. It fixes some drawing issues in menu bar.
9340
9341 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
9342
9343         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
9344         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
9345         when <alt> key is pressed.
9346
9347 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
9348
9349         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
9350         example just set visible to false and make this prevent from other problems.
9351         In SystrayAdd always remove pending expose. Fixes #81072.
9352
9353 2007-04-26  Marek Safar  <marek.safar@gmail.com>
9354
9355         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
9356         value is set.
9357
9358 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
9359
9360         * ListView.cs: Added three missing 2.0 events and corresponding
9361         EventHandlers. Added the OwnerDraw property.
9362         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
9363
9364 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
9365
9366         * DrawListViewItemEventArgs.cs
9367         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
9368
9369 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
9370
9371         * TextControl.cs: Fixed typo in constructor
9372
9373 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
9374
9375         * Application.cs: Create a shortcut path so that currently selected
9376         MenuStrips can intercept keyboard events without having focus.
9377         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
9378         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
9379         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
9380         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
9381         generate WM_SYSCOMMAND message in X11 for other platforms.
9382         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
9383         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
9384         * ToolStripSplitButton.cs: Add DefaultItem property.
9385         
9386 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
9387
9388         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
9389         fixes some menu draw problem on Windows with border diferent from default
9390         it also fixes #81403.
9391
9392 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9393
9394         * Form.cs: Refactor WndProc into separate methods, just like Control is
9395           doing it.
9396
9397 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9398
9399         * Control.cs: set_Text: move the call to the driver into a seperate
9400           virtual method so that Form can override it.
9401         * MaskedTextBox.cs: Corcompare fixes.
9402         * Form.cs: Override UpdateWindowText and only update the styles if the
9403           form has been shown (fixes #81405).
9404
9405 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
9406
9407         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
9408         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
9409         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
9410         the form lost focus or another control was clicked.
9411
9412 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
9413
9414         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
9415         fixed.
9416
9417 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9418
9419         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
9420           DrawListViewItemEventHandler.cs,
9421           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
9422           Added.
9423         * X11Structs.cs: More ToString implementation.
9424
9425 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
9426
9427         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
9428         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
9429
9430 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9431
9432         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
9433           handle.
9434         * FormCollection.cs: Don't add a form if it's already in the
9435           collection.
9436         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
9437           according to behaviour and MSDN. The ownerWin32 is the active
9438           window at the moment when we call ShowDialog, not the context's
9439           main form (the context's main form may open another form that opens
9440           a form with ShowDialog, the win32 owner is the second form). Add
9441           and remove forms to the Application.OpenForms in other places to
9442           better match MS behaviour. Add an IsActive property that raises
9443           On(de)Activated only if the active state has changed (we were
9444           raising OnDeactivated before OnActivated while creating forms).
9445         * Application.cs: Refactor Enabling/Disabling of windows for modal
9446           dialog loops out to separate methods, and restore the thread
9447           context when we quit the method. Fixes #81407.
9448
9449 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9450
9451         * ListView.cs: In ItemControl.HandleClicks, also fire 
9452         2.0 MouseClick or MouseDoubleClick events on the parent,
9453         not only the Click/DoubleClick events.
9454
9455 2007-04-24  Andreia Gaita  <avidigal@novell.com>
9456
9457         * TableLayoutSettings.cs: 
9458         - Added a GetControls method and a support structure to help the 
9459         TypeConverter to enumerate the controls for     serialization. 
9460         - Added a new serialization constructor. 
9461         - Added a isSerialized flag initialized to true on the 
9462         serialization constructor so that the TableLayoutPanel.LayoutSettings 
9463         setter does not throw the designed NotSupportedOperation exception
9464         when the object is built through deserialization.
9465         - Implemented GetObjectData
9466         
9467         * TableLayoutPanel.cs: Added check on LayoutSettings.
9468
9469 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9470
9471         * ListView.cs: Report Click and DoubleClick events to the parent
9472         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
9473         from breaking the click count state when using dialog forms (Control
9474         reports the clicks in a similar fashion). In the previous behaviour
9475         the last WM_LBUTTONUP message in a  double click was sent to the
9476         ListView's form, instead of the ListView, which was breaking the click
9477         count for it. Fixes #80387.
9478
9479 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
9480
9481         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
9482
9483 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
9484
9485         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
9486         us from created dropdowns for menu items that do not have subitems.
9487         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
9488         Check HasDropDownItems before calling DropDown so a dropdown will not be
9489         created if it isn't needed.
9490
9491 2007-04-24  Jackson Harper  <jackson@ximian.com>
9492
9493         * TreeView.cs: Set the first node to the selected node when we get
9494         focus if there is no selected node.
9495
9496 2007-04-24  Andreia Gaita  <avidigal@novell.com>
9497
9498         * MimeIcon.cs: remove using blocks so that image streams are
9499         not disposed of. Fixes #80151
9500
9501 2007-04-24  Jackson Harper  <jackson@ximian.com>
9502
9503         * TextBoxBase.cs: Fixup the height of textboxes when the control
9504         is created.
9505
9506 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
9507
9508         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
9509         for each ToolStripItem when the parent's RightToLeftChanged is called.
9510
9511 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9512
9513         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
9514           Fixes #80163.
9515         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
9516           property, so that the setter can be overriden too.
9517         * TextBox.cs: Change GetContextMenuInternal() to use
9518           ContextMenuInternal.
9519
9520 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9521
9522         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
9523           #81406.
9524
9525 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9526
9527         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
9528           #81406.
9529
9530 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9531
9532         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
9533           avoid duplicate work. Mostily skeleton code, it's not working at
9534           all yet.
9535
9536 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
9537
9538         * NotifyIcon.cs : stub for MouseClick event
9539         * Application.cs: stub for SetUnhandledExceptionMode
9540
9541 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
9542
9543         * BindingNavigator.cs : Initial (partial) implementation
9544
9545 2007-04-23  Jackson Harper  <jackson@ximian.com>
9546
9547         * TreeView.cs: Do not create the treeview's handle when setting
9548         the scroll position.
9549         - ExpandAll needs to compute the scrollbars so it knows which
9550         position to set the bar too.
9551         * TreeNode.cs: 
9552         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
9553
9554 2007-04-23  Jackson Harper  <jackson@ximian.com>
9555
9556         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
9557         key. Fixes #81408.
9558
9559 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
9560
9561         * ToolStripItem.cs: Make GetImageSize internal.
9562         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
9563         need to draw an item.  Fixes a reported issue where images on menus
9564         that were not 16x16 were drawing incorrectly.
9565
9566 2007-04-21  Miguel de Icaza  <miguel@novell.com>
9567
9568         * Padding.cs: Use the converter, fixes the resgen2 issue with
9569         XMLNotePad. 
9570
9571 2007-04-21  Jackson Harper  <jackson@ximian.com>
9572
9573         * TreeView.cs: Dont try to unhighlight the selected node if there
9574         isn't a selected node.
9575
9576 2007-04-21  Jackson Harper  <jackson@ximian.com>
9577
9578         * UpDownBase.cs:
9579         * TextBoxBase.cs:
9580         * ListView.cs:
9581         * ListBox.cs:
9582         * TreeView.cs: Use the InternalBorderStyle property to set the
9583         initial border style, this forces the client rectangle to be sized
9584         correctly.
9585
9586 2007-04-20  Jackson Harper  <jackson@ximian.com>
9587
9588         * TreeView.cs: Simplify scrolling to the last node after expanding
9589         all.
9590         - Fix some off by ones with setting the bottom.
9591
9592 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
9593
9594         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
9595         that.  We were incorrectly doing it the other way around.  Also,
9596         update ClientSize if we change the BorderStyle before the control
9597         is created.
9598
9599 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
9600
9601         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
9602         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
9603         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
9604         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
9605         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
9606         Caption to CaptionHeight.
9607         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
9608         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
9609         and FixedFrameBorderSize to return value from current XplatUI driver.
9610         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
9611         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
9612         and FixedFrameBorderSize using win32 API. Renamed Caption to
9613         CaptionHeight.
9614         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
9615         * SystemInformation.cs: Fixed typo in BorderSize.
9616
9617 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
9618
9619         * XplatUI.cs: Added MenuAccessKeysUnderlined.
9620         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
9621         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
9622         returning false.
9623         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
9624         value from XplatUI driver.
9625         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
9626         SystemParametersInfo.
9627         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
9628         override.
9629         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
9630         returning false.
9631
9632 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9633
9634         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
9635
9636 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9637
9638         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
9639
9640 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
9641
9642         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
9643         MenuStrips that contain ToolStripSeparators.
9644
9645 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9646
9647         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
9648           DefineStdCursorBitmap.
9649         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
9650           has been created off a standard cursor. This is used to get a
9651           bitmap of the standard cursor when Draw or DrawStretched is called
9652           in order to draw the cursor.
9653         * X11Structs.cs: Added XcursorImage and XcursorImages.
9654         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
9655           DefineStdCursorBitmap.
9656         * Cursors.cs: Update all relevant creations of Cursor to use the new
9657           internal constructor.
9658
9659 2007-04-19  Jackson Harper  <jackson@ximian.com>
9660
9661         * TextBox.cs: Move the has_been_focused into the base control, so
9662         some of the text adding methods can manipulate it (probably time
9663         for a better name for this flag too).
9664         - Call a new version of selectall that doesn't scroll
9665         * TextBoxBase.cs: When we append text, if the document is empty,
9666         don't scroll.  If the document has text already, we scroll to the
9667         end of the appended text.
9668         - When the text is changed, we reset the has_been_focused, so the
9669         next time the control gets focused, all the text is selected.
9670
9671 2007-04-19  Jackson Harper  <jackson@ximian.com>
9672
9673         * TextControl.cs: Move the margins to the document, add a method
9674         so the margin sizes can be updated.
9675         * TextBoxBase.cs: When the border style is changed, update the
9676         border sizes.
9677
9678 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
9679
9680         * Control.cs: Respect DefaultPadding.
9681         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
9682         padding into account.
9683         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
9684
9685 2007-04-19  Jackson Harper  <jackson@ximian.com>
9686
9687         * TextControl.cs: Oops, we need to use the ClientRect not the
9688         bounds here.
9689
9690 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9691
9692         * ListView.cs: In ItemControl.ItemsMouseDown, take into
9693         account the double clicks when CheckBoxes are used and
9694         the pointer is inside the checkbox. Fixes part of #81191.
9695
9696 2007-04-18  Jackson Harper  <jackson@ximian.com>
9697
9698         * TextControl.cs: Pressing the end key shouldn't move the caret
9699         past the line ending.
9700         * TextBoxBase.cs: We can still delete if we are in the line
9701         ending and the combine will just kill the existing line ending.
9702
9703 2007-04-18  Jackson Harper  <jackson@ximian.com>
9704
9705         * TextControl.cs: We can't move lines, then invalidate their
9706         bounds, we need to get the old bounds and combine that with the
9707         new bounds.
9708         * TextBoxBase.cs: Before combining two lines for a delete, we need
9709         to invalidate the area of the old line, since that will be moved
9710         in the combine operation.
9711
9712 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
9713
9714         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
9715         with transparent background. Fixes #80482.
9716
9717 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
9718
9719         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
9720         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
9721         [Fixes bug #81391]
9722
9723 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9724
9725         * CreateParams.cs: Add a couple of helper methods and do a less string
9726           concatenation in ToString.
9727         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
9728           overload that takes a Control parameter, since this method may be
9729           called before a control is assigned to the hwnd (from
9730           CreateWindow), and update CreateWindow to use the new overload. In
9731           GetMenuOrigin subtract the title bar from the y position if the
9732           form has a window manager (since we're painting it and not X).
9733         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
9734           CreateParams to calculate the origin (since border sizes may vary).
9735           In ScreenToMenu only subtract the title height if we actually have
9736           a title.
9737         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
9738           mdi children never have menus of themselves.
9739         * InternalWindowManager.cs: Implement menu handling like form does.
9740           Added GetMenuOrigin to calculate the menu origin, can't use the
9741           CreateParams from the form like normally since it's lying.
9742         * Hwnd.cs: Implement GetBorderSize better (in the sense more
9743           windows-like) and add Inflate and comparison operators to the
9744           Borders type. When calculating MenuOrigin and it's a form with a
9745           window manager, use the window manager to calculate it.
9746
9747 2007-04-17  Chris Toshok  <toshok@ximian.com>
9748
9749         * Control.cs (CreateControl): turns out in 2.0 we don't need this
9750         OnBindingContextChanged thing here.  It's only generated from
9751         ContainerControl.OnCreateControl.  Fixes a newly written unit test
9752         - BindingTest.BindingContextChangedTest4.
9753         
9754 2007-04-17  Jackson Harper  <jackson@ximian.com>
9755
9756         * ScrollBar.cs: When setting values, make sure the current
9757         position stays within the new values range.
9758
9759 2007-04-17  Chris Toshok  <toshok@ximian.com>
9760
9761         * Control.cs (CreateControl): talk about a bizarre corner case.
9762         Don't emit OnBindingContextChanged here if we're a parentless
9763         control (i.e. if we're a form.).  Fixes
9764         BindingTest.BindingContextChangedTest2.
9765
9766 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
9767
9768         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
9769         from win32. Fixes #81255.
9770
9771 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
9772
9773         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
9774         already present in CalculateButtonTextAndImageLayout.
9775
9776 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9777
9778         * XplatUIX11.cs: When setting min/max size for a window we need to
9779           translate the coordinates to x coordinates. Create an overload of
9780           SetWindowMinMax that takes a CreateParams handling this, and change
9781           SetWMStyles to call this function (can't use Control.FromHandle in
9782           the SetWindowMinMax to get the control/CreateParams from the handle
9783           because the handle might not have been assigned to the control
9784           yet). Fixes #81371.
9785
9786 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9787
9788         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
9789         if StateImageList is non-null and it has less than two items (match MS
9790         behaviour). Also, in HandleNavKeys handle the Space key, calling
9791         the new ToggleItemsCheckState method, which tries to change the
9792         checked state of the selected items. Fixes part of #81191.
9793
9794 2007-04-16  Jackson Harper  <jackson@ximian.com>
9795
9796         * RichTextBox.cs: namespace cleanup.
9797
9798 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
9799
9800         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
9801
9802 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
9803
9804         [Fixes #79447]
9805         * Control.cs: Call invalidate in set_Region.
9806
9807         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
9808         it dont works here.
9809
9810 2007-04-16  Jackson Harper  <jackson@ximian.com>
9811
9812         * TextBoxBase.cs: When enter is pressed, we need to update all
9813         lines below the current.
9814
9815 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
9816
9817         * MdiClient.cs: Implement implicit menu merging for MDI
9818         children.  When a child form is active, if it has a menustrip
9819         and the parent form has a MainMenuStrip, automatically merge
9820         the menus.
9821
9822 2007-04-15  Andreia Gaita  <avidigal@novell.com>
9823
9824         * TabControl.cs: Refactored sizing methods to not repeat
9825         code all over the place. Tab bounds are now calculated
9826         as if alignment is top and single line, and only when 
9827         setting the bounds are the positions adjusted according
9828         to alignment. Replaced hardcoded positions, spacings and
9829         paddings by getting the values the ThemeEngine. 
9830         Fixes #79619.
9831         
9832         * Theme.cs: Change TabControl properties and methods so
9833         that all start with TabControl*. Added more properties
9834         to help remove hardcoded values on tabcontrol.
9835         Add CPDrawBorder3D declaration so the Theming classes
9836         can access it.
9837         
9838         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
9839
9840         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
9841         on the Theming namespace, and call the appropriate methods here.
9842         Change CPDrawBorder3D to public.
9843
9844 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9845
9846         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
9847         the control after firing the OnMouseUp event, instead of sending
9848         the message before the mentioned event. This is so we can match the
9849         MS behaviour. Fixes part of #80385.
9850
9851 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
9852
9853         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
9854         RightToLeft property.
9855
9856 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
9857
9858         * ToolStrip.cs: Add properties and internal methods to support merging.
9859         * ToolStripItem.cs: Add MergeAction and MergeIndex.
9860         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
9861         not trigger reparenting or layouts.
9862         * ToolStripManager.cs: Add Merge and RevertMerge methods.
9863         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
9864         is hosting the overflow menu.
9865
9866 2007-04-13  Jackson Harper  <jackson@ximian.com>
9867
9868         * TextControl.cs: Set the line ending correctly for the first
9869         inserted line.
9870
9871 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
9872
9873         * Theme.cs: Update GetMethod to get the new definition for 
9874         KnownColors.Update (and fix theme color updates).
9875
9876 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
9877
9878         * MessageBox.cs: Fix some test and button position.
9879
9880 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9881
9882         * Form.cs: Consider the implicit controls in
9883         GetRealChildAtPoint. We need it since this method
9884         is called on Form when handling the some messages in
9885         WndProc, and need to consider those implicit ones too.
9886         Fixes #80385.
9887
9888 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
9889
9890         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
9891         if there are no ShortcutKeys set.
9892         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
9893         set, use it when painting.
9894
9895 2007-04-12  Jackson Harper  <jackson@ximian.com>
9896
9897         * TextControl.cs: Fix some off-by-one issues in line duplication
9898         and insertion in the undo manager. Also, overwrite the first tag
9899         of a line on insert, if it is just a zero lengthed tag. This
9900         prevents us from getting an extra stranded tag at the beginning of
9901         the first line.
9902
9903 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
9904
9905         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
9906         to calculated proper size including when handle was not created yet.
9907
9908 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9909
9910         * MdiWindowManager.cs: When moving a form, allow the form to be moved
9911           when the mouse is outside of it's parent's client rectangle. Fixes
9912           #79982 (take 3, part 2).
9913
9914 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9915
9916         * X11Structs.cs: Add a few ToString() overrides.
9917         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
9918           the window location in a window-manager independent way. Reworked
9919           FrameExtents, it now actually works. Reworked AddConfigureNotify
9920           and ReparentNotify handling to use GetTopLevelWindowLocation
9921           instead of the earlier, more hacky solution. Reworked SetWMStyles,
9922           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
9923           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
9924           for all other windows (fixes #81281 part 1), a toolwindow is hidden
9925           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
9926           and generally refactored to do as few calculations as possible
9927           inside the lock.
9928
9929 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
9930
9931         * Theme.cs: Change "reflective-contract" between MWF and SD to 
9932         minimize # of calls, avoid Color serialization and avoid updating 
9933         every "known colors" each time a single one is updated.
9934
9935 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
9936
9937         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
9938         when not readonly and the text is explicitly set. Code style updates.
9939         * DataGridTableStyle.cs: Removed extra line.
9940         * DataGrid.cs: Code style updates. Removed extra whitespace.
9941         * DataGridColumnStyle.cs: Code style updates. Removed extra 
9942         whitespace.
9943
9944 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9945
9946         * XplatUIX11.cs: Added comment that "fixes" #80021.
9947
9948 2007-04-09  Jackson Harper  <jackson@ximian.com>
9949
9950         * TextControl.cs: We don't need this -1 on the line count anymore.
9951
9952 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
9953
9954         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
9955         entered value to underlying type, and convert it back to a string to
9956         apply formatting. Modified GetFormattedValue to use TypeConverter
9957         if available.
9958
9959 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
9960
9961         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
9962         Use SubItems property when we want to ensure there's at least one
9963         subitem. Modified SubItems property to ensure there's always at least
9964         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
9965         the NRE's reported by MS.
9966
9967 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
9968
9969         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
9970         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
9971         Spaces to tabs. Removed extra tabs.
9972
9973 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
9974
9975         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
9976         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
9977
9978 2007-04-06  Jackson Harper  <jackson@ximian.com>
9979
9980         * TextBoxBase.cs: When a delete removes a line, recalculate all
9981         lines below that line (they need to get offsets setup correctly)
9982         and invalidate.
9983
9984 2007-04-05  Jackson Harper  <jackson@ximian.com>
9985
9986         * TextControl.cs: We need to invalidate across the width of the
9987         document when we are invalidating multiple lines.
9988         * TextBoxBase.cs: Don't delete into the line ending.
9989
9990 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9991
9992         * ListView.cs: Restore the check for the MouseHover event
9993         in ListView. It looks like the ListView fires more than one MouseHover
9994         event when HoverSelection is true  _only_ in weird-corner scenarios, but
9995         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
9996         event.
9997
9998 2007-04-05  Mike Kestner  <mkestner@novell.com>
9999
10000         * ListView.cs : raise MouseDown before updating selection.
10001         [Fixes #80373 tab 1&3]
10002
10003 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
10004
10005         * ToolStripRenderer.cs: Add static method to mirror image.
10006         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
10007         and RightToLeftAutoMirrorImage.
10008         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
10009
10010 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
10011
10012         * ToolStripSplitStackLayout.cs: Support Alignment property.
10013         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
10014
10015 2007-04-05  Jackson Harper  <jackson@ximian.com>
10016
10017         * TextControl.cs: Move around the line endings when crossing line
10018         boundaries.
10019         - When combining lines, strip the ending text off the first line.
10020
10021 2007-04-05  Jackson Harper  <jackson@ximian.com>
10022
10023         * TextControl.cs:
10024         * TextBoxBase.cs: Try to never move the cursor into the line
10025         ending.
10026         
10027 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
10028
10029         * ToolStripItem.cs: Make sure we aren't firing mouse events when
10030         the item is disabled.  Also add a few missing methods.
10031
10032 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10033
10034         * ListView.cs: We don't need the MouseEnter/MouseLeave check
10035         to fire just one MouseHover event when HoverSelection is true, since
10036         .Net does fire more than one MouseHover event in that scenario. Also,
10037         fix the selection in HoverSelection, by invoking UpdateMultiSelect
10038         if MultiSelect is true, instead of only setting ListViewItem.Selected.
10039         Finally, we need to reset the Hover logic in MouseMove, even when we
10040         don't have a selected item.
10041
10042 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
10043
10044         * ToolStrip.cs: Add several missing methods, properties, and events.
10045
10046 2007-04-04  Chris Toshok  <toshok@ximian.com>
10047
10048         * DataGridTextBoxColumn.cs: set the bounds of the text box to
10049         (0,0,0,0) in Commit, as MS does.
10050
10051         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
10052         make sure we set CurrentRow on a row header click *before* calling
10053         Select.  This moves the current cell (and the textbox) to the new
10054         row.  The call to Select then hides the textbox, giving us the
10055         correct behavior.  Fixes #80362.
10056
10057         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
10058         (ListChangedHandler): reorder the position/current changed events,
10059         and call UpdateIsBinding in the ItemAdded case.
10060
10061         * GridColumnStylesCollection.cs: add some columns events, one of
10062         which raises the CollectionChanged event.
10063
10064 2007-04-04  Jackson Harper  <jackson@ximian.com>
10065
10066         * TextControl.cs: When we delete multiple selection lines
10067         invalidate the selection area, don't need to do that for single
10068         lines because the final update view will handle it.
10069
10070 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
10071
10072         * Control.cs: When we CreateControl, we need to also create all of the
10073         control's children.  The child's OnLoad must also fire before the parent's
10074         OnLoad.  Fixes the toolbox size in PDN.
10075
10076 2007-04-04  Jackson Harper  <jackson@ximian.com>
10077
10078         * TextBoxBase.cs: When the user presses enter, insert a line
10079         ending into the text. (Maybe this would be a good spot for
10080         Environment.NewLine).
10081         * TextControl.cs: Remove undo manager hack, line endings get
10082         inserted properly now.
10083         
10084 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
10085
10086         * MenuAPI.cs: 
10087         - Remove unneeded parameters in UpdateCursor.
10088         - Fix UpdateCursor to check if menu is active.
10089         - Call UpdateCursor when menu deactivate my click.
10090         [Fixes remaining issues from #80410]
10091
10092 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
10093
10094         * Control.cs: GetRealChildAtPoint method added, it make an
10095         recursive child control search for the point. 
10096
10097         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
10098         menu.
10099
10100         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
10101
10102 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
10103
10104         * Form.cs: Fix mouse position when send back mouse event after closes
10105         menu.
10106
10107 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
10108
10109         * Form.cs: Simplify the BUTTONDOWN for active tracker.
10110
10111 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
10112
10113         * Control.cs: Fix an issue where if a user resized a control inside
10114         a sizing method like OnResize, we would overwrite their explicit
10115         value.  Also, only call DefaultSize once in the constructor instead
10116         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
10117         nothing actually changed.
10118
10119 2007-04-03  Jackson Harper  <jackson@ximian.com>
10120
10121         * TextControl.cs: Don't attempt to copy text for lines with no
10122         text in them (technically this shouldn't happen, but we aren't
10123         always inserting line endings when we should be).
10124
10125 2007-04-03  Jackson Harper  <jackson@ximian.com>
10126
10127         * TextBoxBase.cs: Calculate the scrollbars before calculating the
10128         document, because this sets some of the document size properties
10129         that are needed.
10130
10131 2007-04-03  Jackson Harper  <jackson@ximian.com>
10132
10133         * TextBoxBase.cs: We need to calculate maximums even if this is
10134         not a multiline control, because the maxs are used for scrolling.
10135         - Display the caret after doing a page up/down, we need to
10136         manually display it because a proper CaretMoved event isn't
10137         triggered (this is because of the way the math is done to
10138         determine how far to scroll).
10139
10140 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
10141
10142         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
10143         (ToolBar was relying on SetBoundsCore to default the values sent 
10144         base off of BoundsSpecified.)
10145
10146 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10147
10148         * DateTimePicker.cs: Change Text so that when a null value or empty
10149           string is assigned to the test we always raise ValueChanged and
10150           TextChanged (earlier implementation would only raise ValueChanged
10151           if the current date value was different from DateTime.Now).
10152
10153 2007-04-03  Andreia Gaita <avidigal@novell.com> 
10154
10155         * ButtonBase: Call update after invalidation, fixes #80194
10156
10157 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10158
10159         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
10160           #79335.
10161
10162 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10163
10164         * XplatUIX11.cs: SetWMStyles: If the control is a form with
10165           FormBorderStyle = None, don't give the window any decorations.
10166           Fixes #81276.
10167
10168 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10169
10170         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
10171         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
10172           to check for is a mix of several styles (such as WS_CAPTION for
10173           instance).
10174         * Control.cs: Don't paint an area bigger than the client area when
10175           painting the background colour. Add an internal GetCreateParams.
10176           Update calls to XplatUI.CalculateWindowRect due to API change.
10177         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
10178           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
10179           the size if it hasn't been handled by any windows. When creating
10180           and moving windows, X wants the location of the entire window, but
10181           the size of the client window, so add
10182           TranslateClientRectangleToXClientRectangle,
10183           TranslateWindowSizeToXWindowSIze and
10184           TranslatedXWindowSizeToWindowSize to cope with this, and call them
10185           before every window creation and move. Update CalculateWIndowRect
10186           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
10187           In AddConfigureNotify don't do anything if the hwnd is a zombie
10188           (fixes the BadWindow we were getting while running the tests),
10189           always calculate the offsets when it's a parentless window, not
10190           only when reparented, and translate the window size, since we're
10191           getting the client size of the whole window, excluding entire
10192           window.
10193         * Theme.cs: Added BorderSizableSize.
10194         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
10195           anymore. Update calls to XplatUI.CalculateWindowRect due to API
10196           chang
10197         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
10198           change. Fake the window styles here instead of in XplatUIWin32 so
10199           that all back-ends get the same window styles (and it's Form that's
10200           deciding when to use wm, not the Win32 backend anyways)
10201         * Hwnd.cs: Completely reworked GetWindowRectangle and
10202           GetClientRectangle - they are now passed a CreateParams and they
10203           only use Style and ExStyle to determine the rectangles (they should
10204           now work just like Win32AdjustWindowRectEx - though quite a few
10205           special cases are probably missing). They should also be 100%
10206           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
10207           == rect), and all numbers (borders, menu sizes) are taken from the
10208           current theme. Added a GetBorders helper function that will return
10209           the borders for any given CreateParams (including captions and
10210           menus), and GetBorderSize that returns the given border size only.
10211         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
10212           Hwnd.GetClientRectangle.
10213
10214 2007-04-02  Chris Toshok  <toshok@ximian.com>
10215
10216         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
10217         logic between the values we present to the user and the values
10218         which are stored in the column's property.  Also, don't call
10219         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
10220
10221 2007-04-02  Jackson Harper  <jackson@ximian.com>
10222
10223         * TextBoxBase.cs: Scroll faster!
10224
10225 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
10226
10227         * StatusStrip.cs: Layout fixes for PDN.
10228         * ToolStrip.cs: Set item's available to true, and placement to main when
10229         added.
10230         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
10231         changing in setter before doing any work, add InternalVisible.
10232         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
10233         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
10234         infinite loop.
10235
10236 2007-04-02  Jackson Harper  <jackson@ximian.com>
10237
10238         * TextBox.cs: LBUTTON does not make the textbox select all of it's
10239         text on focus.
10240
10241 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10242
10243         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
10244           Makes ToolStripComboBoxes show up again.
10245
10246 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10247
10248         * ListView.cs: Add a hover_pending field in ListView
10249         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
10250         cycle (we are resetting the MouseHover logic in XplatUI
10251         to handle HoverSelection). Fixes #80429.
10252
10253 2007-04-02  Jackson Harper  <jackson@ximian.com>
10254
10255         * TextControl.cs: Make sure the attributes get set on the last
10256         tag.
10257         - Still have to do the end tag if we have stepped all the ways to
10258         the end.
10259
10260 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
10261
10262         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
10263         on an internal libgdiplus call when the information is already 
10264         available via the public API.
10265
10266 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10267
10268         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
10269           control is removed from a control collecftion.
10270         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
10271           Fixes FormPropertyTest (failed on rare occasions).
10272         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
10273           of Win32SetParent (when changing from no parent to a parent it
10274           might add the new parent's location in screen coordinates to this
10275           window's location).
10276         * Form.cs: Rework ChangingParent once again, now the handle is
10277           recreated whenever a FormWindowManager is added or removed (that is
10278           whenever a normal form is parented or abandoned). Also change
10279           CreateParams so that all non-toplevel windows always get the
10280           specified sice (StartupPosition is never considered for
10281           non-TopLevel forms).
10282         * ContainerControl.cs: Add ChildControlRemoved, the container control
10283           needs to be notified when a control is removed from it's
10284           collection, in the case the removed control is the active control.
10285
10286 2007-04-02  Jackson Harper  <jackson@ximian.com>
10287
10288         * RichTextBox.cs: Use the new methods for setting the font and
10289         color, these methods set the specified attribute without
10290         overriding the other attributes.
10291
10292 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
10293
10294         * ToolStripPanel.cs: Fixes for better layouts in PDN.
10295
10296 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
10297
10298         * TextBox.cs: Added internal ChangeBackColor method to special-case
10299         Color.Empty. Added check for invalid ScrollBars value.
10300         * TextBoxBase.cs: Added internal ChangeBackColor method.
10301         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
10302         internal ChangeBackColor method to special-case Color.Empty. Added
10303         check for invalid ScrollBars value.
10304
10305 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
10306
10307         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
10308
10309 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
10310
10311         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
10312         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
10313         [Based on submitted patch from Olivier Duff.]
10314
10315 2007-03-30  Jackson Harper  <jackson@ximian.com>
10316
10317         * TextBox.cs: Only select all on initial focus if the user has not
10318         specified a selection area.
10319
10320 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
10321
10322         * UserControl.cs: Override CreateParams.
10323
10324 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10325
10326         [ Fixes #80995 ]
10327
10328         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
10329         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
10330           check for is a mix of several styles (such as WS_CAPTION for instance).
10331         * Control.cs: Don't paint an area bigger than the client area when painting
10332           the background colour. Add an internal GetCreateParams. Update calls to
10333           XplatUI.CalculateWindowRect due to API change.
10334         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
10335           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
10336           hasn't been handled by any windows. When creating and moving windows, X
10337           wants the location of the entire window, but the size of the client
10338           window, so add TranslateClientRectangleToXClientRectangle,
10339           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
10340           to cope with this, and call them before every window creation and move.
10341           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
10342           removing DeriveStyles). In AddConfigureNotify don't do anything if the
10343           hwnd is a zombie (fixes the BadWindow we were getting while running the
10344           tests), always calculate the offsets when it's a parentless window, not
10345           only when reparented, and translate the window size, since we're getting
10346           the client size of the whole window, excluding entire window.
10347         * Theme.cs: Added BorderSizableSize.
10348         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
10349           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
10350         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
10351           Fake the window styles here instead of in XplatUIWin32 so that all
10352           back-ends get the same window styles (and it's Form that's deciding when
10353           to use wm, not the Win32 backend anyways)
10354         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
10355           they are now passed a CreateParams and they only use Style and ExStyle
10356           to determine the rectangles (they should now work just like
10357           Win32AdjustWindowRectEx - though quite a few special cases are probably
10358           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
10359           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
10360           sizes) are taken from the current theme. Added a GetBorders helper
10361           function that will return the borders for any given CreateParams
10362           (including captions and menus), and GetBorderSize that returns the given
10363           border size only.
10364         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
10365           Hwnd.GetClientRectangle.
10366
10367 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10368
10369         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
10370           layout of the mdi children is handled by CreateParams. Fixes
10371           #79964,
10372
10373 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
10374
10375         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
10376         processed.
10377
10378         * Form.cs: When active tracker mouse down is not processed, send event 
10379         back to control inside mouse position. [Fixes #81227]
10380
10381 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
10382
10383         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
10384         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
10385         stealing focus from the active form on Windows.  (Control will be made
10386         visible in ShowWindow.)
10387
10388 2007-03-29  Mike Kestner  <mkestner@novell.com>
10389
10390         * ImageList.cs : add internal Changed event.
10391         * ListView.cs : hook up to StateImageList.Changed to perform
10392         invalidations when the the state icon list changes. [Fixes #81191]
10393
10394 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
10395
10396         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
10397         to prevent tooltips from stealing focus from the active form on Windows.
10398
10399 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
10400
10401         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
10402
10403         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
10404
10405 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
10406
10407         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
10408         balloons.
10409
10410 2007-03-29  Jackson Harper  <jackson@ximian.com>
10411
10412         * TextControl.cs: When deleting text from non multiline textboxes,
10413         we need to update the entire document, because line offsets will
10414         be shifting.
10415
10416 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
10417
10418         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
10419         added to theme, now we can create themes that uses diferent notify engines
10420         like notification-daemon from galago project or growl for Mac OS.
10421
10422 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
10423
10424         * NotifyIcon.cs: Prevent Balloon to show in task bar.
10425
10426 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
10427
10428         * XplatUIX11.cs: Prevent system to open more than one balloon.
10429
10430         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
10431         some compiler warning messages.
10432
10433 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
10434
10435         [Fixes #79149]
10436
10437         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
10438
10439         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
10440         implemented, this methods is used by NotifyIcon.BalloonWindow class.
10441
10442         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
10443         systems.
10444
10445 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10446
10447         * ListViewItem.cs: Forgot to make Invalidate internal.
10448
10449 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10450
10451         * ListView.cs: Add a InvalidateSelection method to
10452         invalidate methods which are currently selected, and call
10453         it when setting FullRowSelect and HideSelection, instead of
10454         calling Redraw.
10455
10456 2007-03-28  Chris Toshok  <toshok@ximian.com>
10457
10458         * XplatUIX11.cs (UnmapWindow): reindent this block.
10459
10460         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
10461         the selection_start if we're moving the selection (that is, not
10462         extending it). Fixes bug #80461.
10463
10464 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
10465
10466         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
10467         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
10468         create private ControlCollection.
10469
10470 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
10471
10472         * Control.cs: We need to call OnVisibleChanged for our implicit
10473         children as well as our normal children.  Fixes scrollbars in
10474         comboboxes not showing up.
10475
10476 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
10477
10478         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
10479         the check for IsHandleCreated first.  The check in CreateHandle is not
10480         good enough because CreateHandle can be overriden, and the override 
10481         should not be called if the handle is already created.
10482
10483 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
10484
10485         * ToolStrip.cs: Remove MonoTODO for tooltips.
10486         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
10487         * ToolStripContainer.cs: Add custom ControlCollection class.
10488         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
10489         * ToolStripDropDown.cs: Add some missing properties/methods.
10490         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
10491         * ToolStripItem.cs: Remove MonoTODO for tooltips.
10492         * ToolStripManager.cs: Add IsShortcutDefined.
10493         * ToolStripOverflow.cs: Override LayoutEngine.
10494         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
10495         * ToolStripSeparator.cs: Add ImageKey.
10496
10497 2007-03-28  Jackson Harper  <jackson@ximian.com>
10498
10499         * TextControl.cs: If a char delete removes a line ending, we need
10500         to update the ending style.
10501         - Make sure the line ending calcs get called.
10502
10503 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10504
10505         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
10506           it was making the new code not work. Fixed a typo in the new code
10507           as well. Fixes #79826.
10508
10509 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
10510
10511         * XplatUIWin32.cs:
10512         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
10513         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
10514         - SystrayBalloon method implemented.
10515         [Add support for notifyicon balloon on win32, #79149]
10516
10517 2007-03-27  Mike Kestner  <mkestner@novell.com>
10518
10519         * ThemeWin32Classic.cs : update StateImageList selection to mirror
10520         the ms behavior when only one image is added to the list.
10521         [Fixes #81191]
10522
10523 2007-03-27  Jackson Harper  <jackson@ximian.com>
10524
10525         * TextControl.cs: Improvements to non multiline line ending
10526         drawing/measuing.
10527
10528 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
10529
10530         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
10531
10532 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
10533
10534         * NotifyIcon.cs: 
10535         - Balloon message handling added.
10536         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
10537
10538         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
10539         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
10540         to SystrayBalloon to me like other Systray method, also a
10541         handle parameter added.
10542
10543 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10544
10545         * ListView.cs: Show scrollbars even when items.Count == 0
10546         but the columns Width is bigger than the ListView.Width.
10547         Also, when columns.Count == 0 set layout_wd and layout_ht
10548         to the ClientRectangle values, so we don't show any scrollbar
10549         in that case.
10550
10551 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
10552
10553         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
10554
10555 2007-03-27  Jackson Harper  <jackson@ximian.com>
10556
10557         * RichTextBox.cs: The RTF library decodes the text properly for us
10558         now.
10559
10560 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10561
10562         * ListView.cs: Display HeaderControl even when columns.Count == 0.
10563         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
10564         ListView header (HeaderControl), instead of Control.BackColor.
10565
10566 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
10567
10568         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
10569         Fixes tab control issues where controls would not show up because they
10570         never received their OnVisibleChanged call.
10571
10572 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
10573
10574         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
10575         BalloonTipShown).
10576
10577 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
10578
10579         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
10580         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
10581         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
10582         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
10583         the handle.  Fix WindowState by using the internal variable until we are 
10584         sure that we've been shown.
10585         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
10586         max or min.
10587         [Fixes bug #81198]
10588
10589 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10590
10591         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
10592           (at least borders). Fixes #79386 on Linux (with a small difference
10593           in behaviour: when trying to resize a caption-less window metacity
10594           shows the sysmenu. Resizing is still possible though).
10595         * XplatUIWin32.cs: When setting window styles send request an extra
10596           WM_NCCALCSIZE when it's a form without title (due to no text and no
10597           caption), since Win32 seems to calculate it wrong the first time we
10598           get the message, though the second time things work as they should.
10599         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
10600           newly reparented window might show up unparented. Update
10601           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
10602           there's no title text. Fixes #79386.
10603
10604 2007-03-27  Mike Kestner  <mkestner@novell.com>
10605
10606         * ListBox.cs : don't perform invalidations if the handle hasn't been
10607         created.  [Fixes #80753]
10608
10609 2007-03-27  Mike Kestner  <mkestner@novell.com>
10610
10611         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
10612         [Fixes #80428]
10613
10614 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
10615
10616         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
10617         needed to implement Balloon.
10618
10619 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10620
10621         * ListViewItem.cs: In the constructors that take
10622         an array of strings, don't use ListViewSubItemCollection.AddRange
10623         method to add items, since we need to have a different behaviour (in
10624         the constructors we add an item for each null string, opposed to
10625         the behaviour of AddRange, which adds nothing).
10626
10627 2007-03-26  Andreia Gaita  <avidigal@novell.com>
10628
10629         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
10630
10631 2007-03-26  Jackson Harper  <jackson@ximian.com>
10632
10633         * TextControl.cs: Draw and measure line endings when in non
10634         multiline mode.
10635         - When searching the text, count the end of the last line as a
10636         word boundary.
10637
10638 2007-03-26  Jackson Harper  <jackson@ximian.com>
10639
10640         * RichTextBox.cs: The selection_start and selection_end don't
10641         really track the correct tags for the selection. So we'll manually
10642         compute the correct tag here.
10643
10644 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10645
10646         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
10647           and Continuous styles. Fixes #79469.
10648
10649 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
10650
10651         * ToolStrip.cs: Implement Tooltips.
10652         * ToolStripItem.cs: Create internal method for determining tooltip.
10653
10654 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
10655
10656         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
10657
10658 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
10659
10660         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
10661         it prevents a problem thak keeps icon visible after application 
10662         closes on win32.
10663
10664 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
10665
10666         * NotifyIcon.cs: Balloon properties and methods created.
10667
10668         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
10669         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
10670
10671 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
10672
10673         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
10674
10675 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
10676
10677         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
10678         parameter indicates which aspects were explicit/user-set.
10679         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
10680
10681 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
10682
10683         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
10684         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
10685         SmallChange, and Value (2.0).
10686         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
10687
10688 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10689
10690         * ListView.cs: Always set item_control.Width in LayoutDetails
10691         if View is Details. Setting it later in CalculateScrollBars
10692         in a not-so-corner scenario (the sum of columns width is
10693         not bigger than the ListView width when handle is created, and then
10694         that sum gets bigger by increasing the width of the columns)
10695         causes a very weird recursion path (which shouldn't be happening,
10696         since header_control sets it in CalculateScrollBars too). This bug
10697         appeared after Chris' fixes for handle created issues, so probably
10698         it's related to some handle-creation time.
10699
10700 2007-03-23  Chris Toshok  <toshok@ximian.com>
10701
10702         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
10703         case where there's an add row, just so we don't end up in a case
10704         where it's not displayed (this happens when the row is partially
10705         obscured).  Fixes bug #79574.
10706
10707 2007-03-23  Jackson Harper  <jackson@ximian.com>
10708
10709         * TextControl.cs:
10710         * TextBoxBase.cs:
10711         * RichTextBox.cs: Preserve line endings in the lines text buffer,
10712         also added an enum that represents the line ending type. 
10713
10714 2007-03-23  Andreia Gaita  <avidigal@novell.com>
10715
10716         * NumericUpDown.cs: Fix logic so Text and Value properties are not
10717         messed with in every method call, but only from DownButton, 
10718         UpButton, UpdateEditText() and ValidateText. Fixes #80346
10719
10720 2007-03-23  Chris Toshok  <toshok@ximian.com>
10721
10722         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
10723         format objects if the format spec is "".  Fixes bug #80889.
10724
10725 2007-03-22  Miguel de Icaza  <miguel@novell.com>
10726
10727         * ToolStripPanel.cs (Join): added stubs to build PDN3
10728
10729         * Control.cs (AutoScrollOffset): Add.
10730
10731         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
10732         property, its only implemented for Win32, on X11 it defaults to
10733         some hardcoded value.
10734
10735         * ToolStripItem.cs (AllowDrop): Add property
10736
10737 2007-03-22  Mike Kestner  <mkestner@novell.com>
10738
10739         * ListView.cs : in FullRowSelect Details mode, only enable box
10740         selection if the user clicks over the "item" column outside of the
10741         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
10742
10743 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10744
10745         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
10746           handle is not created yet.
10747         * Form.cs: Select: Don't call CreateHandle if the handle is already
10748           created, avoids a stack overflow on Windows when we are recreating
10749           controls.
10750         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
10751           they are made visible, and override AfterTopMostControl to keep
10752           them on top when other controls are brought to front.
10753           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
10754           or force_*scroll_visible is true (old implementation always shows
10755           scrollbars when needed, no matter what auto_scroll was set to).
10756         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
10757           IsHandleCreated check.
10758
10759 2007-03-22  Andreia Gaita  <avidigal@novell.com>
10760
10761         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
10762         row or col separator.
10763         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
10764
10765 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
10766
10767         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
10768
10769 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
10770
10771         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
10772         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
10773         every time. Fixes #80410.
10774
10775 2007-03-22  Chris Toshok  <toshok@ximian.com>
10776
10777         * BindingSource.cs (AddNew): partially implement.
10778
10779         remove a couple of NotImplementedException's
10780         to get bug #81148 closed.
10781
10782 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
10783
10784         [Fixes #80380]
10785         
10786         * Control.cs:
10787         - UpdateCursor method added to update the screen cursor.
10788         - GetAvailableCursor method added to return cursor for enabled tree,
10789         it searches for cursor on control and it's parent's for enabled control.
10790         - Call UpdateCursor method on setter of Cursor property.
10791         - On setter of Enabled call UpdateCursor when it is false, we need to
10792         change cursor to normal (or to this parent cursor) because cursor 
10793         setting theres no effect to disabled controls.
10794         - Some minor source changes to follow the coding style guidelines.
10795
10796         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
10797         controls.
10798
10799 2007-03-22  Chris Toshok  <toshok@ximian.com>
10800
10801         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
10802         generates.
10803
10804 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10805
10806         * XplatUIX11.cs: Implement default locations for forms.
10807         * Form.cs: Completely rework startup location for forms. Fixes #79964.
10808         * Hwnd.cs: Add previous_child_startup_location (to track the current
10809           startup location for any child forms of the current form) and
10810           previous_main_startup_location (to track the startup location for
10811           the current toplevel form).
10812
10813 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
10814
10815         * Control.cs: Don't trigger a layout if an implicit control is added
10816         that isn't visible.  Also, don't notify the owner when an implicit control
10817         is added.  (Owners shouldn't even know about their implicit controls.)
10818
10819 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
10820
10821         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
10822         to save some re-layouts.
10823
10824 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
10825
10826         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
10827         [Fixes #81203]
10828
10829 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
10830
10831         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
10832         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
10833
10834 2007-03-21  Mike Kestner  <mkestner@novell.com>
10835
10836         * ListView.cs : disable selection update for non-left button clicks
10837         with mods and over selected items.  [Fixes #80524]
10838
10839 2007-03-20  Jackson Harper  <jackson@ximian.com>
10840
10841         * TextControl.cs:
10842         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
10843         \r\r\n, \n.
10844
10845 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10846
10847         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
10848           very probably a more complicated calculation there. Update the
10849           textbox' ForeColor and BackColor when the ComboBox' colors are
10850           changed. Change the border change in LayoutComboBox to only affect
10851           the textbox, not all the calculations there. Seems to fix most of
10852           #79436.
10853
10854 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10855
10856         * ComboBox.cs: Handle Home and End keys as well as all combinations of
10857           modifiers + navigation keys as input keys, enables advanced text
10858           selection in the combobox (like Shift+Left Arrow for instance).
10859           ComboTextBox now overrides Focused and returns whatever
10860           ComboBox.Focused returns, since it really should be focused
10861           whenever the ComboBox is. Fixes #80795. Also make the border around
10862           the text box one pixel bigger, as mentioned in #79436.
10863
10864 2007-03-20  Jackson Harper  <jackson@ximian.com>
10865
10866         * TreeView.cs: Don't offset the images, this was causing some
10867         artifacts when expanding/collapsing with images that were the
10868         exact height of the treenode.
10869
10870 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10871
10872         * TrackBar.cs: Query the theme for the correct value when the mouse
10873           moves and the thumb is pressed. 
10874         * Theme.cs: Added TrackBarValueFromMousePosition
10875         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
10876           implementation was updating the trackbar value when drawing, now
10877           the drawing methods only draw. Fixes #80900. Refactored the
10878           calculations out to TrackBarValueFromMousePosition and
10879           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
10880           according to the mouse position whenever it wants to. Changed the
10881           light coloured pen when drawing the thumb from ControlLight to
10882           ControlLightLight, because the ControlLight is the same colour as
10883           the background so the 3D effect is lost. 
10884
10885 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
10886
10887         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
10888         defined. Fixes #80784.
10889
10890 2007-03-20  Marek Habersack  <mhabersack@novell.com>
10891
10892         * ContextMenuStrip.cs: align with the change introduced in
10893         revision 74664.
10894
10895 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
10896
10897         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
10898         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
10899         in SetTopmost.
10900
10901 2007-03-19  Chris Toshok  <toshok@ximian.com>
10902
10903         * Control.cs (WmPaint): don't make use of the Handle property
10904         after an event is emitted, as the user could have closed the
10905         form/destroyed the control.  Store the Handle in a local variable
10906         and make use of that.  Fixes bug #80768.
10907
10908 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
10909
10910         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
10911         behavior in X11 environments.
10912
10913 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
10914
10915         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
10916         because on setter of topmost we dont call SetTopmost when handle is not
10917         created.
10918
10919 2007-03-20  Jackson Harper  <jackson@ximian.com>
10920
10921         * TextControl.cs: Need to use SelectionLength () not
10922         selection_length, since that var is reset to -1.
10923         - Draw the caret when we don't have focus.
10924         * TextBox.cs: The selectall actually doesn't occur until the first
10925         focus.
10926         * TextBoxBase.cs: Need to update the caret position after a
10927         selectall.
10928         
10929 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10930
10931         * ListView.cs: Enable scrolling when using Tile view.
10932
10933 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
10934
10935         [Fixes #80902]
10936
10937         * XplatUIDriver.cs: Abstract SetOwner method created.
10938
10939         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
10940         must be implemented and was masked as todo.
10941
10942         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
10943         GWL_HWNDPARENT.
10944
10945         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
10946         cheking for null owner to remove transient. The SetTopmost will be change
10947         on a decond step.
10948
10949         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
10950         SetTopmost. Now owned forms will work properly in win32 and X11.
10951
10952 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10953
10954         * MdiWindowManager.cs: Update function name.
10955         * Form.cs: After closing a form MdiParent is always null.
10956         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
10957           better what it should do: necessary book-keeping when the form is
10958           closed, it should not close the form itself.
10959
10960 2007-03-19  Andreia Gaita  <avidigal@novell.com>
10961
10962         * ListViewItem.cs: Fix back and fore color. The subitems only
10963         use their own colors if they are set, otherwise use the listview's
10964         colors. Don't set default colors on constructor for subitem.
10965         Fixes #79315.
10966
10967 2007-03-19  Mike Kestner  <mkestner@novell.com>
10968
10969         * ListView.cs : make box selection for Details views with 
10970         FullRowSelect conform to MS behavior when clicking in the "item" 
10971         column and clicking outside the defined columns.
10972         [Fixes case 5-6 of #80374]
10973
10974 2007-03-19  Chris Toshok  <toshok@ximian.com>
10975
10976         * ScrollableControl.cs: create the controls from within the ctor,
10977         but don't actually add them until our handle is created.  this
10978         fixes a NRE possibility jpobst found (if you override OnLayout in
10979         a subclass, it's called before your ctor).  Also, add a
10980         IsHandleCreated guard to UpdateSizeGripVisibility as well.
10981
10982 2007-03-19  Jackson Harper  <jackson@ximian.com>
10983
10984         * TextBox.cs: Reduce the amount of invalidation we do.
10985         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
10986         some of them are true by default on MS.
10987         - Add some functions to reduce the amount of invalidates we do.
10988         * TextControl.cs: Less invalidation.
10989
10990 2007-03-19  Chris Toshok  <toshok@ximian.com>
10991
10992         [ Fixes #81773, and *seems* to fix #81553 as well ]
10993
10994         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
10995         AccumulateDestroyedHandles.  We need to do it *after* we send
10996         WM_DESTROY, as the user's code can access Control.Handle in
10997         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
10998         move the WM_DESTROY/zombie handling to before the call to
10999         XDestroyWindow.  For some reason without this ordering
11000         FormTest.RecreateHandle hangs.  This ordering is semantically
11001         equivalent, however, as XDestroyWindow is async anyway.
11002
11003 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
11004
11005         * RichTextBox.cs: Reset backcolor_set after setting default.
11006
11007 2007-03-19  Chris Toshok  <toshok@ximian.com>
11008
11009         * ScrollableControl.cs: the scroll position should not effect the
11010         canvas size.  commit patch from georgegiolfan@yahoo.com, which
11011         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
11012         
11013 2007-03-19  Chris Toshok  <toshok@ximian.com>
11014
11015         * ScrollableControl.cs: clean this up a bit.  create the
11016         scrollbars in the ctor and just show/hide them as needed.  Also,
11017         make hscroll_visible/vscroll_visible internal to Recalculate, and
11018         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
11019         everywhere else.  This seems to fix the scrollbars appearing
11020         beneath the content for me (i have *no* idea why that is,
11021         however.)
11022
11023 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
11024
11025         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
11026         some redundacy for stuff in Anchor and Dock that base will take care of.
11027         [Fixes #80762]
11028
11029 2007-03-19  Mike Kestner  <mkestner@novell.com>
11030
11031         * ListView.cs : make box selection for Details views without 
11032         FullRowSelect dependent on the text bounds, not item bounds.
11033         * ListViewItem.cs : add an internal property to obtain the TextBounds
11034         in Details view.  [Fixes case 1-4 of #80374]
11035
11036 2007-03-19  Andreia Gaita  <avidigal@novell.com>
11037
11038         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
11039         we're < 2.0. #78448 && #80316
11040
11041 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
11042
11043         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
11044         have the same style available as the previously selected one.  Also,
11045         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
11046
11047 2007-03-19  Jackson Harper  <jackson@ximian.com>
11048
11049         * TextControl.cs: Add an alignment property that all new lines
11050         will be given.
11051         - Make sure to use the align shift when calculating the line's X
11052         position.
11053         * TextBox.cs: Set the alignment on the document as well as on all
11054         the document lines.
11055
11056 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11057
11058         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
11059           throw if setting the parent of an mdichild that already has an
11060           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
11061           AssemblyProductAttribute in the assembly, use the type's namespace (as
11062           MS seems to do). CreateControl: don't create the handle if the control
11063           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
11064           create handle if the control is not a form. Change FocusInternal to
11065           virtual so that it can be overriden by Form.
11066         * TextBox.cs: Update call to FocusInternal.
11067         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
11068           form is not a toplevel form when it's a mdi child, so update is_toplevel
11069           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
11070           hasn't been created. Show (IWin32Window): Don't allow this overload for
11071           toplevel windows. CenterToParent/CenterToScreen/Select: create the
11072           handle as MS does. SetVisibleCore: if called on a MdiChild and the
11073           parent isn't visible yet, save the visibility and restore it when the
11074           parent is made visible.
11075         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
11076           methods, since the visibility of the scrollbars can be changed from
11077           several places, not only from AutoScroll.
11078           [Fixes #81179]
11079
11080 2007-03-19  Jackson Harper  <jackson@ximian.com>
11081
11082         * RichTextBox.cs: Enable shortcuts by default.
11083         * TextBoxBase.cs: Add conditional shortcuts.  
11084
11085 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
11086
11087         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
11088
11089 2007-03-19  Chris Toshok  <toshok@ximian.com>
11090
11091         [ Fixes bug #80604]
11092         
11093         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
11094         swallow the message we're waiting on, instead of delivering it, as
11095         this is only used for the WM_SHOWWINDOW raised from
11096         MapWindow/UnmapWindow, and the message needs to be generated
11097         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
11098         before doing the Map/Unmap.  Also make sure that the Hwnd is still
11099         alive after the message has been handled.
11100
11101         *before* the window is shown.
11102
11103         * Control.cs (CreateControl): guard a few more things inside the
11104         if (!is_created) block, as we might end up being called again -
11105         yay .net.
11106         (WmShowWindow): call CreateControl if we're showing the control.
11107
11108 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11109
11110         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
11111           controls without a handle if they have any parent with a handle. In
11112           Dispose add a check whether the handle is created or not before
11113           calling BeginInvoke, this removes the need of the extra disposing
11114           parameter (which was bogus anyway since it didn't prevent the
11115           invoke from happening, it only skipped the check for an existing
11116           handle, meaning that the invoke would call on an inexistent
11117           handle).
11118
11119 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
11120
11121         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
11122         appears in taskbar.
11123
11124 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
11125
11126         * MessageBox.cs:
11127         - Fixed a problem that dont show help button for messages with 3 buttons.
11128         - Refactory button size and position calculations, now dont use fixed 
11129         values, also fixed button sizes (#80043) and form's border space.
11130         - AddButton method created, now all other AddButton methods call this one.
11131         - Some other source code cosmetic changes.
11132
11133 2007-03-18  Jackson Harper  <jackson@ximian.com>
11134
11135         * RichTextBox.cs: Don't do this all fonts must match check if
11136         there is only one char selected.
11137
11138 2007-03-18  Jackson Harper  <jackson@ximian.com>
11139
11140         * TreeView.cs: ScrollWindow works properly now, so we don't need
11141         to screw around with the scroll area.  This fixes some artifacts
11142         when expanding and collapsing.
11143
11144 2007-03-18  Jackson Harper  <jackson@ximian.com>
11145
11146         * TextBoxBase.cs: Allow updating the selection position when the
11147         cursor is outside the textarea, but we have a capture.
11148         * TextControl.cs: A special case for when the cursor is outside
11149         the bounds of the TB.
11150         
11151 2007-03-18  Jackson Harper  <jackson@ximian.com>
11152
11153         * TextBoxBase.cs: Remove image pasting code for now.  There is no
11154         way to get an image on the clipboard right now anyways.
11155         * TextControl.cs:
11156         * RichTextBox.cs: Use the new RTF Picture class for pictures.
11157
11158 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
11159
11160         * MessageBox.cs:
11161         - Set window properties in constructor intead of on CreateParams.
11162         - Remove topmost from Window ExStyle.
11163         - Set ShowInTaskbar to false.
11164         - Set form border to FixedDialog.
11165         - Some cosmetic changes and remove unneeded comments.
11166         - It fixes itens 2,3 and 4 of bug #80043.
11167
11168 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
11169
11170         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
11171         none was explicitly set. Fixes part of bug #79949.
11172
11173 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
11174
11175         * ToolStripComboBox.cs: Add AutoComplete*.
11176
11177 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
11178
11179         * ToolStripComboBox.cs: Add FlatStyle.
11180
11181 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
11182
11183         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
11184         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
11185
11186 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11187
11188         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
11189           CheckBox.cs, RadioButton.cs, BindingSource.cs,
11190           DataGridColumnStyle.cs: Remove warnings.
11191
11192 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11193
11194         * Menu.cs: MergeMenu: Check menu argument for null before looping over
11195           it.
11196         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
11197           visibility of mdi child forms. FormSizeChangedHandler: update the
11198           maximized size if size has changed while maximized.
11199         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
11200           creating the handle.
11201         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
11202           avoid creating the handle if not created.
11203         * XplatUI.cs: Update debug output.
11204         * XplatUIStructs.cs: Added ToString's for a couple of structs.
11205
11206 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
11207
11208         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
11209         ProcessCmdKey().
11210         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
11211         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
11212         Implement keyboard shortcuts.
11213
11214 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
11215
11216         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
11217         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
11218         ColorDialog and all derived classes.
11219
11220 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
11221
11222         [ Fixes bug #79828 ]
11223
11224         * ToolBar.cs:
11225         - Rename ToolBarButtonInfor to ToolBarItem.
11226         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
11227         - Maintain an array of ToolBarItem, used instead of ToolBarButton
11228         collection to be able add same button more than one time on a toolbar.
11229         - Refactory all properties and methods to use ToolBarItem. 
11230
11231         * ToolBarButton.cs: 
11232         - Remove all propeties and methods that is now in ToolBarItem.
11233         - Rectangle propery now gets the rectangle from first ToolBarItem to
11234         mimic win32 behavior.
11235         - Size calculation and layout methods also removed.
11236
11237         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
11238         ToolBarItem instead of ToolBarButton to right drawing buttons when
11239         same button/separator was added more than one time to ToolBar.
11240
11241         * ThemeNice.cs: Same as above. 
11242
11243 2007-03-15  Andreia Gaita  <avidigal@novell.com>
11244
11245         * XplatUIX11.cs: Fire extra MouseMove events right after
11246         MouseDown and MouseUp, emulating win32's <censored> behaviour
11247         for apps that rely on it.
11248
11249 2007-03-15  Jackson Harper  <jackson@ximian.com>
11250
11251         * TextControl.cs:
11252         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
11253         it is drawn on the controls client window and there is no NC
11254         area.
11255         - Set the background color to gray on 2.0 when we are readonly.
11256
11257 2007-03-15  Chris Toshok  <toshok@ximian.com>
11258
11259         [ Fixes bug #81144 ]
11260         
11261         * XplatUIX11.cs: implement VirtualScreen independently of
11262         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
11263         property.
11264
11265 2007-03-15  Chris Toshok  <toshok@ximian.com>
11266
11267         * Hwnd.cs: add an internal field for the cached_window_state.
11268
11269         * XplatUIX11.cs: cache the window state, invalidating the cache
11270         (and thus re-querying the X server) only when we see an update to
11271         the _NET_WM_STATE property.
11272
11273 2007-03-15  Chris Toshok  <toshok@ximian.com>
11274
11275         * BindingSource.cs: get a lot of the unit tests working.
11276
11277 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
11278
11279         * Control.cs: Modify UpdateStyles to store distances when bounds >=
11280         0 instead of just bounds > 0.  [Fixes bug #80912]
11281
11282 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
11283
11284         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
11285         and methods.
11286
11287 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
11288         
11289         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
11290         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
11291         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
11292         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
11293
11294 2007-03-15  Chris Toshok  <toshok@ximian.com>
11295
11296         [ Fixes #81101 ]
11297         
11298         * Control.cs: add Ivan's fix for 81101, with a slight modification
11299         - you can set control.Target to null.
11300
11301 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
11302
11303         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
11304         HideDropDown, use Hide instead to prevent an NRE.
11305         [Fixes bug #81147]
11306
11307 2007-03-14  Jackson Harper  <jackson@ximian.com>
11308
11309         * TextBoxBase.cs: Mess with the creation stuff a little. We need
11310         to calculate the document before the handle is created, in some
11311         cases. (Actually just one case).
11312
11313 2007-03-14  Jackson Harper  <jackson@ximian.com>
11314
11315         * TextBoxBase.cs: Need to display the caret after letting the base
11316         wndproc handle the focus methods, because the caret display
11317         methods check the focus state.
11318         - Try to display the caret after updating it's position with SelectWord.
11319         - Don't need to do an immediate update on this recalc, since there
11320         will be an invalidate anyways.
11321
11322 2007-03-14  Jackson Harper  <jackson@ximian.com>
11323
11324         * TreeView.cs: Some workarounds so that we can match event order a
11325         little better.
11326
11327 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
11328
11329         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
11330         #80803. Avoid NullReferenceException when Control does not have
11331         parent. Fixed different blinkstyle issues. Only subscribe to Tick
11332         event a single time. Only draw error icon when control is created and
11333         visible. Fixes failing unit tests.
11334
11335 2007-03-14  Andreia Gaita  <avidigal@novell.com>
11336
11337         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
11338         Selecting events. Fire Leave and Enter events when changing tabs.
11339
11340 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
11341
11342         * TreeView.cs: Add TreeViewNodeSorter.
11343         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
11344
11345 2007-03-14  Chris Toshok  <toshok@ximian.com>
11346
11347         * Form.cs: go ahead and remove the RecreateHandles that jpobst
11348         removed earlier and I had him add back it.  It turns out metacity
11349         *does* in fact handle the MOTIF_WM_HINTS property changing, it
11350         just doesn't redraw the window titlebar until you resize the
11351         window.  This also means we aren't recreating the entire window
11352         hierarchy on X when you change this property.  And it looks better
11353         on windows, too.
11354
11355 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11356
11357         * ListViewItem.cs:
11358         * ListView.cs: Collecting selection information
11359         is now done in SelectedIndexCollection rather than in
11360         SelectedListViewItemCollection. This is done so we can
11361         have the selection information code in one single place
11362         (virtual mode selection information entirely depends on
11363         SelectedIndexCollection).
11364
11365 2007-03-13  Miguel de Icaza  <miguel@novell.com>
11366
11367         * ErrorProvider.cs: Add stubs for ISupportInitialize
11368
11369 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11370
11371         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
11372         in the right order with the right values, from the Checked property, 
11373         just as MS does (instead of triggering them from ListView).
11374
11375         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
11376
11377 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11378
11379         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
11380         the correct handler in OnItemCheck method (ItemCheckEventHandler 
11381         instead of EventHandler). This used to throw an InvalidCastException.
11382
11383 2007-03-13  Jackson Harper  <jackson@ximian.com>
11384
11385         * TextBoxBase.cs: Calculate the document before the handle is
11386         created, so there isn't an extra invalidate called.
11387
11388 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
11389
11390         * Form.cs: Don't set owner in ShowDialog until we are sure
11391         that we aren't going to throw an exception.  [Fixes bug #80773]
11392
11393 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
11394
11395         * TreeView.cs: Make it compile.
11396
11397 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
11398
11399         * Control.cs: Another place we don't call SizeFromClientSize.
11400         * Form.cs: Another place we don't call SizeFromClientSize.
11401         [Fixes bug #81125]
11402
11403 2007-03-12  Jackson Harper  <jackson@ximian.com>
11404
11405         * TreeView.cs: Basically emulating some strangness here with
11406         exanding nodes and setting node positions when windows aren't
11407         created.
11408         - Also attempting to walk the node tree less than previously, and
11409         just use visible order calculations for determining offsets.
11410         - oops made scrolling backwards.
11411         * TreeNode.cs: We need to start nodes with a zero visible order,
11412         because the order calcs are based on the first nodes order.
11413
11414 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
11415
11416         * Form.cs: Don't exit the program if RecreateHandle is called on
11417         the main form.
11418
11419 2007-03-12  Chris Toshok  <toshok@ximian.com>
11420
11421         * XEventQueue.cs: remove the use of PostQuitState.
11422
11423         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
11424         WM_QUIT message in GetMessage, return false (and if we're in the
11425         nested WaitForHwndMessage, repost the WM_QUIT message).
11426
11427 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
11428
11429         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
11430         or the MaximizeBox properties.  [Part of bug #80640]
11431
11432 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
11433
11434         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
11435         no links.
11436
11437 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
11438
11439         * ToolStripItem.cs: Fix some tests I broke by checking Visible
11440         instead of visible.
11441
11442 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
11443
11444         * FileDialog.cs: Use text of File name combobox to determine what
11445         files the user selected. Added tokenizer to parse the file names.
11446         Fixes bug #81123.
11447
11448 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
11449
11450         * Control.cs: We can't call SizeFromClientSize in the constructor,
11451         but we still need to do the same work, so make an internal version.
11452         [Fixes bug #80621]
11453
11454 2007-03-12  Jackson Harper  <jackson@ximian.com>
11455
11456         * TreeView.cs:
11457         * TreeNode.cs:
11458         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
11459         IsExpanded.
11460
11461 2007-03-12  Jackson Harper  <jackson@ximian.com>
11462
11463         * TextBoxBase.cs: Now that the handles are being created a little
11464         later, we need to make sure that the document is recalculated when
11465         the handle is created.
11466
11467 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
11468
11469         * Theme.cs: GetLinkFont abstract method added.
11470         
11471         * LinkLabel.cs: 
11472         - Remove CalcTrimRectangle, no longer needed.
11473         - Factor also remove, position issues must be fixed in libgdiplus.
11474         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
11475         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
11476         care about font used to draw links.
11477         - Set TabStop to true when control is "Selectable", control is selectable
11478         when have one or more links. Fixes #80501 (test case is also added).
11479         - Set the LinkArea values after links change, LinkArea values must be
11480         based in first link position and size, a test case was created.
11481         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
11482         the attribute must be true LinkArea.Length > 0. The same was applied to
11483         TabStop.
11484         
11485         * ThemeWin32Classic.cs: 
11486         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
11487         in draw method.
11488         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
11489         color change.
11490         - Draw focus rectangle for every parts focused, including parts that 
11491         is on another line, its because regions returns various rectangles
11492         and not only one. Needed to mimic W32 look.
11493         - Uses Graphics.Clip to delimite region painted, it mean that now 
11494         complete text is passed to DrawString, with this we solve layout
11495         issues without create another text renderer.
11496         - Uses Region.Intersect to fix some flickers problems, now only needed
11497         parts will redrawed.
11498         - This changes fixes #79614 and some other unreported issues, on Linux 
11499         some layout problems still remain, the problem is under 
11500         MeasureCharacterRanges but it is an libgdiplus bug.
11501
11502 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
11503
11504         * TextBox.cs: Set for foreground color.
11505         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
11506         this is already done in Control.
11507
11508 2007-03-10  Jackson Harper  <jackson@ximian.com>
11509
11510         * TextBox.cs: Set the background color, but reset the
11511         backcolor_set flag which is just for the user setting the
11512         background color.
11513
11514 2007-03-09  Chris Toshok  <toshok@ximian.com>
11515
11516         * Control.cs: really remove the call to XplatUI.SetVisible from
11517         CreateHandle(), like I said I did when I merged the branch.
11518
11519         * BindingSource.cs: implement some more of this stuff.
11520
11521 2007-03-09  Jackson Harper  <jackson@ximian.com>
11522
11523         * TextBox.cs: Don't explicitly set our background colors.
11524         * TextControl.cs:
11525         * TextBoxBase.cs: Draw readonly text.
11526         - Need to invalidate when backcolor or readonly are changed.
11527         
11528 2007-03-09  Jackson Harper  <jackson@ximian.com>
11529
11530         * TextBoxBase.cs: Don't set the forecolor until the handle is
11531         created.
11532         - Do not raise OnPaint, and removed some old debug code.
11533
11534 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
11535
11536         * ScrollableControl.cs: Fix mouse wheel scrolling.
11537
11538 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
11539
11540         * Control.cs: Wire up MouseDoubleClick event.
11541
11542 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
11543
11544         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
11545         top or bottom.
11546         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
11547         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
11548         item is added.  This logic was moved to ToolStrip.OnItemAdded.
11549         [Fixes bug #81090]
11550
11551 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11552
11553         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
11554
11555 2007-03-08  Jackson Harper  <jackson@ximian.com>
11556
11557         * TreeView.cs: Show the correct image for selected node (this used
11558         to work, not sure how the code got deleted). Also implemented 2.0 feature
11559         SelectedImageKey.
11560
11561 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11562
11563         * ListView.cs:
11564         * ListViewItem.cs: Cache index in items when retrieving them
11565         in VirtualMode.
11566
11567 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
11568
11569         * ToolStripItem.cs: Don't return the explicit_size if we are using 
11570         AutoSize.  Fixes invalidation issue when user has explicitly set a
11571         size and has AutoSize = true.
11572
11573 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
11574
11575         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
11576
11577 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
11578
11579         * DataGridView.cs: Remove event handler from DataView when a
11580         DataTable is used as DataSource.
11581
11582 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
11583
11584         * Control.cs: Create internal setter for client_size to allow it to be
11585         set without triggering resizing code.
11586         * Form.cs: Calculate client_size in constructor, only change client_size
11587         in FormBorderStyle property if Handle has been created.
11588         [Fixes #80574, #80791]
11589
11590 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
11591
11592         * SystemInformation.cs: Add TerminalServerSession.
11593
11594 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
11595
11596         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
11597         TreeView code.
11598
11599 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
11600
11601         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
11602         Handle before we were supposed to.  Now checks ActivateOnShow property
11603         in Control.
11604         * Control.cs: Add internal ActivateOnShow property.
11605         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
11606         for ActivateOnShow.
11607         * Hwnd.cs Remove no longer needed no_activate field.
11608
11609 2007-03-07  Jackson Harper  <jackson@ximian.com>
11610
11611         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
11612         2.0 properties
11613         * DrawTreeNodeEventHandler.cs: Add
11614         * DrawTreeNodeEventArgs.cs: Correct default value.
11615         
11616 2007-03-07  Chris Toshok  <toshok@ximian.com>
11617
11618         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
11619         to be called before NativeWindow.WndProc.  Put the HwndCreating
11620         magic there to hook up our Hwnd's to handles.
11621
11622 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
11623
11624         * DataGridView.cs: Comment out debug code.
11625
11626 2007-03-07  Chris Toshok  <toshok@ximian.com>
11627
11628         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
11629         to make the rest of the world happy]
11630
11631         * Control.cs (CreateHandle): there's no need to call
11632         XplatUI.SetVisible here, it's effectively done by
11633         XplatUI.CreateWindow on X now, and always was on windows.
11634
11635         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
11636         shortcircuit out of the loop if we have a message loop running on
11637         this thread.
11638
11639         [Changelog from merge]
11640
11641         2007-03-05  Chris Toshok  <toshok@ximian.com>
11642
11643                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
11644                 causes handle creation.
11645
11646         2007-02-28  Chris Toshok  <toshok@ximian.com>
11647
11648                 * ApplicationContext.cs: Add a flag to make sure we only raise the
11649                 ThreadExit event once (ExitThreadCore can be indirectly called
11650                 from a few places.)  I don't like the additional flag, but it
11651                 makes the event ordering/count correct.
11652
11653                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
11654                 without locking the collection.  An enumerator doesn't give us any
11655                 protection from modification anyway.  Lock the thread hash and
11656                 replace the complicated enumerator loop with a foreach.
11657                 (Application.CloseForms): make internal so it can be called from
11658                 ApplicationContext.  This should probably be moved to MWFThread.
11659                 (Application.ExitThread): don't call MWFThread.Current.Exit()
11660                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
11661                 when the runloop exits (in response to WM_QUIT.)
11662                 (Application.RunLoop): add a comment (and check) for
11663                 context.MainForm being null after setting context.MainForm.Visible
11664                 = true.  This is because you're perfectly free to dispose of a
11665                 form in VisibilityChanged.  Chalk this up to another case where we
11666                 need to synchronously generate WM_ACTIVATE from Control.Show.
11667                 Also, add handling for WM_QUIT here so we'll exit the loop.
11668                 
11669                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
11670                 fact that we don't wait if we're only unmapping the whole_window
11671                 makes me a bit nervous, but it doesn't seem to cause any problems
11672                 yet.
11673
11674                 also, add a comment about the stupid, broken and wrong resetting
11675                 of PostQuitState to false in GetMessage().
11676
11677                 In PostQuitMessage, we need to add a WM_QUIT message to the
11678                 thread's queue.  We use the FosterParent to get the right
11679                 handle/hwnd/queue.
11680
11681                 Lastly, in SetVisible, we need to unmap both windows, since the
11682                 waiting only happens when we're unmapping the client window.  So
11683                 now, the *only* time we unmap just the whole_window is in the hack
11684                 for resizing a control to 0,0.
11685                 
11686         2007-02-21  Chris Toshok  <toshok@ximian.com>
11687
11688                 * Application.cs (CloseForms): rewrite this so that we don't
11689                 modify the list while we're traversing it.
11690
11691         2007-02-20  Chris Toshok  <toshok@ximian.com>
11692
11693                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
11694                 of OnHandleCreated.
11695                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
11696                 handle is created.  otherwise we'll create it here.
11697                 (VerticalScrollEvent): same here.
11698
11699                 * Application.cs (CloseForms): call Form.Dispose, don't post
11700                 WM_CLOSE_INTERNAL.
11701
11702                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
11703                 here. Application should Dispose() of the Form's.
11704
11705                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
11706                 WM_DESTROY as well.
11707                 (MapWindow,UnmapWindow): only actually do the waiting for
11708                 SHOWWINDOW if the control we're dealing with is a Form.
11709                 (CreateWindow): if the control isn't a form, SendMessage
11710                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
11711
11712                 * Control.cs (SetVisibleCore): always use is_visible here, not
11713                 value.  If we use value, we can end up re-setting something
11714                 visible if, for instance, you do Control.Hide() in a delegate
11715                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
11716
11717         2007-02-20  Chris Toshok  <toshok@ximian.com>
11718
11719                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
11720                 the message we need.  PeekMessage returning false should not be a
11721                 condition under which we exit the loop.
11722
11723         2007-02-15  Chris Toshok  <toshok@ximian.com>
11724
11725                 * Control.cs (Refresh): only refresh if we've got a handle and are
11726                 visible.
11727                 (CreateAccessibilityInstance): CreateControl() here.
11728                 (UpdateChildrenZOrder): complicate the code loop even more by
11729                 taking into account controls that haven't had their handle
11730                 created, and those that aren't visible.  But on the flip side,
11731                 simplify the code by splitting it into two loops.  one which
11732                 builds up the list of child controls we're interested in, and the
11733                 other that sets the z order of those children.
11734
11735         2007-02-14  Chris Toshok  <toshok@ximian.com>
11736
11737                 * Control.cs: Control.AccessibilityObject causes the control to be
11738                 created, not just the handle.
11739
11740         2007-02-14  Chris Toshok  <toshok@ximian.com>
11741
11742                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
11743                 problem on X where a window might have its handle created (and be
11744                 visible) while the window is unmapped.  calling XConfigureWindow
11745                 on an unmapped window is bad, and generates X errors.
11746
11747         2007-02-13  Chris Toshok  <toshok@ximian.com>
11748
11749                 * Control.cs (CreateHandle): don't loop over our children setting
11750                 their parent here.  do it when in WndProc when we're shown.
11751                 (UpdateChildrenZOrder): make this internal so we can call it from
11752                 ScrollableControl.
11753                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
11754                 creating its handle.  Also, remove the calls to PerformLayout from
11755                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
11756                 OnVisibleChanged only seems to be called directly here for the
11757                 toplevel control.  It's propagated down the window hierarchy by
11758                 calls to child.OnParentVisibleChanged.
11759                 (OnVisibleChanged): don't do layout here - it's done (oddly
11760                 enough, according to a glance at stack traces on ms.net..) in
11761                 ScrollableControl.
11762                 
11763                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
11764                 z order of our children before calling PerformLayout.
11765
11766         2007-02-12  Chris Toshok  <toshok@ximian.com>
11767
11768                 [big change, fixes #80020]
11769                 
11770                 * AccessibleObject.cs: we need to make owner internal again to fix
11771                 some of ControlAccessibleObject.
11772
11773                 * Control.cs: lots of changes here.  add support for WM_CREATE,
11774                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
11775                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
11776                 we create child controls.  leave the MonoTODO's for the
11777                 accessibility calls, but fix the exceptions so the tests pass.
11778
11779                 Add the InvalidOperationExceptions to Invoke methods, and remove a
11780                 couple of InvokeInternal methods we aren't using.
11781                 
11782                 Also, add a couple of CreateHandle calls in places where we know
11783                 the handles are being created but our code doesn't reference
11784                 .Handle.
11785
11786                 Make SetVisibleCore call OnVisibleChange if the handle isn't
11787                 created.  If the handle is created, we rely on XplatUI.SetVisible
11788                 generating the event synchronously.
11789                 
11790                 Lastly, make sure we don't use this.Handle inside CreateHandle,
11791                 because we can call back into client (and that code can dispose of
11792                 the control).
11793
11794                 * XplatUIStructs.cs: misc/cleanup.
11795
11796                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
11797                 although we don't populate the wParam properly.
11798                 (CreateWindow): generate WM_CREATE.
11799                 (MapWindow,UnmapWindow): make these calls synchronous, at great
11800                 performance expense (particularly in the unmap case), to match
11801                 win32 behavior.
11802
11803                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
11804                 to call it.
11805                 (set_MdiParent): don't recreate the handle unless it's been
11806                 created already.
11807                 
11808                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
11809                 it's created.
11810
11811                 * NativeWindow.cs: this is probably the weirdest part of the
11812                 patch.  We need a way to link up the window being created to the
11813                 WM_CREATE message.  Since we can only be creating one window at a
11814                 time on a given thread, we keep track of a per-thread reference so
11815                 we can dispatch it properly.  We also need to keep track of the
11816                 Hwnd currently being created so that the win32 backend doesn't
11817                 have problems.
11818                 
11819                 * XplatUIWin32.cs: a similar change to the one we made in
11820                 NativeWindow.cs.
11821
11822 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
11823
11824         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
11825         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
11826         to draw the menu shortcut string.
11827
11828 2007-03-07  Jackson Harper  <jackson@ximian.com>
11829
11830         * TreeNode.cs: Add the 2.0 collapse method.
11831
11832 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
11833
11834         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
11835
11836 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
11837
11838         * DataGridView.cs: Change DataSource will clear column and row
11839         lists. Call Invalidate() to reflect DataSource change.
11840
11841 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
11842
11843         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
11844         and a new row is added to it.
11845
11846 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
11847
11848         * DataGridView.cs: Add columns when DataSource is en empty list but
11849         is a System.Data.DataView (from a System.Data.DataTable).
11850
11851 2007-03-06  Andreia Gaita  <avidigal@novell.com>
11852
11853         * Label.cs: Implement AutoEllipsis (2.0)
11854
11855 2007-03-06  Jackson Harper  <jackson@ximian.com>
11856
11857         * TreeView.cs: Implement 2.0 TopNode setter property.
11858         - Use a local var instead of the skipped_nodes field for computing
11859         how many nodes to skip.  Otherwise we won't scroll because the
11860         valuechanged handler checks if skipped_nodes is equal to the new
11861         value.
11862         - Implement 2.0 Sort method.
11863         - Add useless 2.0 DoubleBuffer property
11864         - Implement 2.0 LineColors property.  Lets you change the color of
11865         the lines in the tree. Terribly useful for creating non cohesive
11866         desktops.
11867         - Implement 2.0 image key feature.
11868
11869 2007-03-06  Jackson Harper  <jackson@ximian.com>
11870
11871         * TreeView.cs: We can't get the bounds of the nodes before raising
11872         the AfterSelect event, because that event could change the node's
11873         bounds (scrolling, font change, etc).
11874
11875 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11876
11877         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
11878         * Form.cs: Don't recreate handle when creating FormWindowManager, just
11879           update window styles. In CreateParams us VisibleInternal instead of
11880           VIsible to get the actual visible flag set for this form.
11881         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
11882           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
11883           handle the case when the form is already maximized, in which case
11884           it should be restored. Fixes #81043.
11885
11886 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11887
11888         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
11889
11890 2007-03-05  Jackson Harper  <jackson@ximian.com>
11891
11892         * TreeViewHitTestInfo.cs: implement.
11893
11894 2007-03-05  Jackson Harper  <jackson@ximian.com>
11895
11896         * InternalWindowManager.cs: class status fix.
11897
11898 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11899
11900         * InternalWindowManager.cs: All windows that have a parent
11901         are confined to their parent when they're being moved.
11902         Fixes #80822.
11903
11904 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
11905
11906         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
11907         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
11908
11909 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11910
11911         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
11912           buttons invisible before deciding which ones should be visible
11913           (fixes minimize/maximize buttons showing up in toolwindows). Remove
11914           an unused variable.
11915         * InternalWindowManager.cs: Remove warning.
11916
11917 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11918
11919         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
11920         to throw an InvalidOperationException is virtual mode is being used.
11921
11922 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
11923
11924         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
11925         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
11926         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
11927         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
11928         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
11929         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
11930
11931 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11932
11933         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
11934           driver.KeyboardDelay from XplatUI.KeyboardDelay 
11935         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
11936           (patch by Sergey Volk)
11937
11938 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11939
11940         * ToolWindowManager.cs: Added, contains logic for
11941           tool windows.
11942         * CreateParams.cs: Add a few helper methods and an
11943           internal variable to know which control the CreateParams belongs
11944           to.
11945         * Control.cs: Call Form.ChangingParent when the
11946           parent is about to be changed.
11947         * XplatUIX11.cs: DeriveStyles (): Set
11948           caption_height for all windows that have captions and are children.
11949           Update to use ToolWindowManager instead of InternalWindowManager
11950           for ToolWindows.
11951         * XplatUIWin32.cs: Set fake window styles for all
11952           windows that have window managers.
11953         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
11954           now duplicated for mdi windows when they are
11955           maximized, first for the buttons the window itself has, then for
11956           the buttons that appear in the menu bar. Makes things a little
11957           easier). Updated UpdateWindowDecorations, SetWindowState and the
11958           mouse eventhandlers accordingly.
11959         * Form.cs: Add ChangingParent (), contains the
11960           logic of what should happen when the parent changes. In MdiParent
11961           don't set things that ChangingParent () is doing. When handling
11962           WM_CLOSE, we can close the form if there are any other modal forms
11963           and the current form is a descendent of the modal form.
11964         * InternalWindowManager.cs: A lot of refactoring,
11965           the title buttons are now extracted to a separate container class
11966           that takes care of all button code (clicks, tooltips, etc). Moved
11967           Iconic|Maximized|Normal Bounds properties to this class from
11968           MdiWindowManager, so that the window state logic can succeed for
11969           other than mdi wm's. Implemented general window state change logic.
11970           Moved CreateButtons to ThemeWin32Classic, since the theme might
11971           override which buttons are available when as well as the exact
11972           location.
11973         * FormWindowManager.cs: Added, contains logic for
11974           normal forms.
11975         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
11976           which buttons go where (and if they are at all visible). 
11977           Removed special handling of maximized windows, since they aren't special. 
11978           In DrawManagedWindowDecorations don't try to draw the text if it is
11979           empty.
11980         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
11981           use whatever the wm gives us.
11982
11983 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
11984
11985         * ButtonBase.cs: Add 2.0 properties.
11986         * Button.cs: Override Draw for 2.0.
11987         * Control.cs: Add Entered and Selected properties.
11988         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
11989         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
11990         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
11991         buttons.
11992         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
11993
11994 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
11995
11996         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
11997
11998 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
11999
12000         * XplatUIWin32.cs: Register a new class with Windows each time we get
12001         a new ClassStyle.  [Fixes bugs #79432, #80817]
12002         * Controls.cs: Set the correct ClassStyle in CreateParams.
12003         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
12004
12005 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
12006
12007         * ListView.cs: Add fireEvent argument to ReorderColumn since the
12008         ColumnReordered event must not be signaled when modifying DisplayIndex
12009         of a ColumnHeader. Added internal ReorderColumns method which takes
12010         care of drawing, and updating the internal DisplayIndex of the
12011         ColumnHeader. Added AddColumn method which is invoked from
12012         ColumnHeaderCollection when adding or inserting columns, and which
12013         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
12014         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
12015         Recalculated dispay indices after removing a ColumnHeader.
12016         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
12017         match MS. Allows last display index to be returned after ListView
12018         is disposed. Update actual location of ColumnHeader when DisplayIndex
12019         is modified.
12020
12021 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
12022
12023         * LinkLabel.cs: Improve CalcTrimRectangle.
12024         
12025         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
12026
12027 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
12028
12029         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
12030         get rectangle as a result value.
12031
12032 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
12033
12034         * LinkLabel.cs: Theres some diferences between rectangle return from 
12035         MeasureCharacterRanges and the area used for DrawString to fix this 
12036         CalcMeasurementFactor method was created, it calcules the diferences
12037         to be use later to adjust rectangle in draw operations. Fixes #80473.
12038         
12039         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
12040         to adjust draw rectangle.
12041
12042 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
12043
12044         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
12045         text and some other changes to reduce and optimize source code.
12046
12047 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
12048
12049         * RadioButton.cs: Implement 2.0 event.
12050         * RelatedImageListAttribute.cs: Implement new class.
12051
12052 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
12053
12054         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
12055
12056 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
12057
12058         * CheckBox.cs: Implement 2.0 functionality.
12059
12060 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12061
12062         * ListView.cs: Refactor Add and AddRange methods of
12063         ListViewItemCollection, to not update the ListView
12064         everytime an item is added in AddRange. Also move the update
12065         code to a new CollectionChanged method, and call it
12066         from other methods that need it as well (this should also fix some
12067         bugs when Sorting is used).
12068
12069 2007-02-27  Jackson Harper  <jackson@ximian.com>
12070
12071         * TextControl.cs: Try to never let the caret stay in a non-text
12072         tag.
12073         * TextBoxBase.cs: Update the caret.
12074
12075 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
12076
12077         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
12078         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
12079         delete POINT structure, duplicate of one in XplatUIStructs.
12080         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
12081
12082 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
12083
12084         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
12085         edit box since otherwise the Label would immediately be set (even if
12086         the user did not modify the label). In OnKeyDown set Handled to true
12087         if Return or Escape was pressed. In ColumnHeaderCollection unlink
12088         columns that are to be removed. In ListViewItemCollection unlink items
12089         that are to be removed.
12090
12091 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
12092
12093         * TextRenderer.cs: If we set a GDI clip region, we need to clear
12094         it when we are done.  [Fixes bug #80949]
12095
12096 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
12097
12098         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
12099
12100 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12101
12102         * ListView.cs: I forgot to commit the changes for ListView 
12103         in my previous patch.
12104
12105 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
12106
12107         * Clipboard.cs: Partially implement an overload of SetDataObject.
12108         * Form.cs: Implement ShowWithoutActivation.
12109         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
12110
12111 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12112
12113         This is a first set of changes to make the Virtual mode works,
12114         by avoiding the retrieval of ListViewItem instances until
12115         draw time.
12116
12117         * ListView.cs: Store item position in the ListView instead of the
12118         ListViewItem, this way we don't request the Bounds property of
12119         ListViewItem inside the ListView calculations, as well as cache the item
12120         size in item_size field. Store indexes instead of ListViewItem
12121         instances in the matrix used by icon view. Add a ItemMatrixLocation
12122         struct to hold the row and col info of the matrix info.
12123
12124         * ListViewItem.cs: Don't store the location anymore, and only cache
12125         the rectangles for GetBounds. Use the ListView.GetItemLocation
12126         method to retrieve the actual location.
12127
12128 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
12129
12130         * TextRenderer.cs: Add clipping support, thanks to George.
12131         [Fixes bug #80949]
12132
12133 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
12134
12135         * ListViewItem.cs: Cancel label edit when item is removed from 
12136         ListView.
12137         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
12138         event before the edit textbox is displayed.  Added CancelEdit method
12139         which is used end to editing while ignoring the value set by the
12140         user. In EndEdit, set focus to ListView to avoid losing focus to
12141         other controls. In ListViewItemCollection.Clear, cancel editing of
12142         any of the items.  In Remove, cancel editing of item being removed.
12143         Avoid udplicate code by modifing RemoveAt to invoke Remove.
12144
12145 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
12146
12147         * FileDialog.cs: Update FSEntry when move is successful. Fixes
12148         bug #80948.  
12149
12150 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
12151
12152         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
12153         compatible with non X11 systems. Fixes #80901.
12154
12155 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
12156
12157         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
12158         whether the item should be unselected and reselect. We do no want this
12159         when we're starting to edit the label. Do not fire the 
12160         SelectedIndexChanged event from ListView when its already been fired
12161         by modifying ListViewItem.Selected. Fixes bug #80943.
12162
12163 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
12164
12165         * TextRenderer.cs: Previos commit logic was backwards.
12166
12167 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
12168
12169         * TextRenderer.cs: Don't add padding on MeasureText if we were
12170         sent the NoPadding flag.
12171
12172 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
12173
12174         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
12175         after DrawButton. To prevent image overlaps button borders SetClip and 
12176         ResetClip added before and after draw image. Fixes #79129.
12177
12178 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
12179
12180         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
12181         window size, it fix problem when you run under win32 that theres
12182         Size diferent than ClientSize. Also fix controls size and positions
12183         to mimic Win32. Fixes #80837.
12184
12185 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
12186
12187         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
12188         menu area to fix some problems for non X11 systems. Fixes #80613.
12189
12190 2007-02-22  Jackson Harper  <jackson@ximian.com>
12191
12192         * TreeNode.cs: When a node is expanded, set its is_expanded flag
12193         even if it doesn't have any children.
12194
12195 2007-02-22  Jackson Harper  <jackson@ximian.com>
12196
12197         * TreeView.cs: Calculate the top node 'on the fly', this
12198         eliminates issues where you need to click on the tree before
12199         scrolling it to get the top node computed correctly.
12200         * TreeNodeCollection.cs: We don't need to mess with the top node
12201         anymore.
12202
12203 2007-02-22  Jackson Harper  <jackson@ximian.com>
12204
12205         * DataGridViewRow.cs: Fix typo so height can actually be set.
12206         Patch by Peter Grimm.
12207
12208 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
12209
12210         * FileDialog.cs: Fixed support for renaming files and directories.
12211         * ListView.cs: Do not lose focus when edit is canceled. Process
12212         Escape as regular key (to prevent closing of dialogs).
12213
12214 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
12215
12216         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
12217         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
12218
12219 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
12220
12221         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
12222         did not modify label.
12223         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
12224         modified the text. Reset Label when user presses Escape in edit mode.
12225         Move focus to ListView after having cancelled or finished editing the
12226         label.
12227
12228 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
12229
12230         * ComboBox.cs: Removed unnecessary initializations. Marked items field
12231         private. Clear textbox when Text is set to null and SelectedIndex is
12232         already -1.
12233         * FileDialog.cs: Removed unnecessary initializations. Removed 
12234         workarounds for ComboBox bugs that are now fixed. Modified
12235         DefaultExt, InitialDirectory and Title property to change null to
12236         zero-length string in getters. Avoid directly accessing fields.
12237
12238 2007-02-20  Jackson Harper  <jackson@ximian.com>
12239
12240         * TextControl.cs: Remove RecalAlignments call, that was some
12241         debugging leftovers.
12242         - Don't use the line indent when we shouldn't.
12243         * RichTextBox.cs: Add support for paragraph left indents.
12244
12245 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12246
12247         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
12248         Seems like the class status pages doesn't catch params differences.
12249
12250 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
12251
12252         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
12253
12254 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
12255
12256         * ComboBox.cs: Setting Text should have no effect if item text of
12257         selected item exactly matches value. First lookup text using
12258         case-sensitive comparison, and fallback to case-insensitive comparison.
12259         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
12260         allow startIndex to be last index. Changed ArgumentOutOfRangeException
12261         paramname to match MS. Restart from first item if string is not found
12262         after startIndex. Fixed paramname of ArgumentNullException that is
12263         thrown for null value in ObjectCollection.Contains.
12264
12265 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
12266
12267         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
12268
12269 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12270
12271         * ListControl.cs: In SelectedValue use value.Equals to compare for
12272         equality instead of ==, otherwise it will fail for strings.
12273         Fixes #80794.
12274
12275 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12276         
12277         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
12278         since the caret won't show up unless ShowSelection is true. 
12279         Fixes #80795.
12280
12281 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12282
12283         * Application.cs: When disabling all forms but the main form, do not
12284           disable any descendants of the main form (such as mdi children or
12285           other parented forms). Fixes #80822 on Windows.
12286         * Form.cs: If we have a parent, set the WS_CHILD style.
12287         * Control.cs: Update the window styles if the control whose parent has
12288           changed is a form (the WS_CHILD style has to be switched).
12289
12290 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
12291
12292         * XplatUIStructs.cs: MsgUIState structure added.
12293
12294 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
12295
12296         * FileDialog.cs: Removed need for separate fileName field. On 2.0
12297         profile, do not check filename(s) for illegal character if filename(s)
12298         were set non-interactively but always check on 1.0 profile. Fixed NRE
12299          in DefaultExt and only strip off first leading dot. Improve exception
12300         message when invalid Filter is set. Do not ignore InitialDirectory if
12301         it does no exist. Store specified Title, and if empty use default
12302         title (depending on type of dialog). Added an internal DialogTitle 
12303         property for retrieving dialog title. Fixed logic of displayed dir to
12304         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
12305         string as its buggy.
12306         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
12307         FileName is a zero-length string (it can never be null). Override 
12308         DialogTitle property to set default title of dialog box.
12309         * SaveFileDialog.cs: Override DialogTitle property to set default
12310         title of dialog box.
12311
12312 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
12313
12314         * FileDialog.cs: Modify default text of filename and filetype labels
12315         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
12316         after we've updated the SelectedIndex. Fixes part of bug #80887.
12317         * SaveFileDialog.cs: Set text of filetype label.
12318
12319 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12320
12321         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
12322         label field. Needed by latest Jackson's fixes for ListView.
12323
12324 2007-02-16  Andreia Gaita  <avidigal@novell.com>
12325
12326         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
12327         print preview images.
12328
12329 2007-02-16  Jackson Harper  <jackson@ximian.com>
12330
12331         * ListView.cs: Make AfterLabelEdit work correctly.
12332         * FileDialog.cs: After changing the name of the folder, we have to
12333         make sure that it is created, or that we pop up an error because
12334         it already exists.
12335
12336 2007-02-16  Jackson Harper  <jackson@ximian.com>
12337
12338         * X11Dnd.cs: Implement aliases on mime handlers, so things like
12339         System.String are mapped to text.
12340         - Handle dataobjects, getting all the possible formats out of them
12341         - We dont need the drag event args before we give feedback. This
12342         allows feedback cursors to be immediate before selections have
12343         been converted.
12344
12345 2007-02-16  Jackson Harper  <jackson@ximian.com>
12346
12347         * TextBoxBase.cs: Modified the method for inserting images to
12348         taking a line and position instead of tag and position.
12349         * RichTextBox.cs: Handle PngBlip data by inserting the png image
12350         into the RTF file.
12351         * TextControl.cs: Allow images to be inserted as the first tag of
12352         a line.
12353         - Fix some off by one issues when we assume the first tag is a
12354         text tag, not an image tag.
12355
12356 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12357
12358         * ListView.cs: Set focus to ListView when ItemControl gets a
12359         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
12360         Fixes part of #80467.
12361
12362 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12363
12364         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
12365           validate Text input (if null or empty string reset Value to default
12366           value). Fixes #80830.
12367
12368 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12369
12370         * ListView.cs: Set owner as null for columns and items when
12371         Dispose is invoked. Fixes #80607.
12372
12373 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
12374
12375         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
12376         showing DropDowns, don't show a Grip when doing Flow layout.
12377         [This fixes the toolbox in PDN 2.72.]
12378         * ToolStripItem.cs: Add Anchor property and some internal properties to
12379         reduces needed changes to FlowLayout.
12380         * ToolStripOverflow.cs: Remove unused variable.
12381         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
12382         use it in the layout calculations.
12383
12384 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
12385
12386         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
12387         reported in #79640.
12388         
12389         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
12390         size calculation.
12391
12392 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
12393
12394         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
12395         MeasureString format, it can make button very large in some cases, it is
12396         strange but is what win32 do.
12397
12398 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
12399
12400         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
12401         size calculation.
12402
12403         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
12404         rendering, the value is based on MenuAccessKeysUnderlined.
12405
12406 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
12407
12408         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
12409         for most themes.
12410         
12411         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
12412         
12413         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
12414         and use MenuAccessKeysUnderlined instead.
12415
12416 2007-02-13  Andreia Gaita  <avidigal@novell.com>
12417
12418         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
12419         A selected control would not get a Focus call if:
12420                 - the default active control of the container is the same as
12421                   the one that was selected
12422                 - we are switching from one container to another
12423         Under these conditions, the container being selected already has
12424         an active_control, which is the same as the one being activated, 
12425         so set_ActiveControl would always return and not send the Focus
12426         call. Fix to check if the currently active control of the container
12427         is actually focused.
12428
12429 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
12430
12431         * StatusStrip.cs: Implement the spring layout.
12432         * ToolStripControlHost.cs: Make sure the hosted control's visibility
12433         always matches the host.
12434         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
12435         and TextAfterImage.
12436
12437 2007-02-13  Andreia Gaita  <avidigal@novell.com>
12438
12439         * Control.cs: Code reorganization only.
12440           - Reorganize the WndProc cases so that each case has it's own handling method, 
12441           to help with the no-line-numbering stack traces.
12442           - Formatting changes (it's vstudio's fault, really :p)
12443
12444 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12445
12446         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
12447           Thread.CurrentUICulture to match DateTimePicker's (and MS)
12448           behaviour.
12449
12450 2007-02-12  Jackson Harper  <jackson@ximian.com>
12451
12452         * RichTextBox.cs:
12453         * TextBox.cs: By default we have a non multiline document
12454         - use the multiline property instead of the internal variable
12455         * TextBoxBase.cs: Treat multiline and non multiline the same in
12456         most places.
12457         - Use the documents multiline flag instead of tracking it ourself
12458         * TextControl.cs: Attempt at getting multiline to match MS
12459         behavior.  Lines now track an offset, which is either their X or Y
12460         offset depending on whether or not we are in multiline mode.
12461         - Update all the methods to understand that lines have an X value.
12462         - Fix crash in Undo::Duplicate when empty lines are deleted.
12463
12464 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
12465
12466         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
12467         code moved to properties PreferredHeight and PreferredWidth. It solve the
12468         all problems when preferred sizes must be recalculated. Fixes #80801.
12469
12470 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
12471
12472         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
12473         font height when compatible_text_rendering is false. Partially fix #80801.
12474
12475 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
12476
12477         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
12478
12479 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
12480
12481         * Form.cs: Improved exception messages in ShowDialog.
12482
12483 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
12484
12485         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
12486         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
12487         if not set. Fixes bug #80764. Avoid accessing current_settings field
12488         directly.
12489
12490 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
12491
12492         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
12493         false.
12494
12495         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
12496         public in 2.0 and for easy maintenance and dont break compatibility it is 
12497         internal in 1.1.
12498         
12499 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
12500
12501         * ToolStripItem.cs: Implement using images from ImageList.
12502
12503 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12504
12505         * DateTimePicker.cs: Change default date-formatting culture from
12506           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
12507           seems to be the way MS does it.
12508
12509 2007-02-08  Andreia Gaita  <avidigal@novell.com>
12510
12511         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
12512         (the 6 was cut off on the right side)
12513
12514 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
12515
12516         * Form.cs: Tell MenuStrips to close when the form is clicked.
12517         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
12518         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
12519         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
12520         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
12521         support for Overflow, where items that do not fit are automatically
12522         reparented to a drop down menu.
12523         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
12524         Also: fixes bug #80747.
12525
12526 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12527
12528         * ComboBox.cs: Remove warning (unused code).
12529         * ScrollableControl.cs: Remove warning for 1.1 profile.
12530
12531 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12532
12533         * Form.cs: Remove a warning.
12534
12535 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12536
12537         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
12538           'g' specifier, not documented anywhere, but seems to always show up
12539           as a single space (might have something to do with the DateTime 'g'
12540           specifier, which is the era format, but since DateTimePicker can't
12541           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
12542           won't crash if the format has an unmatched quote. Now shows
12543           single-character formats correctly. Fixes #80744.
12544
12545 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
12546
12547         * StatusStrip.cs: Stretch property needs to call base.Stretch,
12548         not this.Stretch to fix stack overflow. [Fixes bug #80760]
12549
12550 2007-02-07  Chris Toshok  <toshok@ximian.com>
12551
12552         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
12553         background color.  it overwrites the background image we've
12554         already painted.  Fixes #80599.
12555
12556 2007-02-07  Chris Toshok  <toshok@ximian.com>
12557
12558         * DataGrid.cs: return immediately from Edit() when there are no
12559         columns.  Fixes #80662.
12560
12561 2007-02-07  Chris Toshok  <toshok@ximian.com>
12562
12563         * MessageBox.cs: fix #80625.  don't always show the Help button in
12564         2.0.  use the displayHelpButton parameter to determine if we
12565         should show it. Also, make the internal show_help field private.
12566
12567 2007-02-07  Chris Toshok  <toshok@ximian.com>
12568
12569         * Control.cs (SetVisibleCore): check in the proposed patch for
12570         80604, and set is_visible before calling CreateControl.
12571
12572 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
12573
12574         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
12575         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
12576         on it.
12577
12578 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
12579
12580         * MenuAPI.cs: hotkey_active internal field added, it is required because
12581         we need to know when hotkeys must be draw, before this change a keystate
12582         Navigating was used but we can have menu in navigating state without
12583         hotkeys. Fixes #80694.
12584         
12585         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
12586
12587 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12588
12589         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
12590           corresponding events and methods to be internal for 1.1 profile and
12591           public for 2.0 profile (required by SizeGrip).
12592         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
12593           implicit control list). Don't set the size nor the location of the
12594           SizeGrip anymore as it's not needed.
12595         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
12596           draw directly on the captured control (fixes #80656). Removed
12597           ShowGrip (it wasn't used anywhere), redraw (always true), added
12598           GetDefaultSize and GetDefaultRectangle to calculate defaults.
12599         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
12600           be called from SizeGrip.
12601
12602 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12603
12604         * Timer.cs: Throw ArgumentException if Interval <= 0.
12605
12606 2007-02-05  Jackson Harper  <jackson@ximian.com>
12607
12608         * TreeView.cs: We need to check scrollbar visibility when window
12609         visibility is updated, because non visible trees don't ever add
12610         scrollbars.
12611         * Cursor.cs: We want the override cursor to be reset to NULL when
12612         we set current cursor to the default cursor.
12613
12614 2007-02-05  Jackson Harper  <jackson@ximian.com>
12615
12616         * TextControl.cs: Don't have crlfs when we are non multiline.
12617         - Consolidate the line position.
12618
12619 2007-02-05  Jackson Harper  <jackson@ximian.com>
12620
12621         * X11Keyboard.cs: BACK+CTRL gets a special char code.
12622
12623 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12624
12625         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
12626           handling LeaveNotify->NotifyUngrab in order to send
12627           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
12628           after calling XUngrabPointer, so we call WindowUngrabbed directly
12629           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
12630         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
12631           MouseCaptureChanged correctly. Also create handles if changing
12632           Capture (matches MS behaviour).
12633
12634 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12635
12636         * SizeGrip.cs: Make the last change 2.0 only.
12637
12638 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12639
12640         * SizeGrip.cs: If resizing and the capture is lost, revert any size
12641           changes to initial size (fixes #80597).
12642
12643 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12644
12645         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
12646
12647 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12648
12649         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
12650           background) and only allow dragging if enabled. This way the
12651           sizegrip can be used to fill the open square that otherwise would
12652           have been shown in the bottom right corner of ScrollableControl
12653           when ScrollableControl is not suppose to support sizing.
12654         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
12655           sizegrip is shown and enabled, and hook up with necessary events.
12656
12657 2007-02-01  Chris Toshok  <toshok@ximian.com>
12658
12659         * DataGridTextBoxColumn.cs: clean up the
12660         GetFormattedString/GetColumnValueAtRow combination of functions.
12661         Also fix UpdateUI, and the initial state of
12662         IsInEditOrNavigateMode.
12663
12664         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
12665         aren't supposed to scroll the textbox here, we're supposed to
12666         scroll the datagrid.
12667
12668 2007-02-01  Chris Toshok  <toshok@ximian.com>
12669
12670         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
12671         setting the position.
12672
12673 2007-02-01  Chris Toshok  <toshok@ximian.com>
12674
12675         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
12676         here, since the most recent focus fixes keep us from generating
12677         the Leave event when our textbox gets focus.
12678         (Edit): we should be passing null for the column style's
12679         instantText parameter.
12680         
12681 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
12682
12683         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
12684         raised.  Fixes menu text/icons not showing up in PDN.
12685
12686 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12687
12688         * Control.cs: Remove code in constructor that makes every
12689         control with WS_CHILD set have initial location -1, -1.
12690
12691 2007-01-31  Jackson Harper  <jackson@ximian.com>
12692
12693         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
12694         XplatUIX11.
12695         * XplatUIX11.cs: Give teh keyboard to teh dnd.
12696
12697 2007-01-31  Jackson Harper  <jackson@ximian.com>
12698
12699         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
12700         - Remove some debug code.
12701
12702 2007-01-31  Jackson Harper  <jackson@ximian.com>
12703
12704         * XplatUIX11.cs: If you set the override cursor during a grab, it
12705         should actually override the grab cursor.  This comes into play
12706         when you are setting custom cursors in a DND feedback method.
12707
12708 2007-01-31  Jackson Harper  <jackson@ximian.com>
12709
12710         * X11Dnd.cs: Add support for handling the QueryContinue and
12711         GiveFeedback events.
12712         - Cancel drag and drop actions when the escape key is clicked.
12713         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
12714         can handle the ESCAPE key.
12715         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
12716         done when dnd events are continued after the button is released.
12717         - Add a new helper method so that dnd can translate key events.
12718
12719 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
12720
12721         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
12722         make it more obvious what is happening.
12723
12724 2007-01-30  Jackson Harper  <jackson@ximian.com>
12725
12726         * XplatUIX11.cs: Don't break when handling button release in drag
12727         and drop operations. We need that BUTTONUP message to get through
12728         so capture is released.
12729         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
12730         this is handled automatically when the mouse is down.
12731
12732 2007-01-30  Jackson Harper  <jackson@ximian.com>
12733
12734         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
12735         is closed, so we need to make sure that we aren't changing the
12736         dialog result when the OK (Open or Save) button has been clicked
12737         and we are closing the window ourselves.  Note we don't need to
12738         worry about the cache being written in this case, because it was
12739         already done in the previous FilOk call.
12740
12741 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12742         
12743         * DateTimePicker.cs: Remove a warning.
12744         * ComboBox.cs: Remove a couple of warnings.
12745
12746 2007-01-29  Chris Toshok  <toshok@ximian.com>
12747
12748         * XplatUIX11.cs: don't crash, and remove the icon if the user has
12749         set one, if SetIcon is passed a null icon.
12750
12751 2007-01-29  Andreia Gaita  <avidigal@novell.com>
12752
12753         * TextBox.cs: Redraw when the password characters changes
12754         * TextControl.cs: Check if textbox has a password char and draw 
12755         a line of password chars instead of the text in the line. LineTag gets 
12756         an extra Draw() method which allows document.Draw to override the text 
12757         that will be drawn. Removes 1024 char limitation on length of passworded 
12758         lines.
12759
12760 2007-01-29  Jackson Harper  <jackson@ximian.com>
12761
12762         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
12763         single chars is not.
12764
12765 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
12766
12767         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
12768         one pixel.  Fix a StackOverflowException caused by an overload wrongly
12769         calling itself.
12770
12771 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
12772
12773         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
12774         also remove ProcessArrowKey and put the code inside ProcessKeys.
12775
12776 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
12777
12778         * PaddingConverter.cs: Added.
12779
12780 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12781         
12782         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
12783         ShowPanels is false (fixes #80600). Only draw up to 127 characters
12784         of text (fixes #80601). For panels clip the text to draw to the
12785         panel (fixes #80603).
12786
12787 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12788
12789         * ComboBox.cs: Fixed implementation of ResetText.
12790
12791 2007-01-25  Jackson Harper  <jackson@ximian.com>
12792
12793         * TextControl.cs: For the last char of a line we need to use the
12794         line size, not that chars width, since it won't actually be
12795         computed since the right side of a char is based on the start of
12796         the left side of the next char, and the next char does not exist.
12797
12798 2007-01-25  Chris Toshok  <toshok@ximian.com>
12799
12800         * Splitter.cs: fix the new unit tests, and reindent some switch
12801         statements.
12802
12803 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12804
12805         * ComboBox.cs: Implemented 2.0 methods and events.
12806         * TextBoxBase.cs: Added OnTextUpdate, so that
12807         ComboBox.ComboTextBox can inform ComboBox of it.
12808
12809 2007-01-25  Jackson Harper  <jackson@ximian.com>
12810
12811         * TextControl.cs: Respect ShowSelection when deciding whether or
12812         not to display the caret, this allows comboboxes to have carets
12813         when the combotextbox does not have focus.
12814
12815 2007-01-25  Jackson Harper  <jackson@ximian.com>
12816
12817         * TextControl.cs: Add a Suspend/Resume for updating, basically the
12818         same as the Suspend/Resume for recalc, except this will do actual
12819         Invalidates.
12820         - New Undo manager, works much like the MS version.
12821         - Implemented Redo
12822         * TextBoxBase.cs: The Cut operation is undoable.
12823
12824 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12825         
12826         * TextBoxBase.cs: Don't antialias text. Makes it look way better
12827         on Windows (no difference on Linux).    
12828
12829 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12830
12831         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
12832         we don't want to activate any windows. Fixes #79433.
12833
12834 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
12835
12836         - ButtonBase.cs: Fix capitalization of parameter: disposing.
12837         [Fixes bug #80609]
12838
12839 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
12840
12841         * FileDialog.cs:
12842         - Move to using System.ComponentModel.EventHandlerList
12843         - Replace Refresh with Invalidate
12844         - Clear the mime filecache on closing
12845         - Some other memory reducing work. After beeing closed FD now uses
12846           only about 300 KB for the fdo mime stuff plus the memory of the
12847           cached icons.
12848         * Mime.cs: Changed coding style and removed unnecessary commented
12849         code. Some more memory memory reducing work.
12850
12851 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12852
12853         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
12854         a few other missing 2.0 properties.
12855         * Theme.cs: Added DrawFlatStyleComboBox.
12856         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
12857
12858 2007-01-24  Chris Toshok  <toshok@ximian.com>
12859
12860         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
12861         wake_waiting flag, not just when there's data to be read.  if we
12862         don't, then future wakeup's won't reach us and we'll be doomed to
12863         wait for the entire 1 second timeout forever (unless there are X
12864         events to be had).
12865
12866 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
12867
12868         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
12869         until you pass Items.Count, not Items.Count - 1 like 1.1.
12870
12871 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
12872
12873         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
12874
12875 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
12876
12877         * ToolStripContainer.cs: The recent Dock fix exposed that I was
12878         adding the panels in the wrong order.
12879
12880 2007-01-24  Jackson Harper  <jackson@ximian.com>
12881
12882         * TextBoxBase.cs: When we move the caret we also need to move the
12883         selection, this fixes some random crashing after doing select
12884         text, unselect, delete a char, paste.
12885
12886 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12887
12888         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
12889
12890 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
12891
12892         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
12893         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
12894         * ToolBar.cs: Force redraw in BackgroundImageChanged.
12895
12896 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
12897
12898         * ToolBar.cs:
12899         - Implement support for vertical toolbars. Fixes #80539;
12900         - Call LayoutToolBar when resize, it fix some other problems in layout.
12901         - Rename requested_height to requested_size, as we can have width on it
12902         when toolbar is vertical.
12903         - Create a private property "Vertical" that uses Dock to verify when 
12904         toolbar is vertical or not.
12905         - Set ControlStyles when change Dock property.
12906         - Refactory in LayoutToolBar to have better variables names and to support
12907         vertical toolbars.
12908         - Fixes default value for ButtonSize when button count is equal zero, size
12909         must be (39, 36) test case writed.
12910
12911 2007-01-23  Chris Toshok  <toshok@ximian.com>
12912
12913         * Control.cs: fix the checks so that they work correctly for mdi
12914         parents/children.
12915
12916 2007-01-23  Chris Toshok  <toshok@ximian.com>
12917
12918         * Control.cs: ControlCollection seems to have super-secret
12919         abstraction breaking knowledge of Mdi containers.  allow MdiClient
12920         to add toplevel controls.
12921
12922 2007-01-23  Chris Toshok  <toshok@ximian.com>
12923
12924         * Control.cs: throw an ArgumentException if a toplevel control is
12925         added to our control collection from ControlCollection.Add, as
12926         well as from ControlCollection.IList.Add.  This fixes the
12927         ControlSetTopLevelTest.TestTopLevelAdd unit test.
12928
12929         Also, in ControlCollection.IList.Add, don't through an
12930         ArgumentNullException, throw an ArgumentException, when value ==
12931         null.  This matches MS.
12932
12933 2007-01-23  Chris Toshok  <toshok@ximian.com>
12934
12935         * BindingSource.cs: initial, incomplete, implementation of
12936         BindingSource.
12937
12938 2007-01-23  Jackson Harper  <jackson@ximian.com>
12939
12940         * TextControl.cs:
12941         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
12942         that I can fix a broken unit test (TextBoxTest::ClearUndo)
12943         
12944 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
12945
12946         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
12947
12948 2007-01-23  Andreia Gaita  <avidigal@novell.com>
12949
12950         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
12951         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
12952         IndexOfKey() for 2.0
12953
12954 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12955
12956         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
12957         to prevent it from changing z-order.
12958         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
12959         leave UI updates in MdiWindowManager.
12960         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
12961         1 sized (NC handling goes weird on Linux otherwise).
12962         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
12963         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
12964         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
12965         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
12966         and SetWindowState(s) to allow for changing the size of an activated child
12967         before activating it (reduces a lot of flicker).
12968
12969 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
12970
12971         * Form.cs: Changing FormBorderStyle has different semantics based
12972         on whether the Form is visible or not.  If not visible, don't change
12973         the Size.  But InvalidateNC needs to be called to force the window
12974         to pick up the changes and redraw itself.  [Fixes bug #80574]
12975
12976 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
12977
12978         [Moma work]
12979         * ContainerControl.cs: ProcessCmdKey.
12980         * ErrorProvider.cs: new constructor.
12981         * Form.cs: fix AutoValidateEvent compiler warning.
12982         * Label.cs: fix OnAutoSizeChanged compiler warning.
12983         * MenuStrip.cs: fix CanOverflow compiler warning.
12984         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
12985         * TextBox.cs: Dispose.
12986         * ToolStrip.cs: CanOverflow, re-enable double buffering.
12987         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
12988         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
12989         * ToolStripItem.cs: Overflow, RightToLeft properties.
12990
12991 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12992
12993         * Form.cs: Move the layout of the main form to MdiWindowManager.
12994         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
12995         do a layout of the main window to update MdiClient's client area to
12996         the right area. Fixes #80533. Remove the calculation of nc size, 
12997         it was just wrong and the correct one is the same as for 
12998         InternalWindowManager. 
12999
13000 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
13001
13002         * Control.cs: Setting Anchor or Dock needs to reset the other
13003         to its default.  [Fixes bug #80556]
13004
13005 2007-01-20  Chris Toshok  <toshok@ximian.com>
13006
13007         * CheckedListBox.cs: class status changes.
13008
13009         * ScrollableControl.cs: same.
13010
13011         * RichTextBox.cs: same.
13012
13013         * ContainerControl.cs: same.
13014
13015         * ListView.cs: same.
13016
13017         * NotifyIcon.cs: same.
13018
13019         * MenuStrip.cs: same.
13020
13021         * RadioButton.cs: same.
13022
13023         * CheckBox.cs: same.
13024
13025         * PrintPreviewDialog.cs: same.
13026
13027         * Form.cs: same.
13028
13029 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
13030
13031         * TreeNode.cs: Apply Alan's patch for Name property.
13032
13033 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13034         
13035         * Form.cs: Implemented SizeGripStyle.
13036         * SizeGrip.cs: Check for minimum and maximum size for the
13037         control being resized and only resize if size has actually
13038         changed.
13039
13040 2007-01-19  Chris Toshok  <toshok@ximian.com>
13041
13042         * DataGridColumnStyle.cs: stop setting _readonly in the
13043         PropertyDescriptor setter.  fixes a unit test failure.
13044
13045         also, rename ParentReadOnly to TableStyleReadOnly, and have it
13046         just consult our table style (if we have one).  We don't need to
13047         consult the datagrid readonly attribute because that's passed in
13048         as the _ro arg to Edit.  this simplifies things a little.
13049         
13050         * DataGrid.cs: use CurrentColumn instead of
13051         current_cell.ColumnNumber just to simplify some of the code.
13052
13053         switch the order of some things in the CurrentCell setter to keep
13054         the previous cell from getting a textbox again -
13055         EnsureCellVisibility causes scrolling to happen, which calls Edit.
13056         So we need to set the new cell before calling it.
13057         
13058         call Edit in OnEnter, as does Microsoft.
13059         
13060         also, make sure the current table style isn't the one we create
13061         initially when checking to see if it's different than the one
13062         we're setting it to in BindColumns (this fixes #80421).
13063
13064         * GridTableStylesCollection.cs: table styles can have "" for a
13065         mapping name.  part of the fix for #80421.
13066
13067         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
13068         Edit significantly.
13069
13070 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
13071
13072         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
13073         and less GDI object leaky-er.
13074
13075 2007-01-18  Andreia Gaita  <avidigal@novell.com>
13076
13077         * LinkLabel.cs: Add opaque control style
13078
13079 2007-01-18  Jackson Harper  <jackson@ximian.com>
13080
13081         * TextControl.cs: Calculate width properly.
13082         - Don't store the tag's X offset, this can be figured out very
13083         easily.
13084         - When getting the caret tag make sure to get the last empty tag.
13085
13086 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
13087
13088         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
13089         [Fixes bug #79959]
13090
13091         * Control.cs: Color.Empty shouldn't count for previous transparent
13092         redraw changes.
13093
13094 2007-01-18  Jackson Harper  <jackson@ximian.com>
13095
13096         * TextBox.cs:
13097         * RichTextBox.cs:
13098         * TextControl.cs: Starting to merge in some pieces of my older
13099         undo work.  Basically just some slight cleanup of the undo API.
13100
13101 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13102
13103         * TrackBar.cs: Fix signature of RightToLeftLayout.
13104         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
13105         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
13106         * Application.cs: Implemented UseWaitCursor.
13107
13108 2007-01-18  Jackson Harper  <jackson@ximian.com>
13109
13110         * TextControl.cs: We can't skip tags if any part of the tag is
13111         visible.
13112
13113 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
13114
13115         * ContainerControl.cs: Override OnLayout.
13116
13117 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
13118
13119         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
13120
13121         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
13122         everything else.
13123
13124 2007-01-18  Chris Toshok  <toshok@ximian.com>
13125
13126         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
13127         (leftover from the container_selected days, I'd wager).  fixes bug
13128         #80546.
13129
13130 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
13131
13132         * Control.cs: Apply patch from George to fix the new testcase on
13133         bug #80451.  We can't just check for Color.Transparent, we need 
13134         to check if the back color's alpha channel is < 255.
13135
13136 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
13137
13138         * Form.cs: Move setting show_icon = true to before the constructor
13139         so that the base constructor has that information when it calculates
13140         the form's size.  Was causing forms to be (6, 6) bigger than they
13141         were supposed to be.  Thanks for catching this Rolf!
13142
13143 2007-01-18  Jackson Harper  <jackson@ximian.com>
13144
13145         * TextControl.cs: When replacing a selection we need to invalidate
13146         from the initial selection start, because selection start is moved
13147         to the end of the replacement.
13148
13149 2007-01-18  Andreia Gaita  <avidigal@novell.com>
13150
13151         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
13152
13153 2007-01-18  Chris Toshok  <toshok@ximian.com>
13154
13155         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
13156         I just added.
13157
13158 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
13159
13160         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
13161         layout methods and properties from ToolBarButton must be available
13162         into ToolBarButtonInfo.
13163
13164 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
13165
13166         * Control.cs: If the control has a transparent background, we
13167         need to refresh it when it moves and when it's parent's background
13168         image changes.  [Fixes bug #80451]
13169
13170 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
13171
13172         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
13173
13174 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
13175
13176         * XplatUIWin32.cs: Implement proper double buffering for Windows.
13177         [Fixes bug #80447, and probably speeds up things as well]
13178
13179 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13180
13181         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
13182         * XplatUIWin32.cs: We need to recalculate NC size after changing 
13183         window style to toolwindow (otherwise the client rectangle will be
13184         3 pixels to small for some reason).
13185         * MdiWindowManager.cs: Revert NC size calculations to match how
13186         they are calculated only based on window styles (to match
13187         Win32AdjustWindowRectEx, since otherwise when setting size or 
13188         location, Control will call Win32AdjustWindowRectEx to update client 
13189         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
13190         calculate a different value of client size causing another paint 
13191         (and flickering))
13192         * InternalWindowManager.cs: When moving or resizing a window only
13193         update size or location if they actually changed.
13194         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
13195         (seems to match Windows behaviour better). Cleaned up 
13196         ManagedWindowDecorations to draw what's needed and nothing else
13197         (was drawing borders and lines where they shouldn't be)
13198         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
13199         (style = 0xFFFF) and takes into account caption height when 
13200         calculating window rectangle.   
13201
13202 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
13203
13204         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
13205         can be added to toolbar multiple times, we need to maintain a list of 
13206         button information for each positions.
13207
13208 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
13209
13210         * ToolBar.cs: Some small stetic changes.
13211
13212 2007-01-16  Jackson Harper  <jackson@ximian.com>
13213
13214         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
13215         that allow us to have nested recalc = false blocks.
13216         - Add paste support for images in the RichTextBox
13217         * RichTextBox.cs: flush the text after the color is changed, so
13218         the change takes effect.
13219         - Use SuspendRecalc
13220         - Some extra debugging info
13221         * TextControl.cs: Tags no longer track their length, it is just
13222         computed from the next tags length, this makes things a little
13223         simpler and reduces places that we have to track length changes.
13224         - Refactored the linetag class a little so we could make it
13225         a base class for different kinds of tags
13226         - Created a image tag, a tag that can have a single image inserted
13227         into it
13228         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
13229         that we can call suspend multiple times.
13230         - Add some debugging methods
13231
13232 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13233
13234         * MdiClient.cs: Add ActivatePreviousChild for 
13235         mdi child window navigation.
13236         * Form.cs: Use MdiClient.ActivateNextChild/
13237         ActivatePreviousChild instead of Form.SelectNextControl
13238         to select the next/previous child since 
13239         SelectNextControl doesn't do it in the same order
13240         as mdi children should do it.
13241
13242 2007-01-16  Chris Toshok  <toshok@ximian.com>
13243
13244         * Control.cs: remove container_selected field.
13245
13246 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13247
13248         * MdiClient.cs: Update main form's ActiveChild when
13249         updating keyboard focus for the mdi child.
13250
13251 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
13252
13253         * Control.cs: PreferredSize fix.
13254
13255         * Form.cs: Add several 2.0 events, properties, and methods.
13256
13257 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
13258
13259         * Form.cs: Provide meaningful message when MdiParent is assigned a
13260         Form that is not an MdiContainer.
13261
13262 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13263
13264         * MdiClient.cs: Update main form's ActiveChild when
13265         activating a mdi child.
13266
13267 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13268
13269         * MdiWindowManager.cs: Fix NRE when merging menus and main form
13270         doesn't have a menu.
13271
13272         * Form.cs: Request NCRecalc after creating a mdi child window.
13273         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
13274         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
13275         
13276         * MdiClient.cs: Add new method SendFocusToActiveChild that either
13277         sends keyboard focus to the active child, or to the MdiClient
13278         if there are no child forms.
13279         
13280 2007-01-15  Chris Toshok  <toshok@ximian.com>
13281
13282         * ListView.cs: drop the *Internal overrides, just do our work in
13283         ItemControl's WndProc instead.
13284
13285         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
13286         of the various controls, and forward the events properly (in the
13287         same manner as MS) from the textbox to the UpDown.  Also the
13288         ActiveControl of the UpDownBase gets set properly now.  Finally,
13289         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
13290
13291         * NumericUpDown.cs: set Text in the ctor.
13292
13293         * DomainUpDown.cs: call UpdateEditText in the ctor.
13294         
13295         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
13296         so even a Selectable = false textbox can be focused if you click
13297         in it.  Go figure.
13298
13299         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
13300         just add their handling in their respective WndProc's.  Also add
13301         an explicit FocusInternal method that doesn't consult CanFocus
13302         before calling Select(this).
13303
13304         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
13305         do our work in WndProc instead.
13306
13307         * TabControl.cs: same.
13308
13309         * ComboBox.cs: same.
13310
13311 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
13312
13313         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
13314         Fixes #80006.
13315
13316 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13317
13318         * ListViewItem.cs:
13319         * ThemeWin32Classic.cs: Don't draw the item text outside
13320         item bounds in Details view, as well as use trimming.
13321         Fixes bug #80376.
13322
13323 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
13324
13325         * Form.cs: Implement Form.ShowIcon.
13326         
13327         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
13328         null, which when combined with the DlgModalFrame window style removes
13329         the icon from the title bar.
13330
13331 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
13332
13333         * Control.cs: Call OnMouseClick after OnClick. (2.0)
13334
13335 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
13336
13337         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
13338         menu when mdi child windows theres a menu, uses insert to get icon
13339         at first position. Partially fix #80006.
13340
13341 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
13342
13343         * Clipboard.cs: Implement 2.0 methods.
13344
13345 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
13346
13347         * Menu.cs: Implement Insert method of MenuItemCollection class
13348         to fix MenuMerge.
13349
13350 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13351
13352         * ListView.cs: Implement 2.0 FindItemWithText method.
13353
13354 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
13355
13356         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
13357         to calculate menu bar size. Fixes #80290.
13358
13359 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
13360
13361         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
13362
13363 2007-01-11  Chris Toshok  <toshok@ximian.com>
13364
13365         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
13366         initial form.
13367
13368 2007-01-11  Chris Toshok  <toshok@ximian.com>
13369
13370         * LinkLabel.cs: make sure to call base.Select in our Select method
13371         if it turns out we're going to be selected (i.e. if we have a link
13372         that is going to receive focus).  That way our container's
13373         ActiveControl is updated properly.
13374
13375 2007-01-11  Chris Toshok  <toshok@ximian.com>
13376
13377         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
13378         they have 1 or more links.  this fixes the crash gert reported.
13379
13380 2007-01-11  Andreia Gaita  <avidigal@novell.com>
13381
13382         * ContainerControl.cs: Remove ContainerSelected flag, not needed
13383         anymore.
13384
13385         * Control.cs (Controls.Add): Check if control to be added to the collection
13386         is a top level control, and throw an ArgumentException if it is.
13387         Remove ContainerSelectedFlag, not needed anymore.
13388
13389         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
13390         top most control doesn't activate the form. This fixes a problem in the
13391         MessageBox, where the default button wouldn't get focus because the form
13392         was activated before being Loaded - when the Owner is set, SetTopMost is
13393         called, and it would activate it.
13394
13395 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
13396
13397         * Button.cs: When clicked and setting the parent form's DialogResult,
13398         use FindForm instead of Parent, since parent could be a container
13399         control and not the Form.  Fixes bug #80495.
13400
13401 2007-01-10  Chris Toshok  <toshok@ximian.com>
13402
13403         * Form.cs: move the call to SendControlFocus into the same
13404         is_loaded check.
13405
13406 2007-01-10  Chris Toshok  <toshok@ximian.com>
13407
13408         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
13409         It breaks in the face of the new ActiveControl stuff, and should
13410         be unnecessary.
13411
13412         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
13413         activecontrol's focus if it's not already set, after we set
13414         ActiveControl, but before we call OnActivated.  Re-fixes #79667
13415         after the previous focus/active control fixes regressed it.
13416
13417         * Control.cs: reindent some code.
13418         
13419 2007-01-10  Chris Toshok  <toshok@ximian.com>
13420
13421         * Splitter.cs: clearing some outstanding changes from my tree.
13422         Replace all accesses (not writes) to the internal dock_style field
13423         with the Dock property.
13424
13425 2007-01-10  Chris Toshok  <toshok@ximian.com>
13426
13427         * Control.cs: make FireEnter, FireLeave, FireValidating, and
13428         FireValidated virtual.
13429
13430         * Form.cs: override and don't chain up calls to FireEnter and
13431         FireLeave.
13432
13433 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13434
13435         * ListView.cs: Add more text padding space when using
13436         auto resize for columns (the previous value didn't work fine).
13437
13438         * ThemeWin32Classic.cs: Update text position inside columns,
13439         to match the appeareance of .Net.
13440
13441         * ColumnHeader.cs: When using auto resize, only the Width should
13442         depend on the sub items, not the Height. Also, set width after
13443         auto resizing (the value of Width should never remain as -1 or -2).
13444
13445 2007-01-10  Chris Toshok  <toshok@ximian.com>
13446
13447         * Application.cs: fix compilation errors when debug is enabled.
13448
13449 2007-01-10  Chris Toshok  <toshok@ximian.com>
13450
13451         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
13452         add some nice ascii art pictures and explanation of the process).
13453         (GetMostDeeplyNestedActiveControl): new utility function we need
13454         because our ActiveControl can refer to a child container with its
13455         own ActiveControl.
13456
13457         * Form.cs (OnActivated): remove the call to SelectActiveControl
13458         from here, since you can override this method and not chain up,
13459         and winforms still sets the active control.
13460         (OnCreateControl): also remove the unnecessary SelectActiveControl
13461         call from here.
13462         (WndProc): it's actually called from the WM_ACTIVATE block, just
13463         before calling OnActivated.
13464
13465         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
13466         inside the else.  the ActiveControl setter will end up setting
13467         focus on @control.  This keeps us from setting it again (and
13468         generating an extra LostFocus/GotFocus pair).
13469         (Select (bool, bool)): reindent.
13470
13471 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
13472
13473         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
13474         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
13475         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
13476         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
13477         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
13478         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
13479         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
13480         ToolStripTextBox.cs: Another wave of corcompare work.
13481
13482 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13483
13484         * ColumnHeader.cs: Implement 2.0 AutoResize method using
13485         the Width property.
13486
13487         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
13488         methods by callling Column.AutoResize method on columns.
13489
13490 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
13491
13492         * Control.cs: Provide proper implementations of PreferredSize
13493         and GetPreferredSize (2.0).
13494
13495 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
13496
13497         * Form.cs: Remove one character (!) to make my previous OnClosing
13498         stuff work for modal windows like MessageBox.
13499
13500 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13501
13502         * ListView.cs:
13503         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
13504         ListView.Columns to get the last displayed column. Fixes #80452.
13505
13506 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
13507
13508         * Label.cs, LinkLabel.cs: Source code identation fixes.
13509
13510 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
13511
13512         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
13513         we dont need to invalidate only borders because when we invalidate four
13514         border lines the invalidate's generates a complete redraw of button, 
13515         because it now invalidate a complete rect some other redraws operations
13516         are fixed. Fixes #80196.
13517         
13518         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
13519         Remove ToolBarInvalidateEntireButton as it is not used.
13520
13521 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
13522         
13523         * Form.cs: Make sure that both OnClosing and OnFormClosing are
13524         called for 2.0 profile.
13525         * CloseReason.cs: Make class internal for 1.1.
13526
13527 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
13528
13529         * ToolStripManager.cs: Implement FindToolStrip functionality.
13530         * ToolStrip.cs: Register and unregister with ToolStripManager.
13531
13532 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
13533
13534         * Control.cs: This was messy.  2.0 moves much of ControlCollection
13535         to ArrangedElementCollection.  Implemented this with as few #if's as 
13536         possible (which is still too many).
13537
13538 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
13539
13540         * Control.cs: Implement SizeFromClientSize() [2.0].
13541
13542 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
13543
13544         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
13545         use Theme.BorderSize to calculate area instead of static value 1, 
13546         by the way use new BorderStaticSize instead     Border3DSize when 
13547         border_static is true. Fixes #79537.
13548         
13549         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
13550         
13551         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
13552         it is not needed.
13553
13554 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
13555
13556         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
13557
13558 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
13559
13560         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
13561         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
13562         
13563         * Hwnd.cs: 
13564         - border_static field added, it will used to define when a control 
13565         theres 3D border but it must be static (thin).
13566         - In GetWindowRectangle use Theme.BorderSize to calculate area 
13567         instead of static value 1, by the way use new BorderStaticSize instead
13568         Border3DSize when border_static is true.
13569
13570         * XplatUIX11.cs, XplatUIOSX.cs: 
13571         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
13572         
13573         * Theme.cs: BorderStaticSize field added.
13574
13575 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
13576
13577         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
13578
13579 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
13580
13581         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
13582         mimic same behavior than win32 that set border only in CreateParams,
13583         it fix problems under CreateParams overrides. Fix #79442 and partial
13584         fix #79537.
13585         
13586         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
13587         of thi control you must call recreate handle. 
13588         
13589         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
13590         need to do anything as RecreateHangle will take care about borders.
13591
13592 2007-01-05  Mike Kestner  <mkestner@novell.com>
13593
13594         * ListView.cs: hack to eliminate Lost/Got focus notifications on
13595         cycles between the ItemControl and parent.  Fixes #80388.
13596
13597 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
13598
13599         * Control.cs: Lazy init layout engine. Do not directly use 
13600         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
13601
13602 2007-01-05  Chris Toshok  <toshok@ximian.com>
13603
13604         * DataGrid.cs: don't forceably rebind columns in SetDataSource
13605         unless our list manager has changed (i.e. unless we have reason to
13606         believe our columns have changed).  Fixes #80422.
13607         
13608         also, disable the call do BindColumns in
13609         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
13610         1.1 the event isn't raised in response to a column addition on a
13611         table.)
13612
13613 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
13614
13615         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
13616         that inheritors can not call it if they choose.  Fixes bug #80456.
13617
13618 2007-01-05  Andreia Gaita  <avidigal@novell.com>
13619
13620         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
13621         doesn't blow up with a null exception on marshalling.
13622         
13623 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
13624
13625         * Control.cs: Implement several 2.0 protected properties and methods.
13626         Ensure that all necessary events are being called when properties
13627         are set.
13628
13629 2007-01-05  Mike Kestner  <mkestner@novell.com>
13630
13631         * ListView.cs: implement PgUp/PgDn for Details view.  Also
13632         fixes First/LastVisibleIndex to use the item_control.ClientRect 
13633         instead of the parent control.  Fixes #80378.
13634
13635 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
13636
13637         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
13638           determine whether to use yard-pound or not (bug #78399).
13639
13640 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
13641
13642         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
13643         problems. So it is time to bring back the old popupbutton colors.
13644
13645 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13646
13647         * ColumnHeader.cs:
13648         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
13649         property by using the internal information of the
13650         columns order in ListView.
13651
13652 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
13653
13654         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
13655         Add 2.0 Tag properties.
13656
13657         * LinkArea.cs: Add 2.0 ToString method.
13658
13659 2007-01-03  Chris Toshok  <toshok@ximian.com>
13660
13661         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
13662         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
13663         when we're editing, which fixes #80047.
13664
13665 2007-01-03  Chris Toshok  <toshok@ximian.com>
13666
13667         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
13668         #80404.
13669
13670 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
13671
13672         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
13673         property and implementation.
13674
13675         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
13676         for MdiWindowListItem property.
13677
13678         * ToolStripDropDown.cs: Don't consider hidden menu items while
13679         laying out the menu.
13680
13681 2007-01-03  Andreia Gaita  <avidigal@novell.com>
13682
13683         * SendKeys.cs: window handle is not needed in win32, so just
13684         get the active window for X after parsing keys and don't use
13685         it when building the message; it is passed by parameter to the 
13686         Xplat method and used there to build the message instead. Also,
13687         wait for events to be processed on SendWait, as opposed to Send,
13688         which doesn't wait :) Playing with threads and Send() completely 
13689         hangs on ms.net, only SendWait() works.
13690         
13691         XplatUIX11.cs
13692         X11Display.cs: Check for valid window handle.
13693
13694 2007-01-03  Jackson Harper  <jackson@ximian.com>
13695
13696         * TextControl.cs: Need to prevent wrap calculations when replacing
13697         text (this was there before i removed it accidently).
13698         - Don't update the cursor during the positioning, just set it to
13699         selection_start at the end of the operaion.
13700
13701 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13702
13703         * Control.cs:
13704         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
13705         
13706 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13707
13708         * MonthCalendar.cs: Added Click and DoubleClick events again,
13709         but this time they only hide Control's Click and DoubleClick.
13710         
13711 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
13712
13713         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
13714         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
13715
13716 2007-01-02  Jackson Harper  <jackson@ximian.com>
13717
13718         * TextBoxBase.cs: We move the caret with the split now, so we
13719         don't need to explicitly move the caret after splitting.  This
13720         fixes the caret bumping down an extra line on Enter.
13721
13722 2007-01-02  Miguel de Icaza  <miguel@novell.com>
13723
13724         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
13725         2.72). 
13726
13727         * ScrollableControl.cs: Add Scroll event.
13728
13729 2007-01-02  Mike Kestner  <mkestner@novell.com>
13730
13731         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
13732         to fix all hdr height padding codepaths.  Fixes #80207.
13733
13734 2007-01-02  Chris Toshok  <toshok@ximian.com>
13735
13736         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
13737         setting it to the Control defaults anyway, and it being after the
13738         Dock set was screwing up layout.
13739         (set_Dock): don't short circuit out of setting base.Dock.  Also,
13740         no need to call UpdateStatusBar here, as it'll be re-layed out if
13741         it needs to be.
13742
13743 2007-01-02  Mike Kestner  <mkestner@novell.com>
13744
13745         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
13746         to header height for width == -1. Fixes the rest of #80207.
13747
13748 2007-01-02  Mike Kestner  <mkestner@novell.com>
13749
13750         * ListView.cs: rework the mouse event forwarding everaldo added
13751         to translate the coordinates to the parent control not
13752         raise the parent events until after we've done our work. Hover
13753         needs more work, in the case where HoverSelection is on, because
13754         the item control receives more than one MouseHover per Enter
13755         event, so we need to ensure only the "first" hover gets forwarded.
13756         Opening a minor bug for that.
13757
13758 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
13759
13760         * CheckedListBox.cs: Fixed SelectionMode to match MS.
13761         * ListControl.cs: Implemented AllowSelection property. Removed extra
13762         tabs.
13763         * ListBox.cs: Implemented AllowSelection property.
13764
13765 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
13766
13767         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
13768         SelectedItem, it prevent for errors when you must disable item
13769         before perform click. Fixes #80409.
13770
13771 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
13772
13773         * MenuAPI.cs: Prevent second level and beyond submenus to close
13774         until first level when move out side of popup.
13775         
13776 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
13777
13778         * MenuAPI.cs:
13779         - Down submenu positin in three pixels.
13780         - Closes sub menu when mouse leaves from menu. Fixes #80402.
13781
13782 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
13783
13784         * ThemeWin32Classic.cs:
13785         - Fix popup menu size adding one pixel on the top.
13786         - Down menu item border from two to one to mimic Win32.
13787         - Some source identation fixes. 
13788
13789 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
13790
13791         * ThemeWin32Classic.cs: Use float numbers to calculate size and
13792         position of menu arrows, it fix wrong arrow size.
13793
13794 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
13795
13796         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
13797         instead of line, it simplify draw operation and fix it using 3D
13798         borders to mimic Win32.
13799
13800 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
13801
13802         * StatusStrip.cs: Add implementation of the sizing grip.
13803
13804         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
13805         StatusStrip rendering.
13806
13807 2006-12-31  Chris Toshok  <toshok@ximian.com>
13808
13809         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
13810         override the layout style (anchor/dock) of the control.  assign to
13811         Dock instead.  Fixes bug #80416.
13812
13813         * ToolStrip.cs: same.
13814
13815 2006-12-31  Andreia Gaita  <avidigal@novell.com>
13816
13817         * ContainerControl.cs: Use ContainerSelected flag to check if 
13818         a Container is directly selected, or if Select is called on a 
13819         non-container. If a container is directly selected, focus events 
13820         should not be raised.
13821         Apply #80411 patch to throw exception on set_ActiveControl if 
13822         control is the same as the current one.
13823         
13824         * Control.cs: Use ContainerSelected flag (see above).
13825         Add invalidation check to raise event but not invalidate if 
13826         dimensions are 0.       
13827         Apply #80411 patch.
13828         
13829
13830 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
13831
13832         * MenuAPI.cs: After click, dont close popup menu when menu is
13833         ContextMenu. Fixes #80399.
13834
13835 2006-12-30  Chris Toshok  <toshok@ximian.com>
13836
13837         * ContainerControl.cs: make sure we throw the exception if the
13838         container control doesn't contain the control we're setting
13839         ActiveControl to.
13840
13841 2006-12-30  Chris Toshok  <toshok@ximian.com>
13842
13843         * Control.cs (SetTopLevel): fix the exception raised by
13844         SetTopLevel for child controls.
13845         (set_Anchor): call UpdateDistances when setting the anchor type.
13846         This fixes bug #80336.
13847
13848 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
13849
13850         * Theme.cs: For now, revert back to 8pt font.
13851
13852 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
13853
13854         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
13855         Fixes #80395.
13856
13857 2006-12-29  Chris Toshok  <toshok@ximian.com>
13858
13859         * Control.cs: reorder the code in OnResize to give the same event
13860         ordering as MS.
13861
13862 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13863
13864         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
13865         TileHorizontally and TileVertically.
13866         
13867 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
13868
13869         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
13870         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
13871         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
13872         Corrected copyright and email adress.
13873
13874 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
13875
13876         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
13877         of Exception in FullPath property if no TreeView is associated with
13878         the TreeNode.
13879
13880 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
13881
13882         * Theme.cs: Marked default_font as private, and initialize it in ctor
13883         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
13884         on 2.0 profile.
13885         * ThemeGtk.cs: Removed default_font intialization.
13886         * ThemeWin32Classic.cs: Removed default_font initialization.
13887
13888 2006-12-28  Chris Toshok  <toshok@ximian.com>
13889
13890         * Control.cs: fix a couple of place where we were creating handles
13891         more aggressively than we should be.  Fixes ControlRefresh unit
13892         tests.
13893
13894 2006-12-28  Chris Toshok  <toshok@ximian.com>
13895
13896         * Control.cs: contrary to what the comment said, Control.Dock does
13897         not supercede Control.Anchor - the last one you assign to decides
13898         the layout behavior.  so we need to keep track of which was the
13899         last set.  Also, fix some of the affected property arguments in
13900         PerformLayout calls, and remove an redundant parent.PerformLayout
13901         call in OnResized.
13902
13903         Add a VisibleInternal property, which returns is_visible.  We
13904         can/should get rid of all the usage of this field elsewhere.
13905
13906 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13907         
13908         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
13909         control style, not DoubleBuffer. Added UseDoubleBuffering property
13910         that indicates whether doublebuffering is enabled and supported.
13911         (comment from and code based on Gert Driesen's patch in #80324).
13912         Fixes #80324.
13913
13914 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13915         
13916         * Control.cs: Fixed a NRE.
13917
13918 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13919
13920         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
13921         for 2.0.
13922
13923 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13924
13925         * Control.cs: Rewrote double buffering, now a seperate
13926         class handles all the buffering, no Graphics is disposed of
13927         until the painting is finished (earlier implementation 
13928         would crash if the control was resized in the OnPaint, 
13929         since it would cause the double buffer to be recreated
13930         and the old one disposed), a separate Graphics is 
13931         created for every paint (MS behaviour and anyways the state
13932         of the Graphics would have to be saved and restored otherwise)
13933         
13934         * XplatUIDriver.cs: 
13935         * XplatUIX11.cs:
13936         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
13937         so that we can get the graphics for the back buffer without
13938         having to create a new one and remove the offscreen_dc parameter
13939         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
13940         
13941 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13942
13943         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
13944         Also make virtual all the key-related methods.
13945
13946         * ListViewItem.cs: Make virtual the key related methods for
13947         ListViewSubItemCollection.
13948
13949 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13950
13951         * ListView.cs:
13952         * ListViewItem.cs:
13953         * ThemeWin32Classic.cs:
13954         * Theme.cs: Initial support for Tile view in ListView,
13955         as well as the implementation of the required bits for it (Item
13956         and Subitem).
13957
13958 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
13959
13960         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
13961         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
13962         Provide useful exception messages.
13963
13964 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13965
13966         * TrackBar.cs: Remove a warning.
13967         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
13968         when used by DateTimePicker, fixes #80287. This also requires that 
13969         MonthCalendar implements it's own drawing for the yearly updown control,
13970         otherwise the Capture tracking would be too complicated. Removed the Click 
13971         and DoubleClick events (according to comments they were hiding the base class
13972         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
13973         raise these events, not that they cannot be raised. It is possible to raise 
13974         them by calling OnClick and OnDoubleClick). Added two internal fields in 
13975         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
13976         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
13977         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
13978         event, no longer needed.
13979         
13980 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
13981
13982         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
13983         true if new value differs from current value.
13984
13985 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
13986
13987         * Control.cs: ControlCollection.Count must be public. Fixed build of
13988         unit tests.
13989
13990 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
13991
13992         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
13993
13994 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
13995
13996         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
13997
13998 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
13999
14000         * Control.cs: Invalidates control including when Width and Height is 
14001         equal zero or is not visible, only Paint event must be care about 
14002         this. Fixes #79913.
14003
14004 2006-12-26  Chris Toshok  <toshok@ximian.com>
14005
14006         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
14007         more corcompare work.
14008
14009         * DataGridView.cs: fix compiler warning.
14010
14011         * ColumnHeader.cs: some corcompare work, and also take the
14012         opportunity to make the internal fields private.
14013
14014         * ListView.cs: fix the fallout from the above field change.
14015
14016 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
14017
14018         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
14019         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
14020         ToolStripTextBox.cs: Fixes to events and corcompare.
14021
14022 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
14023
14024         * ListView.cs: Call owner.OnMousexx event to propagate events from
14025         item to ListView. Fixes #80367.
14026
14027 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
14028
14029         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
14030         if value is less than one. ItemHeight should not be set to a value
14031         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
14032         Removed extra tabs.
14033
14034 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
14035
14036         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
14037         * ToolStripStatusLabel.cs: Add Spring for Moma.
14038
14039 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
14040
14041         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
14042         Fixed code formatting. Removed debug code.
14043         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
14044
14045 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
14046
14047         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
14048         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
14049         ArgumentOutOfRangeException if ColumnCount is negative. In 
14050         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
14051         less than 4 or higher than 32768.
14052         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
14053         Fixed FormatProvider to return CurrentCulture unless explicitly set.
14054         Fixed IsFormatProviderDefault to return true if FormatProvider has
14055         not been explicitly set.
14056
14057 2006-12-25  Chris Toshok  <toshok@ximian.com>
14058
14059         * Application.cs: add a couple of 2.0 events.
14060
14061 2006-12-25  Chris Toshok  <toshok@ximian.com>
14062
14063         * Control.cs: fix compiler warning.
14064
14065         * AxHost.cs: corcompare fixes.
14066
14067         * ApplicationContext.cs: corcompare fixes.
14068
14069 2006-12-25  Chris Toshok  <toshok@ximian.com>
14070
14071         * Control.cs: only update dist_right/dist_bottom if the
14072         width/height is > 0.  this fixes anchored controls being resized
14073         smaller until they disappear and then resized larger again.
14074
14075 2006-12-25  Chris Toshok  <toshok@ximian.com>
14076
14077         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
14078         since they're nothing more than X/Left and Y/Top, respectively.
14079
14080         Also, move back to a per-control Bitmap/Graphics for
14081         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
14082         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
14083         Height.
14084
14085 2006-12-25  Miguel de Icaza  <miguel@novell.com>
14086
14087         * MessageBox.cs: Implemented overload that takes a new "bool
14088         displayHelpButton" by adding a new internal field "show_help".
14089         When clicked this will raise the HelpRequested on the owner or the
14090         main form. 
14091
14092         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
14093         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
14094
14095         * ListView.cs: Add support ColumnWidthChanged and
14096         ColumnWidthChanging. 
14097
14098         Add support for ColumnReordered event.
14099         (ReorderColumn): Add NET_2_0 specific support for cancelling the
14100         reorder.
14101
14102         Very nice codebase!
14103
14104         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
14105
14106         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
14107
14108 2006-12-24  Chris Toshok  <toshok@ximian.com>
14109
14110         * GridTablesFactory.cs: 2.0 corcompare work.
14111
14112         * ToolStripContainer.cs: add "override" to
14113         ContextMenuStripChanged, and remove the local event object.
14114
14115         * ToolStripDropDown.cs: same with a couple properties.
14116
14117         * ToolStripPanel.cs: same with AutoSizeChanged event.
14118
14119         * TextBoxBase.cs: add "override" to AutoSizeChanged.
14120
14121         * Form.cs: add the remaining 2.0 events, and do some corcompare
14122         attribute work.
14123
14124         * DateTimePicker.cs: add "new" to padding.
14125
14126         * ButtonBase.cs: use Control's use_compatible_text_rendering.
14127
14128         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
14129
14130         * DataGridView.cs: PaddingChanged is overridden.
14131
14132 2006-12-24  Chris Toshok  <toshok@ximian.com>
14133
14134         * Control.cs: corecompare work here too.
14135
14136         * DataGridViewElement.cs, DataGridView.cs,
14137         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
14138         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
14139         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
14140         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
14141         work.
14142
14143 2006-12-24  Miguel de Icaza  <miguel@novell.com>
14144
14145         * Control.cs: Switched the error message on the console for a
14146         todo.  A review of the code will have to cope with this anyways
14147         (since its a large feature, it is in our radar) and it was
14148         producing too much output when running PDN.
14149
14150         * ToolStripComboBox.cs: Set the text when the SelectedIndex
14151         changes.  Applications depend on this (PDN 2.72)
14152
14153 2006-12-23  Chris Toshok  <toshok@ximian.com>
14154
14155         * TableLayoutSettings.cs: finish up the corcompare work for this
14156         class.
14157
14158 2006-12-23  Chris Toshok  <toshok@ximian.com>
14159
14160         * Control.cs: make SetImplicitBounds internal, do some futzing
14161         with LayoutEngine so that it's available in 1.1, and remove the
14162         entire duplicated code mess from PerformLayout.  Use
14163         System.Windows.Forms.Layout.DefaultLayout instead.
14164
14165         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
14166
14167 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
14168
14169         * Form.cs: Add MainMenuStrip property.
14170
14171 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
14172
14173         * Control.cs: Add ContextMenuStrip property and implementation.
14174         Fix ContextMenu implementation to show menu centered on control when
14175         activated using the keyboard instead of showing at screen (0,0).
14176
14177         * ToolStripDropDown.cs: Fix needed overload of Show ().
14178
14179 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
14180
14181         * Menu.cs: Name property added for 2.0 profile.
14182         
14183 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
14184
14185         * Menu.cs: Update information about FindMenuItem, method to be
14186         implemented soon.
14187
14188 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
14189
14190         * MenuAPI.cs: When deselect items deselect also selected subitems.
14191         
14192 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
14193
14194         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
14195         FindSubItemByCoord to found itens that is not active, also an
14196         cheking added to FindSubItemByCoord to search for items only 
14197         in visible popup windows. Fixes #80274.
14198
14199 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
14200
14201         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
14202         internal property, it be care about change ExStyle. 
14203
14204 2006-12-22  Andreia Gaita  <avidigal@novell.com>
14205
14206         * ContainerControl.cs: set activeControl for parent forms up the 
14207         tree when the new activecontrol is a container.
14208         When validating the active control, if it is a container, also
14209         raise up the validation for it's active control. Fixes #80280
14210         
14211         * Control.cs: Add internal property flag and check to prevent
14212         Focus events from getting raised when Select() is called for
14213         a ContainerControl. There are still too many focus events being
14214         raised at the moment though.
14215         Cleaned up the code a bit.
14216
14217 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14218
14219         * Control.cs: Added all missing 2.0 events.and
14220         fixed a couple of corcompare issues.
14221         * TrackBar.cs: Implemented missing 2.0 bits.
14222         * MonthCalendar.cs, 
14223         * DateTimePicker.cs, 
14224         * MdiClient.cs: Fixed some corcompare issues.
14225
14226 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
14227
14228         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
14229         SplitterPanel.cs: corecompare work.
14230
14231 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
14232
14233         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
14234         Clean up warnings for BackgroundImageChanged and PaddingChanged
14235         events now that they are implemented in Control.cs.
14236
14237 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
14238
14239         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
14240         
14241         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
14242         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
14243         of TableLayoutPanel and supporting cast.
14244
14245 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14246
14247         * XplatUIWin32.cs: 
14248         - GrabWindow now confines the mouse pointer to the confine window.
14249         - Added Win32ClipCursor and Win32GetClipCursor.
14250
14251         * Control.cs: 
14252         - Added CaptureWithConfine to be able to capture and confine 
14253         mouse pointer.
14254         
14255         * InternalWindowManager.cs: 
14256         - Call CaptureWithConfine instead of Capture if we're an
14257         MdiChild (fixes #79982).
14258
14259 2006-12-21  Chris Toshok  <toshok@ximian.com>
14260
14261         * DataGrid.cs: guard against the initial state of selection, where
14262         selection_start == -1.  make sure we only select from index >= 0.
14263         Fixes bug #80291.
14264
14265 2006-12-21  Chris Toshok  <toshok@ximian.com>
14266
14267         * Control.cs: we don't need to be so draconian with
14268         UpdateDistances, and we thusly don't need to call it before
14269         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
14270
14271 2006-12-21  Daniel Nauck  <dna@mono-project.de>
14272
14273         * ComboBox.cs,
14274         TextBox.cs: Implemented AutoComplete properties.
14275
14276 2006-12-20  Chris Toshok  <toshok@ximian.com>
14277
14278         * DataGridView*.cs: some corecompare work.
14279
14280 2006-12-20  Jackson Harper  <jackson@ximian.com>
14281
14282         * XplatUIX11.cs: We need to hide the caret when deleting it,
14283         otherwise you get carets left lying around everywhere.
14284         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
14285         prevents getting some weird half drawn caret tracers when
14286         scrolling.
14287         * TextControl.cs: Attempt to reduce the number of times we need to
14288         recreate the caret.
14289
14290 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
14291
14292         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
14293
14294 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14295
14296         * DateTimePicker.cs:
14297         - Implemented missing 2.0 bits.
14298         - Changed some default values to match MS.
14299         
14300 2006-12-20  Jackson Harper  <jackson@ximian.com>
14301
14302         * TextBoxBase.cs: When changing the font across the document we
14303         can't recalculate after changing each line, since that will cahnge
14304         the line count.
14305         - PreferredHeight is a little different than i thought.
14306         - When backspacing, move the caret before we do the actual char
14307         delete, because when that delete crosses a wrap boundary the
14308         positional information will change.
14309
14310 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14311
14312         * Control.cs: Added some missing 2.0 bits: 
14313         BackgroundImageLayout, BackgroundImageLayoutChanged, 
14314         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
14315         add IBindableComponent and IDropTarget implementation.
14316         
14317         * MonthCalendar.cs: 
14318         - Added all missing 2.0 features:
14319         BackgroundImageLayout, RightToLeftLayout, 
14320         OnHandleDestroyed, RightToLeftLayoutChanged, 
14321         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
14322         PaddingChanged.
14323         - Rewrote all the BoldDate code, it was completely broken.
14324         - Fixed all the tests (the tests can now be re-enabled, the
14325         problems were not with the tests, but with the control, it was
14326         mostly broken).
14327         
14328         * DateTimePicker.cs: Changed the location where the 
14329         MonthCalendar is shown.
14330         
14331 2006-12-19  Chris Toshok  <toshok@ximian.com>
14332
14333         * DataGridView.cs: add IDropTarget implementation.
14334
14335         * ToolStripPanel.cs: add IDropTarget implementation.
14336
14337 2006-12-19  Jackson Harper  <jackson@ximian.com>
14338
14339         * TextControl.cs: soft now means something different than what it
14340         used to mean, we want to move the caret regardless of whether or
14341         not this break was soft (would we really have wanted the caret
14342         to not move with the break in the old context?)
14343         * TreeView.cs: Make sure we factor in the vert scrollbar when
14344         calculating the horizontal scrollbar's maximum.
14345
14346 2006-12-19  Andreia Gaita  <avidigal@novell.org>
14347
14348         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
14349         check for keywords in alternate casing, close bug #80049.
14350
14351 2006-12-19  Chris Toshok  <toshok@ximian.com>
14352
14353         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
14354         methods (which all do nothing).
14355
14356         * IDropTarget.cs: add the 4 missing methods.
14357
14358 2006-12-19  Chris Toshok  <toshok@ximian.com>
14359
14360         * TableLayoutRowStyleCollection.cs: corcompare work.
14361         
14362         * TableLayoutSettings.cs: same.
14363
14364         * TableLayoutStyle.cs: same.
14365
14366         * TableLayoutColumnStyleCollection.cs: same.
14367
14368 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
14369
14370         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
14371         TableLayoutPanel I've had in my local tree for way too long.
14372
14373 2006-12-19  Miguel de Icaza  <miguel@novell.com>
14374
14375         * TableLayoutSettings.cs: Finish the public API (still needs all
14376         the logic to update on changes). 
14377
14378         * TableLayoutPanelCellPosition.cs: new file.
14379         
14380         * TableLayoutRowStyleCollection.cs,
14381         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
14382         TableLayoutSettings.cs: Track the final 2.0 table api.
14383
14384 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14385
14386         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
14387         and Image List 2.0 members for ColummnHeader.
14388         * ListView.cs: Add key-related 2.0 methods for
14389         ColumnHeaderCollection.
14390
14391 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
14392
14393         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
14394         ArgumentNullException if items argument is null. Ignore null item in
14395         arrays. Removed extra tabs.
14396
14397 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
14398
14399         * MonthCalendar.cs: Fixed InvalidCastException.
14400
14401 2006-12-19  Jackson Harper  <jackson@ximian.com>
14402
14403         * TextControl.cs: Don't increment the position here.
14404         - When calculating char positions only add in the line break size
14405         for hard line breaks.
14406
14407 2006-12-19  Andreia Gaita  <avidigal@novell.org>
14408
14409         * SendKeys.cs: Changed some things to match ms.net behaviour
14410         when parsing shifted capital letters.
14411         
14412         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
14413         Add window handle as parameter to SendInput. X11 needs the 
14414         window handle, and the handle being passed      to it in the keys 
14415         queue is the active control handle (which windows needs), not 
14416         the window handle.
14417         
14418         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
14419         to support SendKeys on X.       
14420         
14421         * X11Keyboard: Implement helper method to lookup a linux keycode
14422         given the virtual keycode. Added table of keycode-2-virtualkey
14423         values to support this.
14424
14425 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14426
14427         * ListView.cs: Add support for SelectedIndexCollection
14428         and SelectedItemCollection 2.0 methods. Implement support
14429         for ImageKey too.
14430         * ListViewItem.cs: Add support for ListViewSubItemCollection
14431         2.0 methods. Also, fix an incorrect behavior of AddRange method
14432         (it shouldn't call Clear).
14433         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
14434
14435 2006-12-19  Jackson Harper  <jackson@ximian.com>
14436
14437         * RichTextBox.cs: 
14438         * TextBoxBase.cs: New args for FormatText
14439         * TextControl.cs: Rewrote the main drawing method, this version
14440         feels a little easier to understand and debug to me.  Hopefully it
14441         does to others also
14442         - Fix FormatText to OR in the new formating values.  Added
14443         FormatSpecified param, basically this works in the same way as
14444         BoundsSpecified in Control.
14445         - Set the caret properties when the caret is positioned.
14446         - When wrapping text make sure that we calculate the width of the
14447         last character
14448         - when calculating alignments we might have wrapped down to the
14449         next line, so don't search for an individual tag, search for the
14450         end of the line
14451         - We need to invalidate the selection area when we replace the
14452         selection.
14453         
14454 2006-12-19  Daniel Nauck  <dna@mono-project.de>
14455
14456         * Application.cs: add Restart () 2.0 support
14457
14458 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
14459
14460         * MenuItem.cs: Invalidate menu item rectangle after change Enable
14461         property. Fixes #80268.
14462         
14463 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
14464
14465         * MenuAPI.cs: Dont trigger select event when closes top menu
14466         item. Fixes #80270.
14467
14468 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
14469
14470         * MenuAPI.cs: When you click on menuitem only trigger onselect
14471         event for top menu itens. Fixes #80271.
14472         
14473 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14474
14475         * MdiWindowManager.cs: Make IconicBounds depend on
14476         the bottom of MdiClient, not the top (fixes #80267)
14477         
14478 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14479
14480         * MdiClient.cs: Added missing 2.0 attribute
14481
14482 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14483
14484         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
14485         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
14486
14487 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
14488
14489         * MenuAPI.cs: Fix click when menuitem is not popup,
14490         this regression was caused by last commit (#80272).
14491
14492 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
14493
14494         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
14495         fire click event or close menu. Fixes #80272.
14496
14497 2006-12-17  Daniel Nauck  <dna@mono-project.de>
14498
14499         * ListViewHitTestInfo.cs: add
14500
14501 2006-12-17  Daniel Nauck  <dna@mono-project.de>
14502
14503         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
14504         * FlatButtonAppearance.cs: add
14505         * DockingAttribute.cs: add
14506
14507 2006-12-17  Chris Toshok  <toshok@ximian.com>
14508
14509         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
14510         and rebind our columns when it does - this way, if you make
14511         changes to the DataTable (or set the Table attribute on a DataView
14512         after setting it as the DataGrid's DataSource, the changes are
14513         made visible.)  Fixes bug #80107.
14514
14515 2006-12-17  Daniel Nauck  <dna@mono-project.de>
14516
14517         * ListViewGroup.cs: add internal Location property for layouting.
14518         * Theme.cs: add abstract ListViewGroupHeight function.
14519         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
14520
14521 2006-12-16  Andreia Gaita  <avidigal@novell.com>
14522
14523         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
14524         Added reset of selected index to 0 when adding first tab page.
14525         Fixes #80264
14526         
14527         * NumericUpDown.cs: Fix NET_2_0 check
14528
14529 2006-12-16  Daniel Nauck  <dna@mono-project.de>
14530
14531         * ListViewGroup.cs: fixed DefaultValueAttribute value
14532
14533 2006-12-16  Daniel Nauck  <dna@mono-project.de>
14534
14535         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
14536
14537 2006-12-15  Miguel de Icaza  <miguel@novell.com>
14538
14539         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
14540         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
14541         ScrollableControl.cs: Add a handful of methods that are
14542         overwritten in 2.0 
14543
14544 2006-12-15  Chris Toshok  <toshok@ximian.com>
14545
14546         * XplatUIWin32.cs: initial implementation of the Reversible
14547         drawing functions.  there are some problems.  DrawReversibleFrame
14548         doesn't seem to work at all for Dashed FrameStyle, and in the
14549         Thick case there are drawing errors at the corners (we probably
14550         need to bind Rectangle instead of doing moveto/lineto's.)
14551
14552 2006-12-16  Andreia Gaita  <avidigal@novell.com>
14553         
14554         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
14555         to send blocks of key messages. Send accumulates keys to send with Flush, 
14556         while SendWait sends all keys immediately.
14557                 
14558         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
14559         XplatUIX11.cs,  XplatUIX11-new.cs:
14560         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
14561         to Win32 SendInput.
14562         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
14563         
14564         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
14565         testing for ms.net on this class is very tricky, as the tests run too fast 
14566         to allow the hook to release, essentially freezing the keyboard and the 
14567         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
14568         category :p
14569
14570 2006-12-16  Daniel Nauck  <dna@mono-project.de>
14571
14572         * Padding.cs: fixed serialization compability to MS ("_var" field names),
14573                         added missing attributes.
14574  
14575 2006-12-15  Daniel Nauck  <dna@mono-project.de>
14576
14577         * ListViewGroup.cs: Added missing attributes.
14578         * ListViewGroupCollection.cs: Added missing attributes.
14579
14580 2006-12-15  Daniel Nauck  <dna@mono-project.de>
14581
14582         * ListViewItem.cs: fixed ListViewSubItem text property.
14583
14584 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14585         
14586         * Control.cs: Added missing 2.0 attributes
14587         
14588 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14589         
14590         * MdiClient.cs: Added missing 2.0 attribute.
14591         * MonthCalendar.cs: Added some missing 2.0 attributes 
14592         and properties.
14593         
14594 2006-12-15  Daniel Nauck  <dna@mono-project.de>
14595
14596         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
14597
14598 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
14599
14600         * MainMenu.cs: Add the new 2.0 constructor to help out people
14601         using the MainMenu in VS2005.
14602
14603 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14604         
14605         * MdiChildContext.cs: Removed it, no longer used.
14606         * MdiClient.cs: Added missing 2.0 attributes.
14607         
14608 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14609         
14610         * InternalWindowManager.cs: Fix a NullRef with previous 
14611         changes for toolwindows.
14612         
14613 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14614
14615         * Control.cs: 
14616         - Added AfterTopMostControl to allow for certain controls 
14617         to always stay on top when normal controls are brought to 
14618         front.
14619         
14620         * XplatUIWin32.cs: 
14621         - (DrawInversibleRectangle): Get window rectangle from Win32 
14622         in stead of from control, since Win32 doesn't calculate
14623         screen coords correctly from control's Location if it 
14624         have docked siblings.
14625         
14626         * MdiWindowManager.cs:
14627         - Correct the control menu popup location when clicked on
14628         the maximized form icon. (fixes #80223.1)
14629         - Don't show moving rectangle if mouse hasn't moved from
14630         the original clicked point.
14631         - Removed FormGotFocus handler (not used).
14632         - Calculate the control buttons location from the main
14633         window's size and not client size (fixes #79770).
14634         - Form is now closed when the form icon is double-clicked
14635         (fixes #79775). 
14636         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
14637         
14638         * InternalWindowManager.cs:
14639         - Moved some MDI-only methods to MdiWindowManager.
14640         - Removed unused properties and methods.
14641         - Unified method naming for methods handling wm messages.
14642         - Moved all message handling to seperate methods for
14643         each message.
14644         
14645         * ThemeWin32Classic.cs:
14646         - DrawManagedWindowDecorations now draws the title bar 
14647         with a gradient brush.
14648         - Add a CPDrawButtonInternal that allows us to specify
14649         light, normal and dark colors for the buttons (control 
14650         buttons for MDI children were drawn with the same light
14651         color as the background, therefore loosing the 3D effect).
14652         
14653         * SizeGrip.cs:
14654         - Add a CapturedControl property that is used to 
14655         determine the control to resize (defaults to parent). 
14656         Needed for MdiClient, since its SizeGrip's parent is
14657         MdiClient, but the control to resize is the main form.
14658         
14659         * MdiClient.cs:
14660         - Set SizeGrip's CapturedControl to the main form in order
14661         to resize the main form and not the MdiClient.
14662         - Override AfterTopMostControl to leave the scrollbars 
14663         always on top.
14664
14665 2006-12-15  Daniel Nauck  <dna@mono-project.de>
14666
14667         * ListView.cs: fixed ListViewItemCollection AddRange and
14668                         implemented ListViewItemCollection AddRange 2.0 support.
14669
14670 2006-12-15  Daniel Nauck  <dna@mono-project.de>
14671
14672         * ListViewGroup.cs: Add.
14673         * ListViewGroupCollection.cs: Add
14674         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
14675         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
14676                                 stub for ImageKey 2.0 support.
14677
14678 2006-12-14  Mike Kestner  <mkestner@novell.com>
14679
14680         * ListView.cs: add text padding to the autocalculation for columns
14681         of width -2.  Fixes #80207.
14682  
14683 2006-12-14  Mike Kestner  <mkestner@novell.com>
14684
14685         * ListView.cs: add some index guarding for partial row navigation 
14686         logic.  Fixes #80250.
14687
14688 2006-12-14  Mike Kestner  <mkestner@novell.com>
14689
14690         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
14691         are added or inserted to the collection.  Fixes #81099.
14692
14693 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
14694
14695         * MenuAPI.cs: Closes menu when right click out side of popup
14696         it fix problem in ContextMenu and MainMenu. Fixes #80252.
14697
14698 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14699
14700         * ListViewItem.cs: Fix dumb error.
14701
14702         * ListView.cs: Add Find and ContainsKey methods in 
14703         ListViewItemCollection, and also return true for IsReadOnly
14704         and IsFixedSize (changes for 2.0). 
14705
14706 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
14707
14708         * Control.cs: Allow Region to be set to null.
14709
14710 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14711
14712         * MdiWindowManager.cs: Remove unused (commented out) code.
14713         * Form.cs: When the MdiChild is maximized, the form needs 
14714         WM_NCMOUSELEAVE, so request it.
14715         * InternalWindowManager.cs: 
14716         - Added tooltips to control buttons.
14717         - Removed duplicated control button handling code.
14718         - Removed unused (commented out) code.
14719         
14720 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
14721
14722         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
14723         was used because we must set cursor without trigger ChangeCursor event
14724         and without change Cursor control property. Fixes #79963.
14725
14726 2006-12-12  Andreia Gaita  <avidigal@novell.com>
14727         
14728         * Control.cs: Check if Region setter value is null, and ignore
14729
14730 2006-12-12  Jackson Harper  <jackson@ximian.com>
14731
14732         * TextControl.cs: We were almost always drawing one more line then
14733         needed, since the GetLineByPixel will return the last line found
14734         at that pixel. In most cases though, we were invalidating up to
14735         the junction between two lines.
14736         - Improve debug code.
14737
14738 2006-12-12  Chris Toshok  <toshok@ximian.com>
14739
14740         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
14741         and FillReversibleRectangle.
14742
14743         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
14744         and FillReversibleRectangle.
14745
14746         * XplatUIWin32.cs: add stubs which do nothing for
14747         DrawReversibleFrame, DrawReversibleLine, and
14748         FillReversibleRectangle.
14749
14750         * XplatUIOSX.cs: add stubs which raise NIE for
14751         DrawReversibleFrame, DrawReversibleLine, and
14752         FillReversibleRectangle.
14753
14754         * XplatUIX11.cs: add working implementation for
14755         DrawReversibleFrame, DrawReversibleLine, and
14756         FillReversibleRectangle.
14757         
14758         * ControlPaint.cs: implement DrawReversibleFrame,
14759         DrawReversibleLine, and FillReversibleRectangle, by calling into
14760         the appropriate XplatUI method.
14761
14762 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14763
14764         * Form.cs: Make MdiClient have the focus even if it's
14765         not selectable, since it should receive WM_KEY* and WM_MOUSE 
14766         messages. Fixes #79907.
14767         
14768 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14769
14770         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
14771         queried after the window is created.
14772         
14773         * XplatUIX11.cs: Added SendParentNotify to implement 
14774         WM_PARENTNOTIFY logic. Fixes #79965.
14775         
14776         * Control.cs: Added MakeParam.
14777         
14778 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14779
14780         * MdiClient.cs: Resume Layout before setting window
14781         states (fixes #80201).
14782
14783 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14784
14785         * MenuAPI.cs: Deselect a menu item after performing
14786         the click (fixes #80197).
14787
14788 2006-12-11  Jackson Harper  <jackson@ximian.com>
14789
14790         * TextBoxBase.cs: We need to cap this value, since Maximum -
14791         ViewPortHeight can be less than zero.
14792         - Only do selection with the left mouse button.
14793         * TextBox.cs: Don't tell the world that we have a context menu.
14794         * Control.cs: New method so that we can control whether or not the
14795         context menu is visible outside MWF.
14796
14797 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
14798
14799         * ToolBarButton.cs: Fix text positon. 
14800
14801 2006-12-11  Miguel de Icaza  <miguel@novell.com>
14802
14803         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
14804
14805         * Control.cs (DoubleBuffered): Add implementation.
14806
14807         * Application.cs (OpenForms): Add.
14808
14809 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
14810
14811         * Form.cs: Use opacity instead of Opactiy to determine if we need
14812         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
14813
14814 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
14815
14816         * Control.cs: Fix NRE if Control.Site was set to null.
14817
14818 2006-12-11  Chris Toshok  <toshok@ximian.com>
14819
14820         * Control.cs: ControlCollection.Remove should return if the arg is
14821         null, and ControlCollection.SetChildIndex should raise a ANE.
14822
14823 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
14824
14825         * Control.cs: Verify value set for Dock property. Code formatting
14826         updates.
14827
14828 2006-12-11  Jackson Harper  <jackson@ximian.com>
14829
14830         * TextControl.cs: Draw the caret and the selection when a flag is
14831         set on the owner.
14832         * TextBoxBase.cs: We want to draw the caret and the selection for
14833         TextBox but not for TextBoxBase.
14834         - If the window is resized and scrolling is no longer needed (the
14835         whole doc is visible) set the scroll position to zero.
14836         - The default SelectWord (the one TextBox uses) should move the
14837         caret to the end of the word.
14838         - SelectAll moves the caret to the end of the selection.
14839         * TextBox.cs: We don't selectall on focus, we just do it when the
14840         control is created.
14841         
14842 2006-12-11  Mike Kestner  <mkestner@novell.com>
14843
14844         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
14845
14846 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14847
14848         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
14849         2.0 support.
14850         * ListViewItem.cs: Add Name 2.0 property.
14851
14852 2006-12-11  Andreia Gaita  <avidigal@novell.com>
14853
14854         * TabControl.cs: Set visibility on selected or default tab 
14855         when tabcontrol handle is created, so that it's contents
14856         actually show up (duh). Fixes #80193
14857         Don't redraw the control if there is no handle created, as
14858         the selected index might be completely invalid. Added some tests
14859         to check for this.
14860
14861 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
14862
14863         * ToolBar.cs: Uses maximun width and height of all buttons as 
14864         button rectangle when ButtonSize specified, it looks strange but
14865         is what happens in Win32. Fixes #80189.
14866
14867 2006-12-11  Jackson Harper  <jackson@ximian.com>
14868
14869         * TextControl.cs: Need to track undo levels ourself, since
14870         compound actions will mess them up.
14871
14872 2006-12-10  Andreia Gaita  <avidigal@novell.com>
14873
14874         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
14875         SelectedIndex value is changed (even if it's not valid).
14876         Reset SelectedIndex to 0 when the handle is created and if
14877         the current index is invalid.
14878         Fixes SelectdeIndex unit tests and #80128
14879
14880 2006-12-08  Chris Toshok  <toshok@ximian.com>
14881
14882         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
14883         calls EndEdit, it needs to be called before we set current_cell to
14884         its new value.  Otherwise, we end up committing the value in the
14885         textbox to the new cell as well.  Fixes bug #80160.
14886
14887 2006-12-08  Chris Toshok  <toshok@ximian.com>
14888
14889         * Form.cs (set_CancelButton): if the button's DialogResult is
14890         None, set it to Cancel.  Fixes bug 80180.
14891
14892 2006-12-08  Jackson Harper  <jackson@ximian.com>
14893
14894         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
14895         to watch ourselves when setting the canvas size and setting the
14896         scrollbar values.
14897
14898 2006-12-08  Chris Toshok  <toshok@ximian.com>
14899
14900         * DataGrid.cs: comment out the two MakeTransparent calls for the
14901         time being so people using trunk (and not 1.2.2) on windows can
14902         actually use the datagrid.  This deals with bug #80151.
14903
14904 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
14905
14906         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
14907         Graphics.DrawImage (image, int, int, int, int) overload instead
14908         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
14909         the dpi difference and was blurring images it drew.
14910         [Fixes bug #79960]
14911
14912 2006-12-08  Chris Toshok  <toshok@ximian.com>
14913
14914         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
14915         rowcnt is 0 (such as with an empty datasource), and make sure we
14916         initialize not_usedarea.Y to cells.Y, so we don't draw over the
14917         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
14918
14919 2006-12-08  Chris Toshok  <toshok@ximian.com>
14920
14921         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
14922         grid.
14923
14924 2006-12-08  Chris Toshok  <toshok@ximian.com>
14925
14926         [ Fixes bug #80167 ]
14927         
14928         * ThemeWin32Classic.cs: don't draw the image if the button's flat
14929         style is FlatStyle.System.
14930
14931         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
14932         ButtonBase.flat_style private, and switch uses of it to the public
14933         property.
14934         
14935 2006-12-08  Chris Toshok  <toshok@ximian.com>
14936
14937         [ Fixes bug #80121 ]
14938         
14939         * ThemeWin32Classic.cs: center the caption text in the datagrid
14940         when we draw it.
14941
14942         * DataGrid.cs: lessen the amount we add to the caption height from
14943         6 to 2.  6 was making it huge.
14944
14945 2006-12-08  Andreia Gaita  <avidigal@novell.com>
14946
14947         * UpDownBase: Handle MouseWheel call directly instead of capturing
14948         the inner textbox's OnMouseWheel. Fixes #80166
14949
14950 2006-12-08  Jackson Harper  <jackson@ximian.com>
14951
14952         * TextControl.cs: We need to invalidate the textbox when we empty
14953         it (how had this not been discovered before?)
14954
14955 2006-12-08  Jackson Harper  <jackson@ximian.com>
14956
14957         * TextBoxBase.cs: Reworked the mouse down code so I could get it
14958         to behave like MS, we now ignore the eventargs.Click and just
14959         track state ourself, which we were already doing anyways.
14960         - Constrain the double click handler to the double click size.
14961         
14962 2006-12-08  Chris Toshok  <toshok@ximian.com>
14963
14964         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
14965         direction if that scrollbar isn't shown.  fixes bug #80158.
14966
14967 2006-12-08  Andreia Gaita  <avidigal@novell.com>
14968
14969         * NumericUpDown.cs: Update value on getter. Fixes #79950
14970
14971 2006-12-08  Chris Toshok  <toshok@ximian.com>
14972
14973         * MenuItem.cs: add back in the event cloning code.  I didn't know
14974         how to do it in the face of the EventHandlerList work i'd done
14975         last week.  Fixes bug #80183.
14976
14977 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
14978
14979         * Control.cs: Add an invalidate to the BackgroundImage setter.
14980         [Fixes 80184]
14981
14982 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
14983
14984         * ToolStrip*: Add some small properties reported by MoMA, fix event
14985         firing and default properties based off of unit tests, and add some
14986         attributes based off of the class status page.
14987
14988 2006-12-07  Jackson Harper  <jackson@ximian.com>
14989
14990         * TextBoxBase.cs: Take HideSelection into account when determining
14991         whether or not to show the selection.
14992         * RichTextBox.cs: After inserting the RTF into the document move
14993         the cursor to the beginning of the document.
14994
14995 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
14996
14997         * Control.cs: Remove static ArrayList "controls" which maintained
14998         a reference to every control created.
14999         * Application.cs: Create a static FormCollection to maintain a reference
15000         to every form created.  Use it in places that formerly enumerated through
15001         the controls one looking for forms.
15002         * Form.cs: Add and remove self from above FormCollection.
15003
15004 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
15005
15006         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
15007           not libgdk (though it makes me wonder why I didn't have any
15008           problems)
15009
15010 2006-12-07  Chris Toshok  <toshok@ximian.com>
15011
15012         [ you had to know this was coming after that last commit...]
15013         
15014         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
15015         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
15016         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
15017         XCopyArea).
15018
15019 2006-12-07  Chris Toshok  <toshok@ximian.com>
15020
15021         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
15022         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
15023         all the behavior we need for double buffering.
15024
15025         * XplatUIDriver.cs: implement the 3 double buffer methods using a
15026         client side Bitmap, just like the old Control-based double buffer
15027         code did.  The methods are virtual, so each XplatUI driver
15028         subclass can replace the implementation to use a faster, platform
15029         specific approach.
15030
15031         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
15032         double buffer code, and clean things up a bit in the process.
15033
15034 2006-12-06  Chris Toshok  <toshok@ximian.com>
15035
15036         * Control.cs: reindent WndProc.
15037
15038 2006-12-06  Chris Toshok  <toshok@ximian.com>
15039
15040         [ I wanna be like BenM when I grow up ]
15041         
15042         * Hwnd.cs: create a single static Graphics object on the static
15043         Bitmap we create.  use this for our text measurements.
15044
15045         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
15046         This was causing us to allocate a backbuffer for every control,
15047         even when it wasn't flagged as double buffered.  Instead use the
15048         single graphics instance.  This might have implications for
15049         multithreaded applications.  If we run into problems we can switch
15050         to creating 1 Graphics per control, on the static Hwnd bitmap.
15051
15052         this change nets us a 7M savings in private dirty mappings when
15053         running FormsTest.exe.
15054
15055 2006-12-06  Chris Toshok  <toshok@ximian.com>
15056
15057         * ListView.cs: the BackgroundImage override is just to set
15058         attributes.  chain up to base.BackgroundImage.
15059
15060         * RichTextBox.cs: same.
15061
15062         * ToolBar.cs: same, but we need to also redraw the toolbar when it
15063         changes, so instead a handler for BackgroundImageChanged.
15064         
15065         * Control.cs: make background_image private.
15066
15067 2006-12-06  Chris Toshok  <toshok@ximian.com>
15068
15069         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
15070         sure we even need this assignment, but roll with it for now.
15071
15072         * Control.cs: make the cursor field private.
15073
15074 2006-12-06  Chris Toshok  <toshok@ximian.com>
15075
15076         * Form.cs: we don't need to explicitly set ImeMode to
15077         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
15078         behavior in the face of ImeMode.Inherit.
15079
15080         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
15081         change the ctor's assignment to use ImeMode instead of ime_mode.
15082
15083         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
15084         ImeModeInherit.  Only check for the parent's imemode (and return
15085         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
15086         This fixes the button unit test, which sets both ImeMode and
15087         DefaultImeMode to ImeMode.Disable.
15088
15089         also make the ime_mode field private.
15090
15091 2006-12-06  Chris Toshok  <toshok@ximian.com>
15092
15093         * Control.cs: make control_style private.
15094
15095         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
15096         setting the styles to true, then setting them to false instead of
15097         reverting to their previous values.
15098
15099         also, call SetStyle on the scrollbars instead of using
15100         control_style directly.
15101
15102 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
15103
15104         * FormCollection.cs: Implement. [2.0]
15105
15106 2006-12-06  Chris Toshok  <toshok@ximian.com>
15107
15108         * Control.cs: make tab_stop private.
15109
15110         * Label.cs: set TabStop, not tab_stop.  reformat some event
15111         add/remove methods to make them more compact.
15112
15113 2006-12-06  Chris Toshok  <toshok@ximian.com>
15114
15115         * RadioButton.cs: fix TabStop handling.
15116
15117 2006-12-06  Chris Toshok  <toshok@ximian.com>
15118
15119         * TextBox.cs: remove the explicit assignments to has_focus.
15120         Control does that.
15121
15122         * ButtonBase.cs: remove the assignment to has_focus.  Control will
15123         manage that.
15124         
15125 2006-12-06  Chris Toshok  <toshok@ximian.com>
15126
15127         * ButtonBase.cs: remove all uses of is_enabled from this code.
15128         it's always true when any of the code containing the checks is
15129         executed.
15130
15131 2006-12-06  Chris Toshok  <toshok@ximian.com>
15132
15133         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
15134         with different semantics (some are present in both 1.1 and 2.0
15135         profiles) so that we match MS's behavior in our unit tests.
15136
15137 2006-12-06  Jackson Harper  <jackson@ximian.com>
15138
15139         * TextControl.cs: Make this operation undoable.
15140         * TextBoxBase.cs: Factor the border width into the preferred
15141         height.
15142         - implement Modified as per the spec.
15143
15144 2006-12-06  Chris Toshok  <toshok@ximian.com>
15145
15146         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
15147
15148 2006-12-06  Chris Toshok  <toshok@ximian.com>
15149
15150         * Control.cs: make right_to_left and context_menu fields private.
15151
15152 2006-12-06  Chris Toshok  <toshok@ximian.com>
15153
15154         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
15155         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
15156         Control.child_controls private.  switch all uses over to
15157         Control.Controls.
15158
15159 2006-12-06  Chris Toshok  <toshok@ximian.com>
15160
15161         * System.Windows.Forms/GroupBox.cs,
15162         System.Windows.Forms/AccessibleObject.cs,
15163         System.Windows.Forms/ErrorProvider.cs,
15164         System.Windows.Forms/Control.cs,
15165         System.Windows.Forms/UpDownBase.cs,
15166         System.Windows.Forms/ScrollBar.cs,
15167         System.Windows.Forms/DateTimePicker.cs,
15168         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
15169         System.Windows.Forms/ToolTip.cs,
15170         System.Windows.Forms/RadioButton.cs,
15171         System.Windows.Forms/LinkLabel.cs,
15172         System.Windows.Forms/Splitter.cs,
15173         System.Windows.Forms/TextBoxBase.cs,
15174         System.Windows.Forms/ToolStripTextBox.cs,
15175         System.Windows.Forms/ContainerControl.cs,
15176         System.Windows.Forms/ThemeWin32Classic.cs,
15177         System.Windows.Forms/SizeGrip.cs,
15178         System.Windows.Forms/ToolStripDropDown.cs,
15179         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
15180         private.  switch all uses over to Control.Parent.
15181
15182 2006-12-06  Chris Toshok  <toshok@ximian.com>
15183
15184         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
15185         Control does this before calling emitting these events.
15186
15187         * TabControl.cs: same.
15188
15189         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
15190         Control.client_rect.
15191
15192         * ButtonBase.cs: use the ClientSize property instead of the
15193         client_size field.
15194
15195         * ScrollableControl.cs: same.
15196
15197         * Control.cs: another pass at making properties private.  also,
15198         move the initialization of tab_stop to the ctor.
15199
15200 2006-12-05  Andreia Gaita <avidigal@novell.com>
15201
15202         * TabControl.cs: Let the selected index be set freely if the 
15203         control handle is not yet created.
15204
15205 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
15206
15207         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
15208         internal until I can rewrite DefaultLayout.
15209         * ToolStrip.cs: Fix build error and some general cleaning.
15210         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
15211         Fix build errors caused by making some of Control's fields private.
15212
15213 2006-12-05  Jackson Harper  <jackson@ximian.com>
15214
15215         * TextControl.cs: Redo Insert a little so that it use IndexOf
15216         instead of Split, this prevents it from messing up on things like
15217         \n\n\n. Also more effecient since the split array doesn't need to
15218         be created.
15219         * TextBoxBase.cs: AppendText doesnt handle multiline and non
15220         multiline text differently, this is the first of many fixes that
15221         will make multiline/non-multiline the same thing as far as the
15222         TextBoxBase is concerned.
15223         - Don't split the text and insert lines, this can lose some line
15224         endings (like is the last line a soft or hard break). Instead use
15225         the new Insert.
15226         - Fix an off by one when combining all the lines in the Text
15227         getter.
15228         - Remove separate multiline handling from the Text getter/setter.
15229
15230 2006-12-05  Chris Toshok  <toshok@ximian.com>
15231
15232         * ButtonBase.cs: a few changes:
15233
15234         - don't reinitialize internal Control fields in the ctor when they
15235         have the same values as Control sets them.
15236
15237         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
15238         this before calling those methods.
15239
15240         - we don't need to call Refresh for anything.  use Invalidate
15241         instead.
15242
15243         - OnEnabledChanged doesn't need to redraw at all - Control.cs
15244         calls Refresh in its OnEnabledChanged.
15245         
15246         - several of the events we were registered for in the ctor to
15247         redraw ourselves already include calls to Invalidate in the
15248         property setters that raise the events.  remove the extra
15249         invalidation.
15250
15251         - reformat a switch statement that was 83274658 columns wide.
15252         
15253 2006-12-05  Mike Kestner  <mkestner@novell.com>
15254
15255         * ComboBox.cs: fix a unit test regression from a TextBox
15256         SelectionLength return of -1 when there's no selection.  
15257
15258 2006-12-05  Chris Toshok  <toshok@ximian.com>
15259
15260         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
15261         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
15262         cleaning up some of the internal Control fields being used by
15263         subclasses.
15264
15265 2006-12-05  Mike Kestner  <mkestner@novell.com>
15266
15267         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
15268         listbox after AddImplicit calls since it defaults to hidden. Add a 
15269         hack to preserve requested heights across DropDownStyle changes.
15270
15271 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
15272
15273         * PropertyGrid.cs: Hide FindFirstItem method from public API.
15274
15275 2006-12-05  Chris Toshok  <toshok@ximian.com>
15276
15277         * DataGridView.cs: fix compiler warnings.
15278
15279         * PrintControllerWithStatusDialog.cs: same.
15280
15281         * ToolBar.cs: same.
15282
15283         * FolderBrowserDialog.cs: same.
15284
15285         * Splitter.cs: same.
15286
15287         * DataGridViewComboBoxCell.cs: same.
15288
15289         * XplatUIWin32.cs: same.
15290
15291         * PictureBox.cs: same.
15292
15293         * Win32DnD.cs: same.
15294
15295         * PageSetupDialog.cs: same.
15296
15297         * FileDialog.cs: same.
15298
15299         * PrintDialog.cs: same.
15300
15301         * DataGridTextBoxColumn.cs: same.
15302
15303         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
15304
15305 2006-12-05  Chris Toshok  <toshok@ximian.com>
15306
15307         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
15308         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
15309         System.ComponentModel.EventHandlerList work.
15310
15311 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
15312
15313         * DrawTreeNodeEventArgs.cs: Added.
15314
15315 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15316         
15317         * InternalWindowManager.cs: Remove an unused field.
15318         
15319 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15320
15321         * InternalWindowManager.cs:
15322         - Save the point where the title bar is clicked.
15323         
15324         * MdiWindowManager.cs:
15325         - Only allow moving of the window as long as the 
15326         clicked point on the title bar does not get out of
15327         MdiClient's rectangle. Fixes #79982.
15328         
15329         * MdiClient.cs:
15330         - Added Horizontal/VerticalScrollbarVisible.
15331         - Simplified the scrollbar sizing algorithm.
15332         - Cache the difference in scrolled value in
15333         H/VBarValueChanged and move the calculation out
15334         of the for loop.
15335
15336 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15337
15338         * Control.cs: Make the Console.WriteLine in WndProc 
15339         write more info.
15340
15341 2006-12-05  Chris Toshok  <toshok@ximian.com>
15342
15343         * ToolStripManager.cs, ToolStripButton.cs,
15344         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
15345         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
15346         ToolStripSplitButton.cs, ToolStripSeparator.cs,
15347         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
15348         ToolStripProgressBar.cs, ToolStripContainer.cs,
15349         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
15350         to using System.ComponentModel.EventHandlerList.
15351
15352 2006-12-04  Chris Toshok  <toshok@ximian.com>
15353
15354         * LinkLabel.cs: fix up compiler warnings.
15355
15356         * TableLayoutSettings.cs: same.
15357
15358         * TreeView.cs: same.
15359
15360         * ToolBar.cs: same.
15361
15362         * TabControl.cs: same.
15363
15364         * RichTextBox.cs: same.
15365
15366         * ListViewItem.cs: same.
15367
15368         * PropertyGrid.cs: same.
15369
15370         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
15371
15372         * ToolTip.cs same.
15373
15374         * TextRenderer.cs: fix up compiler warnings.
15375
15376         * Label.cs: same.
15377
15378         * Form.cs: corcompare fixes.
15379
15380         * PictureBox.cs: fix up compiler warnings.
15381
15382         * ImageListStreamer.cs: same.
15383
15384         * TrackBar.cs: corcompare fix.
15385
15386         * Control.cs: fix up compiler warnings.
15387
15388         * SplitterPanel.cs: same.
15389
15390         * NumericTextBox.cs: same.
15391
15392         * ImageList.cs: same.
15393
15394         * StatusStrip.cs: same.
15395
15396         * ProgressBar.cs: corcompare fix.
15397
15398         * ToolStripButton.cs: fix up compiler warnings.
15399
15400         * ToolStripStatusLabel.cs: same.
15401
15402         * ToolStripSplitButton.cs: same.
15403
15404         * ToolStripSeparator.cs: same.
15405
15406         * ToolStripProgressBar.cs: same.
15407
15408         * ToolStripDropDownMenu.cs: same
15409
15410         * ToolStripDropDown.cs: same.
15411
15412         * ToolStripDropDownButton.cs: same.
15413
15414         * ToolStrip.cs: same.
15415
15416         * ToolStripControlHost.cs: same.
15417
15418         * ToolStripContentPanel.cs: same.
15419
15420         * ToolStripDropDown.cs: same.
15421
15422         * ToolStripContainer.cs: same.
15423
15424         * ToolStripPanel.cs: same, and add "new" where we need it to work
15425         with the new ArrangedElementCollection.
15426
15427         * ToolStripItemCollection.cs: add "new" where we need it to work
15428         with the new ArrangedElementCollection.
15429
15430 2006-12-04  Andreia Gaita <avidigal@novell.com>
15431
15432         * TabControl.cs: Fix default tab selection to after TabControl
15433         gets focus and not before. Fixes #80128
15434
15435 2006-12-04  Chris Toshok  <toshok@ximian.com>
15436
15437         * DataGridTableStyle.cs: remove the gross calling of
15438         datagrid.Refresh from here.  It's a broken idea and it doesn't
15439         work anyway.
15440
15441         * DataGrid.cs: instead, just register/unregister from the
15442         DataGridTableStyle events in CurrentTableStyle.  we play it
15443         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
15444         even though some would most likely not require it.  Fixes bug
15445         #80115 (and one portion of #80117 as a side effect).
15446
15447 2006-12-04  Chris Toshok  <toshok@ximian.com>
15448
15449         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
15450         so the textbox (if any) goes away.  Fixes bug #80117.
15451
15452 2006-12-04  Chris Toshok  <toshok@ximian.com>
15453
15454         * DataGridColumnStyle.cs: set the column's readonly property
15455         initially based on the property descriptor's IsReadOnly.  Fixes
15456         bug #80044.
15457
15458 2006-12-04  Chris Toshok  <toshok@ximian.com>
15459
15460         * ComboBox.cs: wrap the dropdown style changing work in
15461         SuspendLayout/ResumeLayout.  Fixes bug #79968.
15462
15463 2006-12-04  Jackson Harper  <jackson@ximian.com>
15464
15465         * TextBoxBase.cs: Fix off by one, since these are one-based.
15466         * TextBox.cs: Select all the text when we get focus.  The TextBox
15467         does this but the RTB does not.
15468
15469 2006-12-04  Chris Toshok  <toshok@ximian.com>
15470
15471         * DataGridTextBoxColumn.cs: remove some spew.
15472
15473         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
15474         but some part of me is saying "it shouldn't be here.."  At any
15475         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
15476         setting the value.
15477
15478 2006-12-04  Chris Toshok  <toshok@ximian.com>
15479
15480         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
15481         to reassign the propertydescriptor.
15482
15483 2006-12-04  Jackson Harper  <jackson@ximian.com>
15484
15485         * TextBoxBase.cs:
15486         * TextControl.cs: Remove some unused variables.  Maybe this will
15487         patch things up between mike and I.
15488         - don't split lines less then one char wide, if the viewport is
15489         that small text won't be visible anyways.
15490         
15491 2006-12-04  Jackson Harper  <jackson@ximian.com>
15492
15493         * TextBoxBase.cs: Default selection length is -1, need to do some
15494         more testing on windows to see when this is used for the property.
15495         - Redid the Lines [] property to that we properly remove soft line
15496         breaks
15497         - added support for preserving carriage returns
15498         -  CanUndo is not a variable like 'is undo enabled' it just returns
15499         true if there is undo operations available.
15500         - AppendText doesn't need to grab the last tag itself anymore,
15501         this happens automatically when we move the cursor.
15502         * TextControl.cs: Add CompoundActions to the undo class. This
15503         allows combining the other operations into one big option.  ie a
15504         paste will combine { delete old, insert new, move cursor }
15505         - Add InsertString undo operation
15506         - New method for deleting multiline text
15507         - Add carriage returns to lines. So we can preserve carriage
15508         returns when text is 'roundtripped'
15509
15510 2006-12-04  Chris Toshok  <toshok@ximian.com>
15511
15512         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
15513         minimum 0.  Fixes the scrollbar exception in bug #80136.
15514
15515 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15516
15517         * MdiClient.cs: 
15518         * MdiWindowManager: Removed unused fields and methods.
15519         
15520 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15521         
15522         * StatusBar.cs: Update all panels when a AutoSize=Contents
15523         panel needs updating.
15524         
15525         * StatusBarPanel.cs: Remove twidth and only use initialize.
15526         Fixes #80031.
15527                 
15528 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15529
15530         * Form.cs: When a form's MdiParent is set add it directly
15531         on top of the z-order in stead of relying on MdiClient's
15532         ActivateChild to do it. Fixes #80135.
15533         
15534         * MdiClient.cs: 
15535         - Remove original_order, mdi_child_list is already doing
15536         the same thing.
15537         - Create mdi_child_list on construction in
15538         stead of first use (avoids a few null checks).
15539
15540         * MenuItem.cs: Use an already existing list of mdi children
15541         to get the correct order of children and remove the other
15542         redundant list.
15543
15544 2006-12-04  Chris Toshok  <toshok@ximian.com>
15545
15546         * PropertyGridView.cs: cached_splitter_location is only used in
15547         !DOUBLEBUFFER code.
15548
15549         * PropertyGrid.cs: implement the ComComponentNameChanged event
15550         using Events, hoping that would fix the warning.  Looks like a
15551         compiler bug instead (#80144).
15552
15553         * PropertyManager.cs: remove unused method.
15554
15555 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
15556
15557         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
15558         include parentesis to fix expression evaluation. Fixes #79634.
15559
15560 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
15561         
15562         * MenuAPI.cs:
15563         - Changes to fix behavior in Menu control, some reported in #80097
15564         and other detected during behavior refactory like a select event
15565         problems.
15566         - Remove unneded "if's" conditions.
15567         - Created an internal to flag when popup is active in control, we need 
15568         it because in .NET you can have menu active but without popup active
15569         when you active menu using popup without visible items.
15570         - Mimic win32 behavior for Select and Popup events.  
15571         - Dont open popup menu when you dont have visible subitems.
15572         - Do nothing when click on disabled menu item.
15573         - Some small changes to follow the coding style guidelines.
15574         - Unselect menu only when another control gives focus. Fixes #80097.
15575         - Remove unused code.
15576         
15577         * MenuItem.cs: internal VisibleItems method to check if menu
15578         theres visible subitems, it will be usefull to fix some 
15579         behavior in Menu control.
15580         
15581 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
15582         
15583         * Timer.cs: Tag property for 2.0 profile.
15584         
15585 2006-12-01  Chris Toshok  <toshok@ximian.com>
15586
15587         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
15588         
15589         * Win32DnD.cs: comment out some unused fields.
15590
15591         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
15592         some unused properties/methods.
15593
15594         * XplatUIX11.cs: fix MousePosition so we override the base class's
15595         property instead of conflicting with it.
15596
15597         * PictureBox.cs: comment out some unused fields
15598
15599         * OSXStructs.cs: make some struct fields public.
15600
15601         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
15602         MousePosition so we override the base class's property instead of
15603         conflicting with it.
15604
15605         * X11Dnd.cs: comment out some unused fields
15606
15607         * X11DesktopColors.cs: fix some struct field visibility to quiet
15608         the compiler.
15609
15610         * X11Dnd.cs: remove some debug code.
15611
15612         * ThemeClearlooks.cs: comment out unused field.
15613
15614         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
15615
15616         * ThemeGtk.cs: comment out some unused pinvokes.
15617
15618         * Timer.cs: remove some unused fields.
15619
15620         * ThemeClearlooks.cs: comment out unused field.
15621
15622         * UpDownBase.cs: comment out unused field.
15623
15624         * DataObject.cs: comment out unused field.
15625
15626         * DataGridBoolColumn.cs: reomve unused field.
15627
15628         * DataGrid.cs: remove unused field.
15629
15630         * Cursor.cs: remove old ToBitmap code.
15631
15632         * ControlPaint.cs: remove unused method.
15633
15634         * ScrollBar.cs: remove unused fields.
15635
15636         * ComboBox.cs: remove unused field, and chain up to
15637         AccessibleObject ctor.
15638
15639         * ListBox.cs: remove unused field.
15640
15641         * ButtonBase.cs: wrap a couple fields in NET_2_0.
15642
15643         * GridEntry.cs: remove unused fields.
15644
15645         * Binding.cs: remove unused fields.
15646
15647         * AxHost.cs: remove unused method.
15648
15649         * ContainerControl.cs: remove unused field.
15650
15651         * ScrollableControl.cs: remove unused fields.
15652
15653 2006-12-01  Chris Toshok  <toshok@ximian.com>
15654
15655         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
15656         the Where/WhereString stuff.  it's easy enough to CWL
15657         Environment.StackTrace.
15658
15659         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
15660         unused private fields.
15661
15662 2006-12-01  Jackson Harper  <jackson@ximian.com>
15663
15664         * TextControl.cs: Do not update the view while inserting multiline
15665         text. If we update the view we might wrap lines, before entering
15666         the new lines, which causes the new line insertion calculations to
15667         be totally fubared.
15668         - Remove an old TODO
15669         - Make debug output a little nicer
15670         
15671 2006-12-01  Chris Toshok  <toshok@ximian.com>
15672
15673         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
15674
15675 2006-12-01  Chris Toshok  <toshok@ximian.com>
15676
15677         [ fix the majority of the CS0108 warnings we've been suppressing ]
15678         
15679         * TreeView.cs: mark BackgroundImageChanged as 'new'.
15680
15681         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
15682         to "LayoutToolBar" to quiet mcs.
15683         
15684         * TabControl.cs: mark our ControlCollection class as 'new'.
15685
15686         * TextBoxBase.cs: mark some events as 'new'.
15687
15688         * Splitter.cs: TabStop is 'new'.
15689
15690         * ControlBindingsCollection.cs: mark a few methods as new since
15691         they change the visibility from protected to public.
15692
15693         * RadioButton.cs: DoubleClick -> base class, and remove unused
15694         HaveDoubleClick.
15695
15696         * MonthCalendar.cs: ImeMode property -> base class, and mark many
15697         events as new.
15698
15699         * NumericUpDown.cs: TextChanged -> base class.
15700
15701         * CheckedListBox.cs: mark our ObjectCollection class as new to
15702         quiet mcs.
15703
15704         * FolderBrowserDialog.cs: make HelpRequest event new and have it
15705         muck with the base class.
15706
15707         * StatusBar.cs: fix some mcs warnings about Update being the same
15708         name as a base class method.
15709
15710         * RichTextBox.cs: mark some events as new, and make them do things
15711         to the base class impl.
15712
15713         * UserControl.cs: mark TextChanged as new, and have it manipulate
15714         base.TextChanged.
15715
15716         * UpDownBase.cs: mark some things new.
15717
15718         * CheckBox.cs: mark DoubleClick "new", and add some text about
15719         what we need to look at.
15720
15721         * Panel.cs: make the events "new", and manipulate the base
15722         version.  these are just here for attributes.
15723
15724         * AccessibleObject.cs: make owner private.
15725
15726         * Control.cs: deal with AccessibleObject.owner being private.
15727         cache our own copy if we need it.
15728
15729         * Button.cs: add "new" to the DoubleClickEvent.
15730
15731         * ListBox.cs: no need to track our own has_focus here.  let
15732         Control.has_focus do it for us.  Also some other work to clear up
15733         warnings about not overriding base class methods of the same name.
15734         
15735         * ComboBox.cs: clear up some warnings about not override base
15736         class methods of the same name.
15737
15738 2006-12-01  Chris Toshok  <toshok@ximian.com>
15739
15740         * Form.cs: flag a few things as "new" to quiet some of the mcs
15741         warnings.
15742
15743         * AxHost.cs: same.
15744
15745         * PrintPreviewDialog.cs: same.
15746
15747         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
15748         now DGV isn't so horrible on the class status page.  also, move
15749         all events to using System.ComponentModel.EventHandlerList.  my
15750         wrists hurt.
15751
15752 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15753
15754         * MdiWindowManager.cs:
15755         - Set form to active mdi child if shown,
15756         and update the active mdi child to the next 
15757         remaining child in the z-order if the form is hidden.
15758
15759         * Form.cs: 
15760         - Track if the form has been visible and if its 
15761         visibility is beeing changed, so that the MdiClient
15762         can properly decide the ActiveMdiChild. The MdiClient 
15763         cannot track this since the form can change visibility 
15764         before MdiClient is created.
15765
15766         * MdiClient.cs:
15767         - Don't activate anything of the parent form is changing
15768         its visibility.
15769         - Rework ActiveMdiChild to only return visible mdi 
15770         children and take into account several other corner 
15771         cases.
15772
15773 2006-12-01  Chris Toshok  <toshok@ximian.com>
15774
15775         * IBindableComponent.cs: new 2.0 interface.
15776
15777 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
15778
15779         * DataGrid.cs: Font for caption area is bold by default.
15780
15781 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
15782
15783         * Menu.cs: Tag property for 2.0.
15784         
15785 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
15786
15787         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
15788         
15789 2006-12-01  Chris Toshok  <toshok@ximian.com>
15790
15791         * TreeView.cs: doh, the Begin* events should be
15792         TreeViewCancelEventHandler.
15793
15794 2006-12-01  Chris Toshok  <toshok@ximian.com>
15795
15796         * Form.cs: Form.ControlCollection already stores off the
15797         form_owner field.  don't access the base class's internal "owner"
15798         field.
15799
15800         * Control.cs: make all the fields in Control.ControlCollection
15801         private.  there's no need for any internal fields here.
15802
15803 2006-12-01  Chris Toshok  <toshok@ximian.com>
15804
15805         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
15806         OnHandleCreated.  Fixes bug #80109.
15807
15808 2006-12-01  Chris Toshok  <toshok@ximian.com>
15809
15810         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
15811         SplitContainer.cs, Control.cs, StatusStrip.cs,
15812         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
15813         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
15814         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
15815         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
15816         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
15817         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
15818         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
15819         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
15820         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
15821         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
15822
15823         do most of the work to convert our code over to use
15824         System.ComponentModel.Component.Events for
15825         adding/removing/dispatching events.
15826
15827
15828 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
15829
15830         * DataGridView.cs: Fix an ArgumentNullException reported 
15831         twice today in IRC.
15832
15833 2006-11-30  Mike Kestner  <mkestner@novell.com>
15834
15835         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
15836         grabbed listbox.  Fixes #80036 and #80101.
15837
15838 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
15839
15840         * Message.cs: Changed ToString() to match MS.
15841         
15842 2006-11-30  Jackson Harper  <jackson@ximian.com>
15843
15844         * TextBoxBase.cs: You can still change the selected text on a read
15845         only textbox.
15846         * TextControl.cs: Lower magic number for wrap calculations. This
15847         lets text get closer to the right (far) edge.
15848
15849 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
15850
15851         * Control.cs: Tweak 2.0 layout properties.
15852         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
15853         * TextRenderer.cs: Add a new overload.
15854         * ToolStrip*: Huge amount of changes and new features.
15855
15856 2006-11-30  Mike Kestner  <mkestner@novell.com>
15857
15858         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
15859         scroll range correct.  Fixes #79994.
15860
15861 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
15862
15863         * MdiWindowManager.cs: Update main form's text when
15864         a form is closed. (fixes #80038)
15865         
15866 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
15867
15868         * ToolBar.cs:
15869         - Fix an regression in ButtonSize.
15870         - Get ImeMode default value change to "Disable".
15871         - Get ShowTooltips default value change to true, default value is 
15872         "false" but after make a test in .NET we get "true" result as default.
15873         
15874 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
15875
15876         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
15877
15878 2006-11-29  Chris Toshok  <toshok@ximian.com>
15879
15880         * XplatUIWin32.cs (GetWindowTransparency): check return value of
15881         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
15882         SetWindowTransparency hasn't been called.
15883
15884 2006-11-29  Chris Toshok  <toshok@ximian.com>
15885
15886         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
15887         if it's supported.
15888         (set_AllowTransparency): reorder things a little so that the
15889         WS_EX_LAYERED style is removed properly.
15890
15891 2006-11-29  Chris Toshok  <toshok@ximian.com>
15892
15893         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
15894         
15895         * Form.cs: only call the XplatUI transparency method (get/set) if
15896         SupportsTransparency says it's supported. Otherwise fallback to
15897         doing nothing (in the set case) or returning the instance field we
15898         cache (in the get case).
15899
15900         * XplatUIStructs.cs: add TransparencySupport flag enum.
15901         
15902         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
15903         change to SupportsTransparency.
15904
15905         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
15906         TransparencySupport.None from SupportsTransparency.
15907
15908         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
15909         TransparencySupport.Set from SupportsTransparency.
15910
15911         * XplatUIWin32.cs: implement GetWindowTransparency calling
15912         GetLayeredWindowAttributes, and implement SupportsTransparency by
15913         checking whether or not both
15914         GetWindowTransparency/SetWindowTransparency are available
15915         entrypoints.  We need to do this since SetWindowTransparency is
15916         available as of win2k, but GetWindowTransparency requires winxp.
15917         yay win32 api.
15918
15919         * XplatUI.cs: Add GetWindowTransparency, and change
15920         SupportsTransparency to allow for either/both Get/Set.
15921
15922 2006-11-29  Chris Toshok  <toshok@ximian.com>
15923
15924         * DataGrid.cs: keep from going into an infinite loop redrawing a
15925         datagrid that has no datasource.  Fixes bug #80033.
15926
15927 2006-11-29  Chris Toshok  <toshok@ximian.com>
15928
15929         * MenuItem.cs: fix the NRE when we assign text (and therefore call
15930         Invalidate) before the mainmenu has been assigned to a control.
15931
15932 2006-11-29  Chris Toshok  <toshok@ximian.com>
15933
15934         * DataGrid.cs: detect when we should be double the double click
15935         row/column autosize stuff, although that codepath has yet to be
15936         written.  part of the work for bug #79891.
15937
15938 2006-11-29  Chris Toshok  <toshok@ximian.com>
15939
15940         * Binding.cs (SetControl): fix unit test.
15941
15942 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15943
15944         * PageSetupDialog.cs: Validate the margins and set them in
15945         PageSettings. 
15946         * NumericTextBox.cs: New class to mimic the behavior of the
15947         textboxes used in the printing dialogs.
15948
15949 2006-11-29  Andreia Gaita  <avidigal@novell.com>
15950         
15951         * Form.cs: Revert previous change (remove call UpdateBounds
15952         from form constructor), because it messes with the handle creation
15953         order, and that one needs lots and lots of love.
15954         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
15955         for valid printer and throw InvalidPrinterException if document
15956         is set but printer not valid), adding a MonoTODO. Once 
15957         handle creation is done properly, we can put this back in.
15958
15959 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
15960
15961         * MenuItem.cs: Create a invalidate method for menu item, to be
15962         calling from set text, it make text changes to imadiate update
15963         on screen. Fixes #80013. 
15964         
15965 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
15966
15967         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
15968         fixes bug #80070 and some other problem on toolbar buttons
15969         layout.
15970
15971 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
15972
15973         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
15974         with dotted brush.      Fixes #79564
15975         
15976 2006-11-28  Andreia Gaita  <avidigal@novell.com>
15977
15978         * Form.cs: Removed call to UpdateBounds on Form
15979         constructor, it was causing a call to CreateHandle
15980         before it was supposed to.
15981         * PrintControllerWithStatusDialog: Applied patch
15982         by Chris Toshok to hide controller when there are
15983         no printers available.
15984         PrintDialog.cs: initialize printer settings to 
15985         null - correct DefaultValues test #5
15986         * PrintPreviewControl.cs: Move PrintController
15987         initialization to GeneratePreview
15988         * PrintPreviewDialog.cs: 
15989         - Remove Preview generation     from Document_set(). It is 
15990         called on OnPaint
15991         - Throw InvalidPrinterException on CreateHandle if
15992         a Document is set but there are no printers or 
15993         printer is not valid.
15994         * ThemeWin32Classic: don't paint PrintPreviewControl
15995         if there is nothing to paint    
15996
15997 2006-11-28  Miguel de Icaza  <miguel@novell.com>
15998
15999         * Form.cs: Add another popular method.
16000
16001         * TabPage.cs: ditto.
16002
16003 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16004
16005         * MenuItem.cs: Fixed a warning.
16006         * InternalWindowManager: Fixed a warning.
16007
16008 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16009
16010         * MenuItem.cs:
16011         - When cloning a menu also clone MdiList and clone the 
16012           window menu items properly (as the forms and menuitems
16013           are kept in an internal hashtable, these need updating 
16014           as well)
16015         - Rewrote the window menu code, menu items are added in the
16016           order the forms were added to their parent, and they are
16017           updated every time the window menu is shown (before the
16018           list was only generated once, in the current order of the
16019           forms, and would never be updated). A checkmark is shown
16020           next to the item corresponding to the active mdi child.
16021
16022 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16023
16024         * XplatUIStructs.cs: 
16025         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
16026         
16027         * XplatUIWin32.cs: 
16028         - Added TME_NONCLIENT to TMEFlags.
16029         - Handles WM_NCMOUSEMOVE in GetMessage to 
16030           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
16031
16032         * MdiWindowManager:
16033         - Now merges mdi child menu to parent menu when maximized.
16034         - Recalculate NC areas of both mdi child and mdi parent. 
16035           Fixes #79757 (4).
16036           on window state and size changes.Fixes #79844 (3).
16037         - Handle WM_NCCALCSIZE to properly calculate borders.
16038
16039         * Form.cs:
16040         - Add/remove to the mdi containers list of mdi children 
16041           in the order they are added.
16042         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
16043           to the maximized mdi child.
16044         
16045         * InternalWindowManager.cs:
16046         - Only execute a click on the control buttons on the mouse up,
16047           not on the mouse down. Show the state of the button 
16048           (was only showing Normal state, never Pressed state). The
16049           pressed button now follows the mouse (if you click the Close 
16050           button and move the mouse over the Maximize button, the 
16051           Maximize button will be shown as pressed). Since Win32 does
16052           not generate WM_NCLBUTTONUP if you release the button outside
16053           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
16054           it as a mouse up.
16055         
16056         * ThemeWin32Classic.cs:
16057         - Draw a missing border around mdi child forms. Fixes #79844 (2).
16058
16059         * MdiClient.cs:
16060         - Added a list of forms which contains the order the forms are
16061           added to the mdi parent.
16062         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
16063         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
16064         - If the active form changes set the scrollbars to the top
16065           of the Z order, otherwise the form could hide them.
16066         - Scrollbars are now sized according to ClientSize, not 
16067           to Size, and they take into account the other scrollbar
16068           to determine maximum.
16069         
16070 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
16071         
16072         * XplatUI.cs:
16073         * XplatUIDriver.cs:
16074         * XplatUIX11.cs:
16075         * XplatUIWin32.cs:
16076         * XplatUIOSX.cs:
16077         - Added RequestAdditionalWM_NCMessages for windows to 
16078           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
16079           Currently only implemented in XplatUIWin32.
16080
16081 2006-11-27  Chris Toshok  <toshok@ximian.com>
16082
16083         * Hwnd.cs: only add the hwnd to the windows hash in
16084         set_WholeWindow and set_ClientWindow if whole_window/client_window
16085         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
16086
16087 2006-11-27  Mike Kestner  <mkestner@novell.com>
16088
16089         * ComboBox.cs: remove redundant OnDropDown call.  It is called
16090         from the ComboListBox.ShowWindow code. Fixes #79969.
16091
16092 2006-11-27  Chris Toshok  <toshok@ximian.com>
16093
16094         * Hwnd.cs: remove the setters for ExposePending and
16095         NCExposePending - noone uses them.
16096
16097 2006-11-27  Jackson Harper  <jackson@ximian.com>
16098
16099         * TextControl.cs: new param for ReplaceSelection which determines
16100         whether we select the new selection, or set the cursor to the end
16101         of the new selection.
16102         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
16103         pasting, select the new text.
16104         * RichTextBox.cs: Use new param for ReplaceSelection.
16105
16106 2006-11-27  Jackson Harper  <jackson@ximian.com>
16107
16108         * TextBoxBase.cs: Set the selection to the caret after the caret
16109         is moved, otherwise they get out of sync.
16110
16111 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
16112
16113         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
16114         it fixes #80015
16115
16116 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
16117
16118         * ThemeWin32Classic.cs: 
16119         - Fix toolbar drop down arrow position.
16120         - Fix drop down appearance when ToolBar.Appearance is normal,
16121         it fixes #80018.
16122         
16123 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
16124
16125         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
16126         * Control.cs: Same.
16127         * UpDownBase.cs: Same.
16128         * ButtonBase.cs: Same.
16129         * ScrollBar.cs: Same.
16130         * TrackBar.cs: Same.
16131         * PictureBox.cs: Same.
16132         * UserControl.cs: Same.
16133         * Label.cs: Same.
16134         * ListControl.cs: Same.
16135         * TextBoxBase.cs: Same.
16136         * ListView.cs: Same.
16137         * RichTextBox.cs: Same.
16138         * TreeView.cs: Same.
16139
16140 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
16141
16142         * PrintDialog.cs:
16143         - Text label for where 
16144         - Text label comment was not shown
16145
16146 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
16147
16148         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
16149
16150 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
16151
16152         * InternalWindowManager.cs: 
16153         - Handle WM_PARENTNOTIFY to activate the form
16154         if any child control is clicked.
16155         - The form is only sizable if not minimized.
16156
16157         * MdiWindowManager.cs:
16158         - Save the IconicBounds if the form is moved.
16159         - Rework SetWindowState, now the window bounds 
16160         are stored only if the old window state is Normal.
16161         
16162         * MdiClient.cs:
16163         - In SetWindowStates store the old window state if 
16164         the window is maximized and restore window state if
16165         the window looses focus.
16166         - Don't handle any scrollbar value changes if 
16167         initializing the scroll bars. Fixes #79771.
16168         - Reworked ArrangeIconicWindows. Current algorithm
16169         tests bounds agains all other minimized windows, if
16170         any intersections create new bounds (going left to 
16171         right, bottom to top) and then test again. When 
16172         successful the bounds are saved and never computed
16173         again. Fixes #79774.
16174
16175 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
16176
16177         * InternalWindowManager.cs: Added HandleTitleBarUp.
16178
16179 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
16180
16181         * NumericUpDown.cs: In .NET 1.1, user entered text is still
16182         hexadecimal in ParseUserEdit.
16183
16184         
16185 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
16186
16187         * MdiWindowManager.cs: 
16188         - Handle a click on the form's icon to show the 
16189         system menu (when maximized). Fixes #79775.
16190         - Change the existing click handler for the form's
16191         icon when not maximized to show on MouseUp.
16192         Fixes #79776.
16193
16194         * Form.cs: In OnResize only layout the mdi child's
16195         parent if it actually has a parent. Might not if
16196         the window is closing.
16197
16198
16199 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
16200
16201         * MdiClient.cs: Ignore active MDI client for text of parent, if
16202         child has no text set.
16203
16204 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
16205
16206         * ToolBar.cs: Fixed ToString to match MS.
16207
16208 2006-11-22  Andreia Gaita  <avidigal@novell.com>
16209
16210         * NumericUpDown: 
16211         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
16212         update inner values on set. Fixes #79966.
16213         - Override OnLostFocus to update value on NET 2. Fixes #79950.
16214         - Fix hexadecimal parsing.
16215         
16216         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
16217         parent. Fixes #79957
16218
16219 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16220
16221         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
16222         the actual size has to be queried, since if height /
16223         width is negative Win32 changes it to 0. 
16224         Fixes #79999 on Windows.
16225         
16226         * XplatUIX11.cs: Set height / width to 0 if negative
16227         in SetWindowPos. Fixes #79999 on Linux.
16228         
16229 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
16230
16231         * ThemeWin32Classic.cs: Fix text redenring when button is
16232         pressed.
16233
16234 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
16235
16236         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
16237         and later navigate by mouse. Fixes #79528.
16238
16239 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
16240
16241         * ToolBar.cs: Set default value for TabStop to false in
16242         constructor, it fixes remaining behavior of bug #79863.
16243
16244 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16245
16246         * MdiWindowManager.cs:
16247         * InternalWindowManager.cs:
16248         - Moved a few methods specific to Mdi from 
16249         InternalWindowManager to MdiWindowManager.
16250         Fixes #79996.
16251         
16252 2006-11-21  Chris Toshok  <toshok@ximian.com>
16253
16254         * XplatUIOSX.cs: stub out InvalidateNC.
16255
16256         * XplatUIWin32.cs: implement InvalidateNC using the call I found
16257         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
16258
16259         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
16260
16261         * XplatUIDriver.cs: add InvalidateNC abstract method.
16262
16263         * XplatUI.cs: add InvalidateNC.
16264
16265 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
16266
16267         * ToolBar.cs: Invalidate complete button area when pressed status 
16268         was changed.
16269         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
16270         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
16271         by 1 when button is pressed.
16272
16273 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
16274
16275         * ToolButton.cs: Invalidate middle of DropDown button when
16276         ToolBar theres DropDownArrows.
16277         * ThemeWin32Classic.cs: Change position of DropDown arrow and
16278         fix DropDown drawing operations.
16279
16280 2006-11-20  Chris Toshok  <toshok@ximian.com>
16281
16282         * NativeWindow.cs: fix the formatting of functions ('{' on the
16283         following line), and enable the thread exception dialog.
16284
16285         * Application.cs: remove the duplicate exception catching from
16286         here.
16287
16288 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
16289
16290         * Toolbar.cs: Triggers button click event when click on icon
16291         of dropdown ToolBarButton. Fixes #79912.
16292         
16293 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16294
16295         * Theme.cs:
16296         * ThemeWin32Classic.cs:
16297         - Added a property WindowBorderFont to enable themeing
16298           of mdi child windows' Text.
16299           
16300 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16301
16302         * InternalWindowManager.cs:
16303         * Form.cs:
16304         * MdiClient.cs:
16305         * MdiWindowManager.cs: 
16306         - If mdi child is maximized, set mdi parent's
16307           text to "Parent - [Child]". Fixes #79770.
16308         - If there is any maximized mdi child windows, only the active 
16309           window (and any new windows) is maximized, the rest are normal.
16310         - On a WindowState change only save mdi child's window bounds 
16311           if the old window state was normal. Fixes #79774.
16312         - The scroll bars are now calculated on hopefully all
16313           necessary events. Fixed #79771 / #79844->6 / #79906.
16314         - MdiClient.SizeScrollBars() now takes into account docked 
16315           controls in the parent when calculating available space.
16316         - InternalWindowManager now always repaints the entire title
16317           area. Fixes #79844->1/4/5.
16318         - Added RequestNCRecalc on mdi child windowstate changes.
16319           Fixes #79772.
16320
16321 2006-11-20  Mike Kestner  <mkestner@novell.com>
16322
16323         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
16324         in the MouseUp handler of the listbox and move the return handling
16325         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
16326
16327 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
16328
16329         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
16330
16331 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
16332
16333         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
16334           working in 1.2.x anymore. So, updated.
16335
16336 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
16337
16338         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
16339         NumberGroupSeparator of current culture instead of assuming en-US.
16340         Fixed bug #79967.
16341
16342 2006-11-17  Mike Kestner  <mkestner@novell.com>
16343
16344         * Control.cs: Add the concept of implicit bounds setting so that
16345         dock/undock round trips preserve explicitly set size/locations.
16346         Fixes #79313.
16347
16348 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
16349
16350         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
16351           can't handle those filters. (Fixes bug #79961)
16352
16353 2006-11-17  Chris Toshok  <toshok@ximian.com>
16354
16355         [ fixes the exit/crashes associated with #79835.  it's clearly
16356         suboptimal though, we need to figure out a better way to solve
16357         this. ]
16358         
16359         * PrintPreviewControl.cs: deal with the new invalid printer
16360         exceptions.
16361
16362         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
16363         and return false (so CommonDialog.ShowDialog doesn't actually show
16364         the form.)
16365
16366         * PrintDialog.cs: enable/disable the Ok button depending on
16367         whether or not the printer is valid.
16368
16369         * CommonDialog.cs (ShowDialog): only actually show the form if
16370         RunDialog returns true.
16371
16372 2006-11-17  Jackson Harper  <jackson@ximian.com>
16373
16374         * TextControl.cs: When soft splitting a line, mark it as a soft
16375         split line. Also carry over the current line break to the next
16376         line.
16377
16378 2006-11-17  Chris Toshok  <toshok@ximian.com>
16379
16380         * XplatUIX11.cs: when scrolling a window with an invalid area, we
16381         only want to shift the part of the invalid area that overlaps the
16382         area we're scrolling.  we also don't want to clear the invalid
16383         area unless the invalid area was entirely contained within the
16384         scrolling area.
16385
16386 2006-11-16  Chris Toshok  <toshok@ximian.com>
16387
16388         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
16389         also make sure to free the memory returned by XGetWindowProperty
16390         in GetText().
16391
16392         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
16393
16394 2006-11-16  Chris Toshok  <toshok@ximian.com>
16395
16396         * XplatUI.cs: add a new super secret way to get at the totally
16397         unsupported X11 backend.
16398
16399 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
16400
16401         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
16402
16403 2006-11-16  Jackson Harper  <jackson@ximian.com>
16404
16405         * TreeView.cs: Allow more explicit setting of top node position
16406         for scrollbars. Slower algo, but more accurate.
16407         - CollapseAll should maintain the current top node.
16408         * TextBoxBase.cs: When positioning the caret, use the line, pos
16409         method, since the x, y method does not grab the correct tag, and
16410         the caret height never gets set correctly. (Maybe I should just do
16411         away with the caret having its own height, and always use the
16412         carets current tag for height).
16413
16414 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
16415
16416         [Fixes 79778, 79923]
16417
16418         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
16419         Parent to the FosterParent instead.
16420
16421 2006-11-16  Jackson Harper  <jackson@ximian.com>
16422
16423         * TreeView.cs: Need to recalc the topnode when we expand or
16424         collapse. The scrolling methods can't handle this on their own,
16425         since they use differences between the last scroll position, and
16426         those difference get completely messed up since we are expanding
16427         nodes.  This problem should probably be fixed in the scrolling
16428         methods, so they can figure out exactly where they are, but this
16429         will slow things down a little.
16430         * ThemeWin32Classic.cs: Special case for groupboxes with empty
16431         strings, makes nunit-gui look a lot nicer.
16432
16433 2006-11-16  Chris Toshok  <toshok@ximian.com>
16434
16435         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
16436         the broken multithreaded event handling we have in here.  File
16437         this entry under "Why we should move to the new X11 backend".
16438
16439         Any thread can make it into UpdateMessageQueue, which gets events
16440         from the X socket - some of which could belong to hwnds being
16441         managed by a different thread.  We can also have multiple threads
16442         in UpdateMessageQueue at the same time, with each one reading from
16443         the X socket.  This leads to many problems, with the following
16444         solutions:
16445
16446         We can't use hwnd.Queue.Enqueue anywhere in here and must use
16447         EnqueueLocked.
16448
16449         The MotionNotify compression we do can't work across threads
16450         (without locking the entire queue, perhaps) since we call
16451         hwnd.Queue.Peek, so we just punt and don't compress motion events
16452         unless the owning thread is the one which got the X event.
16453
16454         ConfigureNotify is another fun one, since it modifies the hwnd's
16455         bounds and then enqueues the event.  We add a lock to Hwnd which
16456         is held when setting configure_pending to true (and enqueuing the
16457         event).
16458
16459         There is a race wrt the wake socket.  we need to make sure that
16460         only 1 thread is waiting on that socket, or else a thread could
16461         sleep waiting for data that never comes.  It's difficult (but not
16462         impossible) to make happen, because it seems to require something
16463         like the following:
16464
16465             1. Thread 1 polls on wake_receive
16466         
16467             2. poll returns saying there's data to be read on
16468                wake_receive.
16469         
16470             3. Thread 2 polls on wake_receive and immediately returns
16471                saying there's data to be read.
16472
16473             4. Thread 2 reads the wakeup byte from wake_receive
16474
16475             5. Thread 1 attempts to read the wakeup byte from
16476                wake_receive.
16477
16478             6. Thread 2 exits (due to a form closing, perhaps).
16479
16480             7. Thread 1 blocks forever.
16481         
16482         Fun, eh?
16483
16484         Fixing the Expose handling isn't done yet, and the races inherent
16485         in that piece of code are responsible for the drawing mistakes you
16486         see when generating expose events in a MT app (like NPlot).  This
16487         one is the likely to be the hardest to bandaid, and it doesn't
16488         appear to cause anything but drawing problems.  The other issues
16489         caused apps to exit or hang.
16490
16491         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
16492         called from a different thread than the one that should be calling
16493         these functions.
16494
16495         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
16496
16497 2006-11-15  Chris Toshok  <toshok@ximian.com>
16498
16499         * Application.cs: null out the context's MainForm when we exit
16500         RunLoop.  Fixes a newly checked in unit test as well as the last
16501         ODE from bug #79933.
16502
16503 2006-11-15  Chris Toshok  <toshok@ximian.com>
16504
16505         * Form.cs (set_Owner): allow a null value so we can clear the
16506         form's owner.
16507         (Dispose): set all our owned_form's Owner properties to null, and
16508         clear the owned_forms collection.
16509         (WM_CLOSE): clean up this a little bit.. still not right though.
16510
16511         * ApplicationContext.cs: OnMainFormClosed should only call
16512         ExitThreadCore if the main form isn't recreating.  Fixes unit
16513         test.
16514
16515 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
16516
16517         [Fixes 78346]
16518
16519         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
16520
16521 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
16522
16523         [Fixes 79433]
16524
16525         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
16526         keep popup window types from stealing focus from the main form
16527         on Windows.
16528
16529         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
16530
16531         * MenuAPI.cs: Set above flag to true.
16532
16533 2006-11-15  Chris Toshok  <toshok@ximian.com>
16534
16535         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
16536         the button being released is not in wParam.
16537
16538 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
16539
16540         * Form.cs: Add the released button to MouseEventArgs.Button
16541         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
16542         on Win32.
16543
16544 2006-11-15  Chris Toshok  <toshok@ximian.com>
16545
16546         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
16547         GetText().  untested because it's unused in our implementation.
16548         Control.Text always caches the text, even if
16549         ControlStyles.CacheText is not set.
16550
16551         fixes bug #79939.
16552
16553 2006-11-15  Chris Toshok  <toshok@ximian.com>
16554
16555         [ fixes #79933 ]
16556         
16557         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
16558         message.  no hiding, no disposing.
16559
16560         in the WM_CLOSE handler, hide the form if it's modal.
16561
16562 2006-11-15  Chris Toshok  <toshok@ximian.com>
16563
16564         * XplatUIX11.cs: use AddExpose instead of sending a message.
16565         fixes textbox border drawing.
16566
16567 2006-11-15  Chris Toshok  <toshok@ximian.com>
16568
16569         * PropertyGridView.cs: keep from crashing on mouse move/down when
16570         the property grid is empty.
16571
16572 2006-11-14  Jackson Harper  <jackson@ximian.com>
16573
16574         * TextControl.cs: Make PageUp and PageDown more like the MS
16575         versions.
16576         * TextBoxBase.cs: When we set the text property position the
16577         cursor at the beginning of the document.
16578
16579 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16580
16581         * Form.cs: if a mdi child's WindowState has changed
16582         before it's creation, it would display wrong control
16583         buttons.
16584         
16585 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
16586
16587         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
16588           (Fixes bug #79927)
16589
16590 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16591
16592         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
16593         the window gets to paint its borders even if the window is
16594         getting smaller.
16595         
16596         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
16597         otherwise the old control buttons would still be painted 
16598         if the window gets bigger.
16599         
16600         * PaintEventArgs.cs: add an internal method so that the clip 
16601         rectangle can be changed.
16602         
16603 2006-11-13  Chris Toshok  <toshok@ximian.com>
16604
16605         [ fixes bug #79745 ]
16606         
16607         * NotifyIcon.cs: lots of cleanup.
16608
16609         * X11Structs.cs: add an enum for XEMBED messages.
16610
16611         * XplatUIX11.cs: reindent one of the giant switch statements, it
16612         was taking up an additional tab stop, and this file is already way
16613         too wide for my laptop's screen.
16614
16615         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
16616         we get it, resize the hwnd to the WMNormalHints max_width/height.
16617
16618 2006-11-13  Jackson Harper  <jackson@ximian.com>
16619
16620         * TextBoxBase.cs: Compute the value changes for the mouse wheel
16621         teh simple way.
16622
16623 2006-11-13  Chris Toshok  <toshok@ximian.com>
16624
16625         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
16626         #79898.  force a reference to the Region to stick around so the
16627         unmanaged object isn't collected (rendering our handle in the MSG
16628         stale).
16629
16630 2006-11-13  Chris Toshok  <toshok@ximian.com>
16631
16632         * XplatUIX11.cs: fix #79917 for window managers which support
16633
16634         using XStoreName on the raw utf8, and we need to convert to
16635         COMPOUND_TEXT if it's non-latin1.
16636
16637 2006-11-13  Chris Toshok  <toshok@ximian.com>
16638
16639         * Form.cs (set_DialogResult): we need to set closing to false if
16640         we're setting our result to None.  fixes bug #79908.
16641
16642 2006-11-13  Jackson Harper  <jackson@ximian.com>
16643
16644         * TextControl.cs: When formatting text, compute the adjusted tag
16645         lengths correctly, using FindTag for the end tag instead of trying
16646         to figure it out outselves.
16647         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
16648         the item, ItemHeight doesn't work, because trees with large
16649         imagelists use those for their height
16650         * TreeView.cs: ActualItemHeight factors in the image height
16651         - compute left edge of checkboxes correctly
16652         - when expanding/collapsing move the bottom down one pixel, so we
16653         aren't moving part of the node
16654
16655 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16656
16657         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
16658         stack in PaintEventStart so that it won't get disposed by the gc
16659         before reaching PaintEventEnd.
16660
16661 2006-11-13  Jackson Harper  <jackson@ximian.com>
16662
16663         * TextBoxBase.cs: Don't select the word if we are on a line with
16664         no text.
16665         - We don't need to position the caret on mouse up, since the mouse
16666         move handler should be doing this
16667         - When double clicking a blank line, the caret is advanced to the
16668         next line.
16669
16670 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
16671
16672         * TreeNodeCollection.cs: Avoid duplicating indexer code.
16673
16674 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
16675
16676         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
16677         Fixes part of bug #79910.
16678
16679 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
16680
16681         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
16682           (bug #79903). Some minor string updates to match ms.
16683
16684 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
16685
16686         * FileDialog.cs: Don't add an extension if the filename
16687           already ends with that extension.
16688
16689 2006-11-10  Jackson Harper  <jackson@ximian.com>
16690
16691         * TreeView.cs: Use the currently highlighted node for the
16692         BeforeSelect event.
16693         * TextBoxBase.cs: There is no need to expand selection on
16694         MouseMove.
16695         - CanUndo means 'is there any undo operations', not 'is undo
16696         allowed on this textcontrol. Fixed ClearUndo unit test.
16697
16698 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
16699
16700         * Button.cs: only perform click when button is Selectable (so as 
16701         not to activate default buttons when they're disabled)
16702         
16703         * Control.cs: Rewrite of the SelectNextControl and related 
16704         methods. HandleClick now selects next control if the current one
16705         is being disabled.
16706         
16707         * Form.cs: OnActivated selects next active control only if Load 
16708         has already occurred. If Load hasn't run, there's no point in 
16709         selecting here, Load might change the state of controls.
16710         
16711         * FocusTest.cs: Tests marked as working again for these fixes
16712
16713 2006-11-10  Chris Toshok  <toshok@ximian.com>
16714
16715         * XplatUIX11.cs: a couple of fixes.
16716
16717         - use XInternAtoms with almost all the atoms we need to register,
16718         instead of many, many calls to XInternAtom.  should help a bit on
16719         startup time, at the expense of making the code look a little
16720         worse.
16721
16722         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
16723         isn't reparented (which seems to be a clue that we're running fon
16724         compiz) and they have an Owner form.  This fixes the tool windows
16725         in paint.net when running under compiz.
16726
16727         - when setting the opacity of a window, support both the case
16728         where the window has been reparented and also when it hasn't been.
16729         Since compiz/beryl doesn't seem to reparent windows, and these are
16730         the only window managers which support translucency, I'm not sure
16731         why we need the hwnd.reparented case at all.. but leave it in.
16732         now we get translucent windows in paint.net under compiz/beryl.
16733
16734 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
16735
16736         * FileDialog.cs: Always return the value for FilterIndex that
16737           was set. Internally convert it to values that make sense.
16738
16739 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
16740         
16741         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
16742
16743 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
16744
16745         * Toolbar.cs: Change default value of DropDownArrows to true, the 
16746         signature still using false to make it compatible with MS but the 
16747         initial value is true. Fixes #79855.
16748
16749 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
16750
16751         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
16752           only available on Linux.
16753
16754 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
16755
16756         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
16757         reduce number of calls to redraw method during toolbar creation.
16758
16759 2006-11-09  Mike Kestner  <mkestner@novell.com>
16760
16761         * ListView.cs : raise SelectedIndexChanged when an item is selected
16762         programmatically via the Item.Selected property.  Gert's nice 
16763         ListViewSelectedIndexChanged test fixture now runs clean.
16764
16765 2006-11-09  Mike Kestner  <mkestner@novell.com>
16766
16767         * ListView.cs : raise SelectedIndexChanged when a selected item is
16768         removed from the item collection using Remove or RemoveAt.
16769
16770 2006-11-09  Mike Kestner  <mkestner@novell.com>
16771
16772         * ListView.cs : raise SelectedIndexChanged once per selected item
16773         for compat with MS.  Fixes #79849+.
16774
16775 2006-11-09  Chris Toshok  <toshok@ximian.com>
16776
16777         * TabControl.cs: initialize row_count to 0, and set it to 1 when
16778         we need to (if we have any tab pages).  Fixes unit test.
16779
16780 2006-11-09  Chris Toshok  <toshok@ximian.com>
16781
16782         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
16783         width is 0, not 3.  Fixes a unit test.
16784
16785 2006-11-09  Mike Kestner  <mkestner@novell.com>
16786
16787         * ListView.cs : use Implicit scrollbars so that focus isn't 
16788         stolen from the listview when they are clicked. Fixes #79850.
16789
16790 2006-11-09  Chris Toshok  <toshok@ximian.com>
16791
16792         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
16793         have a root item.  Fixes #79879.
16794
16795 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
16796
16797         * FileDialog.cs:
16798           - Fix ToString ()
16799           - An ArgumentException is now thrown if a wrong filter
16800             is applied (matches ms). The previous filter doesn't change
16801             anymore if an exception is thrown.
16802           - Changing the FileName property also affects FileNames
16803         * ColorDialog.cs: The length of the CustomColors array is always
16804           16. It doesn't matter if we use a smaller array or null to update
16805           or change the custom colors property.
16806         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
16807           for RootFolder if we get a undefined value.
16808
16809 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16810
16811         * StatusBarPanel.cs: 
16812         - Width is set to MinWidth if Width is smaller than
16813         MinWidth. Fixes #79842.
16814         - MinWidth now always overrides Width (MSDN says MinWidth
16815         is set to Width when AutoSize = None, but they do not 
16816         behave like that).
16817         - Style has now the the correct default value.
16818         
16819 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16820  
16821         * TrackBar.cs: 
16822         - The control is completely invalidated on 
16823         Got/LostFocus to draw the focus rectangle correctly.
16824         - When AutoSize then height is always 45 (width for 
16825         vertical controls).
16826         
16827         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
16828         on the mouse when moved and it doesn't move when grabbed
16829         until the mouse moves as well. Also fixed some wrong 
16830         calculations when clicking on the thumb (control thought
16831         click was outside of thumb and didn't grab it).
16832         Fixes some of the issues in #79718.
16833
16834 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
16835
16836         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
16837
16838 2006-11-08  Chris Toshok  <toshok@ximian.com>
16839
16840         * PropertyGridView.cs: only call ToggleValue if the item is not
16841         readonly.
16842
16843 2006-11-08  Jackson Harper  <jackson@ximian.com>
16844
16845         * TextBoxBase.cs: The RichTextBox and textbox have very different
16846         word selection methods.  Implement the textbox's simple word
16847         selection here, and let the RichTextBox override and provide it's
16848         own.
16849         - Don't do extra selection on mouseup
16850         * RichTextBox.cs: Use the documents word selection algorithm, I
16851         think ideally, this function will be pulled into the
16852         RichTextBox.cs code someday.
16853
16854 2006-11-08  Chris Toshok  <toshok@ximian.com>
16855
16856         * RootGridEntry.cs: new class to represent GridItemType.Root.
16857
16858         * CategoryGridEntry.cs: reformat, and add boilerplate.
16859         
16860         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
16861         returns the UI parent anyway, and we need special handling to
16862         implement the GetTarget method in the face of it.  Also, implement
16863         Select().
16864
16865         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
16866         a root grid item, and use that instead of PropertyGrid.grid_items.
16867         Also, make use of TypeConverters (and add limitted support for
16868         ICustomTypeDescriptors) when initially populating the grid.
16869         Arrays now show up more or less properly.
16870
16871 2006-11-08  Chris Toshok  <toshok@ximian.com>
16872
16873         * Application.cs: set the modal dialog to non modal after we close
16874         it.  Fixes bug #79866.
16875
16876 2006-11-08  Jackson Harper  <jackson@ximian.com>
16877
16878         * TextControl.cs: When combining lines carry over the line end
16879         style from the end line.
16880         - Invalidate the selected area when setting it, if it is visible.
16881         * TextBoxBase.cs: Only rich text box can do full line selects.
16882         - Make sure to set the cursor position when there is a click,
16883         otherwise two clicks in separate areas could cause a large chunk
16884         to be selected.
16885
16886 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
16887
16888         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
16889         Fixes #79863.
16890
16891 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
16892
16893         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
16894         time. Remove tooltips when ToolButton click events.  Fixes #79856.
16895
16896 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
16897
16898         * MenuAPI.cs: Ignore right click for menu actions and fixes
16899         menu border when clicked.  Fixes #79846.
16900
16901 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
16902
16903         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
16904         MouseState after create wParam for message, this fixes mouse button 
16905         equal none in mouse up events.
16906         
16907 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
16908
16909         * Control.cs : Focus() now calls Select to set the Container's
16910         Active Control and to give it focus. To avoid infinite recursion
16911         (because ActiveControl also calls Focus at one point), a check 
16912         is made in Focus with the help of a new internal variable
16913         is_focusing.
16914
16915 2006-11-07  Mike Kestner  <mkestner@novell.com>
16916
16917         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
16918         if there's a selection.  Fixes #79849.
16919
16920 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
16921
16922         * PropertyGrid.cs: Avoid fixed height of help description label.
16923         Fixes part of bug #79829.
16924
16925 2006-11-07  Chris Toshok  <toshok@ximian.com>
16926
16927         * XplatUIX11.cs: fix #79790 again, by using the
16928         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
16929
16930 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
16931
16932         * ToolBar.cs: Fix left click checking.
16933
16934 2006-11-07  Chris Toshok  <toshok@ximian.com>
16935
16936         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
16937
16938 2006-11-07  Chris Toshok  <toshok@ximian.com>
16939
16940         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
16941         PropertyManager unit tests.
16942
16943         * PropertyManager.cs: make property_name internal.
16944
16945 2006-11-07  Chris Toshok  <toshok@ximian.com>
16946
16947         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
16948         pass a unit test.  Also, don't set image_index to anything in
16949         response to setting the ImageList property.
16950
16951 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
16952
16953         * ToolBar.cs: Ignore click events when mouse button is not a
16954         left button, only accepts other button for dropdown menus.  
16955         Fixes #79854.
16956
16957 2006-11-07  Chris Toshok  <toshok@ximian.com>
16958
16959         * DataGrid.cs: make the back and parent row buttons a little less
16960         ugly.
16961
16962 2006-11-07  Jackson Harper  <jackson@ximian.com>
16963
16964         * TextBoxBase.cs: When converting to Text don't put line breaks in
16965         for soft line breaks.
16966         * TextControl.cs: There is an initial "fake" line in the document,
16967         this is now a soft break line, so that an extra line feed doesn't
16968         get added to the end of documents.
16969
16970 2006-11-07  Chris Toshok  <toshok@ximian.com>
16971
16972         [ fix bug #79778 ]
16973         
16974         * CurrencyManager.cs: if the list is readonly, don't bother
16975         checking if IBindingList.AllowNew is true.
16976
16977         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
16978         for non-DataRowView datasources..  or rather, make it not crash.
16979         (DataGridPaintRelationRow): make sure we limit the row painting to
16980         the area not covered by the row header, and make our cell width at
16981         least large enough to cover the relation area.  This allows grids
16982         that have relations but no rows to render correctly.
16983         (DataGridPaintRowContents): same type of changes here.
16984         (SetDataSource): move back to always calling
16985         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
16986         navigating back through relations.
16987         (HitTest): handle the case where we have no cells but have
16988         relations.  Right now we generate a hit in cell 0 of whatever the
16989         row is, not sure if this is strictly correct, but it works for our
16990         purposes.
16991         
16992         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
16993         bother doing anything.
16994
16995 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
16996
16997         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
16998         early version of StatusStrip.  Not responsible for eaten
16999         application or firstborn children.
17000
17001 2006-11-06  Chris Toshok  <toshok@ximian.com>
17002
17003         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
17004         call GetTabRect with a -1 index.  Fixes #79847.
17005
17006 2006-11-06  Jackson Harper  <jackson@ximian.com>
17007
17008         * TreeNodeCollection.cs: Update scrollbars after clearing.
17009
17010 2006-11-06  Chris Toshok  <toshok@ximian.com>
17011
17012         * NumericUpDown.cs: fix the ToString method for some unit test
17013         love.
17014
17015 2006-11-06  Chris Toshok  <toshok@ximian.com>
17016
17017         * PropertyGrid.cs:
17018         - set the initial SelectedGridItem if we can.
17019
17020         - Exclude non-mergable properties only if we're merging > 1
17021         object.  Merging 1 object isn't really merging, obviously.
17022
17023         - Handle PropertySort.NoSort just like Alphabetical, which is
17024         wrong of course, but at least gets things on the screen.
17025         
17026         * PropertyGridView.cs:
17027         - Add method "FindFirstItem" which finds the first property grid
17028         item, so we can select it by default.
17029
17030         - make use of GridEntry.CanResetValue.
17031
17032         - Don't call RedrawBelowItemOnExpansion here anymore, the
17033         individual GridEntry's will do that.
17034
17035         - Remove the ITypeDescriptorContextImpl internal class.
17036         
17037         * GridEntry.cs:
17038         - this class needs to implement ITypeDescriptorContext, as it's
17039         what MS's PropertyDescriptorGridEntry does, which means we can
17040         remove the ITypeDescriptorContextImpl internal class from
17041         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
17042
17043         - keep a reference to our PropertyGridView, and move the call to
17044         RedrawBelowItemOnExpansion here from PGV.  This means
17045         programmaticly setting Expanded actually does something visible.
17046
17047         - add a CanResetValue() function which takes into account our
17048         possibly multiple "selected_objects" in the merged case.  Shifting
17049         PropertyGridView to use this method fixes another unreported
17050         crasher found running the test for #79829.
17051
17052         - when Top or Bounds is updated, make sure the PropertyGridTextBox
17053         is updated to reflect this.
17054
17055         * CategoryGridEntry.cs: the ctor takes the PGV now.
17056         
17057 2006-11-06  Jackson Harper  <jackson@ximian.com>
17058
17059         * TextControl.cs: These are 1 based.
17060         * TextBoxBase.cs: When setting the selected text, don't change the
17061         selected text tags, this is done by ReplaceText, just position the
17062         cursor at the end of the new text.
17063
17064 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
17065
17066         * ListView.cs: Allow label edit only when, when LabelEdit is
17067           set to true.
17068
17069 2006-11-06  Jackson Harper  <jackson@ximian.com>
17070
17071         * TextControl.cs: If a suitable wrapping position isn't found,
17072         just wrap right in the middle of a word.
17073
17074 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
17075
17076         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
17077           bug #79820.
17078
17079 2006-11-06  Jackson Harper  <jackson@ximian.com>
17080
17081         * TreeView.cs: Can't use the VisibleCount property when setting
17082         scrollbar heights, because this doesn't take into account whether
17083         or not the horz scrollbar just came visible.
17084
17085 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
17086
17087         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
17088         activated.  Fixes #79369, #79832.
17089
17090 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
17091
17092         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
17093           had to remove support for links that point to a directory. FileInfo
17094           returns no usefull information (means, the directory they point to)
17095           for such links. Replaced some empty string ("") with String.Empty.
17096
17097 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
17098
17099         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
17100         NullReferenceException when attempting to remove node that is not in
17101         collection. Throw NullReferenceException when null is passed to 
17102         Remove. Allow first element of the collection to be removed. Fixes
17103         bug #79831.  In GetEnumerator ().Current return null if positioned 
17104         before the first element of the collection. In GetEnumerator ().Reset,
17105         position before first element of the collection.
17106
17107 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
17108
17109         * PropertyGrid.cs: To match MS, remove default title and description
17110         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
17111         buttons.
17112
17113 2006-11-04  Chris Toshok  <toshok@ximian.com>
17114
17115         * Theme.cs: add a Clamp method, just for kicks.
17116
17117         * ThemeWin32Classic.cs: clamp all color components to [0..255].
17118
17119 2006-11-04  Chris Toshok  <toshok@ximian.com>
17120
17121         * Form.cs: if the form isn't visible, Close() does nothing.
17122
17123 2006-11-03  Chris Toshok  <toshok@ximian.com>
17124
17125         * Form.cs (Close): if the form is modal, don't Dispose of it, only
17126         Hide it.
17127         (WndProc): don't Dispose after handling the WM_CLOSE message.
17128
17129         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
17130         them as such, instead of using casts from Control to Form.  Also,
17131         don't Dispose of the modal dialog when we fall out of the loop -
17132         Close() it instead.
17133
17134         fixes bug #79813.
17135
17136 2006-11-03  Chris Toshok  <toshok@ximian.com>
17137
17138         * Control.cs (Dispose): only go through the dispose thing if we're
17139         @disposing, and we haven't already been disposed.  Fixes bug
17140         #79814.
17141
17142         * Form.cs: no reason to call "base.Dispose()" here instead of
17143         "Dispose()".
17144
17145 2006-11-03  Mike Kestner  <mkestner@novell.com>
17146
17147         * ComboBox.cs : use ToString instead of casts in AddItem for
17148         sorting functionality.  Fixes #79812.
17149
17150 2006-11-03  Chris Toshok  <toshok@ximian.com>
17151
17152         * Application.cs: pave the way for actually using the thread
17153         exception dialog.  it's ifdefed out at the moment.
17154
17155 2006-11-03  Chris Toshok  <toshok@ximian.com>
17156
17157         * ThreadExceptionDialog.cs: until we get a better layout, actually
17158         hide the details textbox and label when we shouldn't see them.
17159
17160 2006-11-03  Jackson Harper  <jackson@ximian.com>
17161
17162         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
17163         multiline textboxes anymore.  This method also determines the
17164         width/height of a textboxes canvas area.
17165         - Sorta a revert of the last patch.  For multiline just position
17166         the controls, then bail.  This way the scrollbar width won't be
17167         altered.
17168
17169 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
17170
17171         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
17172         it dont need.  Fixes #79537.
17173
17174 2006-11-02  Jackson Harper  <jackson@ximian.com>
17175
17176         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
17177         send the status after firing the DndOver event.
17178
17179 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17180
17181         * TrackBar.cs: Now orientation only switches height / width if
17182         the control's handle is created (Win32 does it like this). Also 
17183         fixed a typo in ToString() for a test to pass, changed the 
17184         exception thrown in set_LargeChange and set_SmallChange to 
17185         match Win32 behaviour, and added TrackBar tests to the unit 
17186         tests.
17187
17188 2006-11-02  Chris Toshok  <toshok@ximian.com>
17189
17190         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
17191         not _NET_WM_STATE_NO_TASKBAR.
17192
17193 2006-11-02  Jackson Harper  <jackson@ximian.com>
17194
17195         * TextControl.cs: Increment count by one, since in the update view
17196         count - 1 is used.
17197
17198 2006-11-02  Jackson Harper  <jackson@ximian.com>
17199
17200         * TextBoxBase.cs: Use client rectangle not bounds for checking if
17201         the mouse is in the client rectangle (duh).
17202
17203 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17204         
17205         * TrackBar.cs: Fixed trackbar jumping around when clicking
17206         on it - the trackbar was not detecting correctly at which
17207         side of the thumb the click was done. (fixes #79718)
17208
17209 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
17210
17211         * ListBox.cs: scroll visible area when change SelectedIndex to
17212         a non visible area.  Fixes #79481.
17213
17214 2006-11-01  Jackson Harper  <jackson@ximian.com>
17215
17216         * TextControl.cs: When replacing the selection move the selection
17217         start/end/anchor to the end of the new text.
17218
17219 2006-11-01  Jackson Harper  <jackson@ximian.com>
17220
17221         * XplatUIWin32.cs: When setting the parent change the controls
17222         visibility to it's visibility flag, not to it's old parents
17223         visibility (.Visible walks the parent chain).
17224
17225 2006-11-01  Chris Toshok  <toshok@ximian.com>
17226
17227         * XplatUIX11.cs: revert the #79790 fix, as the simple.
17228         XSetTransientForHint fix breaks paint .net's tool windows.  more
17229         work needed for that one.
17230
17231 2006-11-01  Chris Toshok  <toshok@ximian.com>
17232
17233         * ScrollBar.cs: throw ArgumentException instead of Exception in
17234         LargeChange/SmallChange setters.  fixes unit tests.
17235
17236 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
17237
17238         * ContainerControl.cs: reverted rev.67183 (which was itself
17239         a reversion of rev.66853... eh).
17240         
17241         * Control.cs: Fixes Reflector hang by changing Focus() call
17242         to what it was before rev.66643 (calling Select() here sets 
17243         ActiveControl, which in some situations calls back Focus and 
17244         eventually does a stack overflow). Temp fix.    
17245         Changes to GetNextControl() to not look for children to select when
17246         parent cannot be selectable (so it looks for siblings instead)  
17247         
17248 2006-10-31  Mike Kestner  <mkestner@novell.com>
17249
17250         * CheckedListBox.cs : off by one error in returned index from
17251         ObjectCollection.Add.  Fixes #79758.
17252
17253 2006-10-31  Chris Toshok  <toshok@ximian.com>
17254
17255         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
17256         calls for the textbox/spinner, to keep from recursing to the point
17257         where we crash.  Fixes #79760.
17258
17259 2006-10-31  Chris Toshok  <toshok@ximian.com>
17260
17261         * ListControl.cs (set_SelectedValue): don't throw exceptions on
17262         null/"" value, just return.  matches ms's behavior and fixes some
17263         failing tests.
17264
17265 2006-10-31  Chris Toshok  <toshok@ximian.com>
17266
17267         * Control.cs (set_Capture): make a logic a little easier to
17268         follow.
17269
17270         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
17271         if it's being destroyed.  A necessary fix surely, but a bandaid
17272         also, to fix the stuck capture problem in bug #78413.
17273
17274 2006-10-31  Chris Toshok  <toshok@ximian.com>
17275
17276         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
17277         convention of clearing hwnd.ClientRect when we set the
17278         width/height (so it'll be recalculated by Hwnd).
17279
17280 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
17281
17282         * ContainerControl.cs: reversed Contains check from
17283         ActiveControl due to hanging problems. This fix
17284         partly regresses #79667 (button does not have
17285         initial focus), so this might be a symptom for 
17286         a larger parenting problem (set_ActiveControl
17287         is being called but the child control does
17288         not have the parent set yet?)   
17289         
17290 2006-10-31  Mike Kestner  <mkestner@novell.com>
17291
17292         * MenuAPI.cs : fix keynav when menu is click activated.
17293
17294 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
17295
17296         * ToolStrip*: Version 0.2.
17297
17298         * MenuStrip.cs: Version 0.1.
17299
17300         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
17301
17302 2006-10-30  Chris Toshok  <toshok@ximian.com>
17303
17304         [ fixes the oversized notify icon issue in bug #79745 ]
17305         
17306         * NotifyIcon.cs: scale the icon down to the size we're given by
17307         the XplatUI layer (this would be faster if we did it once instead
17308         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
17309         since it's never invoked.
17310
17311         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
17312         pixels high by default, so let's hardcode our systray icon to that
17313         size.  The SYSTEM_TRAY protocol should really have a way for
17314         client apps to query for the correct icon size.. but oh well.  A
17315         couple of patches to deal with the screwy client_window ==
17316         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
17317         instance, and also make sure we don't XSelectInput twice).
17318
17319 2006-10-30  Chris Toshok  <toshok@ximian.com>
17320
17321         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
17322         recreating forms.  Control recreation is the bane of my existence.
17323         Fix it in a way that keeps everyone happy.
17324
17325 2006-10-30  Chris Toshok  <toshok@ximian.com>
17326
17327         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
17328         just non-CHILD ones.  otherwise sometimes scrollbars end up with
17329         client_windows not being resized to the proper size (ReportBuilder
17330         shows this extremely well).
17331
17332 2006-10-30  Chris Toshok  <toshok@ximian.com>
17333
17334         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
17335         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
17336         showing up in the gnome taskbar.  Fixes bug #79790.
17337
17338 2006-10-30  Chris Toshok  <toshok@ximian.com>
17339
17340         * ApplicationContext.cs: guard against a NRE.
17341
17342         * Application.cs: null out the old MainForm for the context, so we
17343         don't try to use it again once it's disposed.  Fixes bug #79783.
17344
17345 2006-10-30  Chris Toshok  <toshok@ximian.com>
17346
17347         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
17348         BindingContext, set the data source directly, otherwise do the
17349         lazy approach - the actual ListManager will be created when we get
17350         a BindingContext. Fixes bug #79700.
17351
17352 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
17353
17354         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
17355           XplatUIX11.cs: Remove old 2 parameter SetVisible.
17356
17357         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
17358
17359 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
17360
17361         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
17362         of SetVisible that allows a window to be shown, but not activated.
17363         This is needed on Windows for MenuStrip, and can probably be used
17364         with MainMenu and ComboBox to fix the focus stealing issues on
17365         Windows.
17366
17367         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
17368
17369 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
17370
17371         * PictureBox.cs: Fix the output of the ToString method.
17372
17373 2006-10-29  Chris Toshok  <toshok@ximian.com>
17374
17375         * Control.cs (get_TopLevelControl): fix bug #79781.
17376
17377 2006-10-29  Chris Toshok  <toshok@ximian.com>
17378
17379         * ListControl.cs (set_DataSource): throw Exception here, not
17380         ArgumentException, to match MS behavior.
17381
17382 2006-10-29  Chris Toshok  <toshok@ximian.com>
17383
17384         * Form.cs: remove the try-catch's around calls to GetWindowState.
17385         We can just check the return value.
17386
17387         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
17388         Instead return -1.
17389
17390         * XplatUI.cs: Add note about additional return value for
17391         GetWindowState.
17392
17393 2006-10-29  Chris Toshok  <toshok@ximian.com>
17394
17395         * Control.cs (CreateHandle): when we create our handle, we also
17396         create the handles of our child controls.  Fixes one of the
17397         Control unit tests (CH11).
17398
17399 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
17400
17401         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
17402
17403 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
17404
17405         * ThemeClearlooks.cs: A little speedup.
17406
17407 2006-10-27  Chris Toshok  <toshok@ximian.com>
17408
17409         * Control.cs: implement Control.FromChildHandle in a way that
17410         matches the docs (and fixes the failed test.)
17411
17412 2006-10-27  Chris Toshok  <toshok@ximian.com>
17413
17414         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
17415         comments).
17416
17417         * DataGrid.cs: implement ResetForeColor such that the tests
17418         succeed.
17419         
17420 2006-10-27  Chris Toshok  <toshok@ximian.com>
17421
17422         * ToolBarButton.cs: setting text/tooltiptext to null results in it
17423         being set to "".  Fixes bug #79759.
17424
17425 2006-10-27  Jackson Harper  <jackson@ximian.com>
17426
17427         * TextControl.cs: We need to clear the entire selection area when
17428         setting the start, otherwise multiline selections are still
17429         visible.
17430
17431 2006-10-26  Chris Toshok  <toshok@ximian.com>
17432
17433         * PropertyGridView.cs: 
17434
17435         - ifdef all the code specific to the double
17436         buffer case, and provide some alternatives in the non-doublebuffer
17437         code, which makes heavy use of XplatUI.ScrollWindow to move things
17438         around without having to invalidate (and cause flicker).  There
17439         are still some drawing problems in the non-doublebuffered case, so
17440         DOUBLEBUFFER is defined by default.
17441
17442         - Fix the way dropdowns are handled.  now we explicitly watch for
17443         the events which might cause the dropdown to close, and break out
17444         of the nested event loop there.  This gets rid of all Capture
17445         code, at the expense of the Msg special casing.  Seems to work,
17446         though, and fixes bug #79743.
17447
17448 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
17449         * Control.cs: SetIsRecreating now recreates implicitly added
17450         child controls as well. Finally fixes #79629. The flag passed to 
17451         SetIsRecreating has also been removed since it wasn't used.
17452         
17453 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17454
17455         * PageSetupDialog.cs: Clean some code, fix some bits, 
17456         add some checks, and add a printer sub-dialog.
17457
17458 2006-10-26  Chris Toshok  <toshok@ximian.com>
17459
17460         * PropertyGrid.cs: make set_SelectedObject call
17461         set_SelectedObjects, and move the duplicate logic to the
17462         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
17463
17464         * PropertyGridView.cs: hide the textbox when we get a
17465         SelectedObjectsChanged event.
17466
17467         Fixes bug #79748.
17468
17469 2006-10-26  Chris Toshok  <toshok@ximian.com>
17470
17471         * PropertyGridView.cs: deal with the type converter not supporting
17472         GetStandardValues() or GetStandardValues() returning null, which
17473         is does in the default case.  Fixes #79742.
17474
17475 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
17476
17477         * CheckedListBox.cs: nunit no longer crashes when selecting 
17478         Project/Edit menu option
17479         
17480 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
17481
17482         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
17483         is no menu selected. fixes #79739
17484
17485 2006-10-25  Chris Toshok  <toshok@ximian.com>
17486
17487         * PropertyGridView.cs: factor out the splitter invalidation code
17488         into the SplitterPercent setter, and for kicks implement the
17489         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
17490         amount in either direction.
17491
17492 2006-10-25  Chris Toshok  <toshok@ximian.com>
17493
17494         * PropertyGridView.cs: do some cleanup of the brush used to draw
17495         text - read only fields should be grayed out.  not sure how to do
17496         this with the textbox, though.  but the textbox's should also be
17497         readonly now at least.  Also, hide/show the textbox when resizing
17498         the control.
17499         
17500         * CursorConverter.cs: use System.Reflection when getting the
17501         properties of Cursors, as TypeDescriptor.GetProperties isn't
17502         returning static properties.
17503
17504 2006-10-25  Chris Toshok  <toshok@ximian.com>
17505
17506         * PropertyGridView.cs: factor out the up/down handling, and reuse
17507         it for page up/down.  also add End/Home support.
17508
17509 2006-10-25  Chris Toshok  <toshok@ximian.com>
17510
17511         * PropertyGridView.cs:
17512
17513         - ensure the selected grid item is visible in the scrolled area,
17514         fixes bug #79572.
17515
17516         - fix Keys.Down handling when you're on the last item in the
17517         propertygrid.
17518
17519 2006-10-25  Mike Kestner  <mkestner@novell.com>
17520
17521         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
17522         clicks too.  Fixes #79725.
17523
17524 2006-10-24  Chris Toshok  <toshok@ximian.com>
17525
17526         * PropertyGrid.cs: use property.Converter instead of
17527         TypeDescriptor.GetConverter(property.PropertyType), so we catch
17528         TypeConverters declared on the property as well as on the
17529         PropertyType.  Fixes bug #79678.
17530
17531 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
17532
17533         * MimeIcon.cs, Mime.cs:
17534           Fallback to the default platform handler if no shared mime info
17535           stuff exists (fixes #79693).
17536
17537 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
17538         * ContainerControl.cs: Incorrect contains check in ActiveControl 
17539         from previous fix (duh).
17540
17541 2006-10-20  Chris Toshok  <toshok@ximian.com>
17542
17543         * PropertyGridView.cs: the dropdown should be MIN(number of items
17544         in list, 15).  Fixes #79551.
17545
17546 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
17547         Fixes #79384, #79394, #79652, #79667
17548         * Application.cs: 
17549         
17550         - Modal windows are now destroyed in the proper order for windows
17551         
17552         * ContainerControl.cs:
17553         
17554         - ActiveControl setter has more conditions on when to return:
17555                 - if we're reselecting the active control, but it actually
17556                 didn't have focus (window hidden or some such), it runs
17557                 - if the active control being selected doesn't actually 
17558                 exist in the container, it returns
17559         
17560         * Form.cs
17561         
17562         - The ShowDialog now gets the current form as the owner when
17563         invoking without parameters, and correctly activates the owner 
17564         when returning
17565         
17566         * MessageBox.cs
17567         
17568         - MessageBox now catches the Escape key to exit
17569
17570 2006-10-20  Chris Toshok  <toshok@ximian.com>
17571
17572         * PropertyGridView.cs: fix a number of issues (bug #78565, and
17573         most of bug #79676):
17574
17575         - you can navigate around the property grid with the arrow keys.
17576
17577         - the dropdown is sized properly when the pg has a vertical
17578         scrollbar.
17579
17580         - fix the indentation for subentries, and properly select the
17581         entire label rect.
17582
17583         - fix the gray bar's drawing (only draw it to the last element,
17584         not for the height of the control.  Also make sure we draw that
17585         last horizontal grid line.
17586
17587         - use the same mechanism the datagrid uses wrt the editing textbox
17588         when scrolling/resizing/etc.  Namely, we hide it first, do the
17589         operation, then show it again (if it's still visible).
17590         
17591         - aggressively remove a lot of unnecessary refreshes (and also
17592         calls to Invalidate(). call more limited variants, and only redraw
17593         what we need.)
17594         
17595         * PropertyGrid.cs:
17596
17597         - when we're populating the merged collection, fill in the UI
17598         parent with either the passed in item, or the category item we
17599         create.
17600
17601         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
17602
17603         * GridItem.cs: drop some fully qualified names.
17604         
17605         * GridEntry.cs: add a "UIParent", which is basically the parent
17606         treenode.
17607
17608         * GridItemCollection.cs: add an IndexOf method.
17609
17610 2006-10-20  Mike Kestner  <mkestner@novell.com>
17611
17612         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
17613         a working win32 NC invalidation mechanism, we can't invalidate
17614         menus.  [Fixes #79705]
17615
17616 2006-10-20  Mike Kestner  <mkestner@novell.com>
17617
17618         * ListBox.cs : don't update the VScrollbar if the list is empty,
17619         just hide it.  [Fixes #79692]
17620
17621 2006-10-20  Jackson Harper  <jackson@ximian.com>
17622
17623         * RichTextBox.cs: Handle some special chars better, and don't skip
17624         the entire group when we encounter a special char that we don't
17625         handle correctly.
17626
17627 2006-10-18  Chris Toshok  <toshok@ximian.com>
17628
17629         * PropertyGridView.cs: address a number of issues from bug #79676,
17630         mostly of the cosmetic variety.
17631
17632         - The highlight rectangle for indented items not extends all the
17633         way to the left.
17634
17635         - Indented items aren't indented so much.
17636
17637         - the dropdown is properly sized width-wise if the pg has a
17638         vertical scrollbar.
17639
17640 2006-10-18  Chris Toshok  <toshok@ximian.com>
17641
17642         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
17643         systray stuff is rather convoluted to begin with.
17644
17645         systray icons are a single window for some reason (that I haven't
17646         figured out yet), and for them, client_window == whole_window.
17647         Given the way the tests are structured elsewhere to determine
17648         which paints are pending (client vs. nc), that situation will
17649         always yield PAINT, not NCPAINT.  So, if we have a pending
17650         nc_expose and no pending expose, remove the hwnd from the paint
17651         queue, and also set nc_expose_pending to false, to keep us from
17652         blocking further expose's adding the hwnd to the paint queue.
17653
17654         phew.  like i said, a rather convoluted change.  Fixes the
17655         notifyicon repaint issues in bug #79645.
17656
17657 2006-10-18  Chris Toshok  <toshok@ximian.com>
17658
17659         * Form.cs: when getting the backcolor of the form, don't get
17660         base.BackColor, as this allows parents to influence the background
17661         color.  This breaks mdi forms.  Instead, if the background_color
17662         is empty, return the default.
17663
17664 2006-10-18  Chris Toshok  <toshok@ximian.com>
17665
17666         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
17667         to being private instead of internal static.
17668
17669         * Control.cs: remove all the stupid ParentWaitingOnRecreation
17670         crap, it wasn't working for more deeply nested controls anyway,
17671         and we already have the is_recreating flag - use that instead.
17672         Before calling DestroyHandle in RecreateHandle, recurse through
17673         the control tree setting it to true.  this returns the recreate
17674         code to much of its original simplicity, while now guaranteeing we
17675         actually recreate everything we're supposed to.  This change gets
17676         fyireporting actually showing mdi children.
17677
17678 2006-10-17  Chris Toshok  <toshok@ximian.com>
17679
17680         * Form.cs: remove some debug spew, and collapse some duplicate
17681         code at the end of SetClientSizeCore.
17682
17683         * XplatUIX11.cs: 
17684         - add some more debug spew here too wrt Destroy handling.
17685         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
17686         in Control's handling of WM_DESTROY.
17687         - Remove the handling of zombie window DestroyNotifies from the
17688         event loop - we don't need it.  Now the only DestroyNotifies we
17689         actually handle are ones generated by X.
17690         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
17691         match gtk's (functioning) handling of this. This keep metacity
17692         from leaving droppings in the form of wm borders with no window
17693         contents all over the place.
17694
17695         * Control.cs:
17696         - add a bunch of debug spew wrt control recreation.
17697         - fix a bug where we weren't tracking Visible properly on
17698         recreated hwnds.
17699         - fixed the WM_PAINT double buffer handling to support re-entrant
17700         calls (yes, i know it's gross, but it's happening to us).
17701
17702 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
17703         * ThemeWin32Classic.cs: changed drawing of selected days
17704         to make them look better.
17705
17706 2006-10-16  Chris Toshok  <toshok@ximian.com>
17707
17708         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
17709         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
17710
17711         * XplatUIX11.cs: move away from using hwnd.client_dc and
17712         hwnd.non_client_dc and on to a stack of dc's (and in window's
17713         case, PAINTSTRUCT's), so we can deal with nested Paint calls
17714         without puking or not disposing of Graphics objects.
17715
17716         * XplatUIOSX.cs: same.
17717
17718         * XplatUIWin32.cs: same.
17719
17720 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
17721
17722         * FileDialog.cs: Don't call on_directory_changed inside
17723           OnSelectedIndexChanged (it changes the SelectedIndex too).
17724           Instead move it to OnSelectionChangeCommitted.
17725
17726 2006-10-13  Chris Toshok  <toshok@ximian.com>
17727
17728         * XplatUIX11.cs: more Destroy work.  the current code does the
17729         following things, in order:
17730
17731         1. Enumerates all handles of all controls at or below the one
17732         being destroyed, in pre-order.  As it is doing this, it marks the
17733         handles as zombie and clears all references to them.
17734         
17735         2. calls XDestroyWindow on the window passed in.
17736
17737         3. SendMessage's WM_DESTROY to all he handles in the accumulated
17738         list.
17739
17740 2006-10-13  Chris Toshok  <toshok@ximian.com>
17741
17742         * XplatUIX11.cs: set hwnd.zombie to true before calling
17743         SendMessage (WM_DESTROY).  this keeps us from marking the new
17744         window a zombie, and also keeps us from calling sendmessage at
17745         all.
17746
17747 2006-10-13  Jackson Harper  <jackson@ximian.com>
17748
17749         * TextControl.cs: Do not show the caret and selection at the same
17750         time.  Reduces ugliness by 35%.
17751
17752 2006-10-13  Chris Toshok  <toshok@ximian.com>
17753
17754         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
17755         zombie after we do the recursive call, so we actually do call
17756         SendMessage on the children controls.
17757         (GetMessage): if we find a pending paint event for a zombie hwnd,
17758         remove the hwnd from the paint queue, or else it will always be
17759         there (and we'll effectively loop infinitely)
17760
17761 2006-10-13  Mike Kestner  <mkestner@novell.com>
17762
17763         * MenuItem.cs : add Selected format under keynav too.
17764         Fixes #79528.
17765
17766 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
17767
17768         * PropertyGrid.cs: Fixed some NRE's and small difference between our
17769         implementation and that of MS.
17770
17771 2006-10-13  Chris Toshok  <toshok@ximian.com>
17772
17773         * Control.cs (OnInvalidated) only futz with the invalid_region if
17774         the control is double buffered.  this fixes the apparent hang in
17775         the ListView unit tests.  Someone needs to make the
17776         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
17777
17778 2006-10-13  Chris Toshok  <toshok@ximian.com>
17779
17780         * PropertyGridView.cs:
17781
17782         - do a little refactoring so that only one place calls
17783         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
17784         else call that.  Also make it Refresh, since there are redraw bugs
17785         otherwise (we should take a look at that...)
17786
17787         - do a little more refactoring work to share the body of code
17788         involved with the drop down.  it was duplicated in the code
17789         dealing with the listbox handling and in the code dealing with the
17790         UITypeEditors.
17791
17792         - add a Capture to the dropdown form's control once it's
17793         displayed, and add a MouseDown handler that checks to make sure
17794         the position is inside the control.  If it's not, close the
17795         dropdown.  This fixes #78190.
17796
17797         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
17798         if the value is different than the initial value.
17799         
17800 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
17801
17802         * Control.cs: see #78650
17803         - Fixed GetNextControl for several cases:
17804                 - Changed FindFlatForward to return 
17805                 correct sibling control when more than one
17806                 control has same TabIndex as the currently 
17807                 focused one.
17808                 - Changed FindFlatBackward to loop children
17809                 from last to first and apply same logic as in
17810                 FindFlatForward
17811                 - Changed FindControlForward to search for
17812                 children when control is not a container
17813                 but has children, or search for siblings if
17814                 control is a container...
17815                 - Changed FindControlBackward   to continue
17816                 searching for child controls when hitting 
17817                 Panel-like parents
17818                 
17819         - Fixed Focus method to update ActiveControl
17820         (FocusTest.FocusSetsActive failure)
17821         
17822         * TabControl.cs:
17823         - Focus rectangle now refreshes when gaining
17824         or losing focus
17825         - Removed grab for Tab key on IsInputKey that 
17826         was keeping tab navigation from working (#78650)
17827
17828 2006-10-13  Chris Toshok  <toshok@ximian.com>
17829
17830         * PropertyGridView.cs:
17831         - Rewrite SetPropertyValue to loop over SelectedGridItem's
17832         SelectedObjects.
17833
17834         - Deal with GridItem.Value == null a few places.
17835
17836         * PropertyGrid.cs: 
17837         - replace the PopulateGridItemCollection with a pair of methods
17838         which compute the intersection of all the properties in the
17839         SelectedObjects array.  Fixes #79615.
17840
17841         - Throw ArgumentException from set_SelectedObjects if there's a
17842         null in the array.
17843
17844         - Add GetTarget method which can be used to traverse up the
17845         GridItem.Parent chain.  It depends on the assumption that
17846         selected_objects for different GridEntries are always in the same
17847         order (a safe assumption).  Use this method and loop over all the
17848         selected objects in the entry when calling RemoveValueChanged and
17849         AddValueChanged.
17850         
17851         * GridEntry.cs: Make this handle multiple selected objects.
17852         .Value returns null if not all the selected objects share the same
17853         value.
17854
17855 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
17856         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
17857           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
17858           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
17859           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
17860           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
17861         add additional functionality.
17862
17863 2006-10-12  Mike Kestner  <mkestner@novell.com>
17864
17865         * ErrorProvider.cs : new ToolTipWindow ctor sig.
17866         * HelpProvider.cs : new ToolTipWindow ctor sig.
17867         * ToolTip.cs : remove ToolTip param from Window sig since it is
17868         not used.
17869         * ToolBar.cs : add tooltip support.  Fixes #79565.
17870
17871 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
17872
17873         * ComboBox.cs: move the events in set_SelectedIndex to 
17874         after the call to HighlightIndex in order to avoid 
17875         possible recursion and subsequent problems with the call
17876         to HighlightIndex and include a range check in 
17877         set_HighlightIndex. Fixes #79588
17878         
17879 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
17880
17881         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
17882         to ui thread's settings instead of sunday. 
17883         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
17884
17885 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
17886
17887         * DateTimePicker.cs
17888         * MonthCalendar.cs
17889         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
17890         and implement missing functionality (selecting different parts 
17891         of the date and edit them individually with the keyboard).
17892         
17893 2006-10-11  Chris Toshok  <toshok@ximian.com>
17894
17895         * Control.cs (OnInvalidated): fix NRE relating to last change.
17896
17897 2006-10-11  Chris Toshok  <toshok@ximian.com>
17898
17899         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
17900         atoms in _NET_WM_STATE here if the window is maximized.  We need
17901         to do this because we're *replacing* the existing _NET_WM_STATE
17902         property, so those atoms will be lost otherwise, and any further
17903         call to GetWindowState will return Normal for a window which is
17904         actually maximized.  Fixes #79338.
17905
17906 2006-10-11  Jackson Harper  <jackson@ximian.com>
17907
17908         * TextControl.cs: Special case for setting selection end to
17909         selection start, we basically kill the anchor.
17910         - some todo comments.
17911
17912 2006-10-11  Chris Toshok  <toshok@ximian.com>
17913
17914         * Control.cs: switch to using an "invalid_region" to track which
17915         parts of the image buffer need updating.  This is more code than
17916         the simple fix from r66532.  That version just attempted to always
17917         fill the entire buffer on redraw, which turns out to be
17918         inefficient when invalidating small rectangles.  This version
17919         simply adds the invalid rectangle to the invalid region.  When we
17920         get any WM_PAINT message we see if it can be filled using the
17921         image buffer, and if it can't (if the paint event's clip rectangle
17922         is visible in the invalid region) we first fill the image buffer.
17923         So, the image buffer is still a cache, we just fill it lazily.
17924
17925         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
17926         need it any longer.
17927
17928 2006-10-11  Chris Toshok  <toshok@ximian.com>
17929
17930         * XplatUIX11.cs (SetWindowPos): we need to update both position as
17931         well as size after calling XMoveResizeWindow.  This keeps us from
17932         ignoring future SetWindowPos calls.  Fixes the disappearing
17933         DateTimePicker in the ToolBarDockExample from bug #72499.
17934
17935 2006-10-11  Chris Toshok  <toshok@ximian.com>
17936
17937         * TextBoxBase.cs: reorder things a bit when it comes to
17938         resizing-causing-recalculation.  we were recalculating the
17939         document when our position was changed, which shouldn't happen.
17940         We only care about size changes.  Clear up some more redundant
17941         recalculation calls while I'm at it.  This makes the toolbar dock
17942         example snappy when you're just dragging toolbars around (since it
17943         causes a relayout whenever you move one.)
17944
17945 2006-10-11  Chris Toshok  <toshok@ximian.com>
17946
17947         * ToolBarButton.cs (get_Rectangle): this only returns
17948         Rectangle.Empty if Visible == false, or Parent == null.
17949         Parent.Visible doesn't matter.
17950
17951 2006-10-10  Chris Toshok  <toshok@ximian.com>
17952
17953         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
17954         by .net 1.1, so switch to an internal method instead.
17955
17956 2006-10-10  Chris Toshok  <toshok@ximian.com>
17957
17958         * Control.cs (WM_PAINT): when a control is double buffered we draw
17959         initially to the ImageBuffer and then copy from there.  But when a
17960         parent control which has child controls is double buffered, the
17961         initial drawing doesn't encompass the entire ClientRectangle of
17962         the parent control, so we end up with uninitialized bits (this is
17963         easily seen by dragging the top toolbar in
17964         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
17965         manually set the ClipRectangle of the paint_event (only the one we
17966         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
17967         of the nastiness in bug #72499.
17968
17969         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
17970         which we use in Control.cs's WM_PAINT handling.
17971
17972 2006-10-10  Jackson Harper  <jackson@ximian.com>
17973
17974         * TextBoxBase.cs: Finish off the autoscrolling stuff.
17975
17976 2006-10-10  Chris Toshok  <toshok@ximian.com>
17977
17978         * Cursor.cs: Apply a slightly different patch to the one suggested
17979         in #79609.
17980
17981 2006-10-10  Jackson Harper  <jackson@ximian.com>
17982
17983         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
17984         not the parent form.
17985         * TextControl.cs: use difference in old line count vs new count to
17986         calculate how many lines were added, this takes into account soft
17987         line breaks properly.
17988
17989 2006-10-10  Chris Toshok  <toshok@ximian.com>
17990
17991         * LinkLabel.cs: don't call MeasureCharacterRanges against a
17992         rectangle located at 0,0 and the size of the text.  Use
17993         ClientRectangle instead.  This fixes rendering of non-left aligned
17994         link labels.
17995
17996 2006-10-10  Jackson Harper  <jackson@ximian.com>
17997
17998         * TextBoxBase.cs: When we set the selection start position the
17999         caret.
18000         * TextControl.cs: Need to update the caret when we decrement it to
18001         zero.
18002         - Make sure that the selection_visible flag gets reset to false if
18003         the selection isn't visible.  Before this you could get it set to
18004         visible by changing the selection start, then changing the end to
18005         equal the start.
18006
18007 2006-10-09  Jackson Harper  <jackson@ximian.com>
18008
18009         * TreeView.cs: Don't update scrollbars when we aren't visible.
18010         * TreeNodeCollection.cs: Only need to update scrollbars if being
18011         added to an expanded visible node or the root node.
18012
18013 2006-10-09  Chris Toshok  <toshok@ximian.com>
18014
18015         * XplatUIX11.cs (SendMessage): fix NRE.
18016
18017 2006-10-09  Jackson Harper  <jackson@ximian.com>
18018
18019         * TextBoxBase.cs: Implement horizontal autoscrolling.
18020         * TextControl.cs: Add a movement types that allows moving forward
18021         and backwards without wrapping.
18022
18023 2006-10-09  Mike Kestner  <mkestner@novell.com>
18024
18025         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
18026         with focus "expansion" of labels.  Fixes #79532 and then some.
18027         * ThemeWin32Classic.cs : add LineLimit to ListView label format
18028         when wrapping.
18029
18030 2006-10-09  Jackson Harper  <jackson@ximian.com>
18031
18032         * TextBoxBase.cs: Set the default max values to MaxValue since
18033         we use the scrollbar for autoscrolling and the default value is
18034         100.  If we don't do this the caret won't keep up with typing
18035         after about 18 characters.
18036         * TextControl.cs: Make sure the selection is offset by the
18037         viewport x.  This fixes selection when using auto scrolling.
18038
18039 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
18040         
18041         * Form.cs: The active control should be selected after the 
18042         OnLoad so that any child control initialization that affects
18043         the selection is done. Fixes #79406
18044
18045 2006-10-06  Chris Toshok  <toshok@ximian.com>
18046
18047         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
18048         to have no evil effects.
18049
18050         - Stop selecting StructureNotifyMask on non-toplevel windows.
18051
18052           The only way children should be resized is by using the SWF api,
18053           and we already send WM_WINDOWPOSCHANGED messages in those cases.
18054           Toplevel windows can be interacted with via the window manager,
18055           and so we keep the input mask there.
18056
18057           The other event StructureNotifyMask gives us (that we care
18058           about) is DestroyNotify.  The code is already structured such
18059           that it assumes we won't be getting a DestroyNotify event for
18060           the window we pass to XDestroyWindow (which is what
18061           StructureNotifyMask is supposed to guarantee.)  So, that code
18062           shouldn't be affected by this either.
18063
18064         - Stop selecting VisibilityChangeMask altogether.
18065
18066           We weren't doing anything with the resulting events anyway.
18067         
18068         This vastly reduces the number of X requests and events we see
18069         when resizing/laying out a large ui.
18070
18071 2006-10-06  Chris Toshok  <toshok@ximian.com>
18072
18073         * ScrollableControl.cs (DisplayRectangle): we need to take into
18074         account the DockPadding regardless of whether or not auto_scroll
18075         == true.  rework this slightly to this effect, and fix bug #79606,
18076         and part of #72499 (you can now see the drag handles and drag
18077         toolbars around).
18078
18079 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
18080
18081         * ListViewItem.cs: Collections of selected and checked items are now
18082         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
18083         we mark the collection "dirty".
18084         * ListView.cs: Marked collections readonly. Modified UpdateSelection
18085         to only clear SelectedItems when a new item is selected and MultiSelect
18086         is enabled. CheckedItems and SelectedItems now subscribe to Changed
18087         event of ListViewItemCollection, and mark its list dirty whenever
18088         that event is fire. This allows us to return selected/checked items 
18089         in the same order as they are in the Items collection. This matches
18090         the MS behavior.
18091
18092 2006-10-06  Chris Toshok  <toshok@ximian.com>
18093
18094         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
18095         right mouse clicks.  Fixes bug #79593.
18096
18097 2006-10-06  Chris Toshok  <toshok@ximian.com>
18098
18099         * Splitter.cs: doh, fix splitters that don't want to cancel the
18100         movement when you drag them.  Also, impose the limits on the
18101         values we send to the SplitterMovingEvent.  Fixes #79598.
18102
18103 2006-10-06  Jackson Harper  <jackson@ximian.com>
18104
18105         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
18106         since we use this for auto scrolling also.
18107
18108 2006-10-05  Chris Toshok  <toshok@ximian.com>
18109
18110         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
18111         beginning to think that most datagrid column types don't need this
18112         method.  Fixes bug #79392.
18113
18114 2006-10-05  Chris Toshok  <toshok@ximian.com>
18115
18116         * DataGrid.cs: move back to a more lazy scheme for creating the
18117         CurrencyManager, so we aren't updating it every time you set
18118         either DataSource or DataMember.  Also, don't call
18119         RecreateDataGridRows if the currency manager hasn't changed.
18120
18121 2006-10-05  Chris Toshok  <toshok@ximian.com>
18122
18123         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
18124         emitted, SelectedIndex should already be updated.  Fixes bug
18125         #78929.
18126
18127 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
18128
18129         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
18130           ToolStripTextBox.cs: Initial commit.
18131         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
18132
18133 2006-10-05  Jackson Harper  <jackson@ximian.com>
18134
18135         * TabControl.cs: We need to invalidate the tab control area when
18136         new ones are added (duh).
18137
18138 2006-10-03  Chris Toshok  <toshok@ximian.com>
18139
18140         * Form.cs (ProcessDialogKey): if the focused control is in this
18141         form and is a button, call its PerformClick method here.  Fixes
18142         #79534.
18143
18144 2006-10-04  Jackson Harper  <jackson@ximian.com>
18145
18146         * TabPage.cs: Ignore setting of Visible, and add an internal
18147         method for setting the controls visibility.  TabPage's Visible
18148         property is a little strange on MS, this seems to make us
18149         compatible, and fixes cases where people set all the tab pages to
18150         visible.
18151         * TabControl.cs: Use the new internal setting on tab pages
18152         visibility.
18153
18154 2006-10-03  Mike Kestner  <mkestner@novell.com>
18155
18156         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
18157
18158 2006-10-03  Mike Kestner  <mkestner@novell.com>
18159
18160         * ListView.cs : use is_visible instead of Visible to check if 
18161         scrollbars should be placed/sized.  Also some max_wrap_width
18162         love for LargeIcon view.  [Fixes #79533]
18163
18164 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
18165
18166         * TextControl.cs :
18167           Make set_TextAlign() do actually update the align. Fixed #78403.
18168
18169 2006-10-03  Chris Toshok  <toshok@ximian.com>
18170
18171         * DataGrid.cs: fix a crash when switching datasources if the
18172         vertical scrollbar is at someplace other than Value = 0.  Also,
18173         reduce the number of recalculation passes we do in SetDataSource
18174         from 2 to 1.
18175
18176 2006-10-03  Jackson Harper  <jackson@ximian.com>
18177
18178         * TextBoxBase.cs: Move the if value the same bail check up, we
18179         don't want to empty the document if it is already empty, this
18180         seems to severly mess up the caret.  TODO: I should probably fix
18181         the empty statement to update teh caret somehow.
18182
18183 2006-10-03  Chris Toshok  <toshok@ximian.com>
18184
18185         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
18186         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
18187         reflection, an internal row type, properties on said type, etc.)
18188         will work with our datagrid.  Fixes #79531.
18189
18190 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
18191
18192         * FileDialog.cs: Don't crash if a path is not accessible
18193           (System.UnauthorizedAccessException). Fixes #79569.
18194         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
18195           a ':' too. Return unknown icon for those paths/files.
18196
18197 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
18198
18199         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
18200         GetContainerControl returns null.
18201
18202 2006-10-02  Chris Toshok  <toshok@ximian.com>
18203
18204         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
18205         call to XGetWindowAttributes instead of "handle".  fixes an X
18206         error using notifyicon after the NotifyIconWindow to Form base
18207         class switch.
18208
18209 2006-10-02  Chris Toshok  <toshok@ximian.com>
18210
18211         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
18212         server grab and looping we need to do to get down to the most
18213         deeply nested child window.
18214         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
18215         QueryPointer again after the WarpPointer so we can generate a
18216         proper (fake) MotionNotify event to be enqueued in the destination
18217         window's queue.
18218         (GetCursorPos): call QueryPointer.
18219
18220         Fixes #79556.
18221
18222 2006-10-02  Jackson Harper  <jackson@ximian.com>
18223
18224         * NotifyIcon.cs: Derive the notify icon from a form, so things
18225         like FindForm work on it.
18226         - Swallow the WM_CONTEXTMENU message, since that is generated on
18227         mouse down, and context menu is a mouse up kinda guy.  I believe
18228         the correct fix here is probably to make the notify icon entirely
18229         NC area, but this seems to work fine for anyone not manipulating
18230         WndProc.
18231
18232 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
18233
18234         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
18235           ToolStripItemCollection.cs, ToolStripLabel.cs,
18236           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
18237           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
18238           Initial implementation.
18239         * TextRenderer.cs: Provide padding to MeasureText.
18240
18241 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
18242
18243         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
18244         of ButtonBaseAccessibleObject. Fix bug #79552.
18245
18246 2006-10-02  Jackson Harper  <jackson@ximian.com>
18247
18248         * MdiWindowManager.cs: When maximizing use the containers client
18249         rect, not it's bounds, so nc area is accounted correctly.
18250         - Use the parent form's size for the menu position, since the
18251         client isn't always the full form size.
18252
18253 2006-10-01  Chris Toshok  <toshok@ximian.com>
18254
18255         * ScrollableControl.cs: make sure neither right_edge or
18256         bottom_edge are < 0, since they're used as LargeChange for the
18257         horiz/vert scrollbars respectively.  Fixes #79539.
18258
18259 2006-10-01  Chris Toshok  <toshok@ximian.com>
18260
18261         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
18262         the xplatuix11 code can cause us to destroy/recreate our handle.
18263
18264         * XplatUIX11.cs
18265         (SystrayAdd):
18266         - this code can be invoked many times for the same Hwnd.  Make
18267           sure we only destroy the client window once (the first time this
18268           method is called).  This fixes bug #79544.
18269         - Remove the call to the improperly bound XSync.  why we had two
18270           bindings to this, I will never know, but this call resulted in
18271           events being discarded from the queue(!).
18272         - correct a misunderstanding of _XEMBED_INFO - the second atom is
18273           not our current state but the state we wish to be in.  So, 0 if
18274           we don't want to be mapped.  Change it to 1.
18275         (SystrayRemove): The XEMBED spec makes mention of the fact that
18276         gtk doesn't support the reparent of client windows away from the
18277         embedder.  Looking at gtksocket-x11.c seems to agree with this.
18278         The only avenue we have for removing systray icons is to destroy
18279         them.  We don't want the handle to go away for good, though, so
18280         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
18281         #79545.
18282         
18283 2006-10-01  Chris Toshok  <toshok@ximian.com>
18284
18285         * Form.cs (WndProc): inline the native_enabled variable usage into
18286         the cases in which it's used.  Fixes #79536.
18287
18288 2006-09-29  Mike Kestner  <mkestner@novell.com>
18289
18290         * ListView.cs : toggle the selection state for ctrl clicks in 
18291         multiselect mode. [Fixes #79417]
18292
18293 2006-09-29  Mike Kestner  <mkestner@novell.com>
18294
18295         * ListView.cs : kill CanMultiSelect and refactor the selection
18296         code to support multiselection in the absence of mod keys. Steal
18297         arrow/home/end keys by overriding InternalPreProcessMessage to
18298         restore regressed keynav behavior.
18299         [Fixes #79416]
18300
18301 2006-09-29  Jackson Harper  <jackson@ximian.com>
18302
18303         * MdiClient.cs: Repaint the titlebars when the active window is
18304         changed.
18305
18306 2006-09-29  Chris Toshok  <toshok@ximian.com>
18307
18308         * Application.cs: when entering a runloop with a modal, make sure
18309         the hwnd is enabled.  Fixes #79480.
18310
18311 2006-09-29  Chris Toshok  <toshok@ximian.com>
18312
18313         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
18314         when ListManager.CanAddRows == false, bump us back one.
18315
18316         * DataGridColumnStyle.cs (ParentReadOnly): remove the
18317         listmanager.CanAddRows check.  This makes ArrayLists uneditable
18318         using a datagrid, which is not right.
18319         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
18320         is an IEditable, but call property_descriptor.SetValue regardless.
18321         fixes #79435.
18322
18323 2006-09-29  Chris Toshok  <toshok@ximian.com>
18324
18325         * DataGridBoolColumn.cs: we need to test equality in the face of
18326         possible null values (as is the case with the default NullValue).
18327         This patch keeps us from crashing in that case.
18328
18329 2006-09-29  Jackson Harper  <jackson@ximian.com>
18330
18331         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
18332         here, since it will get called for every node collection in the
18333         tree. This is now done in the treeview once the sorting is
18334         finished.
18335         * TreeView.cs: Recalculate the visible order, and update the
18336         scrollbars after sorting, set the top nope to the root so that the
18337         recalc actually works.
18338
18339 2006-09-29  Chris Toshok  <toshok@ximian.com>
18340
18341         * LinkLabel.cs: more handling of the default link collection in
18342         the face of LinkArea manipulation.  The default link collection
18343         contains 1 element (start=0,length=-1).  If the user sets LinkArea
18344         to anything and the links collection is the default, clear it.
18345         Then only add the link if its nonempty.  Fixes #79518.
18346
18347 2006-09-29  Chris Toshok  <toshok@ximian.com>
18348
18349         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
18350         piece correctly when we hit a '\n'.  Fixes #79517.
18351
18352 2006-09-29  Chris Toshok  <toshok@ximian.com>
18353
18354         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
18355         change the binding of gdk_init_check to take two IntPtr's, and
18356         pass IntPtr.Zero for both of them.  Fixes #79520.
18357
18358 2006-09-29  Mike Kestner  <mkestner@novell.com>
18359
18360         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
18361         [Fixes #78779]
18362
18363 2006-09-28  Jackson Harper  <jackson@ximian.com>
18364
18365         * XplatUIX11.cs: When translating NC messages make sure we go from
18366         whole window to screen, not client window to screen.
18367         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
18368         method doesn't exist
18369         - Skip over controls that aren't forms when arranging.
18370
18371 2006-09-28  Jackson Harper  <jackson@ximian.com>
18372
18373         * XplatUIWin32.cs: Clip the rect to the parent window.
18374         * XplatUIStructs.cs: Add clipping modes struct.
18375         * InternalWindowManager.cs: New private method that factors title
18376         bar heights in when calculating the pos of an NC mouse message.
18377         - Use SendMessage to force a paint when the form's size is changed
18378         instead of painting the decorations immediately.
18379         - Don't let the NC button click messages get to DefWndProc,
18380         because they will attempt to handle windowing themself, and this
18381         messes up z-order (it will put them in front of the scrollbars).
18382         * XplatUIX11.cs: Make sure that we don't reset window managers if
18383         we already have one (ie the window is an MDI window).
18384
18385 2006-09-28  Chris Toshok  <toshok@ximian.com>
18386
18387         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
18388         menu code really needs going over.
18389
18390 2006-09-27  Chris Toshok  <toshok@ximian.com>
18391
18392         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
18393         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
18394         window is maximizable.  So, we need to make sure that even if we
18395         clear the border/wm frame of those functions, they're still
18396         available (basically, we remove the decoration without removing
18397         the function).  Half the fix for #79338.
18398
18399 2006-09-27  Chris Toshok  <toshok@ximian.com>
18400
18401         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
18402         Fixes bug #79515.
18403
18404 2006-09-27  Chris Toshok  <toshok@ximian.com>
18405
18406         * Splitter.cs: reorder things a bit so that we don't actually
18407         draw/move the splitter until after calling OnSplitterMoving.  This
18408         lets users cancel/disallow the movement by explicitly setting
18409         event.SplitX/SplitY.  Fixes #79372.
18410
18411 2006-09-27  Jackson Harper  <jackson@ximian.com>
18412
18413         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
18414         because it is most likely on a window being destroyed, and that
18415         will give us an X11 error.
18416
18417 2006-09-27  Chris Toshok  <toshok@ximian.com>
18418
18419         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
18420         the dropdown button now toggles between showing and hiding the
18421         dropdown.  Also, get rid of dropdown_form_showing and just use
18422         dropdown_form.Visible.  We still don't do a grab, but I'll leave
18423         that part to someone who has handled Capture-fu before.
18424
18425 2006-09-27  Chris Toshok  <toshok@ximian.com>
18426
18427         * DataGrid.cs: return false if alt isn't pressed when '0' is
18428         pressed.  this keeps the '0' key from being swallowed, and fixes
18429         bug #79350.
18430
18431 2006-09-27  Chris Toshok  <toshok@ximian.com>
18432
18433         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
18434         Calling Refresh (in response to a scrollbar event) screws up the
18435         scrollbar painting.  Fixes bug #78923.
18436
18437 2006-09-27  Chris Toshok  <toshok@ximian.com>
18438
18439         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
18440         then insert into hashtable" blocks threadsafe.
18441
18442 2006-09-27  Chris Toshok  <toshok@ximian.com>
18443
18444         * MessageBox.cs (CreateParams): the styles should be |'ed with our
18445         baseclass's, since otherwise the
18446         ControlBox/MinimizeBox/MaximizeBox assignments above have no
18447         effect.  This gets the close button back in messageboxes.
18448
18449 2006-09-27  Chris Toshok  <toshok@ximian.com>
18450
18451         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
18452         flag, not just != 0.  this makes flags that are actually multiple
18453         bits (like WS_CAPTION) work.  fixes bug #79508.
18454
18455 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
18456
18457         * PageSetupDialog.cs: add support for getting and settings the 
18458         paper size, source and orientation.
18459
18460 2006-09-26  Chris Toshok  <toshok@ximian.com>
18461
18462         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
18463         and caption == "", we need to remove the resize handles as well as
18464         the title bar.
18465
18466         * Control.cs (set_Text): turns out that setting Text on a form
18467         should change the WM styles on the window, since if ControlBox ==
18468         false, the only way to get a window border is to have a non-""
18469         Text property.  check winforms/forms/text.cs for an example.  so,
18470         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
18471         update both window styles and title.  This fixes a lot of dialogs
18472         (including the preferences dialog in MonoCalendar.)
18473
18474 2006-09-26  Chris Toshok  <toshok@ximian.com>
18475
18476         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
18477         control isn't a Form), call Win32ShowWindow to hide the window,
18478         but don't update the control Visible property.  When we reparent
18479         back to a parent control, call SetVisible in order for the
18480         window's visibility to be reinstated.
18481
18482         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
18483         the FosterParent.
18484
18485         * Control.cs (ControlCollection.Remove): remove that value.Hide()
18486         call for good, since it breaks MonoCalendar (and other things I'm
18487         sure.) Also, set all_controls to null *after* the owner calls,
18488         which end up regenerating it.
18489         (ChangeParent): allow new_parent to be == null, passing
18490         IntPtr.Zero down to XplatUI.
18491
18492         this fixes #79294 the right way.
18493
18494 2006-09-26  Mike Kestner  <mkestner@novell.com>
18495
18496         * GridEntry.cs : internal SetParent method.
18497         * PropertyGrid.cs : attach to property changed on the proper
18498         target if we have a hierarchical grid with subobjects. Setup
18499         GridItem.Parent for hierarchical items.
18500         * PropertyGridView.cs : Set value on the correct target for
18501         hierarchical grids. [Fixes #78903]
18502
18503 2006-09-26  Chris Toshok  <toshok@ximian.com>
18504
18505         * Control.cs (ChildNeedsRecreating): this should return true if
18506         either we're being recreated and the child is in our list, or our
18507         parent is waiting for our recreation.
18508
18509 2006-09-26  Chris Toshok  <toshok@ximian.com>
18510
18511         * Control.cs (ControlCollection.Remove): reinstate the
18512         value.Hide() call as suggested in bug #79294.
18513
18514 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
18515
18516         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
18517         coordinates (versus a relative move).
18518
18519 2006-09-26  Chris Toshok  <toshok@ximian.com>
18520
18521         * Control.cs: rework child recreation a little bit.  It turns out
18522         that we race between the DestroyNotify the WM_DESTROY message.  If
18523         the parent gets its DestroyNotify before the child gets the
18524         WM_DESTROY message, the child ends up not recreating (since the
18525         parent finishes its recreation on DestroyNotify, and the child
18526         checks ParentIsRecreating.)
18527
18528         So, instead we store off a list of all the child controls which
18529         need to be recreated when the parent control starts to recreate
18530         itself.  Then, when child controls get their WM_DESTROY message we
18531         check to see if they're in the parent's pending recreation list,
18532         and if so, we recreate.  This removes all dependency on ordering
18533         from the code and fixes the initial MonoCalendar upgrade dialog.
18534         
18535 2006-09-26  Jackson Harper  <jackson@ximian.com>
18536
18537         * TextControl.cs: Use the Line to get the length of the line,
18538         since soft line breaks can change the end line.
18539
18540 2006-09-26  Chris Toshok  <toshok@ximian.com>
18541
18542         * Control.cs (ControlCollection.AddImplicit): don't add the
18543         control again if it's already in one of our lists.  This keeps us
18544         from adding controls over and over again for comboboxes when their
18545         handle gets recreated (as the combobox adds implicit controls in
18546         OnHandleCreated).  Fixes the X11 errors in bug #79480.
18547
18548 2006-09-26  Jackson Harper  <jackson@ximian.com>
18549
18550         * TextControl.cs: When deleting characters make sure that any
18551         orphaned zero lengthed tags get deleted.
18552         - Fix ToString for zero lengthed tags.
18553
18554 2006-09-25  Jackson Harper  <jackson@ximian.com>
18555
18556         * TextControl.cs: When getting a tag at the location there can be
18557         multiple tags at the same spot, these are 0-lengthed tags that
18558         appear when extra formatting has been stuck in a location.  We
18559         need to pull out the last of these 0 lengthed tags.
18560
18561 2006-09-25  Jackson Harper  <jackson@ximian.com>
18562
18563         * TextControl.cs: Fix print out in debug method.
18564         * TextBoxBase.cs: When text is set bail if we are setting to the
18565         previous value.
18566         
18567 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
18568
18569         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
18570           It is now possible to change the selected index in a FontXXXListBox
18571           with the up and down arrow keys from the FontXXXTextBoxes.
18572           Also, send the FontXXXTextBox mouse wheel event to the corresponding
18573           FontXXXListBoxes to match ms.
18574
18575 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
18576
18577         * SystemInformation.cs: Return a clone of the theme's MenuFont because
18578         anyone can dispose it, anytime. All other properties returns enums, 
18579         structs or basic types so they don't need such tricks.
18580
18581 2006-09-22  Jackson Harper  <jackson@ximian.com>
18582
18583         * XplatUI.cs:
18584         * XplatUIWin32.cs:
18585         * Clipboard.cs:
18586         * DataFormats.cs:
18587         * XplatUIOSX.cs:
18588         * XplatUIDriver.cs: Update interface to add a primary selection
18589         flag, so the driver can use the primary selection buffer if
18590         needed.
18591         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
18592
18593         * RichTextBox.cs: We need to supply the data object to paste now
18594         (so we can choose to supply CLIPBOARD or PRIMARY).
18595         * TextBoxBase.cs: Supply data object to paste (see above).
18596         - Middle click uses the primary selection data object.
18597         
18598 2006-09-21  Chris Toshok  <toshok@ximian.com>
18599
18600         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
18601         of SetWMStyles.  It's still a rat's nest and is largely
18602         order-dependent which I dislike immensely.  This also fixes the X
18603         button disappearing from toplevel forms.
18604
18605 2006-09-21  Mike Kestner <mkestner@novell.com>
18606
18607         * ListBox.cs: move Jordi's click/dblclick raising code to the
18608         mouse up handler.
18609
18610 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
18611
18612         * ListBox.cs: Fixes 79450
18613
18614 2006-09-21  Mike Kestner <mkestner@novell.com>
18615
18616         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
18617         to deal with people updating the TreeNodeCollection after the tree
18618         is disposed.  "Fixes" 79330.
18619
18620 2006-09-20  Jackson Harper <jackson@ximian.com>
18621
18622         * TextControl.cs: Push the cursor record onto the undo stack
18623         before the delete action. This fixes 78651.
18624
18625 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
18626
18627         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
18628         CreateParams. Fixes 79329.
18629
18630 2006-09-19  Chris Toshok  <toshok@ximian.com>
18631
18632         * XplatUIX11.cs: a couple of blanket code massage passes to clean
18633         things up a bit.  First, get rid of the NetAtoms array (and the NA
18634         enum), and just embed the atoms as static fields.  Also, add a
18635         couple of functions (StyleSet and ExStyleSet) to clean up all the
18636         bitmask testing of styles.
18637
18638         * X11Structs.cs: remove the NA enum, not needed anymore.
18639         
18640 2006-09-19  Chris Toshok  <toshok@ximian.com>
18641
18642         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
18643         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
18644         added cleanup to get MessageBox titles appearing again, which were
18645         broken by my earlier fix for caption-less/ControlBox-less windows.
18646
18647 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
18648
18649         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
18650           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
18651           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
18652           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
18653           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
18654           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
18655           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
18656           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
18657           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
18658           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
18659           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
18660             Inital import.
18661         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
18662           ToolStripButton.cs: Stubs needed for above.
18663         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
18664
18665 2006-09-15  Chris Toshok  <toshok@ximian.com>
18666
18667         * XplatUIX11.cs:
18668         - make the MessageQueues hashtable Synchronized.
18669         
18670         - SendMessage: if the Hwnd is owned by a different thread, use the
18671         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
18672         thread.  Fixes bug #79201.
18673
18674 2006-09-15  Chris Toshok  <toshok@ximian.com>
18675
18676         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
18677         ControlBox == false, we disallow maximize/minimize/close.  If the
18678         form Caption is "" we also disallow move (and get rid of the Title
18679         decoration).  Unfortunately, regardless of how things are set,
18680         we're stuck with the Title and WM menu.
18681
18682 2006-09-15  Chris Toshok  <toshok@ximian.com>
18683
18684         * Application.cs: add locking around the static message_filters
18685         ArrayList, part of #79196.
18686
18687 2006-09-15  Chris Toshok  <toshok@ximian.com>
18688
18689         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
18690         Form.ControlBox == false, the window has no titlebar nor resize
18691         handles.  fixes bug #79368.
18692
18693 2006-09-15  Chris Toshok  <toshok@ximian.com>
18694
18695         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
18696         >= 0.  Fixes bug #79370.
18697
18698 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
18699         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
18700         * Control.cs:
18701             Add properties: LayoutEngine, Margin, DefaultMargin.
18702             Add method: GetPreferredSize.
18703             Move layout logic from PerformLayout to layout engines. 
18704
18705 2006-09-13  Chris Toshok  <toshok@ximian.com>
18706
18707         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
18708         fix for #79326 broke #78718, so this change addresses that.
18709
18710         - in SendWMDestroyMessages remove the call to
18711         CleanupCachedWindows, since we might be recreating the control and
18712         need to maintain the references to right Hwnd handles.  Also, set
18713         the zombie flag to true for each of the children in the hierarchy
18714         instead of calling hwnd.Dispose.  This will cause GetMessage to
18715         ignore all events for the window except for DestroyNotify.
18716
18717         - In GetMessage, ignore messages except for DestroyNotify for
18718         zombie hwnds.
18719         
18720         * Control.cs: revert the is_recreating fix from the last
18721         ChangeLog.  It's definitely "right", but it breaks switching from
18722         an MDI form to a non-MDI form.  Will need to revisit that.
18723
18724         * Hwnd.cs: add a zombie flag, which means "the
18725         client_window/whole_window handles are invalid, but we're waiting
18726         for the DestroyNotify event to come in for them".  Set the flag to
18727         false explicitly if setting WholeWindow/ClientWindow, and also
18728         when Disposing.
18729         
18730 2006-09-13  Chris Toshok  <toshok@ximian.com>
18731
18732         * XplatUIX11.cs: rework window destruction slightly.
18733
18734         - when destroying the windows associated with a control, we don't
18735         need 2 separate XDestroyWindow calls.  Just the one for the
18736         whole_window (or for client_window if whole_window is somehow
18737         IntPtr.Zero -- can this happen?) is enough.
18738
18739         - reworked SendWMDestroyMessages slightly, so we always dispose
18740         the child control hwnd's after sending the messages.
18741         
18742         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
18743         the two places it was used (one was even using hwnd.Handle and the
18744         other hwnd.client_window.  ugh), adding another call in
18745         SendWMDestroyMessages.  We need this new call because now the
18746         DestroyNotify events in the queue will be ignored for the child
18747         controls (as their hwnd's were disposed, and the window id's
18748         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
18749
18750         - this fixes bug #79326.
18751
18752 2006-09-13  Chris Toshok  <toshok@ximian.com>
18753
18754         * Control.cs: don't always set is_recreating to false at the end
18755         of RecreateHandle, since sometimes we're not done (and won't be
18756         until WndProc handles the WM_DESTROY message).  Also, set
18757         is_recreating to false in the WM_DESTROY handling code.  Part of
18758         the fix for bug #79326.
18759
18760 2006-09-13  Miguel de Icaza  <miguel@novell.com>
18761
18762         * X11DesktopColors.cs: Start the droppage of debugging messages.
18763
18764         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
18765
18766 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
18767
18768         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
18769
18770 2006-09-12  Chris Toshok  <toshok@ximian.com>
18771
18772         * DataGrid.cs (get_ListManager): if the list_manager is null, try
18773         to create it using SetDataSource.  Fixes bug #79151.
18774
18775 2006-09-11  Chris Toshok  <toshok@ximian.com>
18776
18777         * XEventQueue.cs: add a DispatchIdle property.
18778
18779         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
18780         either the queue is null, or the queue has DispatchIdle set to
18781         true.
18782         (DoEvents): set queue.DispatchIdle to false around the
18783         peek/translate/dispatch message loop in this method.  This keeps
18784         Application.Doevents from emitting idle events.  Part of the fix
18785         for #78823.
18786
18787 2006-09-11  Chris Toshok  <toshok@ximian.com>
18788
18789         * DataGrid.cs (set_DataSource): make this work for both the
18790         winforms/datagrid test and ReportBuilder.  It seems as though when
18791         we've created a ListManager (or maybe it's if we have a
18792         BindingContext?), when we set the DataSource it clears the
18793         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
18794         #79333.
18795
18796 2006-09-11  Chris Toshok  <toshok@ximian.com>
18797
18798         * XplatUIX11.cs: deal with queue being null, which happens in all
18799         the Clipboard functions.  Fixes one of the two problems mentioned
18800         in #78612.
18801
18802 2006-09-11  Chris Toshok  <toshok@ximian.com>
18803
18804         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
18805         button on various spots (including outside the menu) works closer
18806         to MS, and doesn't crash.  Fixes #79343.
18807
18808 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
18809
18810         * ListView.cs: Do not initialize item_sorter in init. To match MS,
18811         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
18812         and the internal comparer is set. When a new ListViewItemSorter is set,
18813         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
18814         was specified. No further processing is necessary if SortOrder is set
18815         to it's current value. If Sorting is modified to None, and View is
18816         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
18817         (either custom or our internal ItemComparer) to null, on 1.0 profile
18818         only set item_sorter to null if its our internal IComparer. If Sorting
18819         is modified to Ascending or Descending, then use our internal IComparer
18820         if none is set, and if the current IComparer is our internal one then:
18821         on 2.0 profile always replace it with one for new Sorting, and on 1.0
18822         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
18823         Enum.IsDefined to verify whether a valid View value is specified in
18824         its setter. Automatically sort listview items when listview is
18825         created. In Sort, do nothing if ListView is not yet created, or if
18826         no item_sorter is set (no Sorting was set, Sorting was explicitly set
18827         to None or ListViewItemSorter was set to null). Added Sort overload
18828         taking a bool to indicate whether the ListView should be redrawn when
18829         items are sorted (we use this in ListViewItemCollection to avoid double
18830         redraws). Modified our internal IComparer to take the sort order into
18831         account. In Add and AddRange methods of ListViewItemCollection, also
18832         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
18833         view), but use overload with noredraw option to avoid double redraw.
18834         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
18835         true when View is Tile, and do the same when attempting to set View to
18836         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
18837         for selected/checked indices, as it involves overhead when sorting is
18838         done while these collections are not used all that often. Instead
18839         we'll build the indices on demand. Modified IList implementation of
18840         CheckedIndexCollection to use public methods if object is int.
18841         Modified CheckedListViewItemCollection to hide checked items if
18842         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
18843         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
18844         IList implementation in SelectedIndexCollection to use public methods
18845         if object is int. Modified SelectedListViewItemCollection to hide
18846         selected items if listview is not yet created.
18847         * ListViewItem.cs: CheckedIndices list no longer needs to be
18848         maintained separately (see ListView changes). Also clone font, fixes
18849         test failure.
18850
18851 2006-09-11  Mike Kestner  <mkestner@novell.com>
18852
18853         * ComboBox.cs: if we are updating the contents of the currently
18854         selected index, refresh the control or the textbox selection.
18855         [Fixes #79066]
18856
18857 2006-09-11  Mike Kestner  <mkestner@novell.com>
18858
18859         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
18860         the 'specified' logic has been moved there.  This seems like a bug 
18861         in Control.cs, since our current SetBoundsCore completely ignores 
18862         the specified parameter.  Peter's commit seems to indicate that is 
18863         the way the MS control implementation works.  [Fixes #79325]
18864
18865 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
18866
18867         * XplatUI.cs: Set default_class_name to be composed
18868         of current domain id. This allows MWF to be loaded in multiple
18869         domains on Win32.
18870
18871 2006-09-09  Miguel de Icaza  <miguel@novell.com>
18872
18873         * X11Keyboard.cs: If we are unable to obtain the input method, do
18874         not call CreateXic to create the input context.   Should fix
18875         #78944/79276.
18876
18877 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
18878
18879         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
18880           Simplified gnome support by adding more pinvokes to get the
18881           icon for a file or mime type.
18882
18883 2006-09-08  Jackson Harper  <jackson@ximian.com>
18884
18885         * MenuAPI.cs: Deslect popup context menu items before closing the
18886         window, so that you don't see the previously selected item
18887         selected when you reopen the menu.
18888         * TextControl.cs: Update the cursor position even if we don't have
18889         focus.  This fixes typing in things like the ComboBox.  I'm not
18890         totally sure we should always set the visibility if we don't have
18891         focus, but couldn't find any corner cases where the cursor showed
18892         up when it shouldn't.
18893
18894 2006-09-08  Chris Toshok  <toshok@ximian.com>
18895
18896         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
18897         our arrays are length 256.  & 0xff before indexing.  Fixes the
18898         crash in bug #78077.
18899         
18900 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18901
18902         * ThemeWin32Classic.cs: 
18903         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
18904         is true. Handle that check box too.
18905
18906 2006-09-07  Chris Toshok  <toshok@ximian.com>
18907
18908         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
18909         79244.
18910
18911 2006-09-07  Chris Toshok  <toshok@ximian.com>
18912
18913         * Control.cs: in set_BackColor only do the work if
18914         background_color != value.
18915
18916         * XplatUIX11.cs: move the clearing of invalid areas (both client
18917         and nc) to the same block of code where we set (nc_)expose_pending
18918         to false.  That is, move it from PaintEventEnd to PaintEventStart,
18919         so things that cause invalidates from within OnPaint will trigger
18920         another call to OnPaint.  Fixes bug #79262.
18921
18922 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
18923
18924         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
18925         * FileDialog.cs: Fix typo
18926
18927 2006-09-07  Jackson Harper  <jackson@ximian.com>
18928
18929         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
18930         for tab pages if they have any.
18931
18932 2006-09-06  Mike Kestner  <mkestner@novell.com>
18933
18934         * Splitter.cs: use the "current" rect when finishing drag handle
18935         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
18936
18937 2006-09-06  Mike Kestner  <mkestner@novell.com>
18938
18939         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
18940         support offset splitters. [Fixes #79298]
18941
18942 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
18943
18944         * Mime.cs: Fixed a bug that could override the global mime type
18945           result.
18946
18947 2006-09-05  Jackson Harper  <jackson@ximian.com>
18948
18949         * TabControl.cs: Better calculation method for setting the slider
18950         pos. Prevents crashes on really wide tabs.
18951         - Draw Image on tab pages if an image list is used.
18952
18953 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18954
18955         * MonthCalendar.cs: When Font changes, the Size should be
18956         updated to fit the new font's space requirements.
18957
18958 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
18959
18960         * ListBox.cs: If the items are cleared with Items.Clear set
18961           top_index to 0.
18962
18963 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18964
18965         * MonthCalendar.cs: Handle arrow keys as input keys. Also
18966         fire DateChanged event instead of DateSelected event when
18967         the date was changed by keyboard interaction.
18968
18969 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18970
18971         * DateTimePicker.cs: Handle DateChanged for the associated
18972         month_calendar control, and set month_calendar.Font from 
18973         OnFontChanged method, as well as resize the height of the
18974         control when needed. Make PreferredHeight proportional.
18975
18976 2006-09-01  Chris Toshok  <toshok@ximian.com>
18977
18978         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
18979         properties.
18980
18981         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
18982
18983 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
18984
18985         * FileDialog.cs: Set ClientSize instead of window size, to allow space
18986           for decorations (Fixes #79219)
18987
18988 2006-09-01  Mike Kestner  <mkestner@novell.com>
18989
18990         * ComboBox.cs: first stab at sorting plus some selection handling
18991         fixes to bring us more in line with MS behavior.  Also switches back
18992         to index based selection.  Alternative patches for index-based 
18993         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
18994         and latency@gmx.de on bug 78848.  I assume they were similar to this
18995         code I've had simmering in my tree forever.
18996         [Fixes #78848]
18997
18998 2006-09-01  Chris Toshok  <toshok@ximian.com>
18999
19000         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
19001         when setting list position guard against ending up with a -1 index
19002         (the other part of the fix for #78812).  Should probably make sure
19003         we don't need the analogous fix in the ItemDeleted case.
19004
19005         * DataGrid.cs:
19006         - in SetDataSource, work around the fact that the way
19007         OnBindingContextChanged is invoked will cause us to re-enter this
19008         method.  I'll remove the hack once I investigate
19009         OnBindingContextChanged.
19010
19011         - fix the logic in set_DataSource and set_DataMember (basically
19012         what to do if the other of the two is null.)
19013         
19014         - in OnListManagerItemChanged, we need to take into account the
19015         edit row when deciding whether or not to call RecreateDataGridRows
19016         (part of the fix for #78812).
19017
19018 2006-09-01  Jackson Harper  <jackson@ximian.com>
19019
19020         * Splitter.cs: Don't do anything if there is no control to affect
19021         (prevents us from crashing in weird tet cases).
19022         * TreeView.cs: Bounding box for the mouse movement reverting
19023         focus/selection back to previously selected node.  This matches
19024         MS, and makes the tree a lot more useable.
19025         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
19026         use clipping so they are not drawn.  This fixes when the control
19027         is set to have a transparent background, or if it was over an
19028         image.
19029
19030 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
19031
19032         * MimeIcon.cs: Improved handling for reading default icons when
19033           using gnome (2.16 made it necessary). Check and read svg icons
19034           first, then 48x48 and then 32x32 icons.
19035
19036 2006-08-31  Chris Toshok  <toshok@ximian.com>
19037
19038         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
19039         visible.
19040
19041         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
19042         ProcessKeyPreview.  Fixes part of #77806.
19043
19044         * DataGrid.cs: big patch.
19045
19046         - revert the queueing up of DataSource/DataMember if inside
19047         BeginInit/EndInit calls.  That's not the way the datagrid achieves
19048         its delayed databinding.  Instead, call SetDataSource in
19049         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
19050         #78811.
19051
19052         - Also, it wasn't mentioned in #78811, but the test case exhibits
19053         behavior that was lacking in our datagrid implementation - Columns
19054         that have mapping names that don't exist in the datasource's
19055         properties aren't shown.  Yuck.  To fix this I added the bound
19056         field to the column style, and basically any calculation to figure
19057         out anything about columns uses a loop to find the bound columns.
19058         still need to investigate if I can cache an array of the bound
19059         columns or if the indices must be the same.
19060
19061         - When setting CurrentCell, we no longer abort if the cell being
19062         edited was in the add row.  This fixes the other part of #77806.
19063
19064         - The new code also fixes #78807.
19065         
19066         * ThemeWin32Classic.cs: perpetrate the same disgusting
19067         column.bound field hack, and only render bound fields.
19068
19069 2006-08-31  Chris Toshok  <toshok@ximian.com>
19070
19071         * DataGridColumnStyle.cs: add bound field.  this field is true if
19072         the datasource has a property corresponding to the mapping name.
19073
19074         * DataGridTableStyle.cs: set the bound field on the column styles
19075         depending on whether or not we have a column for that property.
19076
19077 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
19078
19079         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
19080           splitter control (fixes #79228)
19081
19082 2006-08-31  Chris Toshok  <toshok@ximian.com>
19083
19084         * DataGridColumnStyle.cs: we need to delay the assignment of
19085         property descriptor until the last possible moment due to the lazy
19086         databinding stuff in the datagrid.  Also, fix the exceptions
19087         thrown by CheckValidDataSource to match MS.
19088
19089 2006-08-31  Jackson Harper  <jackson@ximian.com>
19090
19091         * Form.cs: When activated select the active control, if there is
19092         no active control, we select the first control.
19093         * XplatUIX11.cs: If there is no focus control when we get a
19094         FocusIn event, find the toplevel form and activate it.  This
19095         occurs when you popup a window, it becomes the focus window, then
19096         you close that window, giving focus back to the main window.
19097
19098 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19099
19100         * MonthCalendar.cs: 
19101         * ThemeWin32Classic.cs: Cache Font in bold style, as well
19102         as StringFormat with Center alignments in MonthCalendar,
19103         instead of creating new ones when drawing the control. 
19104         Also, draw the month name in bold style.
19105
19106 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
19107
19108         * Control.cs:
19109           - PerformLayout(): It would seem MS performs the fill even if the 
19110             control is not visible (part of #79218 fix)
19111           - ResetBackColor(): Use the setter to reset the color, to allow
19112             overriders to catch the change.
19113         * Form.cs:
19114           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
19115           - CreateHandle(): dito (part of $79218 fix)
19116           - Don't set an icon if we have a dialog
19117         * ScrollableControl.cs:
19118           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
19119           - ScrollIntoView(): No need to scroll if control is already visible
19120             (resolves fixme and fixes #79218)
19121
19122 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19123
19124         * MonthCalendar.cs: Change proportions in SingleMonthSize
19125         to match the aspect of the original control.
19126
19127 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
19128
19129         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
19130           get updated when they get maximized.
19131
19132 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
19133
19134         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
19135
19136 2006-08-29  Chris Toshok  <toshok@ximian.com>
19137
19138         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
19139
19140 2006-08-29  Jackson Harper  <jackson@ximian.com>
19141
19142         * TreeView.cs: Need to track selected node and highlighted node,
19143         they aren't always the same thing, when the mouse is down on a
19144         node it is hilighted, but not selected yet.
19145         - Do the HideSelection stuff right
19146         - Need to focus on rbutton mouse down. And redraw selection when
19147         right click is mouse upped.
19148
19149 2006-08-29  Mike Kestner  <mkestner@novell.com>
19150
19151         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
19152         when SubItems.Count < Columns.Count.  [Fixes #79167]
19153
19154 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
19155
19156         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
19157
19158 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
19159
19160         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
19161           from X. Only send based on ConfigureNotify if we don't have the
19162           correct location in hwnd (if the window manager moved us)
19163
19164 2006-08-28  Mike Kestner  <mkestner@novell.com>
19165
19166         * ListView.cs: remove a TODO. 
19167         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
19168         [Fixes ListView part of #79166]
19169
19170 2006-08-28  Mike Kestner  <mkestner@novell.com>
19171
19172         * ListView.cs: move wheel handler to parent since it is focused
19173         instead of the item_control now.  [Fixes #79177]
19174
19175 2006-08-28  Mike Kestner  <mkestner@novell.com>
19176
19177         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
19178         when the control is focused. [Fixes #79171]
19179
19180 2006-08-28  Mike Kestner  <mkestner@novell.com>
19181
19182         * ListView.cs: size the item and header controls for empty and
19183         unscrollable views.
19184         * ThemeWin32Classic.cs: draw disabled backgrounds.
19185         [Fixes #79187]
19186
19187 2006-08-28  Chris Toshok  <toshok@ximian.com>
19188
19189         * Form.cs: remove unused "active_form" static field.
19190
19191         * Hwnd.cs: lock around accesses to static windows collection.
19192
19193         * Application.cs: lock threads in Exit ().
19194
19195 2006-08-28  Chris Toshok  <toshok@ximian.com>
19196
19197         * NativeWindow.cs: lock around accesses to window_collection.
19198         
19199 2006-08-28  Chris Toshok  <toshok@ximian.com>
19200
19201         * Control.cs: err, fix this the right way, by locking on controls
19202         when using it.  not by making it synchronized.
19203
19204 2006-08-28  Chris Toshok  <toshok@ximian.com>
19205
19206         * Control.cs: make the static "controls" field synchronized, as it
19207         gets updated from multiple threads.
19208
19209 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
19210
19211         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
19212           Prevent other threads from exiting when calling thread sets quit state.
19213         * XEventQueue.cs: Added PostQuitState property
19214
19215 2006-08-27  Chris Toshok  <toshok@ximian.com>
19216
19217         * AsyncMethodData.cs: add a slot for the window handle.
19218
19219         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
19220         window (the destination control's window, not the foster window).
19221
19222         * Control.cs (BeginInvokeInternal): store the window's handle in
19223         the AsyncMethodData.
19224         
19225
19226 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
19227
19228         * XplatUIX11.cs:
19229           - PostQuitMessage: Removed resetting S.D display handle, we might have
19230             another loop started after calling PostQuitMessage (Fixes #79119)
19231           - Created destructor to reset S.D handle
19232
19233 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
19234
19235         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
19236
19237 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
19238
19239         * TextControl.cs (Insert): Update the caret position even if we don't
19240           have a handle yet, just don't call the driver in that case.
19241         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
19242           to the end of the new selection text (Fixes #79184)
19243
19244 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
19245
19246         * Form.cs (Activate): Only activate if the handle is created)
19247         * Control.c:
19248           - Mark window as invisible when it's disposed
19249           - Check if window handle is created when setting window visible, 
19250             instead of relying just on the is_created variable
19251           - Check if object is disposed when creating the control (Fixes #79155)
19252
19253 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
19254
19255         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
19256           when allowing layout again. Otherwise we re-generate the anchoring 
19257           distance to the border again and actually alter what the user wanted
19258           This is ugly, it'd be better if we used DisplayRectangle instead of
19259           ClientRectangle for Control.UpdateDistances, but that causes us to
19260           have other problems (initial anchoring positons would be wrong)
19261           (Fixes #78835)
19262
19263 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
19264
19265         * Control.cs:
19266           - The size and location setters shouldn't go directly to 
19267             SetBoundsCore, but to SetBounds, which triggers layout on the
19268             parent, then calls SetBoundsCore. (Related to fix for #78835)
19269           - SetBounds: Moved actual location update code into this function
19270             from SetBoundsCore, to match MS. Added call to PerformLayout if
19271             we have a parent (to trigger resizing of anchored parents if the 
19272             child size has changed (see testcase for #78835) 
19273         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
19274           new control code
19275         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
19276
19277 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
19278
19279         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
19280           System.Drawing when a toplevel window gets closed; there might
19281           be other toplevel windows belonging to the same app (Fixes #78052)
19282
19283 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
19284
19285         * FileDialog.cs: After reading FileDialog settings from mwf_config
19286           use Desktop prefix only if a real folder doesn't exist anymore.
19287         * FontDialog.cs: Added char sets.
19288           It is now possible to select the font, size or style with the
19289           textboxes.
19290
19291 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
19292
19293         * PrintPreviewDialog.cs: Use assembly name constants.
19294
19295 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
19296
19297         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
19298           scrollbar from whacking it's buttons)
19299
19300 2006-08-24  Chris Toshok  <toshok@ximian.com>
19301
19302         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
19303         in this patch (aggregating setting Left/Top/Width/Height to
19304         setting Bounds on the scrollbars), but the crux of the fix is in
19305         Recalculate, where we scroll by the remaining scroll_position if
19306         we're hiding a scrollbar.  The 2*$5 reward in the comment is
19307         serious.
19308
19309 2006-08-24  Jackson Harper  <jackson@ximian.com>
19310
19311         * MdiClient.cs:
19312         * MdiWindowManager.cs: If the form is made a non-mdi window we
19313         need to remove the form closed event so that closing forms works
19314         correctly.
19315
19316 2006-08-24  Jackson Harper  <jackson@ximian.com>
19317
19318         * Control.cs: Make IsRecreating internal so that the driver can
19319         check it
19320         - Temporarily remove the Hide when controls are removed, its
19321         making a whole bunch of things not work because visibility isn't
19322         getting reset elsewhere correctly
19323         * Form.cs: Need to do a full handle recreation when the mdi parent
19324         is set.
19325         * XplatUIX11.cs: If we are recreating handles don't dispose the
19326         HWNDs.  What was happening is the handles were being recreated in
19327         SendWMDestroyMessages, but then flow continued on in that method
19328         and destroyed the new handles.
19329
19330 2006-08-23  Jackson Harper  <jackson@ximian.com>
19331
19332         * Form.cs: MdiClient is always at the back of the bus
19333         * Control.cs: When the order of items in the collection is changed
19334         we need to reset the all_controls array
19335         - do the same sorta setup thats done when adding a control when a
19336         control is set on the collection.
19337
19338 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
19339
19340         * TextBoxBase.cs (get_Text): Return an empty array if our document
19341           is empty (fixes #79052)
19342
19343 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
19344
19345         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
19346           on WM_SYSCHAR messages (fixes #79053)
19347
19348 2006-08-23  Chris Toshok  <toshok@ximian.com>
19349
19350         * DataGrid.cs: fix flickering when scrolling vertically.
19351
19352 2006-08-23  Chris Toshok  <toshok@ximian.com>
19353
19354         * DataGrid.cs (EndEdit): only invalidate the row header when we
19355         need to.
19356
19357 2006-08-23  Chris Toshok  <toshok@ximian.com>
19358
19359         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
19360         methods.  fixes the flicker when scrolling around.
19361
19362 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
19363
19364         * FileDialog.cs: Making sure the control is created before we get a 
19365           chance to use it with BeginInvoke (Fixes #79096)
19366
19367 2006-08-23  Chris Toshok  <toshok@ximian.com>
19368
19369         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
19370         width to use when painting the rows.
19371
19372 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
19373
19374         * TextBoxBase.cs:
19375           - Throw ArgumentException if a negative value is passed to SelectionLength
19376           - Update the selection end if start is moved. end needs to be always
19377             after start. (Fixes #79095)
19378           - Track selection length; MS keeps the selection length even if start
19379             is changed; reset on all other operations affection selection
19380
19381 2006-08-22  Jackson Harper  <jackson@ximian.com>
19382
19383         * TreeView.cs: Make sure both scrollbars get displayed and sized
19384         correctly when the other bar is visible.
19385         - Use the original clip rectangle for checking if the area between
19386         the two scrollbars is visible, not the viewport adjusted clipping
19387         rectangle.
19388
19389 2006-08-22  Jackson Harper  <jackson@ximian.com>
19390
19391         * Binding.cs: We don't use IsBinding because it requires the
19392         control to be created, which really shouldn't be necessary just to
19393         set a property on the control.
19394
19395 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19396
19397         * ComboBox.cs: Some CB.ObjectCollection methods must throw
19398         ArgumentNullReferenceException when the argument is null.
19399
19400 2006-08-21  Jackson Harper  <jackson@ximian.com>
19401
19402         * Timer.cs: Track the thread that the timer is started in (NOT
19403         CREATED), this way messages for it will only be triggered on its
19404         queue.
19405         * XEventQueue.cs: Track the timers here, this makes timers per
19406         thread, like MS.
19407         * XplatUIX11.cs: The timers are moved to the XEventQueue.
19408
19409 2006-08-19  Chris Toshok  <toshok@ximian.com>
19410
19411         * XplatUIX11.cs: after further communication with pdb, we get the
19412         best of both worlds.  SetZOrder working for un-Mapped windows, and
19413         no X errors for un-mapped windows.
19414
19415 2006-08-19  Chris Toshok  <toshok@ximian.com>
19416
19417         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
19418         as it was causing pdn toolbars to not have the correct stacking.
19419
19420 2006-08-18  Mike Kestner  <mkestner@novell.com> 
19421
19422         * ListView.cs : guard against negative ClientArea.Width in scrollbar
19423         calculation.  Not sure why control should ever be setting a negative
19424         width though.  Fixes #78931.
19425
19426 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19427
19428         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
19429         null items in ObjectCollection class.
19430         * ListBox.cs.: Likewise.
19431
19432 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
19433
19434         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
19435           as the base method in ThemeWin32Classic should work fine.
19436           Fixed bug #78607.
19437
19438 2006-08-18  Jackson Harper  <jackson@ximian.com>
19439
19440         * Binding.cs: When validating if the value entered doesn't convert
19441         properly reset to the old value.
19442         * RadioButton.cs: Don't fire click when we get focus.
19443
19444 2006-08-18  Jackson Harper  <jackson@ximian.com>
19445
19446         * FileDialog.cs: Paint the selection on the directory combobox the
19447         same way as on MS. 
19448
19449 2006-08-17  Jackson Harper  <jackson@ximian.com>
19450
19451         * ErrorProvider.cs: Don't allow the error control to be selected.
19452         * Control.cs: Don't send the SetFocus messages, the control
19453         activation will do this, and if we do it blindly here validation
19454         does not work.
19455
19456 2006-08-17  Jackson Harper  <jackson@ximian.com>
19457
19458         * Control.cs:
19459         * ContainerControl.cs: Make validation events fire in the correct
19460         order.  TODO: For some reason the first validation event is not
19461         getting fired.
19462
19463 2006-08-17  Mike Kestner  <mkestner@novell.com> 
19464
19465         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
19466
19467 2006-08-17  Mike Kestner  <mkestner@novell.com> 
19468
19469         * ComboBox.cs : implement scroll wheel support for popped-down
19470         state. Fixes #78945. 
19471
19472 2006-08-17  Jackson Harper  <jackson@ximian.com>
19473
19474         * TreeView.cs: Specify treeview actions (old patch that didn't get
19475         committed for some reason).
19476         - Don't let the mouse wheel scroll us too far.  Just want to make
19477         the bottom node visible, not scroll it all the ways to the top.
19478
19479 2006-08-17  Jackson Harper  <jackson@ximian.com>
19480
19481         * XplatUIX11.cs: Mouse wheel events go to the focused window.
19482
19483 2006-08-17  Mike Kestner  <mkestner@novell.com> 
19484
19485         * ComboBox.cs : don't do mouseover selection in simple mode.
19486
19487 2006-08-16  Jackson Harper  <jackson@ximian.com>
19488
19489         * Form.cs: Fire the closing events for all the mdi child windows
19490         when a window is closed.  If the cancel args are set to true, the
19491         main window still gets the event fired, but it doesn't not close.
19492         * MdiWindowManager.cs: Do this closing cleanup in a Closed
19493         handler, instead of when the button is clicked, so cancelling the
19494         close works correctly.
19495         * ComboBox.cs: Send the mouse down to the scrollbar.
19496
19497 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19498
19499         * ListBox.cs: When passing 'null' to SelectedItem,
19500         set SelectedIndex to -1, to unselect items. This is the
19501         observed behaviour in .Net.
19502
19503 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
19504
19505         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
19506           MS flags saying there won't be any. (fixes #78800)
19507         * Control.cs (HandleClick): Made virtual
19508
19509 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
19510
19511         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
19512           cultures. Fixed bug #78399.
19513
19514 2006-08-16  Jackson Harper  <jackson@ximian.com>
19515
19516         * Form.cs: Use the MdiClients MdiChildren property to access
19517         MdiChildren instead of creating the array from the child controls.
19518         * MdiClient.cs: Maintain a separate array of the mdi children, so
19519         that insertion order is maintained when the Z-order is changed.
19520
19521 2006-08-16  Mike Kestner  <mkestner@novell.com> 
19522
19523         * ListView.cs : add an ItemComparer and default to it for sorting.
19524         Fixes #79076, but sorting needs a complete overhaul to be compat with
19525         MS.
19526
19527 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
19528
19529         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
19530
19531 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
19532
19533         * Hwnd.cs (Mapped): Properly traverse the tree
19534
19535 2006-08-15  Chris Toshok  <toshok@ximian.com>
19536
19537         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
19538         pass manager.Current.GetType() to ParseData.  It has to be the
19539         property type.  So, hold off doing the ParseData until we're in
19540         SetPropertyValue where we know the type.  This fixes the crash in
19541         #78821 but the textbox is still empty.
19542
19543 2006-08-15  Chris Toshok  <toshok@ximian.com>
19544
19545         * DataGrid.cs:
19546         - when we're scrolling, only call Edit() again if the
19547         current cell is still unobscured. Fixes bug #78927.
19548         - when handling mousedown on a cell, ensure the cell is visible
19549         before calling Edit.
19550         - remove the properties from DataGridRow, and remove the
19551         DataGridParentRow class altogether.
19552         
19553
19554 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
19555
19556         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
19557           fire OnTextChanged by ourselves. There's no point calling base,
19558           we don't set the base value anywhere else. Fixes #78773.
19559
19560 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19561
19562         * ListBox.cs: Call CollectionChanged when modifying
19563         an item from Items indexer, to update the actual items
19564         in the list box.
19565
19566 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19567
19568         * PrintDialog.cs: Small fixes for focus and a pair of checks,
19569         to match .Net behaviour.
19570
19571 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
19572
19573         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
19574
19575 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
19576
19577         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
19578
19579 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
19580
19581         * MessageBox.cs: Prevent potential NRE exception.
19582         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
19583
19584 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
19585
19586         * MessageBox.cs: Calculate the owner of a messagebox, also make
19587           it topmost. Fixes #78753
19588
19589 2006-08-14  Chris Toshok  <toshok@ximian.com>
19590
19591         * XplatUIX11.cs: A couple of fixes so that metacity will let us
19592         programmatically move windows.  first, set the PPosition hint as
19593         well as the USPosition hint.  Second include some code from pdb
19594         that sets the window type to NORMAL when we set the transient for
19595         hint.  This is because, in the absence of a window type, metacity
19596         thinks any window with TransientFor set is a dialog, and refuses
19597         to let us move it programmatically.  fascists.
19598
19599 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
19600
19601         * XplatUIX11.cs: When setting normal hints, take into consideration
19602           an different hints previously set so we don't delete them (fixes #78866)
19603
19604 2006-08-12  Chris Toshok  <toshok@ximian.com>
19605
19606         * ToolBarButton.cs: make Layout return a boolean, if something to
19607         do with the button's layout changed.
19608
19609         * ToolBar.cs:
19610         - add another parameter to Redraw, @force, which all existing
19611           calls set to true.
19612         - make the Layout function return a boolean which is true if the
19613           layout has actually changed.  Redraw now uses this (and @force)
19614           to determine when to invalidate.  At present the only place
19615           where @force can be false is the call from OnResize, when
19616           background_image == null.  So, resizing a toolbar when the
19617           layout doesn't change results in no drawing.
19618
19619 2006-08-12  Chris Toshok  <toshok@ximian.com>
19620
19621         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
19622         the VScrollBar and HScrollbar reversed.  oops.
19623
19624         * DataGrid.cs: fix the logic that assigns sizes to the implicit
19625         scrollbars.  we were assigning them twice (once in
19626         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
19627         therefore causing two scrollbar resizes (and redraws?) to happen
19628         per grid resize.
19629
19630 2006-08-12  Chris Toshok  <toshok@ximian.com>
19631
19632         * ToolBarButton.cs: redraw the entire button if the theme tells us
19633         to.
19634
19635         * Theme.cs: add ToolBarInvalidateEntireButton.
19636
19637         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
19638         buttons, just the border.
19639
19640         * ThemeNice.cs: redraw the entire toolbar button since we need to
19641         draw the highlight image.
19642
19643         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
19644         we need to redraw the entire button (not just the border).
19645
19646 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
19647
19648         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
19649           for vertical bars. Fixes the mismatches shown by #78513
19650
19651 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
19652
19653         * FileDialog.cs: If a saved/remembered path doesn't exist
19654           anymore, fall back to "Desktop".
19655
19656 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
19657
19658         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
19659           parent. It's apparently legal to not have one
19660         * XplatUIX11.cs:
19661           - SetZOrder: Don't try to set Z-Order on an unmapped window
19662           - CreateWindow: 0,0 are legal coordinates for a window. don't move
19663             it unless the coordinates are negative
19664
19665 2006-08-10  Mike Kestner  <mkestner@novell.com>
19666
19667         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
19668         when setting to null per msdn docs.  Fixes #78854.
19669
19670 2006-08-10  Chris Toshok  <toshok@ximian.com>
19671
19672         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
19673         flickering by setting a clip rectangle on the Graphics when we
19674         need to redraw just a particular menuitem.  Also, rename "OnClick"
19675         to "OnMouseDown" to reflect what it actually is.
19676         
19677         * Form.cs: track the OnMouseDown change.
19678
19679 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
19680
19681         * CommonDialog.cs: Properly inherit the CreateParams from the form
19682           and only change what we need. Fixes #78865
19683
19684 2006-08-10  Chris Toshok  <toshok@ximian.com>
19685
19686         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
19687         flickering in flat mode (and most of the flickering in general) by
19688         only invalidating the button border (and not the entire rectangle)
19689         when the state changes.  A couple of cases still flicker:
19690         ToggleButtons, and the dropdown arrow case when the user mouse
19691         ups.
19692
19693 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
19694
19695         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
19696           for german keyboards. Numlock state shouldn't affect the behaviour
19697           of the Del key. Fixes bug #78291.
19698
19699 2006-08-10  Chris Toshok  <toshok@ximian.com>
19700
19701         * ListControl.cs: remove the items.Clear line from BindDataItems,
19702         as this is the first thing done by both subclasses in their
19703         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
19704         passed -1, refresh the list.  This gets databinding working when
19705         the datasource is set on the list before the datasource is
19706         populated (as in wf-apps/ReportBuilder.)
19707
19708         * ComboBox.cs: remove the argument to BindDataItems.  This call
19709         should really go away, and be initiated by the ListControl code.
19710
19711         * ListBox.cs: same.
19712
19713 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
19714
19715         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
19716           if no data is in the document when the control is displayed
19717
19718 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
19719
19720         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
19721           yes (fixes #78806)
19722         * TextControl.cs: 
19723           - PositionCaret: Allow positioning of caret but don't call methods 
19724             requiring a handle if the window isn't created yet
19725           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
19726           - owner_HandleCreated: Don't position the caret, just update it's 
19727             location. User might have already set a different position
19728
19729 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
19730
19731         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
19732           windows. Screws up the returned coordinates for child windows. 
19733           Fixes #78825. I'm hoping this doesn't break something, since the
19734           code was explicitly put in 8 months ago, but no bug was attached.
19735           Menus still seem to work properly.
19736
19737 2006-08-08  Chris Toshok  <toshok@ximian.com>
19738
19739         * DataGrid.cs: make BeginInit/EndInit actually do what they're
19740         supposed to do - delay data binding until the EndInit call.  Also,
19741         make the table style collection's CollectionChangeAction.Refresh
19742         work properly.
19743
19744         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
19745         (with action = Refresh) when a consituent table's MappingName is
19746         changed.
19747
19748 2006-08-08  Chris Toshok  <toshok@ximian.com>
19749
19750         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
19751         Invalidate, since changing the text can change the size of the all
19752         toolbar buttons.
19753
19754 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
19755
19756         * Form.cs (AddOwnedForm): Still need to add the form to our listif
19757           we don't have it yet
19758
19759 2006-08-08  Chris Toshok  <toshok@ximian.com>
19760
19761         * PrintControllerWithStatusDialog.cs: don't .Close() the status
19762         dialog, as this causes X errors later on, since we actually
19763         destroy the window.  Instead, .Hide() it.
19764
19765 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
19766
19767         * ComboBox.cs: Added focus reflection for popup window
19768         * XplatUIX11.cs: 
19769           - Removed transient setting for non-app windows for now, not sure it
19770             was needed
19771           - Fixed logic checking if we have captions when deciding 
19772             override_redirect, WS_CAPTION is two bits and a 0 check was not
19773             sufficient
19774           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
19775             complicated
19776         * Form.cs: 
19777           - AddOwnedForm: Don't just add the form to the list, call the property
19778             to ensure the driver is informed about the ownership as well
19779           - CreateHandle: Set the TopMost status in the driver if we have an owner
19780         * XplatUI.cs: Fixed debug statement
19781
19782 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
19783         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
19784           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
19785           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
19786           TrackBarRenderer.cs: Make constructor private.
19787         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
19788         * ProfessionalColorTable.cs: Make properties virtual.
19789
19790 2006-08-06  Duncan Mak  <duncan@novell.com>
19791
19792         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
19793         is not changing.
19794
19795 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
19796         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
19797           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
19798           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
19799           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
19800           Initial import of new 2.0 classes.
19801
19802 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
19803         * Application.cs: Add 2.0 VisualStyles properties.
19804
19805 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
19806         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
19807           XplatUIX11.cs: Create property to allow access to existing private
19808           variable "themes_enabled"
19809
19810 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19811
19812         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
19813         file size, as otherwise our class libraries fail using windows. Fixes
19814         bug #78759.
19815
19816 2006-08-04  Jackson Harper  <jackson@ximian.com>
19817
19818         * Form.cs:
19819         * XplatUIX11.cs: Move the toolwindow window manager creation into
19820         the X11 driver, this way on win32 we can let windows create/handle
19821         the toolwindows.
19822
19823 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19824
19825         * PrintDialog.cs: Remove some redundant checks, add some others,
19826         clean some code, and move the focus to the text boxes when the
19827         values are incorrect.
19828
19829 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
19830
19831         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
19832
19833 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
19834
19835         * NumericUpDown.cs: Setting the Minimum and Maximum is now
19836           handled correctly. Fixes bug #79001.
19837
19838 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19839
19840         * PrintDialog.cs: The "Copies" numeric up down must have
19841         set the Minimum property to 1; only if the value is bigger
19842         than 1, activate "Collate" check box. This is the behaviour of .Net.
19843         Also modify the Document elements only if it is not null.
19844
19845 2006-08-03  Jackson Harper  <jackson@ximian.com>
19846
19847         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
19848         length. (We have a larger array then actual node count).
19849                 
19850 2006-08-03  Jackson Harper  <jackson@ximian.com>
19851
19852         * ComboBox.cs: Don't show selection by default.
19853         - The SelectAll isn't needed here, since the focus code should do
19854         that
19855         - DDL style lists to manual selection drawing, so when they
19856         get/lose focus they have to invalidate.
19857
19858 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
19859
19860         * TextBoxBase.cs: Don't always show all selections by default.
19861
19862 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
19863         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
19864           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
19865           Fixed various typos.
19866
19867 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
19868
19869         * Control.cs: Removing the controls in a ControlCollection with
19870           Clear now hides the controls as expected. Fixes bug #78804. 
19871
19872 2006-08-03  Jackson Harper  <jackson@ximian.com>
19873
19874         * Control.cs: Revert previous focus patch, it breaks reflector.
19875
19876 2006-08-03  Jackson Harper  <jackson@ximian.com>
19877
19878         * ComboBox.cs: Cleanup selection and focus with the combobox.
19879         This also eliminates some duplicated keyboard code, since now
19880         everything is handled by the main class.
19881         - Make list selection work on mouse up instead of down, to match
19882         MS.
19883
19884 2006-08-02  Jackson Harper  <jackson@ximian.com>
19885
19886         * Control.cs: Setting focus needs to go through the whole
19887         selection mechanism.
19888
19889 2006-08-02  Chris Toshok  <toshok@ximian.com>
19890
19891         * PrintPreviewDialog.cs: change MinimumSize to use
19892         base.MinimumSize so it works.
19893
19894 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
19895
19896         * TextControl.cs:
19897           - UpdateCaret: Added sanity check in case caret isn't defined yet
19898           - Line.Delete: Now updating selection and caret markers if we're
19899             transfering a node (Properly fixes #78323)
19900           - SetSelectionEnd: Added sanity check
19901         * TextBoxBase.cs: Removed broken attempt to fix #78323
19902
19903 2006-08-01  Chris Toshok  <toshok@ximian.com>
19904
19905         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
19906         Close() call is handled in Form, not here.
19907
19908 2006-08-01  Chris Toshok  <toshok@ximian.com>
19909
19910         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
19911         layout/rendering.
19912
19913         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
19914         for sizes < 100% zoom.  The code now aggressively attempts to keep
19915         from calling document.Print (), and tries not to use the scaling
19916         g.DrawImage whenever possible (it still does if you scale to >
19917         100%, since usually that involves huge images).
19918
19919         * PrintPreviewControl.cs: hook up the close button.
19920
19921 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
19922         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
19923           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
19924           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
19925           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
19926           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
19927           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
19928           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
19929           Removed [Serializable] for 2.0 Event Handlers.
19930
19931 2006-07-31  Jackson Harper  <jackson@ximian.com>
19932
19933         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
19934         * TextControl.cs: Uncomment out the body of this method.
19935
19936 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
19937
19938         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
19939           standard cursors.
19940
19941 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
19942
19943         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
19944           that embed TextBox and need selections visible even if textbox is not
19945           focused to enforce that behaviour.
19946         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
19947           selection drawing
19948
19949 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
19950
19951         * TextControl.cs:
19952           - Added new SetSelectionStart/SetSelectionEnd overloads
19953           - Fixed viewport width assignment to be accurate
19954           - Adjusted alignment line shift calculations to allow cursor on right
19955             aligned lines to be always visible at the right border (like MS)
19956         * TextBoxBase.cs:
19957           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
19958           - TextBoxBase_SizeChanged: recalculating canvas on size changes
19959           - CalculateScrollBars: Use ViewPort size instead of window size, to
19960             properly consider space occupied by the border and scrollbars 
19961             (Fixes #78661)
19962           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
19963             calculations; no longer leaves artifacts
19964           - CaretMoved: Adjusted window scrolling to match MS and fixed several
19965             calculation bugs (Still missing right/center align calculations)
19966
19967 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
19968
19969         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
19970           use of both scroll rect and clip rect, as they do the same.
19971
19972 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
19973
19974         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
19975           in the event handler (fixes #78912)
19976
19977 2006-07-31  Chris Toshok  <toshok@ximian.com>
19978
19979         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
19980         grid.ListManager.Count, since grid.ListManager might be null.
19981         This of course begs the question "why are we drawing rows for a
19982         grid with no list manager (and therefor no rows)?"  Fixes the
19983         crash in bug #78929.
19984
19985 2006-07-31  Chris Toshok  <toshok@ximian.com>
19986
19987         * RelatedPropertyManager.cs: Don't always chain up to the parent
19988         ctor.  instead, call SetDataSource if the parent's position is !=
19989         -1.  Fixes the crash in #78822.
19990
19991 2006-07-31  Chris Toshok  <toshok@ximian.com>
19992
19993         * DataGrid.cs (get_ListManager): use field instead of property
19994         accessors for datasource and datamember.
19995         (RowsCount): make internal again.
19996         (OnMouseDown): end edits before resizing columns/rows.
19997         (OnMouseUp): restart edits after resizing columns/rows.
19998
19999 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
20000
20001         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
20002           This fixes the situation where the last set cursor is displayed
20003           whenever the mouse is over scrollbars.
20004
20005 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20006
20007         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
20008         Document properties, as well as initial values.
20009
20010 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
20011
20012         * XplatUIWin32.cs (SetBorderStyle): Setting both border
20013           and ClientEdge results in a 3-pixel border, which is
20014           wrong.
20015
20016 2006-07-28  Jackson Harper  <jackson@ximian.com>
20017
20018         * TreeNodeCollection.cs: Fix the clear method.
20019         - Fix the Shrink also
20020
20021 2006-07-27  Jackson Harper  <jackson@ximian.com>
20022
20023         * TreeView.cs: Make sure the visible order is computed when we
20024         attempt to size the scrollbars (for trees that mess with the
20025         scrolling when they shouldn't.
20026         - Make sure to give the scrollbars valid values.
20027
20028 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
20029
20030         * XplatUIX11.cs: Move motion compression code to where it
20031           has less performance impact
20032
20033 2006-07-26  Jackson Harper  <jackson@ximian.com>
20034
20035         * UpDownBase.cs: When the control is selected make the child
20036         controls non selectable, so that a click on them won't do a
20037         focus/unfocus cycle.
20038         - Don't give focus to the text box when the spinner is selected.
20039         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
20040
20041 2006-07-26  Chris Toshok  <toshok@ximian.com>
20042
20043         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
20044         satisfied with this solution.  If the bitmaps are small, we should
20045         just cache them in the PrintPreviewDialog and draw them here.
20046         Also, the layout is broken for the 2-up and 3-up cases.
20047
20048         * Theme.cs: add PrintPReviewControlPaint.
20049
20050         * PrintPreviewDialog.cs: first pass implementation.
20051
20052         * PrintPreviewControl.cs: first pass implementation.  No
20053         scrollbars yet.
20054
20055         * PrintDialog.cs: only validate fields if that particular portion
20056         of the UI is enabled.  Also, set the document's controller to a
20057         PrintControllerWithStatusDialog wrapping the document's print
20058         controller.
20059
20060         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
20061         bring up a SaveFileDialog (i hope we don't want to match the
20062         behavior of the crappy windows file entry) and set the
20063         PrinterSettings.PrintFileName accordingly.
20064
20065 2006-07-26  Jackson Harper  <jackson@ximian.com>
20066
20067         * ContainerControl.cs: Add a field that disables auto selecting
20068         the next control in a container when the container is activated.
20069         * UpDownBase.cs: Don't select the text box when the up down is
20070         selected.
20071
20072 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
20073
20074         * XEventQueue.cs: Added methods for peeking (used for compression
20075           of successive events)
20076         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
20077           mouse move events (fixes #78732)
20078
20079 2006-07-25  Jackson Harper  <jackson@ximian.com>
20080
20081         * UpDownBase.cs: Use an internal class for the textbox so that we
20082         can control focus.  the updown control should always have focus,
20083         if either the text area or the buttons are clicked.
20084         - Send the key messages to the textbox, since it never actually
20085         has focus
20086         - Activate and decativate the textbox caret.
20087
20088 2006-07-24  Jackson Harper  <jackson@ximian.com>
20089
20090         * Control.cs: Use the directed select when selecting a control,
20091         this way the container controls override will get called and the
20092         whole ActiveControl chain will get triggered.  TODO: probably need
20093         to make sure this gets done everywhere instead of the old
20094         Select(Control).
20095         * ContainerControl.cs: Implement the directed Select method to
20096         find and activate the correct child control.    
20097         
20098 2006-07-22  Mike Kestner  <mkestner@novell.com>
20099
20100         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
20101         menu handling code so that clicks without a grab work too.
20102         [Fixes #78914]
20103
20104 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
20105
20106         * FileDialog.cs: Enable the BackButton when dirstack has one element.
20107           Added some small optimizations.
20108
20109 2006-07-21  Matt Hargett  <matt@use.net>
20110
20111         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
20112
20113 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
20114
20115         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
20116           tests pass and match MS in some strange border cases.
20117
20118 2006-07-21  Chris Toshok  <toshok@ximian.com>
20119
20120         * ThemeWin32Classic.cs: handle drawing of the relation links and
20121         parent row buttons.
20122
20123         * Theme.cs: change args to DataGridPaintParentRow.
20124
20125         * DataGrid.cs: Don't use controls for the relation links and
20126         parent buttons, so we have to handle all their interactions in
20127         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
20128         when we're navigating through child tables, so we can reinstate
20129         selection, expanded state, current cell, etc.
20130
20131 2006-07-20  Chris Toshok  <toshok@ximian.com>
20132
20133         * ToolBar.cs: When we redraw a button, for whatever reason,
20134         there's no reason to redraw the entire toolbar.  Also, don't call
20135         Control.Refresh from within Redraw, as it's much heavier than
20136         Invalidate (which is really what we want).
20137
20138 2006-07-20  Chris Toshok  <toshok@ximian.com>
20139
20140         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
20141         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
20142         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
20143         traces from within a debug IBindingList datasource
20144         (in mono/winforms/datagrid) for *days*, I've finally gotten things
20145         to work in a similar fashion.
20146
20147 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20148
20149         * ListBox.cs: Don't call Sort () when setting 
20150         the Sorted property to false (avoid an unnecessary sort).
20151
20152 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20153
20154         * ListControl.cs: DataSource should throw an ArgumentException
20155         instead of a normal exception when the argument is not of the 
20156         correct type.
20157
20158 2006-07-20  Mike Kestner  <mkestner@novell.com>
20159
20160         * Control.cs: add InternalPreProcessMessage to allow us to steal
20161         key events before MWF gets its paws on them.  Adapted from a
20162         suggestion by eno.
20163         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
20164         up/down/left/right navigation. Override the new internal control
20165         method to steal the events since they never make it to WndProc.
20166         * ToolBarButton.cs: don't worry about pushed when setting hilight
20167         since the drawing code prefers pushed to hilight. Invalidate on 
20168         Hilight changes. Fixes #78547 and #78525.
20169
20170 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
20171
20172         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
20173           the canvas size. Fixes #78868
20174
20175 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
20176
20177         * Splitter.cs: Track requested split position until first layout
20178           is performed. Fixes #78871
20179
20180 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
20181
20182         * Application.cs: Removed code that forces 1.x for the version
20183           number if the version started with 0. Not sure why that code was
20184           there and I couldn't find any bugs that indicated we needed it.
20185           Fixes #78869
20186
20187 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
20188
20189         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
20190           ResetDefaults(), just write some output to the console until it's
20191           implemented. Fixes bug #78907 for now. Eliminated two warnings.
20192
20193 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
20194
20195         * PropertyGridView.cs: set StartPosition of drop down forms
20196         so they appear in correct initial spot.  Fixes #78190.
20197
20198 2006-07-19  Mike Kestner  <mkestner@novell.com>
20199
20200         * ThemeWin32Classic.cs: use parent background color when drawing
20201         flat toolbars.  Restructure the conditionals to make sure non-flat
20202         non-Divider toolbars are filled too.  Fixes #78837.
20203
20204 2006-07-19  Mike Kestner  <mkestner@novell.com>
20205
20206         * ListBox.cs: Sort on collection changes even if the handle
20207         isn't created yet.  Fixes #78813.
20208
20209 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20210
20211         * ListControl.cs: DisplayMember should never be null,
20212         and now we assign String.Empty when null is passed to it (this
20213         is the .Net way).
20214
20215 2006-07-17  Mike Kestner  <mkestner@novell.com>
20216
20217         * ListViewItem.cs: restructure Font and subitem Font handling 
20218         to hold a specific font and refer back to owner on null.
20219         Fixes #78761.
20220
20221 2006-07-17  Mike Kestner  <mkestner@novell.com>
20222
20223         * ToolBar.cs: bandaid for side-effect of previous patch which was
20224         discarding explicit heights for non-AutoSize toolbars.  Need to
20225         extend my format tester to deal with AutoSize=false. Fixes #78864.
20226
20227 2006-07-15  Jackson Harper  <jackson@ximian.com>
20228
20229         * LabelEditTextBox.cs:
20230         * TreeView.cs: Use a new LabelEdit class for node editing, this
20231         class automatically 'closes' itself when it gets the enter key or
20232         loses focus.
20233         - Use the client rectangle when setting the trees scrollbars, so
20234         border style is taken into account.
20235         
20236 2006-07-14  Jackson Harper  <jackson@ximian.com>
20237
20238         * TreeNode.cs:
20239         * TreeView.cs: Make the editing work similar to MSs, firing the
20240         events correctly and ending edits correctly.
20241
20242 2006-07-14  Mike Kestner  <mkestner@novell.com>
20243
20244         * ToolBarButton.cs:
20245         * ToolBar.cs: layout restructuring and redraw enhancements to support
20246         formatting changes gracefully, like setting TextAlign, ImageList, 
20247         ButtonSize, and Appearance.  Handles explicit button sizing quirks
20248         of the MS controls.  Things like flat toolbars ignoring button size
20249         but becoming constant sized at the largest button's size.  Normal
20250         toolbars with an image set cannot be shrunk smaller than the image,
20251         but text can be clipped/ignored.
20252         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
20253         is zero.  Seems like DrawString should be smart enough to not put
20254         anything on screen though. Also trim labels and ellipsize at the char
20255         boundary, not word.
20256         Fixes #78711 and #78483.
20257
20258 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
20259
20260         * FolderBrowserDialog.cs: Disable "New Folder" button and
20261           "New Folder" contextmenu menuitem if a folder like "My Computer"
20262           is selected.
20263
20264 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
20265
20266         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
20267         * FolderBrowserDialog.cs:
20268           - Use MWFConfig to store and read size and position settings
20269           - Added code to create a new folder (button or context menu).
20270             Use TreeView labeledit to change the name of the new folder.
20271
20272 2006-07-14  Jackson Harper  <jackson@ximian.com>
20273
20274         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
20275         when the tree is scrolled we end editing.
20276
20277 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
20278
20279         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
20280           Down arrows
20281
20282 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
20283
20284         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
20285         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
20286         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
20287         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
20288         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
20289         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
20290         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
20291         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
20292         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
20293         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
20294         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
20295         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
20296         ListViewItemSelectionChangedEventHandler.cs,
20297         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
20298         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
20299         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
20300         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
20301         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
20302         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
20303         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
20304         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
20305         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
20306         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
20307         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
20308         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
20309         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
20310         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
20311         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
20312         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
20313         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
20314         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
20315         WebBrowserNavigatingEventHandler.cs, 
20316         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
20317
20318 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
20319
20320         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
20321         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
20322         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
20323         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
20324         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
20325         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
20326         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
20327         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
20328         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
20329         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
20330         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
20331         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
20332         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
20333         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
20334         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
20335         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
20336         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
20337         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
20338         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
20339         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
20340         ListViewItemStates.cs, MaskFormat.cs: Added
20341
20342 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
20343
20344         * PropertyGridView.cs: Fix keyboard navigation of drop down.
20345         Patch from eno for bug 78558.
20346         
20347 2006-07-13  Jackson Harper  <jackson@ximian.com>
20348
20349         * TreeView.cs: When an edit is finished make sure that the
20350         selected node is visible.
20351         - When setting the top/bottom use the scrollbars is_visible, so
20352         everything will be set correctly even if the tree isn't visible
20353         yet.
20354
20355 2006-07-13  Jackson Harper  <jackson@ximian.com>
20356
20357         * ComboBox.cs: Revert the item->index part of my previous patch.
20358         * TreeView.cs: Use LostFocus instead of Leave for detecting when
20359         the edit box has lost focus (duh).
20360         - Just make the edit box not visible when we get return, that will
20361         take the focus, which will call EndEdit
20362         * TreeNode.cs When we start editing, notify the treeview.
20363
20364 2006-07-12  Jackson Harper  <jackson@ximian.com>
20365
20366         * ComboBox.cs: Clear out old items before setting the item list.
20367         This prevents databound controls from having their items added
20368         twice.
20369         - Switch the combobox to use indices whereever possible instead of
20370         using Item's.  This allows usto navigate through lists that have
20371         more then one item with the same string value (ie a, b, b, a).
20372         - Scroll the listboxes scrollbar when a non visible item is
20373         highlighted
20374         - Allow keypress to cycle through all the possible values. For
20375         example if you have b1, b2, b3 and hold down the B key all the
20376         values will be cycled through.
20377         
20378 2006-07-12  Jackson Harper  <jackson@ximian.com>
20379
20380         * TextBoxBase.cs:
20381         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
20382         this using the internal methods.
20383         * Control.cs: Add OnGotFocusInternal.  A new method that allows
20384         controls to "override" OnGotFocus and change focus behavior if
20385         needed.
20386         - Same thing for LostFocus
20387         * ComboBox.cs: Pass off focus to the text control properly.
20388
20389 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
20390
20391         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
20392         * FolderBrowserDialog.cs: Almost a complete rewrite.
20393           - Better support for Environment.Specialfolders
20394           - Added support for MWFVFS
20395           - Made setting SelectedPath work
20396
20397 2006-07-12  Jackson Harper  <jackson@ximian.com>
20398
20399         * Control.cs: Optimze getting all the controls.
20400
20401 2006-07-11  Jackson Harper  <jackson@ximian.com>
20402
20403         * ContainerControl.cs: Override SETFOCUS in the container control,
20404         so that it is not selected on mouse click.
20405
20406 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
20407
20408         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
20409           Hopefully we will have a better way once all of focus is complete.
20410
20411 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
20412
20413         * ThemeWin32Classic.cs: Commented out some debug code and fixed
20414           a compile error with csc.
20415
20416 2006-07-11  Jackson Harper  <jackson@ximian.com>
20417
20418         * Control.cs: When hiding a control only select the next control
20419         if the current control was focused.
20420         - Don't handle enter/leave when setting/killing focus, this is
20421         done by the container control.
20422         - Remove is_selected, it's not needed anymore.
20423         - Add utility methods for selecting a child control, and for
20424         firing the Enter/Leave events.
20425         * ContainerControl.cs: When a control is activated fire the
20426         enter/leave events.
20427         - Don't wrap when processing the tab key, so that focus can be
20428         moved outside of the container.
20429         - Use the correct active control
20430
20431 2006-07-11  Jackson Harper  <jackson@ximian.com>
20432
20433         * ComboBox.cs: Remove some debug code that was blinding me.
20434         * UpDownBase.cs: These controls actually aren't implicit, they are
20435         visible to the user.
20436
20437 2006-07-10  Chris Toshok  <toshok@ximian.com>
20438
20439         * DataGrid.cs: move back to the is_adding boolean field.  god i
20440         hate this is_editing/is_adding/is_changing stuff.
20441
20442 2006-07-10  Chris Toshok  <toshok@ximian.com>
20443
20444         * DataGridTableStyle.cs: just check if the property type is bool.
20445         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
20446         Don't use CanRenderType.
20447
20448         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
20449         if our text == NullText.  Remove CanRenderType.
20450
20451         * DataGridBoolColumn.cs: nuke CanRenderType.
20452
20453         * DataGrid.cs: reenable some code to end the current edit inside
20454         of set_CurrentCell.  This fixes the other 1.1.16 regression.
20455         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
20456         Also, remove the visible_row_count arg from CalcRowHeaders, since
20457         we don't need to worry about the actual height of the area.
20458
20459 2006-07-10  Chris Toshok  <toshok@ximian.com>
20460
20461         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
20462         mode, just return.
20463
20464         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
20465         the real sense of the IsInEditOrNavigateMode property (true =
20466         navigate, false = edit).  Also, update OnKeyPress to reflect this.
20467
20468         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
20469         column style exists, we still need to set its property descriptor
20470         to match up with our list manager.
20471
20472 2006-07-10  Chris Toshok  <toshok@ximian.com>
20473
20474         * ThemeWin32Classic.cs: implement the new row/header painting
20475         approach.  The parent row painting will likely go away and
20476         replaced with label controls, but the rest seems to work ok (and
20477         efficiently).
20478
20479         * Theme.cs: change the way we draw datagrid rows.  we don't draw
20480         the row headers as a block now.  Instead we draw them in the
20481         normal draw-row loop.  Add some calls for drawing parent rows and
20482         relation rows.
20483
20484         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
20485         a default table style.  Set the defaults from ThemeEngine.Current,
20486         not SystemColors.  Fix lots of misc issues with property setters.
20487
20488         * DataGrid.cs: move loads of style information out of this class
20489         as it's being duplicated with DataGridTableStyle.  keep track of a
20490         special DataGridTableStyle for the properties we used to mirror
20491         here.  Switch all the style properties to access this table style
20492         instead of instance fields of this class.  Also add a internal
20493         class to represent parent rows (more needs to be stored here, like
20494         the selection state from the parent table, as well as the
20495         expansion state.)  Also, for datasources with relations, do the
20496         right thing for collapse/expand, and add support for the
20497         navigation/parent row buttons.
20498
20499         Lastly, fix the crash in the 1.1.16 build.
20500
20501         * GridTableStylesCollection.cs: make the explicit interface
20502         implementations call the class's methods as opposed to duplicating
20503         them.
20504
20505         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
20506         0 so the text doesn't jump around when we move the cursor.
20507
20508 2006-07-10  Jackson Harper  <jackson@ximian.com>
20509
20510         * TextBoxBase.cs:
20511         * ListBox.cs: Match MS's ToString (this makes debugging focus
20512         stuff infinitely easier).
20513
20514 2006-07-10  Jackson Harper  <jackson@ximian.com>
20515
20516         * Control.cs (SelectNextControl): When checking the control's
20517         parent use this instead of ctrl.parent so that null can be passed
20518         to SelectNextControl. (I have unit tests for this).
20519         - Remove unused var.
20520
20521 2006-07-10  Chris Toshok  <toshok@ximian.com>
20522
20523         * CurrencyManager.cs: correct one regression, the removal of the
20524         finalType field.  Also, add a MonoTODO on CanAddRows, implement
20525         Refresh() correctly, and fix some event emission in
20526         ListChangedHandler.
20527
20528 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
20529
20530         * FileDialog.cs: Don't use brackets for new folders if they exist
20531           under *nix. Instead use -(number of existing folders +1).
20532
20533 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
20534
20535         * FileDialog.cs:
20536           - Fixed really nasty bug #78771
20537           - Don't block the whole GUI when reading directories with a lot of
20538             entries. Use an other thread instead and call BeginInvoke to
20539             update the ListView in MWFFileView
20540
20541 2006-07-07  Chris Toshok  <toshok@ximian.com>
20542
20543         * Control.cs (Dispose): release any Capture when disposing.
20544
20545 2006-07-07  Chris Toshok  <toshok@ximian.com>
20546
20547         * LinkLabel.cs (Select): if we chain up to the parent, set
20548         focused_index to -1 so we'll search for the first available link
20549         the next time the user tabs into us.  Also, if the direction is
20550         backward and focused_index == -1, start the search from the last
20551         element.
20552
20553 2006-07-07  Chris Toshok  <toshok@ximian.com>
20554
20555         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
20556         is beyond the end of the text, don't do anything.
20557         (CreateLinkPieces): set our ControlStyles.Selectable based on
20558         whether or not we have any links.
20559         (Link.Invalidate): use a loop instead of foreach.
20560         (Link.set_Start): null out owner.sorted_links so it'll be
20561         recreated by CreateLinkPieces.
20562
20563 2006-07-06  Chris Toshok  <toshok@ximian.com>
20564
20565         * LinkLabel.cs: revert the SetStyle change.
20566
20567 2006-07-06  Chris Toshok  <toshok@ximian.com>
20568
20569         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
20570         (OnEnableChanged): s/Refresh/Invalidate
20571         (OnGotFocus): if we have a focused index already, refocus it (so
20572         if we mouse out/in to the window it'll focus the right link).
20573         (OnKeyDown): move the tab handling out of here.
20574         (OnLostFocus): don't set focused_index to -1, so we can refocus it
20575         when we lose focus.
20576         (OnMouseDown): don't Capture here - Control handles it.  Also,
20577         focus the active link.
20578         (OnMouseUp): don't deal with Capture.
20579         (OnPaintBackgroundInternal): remove.
20580         (OnTextAlignChanged): CreateLinkPieces before calling the
20581         superclass's method.
20582         (OnTextChanged): call CreateLinkPieces before calling superclass's
20583         method.
20584         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
20585         move around.
20586         (Select): implement this, moving the selection between different
20587         links, and call parent.SelectNextControl if we don't have another
20588         link to focus in the given direction.
20589         (CreateLinkPieces): call Invalidate instead of Refresh.
20590         
20591 2006-07-06  Chris Toshok  <toshok@ximian.com>
20592
20593         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
20594         new LinkLabel internals.
20595
20596         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
20597         over pieces looking for active/focused/etc links.  also, deal with
20598         runs of text (and links) with embedded \n's in them, and use
20599         MeasureCharacterRanges instead of MeasureString to figure out the
20600         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
20601         two-step.
20602
20603 2006-07-04  Jackson Harper  <jackson@ximian.com>
20604
20605         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
20606         XKB or key auto repeat, do it manually.  Without key auto repeat,
20607         when a key is held down we get key press, key release, key press,
20608         key release, ... with auto repeat we get key press, key press, key
20609         press ..., and then a release when the key is actually released.
20610
20611 2006-07-03  Jackson Harper  <jackson@ximian.com>
20612
20613         * TabControl.cs:
20614         * ThemeWin32Classic.cs: Tabs do not obey normal background color
20615         rules, they are always control color regardless of the background
20616         color.
20617
20618 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
20619
20620         * FileDialog.cs: Added internal class MWFConfig.
20621           Removed Registry support and replaced it with support for the new
20622           MWFConfig class. See MWFConfig comments for more information.
20623
20624 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
20625
20626         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
20627           rectangle. Added some patches from eno from bug #78490 and fixed
20628           the arrow position for small up and down CPDrawScrollButtons.
20629
20630 2006-06-30  Jackson Harper  <jackson@ximian.com>
20631
20632         * InternalWindowManager.cs: Remove some debug code.
20633         * Form.cs: When an MdiParent is set to null, the window is
20634         "detatched" and becomes a normal window.
20635         * MdiClient.cs: Don't bring the new child form to the front until
20636         it is activated (setting it as active does this), this makes the
20637         previously active forms titlebar get redrawn as inactive.
20638
20639 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
20640
20641         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
20642           with later controls
20643
20644 2006-06-29  Mike Kestner  <mkestner@novell.com>
20645
20646         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
20647         arrow in keynav state.  Fixes #78682.
20648
20649 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
20650
20651         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
20652           order (fixes #78393)
20653
20654 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
20655
20656         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
20657           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
20658           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
20659           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
20660           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
20661           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
20662           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
20663           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
20664           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
20665           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
20666           enumerations (FlagsAttribute, SerializableAttribute, added/removed
20667           values)
20668
20669 2006-06-28  Mike Kestner  <mkestner@novell.com>
20670
20671         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
20672
20673 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
20674
20675         * PropertyGrid.cs,
20676           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
20677           item lines from other area (It also makes BackColor consistent and
20678           compatible with .NET). Fixed bug #78564.
20679
20680 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
20681
20682         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
20683         Patch from Eno for #78555.
20684
20685 2006-06-27  Chris Toshok  <toshok@ximian.com>
20686
20687         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
20688
20689         * DataGridColumnStyle.cs: same.
20690
20691         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
20692         
20693         * DataGridDrawingLogic.cs: nuke.
20694
20695 2006-06-27  Chris Toshok  <toshok@ximian.com>
20696
20697         * DataGridTableStyle.cs: clean up the constructors, and build the
20698         list of child relations for this table.  I have no idea if this is
20699         where we should be doing it (it probably isn't), but since we're
20700         already iterating over the properties..
20701
20702         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
20703         struct and array for keeping track of row information, similar to
20704         what's shown in a hack on
20705         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
20706
20707         * Theme.cs: be consistent about the naming of DataGrid methods,
20708         prefering ColumnWidths and RowHeights over columnsWidths and
20709         RowsHeights.
20710
20711         * ThemeWin32Classic.cs: same, and also add support for variable
20712         sized rows (and the +/- expansion icons for related rows).
20713
20714 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
20715
20716         * TextBoxBase.cs: Applied Eno's patch from #78660
20717
20718 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
20719
20720         * Form.cs (ScaleCore): We don't want to scale our form if it's
20721           state is minimized or maximized, but we still need to scale our
20722           child windows. Also, added try/finally block to ensure layout
20723           gets reset (Fixes #78697)
20724
20725 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
20726
20727         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
20728
20729 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
20730
20731         * Form.cs: Fixed c+p error and added check to resize form if minimum
20732           size is bigger than current size (Fixes #78709)
20733
20734 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
20735
20736         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
20737
20738 2006-06-26  Mike Kestner  <mkestner@novell.com>
20739
20740         * ComboBox.cs: only do Keypress handling in the combo when there  
20741         are items in the collection. Fixes #78710.
20742
20743 2006-06-26  Chris Toshok  <toshok@ximian.com>
20744
20745         * Binding.cs: make this work bi-directionally.  also, clear up
20746         other mixups between Push/Pull Data (e.g. we're supposed to pull
20747         data when validating).
20748
20749         * BindingManagerBase.cs: trim some fully qualified collection
20750         types.
20751
20752         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
20753
20754 2006-06-23  Chris Toshok  <toshok@ximian.com>
20755
20756         * PropertyManager.cs: It appears (according to the unit tests)
20757         that PropertyManager doesn't use
20758         PropertyDescriptor.AddValueChanged to track propery value changes
20759         in its datasource, but uses the same scheme as Binding, where it
20760         looks for a <Property>Changed event and binds to it.
20761
20762         Also, according to the docs, IsSuspended always returns false for
20763         a property manager with a non-null datasource.
20764
20765 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
20766
20767         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
20768           need to update the actual DialogResult. (Fixes #78613)
20769
20770 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
20771
20772         * Form.cs (ShowDialog): Release any captures before running the
20773           new message pump (fixes #78680)
20774
20775 2006-06-22  Mike Kestner  <mkestner@novell.com>
20776
20777         * ListView.cs: Layout column widths properly in details mode even 
20778         if HeaderStyle.None is set.  Fixes #78691.
20779
20780 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
20781
20782         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
20783
20784 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
20785
20786         * Control.cs (ContainsFocus): Using new driver method to get focused
20787           window, instead of trying to use internal tracking var, which can
20788           recursion issues (Fixes #78685)
20789         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
20790           XplatUIWin32.cs: Added GetFocus method to return focused window
20791
20792 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20793
20794         * ColorDialog.cs: when the mouse button is pressed inside the color
20795         matrix, don't let the cursor move out of it until the button is
20796         released, which is the behavior on windows. Changed 'colours' by
20797         'colors' to use the same word consistently.
20798
20799 2006-06-21  Chris Toshok  <toshok@ximian.com>
20800
20801         * DataGrid.cs: add in some basic navigation stuff (navigating to a
20802         child relation and back, using a stack).  Also, remove
20803         GetDataSource and the code that calls it - it's not needed.  Also,
20804         track CurrencyManager.ListName's removal.
20805
20806 2006-06-21  Chris Toshok  <toshok@ximian.com>
20807
20808         * CurrencyManager.cs: push some of the original type checking from
20809         BindingContext.CreateBindingManager to here, and remove some of
20810         the finalType stuff.  Need more tests to make sure I've got the
20811         ListName part right, and we might need more in SetDataSource.
20812
20813         * PropertyManager.cs: add a ctor that takes just the datasource,
20814         and no property name.  Make SetDataSource work with a null
20815         property_name, and make Current return the data_source if the
20816         property descriptor is null.  this makes 'string foo = "hi";
20817         BindingContext[foo].Current' return "hi" as it should.
20818
20819         * RelatedCurrencyManager.cs: make this code more generic - there's
20820         no reason the parent manager has to be CurrencyManager, and
20821         there's no reason to pass the DataRelation.  It suffices to use a
20822         BindingManagerBase and PropetyDescriptor.
20823
20824         * RelatedPropertyManager.cs: make a similar change here.
20825         
20826         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
20827         flower I knew it could be.
20828
20829 2006-06-20  Chris Toshok  <toshok@ximian.com>
20830
20831         * PropertyManager.cs: the PropertyChangedHandler is invoked when
20832         data in the source has changed and we need to update the control,
20833         so s/PullData/PushData.
20834
20835         * CurrencyManager.cs: Refresh is meant to update the control from
20836         data in the datasource.  So, s/PullData/PushData.
20837
20838         * BindingContext.cs: add more ugliness (we weren't handling the
20839         case where data_source = DataTable and data_member = column_name).
20840
20841         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
20842         from the perspective of the datasource.  PullData pulls from the
20843         control, PushData pushes to the control.
20844
20845 2006-06-20  Chris Toshok  <toshok@ximian.com>
20846
20847         * BindingContext.cs: rewrite the CreateBindingManager code to
20848         handle navigation paths more or less properly.  This could
20849         definitely stand some more work, in particular to push the
20850         recursion up to the toplevel.  But that relies on fixes in other
20851         places (System.Data comes to mind).
20852
20853         Also, move to a flat hashtable (and encode the twolevel nature of
20854         the dictionary into the hash key).  This lets us implement the
20855         IEnumerable.GetEnumerator method.
20856
20857         * RelatedCurrencyManager.cs: new class.  Update our view based on
20858         our relation and our parent CurrencyManager's position.
20859
20860         * CurrencyManager.cs: split out some logic from the ctor into
20861         SetView, so it can be called from the new RelatedCurrencyManager
20862         subclass.
20863
20864         * RelatedPropertyManager.cs: new class.  Update our datasource
20865         based on the position of our parent CurrencyManager.
20866
20867         * PropertyManager.cs: split out some logic from the ctor into
20868         SetDataSource, so it can be called from the new RelatedDataSource
20869         subclass.  Also, make the Current getter return the value
20870         of the PropertyDescriptor, not the data_source.
20871
20872         * Binding.cs: no need to duplicate the string splitting code here.
20873
20874 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
20875
20876         * Control.cs:
20877           - set_Enabled: OnEnabledChanged is not called if the inherited state 
20878             of the control is not altered, even though  we might be changing the
20879             internal state of the control (#78458)
20880           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
20881             OnEnabledChanged, to allow easy altering of any child window state
20882           - OnEnabledChanged: Added code to enable/disable driver window state
20883           - OnParentEnabledChanged: Instead of firing the event, call 
20884             OnEnabledChanged, which will fire the event and also a) set driver
20885             window state and pass the enabled state to any grandchildren (#78458)
20886
20887 2006-06-19  Jackson Harper  <jackson@ximian.com>
20888
20889         * InternalWindowManager.cs: We don't set the cursor explicitly
20890         thats done via the response to NCHITTESTs.
20891         - Don't need to adjust for titlebar heights anymore, the
20892         coordinates are coming in the correct coordinates now (see peters
20893         last patch).
20894
20895
20896 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
20897
20898         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
20899           being translated relative to whole window, instead of client window.
20900           That caused broken offsets on mouseclick (and caused gas for our
20901           InternalWindowManager)
20902
20903 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
20904
20905         * TextControl.cs:
20906           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
20907           - Undo(): Added replay of cursor move on DeleteChars action; added
20908             calling Undo() again if a recorded cursor move is invalid (to
20909             ensure that some action is performed on Undo)
20910         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
20911
20912 2006-06-16  Jackson Harper  <jackson@ximian.com>
20913
20914         * MdiClient.cs: Instead of just sizing maximized windows when
20915         there is a resize we also have to adjust the Y of minimized
20916         windows, so they stay pinned to the bottom of the mdi container.
20917         - Eliminate separate tracking of the active control, we can just
20918         get this from the controls collection.
20919         - Paint the decorations for the newly activated titlebar so we get
20920         a pretty blue bar.
20921         * InternalWindowManager.cs:
20922         * ThemeWin32Classic.cs: Minimized windows get all three buttons
20923         even if they are a tool window.
20924         
20925 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
20926
20927         * TextControl.cs (Undo): Handle non-existent cursor locations in the
20928           undo buffer, these can happen when text was deleted and the cursor
20929           was recorded first. Since we will also have a recorded cursor
20930           after the delete this is not an issue. (Fixes #78651)
20931
20932 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
20933
20934         * AccessibleObject.cs: Remove dependence on Control.is_selected;
20935           instead properly track control states internally (allows us to
20936           remove is_selected from Control)
20937
20938 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20939
20940         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
20941         whose width is not a multiple of 8.
20942
20943 2006-06-13  Jackson Harper  <jackson@ximian.com>
20944
20945         * MdiClient.cs:  Only maximize the next child if the current one
20946         is maximized.
20947
20948 2006-06-13  Chris Toshok  <toshok@ximian.com>
20949
20950         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
20951         modified.  Also, guard against grid or grid_drawing being null in
20952         Invalidate.
20953
20954         * DataGrid.cs: Reformat tons of getters/setters.  In the
20955         DataMember setter, just call SetNewDataSource instead of
20956         duplicating some of its functionality.  In SetNewDataSource, don't
20957         check ListManager for null, since the property getter creates the
20958         object if needed.
20959
20960         * DataGridTableStyle.cs: don't set TableStyle or call
20961         SetDataGridInternal on the column here, it's done in
20962         GridColumnStylesCollection.Add.
20963
20964         * GridColumnStylesCollection.cs: fix all the explicit interface
20965         implementations to just call our methods.  Nuke AddInternal() and
20966         move the body of it to Add().  Also, add a call to
20967         column.SetDataGridInternal to Add().
20968
20969         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
20970         base()+duplicate code.  Also, use the Format property instead of
20971         format to generate an Invalidate ala MS.  Lastly, create the
20972         textbox here, unconditionally.
20973         (set_Format): call Invalidate.
20974         (get_TextBox): no need to call EnsureTextBox.
20975         (Commit): remove the message box.
20976         (Edit) remove the call to EnsureTextBox.
20977         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
20978         (EnterNullValue): no need to check textbox for null.
20979         (HideEditBox): no need to check textbox for null.
20980         (SetDataGridInColumn): add the textbox to the grid's controls.
20981         (EnsureTextBox): nuke.
20982         
20983 2006-06-13  Jackson Harper  <jackson@ximian.com>
20984
20985         * MdiWindowManager.cs: Hook up to the maximized menus paint event
20986         and redraw the buttons when needed. Unhook when the window is
20987         unmaximized.
20988         * MainMenu.cs: Add an internal Paint event, the mdi window manager
20989         needs this so that it can redraw its buttons when the menu is
20990         repainted.
20991         * InternalWindowManager.cs:
20992         * Form.cs: The method order has changed for DrawMaximizedButtons,
20993         so that it can be a PaintEventHandler.
20994         
20995 2006-06-13  Jackson Harper  <jackson@ximian.com>
20996
20997         * MdiClient.cs: When we close a maximized mdi window, the next mdi
20998         window is activated and maximized, even if it wasn't before.
20999         - When  a new window is activated repaint the decorations of the
21000         old one, so that it no longer has the Active "look" (the blue
21001         titlebar).
21002         * InternalWindowManager.cs: Open up CreateButtons to base classes
21003         so they can recreate the buttons on state changes.
21004         - If a window is maximized give it all three buttons
21005         * MdiWindowManager.cs: Create the titlebar buttons when the state
21006         is changed, this is needed because a toolwindow will not have all
21007         three buttons until it is maximized.
21008
21009 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
21010
21011         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
21012           Fixed bug #78609.
21013
21014 2006-06-12  Jackson Harper  <jackson@ximian.com>
21015
21016         * KeysConverter.cs: Make sure we handle the Ctrl special case
21017         if its the only key.
21018         
21019 2006-06-12  Jackson Harper  <jackson@ximian.com>
21020
21021         * Theme.cs: Add a method to get the size of a managed window
21022         toolbar button.
21023         * InternalWindowManager.cs: Remove the ButtonSize property, this
21024         should be retrieved from the theme.
21025         * MdiWindowManager.cs: Get the button size from the theme
21026         * ThemeWin32Classic.cs: Make the method to get the managed window
21027         titlebar button size public.
21028         - Handle the different button sizes of maximized toolwindows
21029         (should match any maximized window).
21030         - Get the titlebar height from the theme, not the WM (which gets
21031         it from the theme).
21032
21033 2006-06-12  Jackson Harper  <jackson@ximian.com>
21034
21035         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
21036         event down to the mdi window manager.
21037         - Expose some extra stuff to base classes
21038         - Make sure to end the Capture on an NC Mouse up, so that we can
21039         get double clicks properly, and the sizing doens't stick.
21040         - When doing PointToClient contain it in the workable desktop
21041         area, this prevents windows from changing size when the cursor is
21042         pulled outside of the working area while sizing.
21043         * MdiWindowManager.cs: When we get a double click maximize the
21044         window.
21045         - Reset the cursor after handling mode changes.
21046
21047 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
21048
21049         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
21050           current desktop, instead of just assuming a 0, 0 origin. This
21051           is needed for our internal window manager, to know the top
21052           margin of the desktop
21053
21054 2006-06-12  Chris Toshok  <toshok@ximian.com>
21055
21056         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
21057         we need this to get rid of the selected background in the bool
21058         column.
21059         (CancelEditing): move the ConcedeFocus call to above the Abort
21060         call.  Also, set is_changing to false and invalidate the row
21061         header if we were changing before.
21062         (ProcessKeyPreviewInternal): remove, since noone outside this
21063         class calls it anymore.  Roll the code into ProcessKeyPreview.
21064         (EndEdit): remove the internal version.
21065         (InvalidateCurrentRowHeader): make private.
21066
21067         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
21068         Keys.Escape handling (and with it the last call to
21069         DataGrid.EndEdit from outside the class.)
21070
21071
21072 2006-06-12  Chris Toshok  <toshok@ximian.com>
21073
21074         * DataGridTextBox.cs (.ctor): isedit defaults to false.
21075         (OnKeyPress): set isedit to true.
21076         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
21077         already handled by the grid.
21078
21079         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
21080         right.  ugh.
21081         (set_DataSource): SetDataSource always returns true, so stop
21082         putting it in an if statement.
21083         (EndEdit): get rid of some {}'s
21084         (ProcessGridKey): return true in case Keys.Escape.
21085         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
21086         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
21087         PositionChanged, stopped connecting to CurrentChanged.
21088         (GetDataSource): simplify this a bunch.
21089         (SetDataSource): change return type from bool to void.
21090         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
21091         to this, and make sure we don't set ListManager.Position inside
21092         set_CurrentCell.
21093         (OnListManagerItemChanged): if we're passed an actual index,
21094         redraw that row.
21095
21096         * CurrencyManager.cs (set_Position): don't call PullData here.
21097
21098 2006-06-09  Jackson Harper  <jackson@ximian.com>
21099
21100         * TreeNode.cs:  Recalculate the visible order before doing the
21101         Expand/Collapse Below calls, because those calls generate an
21102         expose.
21103         - Reduce calls to the TreeView property, which is mildly expensive
21104         by using a local var.
21105         * Form.cs: Layout the MDI child windows when creating the parent
21106         form.
21107         - Don't use the internal constructor anymore
21108         * MdiClient.cs: use the parent form width/height (if available)
21109         when laying out the child windows, we do this because the
21110         mdiclient isn't docked yet when the initial layout is done.
21111         - Don't need an internal constructor anymore.
21112
21113 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21114
21115         * FileDialog.cs: handle access errors when trying to create a folder
21116         or changing to a directory. No need to initialize out parameters.
21117
21118 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
21119
21120         * FileDialog.cs: Append a number when creating a new folder if the
21121           folder already exists (use parenthesis instead of square brackets)
21122
21123 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
21124
21125         * FileDialog.cs:
21126           - Disabled registry support for windows and added better registry
21127             error checking for other systems (need to investigate why it
21128             works perfectly on my system)
21129           - If a folder already exist show an error MessageBox instead of
21130             trying to create an indexed name.
21131           - Fixed a non intentional typo.
21132
21133 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21134
21135         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
21136
21137 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
21138
21139         * FileDialog.cs: When creating a new folder don't crash if the
21140           folder already exists.
21141
21142 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
21143
21144         * FileDialog.cs: Allmost a complete rewrite.
21145           - added a "virtual" file system that handles the differences
21146             between unix and windows file systems (especially the directory
21147             structure). Moved most of the directory and file handling code
21148             into the vfs.
21149             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
21150             UnixFileSystem and FSEntry.
21151           - Recently used folder/directory, size, location and used file names
21152             (file name ComboBox) are now stored in the registry and get read
21153             before the dialog shows up (fixes part 6 of bug #78446).
21154           - Creation of new folders/directories is now possible (context menu
21155             or ToolBar). Added TextEntryDialog for this that fills in the gap
21156             until ListView.LabelEdit works.
21157           - Fixed cursor handling (bug #78527) and focus handling for
21158             PopupButtonPanel
21159           - Various "Search in" ComboBox enhancements. The content of the
21160             dropdown listbox now almost matches ms.
21161           - Changed the behaviour when the user switches to SpecialFolder
21162             Recent to show the ListView in View.Details.
21163           - Beside using the ToolBar to change the View property of the
21164             file ListView it is now possible to use the context menu too.
21165
21166 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
21167
21168         * ComboBox.cs: Don't create a new ObjectCollection when an item
21169           gets inserted. Just insert the item in the existing object_items
21170           ArrayList.
21171
21172 2006-06-08  Jackson Harper  <jackson@ximian.com>
21173
21174         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
21175         that the treeview and root node checks are done also, this fixes a
21176         regression i caused in the unit tests.
21177
21178 2006-06-07  Wade Berrier <wberrier@novell.com> 
21179
21180         * RichTextBox.cs: More ISO8859-1 -> unicode
21181
21182 2006-06-07  Mike Kestner  <mkestner@novell.com>
21183
21184         * ComboBox.cs : use items to hold highlight/selection so that
21185         collection insertions don't require synchronization.
21186
21187 2006-06-07  Jackson Harper  <jackson@ximian.com>
21188
21189         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
21190         routine.  We now always keep the sized edge at the cursor instead
21191         of computing movement and adjusting rects.  There is one buglet
21192         with this method though when the cursor is moved over area that
21193         the window can not expand too (such as the toolbars on the desktop).
21194
21195 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21196
21197         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
21198         here. Fixes crash on startup in AlbumSurfer.
21199
21200 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
21201
21202         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
21203           values
21204
21205 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21206
21207         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
21208         statement to avoid calling XNextEvent which will block if another thread
21209         took the event that we were expecting. Fixes bug #78605.
21210
21211 2006-06-07  Mike Kestner  <mkestner@novell.com>
21212
21213         * ListView.cs : isolated checkbox clicking from the selection logic.
21214         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
21215
21216 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21217
21218         * Form.cs: Check that the value passed to Form.DialogResult
21219         is a valid enum value.
21220
21221 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21222
21223         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
21224         Computer'. Clicking it in the network view goes to 'My Computer'.
21225         Added CIFS filesystem type. Display the mount point of filesystems.
21226         Avoid duplicate mount points (happens for me with CIFS);
21227
21228 2006-06-06  Jackson Harper  <jackson@ximian.com>
21229
21230         * InternalWindowManager.cs: Draw the maximized windows buttons
21231         when resizing.
21232
21233 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21234
21235         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
21236         all other dialogs. Fixes bug #78585.
21237
21238 2006-06-06  Mike Kestner  <mkestner@novell.com>
21239
21240         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
21241         Only invalidate checkbox on checkstate changes to avoid flicker.
21242         * ListBox.cs : avoid unselect/select when clicking selected item.
21243         avoid reselection flicker for already multiselected items.
21244         Fixes #78382.
21245
21246 2006-06-06  Jackson Harper  <jackson@ximian.com>
21247
21248         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
21249         the parent form so that the menu is removed if needed.
21250
21251 2006-06-06  Mike Kestner  <mkestner@novell.com>
21252
21253         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
21254         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
21255
21256 2006-06-06  Mike Kestner  <mkestner@novell.com>
21257
21258         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
21259
21260
21261 2006-06-06  Jackson Harper  <jackson@ximian.com>
21262
21263         * Control.cs: Use the property (instead of the field) to get the
21264         default cursor so it is instantiated correctly.
21265         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
21266         resizes so we need to manually repaint the window decorations here.
21267         - Set the titlebar button locations as soon as they are created,
21268         otherwise they are not set correctly on win32.
21269         
21270 2006-06-06  Chris Toshok  <toshok@ximian.com>
21271
21272         * CurrencyManager.cs (set_Position): call PullData before
21273         OnCurrentChanged.
21274         (AddNew): after calling IBindingList.AddNew, update our
21275         listposition, and call OnCurrentChanged/OnPositionChanged (without
21276         calling PullData).
21277         (OnCurrentChanged): remove the call to PullData from here.
21278         (OnItemChanged): remove the call to PushData from here.
21279         (OnPositionChanged): change the test from == null to != null to
21280         match the other methods.
21281         (ListChangedHandler): the grossest part of the patch.  Implement
21282         this such that it passes the unit tests in CurrencyManagerTest and
21283         the output more or less matches that of MS's implementation.
21284  
21285 2006-06-06  Mike Kestner  <mkestner@novell.com>
21286
21287         * ListView.cs : only update check state on single click.
21288         * ThemeWin32Classic.cs : fix focus drawing for details view without
21289         fullrowselect.  Fixes #78454.
21290         * XplatUIX11.cs : fix for double click emission.
21291
21292 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
21293
21294         * PropertyGridView.cs : Applied Atsushi's patch to fix
21295         font dialog bug  (#78197).
21296
21297 2006-06-05  Jackson Harper  <jackson@ximian.com>
21298
21299         * TreeNode.cs: Compute the next node for expanding/collapsing
21300         correctly. We now factor in nodes without a NextNode
21301         correctly. (Fixes somes cases in nunit-gui).
21302         * InternalWindowManager.cs: Set the bounds when updating the
21303         virtual position of a tool window.
21304         
21305 2006-06-05  Chris Toshok  <toshok@ximian.com>
21306
21307         * DataGrid.cs: rename cached_currencymgr to list_manager.
21308         (set_CurrentCell): move SetCurrentCell code here, and clean it up
21309         some.
21310         (CurrentRow, CurrentColumn): single accessors so we can make the
21311         cursor movement code a lot easier to understand.
21312         (CurrentRowIndex): implement this in terms of CurrentRow.
21313         (BeginEdit): clean this up a bit.
21314         (CancelEditing): sort out the is_editing/is_changing/is_adding
21315         stuff a little.
21316         (EndEdit): minor changes.
21317         (OnKeyDown): add a comment about a (most likely) unnecessary
21318         check.
21319         (OnMouseDown): cancel editing when we click on a row header.  And
21320         use the CurrentRow setter, not CurrentCell.
21321         (ProcessDialogKey): directly call ProcessGridKey.
21322         (UpdateSelectionAfterCursorMove): factor out this common block of
21323         code (it's used everywhere that we move the cursor by updating row
21324         or column).
21325         (ProcessGridKey): pretty substantial overhaul.  Use the
21326         CurrentRow/CurrentColumn properties to make the code a lot more
21327         readable.  Only use the CurrentCell property when we have to
21328         modify both row and column at once.  Tab behavior is still broken,
21329         and Delete is untested.
21330         (Select): if we have no selected rows, set selection_start to
21331         @row.
21332         (EditCurrentCell): rename EditCell this.  It was only ever invoked
21333         with CurrentCell as the arg, so drop the arg and rename it.
21334
21335         * DataGridColumnStyle.cs: clean up the constructors a little, and
21336         drop CommonConstructor().
21337
21338         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
21339         actually get notified when the user hits it.
21340         (ProcessKeyMessage): *substantially* simplify this method.
21341         There's no reason (that I can see) for the textbox to be making
21342         calls into the datagrid at all.  Remove all of them but the ones
21343         for Enter handling.  those will take some more work.
21344
21345         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
21346         calling HideEditBox.
21347         (HideEditBox): if we have an active textbox, render it invisible
21348         without causing a re-layout of the datagrid.
21349
21350 2006-06-05  Mike Kestner  <mkestner@novell.com>
21351
21352         * ListView.cs : fix NRE crasher when focuseditem is cleared by
21353         collection changes by resetting it to Items[0].  Fixes #78587.
21354
21355 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21356
21357         * MessageBox.cs: if the height of the text is larger than the icon_size,
21358         use that. Fixes bug #78575.
21359
21360 2006-06-05  Jackson Harper  <jackson@ximian.com>
21361
21362         * TreeView.cs: Fix line drawing when scrolling.  To do this each
21363         node is basically responsible for drawing its entire horizontal
21364         area.  When drawing a node it draws its parent node lines if
21365         needed.
21366         - Adjust the clip area to the viewport rectangle
21367         - Fix Left/Right key handling to match MS. (It expand/collapses
21368         and moves to parents/first child but does not move selection to
21369         sibling nodes).
21370         - Fix SetTop to work with new bound calculation code
21371         - When scrollbars are no longer needed we need to reset scrolling
21372         vars and recalculate the visible order so the redraw is correct
21373         * TreeNode.cs: We can't expand/collapse nodes with no children.
21374
21375 2006-06-03  John Luke  <john.luke@gmail.com> 
21376
21377         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
21378         so the colors work without dev packages
21379         
21380 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
21381
21382         * Control.cs 
21383           - Select: Implemented to just use activate. Seems to match MS 
21384             behaviour closest. Documented to only do actual control walking 
21385             based on it's parameters if in a container control so I moved 
21386             the code there.
21387           - Removed selection check logic from our internal Select() method
21388         * ContainerControl.cs:
21389           - Select: Moved selection logic from Control here, since MS documents
21390             that containers obey the bool arguments. No longer calling base
21391
21392 2006-06-02  Jackson Harper  <jackson@ximian.com>
21393
21394         * TreeView.cs: If the selected node isn't changed when we get
21395         focus update the previously selected node so that we see the
21396         selection box.
21397
21398 2006-06-02  Mike Kestner  <mkestner@novell.com>
21399
21400         * ComboBox.cs: restructure grab and general mouse event handling.
21401         Make the composite control raise mouse events like it was a single
21402         control for leaves/enters/motion/up/down events.  fix dropdown list
21403         coordinate mangling and refactor it into the scrollbar subclass to
21404         reduce code duplication.  Fixes #78282 #78361 and #78457.
21405
21406 2006-06-02  Mike Kestner  <mkestner@novell.com>
21407
21408         * ScrollBar.cs: remove Capture setting/clearing, as it happens
21409         automatically in the Control.WndProc.
21410
21411 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21412
21413         * FileDialog.cs: fix crash when running SharpChess, which sets the
21414         FilterIndex to 2 with only one Filter.
21415
21416 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21417
21418         * ToolBar.cs: add SizeSpecified property.
21419         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
21420         try to figure out our real size, otherwise fallback to what the
21421         container says.
21422
21423 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
21424
21425         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
21426         * Control.cs (WndProc): MS always calls the DefWndProc to pass
21427           up the event
21428
21429 2006-06-01  Mike Kestner  <mkestner@novell.com>
21430
21431         * ListView.cs: revamp the focus management in ListView.  It still
21432         causes churn of LostFocus/GotFocus emissions on clicks, but it's
21433         better than not handling focus at all.  Will revisit when pdb feels
21434         the general focus handling is solid.  Fixes #78526.
21435
21436 2006-06-01  Jackson Harper  <jackson@ximian.com>
21437
21438         * TreeView.cs: Set the default border style in the constructor.
21439         - Move painting to use OnPaintInternal instead of capturing
21440         WM_PAINT, this is the correct way of doing things
21441         - UpdateBelow shouldn't invalidate the scrollbar area
21442         - Cap the top on update below in case the node was above the top
21443         of the viewport rectangle.
21444         - ExpandBelow and Collapse below need to obey Begin/End Update.
21445         * TreeNode.cs: Make is_expanded internal so the treenode
21446         collection can change it without firing the whole event chain.
21447         * TreeNodeCollection.cs: When clearing all the child nodes make
21448         sure to recalc the visible order.
21449         - Improve algo for remove the top node
21450
21451 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
21452
21453         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
21454           SendMessage directly calling window procedures, which in turn might
21455           call SetFocus()
21456
21457 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
21458
21459         * Control.cs: Don't handle WM_SETFOCUS if the same window already
21460           has focus (works around X11 sending a FocusIn after our SetFocus)
21461         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
21462
21463 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
21464
21465         * Mime.cs: Fix for the NET_2_0 build.
21466           NameValueCollection needs StringComparer now.
21467
21468 2006-05-31  Chris Toshok  <toshok@ximian.com>
21469
21470         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
21471         return (via an out parameter) the starting X of the column.
21472         (UpdateVisibleColumn): track change to FromPixelToColumn.
21473         (HitTest): add a ColumnResize case here.
21474         (DrawResizeLine): new function, probably poorly named.
21475
21476         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
21477         only need to keep one reference.
21478         (set_ListManager): same.
21479         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
21480         Also, add support for HitTestType.ColumnResize.
21481         (OnMouseMove): add column resize behavior here, and change the
21482         cursor to the correct one as we move around the datagrid.
21483         (OnMouseUp): terminate the column resize if we're resizing.
21484         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
21485         for the current cell.
21486         (ConnectListManagerEvents): use cached_currencymgr.
21487         (DisconnectListManagerEvents): fill this in, using
21488         cached_currencymgr.
21489         (SetCurrentCell): remove cached_currencymgr_events handling.
21490         (SetDataMember): only call DisconnectListManagerEvents if
21491         cached_currencymgr is != null.
21492         (SetDataSource): same.
21493         (OnListManagerCurrentChanged): cached_currencymgr_events ->
21494         cached_currencymgr.
21495
21496 2006-05-31  Jackson Harper  <jackson@ximian.com>
21497
21498         * BindingManagerBase.cs: Remove somedebug code that creeped into
21499         SVN.
21500         * TreeNode.cs: We get the indent level dynamically right now, so
21501         don't track it as a member.
21502         * TreeNodeCollection.cs: Make sure all nodes added to the list
21503         have parents, treeviews/topnodes setup properly.
21504         - Don't attempt to track indent level.
21505
21506 2006-05-30  Jackson Harper  <jackson@ximian.com>
21507
21508         * BindingContext.cs: Create the currency manager tables here.
21509         This allows us to more easily create null tables (when bad data
21510         members are used), and more easily create related currency
21511         managers.
21512         * CurrencyManager.cs: All the table creation stuff is done by the
21513         binding context now.
21514         - Current should throw an exception if listposition is -1.
21515         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
21516         been bound yet.
21517
21518 2006-05-30  Mike Kestner  <mkestner@novell.com>
21519
21520         * ListView.cs: allow reexpansion of zero-width column headers.
21521         Fixes #78528.
21522
21523 2006-05-28  Chris Toshok  <toshok@ximian.com>
21524
21525         * CurrencyManager.cs (get_Current): after the late binding
21526         listposition = -1 fix, we need to guard against it here and return
21527         null, otherwise we raise an exception (which is swallowed
21528         elsewhere, and breaks datagrid databinding.)
21529
21530 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
21531
21532         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
21533           than WM_SYSKEY, don't throw if get something unexpected (#78507)
21534
21535 2006-05-26  Jackson Harper  <jackson@ximian.com>
21536
21537         * ControlPaint.cs:
21538         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
21539         values, it's faster and it's all we care about (we don't care if
21540         the names aren't equal).
21541         * KeyboardLayouts.cs: Eliminate some dead code.
21542         - Lazy init things
21543         * X11Keyboard.cs: Lazy init keyboard detection.
21544         - Cleanup access modifiers a little.
21545
21546 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
21547
21548         * XplatUIX11.cs: Once again, attempting to get layout just right.
21549
21550 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
21551
21552         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
21553           the sizes of each link section, that will result in sizes that
21554           match DrawString's layout (Fixes #78391)
21555
21556 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
21557
21558         * FileDialog.cs: If AddExtension property is true autocomplete the
21559           extensions in SaveFileDialog correctly. Fixes bug #78453.
21560           Set MyNetwork and MyComputer to "C:\" for windows. This should
21561           fix part 8 of bug #78446 for now.
21562
21563 2006-05-26  Chris Toshok  <toshok@ximian.com>
21564
21565         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
21566         invalidate the current row header if we need to, but presumably
21567         we'll invalidate the row corrsponding to the bounds or
21568         editingControl.
21569         (GridHScrolled): switch back to this method, as it's part of the
21570         public api.  *sigh*.
21571         (GridVScrolled): same.
21572         (OnMouseWheel): hack up something that more or less works.  Call
21573         GridHScrolled/GridVScrolled directly, instead of duplicating much
21574         of their code here.
21575         (EnsureCellVisibility): reinstate a bunch of this code, since we
21576         can't just set the scrollbar Value and expect to do all the work
21577         in the ValueChanged handler.  Also, Call Update() after scrolling
21578         in one direction so the other XplatX11.ScrollWindow call has the
21579         proper stuff in the proper places.
21580         (EditCell): set is_editing to true before calling .Edit.
21581
21582         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
21583         don't bother comparing first.
21584         (OnKeyPress): call grid.ColumnStartedEditing before calling
21585         base.OnKeyPress.  this will set is_changing and invalidate the row
21586         header if necessary.
21587         (ProcessKeyMessage): for WM_CHAR messages, call
21588         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
21589         and WM_KEYDOWN.
21590         
21591         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
21592         it's done in the DataGrid.
21593         (NextState): call grid.ColumnStartedEditing, which takes care of
21594         invalidating the row header (and setting is_changing).
21595
21596         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
21597         here.  it's done in the DataGrid.
21598
21599 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21600
21601         * Control.cs: allow changing the cursor when the mouse position is
21602         out of bounds but Capture is set.
21603         * LinkLabel.cs: handle the case when the mouse button is pressed on the
21604         linklabel but released somewhere else.
21605
21606 2006-05-25  Jackson Harper  <jackson@ximian.com>
21607
21608         * TreeView.cs: When we get focus if there is no selected node make
21609         it the top node
21610         - Remove some uneeded setup code from Draw.
21611         * TreeNodeCollection.cs: If the tree doesn't have a top node when
21612         a new node is inserted make the new node the top.
21613         * XplatUIX11.cs:
21614         * Timer.cs: Use Utc time so that no local time zone stuff needs to
21615         be used (should be faster).
21616         
21617 2006-05-25  Chris Toshok  <toshok@ximian.com>
21618
21619         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
21620         problem with the last commit.
21621
21622 2006-05-25  Chris Toshok  <toshok@ximian.com>
21623
21624         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
21625         need the invalidate call here, while scrolling right-to-left via
21626         the left arrow key (i.e. moving the editing cell while scrolling).
21627
21628         * DataGrid.cs (.ctor): remove the initialization of
21629         ctrl_pressed/shift_pressed.  We no longer track them using key
21630         up/down handlers, but by using Control.ModifierKeys.  Also, switch
21631         to using ValueChanged handlers on the scrollbars instead of
21632         Scrolled event handlers.  This simplifies a bunch of the scrolling
21633         code.
21634         (GridHValueChanged): rename from GridHScrolled, and change it to
21635         work with the new event args.
21636         (GridVValueChanged): same.
21637         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
21638         (OnMouseWheel): actually scroll the datagrid.  Don't change the
21639         selected cell.
21640         (ProcessGridKey): correct all the keyboard navigation stuff I
21641         could find.  Ctrl up/down/left/right/home/end work now.
21642         (EnsureCellVisibility): correct method name spelling.  Also,
21643         simplify this a touch by not explicitly calling the
21644         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
21645         scrollbar value.
21646         (OnKeyUpDG): no need for this method now.
21647         
21648 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21649
21650         * LinkLabel.cs: display the OverrideCursor when hovering the label.
21651         Fixes bug #78392.
21652
21653 2006-05-25  Chris Toshok  <toshok@ximian.com>
21654
21655         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
21656         r61019.
21657
21658 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
21659
21660         * Application.cs: Moved setting of is_modal and closing to before
21661           we create the control, to allow the event handlers called as a
21662           result of creation affect closing. Also removed Gonzalo's previous
21663           change to setting DialogResult, the behaviour has been moved to 
21664           Form.ShowDialog()
21665         * Form.cs: 
21666           - ShowDialog(): Removed explicit creation of the form, let RunLoop
21667             handle it instead
21668           - ShowDialog(): If no dialog result is set, we need to return Cancel
21669           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
21670             the close is cancelled
21671
21672 2006-05-25  Jackson Harper  <jackson@ximian.com>
21673
21674         * StatusBar.cs: We only need to update the sizes of the other
21675         panels when we have auto size contents.  Also we are only updating
21676         the contents of the panel, not the borders, so compensate for the
21677         border width (TODO: get this width from the theme somehow).
21678         * TreeView.cs: Scrollable is true by default
21679         - Use invalidate instead of refresh where needed
21680         - Factor the scrollable value into scrollbar updating
21681         - Update the scrollbars if the Scrollable property is altered
21682         - Update the selected node if its ImageIndex is changed
21683         - Handle null nodes in UpdateNode (mainly so we don't have to
21684         check if selected is null when updating it
21685         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
21686         are factored into the visible count
21687         - Use VisibleCount for clarity in the code
21688         - When the font is changed we need to recurse through all the
21689         nodes and invalidate their sizes
21690         
21691 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21692
21693         * Application.cs: set the DialogResult to fixed when the main form is
21694         hidden or destroyed while being modal.
21695
21696 2006-05-25  Miguel de Icaza  <miguel@novell.com>
21697
21698         * Theme.cs: Use Tangoified messagebox icons. 
21699
21700         (GetSizedResourceImage): Also cope with width = 0 and do not
21701         trigger a warning in that case (0 means "give me your icon from
21702         the resouce, no special size needed).
21703
21704 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
21705
21706         * Application.cs: Leave runloop if the the main modal form is 
21707           hidden (fixes #78484)
21708
21709 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
21710
21711         * BindingContext.cs : reject null datasource in Contains() and
21712           Item[].
21713         * CurrencyManager.cs : check data_member validity when data_source
21714           is dataset. When it is late binding, the initial position is -1.
21715
21716 2006-05-24  Jackson Harper  <jackson@ximian.com>
21717
21718         * TreeNodeCollection.cs: Dont't recalculate the visible order on
21719         inserted nodes that aren't visible.  This changes the
21720         max_visible_order which confuses scrollbar settings.
21721         - Use the enumerator to get the prev node instead of duplicating
21722         code.
21723         * TreeView.cs: Use new method for setting scrollbar values
21724         - Don't set the bounds every time the scrollbar is updated
21725         - When updating below the root node use an invalidate instead of a
21726         refresh to prevent the child controls (scrollbars) from being
21727         refreshed. (UpdateBelow still needs to be reworked anyways).
21728         - Reenable SetBottom now that visible orders are set correctly,
21729         added some debug code incase we ever get bad values there again.
21730         - Set the scrollbar max to 2 less then the max value, this
21731         compensates for the max value being one above the node count, and
21732         for scrollbars adding one extra "notch".
21733         - When drawing image nodes if there is an imagelist we draw the
21734         first image in the list if the supplied image index is out of the
21735         image list's bounds.
21736         
21737 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
21738
21739         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
21740           we receive a size change from the WM (Fixes #78503)
21741
21742 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
21743
21744         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
21745           rectangle (Fixes #78501)
21746
21747 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
21748
21749         * ButtonBase.cs: 
21750           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
21751             as a bitfield.
21752           - Fixed MouseMove to no longer switch pressed state unless the left
21753             mouse button is pressed. Atsushi provided the original patch (#78485)
21754           
21755 2006-05-24  Jackson Harper  <jackson@ximian.com>
21756
21757         * ScrollBar.cs: New internal methods that allow us to change a
21758         couple values on the scrollbar (the most common case is maximum
21759         and large change) without getting multiple invalidates.
21760
21761 2006-05-24  Chris Toshok  <toshok@ximian.com>
21762
21763         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
21764         (Edit): save off the original state in oldState, and set
21765         grid.is_editing to true.
21766         (OnKeyDown): abort editing if escape is pressed.  also, call
21767         NextState if space is pressed.
21768         (OnMouseDown): call NextState.
21769         (NextState): factor out shared code from OnKeyDown and OnMouseDown
21770         here.  Also, only invalidate the row header once (on the initial
21771         is_changing switch) to save on redraws.
21772
21773 2006-05-24  Chris Toshok  <toshok@ximian.com>
21774
21775         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
21776         if the value in the cell is different than it was before.  This
21777         keeps us from triggering a layout when we move around a datarid
21778         with a highlighted cell.
21779         (Edit): suspend layout when creating/positining the text box, and
21780         resume passing false so we don't ever actually re-layout.
21781         (ReleaseHostedControl): same.
21782         (EnsureTextBox): reformat slightly, and set WordWrap to false.
21783
21784         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
21785         control-key sequences should go to the datagrid - remove that
21786         lock.  Also, modify the conditions under which we move between
21787         cells when moving the cursor within a cell, and remove the "this"
21788         and "base" from field accesses.  We weren't even consistent, given
21789         they all were in the base class.
21790
21791 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
21792
21793         * Binding.cs : (.ctor)
21794           An obvious NRE fix for BindingTest.CtorNullTest().
21795
21796 2006-05-23  Chris Toshok  <toshok@ximian.com>
21797
21798         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
21799         them between lines.  This fixes some quirks editing cells in the
21800         datagrid.
21801
21802 2006-05-23  Jackson Harper  <jackson@ximian.com>
21803
21804         * TreeView.cs: Use begin/end update when doing expand/collapse all
21805         so that we don't get flicker on the scrollbar.
21806
21807 2006-05-23  Jackson Harper  <jackson@ximian.com>
21808
21809         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
21810         treenode calculations to be independant of the painting code. To
21811         do this nodes track a visible order which is calculated by the
21812         treeview.
21813         - Call new methods for expanding/collapsing nodes.  These methods
21814         use scrollwindow so we don't have to update everything below the
21815         node.
21816         * TreeView.cs: Refactored drawing and scrolling code.  We don't
21817         need to update nodes when drawing anymore or calculate scrollbar
21818         stuff.
21819         - Added new methods for expanding/collapsing nodes. These methods
21820         use ScrollWindow so as to not have to redraw all the nodes below.
21821         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
21822         we add/remove nodes or sort.
21823         - Handle removing the selected and the top node properly.
21824
21825 2006-05-23  Chris Toshok  <toshok@ximian.com>
21826
21827         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
21828         maybe this should actually happen in the datagrid code?
21829         (EndEdit): no need to invalidate anything, given that
21830         ReleaseHostedControl causes the datagrid to relayout, which
21831         invalidates everything anyway.
21832
21833         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
21834         in SetCurrentCell).
21835         (set_SelectionBackColor): call InvalidateSelection instead of
21836         Refresh.
21837         (set_SelectionForeColor): same.
21838         (BeginEdit): Flesh this out a bit.
21839         (CancelEditing): only do any of this if we're editing/adding.
21840         (EndEdit): same.
21841         (OnMouseDown): there's no need to cancel editing here, it's done
21842         in SetCurrentCell.
21843         (SetCurrentCell): only invalidate the current row header if it's a
21844         different row than the new one.
21845         (ShiftSelection): fix this to work like MS does.
21846         (ResetSelection): factor out the invalidation of selected_rows to
21847         InvalidateSelection.
21848         (SetDataSource): cancel any editing that's going on.
21849
21850         * DataGridColumnStyle.cs
21851         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
21852         call the non-interface version.
21853
21854         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
21855         header rectangle with the clip rectangle so we don't redraw the
21856         entire header for just a small area.  Gets rid of the last flicker
21857         when horizontally scrolling.
21858         (DataGridPaintRow): same.
21859
21860 2006-05-23  Mike Kestner  <mkestner@novell.com>
21861
21862         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
21863         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
21864         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
21865         Critical bug report.
21866
21867 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
21868
21869         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
21870           and this fixes #78493
21871
21872 2006-05-23  Miguel de Icaza  <miguel@novell.com>
21873
21874         * Theme.cs (GetSizedResourceImage): Scale images if the proper
21875         size is not found.  
21876         
21877         * FileDialog.cs: Do not change the background for the side bar as
21878         it wont work nicely with the theme, and also reduces the artifacts
21879         in rendering the icons (which I want to fix too).
21880
21881         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
21882         resources, not resgen resources. 
21883
21884         (PlatformDefaultHandler): Pull images using the new API.
21885
21886 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
21887
21888         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
21889           a reference to the hwnd and will not remove it unless there are
21890           no pending exposures (fixes #78341)
21891         * XplatUI.cs: Improved debug
21892
21893 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
21894
21895         * MenuAPI.cs : don't handle OnClick event when it was not the left
21896           button. Fixed bug #78487.
21897
21898 2006-05-23  Mike Kestner  <mkestner@novell.com>
21899
21900         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
21901         prefer submenus to the top menu for item lookup, to avoid popping down
21902         top-row items.
21903
21904 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
21905
21906         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
21907           Graphics.FillRectangle as the visual results are really bad (even
21908           on win). We now draw perfect arrows (and perfect shadows when the
21909           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
21910           Pen.DashPattern to draw the dots of each line.
21911
21912 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
21913
21914         * FileDialog.cs: Update the filename combobox when navigating through
21915           the ListView with the cursor keys. Fixes part 7 of bug #78446.
21916
21917 2006-05-22  Mike Kestner  <mkestner@novell.com>
21918
21919         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
21920         Fixes #78463.
21921
21922 2006-05-22  Mike Kestner  <mkestner@novell.com>
21923
21924         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
21925         requests. Fix a misspelled parameter and a copy paste exception error
21926         in Select.
21927
21928 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
21929
21930         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
21931           to get the same width/height (5/13) on X11 as the default font has on
21932           win32. This means that our DefaultFont emSize is smaller than the 
21933           the MS SWF equivalent (even thought the width/height stays the same)
21934
21935 2006-05-20  Jackson Harper  <jackson@ximian.com>
21936
21937         * MdiClient.cs:
21938         * MdiWindowManager.cs:
21939         * InternalWindowManager.cs: Make sure to use the border width from
21940         the theme.
21941
21942 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
21943
21944         * PrintDialog.cs: Implements printer details
21945
21946 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
21947
21948         * FileDialog.cs: Added focus handling for PopupButtonPanel.
21949           Fixes part 1 and 2 of bug #78446
21950
21951 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
21952
21953         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
21954           instead of sticking to the first ever calculated value
21955
21956 2006-05-19  Mike Kestner  <mkestner@novell.com>
21957
21958         * ComboBox.cs: fix mouse motion selection to use MousePosition and
21959         PointToClient, since Capture is set. Fixes #78344.
21960
21961 2006-05-19  Mike Kestner  <mkestner@novell.com>
21962
21963         * ListView.cs: match MS behavior in Details view where items are not
21964         drawn if Columns.Count == 0. 
21965         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
21966         Use a separate pen to draw the check, since changing the width affects
21967         the box as well.  Fixes #78454.
21968
21969 2006-05-18  Miguel de Icaza  <miguel@novell.com>
21970
21971         * ListView.cs: ArgumentOutOfRangeException, single versions of the
21972         exception should throw the name of the invalid argument.
21973
21974         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
21975         there are no files listed. 
21976
21977 2006-05-18  Jackson Harper  <jackson@ximian.com>
21978
21979         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
21980         up.
21981
21982 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
21983
21984         * Control.cs: Brought back our old UpdateZOrder method as a private
21985           function and switched our calls from UpdateZOrder to the new one.
21986           This fixes the Paint.Net canvas disappearing bug.
21987
21988 2006-05-18  Jackson Harper  <jackson@ximian.com>
21989
21990         * Theme.cs:
21991         * ThemeWin32Classic.cs:
21992         * InternalWindowManager.cs: Move the drawing into the theme,
21993         expose everything the theme should need from the window manager.
21994
21995 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
21996
21997         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
21998           from the call to NativeWindow to avoid walking up the parent chain
21999           further than needed (speeds up setting cursors and avoids setting
22000           the wrong cursor if a parent has another cursor defined)
22001         * Cursor.cs: When loading an icon as cursor, MS uses the center of
22002           the icon as hotspot, not what's contained as hotspot in the icon
22003           file. This fixes the perceived drawing offset seen with Paint.Net
22004         
22005 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
22006
22007         * XplatUIX11.cs: 
22008           - Store the calculated rectangle in Hwnd object and use it when 
22009             setting the client size
22010           - Force Toolwindows to always be type Dock, to ensure they're on top
22011
22012 2006-05-18  Mike Kestner  <mkestner@novell.com>
22013
22014         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
22015         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
22016         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
22017         Substantial refactoring to remove confusing nested classes. Coding
22018         standard and Get+Set->property refactorings.  Shift to index based
22019         highlighting in ComboListBox instead of constantly using IndexOf and
22020         Items[]. Add invalidations on resize for DropDownList to fix ugliness
22021         in FileDialog growth.  Draw borders manually since Simple mode needs
22022         to look like two independent controls.  Make listbox border
22023         conditional to DropDownStyle.  Improved OwnerDraw support.
22024
22025 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
22026
22027         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
22028         Don't set the disposed graphics to null, so we can throw the "right"
22029         exception if the graphics is reused later (added a flag to avoid 
22030         double disposing). Some behaviours are different under 2.0 and are
22031         filled under bug #78448.
22032
22033 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
22034
22035         * Control.cs: When double-buffering is enabled, we need to reset
22036           our graphics context between paint calls. Otherwise, any 
22037           transformations and other alterations on the context will 
22038           become cumulative (#77734)
22039
22040 2006-05-18  Mike Kestner  <mkestner@novell.com>
22041
22042         * ListView.cs: do focused item selection like MS on clicks. 
22043         Rework focus handling for ItemControl so LostFocus invalidates as
22044         well.
22045         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
22046         the ListView ItemControl has focus.
22047
22048 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
22049
22050         * XplatUIX11.cs: If client_window ends up being width or height zero
22051           due to border settings, move it off window inside whole_window (#78433)
22052
22053 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
22054
22055         * Mime.cs: Shrink the mime file cache correctly.
22056
22057 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
22058
22059         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
22060
22061 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
22062
22063         * XplatUIX11.cs (AddExpose): More sanity checks
22064
22065 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
22066
22067         * XplatUIX11.cs:
22068           - AddExpose: Don't add expose ranges outside the size of our
22069             window
22070           - Cast opacity values to Int32 to avoid crashes with certain
22071             values
22072           - Added disabled code paths that protect against illegal cross-
22073             thread painting (Developers.exe)
22074
22075 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
22076
22077         * ProgressBar.cs: Invalidate the control when it's resized
22078           since block size is based on control size. (#78388)
22079
22080 2006-05-16  Miguel de Icaza  <miguel@novell.com>
22081
22082         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
22083         of setting the incoming argument to the "reset" value, we set the
22084         this.datamember to string.empty (before we were invalidating the
22085         incoming data).   
22086
22087         Fixes 78420
22088
22089 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
22090
22091         * Form.cs: Only apply transparency settings after the form
22092           is created. (Fixes #77800)
22093
22094 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
22095
22096         * ApplicationContext.cs: Grab the HandleDestroyed event so
22097           we know when to fire OnMainFormClosed 
22098
22099 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
22100
22101         * Application.cs: Introduced sub-class to allow tracking of
22102           threads and centralized triggering of the event mess for
22103           ThreadExit, AppExit, etc..  (#76156)
22104
22105 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
22106
22107         * MimeIcon.cs:
22108           - Do not return a null icon index value for a mime subclass.
22109             Instead try the main mime type class too.
22110           - Seems that some newer distributions don't have a link to some
22111             gnome default icons anymore. So check the default gnome dir too.
22112           
22113
22114 2006-05-16  Jackson Harper  <jackson@ximian.com>
22115
22116         * MdiClient.cs: Don't paint the parent background image if we have
22117         our own background image.
22118
22119 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
22120
22121         * Control.cs:
22122           - PerformLayout: Do not shrink space filled by DockStyle.Fill
22123             controls, all filled controls are supposed to overlap (#78080)
22124           - UpdateZOrder is supposed to update the control's z-order in the
22125             parent's z-order chain. Fixed to behave like that
22126           - BringToFront: Removed obsolete code
22127           - SendToBack: Simplyfied
22128           - SetChildIndex: Trigger layout calculations when Z-order changes
22129             since layout is done by z-order
22130
22131 2006-05-16  Chris Toshok  <toshok@ximian.com>
22132
22133         [ fixes bug #78410 ]
22134         * DataGrid.cs (set_AlternatingBackColor): use
22135         grid_drawing.InvalidateCells instead of Refresh().
22136         (set_BackColor): call grid_drawing.InvalidateCells.
22137         (set_BackgroundColor): use Invalidate instead of Refresh.
22138
22139         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
22140         invalidate the cell area.
22141
22142 2006-05-15  Chris Toshok  <toshok@ximian.com>
22143
22144         [ fixes bug #78011 ]
22145         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
22146         on to DataGridPaintRow.
22147         (DataGridPaintRow): take a clip argument, and only draw the cells
22148         which intersect it.  same with the not_usedarea.
22149
22150         * Theme.cs (DataGridPaintRow) add @clip parameter.
22151
22152         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
22153         XplatUI.ScrollWindow.
22154         (ScrollToRow): same.
22155
22156         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
22157         with last column which was causing a gray swath to appear with the
22158         XplatUI.ScrollWindow code.
22159
22160 2006-05-15  Chris Toshok  <toshok@ximian.com>
22161
22162         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
22163         use XplatUI.ScrollWindow.
22164         (VerticalScrollEvent): use XplatUI.ScrollWindow.
22165
22166 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
22167
22168         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
22169
22170 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
22171
22172         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
22173           file since there are no equivalent X11 cursors
22174
22175 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
22176
22177         * MonthCalendar.cs : DateTimePicker should reflect selected date
22178           on mouse*up*, not mouse*down*. Fixed originally reported part of
22179           bug #76474.
22180
22181 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
22182
22183         * TabControl.cs : When argument index is equal or more than tab
22184           count, just ignore. Fixed bug #78395.
22185
22186 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
22187
22188         * Control.cs: Dispose all child controls when control is diposed (#78394)
22189
22190 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
22191
22192         * ColorDialog.cs: Finally it is possible to select the color with
22193           the text boxes
22194
22195 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
22196
22197         * PrintDialog.cs: Fix typo
22198
22199 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
22200
22201         * PrintDialog.cs: PrintDialog is not resizable
22202         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
22203           color. Made some ToolBar drawing methods protected virtual.
22204
22205 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
22206
22207         * PrintDialog.cs: Implementation of the PrintDialog
22208
22209 2006-05-12  Chris Toshok  <toshok@ximian.com>
22210
22211         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
22212         thumb, instead use MoveThumb.  This has the side effect of making
22213         most of the other thumb moving machinery use MoveThumb as well.
22214         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
22215         need to actually invalidate the rectangle where the new thumb will
22216         go.
22217         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
22218         We force an Update() after, so it's not as fast as it could be,
22219         but at least there's zero flicker and no droppings.
22220         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
22221         (UpdateThumbPos): add another argument (dirty), which says whether
22222         or not to calculate/add dirty regions which we later invalidate.
22223         For cases where we know we're going to use MoveThumb, we pass
22224         false for this.  Otherwise, pass true.
22225
22226 2006-05-12  Jackson Harper  <jackson@ximian.com>
22227
22228         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
22229         the status bar.
22230         
22231 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
22232
22233         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
22234           and GetClipRegion methods and UserClipWontExposeParent property.
22235         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
22236           overriding UserClipWontExposeParent property, setting to false, since
22237           Win32 handles the required expose messages to draw our clipped parent
22238           areas internally
22239         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
22240           PaintEventStart to set the user clip region if set.
22241         * Control.cs: 
22242           - Now internally tracking the Region for the control since we need to
22243             store it if the handle is not yet created and only set it when it
22244             becomes created. Before setting the region forced handle creation
22245           - Added code to draw the parents underneath a user-clipped region
22246         * Hwnd.cs: Added UserClip property
22247
22248 2006-05-12  Chris Toshok  <toshok@ximian.com>
22249
22250         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
22251         (set_Maximum): same.
22252         (set_Minimum): same.
22253         (set_SmallChange): same.
22254         (OnMouseUpSB): remove the call to refresh when releasing the
22255         thumb.  We shouldn't need it.
22256         
22257 2006-05-12  Miguel de Icaza  <miguel@novell.com>
22258
22259         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
22260         AutoSize set to None, we do not need to relayout everything, we
22261         just need to invalidate the current region.
22262
22263         (Draw): Do not draw the entire ClientArea, just redraw the
22264         clip area being passed.
22265
22266         * MdiClient.cs: Make MdiClient constructor with the Form argument
22267         internal. 
22268
22269 2006-05-12  Jackson Harper  <jackson@ximian.com>
22270
22271         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
22272         parents background image,  but strangely not their own.
22273         - (DrawStatusBarPanel): Take into account horizontal alignment
22274         when drawing the strings and icons.
22275
22276 2006-05-12  Mike Kestner  <mkestner@novell.com>
22277
22278         * ListBox.cs: avoid invalidations for focus when the collection is
22279         empty. 
22280
22281 2006-05-12  Chris Toshok  <toshok@ximian.com>
22282
22283         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
22284         invalidate the entire thumb area.  Call InvalidateDirty which
22285         limits the redraw to the thumb itself and surrounding pixels.
22286
22287         * XplatUIX11.cs (ScrollWindow): optimize copying.
22288         
22289 2006-05-12  Chris Toshok  <toshok@ximian.com>
22290
22291         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
22292         Figure out the positioning/layout in a single pass instead of
22293         multiple recursive invocations.  Speeds up the initial display of
22294         the data grid.  Also, make many things private that were
22295         originally public but unused outside this class.
22296
22297 2006-05-11  Jackson Harper  <jackson@ximian.com>
22298
22299         * MdiClient.cs: Improved layout code.
22300
22301 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
22302
22303         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
22304           not SelectedObject.
22305
22306 2006-05-11  Chris Toshok  <toshok@ximian.com>
22307
22308         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
22309         union of that will always be {0,0,width,height}.
22310
22311 2006-05-11  Jackson Harper  <jackson@ximian.com>
22312
22313         * Form.cs: Match MS's DefaultSize for forms (they must have
22314         changed the size in sp2).
22315
22316 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
22317
22318         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
22319
22320 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
22321
22322         * TextControl.cs : Fixed bug #78109. This incorrect position
22323           comparison caused crash on automatic line split.
22324         * TextBoxBase.cs : reduce duplicate code.
22325
22326 2006-05-10  Jackson Harper  <jackson@ximian.com>
22327
22328         * MdiClient.cs: Active form is only sent to the back when using
22329         the Next form functionality, when a form is clicked the current
22330         active shouldn't be sent to the back.
22331         - Layout the mdi windows when the container is first made visible.
22332         * Form.cs: Give the MdiClient a ref to the containing form when we
22333         create it.
22334         
22335 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
22336
22337         * LinkLabel.cs : link_font could be uninitialized, so populate one
22338           before actual use. Fixed bug #78340.
22339
22340 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
22341
22342         * XplatUIX11.cs : clipboard format native value is IntPtr.
22343           Fixed bug #78283.
22344
22345 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
22346
22347         * Control.cs: 
22348           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
22349             which is passed up the parent chain by DefWndProc
22350           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
22351             to DefWndProc (#77956)
22352         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
22353
22354 2006-05-10  Jackson Harper  <jackson@ximian.com>
22355
22356         * MdiClient.cs: We need to remove the controls from the mdi
22357         collection, when we close the window.
22358         * MdiWindowManager.cs: Special handling of closing mdi windows.
22359         * InternalWindowManager.cs: Make the close method virtual so the
22360         mdi window manager can handle it specially.
22361
22362 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
22363
22364         * DataGrid.cs:
22365           - Recalculate grid when the data source has changed
22366           - Matches styles provided by user from all data sources types
22367         * DataGridTableStyle.cs: For columns that provided by the user set the
22368         with the preferred value is there was unassigned.
22369         * CurrencyManager.cs: throw OnItemChanged event
22370
22371 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
22372
22373         * PictureBox.cs: Don't animate until handle is created. Start animation
22374           when handle is created.
22375
22376 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
22377
22378         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
22379           current codebase.
22380         * XEventQueue.cs: We don't need to provide the extra info
22381
22382 2006-05-10  Jackson Harper  <jackson@ximian.com>
22383
22384         * MdiClient.cs: If the mdi clients parent form has a background
22385         image set, we draw that background image for the mdi area's
22386         background.
22387
22388 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
22389
22390         * TextBoxBase.cs: Set IBeam cursor (#78347)
22391
22392 2006-05-10  Mike Kestner  <mkestner@novell.com>
22393
22394         * ToolBar.cs: fix some text padding issues with ButtonSize
22395         calculation. Update the default size to match MS documentation.
22396         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
22397         button size. Fixes #78296.
22398
22399 2006-05-10  Mike Kestner  <mkestner@novell.com>
22400
22401         * ListBox.cs: use is_visible for scrollbar positioning in case the
22402         control isn't on screen yet.  Fix off by one with Right vs Width
22403         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
22404         
22405 2006-05-10  Jackson Harper  <jackson@ximian.com>
22406
22407         * X11Dnd.cs: Drop to a control with another control on top of it.
22408         * ToolBar.cs: Work on a copy of the buttons list, so that it can
22409         be modified in click handlers. TODO: Look for similar problems in
22410         other controls.
22411
22412 2006-05-09  Jackson Harper  <jackson@ximian.com>
22413
22414         * Form.cs: Window managers need the old window state when setting
22415         window state now.
22416         * InternalWindowManager.cs: Allow the base mdi window manager to
22417         handle more of the MDI only stuff (like maximize buttons).
22418         * MdiWindowManager.cs: Fix some snafus in changing the window
22419         state.  Add all the menu functionality, for both popup and
22420         maximized menus.
22421         * MdiClient.cs: When a new form is selected the currently
22422         activated form is sent to the back, this matches MS.
22423         - Implement a new method to activate the next mdi child window.
22424
22425 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
22426
22427         * Control.cs: 
22428           - Added new InternalCapture method to allow controls to prevent
22429             the capture behaviour on the click handlers
22430           - Switched to use InternalCapture
22431         * ComboBox.cs:
22432           - Using InternalCapture to prevent mouse captures from being released
22433             on mouse button release (Fixes #78100)
22434         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
22435           returns Form borders if a caption is present. (Fixes #78310)
22436
22437 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
22438
22439         * TreeNode.cs: Changed serialization .ctor to not require every field
22440           to be present. (#78265)
22441         * OwnerDrawPropertyBag.cs: Added serialization .ctor
22442
22443 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
22444
22445         * MimeIcon.cs: for is faster than foreach for strings.
22446
22447 2006-05-05  Mike Kestner  <mkestner@novell.com>
22448
22449         * CheckedListBox.cs: update check handling code to not use selected.
22450         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
22451         behavior for visual feedback, motion response, shift/ctrl handling,
22452         and properly deal with all 4 selection modes. Updates to bounds
22453         handling logic.  Add scroll wheel support. [Fixes #77842]
22454
22455 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
22456
22457         * ListView.cs:
22458           - Moved adding of Implicit controls into .ctor. That way, subsequent
22459             creation of the controls will not cause them to think they are 
22460             toplevel windows (fixes #78200 header problem)
22461           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
22462           - Switched visibility setting of header control to use internal field
22463             to avoid triggering handle creation
22464           - Now checking if handle is created before causing a refresh when items
22465             are added (This makes us now match handle creation time with MS)
22466         * Splitter.cs: Removed loading of private splitter cursor, switched to
22467           Cursors version now that that is loading the right ones
22468         * Cursors.cs: Load proper splitter cursors from resources
22469         * Cursor.cs: Added second method of loading resource cursors for the 
22470           VS.Net users amongst us
22471
22472 2006-05-05  Mike Kestner  <mkestner@novell.com>
22473
22474         * ListView.cs: give header_control a minimum size based on the
22475         ListView size.
22476
22477 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
22478
22479         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
22480           window seems to do that with metacity, so set that type. (#78120)
22481
22482 2006-05-05  Mike Kestner  <mkestner@novell.com>
22483
22484         * ListViewItem.cs: fix Details mode checkbox layout bug.
22485         * ThemeWin32Classic.cs: draw a ListView column header for unused space
22486         at the end of the header, if it exists. [Fixes for #78200]
22487
22488 2006-05-04  Jackson Harper  <jackson@ximian.com>
22489
22490         * MdiClient.cs: Add a helper property to get the container form.
22491         * MdiWindowManager.cs: We have to make sure to use the menu origin
22492         when drawing the icons and buttons, this fixes maximized window
22493         icons/buttons on win32.
22494         * InternalWindowManager.cs: Reset the restore captions when a
22495         window goes from Maximized to Minimized and vice versa. Move the
22496         DrawMaximizedButtons into the MdiWindowManager source, tool
22497         windows can't be maximized. NOTE: This could use a little
22498         refactoring if time ever permits.
22499         
22500 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
22501
22502         * TextBox.cs: Add MWFCategoryAttributes
22503         * TextBoxBase.cs: Add MWFCategoryAttributes
22504         * Form.cs: Add MWFCategoryAttributes
22505
22506 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
22507
22508         * Control.cs: Add MWFCategoryAttributes
22509         * ScrollableControl.cs: Add MWFCategoryAttributes
22510
22511 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
22512
22513         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
22514           Divider is true. Fix a little glitch in PropertyToolBar
22515           drawing code
22516
22517 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
22518
22519         * Control.cs:
22520           - Dispose: Call base.Dispose, this causes the disposed event
22521             to be fired (and probably other, more important stuff)
22522           - SetVisibleCore: Set is_visible to true after creating the
22523             window so that the window still gets created invisible (if
22524             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
22525             to generate a WM_ACTIVE message
22526         * Form.cs: Call Dispose when we want to destroy the window, instead of
22527           just destroying the handle (Dispose will do that for us)
22528         * XplatUIX11.cs:
22529           - RootWindow also needs a queue, so we can properly process the
22530             property change events from RootWindow (like Activate)
22531           - Generatic synthetic WM_ACTIVE message when the active window is
22532             being destroyed
22533
22534 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
22535
22536         * LinkLabel.cs: Trigger a recalc of our label dimensions when
22537           bounds are changed
22538
22539 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
22540
22541         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
22542           for determining width and height (image might not be assigned if
22543           we're drawing an imagelist)
22544
22545 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
22546
22547         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
22548         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
22549           height from system
22550         * Theme.cs: No longer returns hardcoded menu height, instead calls
22551           new driver method
22552         * Form.cs (OnLoad): Scaling happens before triggering Load events 
22553           on MS (# 78257)
22554
22555 2006-05-01  Mike Kestner  <mkestner@novell.com>
22556
22557         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
22558
22559 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
22560
22561         * TextBoxBase.cs: Removed Fixme
22562         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
22563
22564 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
22565
22566         * XplatUIX11.cs:
22567           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
22568             the rectangle relative to the parent, considering borders. We
22569             don't really want that.
22570           - ScrollWindow: Fixed warning to be more understandable
22571         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
22572           scrollbars and scroll only the visible area
22573         * RichTextBox.cs: Removed debug output
22574
22575 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
22576
22577         * NumericUpDown.cs (Text): Just use base
22578         * UpDownBase.cs: Ensure txtView is created before using it
22579
22580 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
22581
22582         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
22583           casting to IntPtr to avoid 64bit overflow errors
22584
22585 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
22586
22587         * Control.cs:
22588           - AllowDrop: Don't force handle creation.
22589           - CreateHandle: Added call to tell driver if we're allowed to drop
22590
22591 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
22592
22593         * FileDialog.cs: Remember the last directory not only for the
22594           current instance but also for new FileDialog instances.
22595
22596 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
22597         
22598         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
22599           broke sending async messages
22600
22601 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
22602
22603         * XplatUIX11.cs:
22604           - ScrollWindow: Fixed method. We finally generate expose events again
22605             for scrolled areas. This was causing 'garbage' when scrolling
22606             textbox and other controls that used ScrollWindow
22607           - Switched from using the regular queue for paint events to the MS 
22608             model of 'generating' paint events when the queue is empty.
22609             We use the new XQueueEvent.Paint subclass to store which windows
22610             need painting.
22611           - AddExpose now takes the x/y/width/height of the exposed area
22612             and inserts the window into the paint queue if not already there
22613           - InvalidateWholeWindow: Switched to use new AddExpose method
22614           - UpdateMessageQueue: Added which queue to monitor for paint events
22615           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
22616             the unlikely case nothing above handles it. We reset the expose
22617             pending states to get them off the queue.
22618           - GetMessage: Now pulls a paint event if no other events are in the
22619             queue
22620           - Invalidate: Switched to new AddExpose method
22621           - PeekMessage: Updated to understand pending paint events
22622           - UpdateWindow: Fixed logic bug. We were only updating if the window
22623             didn't need updating. Also switched to sending WM_PAINT directly,
22624             like MS does.
22625         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
22626           and random access Remove(). The random access is needed to handle
22627           UpdateWindow() where a WM_PAINT is sent directly without accessing
22628           the queue.
22629         * ScrollBar.cs: Added Update() calls to cause immediate updates to
22630           allow for better feedback when scrolling. Scrollbars are small and
22631           the immediate update should make it 'feel' more responsive without
22632           slowing things down. ScrollBar still needs it's invaliate logic
22633           updated to not always invalidate the whole bar on certain changes.
22634
22635 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22636
22637         * Control.cs:
22638         (BackColor): if the control does not support a transparent background,
22639         return the default backcolor when the parent backcolor is transparent.
22640
22641 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
22642
22643         * Application.cs: Updated to new StartLoop/GetMessage API
22644         * RichTextBox.cs: Provide some output on RTF parsing errors
22645         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
22646           new queue_id argument to GetMessage and PeekMessage to allow faster
22647           handling of per-thread queues in drivers.
22648         * Hwnd.cs: Added Queue tracking and property
22649         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
22650         * XEventQueue.cs: Added thread trackingA
22651         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
22652         * XplatUIX11.cs:
22653           - Implemented new per-thread queue
22654           - GetMessage: Fixed return/break behaviour on several cases. We were
22655             returning stale messages in some cases, instead of just processing
22656             the next message
22657
22658 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
22659
22660         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
22661
22662 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
22663
22664         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
22665           fixed off-by-one comparisons between Width/Height and Right/Bottom.
22666
22667 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
22668
22669         * PropertyGridView.cs: Fix drop down width.
22670
22671 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
22672
22673         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
22674           a mess in DrawToolBar, so I removed one of them.
22675
22676 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
22677
22678         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
22679           needed (clip). Otherwise we get artifacts.
22680
22681 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
22682
22683         * FixedSizeTextBox.cs: Added constructor to allow specifying which
22684           dimension is fixed
22685         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
22686           and switched FixedSizeTextBox to only be fixed vertical (#78116)
22687         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
22688           if it matches the scale base font (avoids unneeded scaling)
22689
22690 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
22691
22692         * X11DesktopColors.cs: One gtk_init_check should be enough
22693
22694 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
22695
22696         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
22697           match MS behaviour
22698
22699 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
22700
22701         * TextBoxBase.cs: 
22702           - Generate OnTextChanged for Backspace even if we're only deleting
22703             the current selection
22704           - When setting the Text property, only select all text if the
22705             control does not have focus when it is being set. Otherwise
22706             just place the cursor at the beginning of the control
22707
22708 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
22709
22710         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
22711           Added a little helper to draw PropertyGrid ToolBar with a different
22712           border and a different BackColor.
22713         * PropertyGrid.cs: Some background parts didn't get painted with the
22714           correct background color. Added a class that helps us to draw the
22715           correct border for PropertyGridView and a class that helps us to
22716           draw ToolBars with a different backcolor
22717         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
22718
22719 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
22720
22721         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
22722         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
22723
22724 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
22725
22726         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
22727           into the palette entries. Also, since we're working on a copy
22728           we needed to copy the palette back onto the bitmap.
22729         * Cursor.cs: Same fix as XplatUIWin32.cs.
22730
22731 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
22732
22733         * ImageListStreamer.cs: Need to read the var (or we're off)
22734
22735 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
22736
22737         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
22738           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
22739           TextBoxBase.cs: Unused var fixes
22740         * AxHost.cs: Small 2.0 fix
22741         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
22742           as it seems that is what at least Metacity expects. This will make
22743           icons show up on 64bit platforms. We still have some 64bit size
22744           issues, though, since the startup app window size still won't match.
22745
22746 2006-04-25  Mike Kestner  <mkestner@novell.com>
22747
22748         * *.cs: cleanup newly reported exception var unused warnings.
22749
22750 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
22751
22752         * ThemeWin32Classic.cs: Button image alignment now matches exactly
22753           ms
22754
22755 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
22756
22757         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
22758           image. The image position is always the same, no matter if the
22759           button is pressed or not.
22760
22761 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
22762
22763         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
22764           selection and set the correct filename for SaveFileDialog.
22765           Patch by Emery Conrad.
22766
22767 2006-04-24  Mike Kestner  <mkestner@novell.com>
22768
22769         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
22770         check for item.X outside the ClientRect instead of item.Y. Fixes
22771         #78151.
22772
22773 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22774
22775         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
22776         trust that value blindly and do some sanity check. Fixes bug #77814.
22777
22778 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22779
22780         * ImageListStreamer.cs: save the mask as a 1bpp image.
22781
22782 2006-04-21  Mike Kestner  <mkestner@novell.com>
22783
22784         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
22785         pass Checked and Indeterminate to the Theme Engine. Improve
22786         encapsulation with ListBox.
22787         * ListBox.cs: Keep a StringFormat instead of calculating it every item
22788         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
22789         nested types.  Move all CheckState functionality to CheckedListBox.
22790         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
22791         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
22792         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
22793         single base list. Fix scrollbar sizing and placement to mirror MS.
22794         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
22795         used.
22796         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
22797         for CheckedListBox by using new DrawItemState info.  Center the
22798         checkboxes on the items. Use new StringFormat property.
22799
22800 2006-04-18  Jackson Harper  <jackson@ximian.com>
22801
22802         * Form.cs: MdiChildren don't do default locations the same way as
22803         regular forms.  This prevents a crash when trying to position the
22804         mdi windows.
22805
22806 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
22807
22808         * PropertyGridTextBox.cs: Formatting, copyright
22809         * PropertiesTab.cs: Formatting
22810         * PropertyGrid.cs: Formatting
22811         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
22812           click toggling of values
22813           
22814 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
22815
22816         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
22817         * Control.cs (.ctor): verify_thread_handle is static, don't reset
22818           every time a control is created
22819         * Application.cs: Removed obsolete EnableRTLMirroring method
22820
22821 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
22822
22823         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
22824         SelectedIndex to -1. Fixes bug #78121.
22825
22826 2006-04-17  Jackson Harper  <jackson@ximian.com>
22827
22828         * Binding.cs: Handle null values for Current and BindingContext.
22829         This occurs when binding is a little delayed.
22830         * CurrencyManager.cs: return null for Current when there are no
22831         items in the list.
22832         - Hookup to the listchanged event on the DataView and update
22833         bindings when the list is changed.  This fixes late binding of
22834         controls.
22835
22836 2006-04-17  Jackson Harper  <jackson@ximian.com>
22837
22838         * X11Dnd.cs:
22839         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
22840         Ringenbach.
22841
22842 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
22843
22844         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
22845           place
22846         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
22847           with the correct ButtonState
22848
22849 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
22850
22851         * XplatUIX11.cs: Improved distinguishing between window types to
22852           tell the WM a type closer to what the app wants (Fixes #78107)
22853
22854 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
22855
22856         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
22857           GrabHandle
22858
22859 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
22860
22861         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
22862           drawing code to reflect the size grip changes
22863
22864 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22865
22866         * ImageListStreamer.cs: fix handling of the mask that follows the main
22867         bitmap when deserializing and serialize it properly. The generated mask
22868         should better be a 1bpp image, but I'll do that later.
22869
22870 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
22871
22872         * FileDialog.cs: Show something in the DirComboBox on *nix if the
22873           path doesn't fit into some of our Current.Places
22874
22875 2006-04-13  Jackson Harper  <jackson@ximian.com>
22876
22877         * ComboBox.cs: Use borders instead of drawing our own decorations,
22878         try to obey correct rules for heights.
22879         * Theme.cs:
22880         * ThemeNice.cs:
22881         * ThemeClearLooks.cs:
22882         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
22883         this is now handled by borders.
22884         - Remove unused DrawListBoxDecorationSize method.
22885         
22886 2006-04-13  Mike Kestner  <mkestner@novell.com>
22887
22888         * MenuAPI.cs: null guarding for the disbled click check fixes crash
22889         reported by Alex.
22890
22891 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
22892
22893         * ThemeWin32Classic.cs: 
22894           - Fixed CPDrawStringDisabled
22895           - Corrected drawing of disabled menu items
22896           - Fixed drawing of disabled radio buttons (bug #78095)
22897           - Draw check in a disabled CheckBox with color ControlDark 
22898
22899 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
22900
22901         * Form.cs: Use the provided width when calculating the menu size;
22902           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
22903           and ClientSize.Width won't be updated yet
22904         * Application.cs: Use Visible instead of Show() to make form visible,
22905           this way we create the handle later and menusize is considered
22906
22907 2006-04-12  Mike Kestner  <mkestner@novell.com>
22908
22909         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
22910         reporting.
22911
22912 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
22913
22914         * TextBox.cs: Implemented context menu
22915
22916 2006-04-12  Mike Kestner  <mkestner@novell.com>
22917
22918         * ListView.cs: implement box selection. fixes #77838.
22919         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
22920
22921 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
22922
22923         * XplatUIX11.cs: Added setting of window type when transient window
22924           is created (metacity would move it otherwise)
22925         * X11Structs.cs: Added WINDOW_TYPE atoms
22926         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
22927           background (the control is Opaque but still wants transparent
22928           backgrounds)
22929
22930 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
22931
22932         * Control.cs: Added OnPaintBackgroundInternal to allow controls
22933           that set Opaque but don't mean it (like all ButtonBase-derived
22934           controls) to still draw their background
22935         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
22936           the background
22937
22938 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
22939
22940         * Control.cs (PaintControlBackground): Set the graphics object
22941           on our PaintEvent to null to prevent it from being disposed
22942           when the PaintEvent gets disposed
22943
22944 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
22945
22946         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
22947         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
22948
22949 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
22950
22951         * Control.cs: 
22952           - Added transparency check to BackColor property. Transparent
22953             backgrounds are only allowed if the control styles permit it
22954           - Added recursive painting of parent control background and
22955             foreground if a control with a transparent backcolor is drawn
22956             (Thanks to Tim Ringenback for providing his 'hack' as a base
22957              for this patch) Fixes #77985 and #78026.
22958           - Added Opaque style check before calling OnPaintBackground, no
22959             need to draw the background if the control is opaque
22960           - Removed ControlAccessibleObject owner variable (inherited from
22961             base, no need to define again)
22962           - Added some documentation links explaining the drawing events
22963             and styles
22964
22965 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
22966
22967         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
22968           that the affected control is the located at the left border of our
22969           parent (Fixes #77936)
22970
22971 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
22972
22973         * TextBoxBase.cs: When rendering disabled or readonly controls,
22974           draw the background with 'Control' instead of 'Window' color as
22975           long as the user hasn't specifically set a color
22976
22977 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
22978
22979         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
22980           since that won't be updated if the user types text (only if it's
22981           programatically set)
22982
22983 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
22984
22985         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
22986           layout changes do to app-triggered resizes will have the proper
22987           display rectangle for layout
22988
22989 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
22990
22991         * ThemeWin32Classic.cs:
22992           - Make use of the SystemBrushes and SystemPens wherever possible
22993           - Corrected some highlight colors
22994           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
22995             drawing
22996         * Theme.cs: Added Empty field to CPColor struct
22997
22998 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
22999
23000         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
23001           is displayed when calculating the display rectangle. Thanks to Mike
23002           for teaching me the err of my ways.
23003
23004 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
23005
23006         * ScrollableControl.cs:
23007           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
23008             (instead of 0,0) and we now return the real width/height instead of
23009             just the clientrectangle, adjusted for padding. The rectangle is
23010             now cached and created by the new CalculateDisplayRectangle method.
23011           - Created new CalculateDisplayRectange method, which basically does
23012             what get_DisplayRectangle() did originally, but now using the 
23013             right edge instead of DisplayRectangle to determine the size of
23014             our scrollbars
23015           - get_Canvas(): Fixed it to properly calculate canvas for 
23016             right/bottom controls which seem to be placed to the right/bottom
23017             of any controls that have a fixed location
23018           - Removed TODO that's taken care of
23019           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
23020             and SetDisplayRectLocation according to new MSDN2 docs
23021           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
23022             event when that is called, this is added for compatibility
23023           - ScrollControlIntoView(): Implemented.
23024           - Switched scrollbars to be implicit, they shouldn't be selectable
23025         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
23026           call it when the active control is set/changed
23027         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
23028         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
23029           implicit_control variable (used for native Win32 message generation)
23030         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
23031           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
23032         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
23033         * XplatUIStructs.cs: Added ScrollBarCommands enum
23034
23035 2006-04-10  Jackson Harper  <jackson@ximian.com>
23036
23037         * ButtonBase.cs:
23038         * CheckedListBox.cs:
23039         * ComboBox.cs:
23040         * DataGrid.cs:
23041         * DataGridView.cs:
23042         * Form.cs:
23043         * GroupBox.cs:
23044         * ListBox.cs:
23045         * PrintPreviewControl.cs:
23046         * ProgressBar.cs:
23047         * PropertyGrid.cs:
23048         * Splitter.cs:
23049         * StatusBar.cs:
23050         * TrackBar.cs:
23051         * UpDownBase.cs: Fixup base event overrides.
23052         
23053 2006-04-06  Mike Kestner  <mkestner@novell.com>
23054
23055         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
23056         all user-initiated value changes to min <= value <= max-thumbsz+1.
23057         (set_Value): check for vert/horiz when calculating new thumb position.
23058         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
23059         like MS does.
23060         (OnMouseMoveSB): refactor the thumb dragging code and refine
23061         invalidation logic to reduce flicker.
23062         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
23063         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
23064         (UpdateThumbPosition): small code readability cleanup
23065
23066 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
23067
23068         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
23069           different
23070
23071 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
23072
23073         * ThemeNice.cs: Use a better graphics effect when a button is pressed
23074
23075 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
23076
23077         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
23078         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
23079           This dramatically reduces the number of Pen.Dispose calls. 
23080           Where possible call ResPool methods only once instead of calling it
23081           over and over again (for example for the same color).
23082
23083 2006-04-06  Mike Kestner  <mkestner@novell.com>
23084
23085         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
23086         Also remove an unused private field on the collection. Fixes #77972.
23087
23088 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
23089
23090         * ThemeNice.cs: Added ToolBar drawing code
23091
23092 2006-04-06  Mike Kestner  <mkestner@novell.com>
23093
23094         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
23095         I'm assuming that means we need to look up the toplevel for the
23096         provided control. Fixes the crash trace in #77911 but exposes another
23097         crash in some strange reflection usage in NDocGui.
23098
23099 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
23100
23101         * ThemeNice.cs: Gave it a little silver touch and added Images
23102           method
23103         * FontDialog.cs: FontDialog is not resizable
23104         * FileDialg.cs: Added SizeGripStyle.Show
23105
23106 2006-04-05  Jackson Harper  <jackson@ximian.com>
23107
23108         * KeyboardLayouts.cs: Remove warning.
23109
23110 2006-04-05  Jackson Harper  <jackson@ximian.com>
23111
23112         * Control.cs: Enable OnPaintInternal so we can use it for drawing
23113         all of our controls instead of Paint +=.
23114         * ListBox.cs:
23115         * ListView.cs:
23116         * MenuAPI.cs:
23117         * MessageBox.cs:
23118         * NotifyIcon.cs:
23119         * ProgressBar.cs:
23120         * ScrollBar.cs:
23121         * Splitter.cs:
23122         * StatusBar.cs:
23123         * TabControl.cs:
23124         * TextBoxBase.cs:
23125         * ToolBar.cs:
23126         * TrackBar.cs:
23127         * UpDownBase.cs:
23128         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
23129         use OnPaintInternal. Remove Width/Height and Visible checks in
23130         paint handler, this is done at a higher level now.
23131         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
23132         * PaintEventArgs.cs: Add a handled flag so controls that don't
23133         want anymore painting after OnPaintInternal can make sure OnPaint
23134         isn't called.
23135
23136 2006-04-05  Mike Kestner  <mkestner@novell.com>
23137
23138         * Form.cs: fix the menu WndProc hacks to respect the native enabled
23139         state of the form, so that we don't process events when Modal dialogs
23140         are up. Fixes #77922.
23141
23142 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
23143
23144         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
23145           checking is done.
23146
23147 2006-04-05  Mike Kestner  <mkestner@novell.com>
23148
23149         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
23150
23151 2006-04-05  Mike Kestner  <mkestner@novell.com>
23152
23153         * ListView.cs (HeaderMouseMove): null guarding for the over column
23154         when setting up the drag_to_index.  Fixes #78015.
23155
23156 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
23157
23158         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
23159           in the taskbar. Transient windows seem to accomplish that.
23160
23161 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
23162
23163         * Form.cs:
23164           - Re-enabled CreateParams.X/Y code for FormStartPosition
23165           - Added code for manual placement when creating the Control
23166           - Incomplete patch to treat MDI forms differently when
23167             setting the ClientSizeCore. (Still need to figure out handling
23168             x/y coords there)
23169         * XplatUIX11.cs:
23170           - When we're explicitly setting the X/Y position of a non-Child
23171             window, let the WM know. Metacity really wants this.
23172
23173 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
23174
23175         * ThemeNice.cs: Added CPDrawButton
23176
23177 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
23178
23179         * ThemeNice.cs: Changed the color for focused buttons and activated
23180           the arrows for small scroll buttons.
23181
23182 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
23183
23184         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
23185           anymore. Changed some method modifiers to protected (virtual)
23186         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
23187           changes
23188         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
23189           Updated drawing of menus, buttons and progressbars; added
23190           CPDrawBorder3D 
23191
23192 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23193
23194         * ImageListStreamer.cs: implemented serialization/deserialization
23195         of the images.
23196
23197 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
23198
23199         * ThemeWin32Classic.cs:
23200           - Removed all the DrawFrameControl stuff; CPDrawButton,
23201             CPDrawCheckBox and CPDrawRadioButton are now handled directly
23202             inside the methods
23203           - Updated and corrected the drawing code of CPDrawButton,
23204             CPDrawCheckBox and CPDrawRadioButton to better match ms
23205           - Updated theme checkbox and radiobutton code to use the CP*
23206             methods
23207
23208 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
23209
23210         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
23211           bug is fixed
23212
23213 2006-03-31  Jackson Harper  <jackson@ximian.com>
23214
23215         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
23216         sometimes.
23217         * UpDownBase.cs: Don't CreateGraphics manually, use a
23218         Refresh. Ideally we would invalidate the correct areas here.
23219
23220 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
23221
23222         * XplatUIX11.cs: 
23223           - We now track the mapping state of windows. If a window (or 
23224             one of it's parents) is not mapped we no longer permit
23225             WM_PAINT messages to be generated since we'd otherwise get 
23226             lots of BadMatch X errors. Jackson did all the work figuring
23227             out the problem.
23228           - Destroying the caret if the window it's contained in is 
23229             destroyed. Can't use regular DestroyCaret method since it
23230             might fall into a drawing function (trying to remove the
23231             caret) and with that generate new BadMatch errors. Again,
23232             Jackson tracked this down.
23233           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
23234             make sure we send the messages to all windows. (The old code
23235             would send the WM_DESTROY to the window, and then all child
23236             windows would be 'gone' because the WM_DESTROY handle lookup
23237             would no longer find the destroyed window)
23238         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
23239         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
23240
23241 2006-03-31  Jackson Harper  <jackson@ximian.com>
23242
23243         * ScrollableControl.cs: Dont recalc if we are not visible.
23244
23245 2006-03-31  Mike Kestner  <mkestner@novell.com>
23246
23247         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
23248         the visibility branch.
23249
23250 2006-03-31  Jackson Harper  <jackson@ximian.com>
23251
23252         * ScrollBar.cs: Cap values when incrementing/decrementing.
23253
23254 2006-03-31  Mike Kestner  <mkestner@novell.com>
23255
23256         * MenuAPI.cs: setup menu.tracker for popup/context menus.
23257         * ToolTip.cs: guard against timer expirations with no active control.
23258         Not sure why it happened.
23259
23260 2006-03-31  Mike Kestner  <mkestner@novell.com>
23261
23262         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
23263         text.
23264         * ToolTip.cs: Position the tooltip based on where the cursor is at
23265         popup time, not at MouseEnter time.  Add a Down state so that we don't
23266         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
23267         positioning offset. Lookup DisplaySize at positioning time, since it
23268         can theoretically change during invocation.
23269         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
23270         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
23271
23272 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
23273
23274         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
23275           Fixes behaviour when the Text property of the box is String.Empty
23276
23277 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
23278
23279         * XplatUIX11.cs: Only send mouseleave for our client windows, not
23280           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
23281           a window)
23282
23283 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
23284
23285         * FileDialog.cs: Visual enhancement for the popup buttons in 
23286           PopupButtonPanel
23287
23288 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
23289
23290         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
23291           code
23292
23293 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
23294
23295         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
23296           highlighted menu items to match ms
23297
23298 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
23299
23300         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
23301
23302 2006-03-30  Mike Kestner  <mkestner@novell.com>
23303
23304         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
23305         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
23306         go active to account for HotLight to Selected transition.
23307         * MenuItem.cs: add internal Selected prop. Fill out the Status
23308         property by calculating it from item info. Add HotLight,
23309         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
23310
23311 2006-03-30  Mike Kestner  <mkestner@novell.com>
23312
23313         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
23314
23315 2006-03-29  Jackson Harper  <jackson@ximian.com>
23316
23317         * Form.cs: Implement TODO.
23318
23319 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
23320
23321         * PrintPreviewDialog.cs: Implemented missing methods and events; still
23322           missing proper dialog setup in the constructor
23323
23324 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
23325
23326         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
23327         * Control.cs:
23328           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
23329           - Fixed ResetBindings and removed TODO
23330           - Added check for cross-thread calls to get_Handle()
23331           - Added Marshaller attribute for set_Font to satisfy class status
23332         * FontDialog.cs: Removed TODOs that seemed implemented
23333         * UpDownBase.cs: Removed unneeded TODO and Fixme
23334         * MessageBox.cs: Implemented support for Default button and removed TODO
23335         * FileDialog.cs: Removed obsolete TODO
23336         * DomainUpDown.cs: Removed obsolete TODO
23337         * ButtonBase.cs: Removed obsolete TODO
23338         * XplatUIWin32.cs: Removed obsolete TODO
23339         * Form.cs:
23340           - Removed obsolete TODO
23341           - Calling CheckAcceptButton when the acceptbutton is changed to allow
23342             internal status updates
23343           - Making sure the active control is selected when the control is created
23344         * CurrencyManager.cs: Removed obsolete TODO
23345
23346 2006-03-29  Mike Kestner  <mkestner@novell.com>
23347
23348         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
23349         of PrintPreviewDialog and RichTextBox.
23350
23351 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
23352
23353         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
23354           DarkDark, Light and LightLight colors for a specific color
23355         * ThemeWin32Classic.cs:
23356           - Use Button drawing code to draw RadioButtons and CheckBoxes with
23357             Appearance = Button 
23358           - Make use of the new ResPool helper CPColor
23359           - Draw ProgressBar and StatusBar with correct 3D borders
23360
23361 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
23362
23363         * ColorDialog.cs: Return selected color. Fixes bug #77940.
23364
23365 2006-03-28  Mike Kestner  <mkestner@novell.com>
23366
23367         * ListView.cs: fix Icon layout to plan for scrollbar widths when
23368         calculating col/row counts.
23369
23370 2006-03-28  Mike Kestner  <mkestner@novell.com>
23371
23372         * ColumnHeader.cs:
23373         * ListView.cs:
23374         * ListViewItem.cs:
23375         * Menu.cs: 
23376         switch to explicit interface method implementation for some methods
23377         corcompare identifies as inconsistent with MS.
23378
23379 2006-03-28  Mike Kestner  <mkestner@novell.com>
23380
23381         * MainMenu.cs: 
23382         * Menu.cs:
23383         add a few missing methods from the class status output.
23384
23385 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
23386
23387         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
23388           correct.
23389
23390 2006-03-28  Mike Kestner  <mkestner@novell.com>
23391
23392         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
23393
23394 2006-03-27  Mike Kestner  <mkestner@novell.com>
23395
23396         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
23397         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
23398
23399 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
23400
23401         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
23402
23403 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
23404
23405         * ThemeWin32Classic.cs:
23406           - GroupBox: Inserted a little gap between the text and the lines
23407             on the right side
23408           - Made the code in CPDrawBorder3D more readable
23409           - Corrected the drawing location of the up and down arrows in 
23410             CPDrawScrollButton
23411
23412 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
23413
23414         * ControlPaint.cs: Corrected line widths in DrawBorder for
23415           ButtonBorderStyle Inset and Outset
23416
23417 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
23418
23419         * ThemeWin32Classic.cs:
23420           - Rewrote the totally broken CPDrawBorder3D method. That was
23421             one of the main problems for the terrific ThemeWin32Classic
23422             look
23423           - Updated and corrected Button drawing
23424           - Correct the dimensions of the SizeGrip to match ms ones
23425           - Removed a small drawing glitch in DrawComboBoxEditDecorations
23426         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
23427           Border3DStyle.Sunken to match ms.
23428
23429 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
23430
23431         * ThemeWin32Classic.cs: First small part of the "de-uglify
23432           ThemeWin32Classic" effort, SizeGrip
23433
23434 2006-03-24  Jackson Harper  <jackson@ximian.com>
23435
23436         * XplatUIX11.cs: Give a max idle time of one second, this matches
23437         MS and forces an Idle event every second when there are no other
23438         events in the queue.
23439
23440 2006-03-24  Mike Kestner  <mkestner@novell.com>
23441
23442         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
23443         * ListView.Item.cs: fix layout issues with null image lists and images
23444         smaller than checkbox size.
23445         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
23446         mode like MS does.  It's weird, but consistent.  ;-)
23447         Fixes #77890.
23448
23449 2006-03-24  Mike Kestner  <mkestner@novell.com>
23450
23451         * ListView.cs: Scroll wheel support for the item control.  Fixes
23452         #77839.
23453
23454 2006-03-23  Jackson Harper  <jackson@ximian.com>
23455
23456         * ScrollableControl.cs: Special case negative sized areas, not
23457         zero.
23458         * MonthCalendar.cs: Save the rect of the clicked date so we can
23459         use it for invalidation.
23460         - Try to cut down on the number of invalidates
23461         - Invalidate the rect the mouse is over and was over when moving
23462         the mouse, so we get the focus box following the cursor.
23463
23464 2006-03-23  Mike Kestner  <mkestner@novell.com>
23465
23466         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
23467         focus rectangle drawing. Fixes #77835.
23468
23469 2006-03-23  Mike Kestner  <mkestner@novell.com>
23470
23471         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
23472         the if and else if and reverting back to the original == check on the
23473         None conditional.
23474
23475 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
23476
23477         * FontDialog.cs: Update the example panel if the selected index of
23478           the fontListBox changes.
23479
23480 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
23481
23482         * FileDialog.cs: Make FileDialog remember which directory it was in
23483           last in the same execution.
23484
23485 2006-03-22  Mike Kestner  <mkestner@novell.com>
23486
23487         * FileDialog.cs: make the DropDownMenu on the toolbar display
23488         RadioChecks since they are mutually exclusive and that's what MS does.
23489
23490 2006-03-22  Mike Kestner  <mkestner@novell.com>
23491
23492         * Theme.cs: add Color param to CPDrawMenuGlyph.
23493         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
23494         checks and radio marks and arrows are visible on highlighted items.
23495         * ControlPaint.cs: update to use new Theme signature.
23496
23497 2006-03-22  Mike Kestner  <mkestner@novell.com>
23498
23499         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
23500         is active. Fixes #77870.
23501
23502 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
23503
23504         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
23505           to be focused/selected after startup
23506
23507 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
23508
23509         * ColorDialog.cs: 
23510           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
23511             CustomColors and ShowHelp properties
23512           - Some internal rewrites to get better results when using the
23513             ColorMatrix
23514
23515 2006-03-22  Mike Kestner  <mkestner@novell.com>
23516
23517         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
23518         HoverSelection.  Fixes #77836.
23519
23520 2006-03-22  Mike Kestner  <mkestner@novell.com>
23521
23522         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
23523         ToggleButtons.  (De)Sensitize the Back button around a stack count of
23524         1, not 0.  Update ButtonSize based on a pixel count of the win32
23525         control.  Adjust the toolbar size/location for new button size.
23526
23527 2006-03-22  Jackson Harper  <jackson@ximian.com>
23528
23529         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
23530         true.
23531         * ScrollBar.cs: When doing increments and decrements we need to
23532         set the Value property so that ValueChanged gets raised. A
23533         possible optimization here would be to make an internal SetValue
23534         that doesn't invalidate immediately.
23535         * ToolTip.cs: Tooltips get added to their container (when
23536         supplied) so they get disposed when the container is disposed.
23537         - Don't create tooltips for String.Empty. This prevents all these
23538         little 2-3 pixel windows from showing up when running nunit-gui
23539         and driving me mad.
23540         * Form.cs: Don't set topmost when setting the owner if the handles
23541         haven't been created yet.  The topmost set will happen when the
23542         handles are created.
23543
23544 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
23545
23546         * XplatUIX11.cs:
23547           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
23548           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
23549             visible (to allow them to recalculate their sizes)
23550
23551 2006-03-21  Mike Kestner  <mkestner@novell.com>
23552
23553         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
23554         methods. Removed a ton of redundant code.  Still not really happy with
23555         the border rendering, but I think that's mainly because of the
23556         ControlDarkDark being black instead of a dark grey. Depending on how 
23557         close we want to be, we might want to revisit those color choices.
23558         Among the new features added during the refactor were DropDownArrow
23559         pressed rendering, Disabled image rendering.  Proper flat appearance
23560         boundary rendering.  Removed the Divider and Wrapping dividers since I
23561         can't figure out any combination of themes and conditions to make the
23562         MS control draw a horizontal line on a toolbar despite what the
23563         Divider property docs indicate.
23564         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
23565         conditions and incorrect layout.  Updated to coding standard.
23566         * ToolBarButton.cs: refactored layout and positioning code from
23567         ToolBar to here.  Invalidate wherever possible instead of forcing
23568         redraws of the whole toolbar. 
23569         (Known remaining issues: explicit ButtonSize smaller than provided
23570         images.)
23571
23572 2006-03-21  Mike Kestner  <mkestner@novell.com>
23573
23574         * ContextMenu.cs (Show): use the position parameter instead of just
23575         showing at the MousePosition.
23576
23577 2006-03-21  Jackson Harper  <jackson@ximian.com>
23578
23579         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
23580         control handle this.
23581         * TreeNodeCollection.cs: If we are clearing the root node we need
23582         to reset top_node so calcs can still happen.
23583         * ThemeWin32Classic.cs: This is a Flags so we need to check
23584         properly.
23585         
23586 2006-03-21  Jackson Harper  <jackson@ximian.com>
23587
23588         * DataGrid.cs: Create columns when the binding context has been
23589         changed.
23590         * X11Structs.cs: Keysyms are uints.
23591         - Add size to fix build.
23592
23593 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
23594
23595         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
23596           XplatUIOSX.cs: 
23597           - Added ResetMouseHover method to allow controls to retrigger
23598             hovering if they need it more than once
23599           - Implemented MouseHoverTime and MouseHoverSize properties
23600         * Timer.cs: Start() must reset the interval
23601         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
23602           properties
23603
23604 2006-03-21  Jackson Harper  <jackson@ximian.com>
23605
23606         * X11Keyboard.cs: improved layout detection. Move the nonchar
23607         tables into this file.
23608         * KeyboardLayouts.cs: Move the tables into resource files.
23609
23610 2006-03-21  Mike Kestner  <mkestner@novell.com>
23611
23612         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
23613
23614 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
23615
23616         * Mime.cs: Various speed optimizations. Looking up mime types
23617           is now 2 times faster than before
23618
23619 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
23620
23621         * CreateParams.cs: Added internal menu field
23622         * Control.cs: 
23623           - Switched call order for UpdateBounds; now we always call
23624             the one that also takes ClientSize, and we're calculating the 
23625             client size via driver method in the others. The previous
23626             method of tracking client size by difference wasn't working
23627             for forms where even the starting client size wouldn't match
23628             the overall form size (due to borders) (Part of fix for #77729)
23629           - CreateParams(): Do not use parent.Handle unless the handle is
23630             already created. Causes havoc with Nexxia and throws off our
23631             creation of controls
23632         * XplatUIX11.cs:
23633           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
23634           - Switched handling of ConfigureNotify over to new PerformNCCalc 
23635             method (consolidates code)
23636           - Changed RequestNCRecalc to use new PerformNCCalc method
23637           - Added calls to RequestNCRecalc when menus and borders are changed
23638             to allow app to set NC size. (Part of fix for #77729) This matches
23639             when MS send a WM_NCRECALC on Win32 windows.
23640           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
23641             (Part of fix for #77729). This matches what MS does, they also
23642             send that message when the form is made visible.
23643           - XException.GetMessage: Improved usability of X errors by including
23644             a translation of the window into Hwnd and Control class
23645           - Improved debug info for window creation, reparenting and destruction
23646           - Created helper method WindowIsMapped() [Currently not used]
23647         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
23648         * Form.cs:
23649           - CreateParams: Now setting our menu on the new internal menu field
23650           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
23651             avoid calculating the same property twice
23652         * Hwnd.cs:
23653           - Improved usability of ToString() for debugging purposes
23654           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
23655             determine the height of the menu, instead of just the font. This
23656             required to also create a graphics context and to keep a bmp 
23657             around (for performance reasons)
23658
23659 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
23660
23661         * MenuAPI.cs: Added OnMouseUp method
23662         * Form.cs:
23663           - Now remembering the requested client size, avoids size errors
23664           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
23665             instead of base if the menu is active. This is required due to
23666             control now capturing and releasing on down/up and it would
23667             prematurely release our menu capture
23668
23669 2006-03-17  Jackson Harper  <jackson@ximian.com>
23670
23671         * KeyboardLayouts.cs: Add the czech layouts.
23672
23673 2006-03-16  Jackson Harper  <jackson@ximian.com>
23674
23675         * Control.cs: Use the viewport space when sizing not the controls
23676         client size, so things like ScrollableControl that effect the
23677         viewport size (when scrollbars are added) are computed correctly.
23678         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
23679         of ManagerEntrys.
23680         - Handle creating BindingManagers for null data sources.
23681         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
23682         source, otherwise when rows are added they are added to the 'fake'
23683         datasource and we will crash when trying to set the position in
23684         those rows.
23685         - Use Implicit scrollbars on the datagrid so they arent
23686         selectable.
23687         
23688 2006-03-16  Jackson Harper  <jackson@ximian.com>
23689
23690         * Binding.cs:
23691         * InternalWindowManager.cs:
23692         * MdiWindowManager.cs:
23693         * X11Keyboard.cs: I really want Mike to love me again (fix
23694         compiler warnings).
23695
23696 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
23697
23698         * DataGrid.cs:
23699           - OnMouseDown: Switch to editing mode when clicking on the cell
23700                          even if we're clicking on the cell that's currently 
23701                          selected
23702           - ProcessGridKey: Left/Right now wrap like MS.Net does
23703           - ProcessGridKey: Tab now knows to add a new row when tab is
23704                             pressed in the cell of the last column of the 
23705                             last row
23706           - ProcessGridKey: Enter now adds another row  if pressed in the last
23707                             row and selectes the new row, same column cell
23708           - ProcessGridKey: Home/End navigate columns, not rows, like 
23709                             originally implemented
23710           - Broke ProcessKeyPreview code out into an extra Internal method
23711             so it can be called from the edit code
23712         * DataGridTextBox.cs (ProcessKeyMessage):
23713           - Switched to accept Tab keypresses
23714           - Added F2 handling to allow jumping to the end of the edited cell
23715           - Added logic to allow moving caret left/right inside edited cell
23716             and making the edited cell jump when the caret hits cell borders
23717           - Tab and Enter are now passed to the datagrid after being handled
23718         * TextBoxBase.cs:
23719           - Removed capture code now that Control handles it
23720           - set_SelectionStart now ensures caret is visible
23721
23722 2006-03-16  Jackson Harper  <jackson@ximian.com>
23723
23724         * TrackBar.cs: Debackwards the increment/decrement for handling
23725         mouse clicks on the bar with vertical trackbars.
23726         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
23727         bottom to match MS.
23728
23729 2006-03-16  Mike Kestner  <mkestner@novell.com>
23730
23731         * ListView.cs: make shift/ctrl keyboard and mouse selection 
23732         consistent with the MS control. Fix a bug in
23733         SelectedListViewItemCollection.Clear that was pissing me off for the
23734         better part of a day because the collection was being altered
23735         underneath us as we walked the list.
23736
23737 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
23738
23739         * Control.cs: Not sure how we could miss this so long, but it seems
23740           that MS.Net has Capture set all the way from before calling 
23741           OnMouseDown through sending the mouse events until after
23742           OnMouseUp. This will fix DataGrid's selection being set to end
23743           at the location of the MouseUp.
23744
23745 2006-03-15  Jackson Harper  <jackson@ximian.com>
23746
23747         * BindingContext.cs: Check the binding after its added so that it
23748           can initialize the binding managers and hookup to events.
23749         * Binding.cs: Data members seem to sometimes include rows/cols in
23750           the format Row.Column we now take this into account.
23751           - Hookup to the position changed event so we can update the
23752           control when the position has changed in the data set.
23753         * CurrencyManager.cs: Take into account the row/col naming
23754           convention when creating dataset tables.
23755         * BindingContext.cs: Using a newer better way of storing
23756           datasource/datamember pairs.  Hopefully this better matches MS for
23757           looking up binding managers.
23758
23759
23760 2006-03-15  Jackson Harper  <jackson@ximian.com>
23761
23762         * BindingContext.cs: The currency manager needs the data member
23763         name, if the member is a data set we use the name to find the
23764         correct table.
23765         * CurrencyManager.cs: When creating the list prefer an IList over
23766         an IListSource.
23767         - Attempt to create a DataTable from a DataSet (TODO: might need
23768         some better error checking here, although MS doesn't seem to have much)
23769         - If we have a DataTable create a view and use it as our list.
23770
23771 2006-03-15  Mike Kestner  <mkestner@novell.com>
23772
23773         * ListView.cs: keep a matrix of the icon mode layout to facilitate
23774         keyboard navigation. Support Up/Down/Left/Right selection correctly
23775         for all 4 View modes.
23776         * ListViewItem.cs: add internal row/col fields for icon layouts.
23777
23778 2006-03-15  Jackson Harper  <jackson@ximian.com>
23779
23780         * TabControl.cs: Redraw the tabs when we resize so their newly
23781         calculated sizes are drawn on screen.
23782         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
23783         composite characters.
23784         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
23785         - filter events so that composite characters can be created
23786         patches by peter
23787         * X11Structs.cs: Add XIMProperties enum.
23788
23789 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
23790
23791         * Control.cs (BringToFront, SendToBack): Don't use window or handle
23792           unless it's created
23793
23794 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
23795
23796         * Control.cs (PerformLayout): We don't need to consider visiblity
23797           for anchoring, only for docking. This fixes 'whacky' alignment
23798           in listbox and other controls that use implicit scrollbars after
23799           the previous PerformLayout patch
23800         * ListBox.cs: Switched to use implicit scrollbars
23801           
23802 2006-03-14  Mike Kestner  <mkestner@novell.com>
23803
23804         * ToolBar.cs: 
23805         * VScrollBar.cs:
23806         - chain up the "new event" overrides to base and use
23807         OnEvent to raise them.  Part of fix for bug #76509.
23808
23809 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
23810
23811         * FileDialog.cs: Do not select an item in the parent directory
23812           on backspace
23813
23814 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
23815
23816         * Control.cs (PerformLayout): It would seem that we considered
23817           invisible windows for our layout. Not quite the right thing
23818           to do. Now we don't any longer, thereby fixing bug #76889.
23819
23820 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
23821
23822         * Control.cs (CanFocus): I goofed. A control can have focus 
23823           even though it's not selectable. Made it match MS docs.
23824
23825 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
23826
23827         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
23828           center by default (fixes #76895)
23829         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
23830           all uses of Border3DSides.All with the explicit ORd together
23831           Left|Right|Top|Bottom because I assume that nobody was aware 
23832           that All also implies a center fill. Most places I checked had
23833           a fill right above.
23834         * ProgressBarStyle.cs: Added
23835
23836 2006-03-13  Mike Kestner  <mkestner@novell.com>
23837
23838         * ListView.cs: fix breakage in drag shadow header positioning 
23839         from Peter's csc compilation fix.
23840
23841 2006-03-13  Mike Kestner  <mkestner@novell.com>
23842
23843         * ListView.cs: fix NRE produced by backspacing twice in a focused
23844         FileDialog.
23845
23846 2006-03-13  Mike Kestner  <mkestner@novell.com>
23847
23848         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
23849
23850 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
23851
23852         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
23853           be changed
23854         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
23855           the allowed size before making programmatic size changes
23856
23857 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
23858
23859         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
23860           set, metacity is broken and will still use the emty sizes in 
23861           the struct. (Fix for #77089)
23862
23863 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
23864
23865         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
23866           WindowExStyles and marked both enums as Flags
23867         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
23868           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
23869           to match WindowStyles split
23870         * XplatUIX11.cs:
23871           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
23872           - Updated to match WindowStyles split
23873         * XplatUIWin32.cs:
23874           - Fixed FosterParent creation, was using ExStyle on the Style field
23875             (This should help with Popup focus issues)
23876           - Updated to match WindowStyles split
23877
23878 2006-03-13  Jackson Harper  <jackson@ximian.com>
23879
23880         * MdiWindowManager.cs: Use the system menu height. Fixes some
23881         strange sizing issues.
23882
23883 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
23884
23885         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
23886         * TextBoxBase.cs:
23887           - Scroll to caret after inserting text (#77672)
23888           - Make scroll range one pixel higher, fixes off-by-one error (and
23889             makes underlines visible on the last line)
23890
23891 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
23892
23893         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
23894           the keyboard state from being stuck with keys in 'pressed' state when
23895           focus is switched away via keyboard
23896         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
23897           reset the keyboard if no X11 KeyUp events are expected to come
23898         * X11Structs.cs: Switched type of Visible to bool to match driver
23899
23900 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
23901
23902         * TextControl.cs:
23903           - Switched caret to be just 1 pixel wide, matches MS and looks less
23904             clunky
23905           - Moved caret display 1 pixel down from the top of the control
23906             to improve view
23907           - InsertCharAtCharet: Update the selection start if moving the caret
23908             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
23909           - No longer always creating the caret when the caret methods are
23910             called. Only the actual ShowCaret/HideCaret will do that now
23911           - Only setting caret visible if the owner control has focus
23912           - UpdateView: Added invalidation-shortcut logic for center and right 
23913             aligned text. Previously we'd update all according to the left
23914             logic which caused drawing errors. Also fixed height of invalidated
23915             areas, now properly invalidating the whole area (was off-by-one)
23916           - owner_HandleCreated: Always generate the document when the
23917             handle is created; this ensures that 
23918         * TextBoxBase.cs:
23919           - Fixed situation where caret would disappear under the right
23920             window border, also improved scrolling behaviour on left-
23921             aligned textboxes
23922           - Fixed right-aligned textboxes to have a border to the
23923             right instead of the caret being under the right border
23924         * XplatUIX11.cs:
23925           - Switched from 'nested' to simple visible/not visible tracking 
23926             for caret (part of fix for #77671)
23927           - No longer passing through translated FocusIn/FocusOut messages
23928             since we were notifying too often and the wrong windows. Instead
23929             we just notify our focussed window of receiving or loosing focus
23930         * XplatUIWin32.cs: Switched from 'nested' show/hide 
23931           counting for caret to simple visible yes/no behaviour (part of 
23932           fix for #77671)
23933
23934 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
23935
23936         * Mime.cs: Remove debug code...
23937
23938 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
23939
23940         * MimeGenerated.cs: Removed
23941         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
23942           and subclasses) from /usr/(local/)share/mime and
23943           $HOME/.local/share/mime.
23944
23945 2006-03-10  Jackson Harper  <jackson@ximian.com>
23946
23947         * MdiWindowManager.cs: Recalc the NC area when a window is
23948         maximized/restored so that the menu area is drawn on forms that
23949         don't have a menu.
23950
23951 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
23952
23953         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
23954           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
23955           us to force a WM_NCCALCRESIZE message being sent. This is needed
23956           for MDI maximizing.
23957
23958 2006-03-10  Jackson Harper  <jackson@ximian.com>
23959
23960         * Form.cs: We need to use the ActiveMenu when calculating menu
23961         height.
23962         - Fix nullref when the window manager hasn't been created yet.
23963         * Control.cs: Fix nullref when we try to bring a control to the
23964         front that has no parent.
23965         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
23966         height.
23967         - Add a dummy item to the maximized menu so it always has the
23968         correct height. Otherwise when there are no menus we don't get our
23969         icon and buttons.
23970         
23971
23972 2006-03-10  Jackson Harper  <jackson@ximian.com>
23973
23974         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
23975         stuff.
23976         * Form.cs: Make the window_state internal so the window managers
23977         can track it.
23978         - When an MDI child is maximized let its window manager create the
23979         main menu (so it can add its icon).
23980         - Notify the window managers of state changes
23981         - Let the window manager paint its buttons and handle button
23982         clicks on the menu when it is maximized.
23983         * InternalWindowManager.cs: Move the prev_bounds into the mdi
23984         window manager, since tool windows don't use it, only mdi windows.
23985         - Tell the main form that we don't want it to handle NCPAINT
23986         itself to avoid extra painting.
23987         - Handle clicks on a maximized windows menu.
23988         - Handle window state changes
23989         - Handle minimize/maximize clicks correctly by setting the window state.
23990         * MdiWindowManager.cs: Add an icon menu that (the menu you get
23991         when clicking on the forms icon).
23992         - New method to create a forms maximized menu. This is its normal
23993         menu + an icon.
23994         - Handle window state changes.
23995         - Handle sizing of maximized windows.  Maximized windows are just
23996         drawn bigger then the parent visible area. All controls are still
23997         there, they are just outside the visible area (this matches windows).
23998         * MdiClient.cs: No scrollbars when a child window is maximized.
23999         - Let the children windows figure out how big they should be when
24000         sizing maximized windows.
24001         - Implement a version of ArrangeIconicWindows somewhat similar to
24002         Windows version.  There are some little differences, but I don't
24003         think any app will rely on the layout of minimized mdi windows.
24004
24005 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
24006
24007         * Padding.cs: Several fixes to allow compiling with csc 2.0
24008
24009 2006-03-09  Jackson Harper  <jackson@ximian.com>
24010
24011         * Menu.cs:
24012         * MenuItem.cs: Cheap hack so we can add items to the list without
24013         the events being raised.  This allows adding mdi items during
24014         drawing. TODO: Should probably find a better time to add the items.
24015
24016 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
24017
24018         * ThemeWin32Classic.cs:
24019           - CheckBox_DrawText: Added logic to not wrap if not enough space
24020             is available (Fix for bug #77727)
24021           - RadioButton_DrawText: Added logic not to wrap if not enough
24022             space is available (Fix for bug #77727). Also removed some
24023             duplicate code, DrawString always drawing the regular text
24024             before hitting the if statement.
24025
24026 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
24027
24028         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
24029
24030 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
24031
24032         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
24033         * ContainerControl.cs: Partial implementation of some 2.0 scaling
24034           methods. Moved the new 2.0 properties into alphabetical order with
24035           other properties and added MonoTODO tags
24036
24037 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
24038
24039         * AutoScaleMode.cs: Added. Fix build.
24040
24041 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
24042
24043         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
24044           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
24045           and was requiring premature handle creation for calls from above
24046         * Form.cs, Control.cs: Removed handle arguments from calls to
24047           CalculateClientRect()
24048
24049 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
24050
24051         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
24052           drag_column.column_rect is MarshalByRef and can't be used that way
24053
24054 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
24055
24056         * AxHost.cs: Added deserialization constructor for 
24057           AxHost+State (fixes 77743)
24058
24059 2006-03-09  Mike Kestner  <mkestner@novell.com>
24060
24061         * ListView.cs: 
24062         - Added column drag reordering for details view.
24063         - fixed behavior when mouse is dragged off column and
24064         AllowColumnReorder is false.
24065         * ColumnHeader.cs: clone the format too in Clone.
24066         * Theme.cs: add DrawListViewHeaderDragDetails method.
24067         * ThemeWin32Classic.cs:
24068         - impl new method for drawing drag column shadows and targets.
24069         - support column offset for details mode in DrawListViewItem.
24070
24071 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
24072
24073         * TextControl.cs: Reset the char_count when the document is cleared
24074           (Fixes bug reported on mono-winforms mailing list)
24075
24076 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
24077
24078         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
24079           of calling base we simply process the key ourselves, since both
24080           DefWindowProc and the handled method would set m.Result. 
24081           (Fixes #77732)
24082
24083 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
24084
24085         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
24086           method also moves the window; instead implemented a copy of
24087           Control.ScaleCore (Part of fix for #77456)
24088         * TextBoxBase.cs: 
24089           - Created new CreateGraphicsInternal method to allow providing
24090             a graphics context when no handle is created without triggering
24091             handle creation. (Part of fix for #77456)
24092           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
24093         * TextControl.cs: 
24094           - Switched Constructor to require TextBoxBase instead of Control (to
24095             allow uncast access to CreateGraphicsInternal)
24096           - Safeguarded use of owner.Handle property. No longer accessing it
24097             unless the handle is already created.
24098           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
24099           - Now triggering a recalc when owning control becomes visible
24100         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
24101           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
24102           premature handle creation (Part of fix for #77456)
24103         * Control.cs:
24104           - We now only destroy our double-buffering buffers when the
24105             control is resized or disposed, but not when visibility
24106             changes. (The code even re-created them twice every time)
24107           - Now requiring a redraw of the buffer on visibility changes
24108             (fixes bug 77654 part 2)
24109           - Not passing OnParentVisibleChanged up unless the control
24110             is visible
24111           - CanFocus: Fixed to match MS documentation
24112           - Focus: Fixed to return actual focus state and to check if
24113             setting focus is legal before setting it
24114
24115 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
24116
24117         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
24118           when to draw focus rectangle by looking at parent focus and
24119           selected state instead. This fixes TabPages on Linux sometimes
24120           having none or multiple focus rectangles.
24121         * XplatUIX11.cs (SetFocus): 
24122           - Don't set the focus if the same window already has focus
24123           - Use SendMessage instead of PostMessage (like it's Win32
24124             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
24125             to match MS behaviour
24126         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
24127           are not selectable.
24128
24129 2006-03-07  Jackson Harper  <jackson@ximian.com>
24130
24131         * PictureBox.cs: Revert line I accidently committed last week.
24132
24133 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
24134
24135         * Control.cs: 
24136           - Added new IsRecreating and ParentIsRecreating properties to
24137             allow testing if RecreateHandle has been called on ourselves
24138             or one of our parents
24139           - WndProc(WM_DESTROY): If our control handle is being recreated
24140             we immediately need to create the handle when receiving the
24141             destroy, that way our child windows find a valid parent handle
24142             when they themselves are being recreated upon WM_DESTROY receipt
24143             (fix for bug #77654 part 1)
24144         * XplatUIX11.cs:
24145           - DestroyWindow: WM_DESTROY must be sent to our own window before
24146             notifying any child windows. MS documents that child windows
24147             are still valid when WM_DESTROY is received. (Control now relies on
24148             this behaviour)
24149           - Added some fine-grain debug options
24150
24151 2006-03-06  Jackson Harper  <jackson@ximian.com>
24152
24153         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
24154         box and base calculations off this.
24155         * MdiChildContext.cs:
24156         * MdiWindowManager.cs: Don't need to ensure scrollbars here
24157         anymore.
24158         
24159 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
24160
24161         * Splitter.cs: In situations where the affected control is added
24162           to the parent's control list after the splitter, we would not
24163           populate affected. Now we try populating it on mousedown, if
24164           it's not already set, and force it to be re-set whenever our
24165           parent changes.
24166
24167 2006-03-03  Matt Hargett  <matt@use.net>
24168
24169         * Control.cs: implement Control.Padding
24170         * Padding.cs: -Padding.All returns -1 when constructing with the
24171         implicit default ctor
24172         -Padding.ToString() matches MS.NET
24173         * ContainerControl.cs: implement
24174         ContainerControl.AutoScaleDimensions
24175         * ListControl.cs: implement ListControl.FormattingEnabled
24176         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
24177         * ButtonBase.cs:
24178         * TabPage.cs: Implement UseVisualStyleBackColor.
24179         * PictureBox.cs: Implement PictureBox.InitialImage.
24180
24181 2006-03-03  Mike Kestner  <mkestner@novell.com>
24182
24183         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
24184         event declarations to proxy to base event.
24185         * ListViewItem.cs: update to use ItemControl.
24186         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
24187         * ThemeWin32Classic.cs: update to new ListView theme API and fix
24188         column header label rendering for 0 width columns.
24189
24190 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
24191
24192         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
24193           that causes the control to be created. Fixes #77476.
24194
24195 2006-03-02  Jackson Harper  <jackson@ximian.com>
24196
24197         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
24198         expose_pending.
24199
24200 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
24201
24202         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
24203           passed in for the EventArgs (fixes #77690)
24204
24205 2006-03-01  Jackson Harper  <jackson@ximian.com>
24206
24207         * ScrollBar.cs: Refresh afterbeing resized.
24208
24209 2006-02-28  Mike Kestner  <mkestner@novell.com>
24210
24211         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
24212         Clean up a tracker compile warning.
24213         * MenuItem.cs: add internal PerformPopup method.
24214         [Fixes #77457]
24215
24216 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
24217
24218         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
24219           implicit expose) when the text is set to null
24220
24221 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
24222
24223         * RichTextBox.cs (FlushText): When newline is true, we always
24224           need to split the line, even if no text is on it and we may
24225           never eat newlines. (Fixes #77669)
24226
24227 2006-02-28  Mike Kestner  <mkestner@novell.com>
24228
24229         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
24230         and set Selected instead.
24231         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
24232         collections.
24233
24234 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
24235
24236         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
24237
24238 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
24239
24240         * FontDialog.cs:
24241           - Got rid of the panel. All controls are now directly added to
24242             the dialog form
24243           - It is now possible to set a font with the Font property
24244           - MinSize and MaxSize property do now what they should
24245           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
24246           - Searching and selecting a font with the font textbox works now,
24247             the same applies to the style and size textbox
24248           - Draw the correct 3D border in the example panel
24249           - Fixed a little mem leak (unused fonts didn't get disposed)
24250           - Many other internal updates/rewrites...
24251           - Fix typo
24252
24253 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
24254
24255         * TextControl.cs: 
24256           - InsertRTFFromStream: Added 'number of characters inserted' argument
24257           - set_SelectedRTF: Now using the number of characters to calculate
24258             the new location for the selection and cursor (x/y cannot be used
24259             due to potentially already wrapped text)
24260
24261 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
24262
24263         * TextControl.cs: Added property and implemented means to allow 
24264           disabling recalculation of a document (can be used to speed up
24265           multiple inserts and is needed to make RTF inserts predictable, see
24266           bug #77659)
24267         * RichTextBox.cs: Using the new NoRecalc property of Document to
24268           keep x/y insert locations predictable. Also makes it faster inserting
24269           large chunks of RTF
24270
24271 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
24272
24273         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
24274           it's easier for a child control to handle the other messages without
24275           having to duplicate the special functionality
24276         * TextBoxBase.cs
24277           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
24278             code to handle processing the key ourselves, in order to get 
24279             access to the result of KeyEventArgs.Handled. We now only call 
24280             ProcessKey if they key hasn't been handled already. Fixes #77526.
24281           - set_Text: If null or empty string is given, just clear the 
24282             document. Fixes part of #77526
24283
24284 2006-02-27  Jackson Harper  <jackson@ximian.com>
24285
24286         * SizeGrip.cs: Paint the background color before painting the grip
24287         so things look right.
24288         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
24289
24290 2006-02-27  Mike Kestner  <mkestner@novell.com>
24291
24292         * ListView.cs:
24293           - Restructure layout and invalidation model to remove a ton of
24294           flicker from the control and speed up performance in general.
24295           - Add manual column resize, flickers like crazy, but I already have
24296           some ideas on how I'll fix that. (#76822)
24297           - Merge the three Icon-based views into a single layout method.
24298           - Move item selection interaction logic from the item since 
24299           interaction with the collections is more appropriate to the view.
24300           - Deselection on non-item clicks.
24301         * ListViewItem.cs:
24302           - Encapsulate most of the layout. Add some internal props to trigger
24303           layout.  Move to a model where Items invalidate themselves instead
24304           of just invalidating the whole control every time something changes.
24305           - Invalidate on Text/Caption changes.
24306           - switch to an offset based layout model to avoid having to absolute
24307           position every element on item moves.
24308           - correct checkbox layout to conform to MS layout.
24309         * ThemeWin32Classic.cs:
24310           - refactor some column header drawing code.
24311           - fix string justification for column headers (#76821)
24312           - make SmallIcon labels top justified for compat with MS impl.
24313         * ThemeClearlooks.cs:
24314           - adjust to new ListViewItem internal checkbox bounds api.
24315
24316 2006-02-27  Jackson Harper  <jackson@ximian.com>
24317
24318         * Control.cs:  Change where implicit controls fall in the zorder.
24319         They are now on top of all children.
24320         - Synced AddImplicit code with Add
24321         - Removed unused enumerator.
24322         * SizeGrip.cs: Remove the TODO as its been TODONE.
24323
24324 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
24325
24326         * TextControl.cs(Insert): Combine the last lines unless the insertion
24327           string ends with \n\n, otherwise we leave one line too many (Fixes
24328           something I noticed with the testapp for #77526; the bug itself was
24329           already fixed in the previous checkin)
24330
24331 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
24332
24333         * RichTextBox.cs:
24334           - SelectionColor and SelectionFont methods no longer set absolute
24335             styles. Instead, the keep font or color respectively (This 
24336             resolves a long-standing FIXME in the code)
24337           - When flushing RTF text, the insert code now considers text trailing
24338             behind the insertion point (Fixes the bug where when replacing
24339             the selected text via SelectedRTF the remainder of the line behind 
24340             the selection would stay on the first insertion line)
24341         * TextBoxBase.cs:
24342           - AppendText now updates the selection points after inserting text
24343           - AppendText now ensures that the last tag (sometimes 0-length) of
24344             the document is used for the style information (Fixes part of 
24345             bug #77220)
24346         * TextControl.cs:
24347           - Created new FontDefiniton class to allow describing partial style
24348             changes
24349           - StreamLine() now takes a lines argument, to allow it to decide
24350             whether an encountered zero-length tag is the last in the document
24351             (which must be kept to not loose the font/color contained in it,
24352             for later appends)
24353           - Created Combine() and Split() methods for Marker structs, to 
24354             support marker updates due to reformatted documents (soft line
24355             wraps)
24356           - Implemented Document.CaretTag setter
24357           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
24358             of the last line (Not the cause, but also exposed by bug #77220)
24359           - Added LineTag argument to InsertString method, to allow callers
24360             to force a certain tag to be used (required to force use of the
24361             trailing zero-length tag of a document)
24362           - Now updating markers in Combine(), to avoid stale tag markers
24363           - Added some method descriptions to aid maintenance
24364           - Implemented new FormatText concept, allowing additive/subtractive
24365             formatting by only specifying the components that are to be 
24366             changed. This was needed for resolving the RTB.SelectedColor/
24367             RTB.SelectedFont fixmes
24368           - Added Break() support method to allow breaking up linetags (used
24369             for partial formatting)
24370           - Added GenerateTextFormat() method. It is used for partial 
24371             formatting and allows to generate a full font/color from given
24372             attributes and an existing tag.
24373
24374 2006-02-26  Jackson Harper  <jackson@ximian.com>
24375
24376         * XplatUIX11.cs:  Use the correct caption height.
24377         - Translate hittest coordinates to screen coords to match MS.
24378         * XplatUIWin32.cs: When we create MDI windows we need to reset
24379         some of the style flags, so we get a nice blank window, and can
24380         draw all the decorations ourselves.
24381         - Set a clipping rectangle on the non client paint event, the
24382         window manager drawing code needs one.
24383         * Form.cs: The window manager needs to know when the window state
24384         has been updated.
24385         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
24386         don't need to factor in border and title sizes in these
24387         methods. TODO: Remove the args and fix the call points.
24388         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
24389         properly.
24390         - Let the driver set the cursors.
24391         - Improve active window handling
24392         - Correct sizes for title bars and buttons.
24393         - Match MS drawing better
24394         * MdiWindowManager.cs: We don't need to handle border style
24395         updates specially anymore.
24396         - Check for scrollbars when windows are done moving
24397         - Handle Active properly.
24398         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
24399         correctly. I am spewing the exception though, so we don't hide the
24400         bugs.
24401         
24402 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
24403
24404         * DataGridViewRowPostPaintEventArgs.cs,
24405           DataGridViewCellPaintingEventArgs.cs,
24406           DataGridViewRowCollection.cs,
24407           DataGridViewRowPrePaintEventArgs.cs,
24408           DataGridViewCell.cs: Clear a few warnings and implement a few
24409           exceptions that should be thrown.
24410
24411 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
24412
24413         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
24414           'inheriting' our parent's (non-default) cursor. (Part of
24415            the fix for #77479)
24416
24417 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
24418
24419         * XplatUIX11.cs: Fixed cast to make csc happy
24420
24421 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
24422
24423         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
24424           it's for the client area (part of fix for #77479 and needed
24425           for MDI window cursor handling)
24426         * XplatUIX11.cs
24427           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
24428             the appropriate default cursors and also passing the message
24429             up the parent chain 
24430           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
24431             for non-client areas
24432
24433 2006-02-15  Jackson Harper  <jackson@ximian.com>
24434
24435         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
24436         is a real MDI window
24437
24438 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
24439
24440         * X11DesktopColors.cs: Instead of checking the desktop session
24441           string for "KDE" check if it starts with "KDE"
24442
24443 2006-02-10  Jackson Harper  <jackson@ximian.com>
24444
24445         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
24446         systems).
24447
24448 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
24449
24450         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
24451           errors
24452         * ColorDialog.cs:
24453           - Got rid of the panel. All controls are now directly added to
24454             the dialog form
24455           - Changed to mono coding style
24456
24457 2006-02-10  Jackson Harper  <jackson@ximian.com>
24458
24459         * InternalWindowManager.cs: We don't need the set visibility to
24460         false hack anymore now that peter has written beautiful shutdown
24461         code.
24462
24463 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
24464
24465         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
24466           where already explicitly destroyed
24467
24468 2006-02-10  Jackson Harper  <jackson@ximian.com>
24469
24470         * MdiClient.cs: Handle the case where windows are too high or to
24471         the left and we need scrollbars.
24472
24473 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
24474
24475         * MimeIcon.cs: Added some icons
24476         * FileDialog.cs:
24477           - Fixed bug #77477
24478           - Got rid of the panel. All controls are now directly added to
24479             the dialog form
24480           - Changed to mono coding style
24481           - On Linux "My Computer" and "My Network" will now show some
24482             more usefull information. A new class, MasterMount, gathers
24483             this information from /proc/mount. Updated MWFFileView to make
24484             use of this information
24485           - Fixed a bug that caused FileDialog to crash when
24486             ".recently_used" file had a zero size
24487           - FilterIndex does now what it should
24488           - Some Refactoring
24489         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
24490             FileDialog changes
24491
24492 2006-02-09  Jackson Harper  <jackson@ximian.com>
24493
24494         * ComboBox.cs: Don't touch if null.
24495
24496 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
24497
24498         * Cursor.cs: 64bit safeness fix
24499         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
24500
24501 2006-02-09  Jackson Harper  <jackson@ximian.com>
24502
24503         * Form.cs: If a form is made into an MDI form update the styles so
24504         all the props can get set correctly.
24505         - Kill the mdi_container when we dont need it anymore.
24506         * InternalWindowManager.cs: Add missing NOT
24507
24508 2006-02-08  Jackson Harper  <jackson@ximian.com>
24509
24510         * InternalWindowManager.cs: Respek clipping when drawing MDi
24511         decorations.
24512
24513 2006-02-08  Jackson Harper  <jackson@ximian.com>
24514
24515         * Hwnd.cs: Add bits to track non client expose events.
24516         * XplatUIX11.cs: Track non client expose events on the hwnd. This
24517         gives us a proper invalid rect and will allow for some nice
24518         optimizations with NC client drawing
24519         - MDI windows are children windows, so move their style handling
24520         into the child window block.
24521         * InternalWindowManager.cs: Remove a state reset that was
24522         getting invoked at the wrong time. Fixes managed windows getting
24523         into a 'stuck' captured state.
24524
24525 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
24526
24527         * TextControl.cs (Document.ctor): Now initializing 
24528           selection_anchor. Fixes #77493
24529
24530 2006-02-07  Jackson Harper  <jackson@ximian.com>
24531
24532         * TrackBar.cs: The increment/decrements were backwards.
24533
24534 2006-02-07  Mike Kestner  <mkestner@novell.com>
24535
24536         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
24537         to the instance itself.
24538
24539 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
24540
24541         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
24542           on ulongs and pointers, the size differs between 32bit and 64bit
24543           systems. 
24544
24545 2006-02-07  Mike Kestner  <mkestner@novell.com>
24546
24547         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
24548         for 64 bit platforms to work around a metacity bug. 
24549
24550 2006-02-07  Jackson Harper  <jackson@ximian.com>
24551
24552         * TrackBar.cs: Process the input keys we need, and hookup to
24553         KeyDown instead of using WndProc, so we get key messages.
24554
24555 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
24556
24557         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
24558           machine we're on. 
24559         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
24560           we need to translate the XdndVersion atoms array before sending it
24561
24562 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
24563
24564         * XplatUIX11.cs: 
24565           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
24566             number of bits for the property, not the number of bytes. The
24567             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
24568             but would not crash since it specified 8 bits instead of 4 bits)
24569           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
24570             defined as XID -> long in the C headers)
24571           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
24572             references since those are now IntPtr to begin with
24573           - Switched all Atom.XXX 'int' casts to IntPtr casts
24574           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
24575           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
24576           - Added XChangeActivePointerGrab DllImport (for X11DnD)
24577         * X11Structs.cs:
24578           - Changed 'int' type for Atoms in XEvent structures to IntPtr
24579           - Changed atom in HoverStruct to be IntPtr
24580         * X11DnD.cs:
24581           - Removed local DllImports, switched code to use those from XplatUIX11
24582           - Removed/fixed casts related to the switch of Atom to be a IntPtr
24583
24584 2006-02-06  Mike Kestner  <mkestner@novell.com>
24585
24586         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
24587         method signatures in the import region.  There may still be some
24588         lingering struct marshaling issues, as I didn't drill down into those.
24589         Yet.
24590
24591 2006-02-06  Jackson Harper  <jackson@ximian.com>
24592
24593         * ComboBox.cs: Dont manually set the top_item, this is computed
24594         when the scrollbar position is set.
24595
24596 2006-02-06  Mike Kestner  <mkestner@novell.com>
24597
24598         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
24599         startup crashes on amd64.  There's other fixes needed.  All pinvoke
24600         usage of Atom needs to be mapped to IntPtr for example.  And there are
24601         likely other int/long issues to be addressed.
24602
24603 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
24604
24605         * FileDialog.cs: One more...
24606
24607 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
24608
24609         * FileDialog.cs: Next try
24610
24611 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
24612
24613         * FileDialog.cs: First part of fix for #77464
24614
24615 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
24616
24617         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
24618           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
24619           AcceptButton border drawing.
24620
24621 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
24622
24623         * Form.cs: Moved positioning of form after auto scaling is applied,
24624           otherwise it would possibly use wrong form size.
24625
24626 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
24627
24628         * Control.cs (RecreateHandle): No need to re-create any child
24629           controls, the child windows will get destroyed automatically by
24630           the windowing system or driver, and re-created when the handle
24631           is being accessed the first time. Fixes #77456
24632         * Form.cs: No longer setting the form to closing if the handle is 
24633           being recreated. This seems like the right thing to do, don't
24634           have a bug or testcase for this, though.
24635
24636 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
24637
24638         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
24639           controls to avoid unwanted side effects
24640
24641 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
24642
24643         * Control.cs: 
24644           - ScaleCore needs to scale the bounds, not the ClientSize of the 
24645             control. Fixes #77416.
24646           - DefaultSize is 0,0 for control
24647         * TextBoxBase.cs: 
24648           - DefaultSize is 100, 20
24649           - SetBoundsCore: Now enforcing the height, no matter if the provided
24650             height is more or less than the preferred one, as long as AutoSize
24651             is on
24652         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
24653
24654 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
24655
24656         * Control.cs:
24657           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
24658             call unless both performLayout is true *and* we have a pending
24659             layout change
24660           - ResumeLayout: MS does not completely nest Suspend and Resume,
24661             they bottom out at 0, fixed our code to match that.
24662           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
24663             SetBoundsCore, we were updating even when we shouldn't. This fixes
24664             swf-anchors mis-anchoring when resizing the app fast and lots.
24665           - UpdateDistances: Now only setting the left and top distance if 
24666             we have a parent and are not suspended, this is based on
24667             a suggestion by Don Edvaldson in bug #77355.
24668           - OnVisibleChanged: Fixed logic when to create the control. We may
24669             not create the control if we have no parent or if it's not visible;
24670             switched to using Visible property instead of is_visible field 
24671             since the property also considers parent states. This fixes a bug
24672             when starting Paint.Net
24673
24674 2006-02-02  Jackson Harper  <jackson@ximian.com>
24675
24676         * Form.cs: If the forms handle hasn't been created yet don't call
24677         into xplatui to make it top most, just set the topmost flag on the
24678         form in CreateParams
24679         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
24680
24681 2006-02-01  Jackson Harper  <jackson@ximian.com>
24682
24683         * ScrollableControl.cs: Refactored the Recalculate method a
24684         little, this wasn't handling all the variants of bottom and right
24685         bars needed to be added and added/removed based on their
24686         counterparts being added/removed (which changes the drawable
24687         size). Also we special case client widths and heights of 0 and
24688         don't add the scrollbar for those.
24689
24690 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
24691
24692         * XplatUIX11.cs: 
24693           - Added method to get AbsoluteGeometry(); currently unused, but might
24694             be used in the future, if we try again to figure out toplevel
24695             coordinates with some more crappy window managers
24696           - Added FrameExtents() method to retrieve the WM set decoration size
24697           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
24698             to deal with at least KDE, FVWM and metacity (Fixes #77092)
24699         * Hwnd.cs: 
24700           - Added whacky_wm tracking var for metacity
24701           - Added logic to have default menu height if the actual menu height
24702             has not yet been calculated (part of fix for #77426)
24703         * Form.cs: Keep track whether client size has been set and re-set 
24704           it if a menu is added/removed afterwards (Fixes #77426)
24705
24706 2006-01-31  Jackson Harper  <jackson@ximian.com>
24707
24708         * Control.cs: When a new Site is set on the component attempt to
24709         pull the AmbientProperties from it.
24710
24711 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
24712
24713         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
24714           in the background of the owning form. Fixes #77332
24715
24716 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
24717
24718         * MimeIcon.cs: Fix for #77409
24719
24720 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
24721
24722         * XplatUIX11GTK.cs: Initial import
24723
24724 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
24725
24726         * FixedSizeTextBox: fixes class signature
24727
24728 2006-01-30  Jackson Harper  <jackson@ximian.com>
24729
24730         * FixedSizeTextBox.cs: New internal class that represents a
24731         textBox that will not be scaled.
24732         * TreeView.cs:
24733         * ComboBox.cs:
24734         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
24735         standard TextBox.
24736                 
24737 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
24738
24739         * XplatUIX11.cs: Retrieve default screen number instead of
24740           assuming 0. Attempted fix for #77318
24741
24742 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
24743
24744         * XplatUIWin32.cs: 
24745           - GetWindowPos: When a window is parented by FosterParent, use 
24746             the desktop instead of FosterParent as the base to get coordinates
24747           - CreateWindow: Don't make FosterParent the parent window for Popups
24748             if we don't want a taskbar entry, Popups automatically don't get one
24749         * Hwnd.cs: Need to call remove to actually remove the key from the
24750           hash table
24751
24752 2006-01-30  Mike Kestner  <mkestner@novell.com>
24753
24754         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
24755
24756 2006-01-30  Jackson Harper  <jackson@ximian.com>
24757
24758         * TreeView.cs:
24759         * TreeNode.cs: Raise events no matter how the treenode is
24760         checked. Patch by Don Edvalson.
24761
24762 2006-01-30  Jackson Harper  <jackson@ximian.com>
24763
24764         * TreeNode.cs: Signature fix.
24765
24766 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
24767
24768         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
24769
24770 2006-01-20  Mike Kestner  <mkestner@novell.com>
24771
24772         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
24773         event forwarding when menus are active.
24774         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
24775         Most of the patch is pdb's with a little rework.
24776
24777 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
24778
24779         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
24780           Removed GetMenuDC and ReleaseMenuDC methods; replaced
24781           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
24782         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
24783         * InternalWindowManager.cs: Added use of PaintEventStart/End to
24784           handling of WM_NCPAINT message, now passing the PaintEventArgs to
24785           the PaintWindowDecorations method
24786         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
24787         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
24788         * MenuAPI.cs: Made tracker window invisible
24789         * XplatUIWin32.cs:
24790           - Removed GetMenuDC and ReleaseMenuDC methods
24791           - Implemented the client=false path for PaintEventStart and
24792             PaintEventEnd
24793
24794 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
24795
24796         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
24797         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
24798           styles
24799         * Form.cs: 
24800           - MaximizeBox, MinimizeBox: Recreate the handle when setting
24801             the style
24802           - CreateParams: Reworked the styles to match MS look'n'feel,
24803             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
24804             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
24805
24806 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
24807
24808         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
24809           window is not mapped, since otherwise every form that's being 
24810           created is considered minimized, which is wrong.
24811         * Form.cs: Catching the exception and returning our internal value
24812           instead
24813
24814 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
24815
24816         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
24817           SetWindowMinMax() to have means to tell the driver about the minimum,
24818           maximum and maximized state window sizes. (Part of the fix for #76485)
24819         * Form.cs:
24820           - Implemented tracking of minimum and maximum window size, now calling
24821             new SetWindowMinMax() driver method to tell the driver (Part of the
24822             fix for #76485)
24823           - Finished handling of WM_GETMINMAXINFO method, now setting all values
24824             (Completes fix for #76485)
24825           - Calling new SetWindowMinMax driver method when the handle for a 
24826             form is created, to make sure the driver knows about it even if
24827             the values have been set before the window was created
24828           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
24829             to avoid messing up our anchoring calculations (partial fix
24830             for #77355)
24831         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
24832         * XplatUIX11.cs:
24833           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
24834           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
24835             (and presumably other freedesktop.org compliant WMs). Left the
24836             assumption unmapped=minimized, needed for SetVisible to work.
24837           - Now setting the window state when creating windows
24838           - Fixed SetVisible to consider/set the window state when mapping
24839             a Form. We cannot set the state before it's mapped, and we cannot
24840             use Form.WindowState once it's mapped (since it would ask the
24841             driver and get 'normal'. Therefore, we grab the state before
24842             mapping, map, and then set state.
24843           - Implmemented SetWindowMinMax method; Metacity does not seem to
24844             honor the ZoomHints, though.
24845         * XplatUIWin32.cs:
24846           - Removed MINMAXINFO (moved to XplatUIStructs)
24847           - Added SetWindowMinMax stub (on Win32 the only way to set that
24848             information is in response to the WM_GETMINMAXINFO message, which
24849             is handled in Form.cs)
24850           - Added logic to SetVisible to set the proper window state when a 
24851             form is made visible (fixes #75720)
24852
24853 2006-01-26  Jackson Harper  <jackson@ximian.com>
24854
24855         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
24856         same way we handle them with Invoke.
24857
24858 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
24859
24860         * Form.cs:
24861           - Added tracking of window state so CreateParams can return
24862             the appropriate style
24863           - Moved setting of WS_CAPTION style in CreateParams to allow
24864             styles without caption
24865         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
24866           control if the TextBox property is accessed. Fixes #77345
24867         * Control.cs:
24868           - get_Created: now uses is_disposed and is_created to determine
24869             return value (suggested by Jackson)
24870           - CreateHandle: No longer exits if the handle is being recreated
24871           - RecreateHandle: If the handle is not yet created call the 
24872             appropriate method to create either control or handle. If the
24873             control is already created CreateHandle will simply exit instead
24874             of just creating the handle
24875         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
24876           now SendMessage WM_DESTROY directly to the control when DestroyWindow
24877           is called.
24878         * XplatUIX11.cs: 
24879           - When DestroyWindow is called, instead of waiting for the 
24880             DestroyNotification from X11, we directly post it to the WndProc
24881             and immediately dispose the hwnd object.
24882             Same applies to DestroyChildWindows, and this obsoletes the
24883             expose_pending tracking. Contrary to Win32 behaviour we destroy our
24884             child windows before our own, to avoid X11 errors.
24885           - Removed the direct sending of WM_PAINT on UpdateWindow
24886         * XplatUIWin32.cs:
24887           - Reworked DoEvents and GetMessage to allow access to internal queue
24888             even when trying non-blocking access to the queue.  Fixes #77335. 
24889             Based on a patch suggestion by Don Edvalson. The new private
24890             GetMessage can now also be used as a backend for a PeekMessage
24891             frontend version.
24892         * XplatUI.cs: Improved debug output for CreateWindow
24893
24894 2006-01-25  Jackson Harper  <jackson@ximian.com>
24895
24896         * Help.cs: Allow param to be null. Patch by Don Edvalson.
24897
24898 2006-01-24  Jackson Harper  <jackson@ximian.com>
24899
24900         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
24901         when we have a MaxDropItems lower then the selected index.
24902
24903 2006-01-24  Jackson Harper  <jackson@ximian.com>
24904
24905         * Control.cs: Don't allow selection of non visible controls, allow
24906         selection of controls without parents.
24907
24908 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
24909
24910         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
24911         * DataGridDrawingLogic.cs: Add editing row only when is necessary
24912
24913 2006-01-23  Jackson Harper  <jackson@ximian.com>
24914
24915         * UpDownBase.cs: Make the textbox handle all the selection and
24916         tabbing. This fixes tabing to updown controls.
24917
24918 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
24919
24920         * TextBoxBase.cs: fixes exception thown the object was null
24921
24922 2006-01-23  Jackson Harper  <jackson@ximian.com>
24923
24924         * ButtonBase.cs: Just use the base CreateParams. They set
24925         visibility and enabled correctly.
24926         * ComboBox.cs:
24927         * TrackBar.cs:
24928         * MonthCalendar.cs: Lets let the base set as much of the
24929         createparams as possible so we don't have duplicate code all over
24930         the place.
24931
24932 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
24933
24934         * ThemeGtk.cs: Added TrackBar and some experimental code to
24935           get double buffering back
24936
24937 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
24938
24939         * DataGrid.cs: Allows row number set internally higher than the last
24940         when creating a new row. Restores the editing functionality.
24941
24942 2006-01-20  Mike Kestner  <mkestner@novell.com>
24943
24944         * MimeIcon.cs: delay Image creation until the icons are accessed
24945         instead of creating 190 scaled images on GnomeHandler startup.
24946
24947 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
24948
24949         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
24950           first call base before processing the event. Fixes #77279
24951
24952 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
24953
24954         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
24955           that the stride for the GDI bitmap would match the stride of
24956           a DIB or a Cursor.
24957
24958 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
24959
24960         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
24961
24962 2006-01-19  Jackson Harper  <jackson@ximian.com>
24963
24964         * ComboBox.cs: Hookup the text controls keydown event so we get
24965         those when the text control has the focus.
24966
24967 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
24968
24969         * Label.cs: Now using the base events instead of defining new ones;
24970           this allows us to just call the base properties without having to
24971           duplicate all base property logic 
24972
24973 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
24974
24975         * Label.cs: A label by default is not a tabstop (Fixes one of our
24976           failing nunit tests)
24977
24978 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
24979
24980         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
24981         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
24982
24983 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
24984
24985         * Cursor.cs: Reimplemented creating cursor bitmaps without using
24986           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
24987           This fixes #77218
24988         * XplatUIWin32.cs: 
24989           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
24990             constructor creates images that can't be saved. Part of the fix
24991             for #76103
24992           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
24993           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
24994             bug fix for handling window state in forms properly)
24995
24996 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
24997
24998         * ThemeGtk.cs: Simplify ScrollBar drawing
24999
25000 2006-01-18  Jackson Harper  <jackson@ximian.com>
25001
25002         * Splitter.cs: Set the default dock style for the splitter control
25003         in the constructor.
25004
25005 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
25006
25007         * ThemeGtk.cs: Corrected StateType and ShadowType for
25008           gtk_paint_box
25009
25010 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
25011
25012         * Control.cs: Make use of Theme.DoubleBufferingSupported
25013         * ThemeGtk.cs:
25014           - Added drawing for flat style buttons
25015           - Added ScrollBar drawing
25016
25017 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
25018
25019         * ThemeClearlooks.cs: Removed some unneeded code.
25020         * ThemeGtk.cs: First part of ThemeGtk enhancements.
25021
25022 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
25023
25024         * LinkLabel.cs: We need to update the hover drawing when
25025           leaving the control as well.
25026
25027 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
25028
25029         * DataGrid.cs: Clicking on non empty areas in the columns
25030            area was giving an exception
25031
25032 2006-01-17  Jackson Harper  <jackson@ximian.com>
25033
25034         * ThemeWin32Classic.cs:
25035         * ListView.cs: Do not draw/clip the headers when the header style
25036         is None.
25037
25038 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
25039
25040         * DataGrid.cs: Fixes 77260
25041         
25042 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
25043
25044         * DataGrid.cs: Clicking on a column on a empty grid was giving
25045           an exception
25046
25047 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
25048
25049         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
25050           or any keypress will crash the grid.
25051
25052 2006-01-17  Mike Kestner  <mkestner@novell.com>
25053
25054         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
25055         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
25056         invisible/previously-visible items.
25057         [Fixes #76909]
25058
25059 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
25060
25061         * ThemeClearlooks.cs:
25062         - Added CL_Draw_Button method; now other theme controls that are 
25063           not derived from button or do not have a button can draw buttons
25064           too
25065         - Updated ComboBox drawing
25066         - Beautified RadioButton drawing
25067         - Corrected drawing of bottom and left tabs
25068         - Beautified DateTimePicker and MonthCalendar
25069         - Added CPDrawButton and CPDrawRadioButton
25070
25071 2006-01-16  Jackson Harper  <jackson@ximian.com>
25072
25073         * ComboBox.cs: Set the initial value of the scrollbar to the
25074         current index. Reduce the numbers of refreshs and IndexOfs called.
25075
25076 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
25077
25078         * FileDialog.cs: When the file listview is focused hitting the
25079           backspace key moves the fileview to the parent directory
25080
25081 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
25082
25083         * Form.cs: 
25084           - Added RecreateHandle call when changing taskbar visibility to 
25085             trigger reparenting in Win32 driver (Fixes #75719)
25086           - If a window has minimize or maximize buttons, it cannot have
25087             a help button
25088         * XplatUIWin32.cs:
25089           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
25090             the toplevel form with FosterParent (A toolwindow not on the
25091             taskbar) (Fixes #75719)
25092           - Made FosterParent a toolwindow
25093
25094 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
25095
25096         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
25097
25098 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
25099
25100         * ToolTip.cs: If SetToolTip is called from a control and the mouse
25101           is currently over that control, make sure that tooltip_window.Text
25102           gets updated
25103
25104 2006-01-13  Mike Kestner  <mkestner@novell.com>
25105
25106         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
25107
25108 2006-01-13  Jackson Harper  <jackson@ximian.com>
25109
25110         * TreeView.cs: On MS GetNodeAt never actually factors in the X
25111         value passed.  Also redraw the selected node when we recieve
25112         focus, so tabbing between trees works correctly.
25113
25114 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
25115
25116         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
25117           ~/.gconf/%gconf-tree.xml, so use
25118           .gconf/desktop/gnome/interface/%gconf.xml
25119
25120 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
25121
25122         * TextControl.cs: Draw text in gray if control is disabled
25123
25124 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
25125
25126         * TreeView.cs: Draw the focus rectangle outside the highlight, to
25127           make sure it's always visible. Fixes #76680.
25128
25129 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
25130
25131         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
25132
25133 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
25134
25135         * PageSetupDialog.cs: Added.
25136         * PrintDialog.cs: Attributes.
25137         * PrintPreviewControl.cs: Updates.
25138         * PrintPreviewDialog.cs: Updates.
25139         
25140 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
25141
25142         * Control.cs: Undid my selection check fix, since it's not needed
25143         * TextBoxBase.cs:
25144           - Now considering the presence of hscroll/vscroll when sizing
25145             vscroll/hscroll respectively. Fixed bug #77077
25146           - Added Left/Up/Down/Right to IsInputKey list to prevent
25147             ContainerControl from stealing them. This fixes what I broke
25148             with my last checkin.
25149
25150 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
25151
25152         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
25153           I finally understand how the property can be set without a setter :-)
25154
25155 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
25156
25157         * Application.cs:
25158           - Switched RunLoop to use static Message.Create to create a 
25159             Message object
25160           - Added PreProcessMessage call in runloop for keyboard events; this
25161             is part of the fix for #77219, I overlooked this originally in the
25162             MSDN doc for PreProcessMessage
25163         * Control.cs:
25164           - Removed call to PreProcessMessage from handling of keyboard 
25165             messages; it's supposed to be done in the message pump
25166           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
25167             per MSDN documentation.
25168           - IsInputChar: All chars are input chars by default; removed the 
25169             parent calling chain, MS does not document that
25170           - PreProcessMessage: If IsInputChar is true, we want to return false
25171             to allow dispatching of the message
25172           - When selecting the next control, now also check that we're not
25173             selecting ourselves again and therefore return a false positive.
25174         * TextBoxBase.cs:
25175           - Tried to match return values for IsInputKey and ProcessDialogKey
25176             to what MS returns; moved processing of our special keys outside
25177             ProcessDialogKey since MS does not seem to return true on those.
25178           - Moved code that previously was in ProcessDialogKey into new private
25179             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
25180           - Reworked handling of WM_CHAR to not have to duplicate code from
25181             Control.cs anymore, instead we simply call down to base.
25182            
25183 2006-01-12  Jackson Harper  <jackson@ximian.com>
25184
25185         * ComboBox.cs: We always need to refresh the text area when
25186         EndUpdate is called. Fixes the combobox in the file dialog.
25187         * Control.cs: Don't create the creator_thread until the controls
25188         handle is created.  Also in InvokeRequired we check if the
25189         creator_thread is null. This gives the effect of InvokeRequired
25190         returning true if the controls handle is not created yet, and
25191         matches MS.
25192
25193 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
25194
25195         * XplatUI.cs:
25196           - Added StartLoop() driver method. This is used to allow drivers to
25197             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
25198             loop for a particular thread
25199           - Added EndLoop() driver method. This is called once the message
25200             pump for the thread is shut down
25201           - Added SupportsTransparency method to allow the driver to indicate
25202             opacity support for windows
25203         * Form.cs:
25204           - Removed TODO attribute, completed AllowTransparency property
25205           - Added documented logic to Opacity
25206         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
25207           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
25208           versions of CompatibleTextRendering
25209         * X11Structs.cs: Added opacity atom to our atom enumeration
25210         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
25211           of a form might be set before it's reparented by the WM, and we need
25212           the opacity value without calling up to Form)
25213         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
25214           SupportsTransparency() driver methods
25215         * Application.cs: Now calling StartLoop and EndLoop driver methods
25216         * XplatUIX11.cs:
25217           - Added opacity atom registration
25218           - Added StartLoop()/EndLoop() methods. They're empty right now but
25219             will need to get implemented when we switch to a per-thread queue
25220           - Implemented SupportsTransparency() method
25221           - Implemented SetWindowTransparency() method
25222           - Added support for setting the opacity value when a window is
25223             reparented (since the opacity needs to be set on the WM frame)
25224         * XplatUIOSX.cs, XplatUIWin32.cs:
25225           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
25226
25227 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
25228
25229         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
25230
25231 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
25232
25233         * FileDialog.cs: Added ToolTip for MWFFileView
25234         * MimeIcon.cs: Rewrote GnomeHandler.
25235           - Get currently used gnome icon theme from
25236             ($HOME)/.gconf/%gconf-tree.xml
25237           - Make use of inherited icon themes
25238           - Support SVG icon themes like Tango via librsvg
25239
25240 2006-01-12  Miguel de Icaza  <miguel@novell.com>
25241
25242         Revert's Jackson's revert which broke 2.0 builds.   Fix both
25243         builds. 
25244         
25245         * Application.cs: Move the use_compatible_text_rendering outside
25246         the NET_2_0 define.  If we ever need to use the
25247         use_compatible_text_rendering on the individual controls they will
25248         access the variable from the common shared code paths.
25249
25250 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
25251
25252         * XplatUI.cs:
25253           - Added more granular debug options
25254           - Added method to print both window text and id
25255           - Switched debug output to use new Window() debug method
25256           - Added IsEnabled() driver method
25257           - Added EnableWindow() driver method
25258         * Form.cs:
25259           - Removed end_modal; no longer needed, new loop handles termination
25260             via 'closing' variable
25261           - If form is modal, setting DialogResult will now initiate loop
25262             termination via 'closing' variable
25263           - Added support for is_enabled/WS_DISABLED to CreateParams
25264           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
25265             does all the work
25266           - Removed code that's now in RunLoop from ShowDialog()
25267           - Added various documented sanity checks to ShowDialog()
25268           - Added handling of WM_DESTROY message; we set 'closing' on getting
25269             the message to indicate the message pump to terminate
25270           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
25271             send by the Application.ExitThread method. (We send the message
25272             to destroy the window after all other events have been
25273             processed through the queue, instead of destroying the handle 
25274             directly)
25275           - Moved code from Close() method to WM_CLOSE handler; added logic
25276             to only send close-related events if the form is not displayed
25277             modal
25278         * Splitter.cs (..ctor): Fixed typo in resource name
25279         * Control.cs:
25280           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
25281             brush now
25282           - set_Cursor: Now only setting calling into XplatUI if the handle for
25283             the control is already created; this avoids implict handle creation
25284             or crashes if it's not created
25285           - set_Enabled: Now setting the enabled state via the new driver method
25286             instead of just tracking it
25287           - CreateParams: Added logic to set WS_DISABLED based on enabled state
25288           - CreateControl: Reordered event firing and method calls to more
25289             closely fire events in the order MS does. Now setting the
25290             enabled state in the driver when creating the control.
25291           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
25292             match MS order
25293         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
25294           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
25295         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
25296         * Hwnd.cs:
25297           - Added tracking of window enabled state (get_Enabled/set_Enabled)
25298           - Added EnabledHwnd property to easily allow a driver to find the
25299             handle of the first enabled window in the parent chain (this is
25300             used by drivers to pass up input events of disabled windows)
25301         * XplatUIDriver.cs: Added IsEnabled() method
25302         * Application.cs:
25303           - Removed crude and obsolete exiting tracking variable
25304           - Removed internal ModalRun(); replaced by RunLoop()
25305           - Implemented private CloseForms() method to allow closing all 
25306             windows owned by a particular (or all) threads
25307           - Exit() now properly closes all windows without forcing the message
25308             pump to quit
25309           - Removed obsolete InternalExit() method
25310           - Changed Run() methods to use new RunLoop() message pump
25311           - Implemented new RunLoop() method for both modal and non-modal forms
25312         * CommonDialog.cs:
25313           - get_CreateParams: Added setting of WS_DISABLED
25314           - Simplified ShowDialog(); now all the work is done in RunLoop(),
25315             invoked via Form.ShowDialog()
25316         * NativeWindow.cs: We don't remove the window from the collection when
25317           the handle is destroyed; there might still be messages for it in the
25318           queue (mainly the resulting WM_DESTROY); instead it will be removed
25319           when Control calls InvalidateHandle in the WM_DESTROY handler
25320         * XplatUIX11.cs:
25321           - CreateWindow: Added logic to handle the WS_DISABLED window style
25322           - EnableWindow: Implemented based on Hwnd.Enabled
25323           - GetMessage: Reset PostQuitState so the method can be called again
25324           - Implemented support for disabled windows (passing messages to the
25325             first enabled parent) in handling all input messages
25326           - Added optimizations for handling Expose events
25327           - Implemeted new driver method IsEnabled()
25328           - Now always resetting paint pending tracking vars when we start paint
25329           - Re-implemented UpdateWindow via just sending a WM_PAINT message
25330         * XplatUIOSX.cs: Added IsEnabled method stub
25331         * XplatUIWin32.cs: Implemented new IsEnabled() method
25332
25333 2006-01-11  Jackson Harper  <jackson@ximian.com>
25334
25335         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
25336         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
25337         variables a little.
25338         * ColorDialog.cs: Clear out the old form before adding the new
25339         panel.  
25340
25341 2006-01-11  Jackson Harper  <jackson@ximian.com>
25342
25343         * X11Dnd.cs: Make sure to add all the text formats when adding
25344         strings to the data object.
25345         * TreeNodeCollection.cs: When adding to a sorted tree we need to
25346         do some redrawing too.  Also change the UpdateNode to an
25347         UpdateBelow so the newly added node gets painted.
25348         
25349 2006-01-11  Miguel de Icaza  <miguel@novell.com>
25350
25351         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
25352         LinkLabel.cs, PropertyGrid.cs: Implement the
25353         UseCompatibleTextRendering property for 2.x
25354
25355         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
25356
25357 2006-01-11  Jackson Harper  <jackson@ximian.com>
25358
25359         * TreeView.cs: Use the property for setting the selected node so
25360         the correct events get raised.
25361         * TreeNode.cs: Update the tree when the fore/back colours of a
25362         node are set.
25363
25364 2006-01-10  Jackson Harper  <jackson@ximian.com>
25365
25366         * TreeView.cs: Allow setting SelectedNode to null.
25367
25368 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25369
25370         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
25371
25372 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25373
25374         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
25375
25376 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25377
25378         * PrintDialog.cs: Added attributes and set default property values.
25379
25380 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25381
25382         * PrintControllerWithStatusDialog.cs: 
25383         Added PrintControllerWithStatusDialog.
25384
25385 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25386
25387         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
25388         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
25389
25390 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25391
25392         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
25393
25394 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
25395
25396         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
25397         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
25398
25399 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
25400
25401         * MimeIcon.cs: Added internal class SVGUtil.
25402
25403 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
25404
25405         * FileDialog.cs: Don't crash if there are two files with the
25406           same name but different locations.
25407
25408 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
25409
25410         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
25411         dates across multiple month grids. Used to not highlight entire 
25412         month, but does now.
25413         
25414 2006-01-06  Jackson Harper  <jackson@ximian.com>
25415
25416         * MonthCalendar.cs: Removed DoEvents call to prevent a running
25417         message loop. Change timer intervals to numbers that seem more
25418         natural.
25419
25420 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
25421
25422         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
25423           object for location info since screen object is now implemented.
25424
25425 2006-01-05  Jackson Harper  <jackson@ximian.com>
25426
25427         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
25428         * AsyncMethodResult.cs: We no longer use a WeakReference for the
25429         AsyncMethodResult, this is because we ALWAYS want the
25430         ManualResetEvent to get set.
25431         * Control.cs: When disposing use an async invoke to call shutdown
25432         code, so that thigns don't block on the finalizer thread.  Also
25433         check if we even have a message loop before trying to send
25434         messages, if we don't then don't bother sending messages.
25435         - No more weak references for async methods
25436         * XplatUIDriver.cs: No more weak references for async methods.
25437
25438 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
25439
25440         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
25441           returns two FontFamily with the same name
25442
25443 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
25444
25445         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
25446           drawing disabled text. Instead using the ColorGrayText color
25447
25448 2006-01-04  Jackson Harper  <jackson@ximian.com>
25449
25450         * TreeNode.cs: redraw the node when its image index is changed.
25451
25452 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
25453
25454         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
25455           time I checked there are no others like it.
25456
25457 2006-01-04  Jackson Harper  <jackson@ximian.com>
25458
25459         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
25460         this gives the behavoir I was looking for.
25461         * Control.cs: Special case Invoking EventHandlers, this matches MS
25462         and fixes part of bug #76326.
25463
25464 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
25465
25466         * ThemeClearlooks.cs, FileDialog.cs:
25467           - Reflect the latest Theme class changes
25468           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
25469             with DateTime
25470             
25471 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
25472
25473         * Theme.cs: Cache UI resource images and resize them if needed
25474
25475 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
25476
25477         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
25478           is called. This fixes the crash in Nexxia when setting the font
25479           attributes in the chat. [However, RTF needs a look-over to make sure
25480           that all SelectionXXX methods handle the special case that selection
25481           is empty and therefore the change must be applied to all text starting
25482           at the cursor/selection start]
25483
25484 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
25485
25486         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
25487           XplatUIOSX.cs: Added SendMessage and PostMessage methods
25488         * X11Keyboard.cs: Switched to new way of calling PostMessage
25489
25490 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
25491
25492         * Theme.cs: Added theme interface for images to allow the theme to
25493           control what images are used for things like FileDialog, MessageBox
25494           icons, etc.
25495         * MessageBox.cs: Now uses the new Theme icon/image interfaces
25496
25497 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
25498
25499         * FileDialog.cs:
25500           - Removed some dead code
25501           - Opening a recently used file does work now
25502           - Small UI enhancements
25503           - Refactoring
25504
25505 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
25506
25507         * FileDialog.cs: Forgot too add __MonoCS__
25508
25509 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
25510
25511         * FileDialog.cs: We are able to read recently used files now let's
25512           go on and write them.
25513
25514 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
25515
25516         * FileDialog.cs: Breathe some life into "last open"/"recently used"
25517           button
25518         * MimeIcon.cs: Do a check for the top level media type also
25519
25520 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
25521
25522         * ThemeClearlooks.cs:
25523           - Added CPDrawStringDisabled
25524           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
25525             some chars if the text doesn't fit into text_rect
25526           - DrawListViewItem: If View = View.LargeIcon center the image;
25527             rewrote the drawing of ListViewItem.Text if View = 
25528             View.LargeIcon
25529
25530 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
25531
25532         * MimeIcon.cs: Use default KDE icon theme if there is no
25533           "48x48" directory for the current icon theme, fixes #77114
25534         * Mime.cs: Disable not working and actually not used code. 
25535         * ThemeWin32Classic.cs:
25536           - Replace "new SolidBrush" in GetControlBackBrush and
25537             GetControlForeBrush with ResPool.GetSolidBrush
25538           - Changed DrawListViewItem from private to protected virtual
25539         * FileDialog.cs:
25540           - Added form.MaximizeBox = true
25541           - Don't throw an exception if there is a broken symbolic link
25542
25543 2005-12-23  Jackson Harper  <jackson@ximian.com>
25544
25545         * TabControl.cs: Give the panels focus, keyboard navigation is
25546         fixed so this works correctly now.
25547         - We need these key events also.
25548         * ToolBar.cs: Remove some of the poor mans double buffering.
25549         
25550 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
25551
25552         * ComboBox.cs: The internal TextBox now returns the focus.
25553
25554 2005-12-23  Jackson Harper  <jackson@ximian.com>
25555
25556         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
25557
25558 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
25559
25560         * Control.cs: Removed debug code
25561         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
25562           implicit children
25563
25564 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
25565
25566         * Control.cs: When creating the control, update the Z-order after
25567           all it's children are created, too. (Fixes nexxia not showing
25568           picturebox bug)
25569
25570 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
25571
25572         * Control.cs: Do not update the anchoring distances if layout is
25573           suspended, instead do it once layout is resumed
25574
25575 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
25576
25577         * Control.cs: 
25578           - After many hours of debugging, for both Jackson and
25579             myself, it turns out that it helps to set the parent of a control
25580             if you want to actually see it onscreen. In the spirit of that
25581             discovery, we're now setting the parent of the control and
25582             it's children when the control's handle is created. This fix
25583             will make Lutz Roeder's Reflector run happily. 
25584           - now just creating the handle instead of the whole control when
25585             getting a graphics context for the control.
25586
25587 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
25588
25589         * ScrollableControl.cs: When calculating the canvas, don't consider
25590           the scrollbar widths. Instead, predict if horizontal scrollbar
25591           will affect canvas when deciding on vertical display and vice versa.
25592
25593 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
25594
25595         * RichTextBox.cs: Set default RTF font for documents that don't
25596           have a font table (Fixes #77076)
25597
25598 2005-12-22  Jackson Harper  <jackson@ximian.com>
25599
25600         * TextBoxBase.cs: It's difficult to do, but you can have an empty
25601         clipboard. This prevents a NullRef in that case.
25602         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
25603         clipboard. PRIMARY is for the currently selected text only. (We
25604         should implement PRIMARY at some point.
25605
25606 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
25607
25608         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
25609           a Unicode function with a structure that was defined in Ansi way.
25610           This fixes #76942.
25611
25612 2005-12-21  Jackson Harper  <jackson@ximian.com>
25613
25614         * StatusBar.cs: Statusbar handles its fore/back colours on it's
25615         on. Because thats how it rolls. (and this avoids it using ambient
25616         colours).
25617         * ThemeWin32Classic.cs: Use the proper back color for filling.
25618         * Menu.cs: Use the system menu bar color for drawing menu
25619         bars. Using the window back color will bring ambient colours into
25620         the picture.
25621
25622 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
25623
25624         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
25625           Bitmaps were created and not disposed.
25626
25627 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
25628
25629         * Control.cs (CreateControl): Don't do anything if the control is
25630           already created, otherwise we'd fire the OnCreated event more than
25631           once
25632
25633 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
25634
25635         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
25636           will always match. Instead return -1. Fixes #76464.
25637
25638 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
25639
25640         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
25641           neither the beginning nor the end of the line (Fixes bug #76479)
25642
25643 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
25644
25645         * Control.cs:
25646           - ControlNativeWindow.ControlFromHandle(): Now handling situation
25647             where handle is invalid
25648           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
25649             instead of slower linear search
25650         * NativeWindow.cs: Don't remove the window from the hashtable until
25651           after the driver has destroyed it (since the driver might use
25652           Control.FromHandle to lookup the control object
25653         * Hwnd.cs: Added DestroyPending property to track if a window is 
25654           already destroyed as far as the driver is concerned and only hasn't
25655           yet notified the control
25656         * XplatUIX11.cs:
25657           - Activate(): Check if the window is still valid before using the 
25658             handle
25659           - Implemented DestroyChildWindow() method to mark child windows as
25660             destroyed when a window is destroyed. This prevents situations 
25661             where we might call an X method based on queued events for a
25662             window that already has been destroyed but we haven't yet pulled
25663             the destroy method from the queue.
25664           - Added a call to the new DestroyChildWindow() method to the drivers
25665             DestroyWindow code. Also now marking the destroyed window itself
25666             as pending
25667
25668 2005-12-20  Jackson Harper  <jackson@ximian.com>
25669
25670         * StatusBar.cs:
25671         * StatusBarPanel.cs: Don't calculate panel sizes on draw
25672         anymore. Just do them when needed, also track the rects of panels
25673         so that we can optimize refreshing more in the future.
25674
25675 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
25676
25677         * ColorDialog.cs: Fixed focus drawing in small color controls
25678
25679 2005-12-19  Jackson Harper  <jackson@ximian.com>
25680
25681         * InternalWindowManager.cs:
25682         * MdiWindowManager.cs: Cleanup some coordinate system changes so
25683         moving windows works properly.
25684
25685 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
25686
25687         * Control.cs: 
25688           - Removed call to InitLayout() from SetBoundsCore(); doc says
25689             it's only called when a control is added to a container
25690           - Split InitLayout logic, moved to separate UpdateDistances() method
25691             since we need to perform those calculations more often than just
25692             when adding the control to a container. (Needed to fix #77022)
25693           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
25694           - Reduced the OnBindingContextChanged events count, don't send them
25695             unless the control is created, we still aren't totally matching
25696             MS, but I can't quite figure out some of their rules
25697
25698 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
25699
25700         * ThemeClearlooks.cs: Corrected distance between ProgressBar
25701           stripes
25702
25703 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
25704
25705         * ThemeClearlooks.cs:
25706           - Updated ProgressBar drawing
25707           - Corrected drawing of ScrollBars and scroll buttons
25708           - Some temporary fixes for minor pixel artefacts
25709
25710 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
25711
25712         * Control.cs:
25713           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
25714             cause events to be sent in the same order as MS does.
25715           - Added ChangeParent() method to trigger various OnXXXChanged events
25716             that need to be fired when a parent changes (This is a reworking
25717             of the patch from r54254, with the X11 errors fixed)
25718           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
25719             since on MS we get OnLayoutChanged events when calling Clear()
25720           - Changed Enabled property to consider parent state as well, if a
25721             parent is not enabled, the control will not be either
25722           - Changed Parent property to simply call Controls.Add() since that
25723             now does all the work required, this way we avoid code duplication
25724           - Threw in a few OnBindingsContextChanged calls to try and match
25725             when MS sends them. We seem to send a few too many, though.
25726           - Added call to CreateControl when adding the control to a parent.
25727             We were never calling CreateControl. Still needs some work, in
25728             some places we treat HandleCreated and ControlCreated as equal, 
25729             which is wrong
25730           - Removed obsolete commented out code from UpdateZOrder()
25731
25732 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
25733
25734         * ThemeClearlooks.cs: Updated TrackBar drawing.
25735
25736 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
25737
25738         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
25739
25740 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
25741
25742         * FileDialog.cs: Add the Help button and the open readonly
25743           checkbox only if needed
25744
25745 2005-12-16  Jackson Harper  <jackson@ximian.com>
25746
25747         * Control.cs: Make sure we have an active menu before trying to
25748         process commands on it. Prevents menu-less forms from crashing
25749         when Alt is pressed.
25750         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
25751         Dieter Bremes.
25752         * RichTextBox.cs: Expand statement to help out gmcs and fix the
25753         2.0 build.
25754
25755 2005-12-16  Jackson Harper  <jackson@ximian.com>
25756
25757         * InternalWindowManager.cs: Don't translate tool windows screen
25758         coordinates. This fixes windows 'bouncing' around when being moved.
25759
25760 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
25761
25762         * TextBoxBase.cs:
25763           - MaxLength now treats 2^31-1 equal to unlimited length (this is
25764             not quite MS compatible, MS uses that number only for single line
25765             and 2^32-1 for multi-line, but I figure it won't hurt keeping
25766             the limit at 2GB)
25767           - Now enforcing the MaxLength limit when entering characters
25768           - Added argument to internal Paste() method to track if it's called
25769             from programatically or via keyboard, since keyboard driven pastes
25770             need to enforce max-length
25771           - Added logic to Paste to only paste as many chars as MaxLength 
25772             allows
25773         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
25774         * TextControl.cs:
25775           - Added Length property to return number of characters in document
25776           - Added private CharCount property which only tracks actual chars
25777             in the document (no linefeeds) and fires event when CharCount
25778             changes
25779           - Added tracking of character count to all methods that alter it
25780           - Added LengthChanged event to allow applications to subscribe
25781             to any changes to the document
25782
25783 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
25784
25785         * TextBox.cs: 
25786           - Removed local password_char field (moved to TextBoxBase)
25787           - Now setting the document's password var when password is
25788             set
25789         * TextBoxBase.cs:
25790           - Added password_char field (needed here so MultiLine can
25791             access it)
25792           - Added logic to MultiLine property setter to set the document's
25793             variable when password display is allowed
25794           - Removed debug code and made some debug code conditional
25795         * TextControl.cs:
25796           - Added RecalculatePasswordLine() method to handle special password
25797             char only lines
25798           - Added PasswordChar property, also added related tracking vars
25799           - Draw() method now uses local text var for grabbing text to draw,
25800             this var is set to line.text unless we're doing password display,
25801             then it is set to the pre-generated all-password-chars line
25802           - Added calling RecalculatePasswordLine() method for password lines
25803
25804 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
25805
25806         * Hwnd.cs: 
25807           - Added Reparented property to allow tracking of Window Manager
25808             reparenting actions (which affect X/Y calculations of toplevel 
25809             windows)
25810           - Made ToString() print window handles in hex
25811         * XplatUIX11.cs:
25812           - AddConfigureNotify(): Now uses reparented state off Hwnd to
25813             determine if X/Y needs offsetting
25814           - AddConfigureNotify(): Fixed offset calculations
25815           - Now adds ReparentNotify messages into the queue
25816           - Now processes ReparentNotify messages and causes a 
25817             WM_WINDOWPOSCHANGED message to be sent upstream if a window
25818             is reparented (as most likely it's X/Y coordinates are changed
25819             due to that)
25820
25821 2005-12-14  Jackson Harper  <jackson@ximian.com>
25822
25823         * XplatUIX11.cs: Tool windows still need to respek focus.
25824
25825 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
25826
25827         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
25828           have a working release
25829
25830 2005-12-13  Jackson Harper  <jackson@ximian.com>
25831
25832         * Form.cs: Update styles after setting the border style regardless
25833         of whether or not the window is using a window manager.
25834
25835 2005-12-13  Jackson Harper  <jackson@ximian.com>
25836
25837         * Form.cs: We now hook into an internal window manager instead of just an
25838         MDI subsystem, this is so we can have properly behaving tool windows.
25839         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
25840         * InternalWindowManager.cs: New internal class that acts as a
25841         window manager for tool windows and as a base for mdi windows.
25842         * MdiWindowManager.cs: New class that acts as a window manager for
25843         mdi windows.
25844
25845 2005-12-12  Jackson Harper  <jackson@ximian.com>
25846
25847         * Control.cs: Updates so we match behavoir for for implicit
25848         controls. Fixes explosions in MDI.
25849
25850 2005-12-12  Jackson Harper  <jackson@ximian.com>
25851
25852         * Control.cs: Implement Invalidate (Region).
25853
25854 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
25855
25856         * Control.cs: 
25857           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
25858             the same events as MS does. MS fires events for each property 
25859             except, for unknown reasons, Cursor, when the control is reparented. 
25860             I can't seem to totally match add/remove since MS also fires some 
25861             VisibleChanged events, which makes no sense. Consolidated the
25862             parenting code into a separate method so it can be called from
25863             both Add and Remove. set_Parent no longer needs any special logic
25864             as it calls the parent's add method which implicitly fires
25865             all events
25866           - Removed some obsolete code and debug output
25867           - Enabled state is inherited from parents, if this is enabled
25868
25869 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
25870
25871         * Form.cs: Removed commented out code
25872
25873 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
25874
25875         * Control.cs:
25876           - Added internal version of Invoke, with additional argument 
25877             indicating if we're calling it from a Dispose() handler. That
25878             way we can avoid BeginInvoke throwing an exception if we're
25879             calling for an already destroyed window.
25880           - Added a dispose argument to BeginInvokeInternal, and made the
25881             check if a valid window handle chain exists conditional on
25882             it not being a dispose call
25883           - Removed code in DestroyHandle to destroy our children. Since we
25884             now handle the WM_DESTROY message we will catch all our children
25885             being destroyed.
25886           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
25887         * Form.cs:
25888           - Added a field to track the application context of the form.
25889           - No need to set closing variable as response to WM_CLOSE, instead
25890             we destroy the window. We also call PostQuitMessage if the form
25891             has an application context (which makes it the main app form,
25892             which, when closed terminates the app)
25893         * XplatUI.cs:
25894           - Dropped Exit() method, it's naming was confusing
25895           - Added PostQuitMessage() which causes GetMessage to return false
25896             once the message queue is empty
25897         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
25898           PostQuitMessage()
25899         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
25900           no longer a valid XplatUI method, but left it in since it's used
25901           internally. Added empty PostQuitMessage() method.
25902         * MenuAPI.cs: Replaced call to Exit() with call to
25903           PostQuitMessage, even though this is probably no longer needed.
25904         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
25905         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
25906         * Application.cs:
25907           - Replaced call to XplatUI.Exit() with PostQuitMessage()
25908           - Removed old debug code that would call XplatUI for exception
25909             display, enabled standard exception handling (Still not enabled
25910             though, until NativeWindow's ExternalExceptionHandler define
25911             is removed
25912         * NativeWindow.cs:
25913           - Added internal method to allow control to update NativeWindow
25914             after a window has been destroyed
25915           - Added handling of already destroyed windows when calling i
25916             DestroyWindow
25917           - Added removal of handle from list on ReleaseHandle
25918         * XplatUIX11.cs:
25919           - Dropped GetMessageResult var and related code
25920           - Added PostQuitState to field to track if PostQuitMessage has been
25921             called
25922           - Dropped Exit() method
25923           - Added PostQuitMessage() method
25924           - GetMessage now will return false if PostQuitState is set and no
25925             more messages are in the queue.
25926           - Expose handler will no longer generate WM_PAINT messages if we are
25927             in PostQuitState since it's very likely any windows have already
25928             been destroyed, and since Hwnd won't get updated until we have
25929             processed the DestroyNotify we'd be causing X errors.
25930         
25931 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
25932
25933         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
25934           Thanks to Mike for pointing out the err of my ways.
25935
25936 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
25937
25938         * Control.cs(PreProcessMessage): Moved menu handling back, but
25939           after all other key handling, to match MS (who handles Menu in
25940           DefWndProc)
25941         * Menu.cs (WndProc): Removed my brainfart
25942
25943 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
25944
25945         * Control.cs(PreProcessMessage): Removed special menu handling 
25946         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
25947
25948 2005-12-07  Mike Kestner  <mkestner@novell.com>
25949
25950         * Control.cs : special case SYSKEYUP so that we can adjust keynav
25951         state according in tracker.
25952         * Menu.cs : promote tracker field to base class and provide a tracker
25953         lookup capability.  Add/Remove shortcuts dynamically if the top menu
25954         has a tracker. Unparent items that are removed from the collection.
25955         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
25956         * Theme*.cs: add always_show_hotkeys field to support configurability
25957         of mnemonic display.  win32 doesn't show mnemonics until Alt is
25958         pressed.
25959
25960 2005-12-07  Jackson Harper  <jackson@ximian.com>
25961
25962         * MdiChildContext.cs: Use Control.ResetCursor.
25963         * Control.cs: ResetCursor needs to set the property so that the
25964         correct XplatUI call gets made.
25965
25966 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
25967
25968         * Control.cs: More fixes to make our key events match MS. We
25969           were not setting the modifier state on KeyData, and we were
25970           not generating any events when Alt was pressed with a key
25971           since handling of WM_SYSxxx was missing for the OnKey methods.
25972
25973 2005-12-07  Jackson Harper  <jackson@ximian.com>
25974
25975         * MdiChildContext.cs: reenable the sizing code.
25976         - When the mouse leaves a window reset its cursor.
25977
25978 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
25979
25980         * ThemeClearlooks.cs: Reflect latest Hwnd changes
25981
25982 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
25983
25984         * Hwnd.cs: Now using the theme 3d bordersize to calculate
25985           widths of Fixed3D borders
25986
25987 2005-12-07  Jackson Harper  <jackson@ximian.com>
25988
25989         * MdiClient.cs: Fix warnings. Earn Mike's love.
25990
25991 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
25992
25993         * ThemeClearlooks.cs:
25994           - Adjusted mouse over button color
25995           - Added first parts of CheckBox drawing
25996           - Added correct color for selected text background
25997           - Fixed ComboBox drawing
25998           - Added CPDrawBorder3D and CPDrawBorder
25999
26000 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
26001
26002         * XplatUIX11.cs: Added call to XBell for AudibleAlert
26003
26004 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
26005
26006         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26007           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
26008           alert users via sound. We could add an enum arg with different
26009           types of alerts in the future
26010
26011 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
26012
26013         * Control.cs: Fix behaviour problems pointed out by Mike
26014
26015 2005-12-05  Mike Kestner  <mkestner@novell.com>
26016
26017         * StatusBarPanel.cs: add Invalidate method and hook it into all the
26018         prop setters.  Calls parent.Refresh for now, but could be maybe be
26019         optimized with an internal method on StatusBar at some point.
26020         [Fixes #76513]
26021
26022 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
26023
26024         * RichTextBox.cs: Implemented get_SelectionColor
26025
26026 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
26027
26028         * ThemeClearlooks.cs:
26029           - Removed dead code
26030           - Draw black button border only if button is Form.AcceptButton
26031           - Draw correct button color for pressed RadioButton if the mouse 
26032             has entered the button
26033           - Updated ProgressBar drawing!
26034           - Updated CPDrawSizeGrip drawing
26035           - Updated StatusBarPanel drawing
26036
26037 2005-12-05  Mike Kestner  <mkestner@novell.com>
26038
26039         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
26040         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
26041
26042 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
26043
26044         * ThemeClearlooks.cs: Initial check-in, activate with
26045           export MONO_THEME=clearlooks
26046         * ThemeEngine.cs: Added ThemeClearlooks
26047
26048 2005-12-03  Mike Kestner  <mkestner@novell.com>
26049
26050         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
26051         [Fixes #76897]
26052
26053 2005-12-02  Jackson Harper  <jackson@ximian.com>
26054
26055         * Form.cs: If the child form has no menu the default main menu is
26056         used as the active menu.
26057
26058 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
26059
26060         * ListBox.cs: Check if any items exist before trying to resolve 
26061           coordinates into items
26062
26063 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
26064
26065         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
26066           as the second color for the background hatch
26067
26068 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
26069
26070         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
26071         * RichTextBox.cs: FormatText position arguments are 1-based, now making
26072           sure that what we pass to FormatText is always 1-based. Fixes #76885
26073
26074 2005-11-29  Miguel de Icaza  <miguel@novell.com>
26075
26076         * NumericUpDown.cs (EndInit): When we are done initializing,
26077         reflect any updates on the UI.
26078
26079 2005-12-02  Jackson Harper  <jackson@ximian.com>
26080
26081         * ImplicitHScrollBar.cs:
26082         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
26083         their container controls.
26084         * TreeView.cs: Use the new implicit scrollbars.
26085
26086 2005-12-02  Jackson Harper  <jackson@ximian.com>
26087
26088         * TreeView.cs: Make top_node internal so the TreeNodeCollections
26089         can play with it.
26090         * TreeNodeCollection.cs: If we remove the topnode we need to
26091         update topnode to the next node in line.
26092         - When clearing nodes go through the same process as removing
26093         them, so they get depareneted and checked if they are top node.
26094
26095 2005-12-01  Jackson Harper  <jackson@ximian.com>
26096
26097         * TreeView.cs: When imagelists are used the image area is
26098         selectable as well as the text.
26099         - If there are no selected nodes select the first one.
26100         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
26101         so don't do it more then we need to.
26102
26103 2005-12-01  Jackson Harper  <jackson@ximian.com>
26104
26105         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
26106         that arrows can be scaled.
26107
26108 2005-12-01  Jackson Harper  <jackson@ximian.com>
26109
26110         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
26111         fail. Patch by Dieter Bremes
26112
26113 2005-11-30  Jackson Harper  <jackson@ximian.com>
26114
26115         * Form.cs: Property is 2.0 only
26116         * PrintDialog.cs: Signature fix.
26117
26118 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
26119
26120         * TextControl.cs: 
26121           - No longer artificially moves text 2 pixels down (now that we have
26122             borders this is no longer needed)
26123           - Added calcs for left, hanging and right indent
26124
26125 2005-11-23  Mike Kestner  <mkestner@novell.com>
26126
26127         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
26128
26129 2005-11-30  Jackson Harper  <jackson@ximian.com>
26130
26131         * MdiChildContext.cs: Set the cloned menus forms, as these don't
26132         get cloned as part of CloneMenu ().
26133         * Menu.cs: Make sure the parent of the items get set correctly
26134         when they are added.  And the owners are notified of the changes.
26135         * Form.cs: Create an ActiveMenu property, so that when MDI is used
26136         we can change the menu being displayed/handled by the form without
26137         changing the menu assosciated with the form.
26138         - Don't let Mdi children draw/handle menus.
26139         
26140 2005-11-30  Jackson Harper  <jackson@ximian.com>
26141
26142         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
26143         a MenuChanged event. Just to make the API a little more
26144         consistent.
26145         * MainMenu.cs:
26146         * MenuItem.cs: Use the new OnMenuChanged
26147         * MdiChildContext.cs: Handle menu merging.
26148         * Form.cs: Implement MergedMenu.
26149         
26150 2005-11-30  Jackson Harper  <jackson@ximian.com>
26151
26152         * Menu.cs: We were misusing Add. Add goes behind the specified
26153         index according to the docs, and does not replace the specified
26154         index. So I added an Insert method.
26155
26156 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
26157
26158         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
26159           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
26160           is for Jackson
26161         * RichTextBox.cs: Added calls to base for DnD events
26162
26163 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
26164
26165         * TextControl.cs:
26166           - Fixed drag-selection related crash; style fixes
26167           - Implemented undo class
26168             o Implemented method to capture document state for specified
26169               range in document tree
26170             o Implemented method to restore captured document state
26171             o Implemented cursor tracking
26172             o Implemented basic undo stack
26173           - Added undo cursor tracking to methods altering cursor location
26174           - Added undo tracking to selection deletion (still missing
26175             other text-altering hookups)
26176         * RichTextBox.cs:
26177           - Added SelectionLength property
26178           - Implemented CanPaste()
26179           - Implemented Paste()
26180           - Added missing protected methods
26181           - Fixed RTF->Document conversion; now uses font index 0 and color 
26182             index 0 as the default font for the parsed text
26183           - Fixed RTF<->Document font size translation
26184           - Fixed RTF generation, now properly handles cross-tag boundaries
26185             for single line selection
26186           - No longer always appends blank line to generated RTF
26187           - Removed TODOs
26188           - Added missing attributes
26189           - Hooked up undo-related methods
26190         * TextBoxBase.cs:
26191           - Implemented Copy()
26192           - Implemented Paste()
26193           - Implemented Cut()
26194           - Fixed caret mis-behaviour on backspace across line-boundaries
26195
26196 2005-11-29  Jackson Harper  <jackson@ximian.com>
26197
26198         * MdiClient.cs: Add a method for activating mdi children. Very
26199         basic right now. I imagine someday it might need more girth.
26200         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
26201         children windows names are added to the menu item.
26202         * ThemeWin32Classic.cs: Draw the arrow if the item is an
26203         mdilist. This happens regardless of whether or not there are any
26204         mdi windows to see in the list, and according to my tests happens
26205         before the items are even added. Also happens if there isn't even
26206         an mdi client to get windows from.
26207
26208 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
26209
26210         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
26211         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
26212
26213 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
26214
26215         * DataGridTableStyle.cs:
26216           - Create always the styles for the missing columns even if they are
26217             provided by the user (not default table style)
26218         * DataGrid.cs:
26219           - Fixes bug 76770
26220           - Fixes SetDataBinding (always re-attach source)
26221           - Fixes SetNewDataSource (only clear styles if they are not for 
26222             this source)
26223          -  Expands OnTableStylesCollectionChanged to handle style refresh 
26224             and remove properly
26225
26226 2005-11-29  Jackson Harper  <jackson@ximian.com>
26227
26228         * FileDialog.cs: Implement missing bits, remove some dead
26229         code.
26230         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
26231         creation of the panel so that the options set on the dialog are
26232         seen when the panel is created.
26233         * TreeView.cs: raise a click when items are clicked.
26234         
26235 2005-11-29  Jackson Harper  <jackson@ximian.com>
26236
26237         * MdiClient.cs: Pass some signature methods through to base.
26238
26239 2005-11-28  Jackson Harper  <jackson@ximian.com>
26240
26241         * ListView.cs: Raise the click event when items are clicked.
26242
26243 2005-11-28  Jackson Harper  <jackson@ximian.com>
26244
26245         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
26246         a nullref.
26247
26248 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
26249
26250         * ThemeNice.cs: - Removed 1 pixel bitmaps
26251           - Use SmoothingMode.AntiAlias where it makes sense
26252             (ScrollButton arrow for example)
26253           - Enhanced Button focus drawing
26254           - Fixed ComboBox drawing (no artefacts anymore, focus
26255             rectangle is back again, reduced size of ComboButton, etc.)
26256           - Fixed RadioButton focus drawing for Appearence.Button
26257           - Slight ScrollButton redesign
26258           - Some LinearGradientBrush size fixes
26259           - GroupBoxes have now rounded edges
26260           - Fixed StatusBar drawing
26261
26262 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
26263
26264         * ThemeNice.cs: - Remove dead code
26265           - use correct background colors for menus, etc.
26266           - Fake pixel drawing with 1 pixel bitmaps
26267
26268 2005-11-24  Jackson Harper  <jackson@ximian.com>
26269
26270         * MdiClient.cs: Size the scrollbars when resizing the window.
26271         - Resize the maximized windows when the client is resized
26272         * Form.cs: Make the child context available
26273         
26274 2005-11-23  Jackson Harper  <jackson@ximian.com>
26275
26276         * MdiChildContext.cs: Don't size windows if they are maximized.
26277
26278 2005-11-23  Mike Kestner  <mkestner@novell.com>
26279
26280         * ContextMenu.cs: use MenuTracker.
26281         * Control.cs: remove menu handle usage.
26282         * Form.cs: remove menu handle usage.
26283         * Hwnd.cs: remove menu handle usage.
26284         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
26285         motion and clicks to the new Tracker handlers.
26286         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
26287         and handle usage.
26288         * MenuAPI.cs: refactored to combine popup and menubar event handling.
26289         Killed the MENU and MENUITEM data types and associated collections
26290         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
26291         MenuTracker class that exposes the leftovers from the old MenuAPI
26292         static methods. Restructured Capture handling so that only one grab is
26293         done for the entire menu hierarchy instead of handing off grabs to
26294         submenus. Tracker now has an invisible control to Capture when active.
26295         * MenuItem.cs: add sizing accessors, kill Create
26296         and handle usage.
26297         * Theme.cs: remove menu handle and MENU(ITEM) usage.
26298         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
26299         MENU(ITEM). remove menu handle usage, use Menu directly.
26300         * XplatUIDriver.cs: remove menu handle usage.
26301         * XplatUIOSX.cs: remove menu handle usage.
26302         * XplatUIWin32.cs: remove menu handle usage.
26303         * XplatUIX11.cs: remove menu handle usage.
26304
26305 2005-11-22  Jackson Harper  <jackson@ximian.com>
26306
26307         * Hwnd.cs: Don't compute the menu size for
26308         DefaultClientRectangle.
26309         - Reenable menu sizes being computed for GetClienRectangle.
26310         * Form.cs: Remove comment of trechery
26311         
26312 2005-11-22  Jackson Harper  <jackson@ximian.com>
26313
26314         * Hwnd.cs: The adjustments for the menu bar are made when it is
26315         attached to the form.
26316
26317 2005-11-19  Jackson Harper  <jackson@ximian.com>
26318
26319         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
26320         (just like on windows).
26321
26322 2005-11-19  Jackson Harper  <jackson@ximian.com>
26323
26324         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
26325         use real buttons anymore because they are in non client area. The
26326         one TODO here is that I need to somehow invalidate a section of
26327         the non client area.
26328
26329 2005-11-18  Jackson Harper  <jackson@ximian.com>
26330
26331         * Control.cs: Put the enum check back in now that MDI doesnt have
26332         to use this to set border styles.
26333         * Form.cs: Only set mdi child windows borders if the handle has
26334         been created.
26335         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
26336         this directly on to the driver.
26337         - Get the move start position before adjusting for the titlebar
26338         height, this fixes the windows "skipping" when they are first
26339         moved.
26340
26341 2005-11-18  Jackson Harper  <jackson@ximian.com>
26342
26343         * XplatUIX11.cs: Just compute the mdi borders separately as they
26344         don't totally match up with normal form borders.
26345
26346 2005-11-18  Jackson Harper  <jackson@ximian.com>
26347
26348         * Control.cs: Set WS_ styles for borders, so that the driver does
26349         not have to retrieve the control instance to figure out what kind
26350         of borders it should have.
26351         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
26352         driver can know its an mdi child easily.
26353         * XplatUIX11.cs: Get the border styles and whether the window is
26354         MDI from the Styles and ExStyles params instead of having to get a
26355         control. This prevents a chicken and egg problem.       
26356
26357 2005-11-18  Jackson Harper  <jackson@ximian.com>
26358
26359         * MdiClient.cs: Fix typo so scrollbars show up correctly.
26360
26361 2005-11-18  Jackson Harper  <jackson@ximian.com>
26362
26363         * MdiClient.cs: Calculate when to add and remove scrollbars
26364         correctly.
26365         * MdiChildContext.cs: Adjust the y position to take the titlebar
26366         into account.
26367         - No height for FormBorderStyle.None
26368
26369 2005-11-18  Jackson Harper  <jackson@ximian.com>
26370
26371         * Control.cs: Allow non enum values to be used for
26372         InternalBorderStyle.  MDI does this to set a special border style.
26373         - New utility methods for converting points to/from client coords
26374         - Add the newly created control to the Controls collection before
26375         updating its style. This way UpdateStyle can walk the control
26376         heirarchy to find the control if needed.
26377         so I don't need to create a new Point object all the time.
26378         * Form.cs: Let MDI windows handle their border styles.
26379         - Set styles on MDI windows so the correct title style is derived.
26380         * MdiChildContext.cs: Move all the painting and window handling
26381         into the non client area.
26382         - Use correct sizing and put correct buttons on frames based on
26383         the FormBorderStyle.
26384         - Notify the mdi client about scrolling
26385         - Need to handle the buttons ourselves now, because they are all
26386         in non client areas and we can't add controls there.
26387         * MdiClient.cs: Halfway to scrolling, this implementation is
26388         somewhat broken though, we need to check to make sure other
26389         windows aren't causing scrolling before removing the bars. Also
26390         the bars need to be drawn on top, maybe I can switch implicit
26391         controls to be on top.
26392         * Hwnd.cs: caption_height and tool_caption_height are now
26393         properties of an hwnd, this way they can be set by the driver
26394         based on the type of window they are.  In X11 the window manager
26395         handles the decorations so caption_height is zero unless its an
26396         MDI window.
26397         - Add 3 pixel borders for MDI windows (0xFFFF).
26398         - Get rid of some code duplication, have DefaultClientRectanle
26399         just call GetClientRectangle.
26400         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
26401         Hwnd now.
26402         - Set border styles differently for mdi windows.
26403         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
26404         Hwnd now.
26405         
26406 2005-11-15  Mike Kestner  <mkestner@novell.com>
26407
26408         * Menu.cs: when adding an item to the collection, if item is already 
26409         parented, remove it from the parent.
26410
26411 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
26412
26413         * X11DesktopColors.cs: Added KDE support
26414
26415 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
26416
26417         * XplatUIWin32.cs: 
26418           - Clipboard methods now can translate Rtf format
26419           - No longer removes clipboard contents whenever a new format is added
26420             to allow placing multiple formats on the clipboard
26421         * Clipboard.cs: Clipboard now supports getting a IDataObject and
26422           will place all formats contained in it onto the clipboard. Also
26423           now cleans the clipboard before placing a new object onto it
26424         * RichTextBox.cs:
26425           - Implemented set_Rtf
26426           - Implemented set_SelectedRtf
26427           - Created InsertRTFFromStream() method to allow single code base
26428             for all properties and methods that insert RTF into document
26429           - Removed debug output
26430         * TextControl.cs:
26431           - Fixed Delete(int) to fix up line numbers
26432           - Fixed ReplaceSelection to combine start and end line
26433           - Fixed serious DeleteChars bug that would leave the document tree
26434             broken
26435           - Improved DumpTree with several logic checks to detect broken
26436             document trees
26437           - Removed debug lines
26438           - Fixed Caret.WordForward/WordBack moving code, now always also 
26439             updates caret.tag (fixes crash when word-selecting across tag
26440             boundaries via keyboard)
26441           - Added Insert() method for inserting multiline text into documents
26442           - Fixed DeleteChars() calculation errors that would cause a broken
26443             tag chain with multiple tag lines
26444           - DeleteChars() no longer crashes on multi-tag lines if not all tags
26445           - Split() no longer moves caret if split is at caret location
26446           - ReplaceSelection() now updates the cursor and re-displays it
26447           - ReplaceSelection() now uses new Insert() method to avoid code
26448             duplication
26449           - FormatText() can now handle formatting partial lines
26450         * TextBoxBase.cs:
26451           - Append now uses new TextControl.Insert() method (this avoids 
26452             duplicate code)
26453           - Implemented Ctrl-X (Cut) (
26454           - Implemented Ctrl-C (Copy)
26455           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
26456             regeneration when pasting text; roundtripping Copy&Paste within
26457             edit control still fails due to some calculation bugs in GenerateRTF)
26458           - The Delete key will now remove the current selection if it is visible
26459         * TextBox.cs: Removed debug lines
26460         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
26461           driver to be initialized and can't therefore be done via a static ctor)
26462
26463 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
26464
26465         * TextControl.cs: Added backend code for finding char arrays and strings
26466         * TextBoxBase.cs:
26467           - Added mouse wheel scroll support
26468           - Added support for VScroll and HScroll events
26469         * RichTextBox.cs:
26470           - Implemented all seven Find() variants
26471           - Implemented GetCharFromPosition()
26472           - Implemented GetCharIndexFromPosition()
26473           - Implemented GetLineFromIndex()
26474           - Implemented GetPositionFromCharIndex();
26475           - Implemented SaveFile for PlainText and UnicodeText
26476           - Fixed set_Font, now setting a new font applies that font to
26477             the whole document
26478           - Implemented generic Document to RTF converter
26479           - Implemented SaveFile for RichText format (still missing unicode
26480             conversion for non-ansi chars)
26481           - Implemented get_Rtf
26482           - Implemented get_SelectedRtf
26483
26484 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
26485
26486         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
26487           to allow any captures to be released before triggering OnClick. This
26488           way a click handler may capture the mouse without interference.
26489         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
26490           This way we send them even though X may not allow a grab (if the window
26491           isn't visible, for example)
26492
26493 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
26494
26495         * DataGridViewRowEventArgs.cs: DataGridView implementation
26496         * DataGridViewElement.cs: DataGridView implementation
26497         * DataGridViewComboBoxCell.cs: DataGridView implementation
26498         * DataGridViewDataErrorContexts.cs: DataGridView implementation
26499         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
26500         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
26501         * ImageLayout.cs: DataGridView implementation
26502         * DataGridViewComboBoxColumn.cs: DataGridView implementation
26503         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
26504         * DataGridViewSelectionMode.cs: DataGridView implementation
26505         * IDataGridViewEditingControl.cs: DataGridView implementation
26506         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
26507         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
26508         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
26509         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
26510         * DataGridViewColumnSortMode.cs: DataGridView implementation
26511         * DataGridView.cs: DataGridView implementation
26512         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
26513         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
26514         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
26515         * Padding.cs: DataGridView implementation
26516         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
26517         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
26518         * DataGridViewRowEventHandler.cs: DataGridView implementation
26519         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
26520         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
26521         * DataGridViewButtonCell.cs: DataGridView implementation
26522         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
26523         * DataGridViewEditMode.cs: DataGridView implementation
26524         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
26525         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
26526         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
26527         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
26528         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
26529         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
26530         * DataGridViewCellEventHandler.cs: DataGridView implementation
26531         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
26532         * DataGridViewCellStyleConverter.cs: DataGridView implementation
26533         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
26534         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
26535         * DataGridViewColumnEventArgs.cs: DataGridView implementation
26536         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
26537         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
26538         * QuestionEventArgs.cs: DataGridView implementation
26539         * IDataGridViewEditingCell.cs: DataGridView implementation
26540         * DataGridViewTriState.cs: DataGridView implementation
26541         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
26542         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
26543         * DataGridViewColumnCollection.cs: DataGridView implementation
26544         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
26545         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
26546         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
26547         * DataGridViewColumn.cs: DataGridView implementation
26548         * DataGridViewCellBorderStyle.cs: DataGridView implementation
26549         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
26550         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
26551         * DataGridViewRow.cs: DataGridView implementation
26552         * DataGridViewImageCellLayout.cs: DataGridView implementation
26553         * DataGridViewImageCell.cs: DataGridView implementation
26554         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
26555         * DataGridViewCheckBoxCell.cs: DataGridView implementation
26556         * DataGridViewHeaderCell.cs: DataGridView implementation
26557         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
26558         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
26559         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
26560         * DataGridViewTextBoxColumn.cs: DataGridView implementation
26561         * QuestionEventHandler.cs: DataGridView implementation
26562         * DataGridViewCellStyleScopes.cs: DataGridView implementation
26563         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
26564         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
26565         * DataGridViewCell.cs: DataGridView implementation
26566         * DataGridViewCellEventArgs.cs: DataGridView implementation
26567         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
26568         * DataGridViewCellStyle.cs: DataGridView implementation
26569         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
26570         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
26571         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
26572         * TextFormatFlags.cs: DataGridView implementation
26573         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
26574         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
26575         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
26576         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
26577         * DataGridViewButtonColumn.cs: DataGridView implementation
26578         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
26579         * HandledMouseEventArgs.cs: DataGridView implementation
26580         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
26581         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
26582         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
26583         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
26584         * DataGridViewRowCollection.cs: DataGridView implementation
26585         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
26586         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
26587         * DataGridViewHitTestType.cs: DataGridView implementation
26588         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
26589         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
26590         * DataGridViewColumnEventHandler.cs: DataGridView implementation
26591         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
26592         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
26593         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
26594         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
26595         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
26596         * DataGridViewContentAlignment.cs: DataGridView implementation
26597         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
26598         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
26599         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
26600         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
26601         * DataGridViewPaintParts.cs: DataGridView implementation
26602         * DataGridViewCellCollection.cs: DataGridView implementation
26603         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
26604         * DataGridViewImageColumn.cs: DataGridView implementation
26605         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
26606         * DataGridViewElementStates.cs: DataGridView implementation
26607         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
26608         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
26609         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
26610         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
26611         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
26612         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
26613         * DataGridViewRowHeaderCell.cs: DataGridView implementation
26614         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
26615         * DataGridViewTextBoxCell.cs: DataGridView implementation
26616         * DataGridViewBand.cs: DataGridView implementation
26617         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
26618         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
26619         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
26620         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
26621         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
26622         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
26623         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
26624         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
26625         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
26626         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
26627         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
26628
26629 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
26630
26631         * ThemeWin32Classic.cs: 
26632           - Draw the outside focus rectangle around buttons
26633           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
26634             doesn't use end caps for every dash of a line anymore. This
26635             workaround ignores the forecolor.
26636
26637 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
26638
26639         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
26640           endian safe.
26641
26642 2005-11-07  Jackson Harper  <jackson@ximian.com>
26643
26644         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
26645
26646 2005-11-07  Jackson Harper  <jackson@ximian.com>
26647
26648         * ScrollableControl.cs: Calculate the maximum and change vars
26649         (more) correctly so that scrollbars appear as a sensible size.
26650
26651 2005-11-04  Jackson Harper  <jackson@ximian.com>
26652
26653         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
26654         collection.
26655         * TreeView.cs: When the tree is sorted null out the top_node so
26656         that it is recalculated.
26657         - Use dotted lines instead of dashed lines to match MS better.
26658
26659 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
26660
26661         * ListView.cs: 
26662           - Implements key search for items. Useful when browsing files with FileDialog
26663           - When changing view mode or when clear the items reset scrollbar positions
26664
26665 2005-11-04  Jackson Harper  <jackson@ximian.com>
26666
26667         * CurrencyManager.cs: Implement the MetaDataChanged event, the
26668         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
26669         as to what the method may do as there is no real way of creating a
26670         derived CurrencyManager and calling the method. 
26671
26672 2005-11-03  Jackson Harper  <jackson@ximian.com>
26673
26674         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
26675         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
26676         method which seems to just be used internally to refresh the tabs.
26677
26678 2005-11-03  Jackson Harper  <jackson@ximian.com>
26679
26680         * TabControl.cs: Implement the remove method. Fix some broken
26681         comments.
26682
26683 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
26684
26685         * DateTimePicker.cs:
26686           - Added missing DateTimePickerAccessibleObject class
26687           - Added missing events
26688           - Added OnFontChanged method
26689         * Form.cs: Added missing attributes
26690         * TreeView.cs: Added missing attributes
26691
26692 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
26693
26694         * GridItemCollection.cs: Fix signatures
26695
26696 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
26697
26698         * XplatUI.cs: Updated build rev/date
26699         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
26700           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
26701         * Application.cs: Trigger context-specific ExitThread events
26702
26703 2005-11-03  Jackson Harper  <jackson@ximian.com>
26704
26705         * Menu.cs:
26706         * MainMenu.cs:
26707         * GridTableStylesCollection.cs:
26708         * Timer.cs:
26709         * TabPage.cs:
26710         * HelpProvider.cs:
26711         * StatusBar.cs:
26712         * MonthCalendar.cs: Signature fixes
26713
26714 2005-11-03  Jackson Harper  <jackson@ximian.com>
26715
26716         * TreeNodeCollection.cs: Remove should not be virtual.
26717         * TreeView.cs: Implement the last of the missing methods.
26718
26719 2005-11-03  Jackson Harper  <jackson@ximian.com>
26720
26721         * TreeNodeConverter.cs: Implement to get off my class-status back.
26722
26723 2005-11-03  Jackson Harper  <jackson@ximian.com>
26724
26725         * TreeView.cs: Hookup the bits for drag and drop.
26726         * TreeNode.cs: Don't cache the tree_view or index anymore, now
26727         that nodes can be moved from tree to tree easily this just causes
26728         all sorts of problems.
26729         * TreeNodeCollection: Don't need to give treenodes an index and
26730         treeview anymore when they are added, these are computed on the
26731         fly. Also make sure to remove a node before its added.
26732
26733 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
26734
26735         * TextControl.cs:
26736           - Added CaretSelection enum
26737           - Added comparison methods to Marker struct, makes selection code
26738             more readable
26739           - Added SelectionStart and SelectionEnd as 'moveable' location for
26740             the CaretDirection enum and handler
26741           - Added selection_prev variable to track optimized invalidation for
26742             word and line selection
26743           - Added SelectionVisible property (returns true if there is a valid 
26744             selection)
26745           - Switched CaretHasFocus to only display the caret if there is no
26746             visible selection
26747           - Avoiding StringBuilder.ToString to retrieve a single char, instead
26748             using the direct character index; should be much faster
26749           - Added various conditional debug statements
26750           - Fixed invalidation calculation for selection ranges
26751           - Added ExpandSelection() method to support word and line selection
26752           - Switched SetSelectionToCaret to use new Marker compare overloads
26753           - Added central IsWordSeparator() method to determine word 
26754             separators/whitespace and FindWordSeparator() to streamline common
26755             usage of IsWordSeparator()
26756         * TextBoxBase.cs:
26757           - Removed unneeded grabbed variable, it was just mirroring
26758             Control.Capture
26759           - No longer firing OnTextChanged event when Text setter is called,
26760             since the base will fire the event for us
26761           - Added handling of Ctrl-Up/Down selection
26762           - Added handling of Shift-Cursorkey selection
26763           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
26764             words
26765           - Added handling of Shift and Ctrl-Shift-Home/End selection
26766           - Removed some debug output
26767           - Added handling for single/double/tripple-click to place caret/
26768             select word/select line respectively (Fixes bug #76031)
26769           - Added support for drag expansion of word/line selection
26770         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
26771           current selection
26772
26773 2005-11-02  Jackson Harper  <jackson@ximian.com>
26774
26775         * X11Dnd.cs: If the drag is going to and from a MWF window just
26776         copy the data instead of sending it out through the X Selection
26777         mechanism.
26778
26779 2005-11-02  Jackson Harper  <jackson@ximian.com>
26780
26781         * X11Dnd.cs:
26782         * XplatUIX11.cs: When in a drag we don't want motion notify
26783         messages to get passed on to the other controls. This prevents
26784         mouse move messages from showing up in the drag source.
26785
26786 2005-11-02  Jackson Harper  <jackson@ximian.com>
26787
26788         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
26789         the correct button is release to end a drag.
26790         * XplatUIX11.cs: Make the button state internal so the drag system
26791         can access it.  Dragging needs to know about all button releases,
26792         not just left button.
26793
26794 2005-11-02  Miguel de Icaza  <miguel@novell.com>
26795
26796         * Form.cs (Icon): If the icon is null, reset the icon to the
26797         default value. 
26798
26799         * Cursor.cs: When writing the AND-mask bitmap do not include the
26800         number of colors, but hardcode those to two (black and white),
26801         fixes the loading of color cursors (Paint Dot Net).
26802
26803         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
26804         turn off autoscaling.
26805
26806         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
26807
26808 2005-11-02  Jackson Harper  <jackson@ximian.com>
26809
26810         * X11Dnd.cs: Make sure to send a status message if the pointer
26811         enters a control that can not accept a drop, otherwise the cursor
26812         isn't updated correctly. Also tried to compress the lines of code
26813         a bit.
26814
26815 2005-11-02  Jackson Harper  <jackson@ximian.com>
26816
26817         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
26818         set actions correctly.  This isn't perfect as XDND and win32 have
26819         some differences on how you allow actions. I'll clear this up by
26820         adding a path for drag from MWF to MWF windows.
26821         * XplatUIX11.cs: Hook into the dnd system.
26822
26823 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
26824
26825         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
26826         previously shown but they are no longer need it. Very obvious when 
26827         browsing files with FileDialog.
26828
26829 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
26830
26831         * Control.cs: We always need to call OnPaintBackground. We pretty much
26832           ignore AllPaintingInWmPaint and always do the painting there, whether 
26833           it's set or not, since we always ignore the WM_ERASEBKGND message 
26834           (which we don't generate on X11). This fixes #76616.
26835         * Panel.cs: Removed unneeded background painting. This happens properly
26836           in Control.cs already
26837
26838 2005-10-31  Mike Kestner  <mkestner@novell.com>
26839
26840         * Menu.cs: Add items to collection before setting their index.
26841         * MenuItem.cs : add range checking with ArgumentException like MS.
26842         [Fixes #76510]
26843
26844 2005-10-31  Jackson Harper  <jackson@ximian.com>
26845
26846         * ListBox.cs: Invalidate if the area is visible at all not just
26847         contained in the visible rect. Fixes unselection of semi visible
26848         items.
26849
26850 2005-10-31  Jackson Harper  <jackson@ximian.com>
26851
26852         * Control.cs: Consistently name the dnd methods. Make them
26853         internal so we can override them to match some MS behavoir
26854         internally.
26855         * Win32DnD.cs: Use the new consistent names.
26856
26857 2005-10-31  Jackson Harper  <jackson@ximian.com>
26858
26859         * TreeView.cs: Don't draw the selected node when we lose focus.
26860
26861 2005-10-31  Jackson Harper  <jackson@ximian.com>
26862
26863         * X11Dnd.cs: We still need to reset the state even though a full
26864         reset isn't being done, otherwise status's still get sent all over
26865         the place.
26866
26867 2005-10-31  Jackson Harper  <jackson@ximian.com>
26868
26869         * Control.cs: Make the dnd_aware flag internal so the dnd
26870         subsystem can check it. Catch exceptions thrown in dnd handlers to
26871         match MS behavoir.
26872         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
26873         * X11Dnd.cs: Handle null data in the converters. Set the XDND
26874         version when sending a XdndEnter. Use the control/hwnd dnd_aware
26875         flags to reduce the number of dnd enters/status's sent.
26876
26877 2005-10-31  Jackson Harper  <jackson@ximian.com>
26878
26879         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
26880
26881 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
26882
26883         * PictureBox.cs: Fixes 76512
26884
26885 2005-10-28  Jackson Harper  <jackson@ximian.com>
26886
26887         * X11Dnd.cs: Early implementation to support winforms being a drag
26888         source for data on X11. Also restructured the converters so they
26889         can go both ways now.
26890         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
26891         
26892 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
26893
26894         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
26895           clipboard requests
26896
26897 2005-10-27  Jackson Harper  <jackson@ximian.com>
26898
26899         * TreeNode.cs: Implement serialization so my DnD examples will work.
26900
26901 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
26902
26903         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
26904           TreeView.cs: Don't dispose objects that are not owned.
26905           
26906 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
26907
26908         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
26909           should retrieve the current cursor and report that, but XplatUI
26910           doesn't (yet) have an interface for that (and I'm not sure I even
26911           can, on X11)
26912         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
26913           until any message loop processing is done (and the WM_SETCURSOR
26914           replaces the cursor to the proper one)
26915         * XplatUIX11.cs: 
26916           - Fixed override behaviour, we can't set the cursor globally on X11, 
26917             just for our windows.
26918           - Invalidating the System.Drawing X11 display handle when we are
26919             shutting down
26920         * Control.cs: Fix to make csc happy
26921
26922 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
26923
26924         * TextBoxBase.cs: 
26925           - get_Text: Add last line (without trailing newline) to returned
26926             value (Fixes 76212)
26927           - get_TextLength: Count last line in returned length
26928           - ToString: Call Text property instead of duplicating code
26929
26930 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
26931
26932         * ImageList.cs: Dispose ImageAttributes objects.
26933
26934 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
26935
26936         * ImageList.cs: Use attribute constructors with less arguments where
26937           possible.
26938
26939 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
26940
26941         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
26942           Use typeof instead of strings when assembly is referenced. Added
26943           some more comments.
26944
26945 2005-10-21  Jackson Harper  <jackson@ximian.com>
26946
26947         * ListView.cs: Raise a double click event. Also tried to somewhat
26948         fix when the selectedindexchanged event is raised. Its still
26949         broken though.
26950
26951 2005-10-21  Jackson Harper  <jackson@ximian.com>
26952
26953         * TreeView.cs: New method to invalidate the plus minus area of a
26954         node without invalidating the whole node (maybe this can be used
26955         in some more places).
26956         * TreeNodeCollection.cs: When adding to an empty node we need to
26957         invalidate its plus minus area so the little block shows up.
26958         
26959 2005-10-21  Jackson Harper  <jackson@ximian.com>
26960
26961         * TreeView.cs: Make sure that when we invalidate a node the bounds
26962         are big enough to cover the selected box and the focus
26963         rectangle. Use a different colour for the lines connecting nodes
26964         so they show up with all themes.
26965
26966 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
26967
26968         * NativeWindow.cs: Don't call anything that could call into the driver,
26969           we might be on a different thread.
26970
26971 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
26972
26973         * Control.cs(Dispose): Since Dispose might run on a different thread,
26974           make sure that we call methods that could call into the driver via
26975           invoke, to avoid thread issues
26976
26977 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
26978
26979         * XplatUI.cs: Removed finalizer
26980         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
26981           not allowing to be called on the finalizer thread.
26982
26983 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
26984
26985         * ImageList.cs:
26986           - Reverted r51889 and r51891.
26987           - Added ImageListItem class that stores unmodified image items and image
26988             properties required to create list images until handle is created.
26989           - Added AddItem and moved image creation logic to AddItemInternal.
26990           - Added CreateHandle method that creates images based on unmodified items.
26991           - Added DestroyHandle that changes state to store unmodified items.
26992           - Add and AddStrip methods no more create handle.
26993           - ReduceColorDepth has no return value.
26994           - Dispose destroys handle.
26995           - Modified other methods to reflect the above changes.
26996           - Implemented key support.
26997           - Added profile 2.0 members and attributes.
26998           - Added private Reset and ShouldSerialize methods that provide the same
26999             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
27000             them as they are private.
27001           - Added some more comments about implementation details.
27002
27003 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
27004
27005         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
27006
27007 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
27008
27009         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
27010
27011 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
27012
27013         * DataGridDrawingLogic.cs: Fixes column hit calcultation
27014         * DataGridColumnStyle.cs: Remove debug message
27015
27016 2005-10-20  Jackson Harper  <jackson@ximian.com>
27017
27018         * TreeView.cs: We can always get input keys regardless of whether
27019         or not editing is enabled. They are used for navigation.
27020
27021 2005-10-20  Jackson Harper  <jackson@ximian.com>
27022
27023         * TreeNode.cs: Use the viewport rect for determining if a node
27024         needs to be moved for visibility. Don't use Begin/End edit. This
27025         calls a full refresh when its done.
27026         * TreeView.cs: New SetBottom works correctly.  Make the viewport
27027         rect property internal so the treenodes can see it. When clicking
27028         on a node we need to ensure that its visible because it might just
27029         be partly visible when clicked.
27030
27031 2005-10-20  Jackson Harper  <jackson@ximian.com>
27032
27033         * TreeNodeCollection.cs: Remove debug code.
27034
27035 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
27036
27037         * Datagrid.cs: Implements column sorting in Datagrid
27038         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
27039
27040 2005-10-20  Jackson Harper  <jackson@ximian.com>
27041
27042         * TreeNodeCollection.cs: Remove items properly. Update the correct
27043         area after removing them.
27044
27045 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
27046
27047         * Datagrid.cs: Should not call base.OnPaintBackground
27048
27049 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
27050
27051         * XplatUIX11.cs (GetMessage):
27052           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
27053             window instead of client window
27054           - Now properly calculates NC_xBUTTONUP message coordinates
27055           - ScreenToMenu now properly calculates it's coordinates of whole 
27056             window, since menus are in the whole window, not in the client
27057             window
27058           - Added WholeToScreen coordinate translation method
27059
27060 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
27061
27062         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
27063           want to return a message, loop back to the beginning of the function
27064           and grab the next real message to process instead.
27065
27066 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
27067
27068         * Splitter.cs: Properly set limits if no filler control is used
27069
27070 2005-10-19  Jackson Harper  <jackson@ximian.com>
27071
27072         * ColorDialog.cs: Don't show the help button if it is not enabled
27073         instead of disabling it (this is what MS does). Don't create the
27074         panel until the dialog is run, otherwise the vars (such as
27075         ShowHelp) are not set yet.
27076
27077 2005-10-19  Jackson Harper  <jackson@ximian.com>
27078
27079         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
27080         are reduced when adding nodes.
27081         * TreeNode.cs:
27082         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
27083         tree.
27084         
27085 2005-10-19  Jackson Harper  <jackson@ximian.com>
27086
27087         * FolderBrowserDialog.cs: End editing our treeview so the window
27088         actually gets refreshed.
27089
27090 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
27091
27092         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
27093           Obsoleted handling of WM_ERASEBKGND, now always draws our background
27094           inside of WM_PAINT
27095
27096 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
27097
27098         * MenuAPI.cs: Returns after Hidding window
27099         * XplatUIX11.cs: Added TODO found while debugging menu issues
27100
27101 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
27102
27103         * XplatUIX11.cs: Do not re-map the whole window when it's size
27104           becomes non-zero unless it's supposed to be actually visible
27105
27106 2005-10-18  Jackson Harper  <jackson@ximian.com>
27107
27108         * TreeView.cs: We don't need to keep a count anymore.
27109         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
27110         use the Grow method.
27111
27112 2005-10-18  Jackson Harper  <jackson@ximian.com>
27113
27114         * TreeNodeCollection.cs: Insert is not supported on arrays, so
27115         implement it manually here.
27116
27117 2005-10-18  Jackson Harper  <jackson@ximian.com>
27118
27119         * ImageList.cs: Dont kill the list when the colour depth is
27120         changed, just change the colour depth of all the images.
27121         - Same goes for setting the image size. Just resize them all
27122         instead of killing the list softly.
27123
27124 2005-10-18  Jackson Harper  <jackson@ximian.com>
27125
27126         * Control.cs: Don't invalidate empty rectangles.
27127
27128 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
27129
27130         * ListViewItem.cs:
27131           - Adds checked item to the Checked/Item lists (where empty before)
27132           - Do not add items to the Selected lists if they are already present
27133         * ListView.cs:
27134           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
27135           - When deleting items make sure that we delete them for the Selected
27136           and Checked list also.
27137
27138 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
27139
27140         * Label.cs: Dispose objects no longer used
27141         * ThemeWin32Classic.cs: Dispose objects no longer used
27142
27143 2005-10-18  Jackson Harper  <jackson@ximian.com>
27144
27145         * TabControl.cs: Don't refresh the whole control when the tabs are
27146         scrolled, we just need to refresh the tab area.
27147
27148 2005-10-17  Jackson Harper  <jackson@ximian.com>
27149
27150         * XplatUIX11.cs: Compress code a little bit. Only calculate the
27151         after handle when we need it.
27152
27153 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
27154
27155         * Control.cs: When the parent size changes, recalculate anchor 
27156           positions. Partial fix for #76462
27157
27158 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
27159
27160         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
27161           drawn. Fixes #76462
27162
27163 2005-10-17  Jackson Harper  <jackson@ximian.com>
27164
27165         * MonthCalendar.cs: Don't create the numeric up down until our
27166         handle is created. Otherwise our handle is created in the
27167         constructor and we don't know if we are a WS_CHILD or WS_POPUP
27168         yet.
27169
27170 2005-10-17  Jackson Harper  <jackson@ximian.com>
27171
27172         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
27173         correctly.
27174
27175 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
27176         * TreeNode.cs : small logical fix (was using local var instead of field)
27177         
27178 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
27179
27180         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
27181
27182 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
27183
27184         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
27185
27186 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
27187
27188         * Control.cs: 
27189           - Re-implemented anchoring code. My first version was really broken.
27190             This fixes bug #76033. Unlike the previous implementation we will
27191             no longer have round errors since all numbers are calculated from
27192             scratch every time. Removed various anchor-related obsolete vars.
27193           - InitLayout no longer causes layout event firing and layout to be 
27194             performed
27195
27196 2005-10-16  Jackson Harper  <jackson@ximian.com>
27197
27198         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
27199         which was broken).
27200
27201 2005-10-16  Jackson Harper  <jackson@ximian.com>
27202
27203         * TabControl.cs: Remove debug code.
27204
27205 2005-10-16  Jackson Harper  <jackson@ximian.com>
27206
27207         * XEventQueue.cs: Increase the default queue size (very simple
27208         apps needed to grow the queue).
27209         * Hwnd.cs: No finalizer so we don't need to suppress
27210         finalization. Compute the invalid area manually so a new rectangle
27211         does not newto be created.
27212         * ScrollableControl.cs: Don't set any params (otherwise visibility
27213         isn't set correctly).
27214         * MdiChildContext.cs: New constructor takes the mdi parent so it
27215         doesn't have to be computed and avoids a crash on windows. Draw
27216         the window icon properly, and allow the text to be seen.
27217         * Form.cs: Use new MdiChildContext constructor. Make sure the
27218         child context isn't null in wndproc.
27219         * TabControl.cs: Don't set focus, this is muddling keyboard
27220         behavoir. Expand the tab rows when a window size increase will
27221         allow extra tabs to be seen. Don't allow tabs smaller than the
27222         width of a window to be scrolled out of view.
27223         * TreeNode.cs:
27224         * TreeView.cs: Use measure string to calculate a nodes width, the
27225         width is cached and only updated when the text or the font is
27226         changed. Don't check for expand/collapse clicks on the first level
27227         nodes if root lines are disabled.
27228         
27229 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
27230
27231         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
27232
27233 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
27234
27235         * DataGridBoolColumn.cs: fixes warning
27236
27237 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
27238
27239         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
27240         to match more to match more precisely the MS Net behavior
27241
27242 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
27243
27244         * Hwnd.cs: Added field to track if window is mapped
27245         * XplatUIX11.cs: 
27246           - Unmap windows if they become 0-size, re-map when 
27247             they are >0 again; fixes #76035
27248           - Re-set our error handler after initializing X11Desktop
27249             to override any error handlers Gtk or whatever was called
27250             may have set.
27251
27252 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
27253
27254         * CheckedListBox.cs: Removed unused vars
27255         * ListView.cs: Fixed signatures
27256         * RichTextBox.cs: Removed unused vars
27257         * TextBoxBase.cs: Removed unused vars
27258         * XplatUIWin32.cs: Removed unused vars
27259         * XplatUIX11.cs: Removed unused vars
27260         * XplatUI.cs: Updated version and date to latest published
27261
27262 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
27263
27264         * Cursor.cs: Added private .ctor to work around a bug in
27265           resourceset (Thanks to Geoff Norton for the help on this)
27266         * SplitterEventArgs.cs: Made fields accessible so we don't
27267           waste boatloads of objects and can reuse the same one
27268           in Splitter
27269         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
27270           any captions and borders when generating screen coordinates
27271         * Splitter.cs: Reimplemented control, now fully complete, uses
27272           rubberband drawing, supports and obeys all properties, has
27273           proper cursors
27274
27275 2005-10-13  Miguel de Icaza  <miguel@novell.com>
27276
27277         * Form.cs (Form): Setup default values for autoscale and
27278         autoscale_base_size;  Make these instance variables, not static
27279         variables. 
27280
27281         (OnLoad): on the first load, adjust the size of the form.
27282
27283 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
27284
27285         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
27286           width argument to DrawReversibleRectangle()
27287         * XplatUIWin32.cs, XplatUIX11.cs: 
27288           - Implemented width for DrawReversibleRectangle()
27289           - Added logic to DrawReversibleRectangle that recognizes a zero
27290             width or height and only draws a line in that situation
27291         
27292 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
27293
27294         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
27295         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
27296         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
27297           method (it uses our FosterParent window to get a graphics context)
27298
27299 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
27300
27301         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
27302           and SetWindowBackground methods
27303         * Control.cs:
27304           - Setting proper ControlStyles
27305           - We no longer call XplatUI.SetWindowBackground and XplatUI.
27306             EraseWindowBackground, instead we draw the window background
27307             ourselves in PaintControlBackground. This behaviour is
27308             required to match MS, where, when OnPaintBackground is not
27309             called, the background is not drawn.
27310           - Removed unneeded Refresh() in set_Text
27311         * Hwnd.cs: Dropped the ErasePending support. No longer needed
27312         * XplatUIX11.cs:
27313           - Created DeriveStyles method to translate from CreateParams to
27314             FormBorderStyle and TitleStyle, also handles BorderStyle (which
27315             matches FormBorderStyle enum values)
27316           - Consolidated SetHwndStyles and CalculateWindowRect border/title
27317             style calculations into single DeriveStyles method
27318           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
27319             from redrawing the whole window on any resize or expose.
27320           - Fixed CreateWindow usage of SetWindowValuemask. Before not
27321             all styles were applied to our whole/client window appropriately
27322           - Removed EraseWindowBackground() and SetWindowBackground() methods
27323           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
27324             no longer clear/redraw the background through X
27325           - Removed handling of erase_pending bit, we have no use for it (or
27326             so it seems)
27327         * XplatUIOSX.cs:
27328           - Removed generation and handling of WM_ERASEBKGND message
27329           - Removed EraseWindowBackground() and SetWindowBackground() methods
27330           - Removed handling of hwnd.ErasePending flag
27331         * XplatUIWin32.cs:
27332           - Removed EraseWindowBackground() and SetWindowBackground() methods
27333           - We no longer call EraseWindowBackground on PaintEventStart, we 
27334             ignore the fErase flag, erasing is handled in Control in the
27335             background handler
27336         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
27337           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
27338           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
27339           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
27340           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
27341           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
27342           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
27343
27344 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
27345
27346         * PropertyGrids.cs: Get sub properties
27347         * PropertyGridView.cs: Fix drawing code
27348
27349 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
27350
27351         * ListBox.cs: Fixes 76383
27352
27353 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
27354
27355         * DataGridTextBoxColumn.cs: Sets location and size before attachment
27356         * ThemeWin32Classic.cs: Fixes border drawing and calculations
27357         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
27358
27359
27360 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
27361
27362         * ComboBox.cs: Fixes border drawing
27363
27364 2005-10-10  Miguel de Icaza  <miguel@novell.com>
27365
27366         * MimeIcon.cs: Ignore errors if the file can not be read.
27367
27368 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
27369
27370         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
27371          - Fixed border calculations
27372          - Fixed horizontal scrolling in single column listboxes
27373          - Fixed drawing issues
27374
27375 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
27376
27377         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
27378           FormBorderStyle enum
27379         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
27380           code to determine FormBorderStyles from CreateParams
27381         * Form.cs:
27382           - Fixed bug where we'd set the wrong window styles if we were
27383             not creating an MDI window
27384           - Added call to XplatUI.SetBorderStyle when form borders are set
27385         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
27386         * Hwnd.cs:
27387           - Removed obsolete edge style
27388           - Switched from BorderStyle to FormBorderStyle
27389         
27390 2005-10-10  Jackson Harper  <jackson@ximian.com>
27391
27392         * Form.cs: Use the property to get the window handle instead of
27393         accessing it directly. Prevents a null reference exception.
27394
27395 2005-10-10  Jackson Harper  <jackson@ximian.com>
27396
27397         * TreeView.cs: Don't adjust the rect given to DrawString now that
27398         our libgdiplus draws correctly.
27399
27400 2005-10-08  Jackson Harper  <jackson@ximian.com>
27401
27402         * TreeView.cs: Don't try to find the clicked on node if there are
27403         no nodes in the tree.
27404
27405 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
27406
27407         * RichTextBox.cs:
27408
27409           restore
27410
27411 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
27412
27413         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
27414           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
27415           ErrorProvider.cs:
27416           Use ResPool for brushes and dispose System.Drawing objects that
27417           are not used anymore.
27418
27419 2005-10-07  Jackson Harper  <jackson@ximian.com>
27420
27421         * MdiChildContext.cs: Use the new borders instead of drawing them
27422         ourselves.
27423
27424 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
27425
27426         * Calling UpdateBounds after changing the window's BorderStyle 
27427         since the style can change the ClientSize
27428
27429 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
27430
27431         * Control.cs: Made PaintControlBackground virtual
27432         * Panel.cs: Overriding PaintControlBackground instead of using paint
27433           event; paint event method was interfering with 'real' users of the
27434           event.
27435
27436 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
27437
27438         * ThemeWin32Classic.cs: remove border drawing since it is handled
27439         by the base control class now and was causing double border drawing.
27440
27441 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
27442
27443         * Panel.cs: Redraw our background on paint. Not a pretty solution,
27444           but it does seem to match MS behaviour. This fixes bug #75324
27445
27446 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
27447
27448         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
27449           somewhat hackish looking
27450
27451 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
27452
27453         * TextBoxBase.cs:
27454           - We now accept Enter even if AcceptEnter is false, if the containing
27455             form does not have an AcceptButton configured (fixes bug #76355)
27456           - Calculations are now fixed to no longer use Width/Height, but
27457             ClientSize.Width/Height, since we now support borders (this was
27458             a result of fixing borders and therefore bug #76166)
27459           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
27460             true (fixes bug #76354)
27461         
27462 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
27463
27464         * Control.cs: 
27465           - Defaulting BorderStyle and setting it in XplatUI when our window 
27466             is created
27467           - Added enum check to InternalBorderStyle setter
27468         * XplatUIX11.cs: 
27469           - Added drawing of window borders
27470           - Now properly calculates WM decorations offset for toplevel 
27471             windows (fixes bug #74763)
27472         * XplatUIWin32.cs: 
27473           - Implemented BorderStyles for windows (we're letting win32 draw 
27474             the border for us)
27475           - Fixed the signature for SetWindowLong
27476         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
27477           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
27478           setting borders
27479         * UpDownBase.cs: Remove drawing of borders, this is handled by
27480           the driver, outside the client area
27481         * ListView.cs: Removed bogus border calculations. The control should
27482           be oblivious to borders, since those are not part of the client
27483           area. 
27484         * X11DesktopColors.cs: Commented out (currently) unneeded variables
27485         * ThemeWin32Classic.cs: Removed border calculations from ListView 
27486           drawing code
27487
27488 2005-10-06  Jackson Harper  <jackson@ximian.com>
27489
27490         * MdiChildContext.cs: Clear out the old virtual position remove
27491         all the unneeded calls to CreateGraphics.
27492
27493 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
27494
27495         * TextControl.cs: Use proper color for highlighted text; fixes #76350
27496
27497 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
27498
27499         * Form.cs: 
27500           - Added loading and setting of our new default icon
27501           - Only set icon if window is already created
27502
27503 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
27504
27505         * Label.cs:
27506           - Do not explicitly set the foreground and background colors, to
27507             allow inheriting from parents (fixes #76302)
27508           - Use Control's InternalBorderStyle property to deal with borders
27509
27510 2005-10-06  Jackson Harper  <jackson@ximian.com>
27511
27512         * MdiChildContext.cs: Use the new xplatui function to draw a
27513         reversible rect.
27514
27515 2005-10-06  Jackson Harper  <jackson@ximian.com>
27516
27517         * Form.cs: Add the parent before creating the child context cause
27518         we need the parent when setting up the child.
27519
27520 2005-10-06  Jackson Harper  <jackson@ximian.com>
27521
27522         * FolderBrowserDialog.cs: redo the tree population code so a
27523         second thread isn't used. Should be a lot faster and more stable
27524         now.
27525
27526 2005-10-05  Jackson Harper  <jackson@ximian.com>
27527
27528         * TreeView.cs: There are no expand/collapse boxes if the node has
27529         no children.
27530
27531 2005-10-05  Jackson Harper  <jackson@ximian.com>
27532
27533         * X11DesktopColors.cs: Get menu colours for the gtk theme.
27534
27535 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
27536
27537         * FileDialog.cs: Fix InitialDirectory
27538
27539 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
27540
27541         * ComboBox.cs:
27542                 - Fixes changing between styles
27543                 - Fixes simple mode
27544                 - Fixes last item crashing when navigating with keyboard
27545
27546 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
27547
27548         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
27549
27550 2005-10-05  Jackson Harper  <jackson@ximian.com>
27551
27552         * TreeView.cs: If updating the root node do a full refresh.
27553         * TreeNode.cs: The root node should be expanded by default. Also
27554         added a utility prop to tell if we are the root node.
27555         * TreeNodeCollection.cs: Only refresh if the node we are being
27556         added to is expanded. Also added a comment on a potential
27557         optimization.
27558         
27559 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
27560
27561         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
27562           in dispose method. Fixes #76330
27563
27564 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
27565
27566         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
27567
27568                 - Implements vertical and horizontal scrolling using XplatUI
27569                 - Fixes keyboard navagation
27570                 - Fixes EnsureVisible
27571                 - Drawing fixes
27572                 - Handles and draws focus properly
27573
27574
27575 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
27576
27577         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
27578           Create handle. NET_2_0: Destroy handle when value is null.
27579
27580 2005-10-03  Jackson Harper  <jackson@ximian.com>
27581
27582         * ScrollBar.cs: My last scrollbar patch was broken. This is a
27583         revert and a new patch to prevent the thumb from refreshing so
27584         much.
27585
27586 2005-10-02  Jackson Harper  <jackson@ximian.com>
27587
27588         * ScrollBar.cs: Don't update position if it hasn't actually
27589         changed. This occurs when you hold down the increment/decrement
27590         buttons and the thumb gets to the max/min.
27591
27592 2005-10-01  Jackson Harper  <jackson@ximian.com>
27593
27594         * Form.cs:
27595         * MdiChildContext.cs:
27596         * MdiClient.cs: Implement ActiveMdiChild in Form.
27597
27598 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
27599
27600         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
27601
27602 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
27603
27604         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
27605           be found
27606
27607 2005-09-30  Jackson Harper  <jackson@ximian.com>
27608
27609         * ListBox.cs: Don't do a full refresh unless some data has
27610         actually changed.
27611
27612 2005-09-30  Jackson Harper  <jackson@ximian.com>
27613
27614         * TreeView.cs: Make sure that the checkboxes size is factored in
27615         even when not visible.
27616
27617 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
27618
27619         * FileDialog.cs: Fix Jordi's build break
27620
27621 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
27622
27623         * FileDialog.cs: 
27624                 - Use standard the Windows colours for the combobox as espected
27625                 - Dispose objects that use resouces when no longer need them
27626
27627 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
27628
27629         * X11DesktopColors.cs: Initial incomplete implementation
27630         * XplatUIX11.cs: Added call to initialize X11DesktopColors
27631
27632 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
27633
27634         * Theme.cs: 
27635           - Switched Theme color names to match the names defined in 
27636             System.Drawing.KnownColors. Life's hard enough, no need to make 
27637             it harder.
27638           - Added setters to all theme color properties so themes can set
27639             their color schemes. The setters also propagate the color changes
27640             to System.Drawing.KnownColors via reflection
27641         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
27642           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
27643           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
27644           use the new, more logical theme color names
27645         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
27646           post-NT colors
27647         * ThemeWin32Classic.cs:
27648           - Removed code to set the old classic Windows colors. Instead it
27649             now relies on the colors returned by System.Drawing.KnownColors
27650             which will be either modern static colors (Unix) or colors
27651             read from the user's configuration (Win32)
27652           - Updated to use the new, more logical theme color names
27653           - Switched DataGrid drawing code to use only Theme colors instead of
27654             a mix of System.Drawing.KnownColors and Theme colors
27655           - DrawFrameControl(): Removed code that fills the button area, the
27656             fill would overwrite any previous fill done by a control. This
27657             fixes bug #75338 
27658           - Added DrawReversibleRectangle() stub
27659         * ScrollableControl.cs: Set visible state to false when scrollbars
27660           are removed (pdn fix)
27661         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
27662           DrawReversibleRectangle() method to allow drawing primitive 
27663           'rubber bands'
27664         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
27665
27666 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
27667
27668         * ImageList.cs: Add(Icon): Create handle.
27669
27670 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
27671
27672         * ListView.cs:
27673         * ThemeWin32Classic.cs:
27674                 - Fixes detail mode
27675                 - Sets clippings
27676                 - Issues with drawing
27677
27678 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
27679
27680         * ImageList.cs: Moved RecreateHandle back to ImageList as event
27681           source has to be the ImageList.
27682
27683 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
27684
27685         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
27686
27687 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
27688
27689         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
27690
27691 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
27692
27693         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
27694
27695 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
27696         * GridItem.cs: Fixed TODOs
27697         * GridItemCollection.cs: Added ICollection interface
27698
27699 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
27700
27701         * ImageList.cs: Resize icons when needed.
27702
27703 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
27704
27705         * ListViewItem.cs
27706                 - Fixes GetBounds and returns on screen rects
27707         * ListView.cs:
27708                 - Fixes vertical and horzintal scrolling of items
27709         * ThemeWin32Classic.cs:
27710                 - Fixes drawing
27711                 
27712 2005-09-29  Raja R Harinath  <harinath@gmail.com>
27713
27714         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
27715
27716 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
27717
27718         * ImageList.cs: Added comments about handle creation. Moved Handle,
27719           HandleCreated and OnRecreateHandle implementations to ImageCollection.
27720           Handle is created in Add methods.
27721
27722 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
27723          
27724         * DataGridDrawingLogic.cs: 
27725                 - Takes rows into account on Colum calculations
27726                 - Returns the column when clickig
27727         * DataGrid.cs:
27728                 - Fixes default HitTestInfo values
27729                 - Fixes HitTestInfo.ToString
27730                 - Fixes ResetBackColor          
27731         
27732 2005-09-28  Jackson Harper  <jackson@ximian.com>
27733
27734         * MdiChildContext.cs: Obey rules for fixed sized windows (no
27735         sizing or cursor changes). Also added some temp code to draw the
27736         titlebars text (Makes dev a little easier).
27737
27738 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
27739
27740         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
27741
27742 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
27743          
27744         * ListBox.cs: Fixes bug 76253
27745
27746 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
27747
27748         * ImageList.cs: Added comments about the current implementation. Added
27749           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
27750           Format32bppArgb to preserve transparency and can use Graphics.FromImage
27751           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
27752           with Bitmap.LockBits for better performance. Revised the whole file to
27753           match MS.NET behaviour and provide better performance. Non-public
27754           interface members are calling public members even when they throw
27755           NotSupportedException for better maintainability. Moved ColorDepth,
27756           ImageSize, ImageStream and TransparentColor implementations to
27757           ImageCollection for better performance as these properties are not used
27758           by ImageList.
27759         * ImageListStreamer.cs: Added a new internal constructor that takes an
27760           ImageList.ImageCollection and serializes Images based on
27761           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
27762           match ImageList property name.
27763
27764 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
27765
27766         * ListBox.cs: Fixes IndexFromPoint for last item
27767
27768 2005-09-27  Jackson Harper  <jackson@ximian.com>
27769
27770         * Form.cs: Set the position of new mdi children correctly.
27771
27772 2005-09-27  Jackson Harper  <jackson@ximian.com>
27773
27774         * MdiClient.cs: New mdi children need to be added to the back of
27775         the controls collection so the zorder is set correctly. Also add a
27776         count of all the child windows that have been created.
27777
27778 2005-09-27  Jackson Harper  <jackson@ximian.com>
27779
27780         * Form.cs (CreateParams): Setup MDI forms correctly.
27781
27782 2005-09-27  Jackson Harper  <jackson@ximian.com>
27783
27784         * MdiChildContext.cs:
27785         * MonthCalendar.cs:
27786         * UpDownBase.cs:
27787         * ListBox.cs:
27788         * ListView.cs:
27789         * TextBoxBase.cs:
27790         * TreeView.cs:
27791         * ScrollableControl.cs:
27792         * ComboBox.cs: Add implicit controls using the new implict control
27793         functionality in ControlCollection. Also try to block multiple
27794         control add in a suspend/resume layout to save some cycles.
27795         
27796 2005-09-27  Jackson Harper  <jackson@ximian.com>
27797
27798         * Control.cs: Add functionality to the controls collection to add
27799         'implicit controls' these are controls that are created by the
27800         containing control but should not be exposed to the user. Such as
27801         scrollbars in the treeview.
27802         * Form.cs: The list var of the ControlsCollection is no longer
27803         available because of the potential of implicit controls getting
27804         ignored by someone accessing the list directly.
27805
27806 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
27807
27808         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
27809           loose it's parent. (Fixed bug introduced in r49103 when we added
27810           setting the child parent to null on Remove)
27811
27812 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
27813
27814         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
27815         * Splitter.cs: Added missing attributes for BorderStyle property.
27816         * TextBoxBase.cs: Marked Calculate* methods internal.
27817         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
27818         MS.NET.
27819
27820 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
27821          
27822         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
27823
27824 2005-09-25  Jackson Harper  <jackson@ximian.com>
27825
27826         * TreeView.cs: Update the node bounds correctly regardless of
27827         whether the node is visible.
27828
27829 2005-09-25  Jackson Harper  <jackson@ximian.com>
27830
27831         * ImageList.cs: Don't dispose the image after it is added to the
27832         image list. Only reformat images that need to be resized.
27833
27834 2005-09-25  Jackson Harper  <jackson@ximian.com>
27835
27836         * ImageList.cs: Don't set the format when changing the image.
27837
27838 2005-09-25  Jackson Harper  <jackson@ximian.com>
27839
27840         * TreeView.cs: We can't just assume the node has a font. Use the
27841         treeviews font if no node font is available.
27842
27843 2005-09-25  Jackson Harper  <jackson@ximian.com>
27844
27845         * TreeView.cs: Allow the scrollbars to be reset with negative
27846         values.
27847         - Don't add scrollbars to negative sized windows.
27848
27849 2005-09-23  Jackson Harper  <jackson@ximian.com>
27850
27851         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
27852         old Mono.Posix. Also remove some stray code that shouldn't have
27853         been committed.
27854
27855 2005-09-23  Jackson Harper  <jackson@ximian.com>
27856
27857         * TreeView.cs: Attempt at proper sizing of the horizontal
27858         scrollbar. Also don't resize the scrollbars unless they are
27859         visible.
27860
27861 2005-09-23  Jackson Harper  <jackson@ximian.com>
27862
27863         * TreeView.cs: We don't need to expand the invalid area when the
27864         selection changes, as this is all drawn in the node's bounding
27865         box. The area needs to be expanded (previous typo was contracting
27866         it) when the focus rect moves.
27867
27868 2005-09-23  Jackson Harper  <jackson@ximian.com>
27869
27870         * TreeView.cs: Display the selection box under the correct
27871         circumstances. We were rendering white text with no selection box
27872         before.
27873
27874 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
27875
27876         * TextControl.cs(Split): Now updates selection start/end if it points 
27877           into a line that's being split. Fixes a FIXME and bug #75258
27878
27879 2005-09-23  Jackson Harper  <jackson@ximian.com>
27880
27881         * Binding.cs:
27882         * ListControl.cs: Don't use the path when retrieving binding
27883         managers from the binding context. My bat sense tells me that the
27884         path is only used on insertion.
27885
27886 2005-09-22  Jackson Harper  <jackson@ximian.com>
27887
27888         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
27889
27890 2005-09-22  Jackson Harper  <jackson@ximian.com>
27891
27892         * Splitter.cs: There are special cursors used for splitting.
27893         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
27894
27895 2005-09-22  Jackson Harper  <jackson@ximian.com>
27896
27897         * Splitter.cs: Change the cursor appropriately when the splitter
27898         is moused over, so the user actually knows there is a splitter
27899         there.
27900
27901 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
27902
27903        * Label.cs : Fix ToString method to give same output as MS.NET
27904
27905 2005-09-22  Jackson Harper  <jackson@ximian.com>
27906
27907         * TreeView.cs: Create the scrollbars when the handle is created
27908         and add them right away, just make them invisble. Also account for
27909         the window being shrunk vertically to the point that the vert
27910         scrollbar needs to be added.
27911         - Remove some 0.5 adjustments to get around anti aliasing issues.
27912         
27913 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
27914          
27915         * MainMenu.cs: Fixes default value
27916         * MenuItem.cs: Fixes default value
27917
27918 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
27919
27920         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
27921
27922 2005-09-21  Jackson Harper  <jackson@ximian.com>
27923
27924         * Control.cs: Don't try to set the border style on the window if
27925         it hasn't been created. When the window is created the border
27926         style will be used.
27927
27928 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
27929
27930         * Control.cs (Update): Don't call XplatUI if we don't have a
27931           window handle yet
27932
27933 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
27934
27935         * ContainerControl.cs: Instead of throwing an exception, print
27936           a one-time warning about Validate not being implemented
27937         * XplatUIWin32.cs: Removed debug output
27938
27939 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
27940
27941         * Control.cs: Only set XplatUI background if we expect the windowing
27942           system to handle the background. This stops controls that draw their
27943           own background from flickering
27944
27945         * XplatUIX11.cs: Support custom visuals and colormaps for window 
27946           creation. This allows, amongst other things, using MWF X11 windows 
27947           with OpenGL.
27948
27949 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
27950
27951         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
27952           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
27953           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
27954           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
27955           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
27956           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
27957           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
27958           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
27959           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
27960           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
27961           GridColumnStylesCollection.cs, 
27962           IDataGridColumnStyleEditingNotificationService.cs,
27963           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
27964           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
27965           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
27966           TreeNodeCollection.cs, AmbientProperties.cs, 
27967           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
27968           DataObject.cs, ErrorProvider.cs, Splitter.cs,
27969           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
27970           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
27971           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
27972           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
27973           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
27974           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
27975           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
27976           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
27977           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
27978           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
27979           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
27980           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
27981           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
27982           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
27983           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
27984           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
27985           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
27986           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
27987           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
27988           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
27989           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
27990           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
27991           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
27992           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
27993           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
27994           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
27995           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
27996           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
27997           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
27998           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
27999           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
28000           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
28001           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
28002           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
28003           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
28004
28005 2005-09-21  Jackson Harper  <jackson@ximian.com>
28006
28007         * TreeNode.cs: Call Before/After Expand not Collapse when
28008         expanding.
28009
28010 2005-09-20  Jackson Harper  <jackson@ximian.com>
28011         
28012         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
28013
28014 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
28015          
28016         * ListViewItem.cs:
28017                 - Fixes bug 76120
28018                 - Fixes proper storing of subitems
28019                 - Fixes not updated items
28020
28021 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
28022
28023         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
28024           things if our window handle isn't created yet. Also disabled 
28025           debug for TextBoxBase
28026
28027 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
28028
28029         * MenuAPI.cs: Remove filtering of events to allow menu usage
28030
28031 2005-09-20  Miguel de Icaza  <miguel@novell.com>
28032
28033         * Cursor.cs: Allow null to be passed to Cursor.Current.
28034
28035 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
28036
28037         * ThemeWin32Classic.cs:
28038           - Change some private methods/fields to protected virtual so that 
28039             they can be accessed and overriden in derived classes
28040           - First refactoring of some methods. Derived themes now don't 
28041             need to duplicate the complete code from ThemeWin32Classic
28042         * ThemeNice.cs:
28043           - Added nice StatusBar
28044           - Derive from ThemeWin32Classic and not Theme
28045           - Removed duplicate ThemeWin32Classic code
28046
28047 2005-09-20  Miguel de Icaza  <miguel@novell.com>
28048
28049         * Control.cs (ControlCollection.Add): If the value null is passed
28050         the control is ignored. 
28051
28052         Optimize this loop.
28053
28054 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
28055
28056         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
28057           PostQuitMessage state.
28058         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
28059
28060 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
28061
28062         * Application.cs: Our constructor will never get called, move 
28063           initialization to fields; fixes bug #75933
28064
28065 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
28066
28067         * FileDialog.cs :
28068                 - Allow files to be selected properly using file name
28069                 combo box.
28070                 - Add ability to change diretory (absolute / relative)
28071                 using file name combo box.
28072
28073 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
28074          
28075         * ListBox.cs: 
28076                 - Fixes Multicolumn listboxes item wrong calculations
28077                 - Allows to click when only one item is in the listbox
28078                 - Fixes crash when no items using keyboard navigation
28079
28080 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
28081
28082         * ComboBox.cs: Reverted almost everything from the latest patch which
28083           broke ComboBox
28084
28085 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
28086         
28087         * ToolTip.cs:
28088                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
28089         * ComboBox.cs:
28090                 - When DropDownStyle is Simple, it does not show scrollbar 
28091                 to the last item of the list.
28092                 - When DropDownStyle is Simple, it crashed when the list was 
28093                 scrolled down with the down cursor key.
28094                 - Fixed a bug that when DropDownStyle is DropDownList, the 
28095                 selected item was not shown.
28096                 - The position of the selected item was not preserved when 
28097                 the next dropdown happened.
28098         * ThemeWin32Classic.cs:
28099                 - Items were wrapped at the right end.
28100         * CheckedListBox.cs:
28101                 - Fixed Add method
28102         * ListBox.cs:
28103                 - Items should be fully shown.
28104                 - When resizing and vertical scrollbar disappeared, the item 
28105                 of index 0 should be on the top of the list.
28106                 - GetItemRectangle should consider the size of ver. scrollbar
28107         * StatusBar.cs:
28108                 - SizingGrip area should not be allocated when it is not 
28109                 displayed.
28110                 - Now it reflects MinWidth of the containing panel and 
28111                 fixed a crash that happens when its width becomes so small.
28112
28113 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
28114
28115         * CheckedListBox.cs: Fixes bug 76028
28116         * ListBox.cs: Fixes bug 76028
28117
28118 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
28119
28120         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
28121         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
28122
28123 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
28124
28125         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
28126
28127 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
28128
28129         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
28130
28131 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
28132
28133         * IRootGridEntry.cs: Added
28134         * PropertyGridCommands.cs: Added
28135         * PropertiesTab.cs: Added missing methods and property
28136         * PropertyGridView.cs: Made class internal
28137         * PropertyGridTextBox.cs: Made class internal
28138
28139 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
28140
28141         * MimeIcon.cs: Try to check some other environment variables
28142           if "DESKTOP_SESSION" returns "default"
28143
28144 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
28145
28146         * ThemeNice.cs: Corrected background colors (e.g. menus)
28147         * ColorDialog.cs: Use correct background colors for controls
28148
28149 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
28150
28151         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
28152
28153 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
28154
28155         * RichTextBox.cs: Added initial implementation
28156         * lang.cs: Removed. Was accidentally checked in long time ago
28157         * TODO: Removed. Contents were obsolete
28158
28159 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
28160                                                                                 
28161         * PropertiesTab.cs : Added
28162
28163 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
28164                                                                                 
28165         * PropertyGrid.cs : Update
28166         * PropertyGridView.cs : Update
28167         * System.Windows.Forms.resx : Added images and strings
28168
28169 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
28170
28171         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
28172  
28173 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
28174
28175         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
28176           a busy loop right after the Ungrab the X11 display is otherwise 
28177           blocked
28178
28179 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
28180
28181         * ThemeWin32Classic.cs: Optimise the use of clipping
28182
28183 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
28184
28185         * DataGrid.cs: fixes recursion bug
28186
28187 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
28188
28189         * ThemeNice.cs: 
28190           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
28191           - Cleanup
28192
28193 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
28194
28195         * ThemeNice.cs: Draw nice ProgressBars
28196
28197 2005-09-01  Miguel de Icaza  <miguel@novell.com>
28198
28199         * VScrollBar.cs: Another buglet found by Aaron's tool. 
28200
28201         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
28202         bug finder.
28203
28204 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
28205
28206         * ThemeNice.cs:
28207           - Added nicer menu drawing
28208           - Updated DrawTab
28209           - some refactoring
28210
28211 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
28212
28213         * CreateParams.cs (ToString): Made output match MS
28214         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
28215             handle is already created (to avoid forcing window creation)
28216         * XplatUIX11.cs: Set window text to caption after creating window,
28217           in case Text was set before window was created
28218         * Form.cs: Use this.Text instead of a static string as caption
28219
28220 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
28221
28222         * NotifyIcon.cs: Don't set the window to visible; this screws
28223           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
28224           OnPaint without a bitmap)
28225         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
28226           happen very often anyway; we could add the check to the WM_PAINT 
28227           event generation code
28228
28229 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
28230
28231         * NotifyIcon.cs: Fill the icon area with a background color, to 
28232           avoid 'residue' when transparent icons are drawn
28233         * XplatUIX11.cs:
28234           - Handle whole_window == client_window when destroying windows
28235           - SystrayAdd(): Set client_window to whole_window value to
28236             get mouse and other events passed to NotifyIcon
28237
28238 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
28239
28240         * Form.cs: Set proper default for Opacity property
28241         * NotifyIcon.cs:
28242           - ShowSystray(): Don't bother creating telling the OS
28243             about the systray item if no icon is provided
28244           - Now handles WM_NCPAINT message to deal with whole/client window
28245             split
28246           - Create window as visible to not get caught by Expose optimization
28247         * Hwnd.cs: Removed debug message
28248         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
28249           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
28250             PaintEventStart/End to use new client argument
28251         * TextBoxBase.cs:
28252           - Commented out debug messages
28253           - Switched PaintEventStart/End to use new client argument
28254         * XplatUI.cs: Added client window bool to PaintEventStart()/
28255           PaintEventEnd() calls, to support drawing in non-client areas
28256         * XplatUIDriver.cs: 
28257           - Added client window bool to PaintEventStart()/PaintEventEnd() 
28258             calls, to support drawing in non-client areas
28259           - Added conditional compile to allow using MWF BeginInvoke 
28260             on MS runtime
28261         * XplatUIX11.cs:
28262           - Added some conditional debug output
28263           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
28264             whole/client window split
28265           - Implemented handling of client argument to PaintEventStart()/End()
28266         * Control.cs:
28267           - Throw exception if BeginInvoke() is called and the window handle
28268             or one of the window's parent handles is not created
28269           - Added conditional compile to allow using MWF BeginInvoke on
28270             MS runtime
28271           - get_Parent(): Only sets parent if handle is created. This avoids
28272             forcing window handle creation when parent is set.
28273           - Now fires Layout and Parent changed events in proper order
28274           - Switched to use Handle instead of window.Handle for Z-Order setting,
28275             the get_Parent() patch above causes us to possibly get null for 'window'
28276           - Implemented handling of client argument to PaintEventStart()/End()
28277           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
28278             default handling)
28279           - Now sends a Refresh() to all child windows when Refresh() is called
28280
28281 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
28282
28283         * Form.cs: Added (non-functional) Opacity property
28284         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
28285
28286 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
28287         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
28288           use export MONO_THEME=nice to activate it.
28289           Currently supported controls:
28290           - Button
28291           - ComboBox
28292           - ScrollBar
28293           - TabControl (TabAlignment.Top only, other will follow)
28294         * ThemeEngine.cs: Add theme nice
28295         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
28296           if enabled
28297
28298 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
28299
28300         * Splitter.cs: Resize docked control and its neighbor.
28301
28302 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
28303         -- Making Windows with Menus layout correctly --
28304         * Form.cs : The first leg of the fix
28305                 Menu setter - adjust Client Size as needed to make space for the menu
28306                 SetClientSizeCore - doesn't call base version to be able to pass the 
28307                         menu handle to XplatUI.CalculateWindowRect
28308         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
28309         * XplatUIX11.cs: The critical second leg of the fix
28310                 GetWindowPos needs to use a recalculated client_rect
28311                 so that resizing the window doesn't break layout of child controls. 
28312                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
28313                 Lots of \t\n killed
28314
28315 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
28316
28317         * Label.cs: Now properly recalculates width and height on Font and Text
28318           changes if AutoSize is set
28319
28320 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
28321         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
28322
28323 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
28324
28325         * ImageList.cs: Makes ToString method compatible with MS
28326
28327 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
28328
28329         * MenuAPI.cs: fixes bug 75716
28330
28331 2005-08-11 Umadevi S <sumadevi@novell.com>
28332         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
28333
28334 2005-08-11 Umadevi S <sumadevi@novell.com>
28335         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
28336
28337 2005-08-10  Umadevi S <sumadevi@novell.com>
28338         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
28339
28340 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
28341
28342         * Menu.cs: fixes bug 75700
28343         * MenuAPI.cs: fixes navigation issues
28344
28345 2005-08-09  Umadevi S <sumadevi@novell.com>
28346         * CheckedListBox.cs - simple fix for GetItemChecked.
28347
28348 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
28349
28350         * ComboBox.cs: Serveral fixes
28351         * ListBox.cs: Serveral fixes
28352
28353 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
28354
28355         * ComboBox.cs: Fixes FindString methods and GetItemHeight
28356         * ListBox.cs: Fixes FindString methods
28357
28358 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
28359
28360         * DataGrid.cs: fixes bugs exposed by new tests
28361
28362 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
28363
28364         * Mime.cs: Compile Mono assembly references only if compiling
28365           with Mono (Allows to build with VS.Net again)
28366
28367 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
28368
28369         * Control.cs (PaintControlBackground): Draw background image
28370         corrrectly.
28371         (CheckForIllegalCrossThreadCalls): Stubbed.
28372         
28373         * Form.cs (OnCreateControl): Center when should be centered.
28374         
28375         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
28376
28377 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
28378
28379         * Binding.cs: Binding to properties should be case unsensitive
28380
28381 2005-07-18 vlindos@nucleusys.com
28382
28383         * DataGrid.cs: fixes setmember order
28384
28385 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
28386
28387         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
28388         * FileDialog.cs: FileDialog is now resizable and uses the new
28389           MimeIconEngine
28390
28391 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
28392
28393         * DataGridTextBoxColumn.cs: default value
28394         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
28395         * GridTableStylesCollection.cs: fixes checking MappingName
28396         * DataGridDrawingLogic.cs: fixes drawing logic issues
28397         * DataSourceHelper.cs: rewritten to make compatible with more data sources
28398         * DataGrid.cs: fixes    
28399
28400 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
28401
28402         * MimeGenerated.cs: Use case sensitive comparer for
28403           NameValueCollections
28404
28405 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
28406
28407         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
28408         * ThemeWin32Classic.cs: bug fixes, code refactoring
28409         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
28410         * DataGrid.cs: bug fixes, code refactoring
28411         * DataGridTextBox.cs: bug fixes, code refactoring
28412         * DataGridColumnStyle.cs:  bug fixes, code refactoring
28413         * Theme.cs:  bug fixes, code refactoring
28414
28415 2005-07-01  Peter Bartok  <pbartok@novell.com> 
28416
28417         * TextControl.cs: Quick fix for the reported crash on ColorDialog
28418           and other text box usage
28419
28420 2005-07-01  Jackson Harper  <jackson@ximian.com>
28421
28422         * TabControl.cs: Make sure the bottom of the tab covers the pages
28423         border.
28424
28425 2005-06-30  Peter Bartok  <pbartok@novell.com> 
28426
28427         * Form.cs (ShowDialog): Assign owner of the dialog
28428         * TextBoxBase.cs: Always refresh caret size when deleting, caret
28429           might have been moved to a tag with different height
28430
28431 2005-06-30  Jackson Harper  <jackson@ximian.com>
28432
28433         * Form.cs: Don't create an infinite loop when setting focus
28434         * MenuItem.cs: Don't dirty the parents if we don't have any
28435
28436 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
28437
28438         * LibSupport.cs: Rename
28439
28440 2005-06-29  Peter Bartok  <pbartok@novell.com>
28441
28442         * TextBoxBase.cs: Re-align caret after deleting a character
28443         * TextControl.cs:
28444           - DeleteChars(): Ensure that tag covers the provided position
28445           - StreamLine(): Drop reference for dropped tag
28446
28447 2005-06-29  Peter Bartok  <pbartok@novell.com> 
28448
28449         * TextControl.cs: 
28450           - Selections now work properly, anchoring at the initial location
28451             and properly extending in either direction (SetSelectionToCaret(),
28452             SetSelectionStart() and SetSelectionEnd())
28453           - No longer redraws the whole control on selection change, now
28454             calculates delta between previous and new selection and only
28455             invalidates/redraws that area
28456           - Fixed FindPos() math off-by-one errors
28457           - Changed DeleteChars() to verify the provided tag covers the
28458             provided position, selections may have a tag that doesn't cover
28459             the position if the selection is at a tag border
28460           - Fixed off-by-one errors in DeleteChars()
28461           - Added missing streamlining check in DeleteChars() to remove
28462             zero-length tags
28463           - Implemented Invalidate() method, now properly calculates exposures
28464             between two given lines/positions
28465           - Implemented SetSelection()
28466           - Obsoleted and removed FixupSelection()
28467           - Improved RecalculateDocument() logic, removing code duplication
28468
28469 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28470
28471         * LibSupport.cs: changes to match different input/output arguments.
28472
28473 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28474
28475         * LibSupport.cs: added libsupport.so init routine.
28476
28477 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
28478         
28479         * ControlBindingsCollection.cs
28480                 - Throws an exception on null datasource when adding
28481                 - Checks for duplicated bindings when adding
28482
28483 2005-06-28  Jackson Harper  <jackson@ximian.com>
28484
28485         * TreeView.cs (OnKeyDown): Support left and right properly
28486         (navigates as well as expanding and collapsing.
28487         - Add support for Multiply, this expands all the selected nodes
28488         children.
28489         - Fix some tabbing.
28490
28491 2005-06-28  Jackson Harper  <jackson@ximian.com>
28492
28493         * TreeView.cs: Implement keyboard navigation, currently supports,
28494         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
28495         support for toggling checkboxes with the space bar.
28496
28497 2005-06-28  Jackson Harper  <jackson@ximian.com>
28498
28499         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
28500         tree.
28501
28502 2005-06-28  Jackson Harper  <jackson@ximian.com>
28503
28504         * TreeView.cs: Add missing event.
28505
28506 2005-06-27  Peter Bartok  <pbartok@novell.com> 
28507
28508         * TextControl.cs:
28509           - Made line ending size configurable (now allows for counting 
28510             lineendings as \n or \r\n)
28511           - Added margin to viewport to keep caret visible on right side
28512           - Fixed translation routines for line/pos to documentpos to consider
28513             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
28514           - Fixed some line-endings to be unix style
28515           - Fixed Document.FormatText to perform it's calculations 1-based
28516           - Added descriptions for a few methods that might otherwise get 
28517             used wrong
28518           - Added NOTE section with some basic conventions to remember at 
28519             the top of the file
28520           - Major fixup for RichTextBox selection drawing:
28521             * Fixed crashes when multiple tags on a single line were selected
28522             * fixed selection box drawing not overlaying text
28523             * fixed bogus offset calculation for tags not starting at index 1
28524             * Switched behaviour from using multiple Substrings of a 
28525               StringBuilder.ToString() to using multiple 
28526               StringBuilder.ToString(start, length) statements, hoping this is
28527               faster (kept original version commented out in the code, in case
28528               original version was faster)
28529         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
28530           alignment != Left
28531         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
28532           call it as well
28533
28534 2005-06-27  Jackson Harper  <jackson@ximian.com>
28535
28536         * TabControl.cs: Move to the left and right with the arrow
28537         keys. These keys don't cycle beyond first and last like
28538         tab. Refresh all the tabs when scrolling them to the left or
28539         right.
28540
28541 2005-06-27  Jackson Harper  <jackson@ximian.com>
28542
28543         * TabControl.cs:
28544           - ToString: Added method
28545           - CreateParams: Remove TODO and comment
28546           - OnKeyDown: Cycle through bounds properly.
28547           - SelectedIndex: Scroll to the right or left if we need to
28548           display the newly selected tab.
28549
28550 2005-06-23  Jackson Harper  <jackson@ximian.com>
28551
28552         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
28553         set.
28554
28555 2005-06-23  Jackson Harper  <jackson@ximian.com>
28556
28557         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
28558         CTRL-SHIFT-TAB, and HOME, END are there any others?
28559
28560 2005-06-23  Jackson Harper  <jackson@ximian.com>
28561
28562         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
28563
28564 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
28565         
28566         * DataGridTextBoxColumn.cs: fixes and enhancements
28567         * ThemeWin32Classic.cs: fixes and enhancements
28568         * DataGridBoolColumn.cs:  fixes and enhancements
28569         * DataGridDrawingLogic.cs:  fixes and enhancements
28570         * CurrencyManager.cs: fixes and enhancements
28571         * DataGrid.cs: fixes and enhancements
28572         * DataGridColumnStyle.cs:  fixes and enhancements
28573
28574 2005-06-22  Jackson Harper  <jackson@ximian.com>
28575
28576         * TabControl.cs: Add some missing methods that just call into the
28577         base. Make the TabPageCollection's IList interface behave in the
28578         same manner as the MS implementation.
28579
28580 2005-06-22  Peter Bartok  <pbartok@novell.com> 
28581
28582         * TextControl.cs: Added sanity check
28583         * TextBoxBase.cs: 
28584           - Fixed wrapping behaviour, don't set wrap on single line controls
28585             (this fixes the breakage of colordialog introduced in an earlier
28586              checkin)
28587           - Added rudimentary support for autoscrolling right-aligned controls
28588             (still needs fixing, also, center alignment scroll is missing)
28589
28590 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
28591         
28592         * ScrollBar.cs: Fixes thumbpos on Maximum values
28593
28594 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
28595         
28596         * PropertyGridView.cs: Pass context information to UITypeEditors 
28597
28598 2005-06-21  Peter Bartok  <pbartok@novell.com> 
28599
28600         * TextBoxBase.cs:
28601           - Now calling PositionCaret with absolute space coordinates
28602           - Enabled vertical scrolling
28603           - Better tracking of scrollbar changes, tied into WidthChange
28604             event
28605           - Improved cursor tracking
28606           - Removed debug output
28607         * TextControl.cs:
28608           - PositionCaret coordinates are now works in absolute space, not 
28609             the canvas
28610           - Improved tracking of document size
28611           - Added events for width and height changes
28612
28613 2005-06-21  Peter Bartok  <pbartok@novell.com>
28614
28615         * Form.cs: Set focus to active control when form is activated
28616         * TextControl.cs: 
28617           - Added word-wrap functionality to RecalculateLine() 
28618           - Added some short function descriptions for VS.Net to aid in
28619             writing dependent controls
28620           - Added Caret property, returning the current coords of the caret
28621           - Added ViewPortWidth and ViewPortHeight properties
28622           - Added Wrap property
28623           - Added CaretMoved event
28624           - Removed some old debug code
28625           - Split() can now create soft splits
28626           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
28627           - Added method to format existing text
28628           - Fixed size/alignment calculations to use viewport
28629           - RecalculateDocument now can handle changing line-numbers while
28630             calculating lines
28631
28632         * TextBox.cs:
28633           - Added some wrap logic, we don't wrap if alignment is not left
28634           - Added casts for scrollbar var, base class switched types to
28635             also support RichTextBoxA
28636           - Implemented handling of scrollbar visibility flags
28637
28638         * TextBoxBase.cs:
28639           - Switched scrollbars type to RichTextBoxScrollBars to support
28640             RichTextBox
28641           - Added tracking of canvas width/height
28642           - Switched scrollbars to be not selectable (to keep focus on text)
28643           - Added central CalculateDocument() method to handle all redraw
28644             requirements
28645           - Added ReadOnly support
28646           - Added WordWrap support
28647           - Fixed handling of Enter key (we now treat it as a DialogKey)
28648           - Fixed caret positioning when h or v scroll is not zero
28649           - Fixed placing/generation of vertical scrollbar
28650           - Added CalculateScrollBars() method to allow updating scrollbar
28651             limits and visibility
28652           - Fixed handling of horizontal scroll
28653           - Added handling of vertical scroll
28654           - Implemented auto-'jump' when caret moves to close to a left or
28655             right border and there is text to be scrolled into view (currently
28656             there's the potential for a stack overflow, until a bug in
28657             scrollbar is fixed)
28658
28659 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
28660         
28661         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
28662
28663 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
28664
28665         * Mime.cs:
28666         - added inodes.
28667         - return application/x-zerosize for files with size zero
28668           (if no extension pattern matches).
28669         - check matches collection for strings too.
28670         - return only the first mime type if the name value
28671           collection has more than one mime type.
28672
28673 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
28674         
28675         * PropertyGrid.cs: Cleaned up some TODOs
28676         * PropertyGridView.cs: Added support for UITypeEditors
28677
28678 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
28679         
28680         * DataGrid.cs: clears cached value
28681
28682 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
28683
28684         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
28685         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
28686         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
28687         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
28688         
28689 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
28690
28691         * ThemeWin32Classic.cs: fixes colour
28692
28693 2005-06-15  Peter Bartok  <pbartok@novell.com>
28694
28695         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
28696         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
28697         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
28698         * Control.cs: Added some MWFCategory and MWFDescription attributes
28699         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
28700
28701 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
28702
28703         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
28704         usage
28705
28706 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
28707
28708         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
28709         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
28710         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
28711         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
28712         * DataGrid.cs: default datagrid settings for Default Styles, fixes
28713         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
28714
28715 2005-06-13  Jackson Harper  <jackson@ximian.com>
28716
28717         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
28718         isn't printed when the user enables dropping. (X11 does accept
28719         drops).
28720         
28721 2005-06-13  Jackson Harper  <jackson@ximian.com>
28722
28723         * TreeView.cs: Remove some TODOS.
28724
28725 2005-06-13  Jackson Harper  <jackson@ximian.com>
28726
28727         * Form.cs: Hook into the mdi framework.
28728         * MdiClient.cs: Use the base control collections add method so
28729         parents get setup correctly. Set the default back colour and dock
28730         style.
28731         * MdiChildContext.cs: New class, this bad actor handles an
28732         instance of an MDI window. Right now there is only basic
28733         support. You can drag, close, and resize windows. Minimize and
28734         Maximize are partially implemented.
28735
28736 2005-06-13  Jackson Harper  <jackson@ximian.com>
28737
28738         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
28739         freaky when both vals are negative. NOTE: There are probably other
28740         places in XplatUIX11 that this needs to be done.
28741
28742 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
28743
28744         * DataGrid.cs: implement missing methods, move KeyboardNavigation
28745         * DataGridColumnStyle.cs: fixes signature
28746
28747 2005-06-12  Jackson Harper  <jackson@ximian.com>
28748
28749         * XplatUIX11.cs: Use sizing cursors similar to the ones on
28750         windows.
28751
28752 2005-06-11  Jackson Harper  <jackson@ximian.com>
28753
28754         * StatusBarPanel.cs: Signature cleanups. Implement
28755         BeginInit/EndInit.
28756
28757 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
28758
28759         * DataGridTextBoxColumn.cs: Honors aligment
28760         * GridColumnStylesCollection.cs: Contains is case unsensitive
28761         * GridTableStylesCollection.cs: several fixes
28762         * DataGridTableStyle.cs: default column creation
28763         * DataGridDrawingLogic.cs: fixes
28764         * CurrencyManager.cs: ListName property
28765         * DataGrid.cs: multiple styles support
28766         * DataGridColumnStyle.cs: fixes
28767         
28768
28769 2005-06-10  Peter Bartok  <pbartok@novell.com>
28770
28771         * Control.cs(Select): Moved SetFocus call to avoid potential
28772           loops if controls change the active control when getting focus
28773         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
28774           the up/down buttons
28775
28776 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
28777
28778         * ImageListConverter.cs: Implemented
28779
28780 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
28781
28782         * MonthCalendar.cs: Wired in NumericUpDown control for year
28783
28784 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
28785
28786         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
28787           DoubleClick events, since they are not meant to be fired.
28788
28789 2005-06-09  Peter Bartok  <pbartok@novell.com>
28790
28791         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
28792           Jonathan's standalone controls into MWF, implemented missing
28793           events, attributes and methods; added xxxAccessible classes
28794         * AccessibleObject.cs: Made fields internal so other classes
28795           can change them if needed
28796
28797 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
28798
28799         * UpDownBase.cs: Complete implementation
28800         * NumericUpDown.cs: Complete implementation
28801         * DomainUpDown.cs: Complete implementation
28802
28803 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
28804
28805         * DataGridTextBoxColumn.cs: drawing fixes
28806         * DataGridCell.cs: fixes ToString method to match MSNet
28807         * DataGridTableStyle.cs: fixes
28808         * DataGridBoolColumn.cs: fixes, drawing
28809         * DataGridDrawingLogic.cs: fixes, new methods
28810         * DataGridTextBox.cs: Keyboard and fixes
28811         * DataGrid.cs:
28812                 - Keyboard navigation
28813                 - Scrolling fixes
28814                 - Row selection (single, multiple, deletion, etc)
28815                 - Lots of fixes
28816         
28817 2005-06-07  Jackson Harper  <jackson@ximian.com>
28818
28819         * ThemeWin32Classic.cs: Clear the background area when drawing
28820         buttons.
28821
28822 2005-06-06  Peter Bartok  <pbartok@novell.com>
28823
28824         * ImageListStreamer.cs: Fixed signature for GetData
28825         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
28826         * ComboBox.cs:
28827           - Added missing ChildAccessibleObject class
28828           - Added missing OnXXXFocus overrides, switched to using those
28829             instead of the event handler
28830         * Control.cs:
28831           - Added Parent property for ControlAccessibleObject
28832           - Fixed signatures
28833           - Fixed attributes
28834           - Added ResetBindings()
28835         * ListBindingConverter.cs: Implemented some methods
28836         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
28837         * ImageList.cs: Implemented basic handle scheme, removed TODOs
28838         * ContainerControl.cs: Fixed signature, now subscribing to the
28839           ControlRemoved event instead of overriding the handler, LAMESPEC
28840         * CurrencyManager.cs: Added missing attribute
28841         * MonthCalendar.cs: Added missing properties
28842
28843 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
28844
28845         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
28846         
28847 2005-06-06  Gaurav Vaish and Ankit Jain
28848
28849         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
28850         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
28851         
28852 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
28853
28854         * Control.cs: fixes CreateParams Width / Height.
28855
28856 2005-06-05  Peter Bartok  <pbartok@novell.com>
28857
28858         * Win32DnD.cs: Removed compilation warnings
28859
28860 2005-06-05  Peter Bartok  <pbartok@novell.com>
28861
28862         * Control.cs (CreateParams): Since we don't know if one of the
28863           properties we use is overridden, lets make sure if we fail accessing
28864           we continue with a backup plan
28865
28866 2005-06-05  Peter Bartok  <pbartok@novell.com>
28867
28868         * Win32DnD.cs:
28869           - Removed debug output
28870           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
28871             struct
28872           - Plugged resource leak
28873         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
28874           MS size
28875
28876 2005-06-05  Peter Bartok  <pbartok@novell.com>
28877
28878         * XplatUIWin32.cs: Removed DnD code
28879         * Win32DnD.cs: Implemented drop source and drop target functionality
28880
28881 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28882
28883         * UpDownBase.cs: remove duplicate addition of event, enable some code
28884         that was commented out.
28885         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
28886         Validate input when a key is pressed. It works fine now for every
28887         combination of Hexadecimal. Only missing some drawing love when sharing
28888         space with other controls.
28889
28890 2005-06-04  Peter Bartok  <pbartok@novell.com>
28891
28892         * Control.cs:
28893           - We need to pass a window for DragDrop, so enable callback events
28894           - Added DnD callback events when being a DragSource
28895         * XplatUI.cs (StartDrag): Added window handle argument
28896         * XplatUIDriver.cs (StartDrag): Added window handle argument
28897         * QueryContinueDragEventArgs: Made fields internally accessible so
28898           drivers can set them
28899         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
28900           can set them
28901
28902 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
28903
28904         * DataGridTextBoxColumn.cs: column text editing
28905         * DataGridTableStyle.cs: Respect columns styles created by the user
28906         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
28907         * DataGridBoolColumn.cs: bool column editing
28908         * DataGrid.cs: fixes to scrolling, properties, etc
28909         * DataGridTextBox.cs: handle keyboard
28910         * DataGridColumnStyle.cs: fixes
28911
28912 2005-06-02  Jackson Harper  <jackson@ximian.com>
28913
28914         * ImageListStreamer.cs: Somewhat broken implementation of
28915         GetObjectData. The RLE needs some work to match MS properly.
28916
28917 2005-06-02  Jackson Harper  <jackson@ximian.com>
28918
28919         * X11Dnd.cs: Attempting to keep at least one file in MWF
28920         monostyled.
28921
28922 2005-06-02  Peter Bartok  <pbartok@novell.com>
28923
28924         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
28925           that way
28926
28927 2005-06-02  Peter Bartok  <pbartok@novell.com>
28928
28929         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
28930         * XplatUI.cs: Added DoDragDrop() method
28931         * XplatUIDriver.cs: Added DoDragDrop() method
28932
28933 2005-06-02  Jackson Harper  <jackson@ximian.com>
28934
28935         * Splitter.cs: Implement BorderStyle.
28936
28937 2005-06-02  Jackson Harper  <jackson@ximian.com>
28938
28939         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
28940         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
28941         X11 using XDND.
28942
28943 2005-06-02  Peter Bartok  <pbartok@novell.com>
28944
28945         * DataObject.cs:
28946           - Added Data setter
28947           - Fixed broken insertion code for SetData, now also
28948             overwrites any existing entry of the same format name
28949         * Hwnd.cs: Added list of pointers that automatically gets
28950           freed when the window is disposed
28951         * XplatUI.cs: Call driver initialization method when loading
28952           a driver
28953         * Control.cs:
28954           - OnDragLeave takes EventArgs, not DragEventArgs
28955           - Added setting of WS_EX_ACCEPTFILES style when dropping is
28956             supported
28957           - Forces style update when drop state changes
28958         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
28959           not perfect since we cannot (yet) call the IDataObject.GetData()
28960           method, we keep getting 0x80004005 error, dunno why)
28961
28962 2005-06-02  Peter Bartok  <pbartok@novell.com>
28963
28964         * DragEventArgs.cs: Make fields internal so we can cache the
28965           object and re-set the fields from XplatUI
28966
28967 2005-06-02  Jackson Harper  <jackson@ximian.com>
28968
28969         * Control.cs: Add some internal methods so the DnD subsystem can
28970         raise DnD events. Also call into the driver when AllowDrop is set.
28971         * XplatUI.cs:
28972         * XplatUIDriver.cs: New method for setting whether or not a window
28973         is allowed to accept drag and drop messages.
28974                 
28975 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
28976         
28977         * ScrollBar.cs: Make sure that values sent in Scroll events
28978         are always between Maximum and Minimum.
28979
28980 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
28981
28982         * Menu.cs: Call MenuChanged when menuitem visibility has been
28983         changed.
28984         * MenuItem.cs: Rebuild menu when item is (not) visible.
28985         * MainMenu.cs: MainMenu has special MenuChanged.
28986         * Theme.cs: Caption and FrameBorderSize are not fixed.
28987         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
28988         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
28989         * XplatUIX11.cs,
28990         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
28991         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
28992
28993 2005-05-30  Jackson Harper  <jackson@ximian.com>
28994
28995         * DataFormat.cs: We can't statically initialize this stuff because
28996         it calls into the xplatui and could create a loop. So we lazy init
28997         it.
28998
28999 2005-05-28  Jackson Harper  <jackson@ximian.com>
29000
29001         * Control.cs: Proper implementation of Product(Name/Version).
29002
29003 2005-05-27  Jackson Harper  <jackson@ximian.com>
29004
29005         * DataObject.cs: Dont crash if no data is found.
29006
29007 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
29008         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
29009                 as per status page, guessing it should be set to true
29010
29011 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
29012
29013         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
29014         * DataGridTableStyle.cs: set proper formatting text, def header text
29015         * ThemeWin32Classic.cs: new themable paramaters
29016         * DataGridBoolColumn.cs: paint check box, get data, fixes
29017         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
29018         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
29019         * DataGridColumnStyle.cs: fixes
29020         * Theme.cs: new themable paramaters
29021                 
29022 2005-05-26  Peter Bartok  <pbartok@novell.com>
29023
29024         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
29025
29026 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29027         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
29028
29029 2005-05-24  Peter Bartok  <pbartok@novell.com>
29030
29031         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
29032           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
29033           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
29034           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
29035           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
29036           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
29037           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
29038           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
29039           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
29040           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
29041           missing attributes, etc
29042         * DataGridPreferredColumnWidthTypeConverter.cs: Added
29043
29044 2005-05-24  Peter Bartok  <pbartok@novell.com>
29045
29046         * Help.cs: Added, implemented trivial functions, throws up MessageBox
29047           when user tries to get help
29048         * DataObject.cs, DataFormats.cs, LinkArea.cs,
29049           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
29050           to suppress warnings
29051         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
29052           avoid unreachable code warning
29053
29054 2005-05-20  Peter Bartok  <pbartok@novell.com>
29055
29056         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
29057
29058 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
29059
29060         * DataGridTextBoxColumn.cs: Basic painting methods
29061         * DataGridTableStyle.cs: Set table style in the column
29062         * ThemeWin32Classic.cs: Use Theme for colors
29063         * DataGridDrawingLogic.cs: Implement more drawing
29064         * DataGrid.cs: drawing, theming, enhacements, fixes
29065         * DataGridColumnStyle.cs: fixes, drawing
29066         * Theme.cs: theming for Datagrid
29067
29068 2005-05-20  Peter Bartok  <pbartok@novell.com>
29069
29070         * Cursor.cs: Implemented GetObjectData() method
29071
29072 2005-05-20  Peter Bartok  <pbartok@novell.com>
29073
29074         * Cursors.cs: Added setting of cursor name
29075         * Cursor.cs:
29076           - Implemented constructors
29077           - Implemented Draw and DrawStretched
29078           - Implemented Current property
29079           - Implemented == and != operators
29080           - Implemented Dispose()
29081           - Implemented ToString
29082           - Added missing attributes
29083         * XplatUIX11.cs:
29084           - Added missing reset for OverrideCursor when DoEvents is called
29085           - Fixed creation of cursor, logic was wrong
29086         * XplatUIWin32.cs:
29087           - Added missing reset for OverrideCursor when DoEvents is called
29088           - Fixed creation of cursor, bit arrays were swapped
29089         * Clipboard.cs: Removed obsolete MonoTODO attribute
29090
29091 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
29092
29093         * ComboBox.cs: fixes OnSelectedItemChanged
29094         * ControlBindingsCollection.cs: fixes item range check
29095
29096 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
29097
29098         * UpDownBase.cs:
29099                 - Calc preferred height properly
29100                 - Implement missing properties
29101                 
29102         * NumericUpDown.cs: Implement missing events
29103
29104 2005-05-19  Jackson Harper  <jackson@ximian.com>
29105
29106         * TabControl.cs: New method that resizes the tab pages before
29107         redrawing them. This as needed as the control is double buffered
29108         and sizing will not be recalculated unless ResizeTabPages is
29109         called.
29110         * TabPage.cs: Set base.Text instead of Text in the constructor so
29111         that UpdateOwner does not get called. Use the new Redraw method of
29112         TabControl instead of Refresh so the sizing is recalculated.
29113         * ThemeWin32Classic.cs: Draw the text for button tabs.
29114
29115 2005-05-19  Jackson Harper  <jackson@ximian.com>
29116
29117         * Control.cs: Paint control background images. Fix typo where
29118         PaintControlBackground was not getting called correctly.
29119
29120 2005-05-19  Peter Bartok  <pbartok@novell.com>
29121
29122         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
29123           I can investigate, apparently I broke FileDialog
29124
29125 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
29126
29127         * AxHost.cs: Some simple properties.
29128         * Control.cs: window must be accessible after ctor.
29129         * Form.cs: Added TransparencyKey property.
29130         * TextBoxBase.cs: Implemented Clear. Text property can be null.
29131         * XplatUIWin32.cs: SetBorderStyle implemented.
29132
29133 2005-05-18  Peter Bartok  <pbartok@novell.com>
29134
29135         * DataObject.cs: Entries are not global but particular to the
29136           DataObject, now it behaves that way
29137         * XplatUIWin32.cs: Implemented Clipboard methods
29138         * Clipboard.cs: Implemented
29139         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
29140         * XplatUIOSX.cs: Updated to final clipboard prototypes
29141         * XplatUIX11.cs: Implemented Clipboard methods
29142         * XplatUIDriver.cs: Updated to final clipboard prototypes
29143         * XplatUIStructs.cs:
29144           - Added BITMAPINFOHEADER struct
29145           - Added ClipboardFormats enum
29146         * X11Structs.cs:
29147           - Added ClipboardStruct
29148           - Added Atom enum items for clipboard types
29149           - Fixed atom types for Selection event structures
29150         * DataFormats.cs:
29151           - Added internal properties and methods for drivers to enumerate
29152             all known formats
29153           - Switched initialization method to allow drivers to assign their
29154             own IDs even for the MS predefined clipboard IDs
29155         * XplatUI.cs: Updated to final clipboard interface
29156
29157 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29158         * PropertyGridView.cs: Fixed compiler warnings.
29159
29160 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29161         * PropertyGrid.cs: Added some event calls
29162         * PropertyGridView.cs: Change drawing code to use double buffering
29163         * PropertyGridTextBox.cs: Changed Text property name
29164         * GridItem.cs: Added Bounds property.
29165         * GridEntry.cs: Added Bounds property.
29166
29167 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
29168
29169         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
29170         since GetType() may not return the correct type if the object is
29171         a remoting proxy.
29172
29173 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
29174
29175         * TreeNodeCollection.cs: fixes get/set item ranges
29176         
29177 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
29178
29179         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
29180                 
29181 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
29182
29183         * ComboBox.cs: Fix item range comparation
29184         * ListView.cs: Fix item range comparation
29185
29186 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
29187
29188         * FontDialog.cs:
29189           - Clear example panel when OnPaint is called
29190           - Better solution for displaying the example panel text
29191           - Select default indexes in the ListBoxes
29192
29193 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
29194
29195         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
29196
29197 2005-05-11  Peter Bartok  <pbartok@novell.com>
29198
29199         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
29200         * SelectionRangeConverter.cs: Implemented
29201         * PropertyGrid.cs: Fixed attribute value
29202         * Control.cs:
29203           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
29204           - Added Sebastien Pouliot's CAS Stack Propagation fixes
29205         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
29206           that's common to all drivers. First methods to go there are
29207           Sebastien Pouliot's CAS Stack Propagation helper methods
29208         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
29209           Sebastien Pouliot for CAS Stack Propagation
29210
29211 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
29212
29213         * OSXStructs.cs:
29214           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
29215
29216 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
29217
29218         * DataGridTextBoxColumn.cs: fixed some members
29219         * GridColumnStylesCollection.cs: indexed column is case insensitive
29220         * DataGridTableStyle.cs: fixes
29221         * ThemeWin32Classic.cs: add new theme parameter
29222         * Theme.cs: add new theme parameter
29223         * DataGridDrawingLogic.cs: Datagrid's drawing logic
29224         * DataGrid.cs: fixes, new internal properties, etc.
29225         * DataGridColumnStyle.cs: allows to set grid value
29226         *
29227
29228 2005-05-10  Peter Bartok  <pbartok@novell.com>
29229
29230         * AccessibleObject.cs:
29231           - Removed MonoTODO attribute on help, method is correct
29232           - Fixed Bounds property
29233         * AxHost.cs: Moved MonoTODO
29234         * ButtonBase.cs: Now setting AccessibleObject properties
29235         * RadioButton.cs: Setting proper AccessibleObject role
29236         * CheckBox.cs: Setting proper AccessibleObject role
29237         * ControlBindingsCollection.cs: Added properties, methods and attributes
29238         * DataFormats.cs: Fixed awkward internal API, and changed to enable
29239           userdefined DataFormats.Format items as well
29240         * ListControl.cs: Removed data_member from the public eye
29241         * OpenFileDialog.cs:
29242           - Made class sealed
29243           - Added missing attributes
29244         * SaveFileDialog.cs: Added missing attributes
29245         * ImageListStreamer.cs: Fixed code that caused warnings
29246         * LinkLabel.cs: Removed unreachable code
29247         * TreeView.cs: Fixed code that caused warnings
29248         * PropertyGridView.cs: Fixed code that caused warnings
29249         * GridColumnStylesCollection.cs: Added missing attributes
29250         * GridTableStylesCollection: Added missing attribute
29251         * PropertyManager: Added .ctor
29252         * SecurityIDType: Added
29253         * DataObject.cs: Implemented class
29254         * LinkArea.cs: Added missing attribute
29255
29256 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
29257
29258         * RadioButton.cs: call base method to allow to fire OnClick event
29259         * UpDownBase.cs: OnMouseUp call base method
29260         * CheckedListBox.cs: call base method before returning
29261         * TrackBar.cs: call base method before returning
29262         
29263
29264 2005-05-10  Peter Bartok  <pbartok@novell.com>
29265
29266         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
29267           for messages
29268
29269 2005-05-10  Peter Bartok  <pbartok@novell.com>
29270
29271         * DataFormats.cs: Implemented
29272         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
29273           XplatUIX11.cs: Added Clipboard APIs
29274         * XplatUIWin32.cs: Implemented Clipboard APIs
29275         * FolderBrowserDialog.cs: Added missing event, attributes
29276
29277 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
29278
29279         * CheckBox.cs: call base method to allow to fire OnClick event
29280
29281 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
29282
29283         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
29284
29285 2005-05-06  Peter Bartok  <pbartok@novell.com>
29286
29287         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
29288         * Screen.cs: Implemented
29289         * HelpNavigator.cs: Added
29290         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
29291           property
29292         * HelpProvider.cs: Implemented all we can do until we have a CHM
29293           help library (which means that "What's This" does work now)
29294
29295 2005-05-06  Jackson Harper  <jackson@ximian.com>
29296
29297         * XplatUIX11.cs: Fix waking up the main loop.
29298                 
29299 2005-05-05  Peter Bartok  <pbartok@novell.com>
29300
29301         * XplatUI.cs: Updated revision
29302         * Form.cs: Removed enless loop
29303         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
29304         * Label.cs (OnPaint): Added call to base.OnPaint()
29305         * ToolTip.cs: Made ToolTipWindow reusable for other controls
29306         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
29307         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
29308         * AxHost.cs: Added
29309         * ButtonBase.cs: Moved base.OnPaint() call to end of method
29310         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
29311           to ToolTip.ToolTipWindow for drawing and size methods; this allows
29312           reuse of ToolTipWindow by other controls
29313         * SizeGrip.cs: Moved base.OnPaint() call to end of method
29314         * XplatUIX11.cs: Now clipping drawing area (experimental)
29315         * PictureBox.cs: Moved base.OnPaint() call to end of method
29316         * Theme.cs: Fixed ToolTip abstracts to match new format
29317         * ErrorProvider.cs: Implemented
29318
29319 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
29320
29321         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
29322         * LinkLabel.cs:
29323                 - Adds cursors
29324                 - Handles focus
29325                 - Implements LinkBehavior
29326                 - Fixes many issues
29327
29328 2005-05-03  Jackson Harper  <jackson@ximian.com>
29329
29330         * ListView.cs: Calculate the scrollbar positioning on resize and
29331         paint, so they get put in the correct place.
29332
29333 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
29334
29335         * ColorDialogs.cs: The small color panels are now handled by
29336           SmallColorControl. This fixes drawing of the focus rectangle
29337           and adds a 3D border.
29338
29339 2005-05-03  Peter Bartok  <pbartok@novell.com>
29340
29341         * Control.cs: Modified version of Jonathan Chamber's fix for
29342           double-buffering
29343
29344 2005-05-03  Jackson Harper  <jackson@ximian.com>
29345
29346         * ListView.cs: Remove redraw variable. Control now handles whether
29347         or not a redraw needs to be done, and will only raise the paint
29348         event if redrawing is needed.
29349
29350 2005-05-03  Jackson Harper  <jackson@ximian.com>
29351
29352         * Splitter.cs: No decorations for the splitter form. Cache the
29353         hatch brush.
29354
29355 2005-05-03  Jackson Harper  <jackson@ximian.com>
29356
29357         * TreeView.cs: Use dashed lines to connect nodes. Use the
29358         ControlPaint method for drawing the focus rect instead of doing
29359         that in treeview.
29360
29361 2005-05-02  Peter Bartok  <pbartok@novell.com>
29362
29363         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
29364
29365 2005-04-29  Jackson Harper  <jackson@ximian.com>
29366
29367         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
29368         entire image buffer. Just clear the clipping rectangle.
29369
29370 2005-04-29  Jackson Harper  <jackson@ximian.com>
29371
29372         * ThemeWin32Classic.cs: Don't draw list view items that are
29373         outside the clipping rectangle.
29374
29375 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
29376
29377         * ListBox.cs: added horizontal item scroll
29378
29379 2005-04-29  Jackson Harper  <jackson@ximian.com>
29380
29381         * ThemeWin32Classic.cs: Remove some old debug code that was
29382         causing flicker with the new double buffering code.
29383
29384 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
29385
29386         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
29387         behave like combobox and comboboxlist (still not sure if this is
29388         correct though).
29389
29390 2005-04-28  Jackson Harper  <jackson@ximian.com>
29391
29392         * ThemeWin32Classic.cs: Don't fill the middle of progress
29393         bars. This fills areas outside of the clip bounds that don't need
29394         to be filled.
29395
29396 2005-04-28  Jackson Harper  <jackson@ximian.com>
29397
29398         * Control.cs: Don't expose functionality to touch the image buffers.
29399         * ProgressBar.cs:
29400         * ListView.cs: We do not need to (and no longer can) manipulate
29401         the image buffers directly. All of this is handled by Control.
29402
29403 2005-04-28  Peter Bartok  <pbartok@novell.com>
29404
29405         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
29406           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
29407           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
29408
29409 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
29410
29411         * Combobox:
29412                 - Adjust control's height for non-simple comboboxes (bug fix)
29413                 - Remove dead code
29414         * MenuAPI.cs: remove unused var
29415         * ScrollBar.cs: remove unsed var
29416                  
29417         * ListBox.cs: unselect items when clearing
29418
29419 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
29420
29421         * ListControl.cs: honors OnPositionChanged and default Selected Item
29422         * ListBox.cs: unselect items when clearing
29423
29424 2005-04-27  Jackson Harper  <jackson@ximian.com>
29425
29426         * X11Keyboard.cs: Initialize a default keyboard and give a warning
29427         if a "correct" keyboard is not found. This will make us not crash,
29428         but might give some users bad keyboard layouts...seems to be the
29429         same thing rewind does.
29430
29431 2005-04-27  Jackson Harper  <jackson@ximian.com>
29432
29433         * BindingManagerBase.cs: Attach the current/position changed
29434         handlers to their respective events.
29435
29436 2005-04-27  Jackson Harper  <jackson@ximian.com>
29437
29438         * Control.cs: Make sure that the first WM_PAINT does a full draw,
29439         not just a blit.
29440         * ThemeWin32Classic.cs: Don't fill the background for picture
29441         boxes. This could overright user drawing.
29442         * ComboBox.cs: Just fill the clipping rect not the entire client
29443         rect when drawing the background. This prevents pieces of the
29444         image buffer from getting overwritten and is theoretically faster.
29445
29446 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
29447
29448         * ComboBox.cs: Databinding support fixes, fire missing events
29449         * ListControl.cs: implement missing methods and properties, fixes
29450         * ThemeWin32Classic.cs: Databiding support on Drawing
29451         * CheckedListBox.cs: Databinding support fixes, fire missing events
29452         * ListBox.cs: Databinding support fixes, fire missing events
29453         
29454 2005-04-25  Peter Bartok  <pbartok@novell.com>
29455
29456         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
29457
29458 2005-04-25  Jackson Harper  <jackson@ximian.com>
29459
29460         * TreeView.cs: Use the horizontal scrollbars height not width when
29461         determining how much of the client area is available.
29462
29463 2005-04-25  Jackson Harper  <jackson@ximian.com>
29464
29465         * Control.cs: Double buffering is handled differently now. As per
29466         the spec, the extra buffer is created in the WM_PAINT message and
29467         passed down to the control's drawing code.
29468         * GroupBox.cs:
29469         * Label.cs:
29470         * CheckBox.cs:
29471         * ProgressBar.cs:
29472         * RadioButton.cs:
29473         * ColorDialog.cs:
29474         * ComboBox.cs:
29475         * PropertyGridView.cs:
29476         * UpDownBase.cs:
29477         * MessageBox.cs:
29478         * MenuAPI.cs:
29479         * ListView.cs:
29480         * ButtonBase.cs:
29481         * SizeGrip.cs:
29482         * ScrollBar.cs:
29483         * ListBox.cs:
29484         * TrackBar.cs:
29485         * ToolBar.cs:
29486         * PictureBox.cs:
29487         * DateTimePicker.cs:
29488         * StatusBar.cs:
29489         * TreeView.cs: Update to new double buffering system.
29490         * MonthCalendar.cs: Uncomment block, as Capture is now
29491         working. Update to new double buffering
29492         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
29493         * PaintEventArgs.cs: New internal method allows us to set the
29494         graphics object. This is used for double buffering.
29495         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
29496         rectangle. The internal paint_area var has been removed from
29497         StatusBar. The clipping rect should be used instead.
29498         * Theme.cs: Give the PictureBox drawing method a clipping rect.
29499         * TabPage.cs: The RefreshTabs method was removed, so just call the
29500         tab controls Refresh method now.
29501         * TabControl.cs: Update to new double buffering. Make sure the
29502         handle is created before sizing the tab pages, otherwise we will
29503         get stuck in a loop.
29504
29505 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
29506
29507         * LinkLabel.cs: Fix typo, bug #74719; patch
29508           from Borja Sanchez Zamorano
29509
29510 2005-04-22  Jackson Harper  <jackson@ximian.com>
29511
29512         * TreeNode.cs: Implement Handle stuff.
29513         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
29514
29515 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
29516
29517         * DataGridTextBoxColumn.cs: call base constructors, fixes
29518         * GridColumnStylesCollection.cs: missing events, methods, and functionality
29519         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
29520         * DataGridTableStyle.cs: implements create default column styles
29521         * DataGridBoolColumn.cs: which types can handle
29522         * DataGrid.cs: missing methods, fixes, new functionality
29523         * DataGridColumnStyle.cs: fixes
29524
29525 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
29526         * FolderBrowserDialog.cs:
29527         - Use a thread to fill the TreeView
29528         - Adjusted some sizes
29529
29530 2005-04-19  Peter Bartok  <pbartok@novell.com>
29531
29532         * LinkLabel.cs: (Re-)create the pieces when setting the Text
29533           property. Fixes #74360.
29534
29535 2005-04-19  Jackson Harper  <jackson@ximian.com>
29536
29537         * XEventQueue.cs: Lock when getting the lockqueue size.
29538         * PictureBox.cs: Call base OnPaint
29539         
29540 2005-04-19  Peter Bartok  <pbartok@novell.com>
29541
29542         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
29543           messages were no longer being processed (this broke BeginInvoke)
29544
29545           
29546 2005-04-18  Jackson Harper  <jackson@ximian.com>
29547
29548         * TreeView.cs: buglet that caused node images to get drawn
29549         regardless of whether or not they were in the clipping rectangle.
29550
29551 2005-04-18  Jackson Harper  <jackson@ximian.com>
29552
29553         * CurrencyManager.cs: There are four rules for GetItemProperties:
29554         - If the type is an array use the element type of the array
29555         - If the type is a typed list, use the type
29556         - If the list contains an Item property that is not an object, use
29557         that property
29558         - use the first element of the list if there are any elements in
29559         the list.
29560         
29561 2005-04-17  Jackson Harper  <jackson@ximian.oom>
29562
29563         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
29564         click. This handles offsets for scrolling properly and reduces
29565         memory. Also fixed GetNode to not offset now that TopNode works
29566         properly.
29567         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
29568         
29569 2005-04-17  Jackson Harper  <jackson@ximian.com>
29570
29571         * CursorConverter.cs: Initial implementation.
29572
29573 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
29574
29575         * ListControl.cs: work towards complex data binding support on ListControl
29576         * CurrencyManager.cs: work towards complex data binding support on ListControl
29577         * ListBox.cs: work towards complex data binding support on ListControl
29578
29579
29580 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
29581
29582         * GridTableStylesCollection.cs: fixes name and constructor
29583         * DataGridTableStyle.cs: fixes
29584         * DataGridBoolColumn.cs: fixes names and constructors
29585         * DataGrid.cs: define methods and properties. Some init implementations
29586         * DataGridCell.cs: define methods and properties. Some init implementations
29587         * GridTablesFactory.cs: Define methods and properties
29588
29589 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
29590
29591         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
29592         graphics port changes.  We still want the coordinates in global screen
29593         coordinates.
29594
29595 2005-04-14  Jackson Harper  <jackson@ximian.com>
29596
29597         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
29598         check plus minus or checkbox clicks unless those features are enabled.
29599
29600 2005-04-14  Jackson Harper  <jackson@ximian.com>
29601
29602         * TreeView.cs: Add methods for setting the top and bottom visible
29603         nodes. TreeNode::EnsureVisible uses these methods.
29604         * TreeNode.cs: Implement EnsureVisible
29605
29606 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
29607
29608         * Form.cs: Pospone menu assignation if the window has not been created yet
29609         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
29610         size and position
29611
29612 2005-04-12  Jackson Harper  <jackson@ximian.com>
29613
29614         * TreeView.cs: Set the TopNode properly when scrolling
29615         occurs. This has the added benifit of reducing the amount of
29616         walking that needs to be done when drawing. Also removed an old
29617         misleading TODO.
29618         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
29619         
29620 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
29621
29622         * Timer.cs: fixes interval setting when the timer is already enabled
29623         
29624 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
29625
29626         * FolderBrowserDialog.cs: First approach
29627
29628 2005-04-09  Peter Bartok  <pbartok@novell.com>
29629
29630         * FolderBrowserDialog: Added
29631
29632 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
29633
29634         * LinkLabel.cs: move drawing code into the theme
29635         * ThemeWin32Classic.cs: drawing code and painting background bugfix
29636         * Theme.cs: define DrawLinkLabel method
29637
29638 2005-04-05  Jackson Harper  <jackson@ximian.com>
29639
29640         * BindingContext.cs: Use weak references so these bad actors don't
29641         stay alive longer then they need to.
29642
29643 2005-04-05  Jackson Harper  <jackson@ximian.com>
29644
29645         * ListControl.cs: Basic implementation of complex databinding.
29646         * ComboBox.cs:
29647         * ListBox.cs: Add calls to ListControl databinding methods.
29648
29649 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
29650
29651         * FileDialog.cs:
29652           - Don't change PopupButtonState to Normal when the
29653             PopupButton gets pressed several times.
29654           - Renamed ButtonPanel to PopupButtonPanel
29655
29656 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
29657
29658         * ColorDialog.cs: Use cached objects instead of creating them
29659         * LinkLabel.cs: Use cached objects instead of creating them
29660         * Splitter.cs: Use cached objects instead of creating them
29661         * FontDialog.cs: Use cached objects instead of creating them
29662         * PropertyGridView.cs: Use cached objects instead of creating them
29663         * MessageBox.cs: Use cached objects instead of creating them
29664         * FileDialog.cs: Use cached objects instead of creating them
29665         * ThemeWin32Classic.cs: Use cached objects instead of creating them
29666         * TreeView.cs: Use cached objects instead of creating them
29667         
29668 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
29669
29670         * Control.cs: use Equals to compare the font since no == op
29671         * ScrollBar.cs: use Equals to compare the font since no == op
29672
29673 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
29674
29675         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
29676
29677 2005-04-01  Jackson Harper  <jackson@ximian.com>
29678
29679         * Binding.cs: Implement IsBinding.
29680         * BindingManagerBase.cs:
29681         * PropertyManager.cs:
29682         * CurrencyManager.cs: Add IsSuspended property.
29683
29684 2005-04-01  Jackson Harper  <jackson@ximian.com>
29685
29686         * Binding.cs: Had some IsAssignableFrom calls backwards.
29687
29688 2005-04-01  Jackson Harper  <jackson@ximian.com>
29689
29690         * Binding.cs: Handle null data members when pulling data.
29691         * PropertyManager.cs: Handle the data member being a property that
29692         does not exist.
29693
29694 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
29695
29696         * DataGridTextBoxColumn.cs: fixes signature
29697         * DataGrid.cs: calls right constructor
29698
29699 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
29700
29701         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
29702         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
29703         * GridTableStylesCollection.cs: implements GridTableStylesCollection
29704         * DataGridTableStyle.cs: implements DataGridTableStyle
29705         * DataGridBoolColumn.cs: implements DataGridBoolColumn
29706         * DataGridTextBox.cs: implements DataGridTextBox
29707         * DataGridColumnStyle.cs: implements DataGridColumnStyle
29708
29709 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
29710
29711         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
29712
29713 2005-03-29  Peter Bartok  <pbartok@novell.com>
29714
29715         * Application.cs:
29716           - Properly implemented CompanyName property
29717           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
29718             returns a path that includes CompanyName, ProductName and
29719             Version (fixes bug #70330)
29720
29721 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
29722
29723         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
29724           fixes bug #72588.
29725
29726 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
29727
29728         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
29729         
29730           - Added ReadOnly CheckBox
29731           - Further refactoring: moved some code from Open-/SaveFileDialog
29732             to FileDialog
29733
29734 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
29735
29736         * OpenFileDialog.cs: Fixed CheckFileExists
29737         * FileDialog.cs:
29738           Moved FileView and DirComboBox outside FileDialog class.
29739           They can now be used outside FileDialog
29740
29741 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
29742
29743         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
29744         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
29745
29746 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
29747
29748         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
29749           - Added missing CreatePrompt property in SaveDialog
29750           - Overall SaveDialog handling should be better now
29751           - Added non standard ShowHiddenFiles property
29752           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
29753           - Added InitialDirectory and RestoreDirectory support
29754
29755 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
29756
29757         * FileDialog.cs: Made dirComboBox usable
29758
29759 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
29760
29761         * FileDialog.cs: Added Filter support (case sensitiv)
29762
29763 2005-03-24  Jackson Harper  <jackson@ximian.com>
29764
29765         * TabControl.cs: Need a couple more pixels for the lines.
29766
29767 2005-03-23  Jackson Harper  <jackson@ximian.com>
29768
29769         * TabControl.cs: Give the tab page focus when it is selected.
29770
29771 2005-03-23  Jackson Harper  <jackson@ximian.com>
29772
29773         * TabControl.cs: Account for the drawing of tabs borders when
29774         invalidating. If the slider was clicked dont do click detection on
29775         the tabs.
29776
29777 2005-03-23  Jackson Harper  <jackson@ximian.com>
29778
29779         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
29780
29781 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
29782
29783         * CategoryGridEntry.cs: Added
29784         * GridItem.cs: Added helper properties
29785         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
29786         * GridEntry.cs: Updated code for collection
29787         * PropertyGrid.cs: Cleaned up some formatting
29788         * PropertyGridView.cs: Added drop down functionality for enums.
29789         * GridItemCollection.cs: Added enumerator logic
29790         * PropertyGridEntry.cs: Added
29791
29792 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
29793
29794         * FileDialog.cs:
29795           - Removed unnecessary commented code
29796           - Fixed handling for entering the filename manually in the combobox
29797
29798 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
29799
29800         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
29801
29802 2005-03-18  Peter Bartok  <pbartok@novell.com>
29803
29804         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
29805           them being touching the border
29806
29807 2005-03-18  Peter Bartok  <pbartok@novell.com>
29808
29809         * TextControl.cs: Quick hack to center text better
29810
29811 2005-03-18  Peter Bartok  <pbartok@novell.com>
29812
29813         * ControlPaint.cs:
29814           - Don't throw NotImplemented exceptions, just print a notice once
29815             instead (requested by Miguel). This makes running existing SWF
29816             apps a bit easier
29817         * Control.cs:
29818           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
29819           - Added context menu trigger on right click
29820         * Panel.cs: Trigger invalidate on resize
29821         * StatusBar.cs:
29822           - Removed old double-buffer drawing
29823           - Added ResizeRedraw style to force proper update of statusbar
29824         * ListView.cs:
29825           - Removed debug output
29826         * ThemeWin32Classic.cs:
29827           - Fixed drawing of status bar, now draws Text property if there
29828             are no defined panels
29829
29830 2005-03-18  Jackson Harper  <jackson@ximian.com>
29831
29832         * ImageList.cs: When the image stream is set pull all the images
29833         from it.
29834         * ImageListStreamer.cs: Implement reading image list streams.
29835
29836 2005-03-18  Peter Bartok  <pbartok@novell.com>
29837
29838         * ThemeWin32Classic.cs (DrawPictureBox):
29839           - Fixed calculations for centered drawing
29840           - Fixed drawing for normal mode, not scaling the image on normal
29841
29842 2005-03-18  Peter Bartok  <pbartok@novell.com>
29843
29844         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
29845           textbox
29846         * FileDialog.cs:
29847           - Made Open/Save button the accept button for FileDialog
29848           - Tied the cancel button to the IButtonControl cancel button
29849           - Save/Open now properly builds the pathname
29850           - Now handles user-entered text
29851           - Preventing crash on right-click if no item is selected
29852           - Fixed Text property, now uses contents of textbox
29853           - Fixed SelectedText property, now just returns the text part that
29854             is selected in the text box
29855
29856 2005-03-18  Jackson Harper  <jackson@ximian.com>
29857
29858         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
29859         rect, make sure to de-adjust the interior rect after drawing the
29860         tab text.
29861
29862 2005-03-18  Peter Bartok  <pbartok@novell.com>
29863
29864         * MenuAPI.cs: Remove menu *before* executing selected action to
29865           prevent the menu from 'hanging around'
29866           
29867 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
29868
29869         * XplatUIOSX.cs: Implemented WorkingArea property
29870
29871 2005-03-17  Peter Bartok  <pbartok@novell.com>
29872
29873         * XplatUIX11.cs: Fixed menu coord calculations
29874         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
29875           for calculating offsets
29876
29877 2005-03-17  Peter Bartok  <pbartok@novell.com>
29878
29879         * Hwnd.cs: Do not consider menu presence for default client
29880           rectangle location/size
29881         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
29882           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
29883           translation functions
29884         * FileDialog.cs: Fixed (what I presume is a) typo
29885
29886 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
29887
29888         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
29889           X access (avoids X-Async errors)
29890
29891 2005-03-16  Jackson Harper  <jackson@ximian.com>
29892
29893         * TabControl.cs: Raise the SelectedIndexChanged event.
29894
29895 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
29896
29897         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
29898           - Removed vertical ToolBar and replaced it with a custom panel
29899             (desktop and home button already work)
29900           - Added Help button (some controls get resized or relocated then)
29901           - Draw correct text depending on Open or Save.
29902           - Fixed some typos...
29903
29904 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
29905
29906         * ScrollBar.cs:
29907           - Only change Maximum and Minimum when need it (bug fix)
29908
29909 2005-03-15  Peter Bartok  <pbartok@novell.com>
29910
29911         * Form.cs: Use Handle for icon, to trigger creation if
29912           the window does not yet exist
29913         * Control.cs:
29914           - CanSelect: Slight performance improvement
29915           - Focus(): Preventing possible recursion
29916           - Invalidate(): Removed ControlStyle based clear flag setting
29917           - WM_PAINT: fixed logic for calling OnPaintBackground
29918           - WM_ERASEBKGND: Fixed logic, added call to new driver method
29919             EraseWindowBackground if the control doesn't paint background
29920         * XplatUIWin32.cs:
29921           - Moved EraseWindowBackground() method to internal methods
29922           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
29923             is sent via SendMessage on BeginPaint call on Win32
29924         * XplatUIX11.cs:
29925           - Added EraseWindowBackground() method
29926           - No longer sends WM_ERASEBKGND on .Expose, but on call to
29927             PaintEventStart, which more closely matches Win32 behaviour
29928           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
29929           - Fixed SetFocus() to properly deal with client and whole windows
29930         * Hwnd.cs: Added ErasePending property
29931         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
29932         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
29933
29934 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
29935
29936         * XplatUIOSX.cs:
29937           - Fix hard loop when timers exist.
29938           - Fix bugs with middle and right click for 3 button mice.
29939
29940 2005-03-11  Peter Bartok  <pbartok@novell.com>
29941
29942         * XplatUIX11.cs:
29943           - get_WorkingArea: Need to call X directly, GetWindowPos only
29944             returns cached data now
29945           - Added sanity check to GetWindowPos hwnd usage
29946
29947 2005-03-11  Jackson Harper  <jackson@ximian.com>
29948
29949         * BindingManagerBase.cs: This method isn't used anymore as
29950         PullData now updates the data in the control.
29951
29952 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
29953
29954         * Form.cs: fixes menu drawing on X11
29955         * MenuAPI.cs:  fixes menu drawing on X11
29956
29957 2005-03-11  Peter Bartok  <pbartok@novell.com>
29958
29959         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
29960           from Jonathan Gilbert; should fix bug #73606
29961         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
29962           in Screen coordinates. Thanks, Jordi.
29963         * Form.cs: Added missing attribute
29964
29965 2005-03-11  Peter Bartok  <pbartok@novell.com>
29966
29967         * Form.cs:
29968           - Rudimentary Mdi support
29969           - Removed outdated FormParent code
29970           - Implemented lots of missing properties and methods, still missing
29971             transparency support
29972           - Added missing attributes
29973           - Implemented support for MaximumBounds
29974           - Added firing of various events
29975         * XplatUI.cs: Added SetIcon() method
29976         * XplatUIDriver.cs: Added SetIcon() abstract
29977         * XplatUIOSX.cs: Stubbed out SetIcon() method
29978         * XplatUIX11.cs:
29979           - Implemented SetIcon() support
29980           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
29981           - Switched to unix line endings
29982         * XplatUIWin32.cs:
29983           - Made POINT internal so for can access it as part of MINMAX
29984           - Implemented SetIcon() support
29985           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
29986             native Mdi support again, might have to go managed)
29987         * Control.cs: Now fires the StyleChanged event
29988         * MdiClient.cs: Added; still mostly empty
29989
29990 2005-03-10  Peter Bartok  <pbartok@novell.com>
29991
29992         * SaveFileDialog.cs: Added emtpy file
29993
29994 2005-03-08  Peter Bartok  <pbartok@novell.com>
29995
29996         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
29997           in turn triggers OnCreateContro) when creating a handle for the
29998           first time.
29999         * TextControl.cs: Fixed endless loop in certain cases when
30000           replacing the current selection
30001
30002 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
30003
30004         * ScrollBar.cs:
30005           - Honors NewValue changes in Scroll events allowing apps to change it
30006           - Adds First and Last Scroll events
30007           - Fixes Thumb events
30008
30009 2005-03-07  Peter Bartok  <pbartok@novell.com>
30010
30011         * Hwnd.cs: Added DefaultClientRectangle property
30012         * XplatUI.cs: Now using the X11 driver Where() method, which provides
30013           more detailed debug information
30014         * XplatUIX11.cs:
30015           - Fixed size-change feedback loop, where we would pull an old size
30016             off the queue and mistakenly change our window's size to an
30017             earlier value
30018           - Now compressing ConfigureNotify events, to reduce looping and
30019             redraw issues
30020         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
30021           is called
30022
30023 2005-03-07  Jackson Harper  <jackson@ximian.com>
30024
30025         * Binding.cs: Push data pushes from data -> property. Check if the
30026         property is readonly when attempting to set it.
30027
30028 2005-03-07  Jackson Harper  <jackson@ximian.com>
30029
30030         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
30031         instead of IsSubclassOf. Pulling data now sets the value on the
30032         control.
30033         * PropertyManager.cs:
30034         * CurrencyManager.cs: Just need to pull data when updating now,
30035         because PullData will set the value on the control.
30036
30037 2005-03-04  Jackson Harper  <jackson@ximian.com>
30038
30039         * Binding.cs: Implement data type parsing and converting on pulled
30040         data. TODO: Are there more ways the data can be converted?
30041
30042 2005-03-04  Jackson Harper  <jackson@ximian.com>
30043
30044         * Binding.cs: Support <Property>IsNull checks. Also bind to the
30045         controls Validating method so we can repull the data when the
30046         control loses focus.
30047
30048 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
30049
30050         * ColumnHeader.cs:
30051           - Fixes null string format
30052           
30053         * ListView.cs:
30054           - Adds enum type checks
30055           - Fixes redrawing and recalc need after changing some properties
30056           - Fixes on focus_item set after the event
30057           - Fixes adding columns after the control has been created
30058           
30059         * ThemeWin32Classic.cs:
30060           - Fixes CheckBox focus rectangle
30061           - Fixes ColumnHeader drawing
30062
30063
30064 2005-03-03  Jackson Harper  <jackson@ximian.com>
30065
30066         * Binding.cs: Bind to <Property>Changed events so we can detect
30067         when properties are changed and update the data.
30068
30069 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
30070
30071         * ImageList.cs:
30072           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
30073           - Fixes ImageList constructor with ImageList container
30074           - Fixes image scaling (wrong parameters at DrawImage)
30075
30076 2005-02-02  Jackson Harper  <jackson@ximian.com>
30077
30078         * Binding.cs: Make property searches case-insensitive. Eliminate
30079         some duplicated code.
30080
30081 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
30082
30083         * ComboBox.cs:
30084                 - Handle focus event
30085                 - Fix scrollbar events
30086                 - Discard highlighted item if remove it
30087                 - Fixes SelectedItem with strings
30088
30089 2005-03-01  Peter Bartok  <pbartok@novell.com>
30090
30091         * Control.cs:
30092           - Fixed Visible property, now follows (once again) parent chain
30093             to return false if any control in the chain is visible=false
30094           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
30095           - Fixed several places where is_visible instead of Visible was used
30096           - Implemented FIXME related to focus selection when setting focused
30097             control to be invisible
30098
30099         * XplatUIWin32.cs: Now using proper method to find out if window is
30100           visible. Thanks to Jordi for pointing it out
30101
30102 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
30103
30104         * ComboBox.cs: show/hide scrollbar instead of creating it
30105
30106 2005-02-27  Jackson Harper  <jackson@ximian.com>
30107
30108         * CurrencyManager.cs: Add PositionChanged stuff.
30109
30110 2005-02-27  Peter Bartok  <pbartok@novell.com>
30111
30112         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
30113         * XplatUIOSX.cs: Added GetMenuOrigin() stub
30114         * XplatUIWin32.cs: Implemented GetMenuOrigin()
30115         * XplatUIX11.cs:
30116           - Implemented GetMenuDC()
30117           - Implemented GetMenuOrigin()
30118           - Implemented ReleaseMenuDC()
30119           - Implemented generation of WM_NCPAINT message
30120           - Implemented generation and handling of WM_NCCALCSIZE message
30121         * Form.cs: Added debug helper message for Jordi's menu work
30122         * Hwnd.cs:
30123           - Modified ClientRect property; added setter, fixed getter to handle
30124             setting of ClientRect
30125           - Added MenuOrigin property
30126
30127 2005-02-26  Peter Bartok  <pbartok@novell.com>
30128
30129         * XplatUIX11.cs:
30130           - Destroys the caret if a window that's being destroyed contains it
30131           - Ignores expose events coming from the X11 queue for windows that
30132             already are destroyed
30133           - Now uses the proper variable for handling DestroyNotify, before we
30134             marked the wrong window as destroyed
30135           - Improved/added some debug output
30136
30137 2005-02-26  Peter Bartok  <pbartok@novell.com>
30138
30139         * X11Keyboard.cs: Fixes to work on 64bit systems
30140
30141 2005-02-26  Peter Bartok  <pbartok@novell.com>
30142
30143         * Control.cs:
30144           - Now calling OnHandleDestroyed from DestroyHandle()
30145             instead of Dispose()
30146           - Removed bogus call to controls.Remove() from DestroyHandle()
30147
30148 2005-02-26  Peter Bartok  <pbartok@novell.com>
30149
30150         * Control.cs: Properly destroy child windows when our handle is
30151           destroyed
30152
30153 2005-02-25  Peter Bartok  <pbartok@novell.com>
30154
30155         * XplatUI.cs:
30156           - Added 'DriverDebug' define to allow tracing XplatUI API calls
30157           - Alphabetized Static Methods and Subclasses
30158
30159         * XplatUIX11.cs:
30160           - Added XException class to allow custom handling of X11 exceptions
30161           - Created custom X11 error handler, tied into XException class
30162           - Added support for MONO_XEXCEPTIONS env var to allow the user
30163             to either throw an exception on X errors or continue running
30164             after displaying the error
30165           - Added handling of DestroyNotify message
30166           - Added handler for CreateNotify message (still disabled)
30167           - Improved (tried to at least) Where method to provide file and lineno
30168         * X11Structs.cs:
30169           - Added XErrorHandler delegate
30170           - Added XRequest enumeration (to suppor translation of errors)
30171
30172 2005-02-25  Jackson Harper  <jackson@ximian.com>
30173
30174         * PropertyManager.cs: Implement editing features
30175         * CurrencyManager.cs:
30176         * Binding.cs: First attempt at UpdateIsBinding
30177         * BindingManagerBase.cs: Call UpdateIsBinding before
30178         pushing/pulling data.
30179
30180 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
30181
30182         * MenuAPI.cs: Respect disabled items
30183         * ThemeWin32Classic.cs
30184                 - Caches ImageAttributes creation for DrawImageDisabled
30185                 - Fixes vertical menu line drawing
30186                 - Draws disabled arrows in disable menu items
30187
30188 2005-02-24  Peter Bartok  <pbartok@novell.com>
30189
30190         * Hwnd.cs:
30191           - Added UserData property to allow associating arbitrary objects
30192             with the handle
30193           - Fixed leak; now removing Hwnd references from static windows array
30194         * XplatUIWin32.cs:
30195           - Fixed Graphics leak in PaintEventEnd
30196           - Removed usage of HandleData, switched over to Hwnd class
30197         * HandleData.cs: Removed, obsoleted by Hwnd.cs
30198
30199 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
30200
30201         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
30202         * ScrollBar.cs: Fixes bug
30203         * TrackBar.cs: removes death code, clipping, mimize refreshes,
30204          keyboard navigation enhancements
30205
30206 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
30207
30208         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
30209         * GroupBox.cs: Add control styles
30210         * Label.cs: Add control styles
30211         * UpDownBase.cs: Add control styles
30212         * ListBox.cs: Add control styles
30213         * XplatUIWin32.cs: Fixes wrong parameter order
30214
30215
30216 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
30217
30218         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
30219
30220 2005-02-23  Jackson Harper  <jackson@ximian.com>
30221
30222         * PropertyManager.cs: Implement property binding. This doesn't
30223         seem to work yet though as (I think) there are some bugs in
30224         System.ComponentModel.PropertyDescriptor.
30225         * BindingContext.cs: Use new PropertyManager constructor.
30226
30227 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
30228
30229         * ProgressBar.cs: use clip region in ProgressBar
30230         * ThemeWin32Classic.cs: use clip region in ProgressBar
30231
30232 2004-02-22  Jackson Harper  <jackson@ximian.com>
30233
30234         * BindingsCollection.cs: Remove some debug code.
30235
30236 2005-02-22  Jackson Harper  <jackson@ximian.com>
30237
30238         * BindingContext.cs:
30239         * ControlBindingsCollection.cs:
30240         * CurrencyManager.cs:
30241         * Binding.cs:
30242         * BindingManagerBase.cs: Initial implementation
30243         * BindingsCollection.cs: Add an internal contains method that the
30244         BindingManagerBase uses to ensure bindings aren't added twice to
30245         the collection.
30246         * PropertyManager.cs: Stubbed out.
30247         * Control.cs:
30248         * ContainerControl.cs: Hook up databinding
30249         
30250 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
30251
30252         * XplatUIOSX.cs:
30253           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
30254           Fixed Invalidate/Update chain.
30255           Fixed tons of other minor bugs (this is almost a complete rewrite).
30256
30257 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
30258
30259         * ComboBox.cs: do subcontrol creation when the control is created
30260
30261 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
30262
30263         * Label.cs: fixes image drawing (image and imagelist)
30264         * ThemeWin32Classic.cs: cache brushes
30265         
30266 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
30267
30268         * Form.cs: Move menu drawing code to Theme class
30269         * ComboBox.cs: Move ComboBox drawing code to Theme class
30270         * MenuItem.cs: Move menu drawing code to Theme class
30271         * MenuAPI.cs: Move menu drawing code to Theme class
30272         * ThemeWin32Classic.cs: New methods
30273         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
30274         * ListBox.cs: Move Listbox drawing code to Theme class
30275         * Theme.cs: New methods
30276
30277 2005-02-20  Peter Bartok  <pbartok@novell.com>
30278
30279         * Control.cs:
30280           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
30281             only process mnemonics on those)
30282           - Fixed event sequence for key handling; first calling
30283             ProcessKeyEventArgs now
30284         * TextBoxBase.cs:
30285           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
30286             for processing non-character keys
30287           - Fixed WM_CHAR to generate proper event sequence before processing
30288         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
30289           generation
30290
30291 2005-02-19  Peter Bartok  <pbartok@novell.com>
30292
30293         * UserControl.cs: Added TextChanged event; added attributes
30294         * SizeGrip.cs: Implemented resizing and optional display of grip
30295         * Form.cs: Fixed attribute
30296         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
30297           Changed meaning of ScrollWindow bool argument; instead of the
30298           clear attribute (which will be true usually anyway), it gives the
30299           option of moving child controls as well.
30300         * XplatUIX11.cs:
30301           - Changed to match new ScrollWindow argument
30302           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
30303             now handles the implicit parent window a WM puts around us
30304         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
30305           to work)
30306         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
30307         * TreeView.cs: Adjusted to new ScrollWindow arguments
30308
30309 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
30310
30311         * Form.cs: Menu integration with non-client area
30312         * MenuItem.cs: Menu integration with non-client area
30313         * MenuAPI.cs: Menu integration with non-client area
30314
30315 2005-02-18  Peter Bartok  <pbartok@novell.com>
30316
30317         * MethodInvoker.cs: Added
30318         * MdiLayout.cs: Added
30319         * SendKeys.cs: Started implementation
30320         * ErrorIconAlignment.cs: Added
30321
30322 2005-02-18  Peter Bartok  <pbartok@novell.com>
30323
30324         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
30325         * Form.cs: Added handling for Menu-related Non-client messages
30326
30327 2005-02-17  Peter Bartok  <pbartok@novell.com>
30328
30329         * UpDownBase.cs: Fixed typo, compilation errors
30330         * DomainUpDown.cs: Fixed attribute value
30331
30332 2005-02-16  Miguel de Icaza  <miguel@novell.com>
30333
30334         * UpDownBase.cs: Attach entry events.
30335         Propagate events.
30336         Add ForeColor property, Focused, InterceptArrowKeys (interception
30337         does not work yet).
30338
30339 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
30340
30341         * Form.cs:
30342                 - Redraw non client are on Setmenu
30343                 - Calc proper menu starting point
30344
30345 2005-02-17  Peter Bartok  <pbartok@novell.com>
30346
30347         * Application.cs: Fixed message_filter check
30348
30349 2005-02-17  Peter Bartok  <pbartok@novell.com>
30350
30351         * Application.cs: Now calls registered message filters
30352         * DockStyle.cs: Fixed attribute
30353         * Form.cs: Fixed attribute
30354         * Menu.cs: Fixed attribute
30355         * ToolTip.cs: Fixed attribute
30356         * TreeNode.cs: Added missing attributes and arranged in regions
30357         * PropertyGrid.cs: Fixed signatures
30358         * TreeNodeCollection.cs: Added attributes
30359         * Splitter.cs: Added missing attributes; arranged into regions
30360         * TabPage.cs: Added missing attributes; arranged into regions
30361         * TextBoxBase.cs: Added missing attributes
30362         * TextBox.cs: Added missing attributes
30363         * ArrangeDirection.cs: Added missing attributes
30364         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
30365         * ToolBarButton.cs: Fixed attributes
30366         * AnchorStyles.cs: Fixed attribute
30367         * TrackBar.cs: Fixed attributes
30368         * TabControl.cs: Added missing attributes and arranged into regions
30369         * ToolBar.cs: Fixed attribute
30370         * StatusBar.cs: Fixed signature, organized into regions and added
30371           attributes
30372         * StatusBarPanel.cs: Fixed attributes
30373         * ContentsResizedEventArgs.cs: Implemented
30374         * ContentsResizedEventHandler.cs: Implemented
30375         * DateBoldEventArgs.cs: Implemented
30376         * DateBoldEventHandler.cs: Implemented
30377         * UpDownEventArgs.cs: Implemented
30378         * UpDownEventHandler.cs: Implemented
30379         
30380 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
30381
30382         * Form.cs: first Menu NC refactoring
30383         * MenuAPI.cs: first Menu NC refactoring
30384         
30385 2005-02-16  Peter Bartok  <pbartok@novell.com>
30386
30387         * ImeMode.cs: Added missing attributes
30388         * Menu.cs: Fixed attribute
30389         * GroupBox.cs: Fixed attribute
30390         * Label.cs: Fixed attribute
30391         * ColorDialog.cs (RunDialog): Removed TODO attribute
30392         * ComboBox.cs: Fixed attributes
30393         * ListControl.cs: Added missing attributes
30394         * PropertyGrid.cs: Fixed attributes
30395         * Control.cs: Fixed attributes
30396         * ListViewItem.cs: Added TypeConverter attribute
30397         * NotifyIcon.cs: Fixed attributes
30398         * ListView.cs: Fixed attributes
30399         * ButtonBase.cs: Fixed attribute
30400         * ImageList.cs: Added missing attributes
30401         * ContainerControl.cs: Fixed signature
30402         * CheckedListBox.cs: Fixed attribute; added missing attributes
30403         * Panel.cs: Fixed attributes
30404         * PropertyTabChangedEventArgs.cs: Added missing attribute
30405         * PropertyValueChangedEventArgs.cs: Added missing attribute
30406         * Binding.cs: Fixed attribute
30407         * ListViewItemConverter: Implemented ListViewSubItemConverter class
30408         * ListBox.cs: Fixed attribute; added missing attributes;
30409         * ScrollableControl.cs: Added missing attributes
30410         * PictureBox.cs: Added missing attributes; implemented missing property
30411         * DateTimePicker.cs: Added missing attributes
30412         * Theme.cs (ToolWindowCaptionHeight): Fixed type
30413         * MonthCalendar.cs: Fixed attributes
30414         * StatusBarPanel.cs: Added missing attributes
30415         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
30416
30417 2005-02-16  Peter Bartok  <pbartok@novell.com>
30418
30419         * TextBoxBase.cs: The previous method to enforce height yet remember
30420           the requested high was less than ideal, this is an attempt to do
30421           it better.
30422         * Control.cs: Added comment about possible problem
30423         * Copyright: Updated format
30424         * GridItemType.cs: Fixed swapped values
30425
30426 2005-02-15  Jackson Harper  <jackson@ximian.com>
30427
30428         * BaseCollection.cs: Use property so we never access an
30429         uninitialized list. Also initialize the list in the property.
30430
30431 2005-02-15  Peter Bartok  <pbartok@novell.com>
30432
30433         * GroupBox.cs (ProcessMnemonic): Implemented
30434         * Label.cs (ProcessMnemonic): Implemented
30435         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
30436           hotkeys
30437
30438 2005-02-15  Peter Bartok  <pbartok@novell.com>
30439
30440         * RadioButton.cs (ProcessMnemonic): Implemented
30441         * CheckBox.cs (ProcessMnemonic): Implemented
30442         * Control.cs:
30443           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
30444             handling
30445           - Added internal method to allow calling ProcessMnemonic from other
30446             controls
30447         * ContainerControl.cs:
30448           - Started support for handling validation chain handling
30449           - Implemented ProcessMnemonic support
30450           - Added Select() call to Active, to make sure the active control
30451             receives focus
30452         * Form.cs: Setting toplevel flag for Forms (this was lost in the
30453           FormParent rewrite)
30454         * ThemeWin32Classic.cs:
30455           - DrawCheckBox(): Fixed stringformat to show hotkeys
30456           - DrawRadioButton(): Fixed stringformat to show hotkeys
30457         * CommonDialog.cs: Removed WndProc override, not needed
30458
30459 2005-02-14  Peter Bartok  <pbartok@novell.com>
30460
30461         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
30462           missed those in the rewrite
30463
30464 2005-02-14  Miguel de Icaza  <miguel@novell.com>
30465
30466         * NumericUpDown.cs (Increment, ToString): Add.
30467         (DecimalPlaces): implement.
30468         
30469         Add attributes.
30470         
30471         * UpDownBase.cs: Add the designer attributes.
30472
30473 2005-02-13  Peter Bartok  <pbartok@novell.com>
30474
30475         * Panel.cs: Removed border_style, now in Control
30476         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
30477           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
30478
30479 2005-02-13  Peter Bartok  <pbartok@novell.com>
30480
30481         * MouseButtons.cs: Added missing attributes
30482         * XplatUIStructs.cs: Added enumeration for title styles
30483         * LeftRightAlignment.cs: Added missing attributes
30484         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
30485           it compatible with Graphics.FromHwnd()
30486         * SelectedGridItemChangedEventArgs.cs: Fixed property type
30487         * Keys.cs: Added missing attributes
30488         * SelectionRange.cs: Added missing attributes
30489         * SelectionRangeConverter.cs: Added
30490         * XplatUI.cs:
30491           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
30492             ReleaseMenuDC methods
30493           - Renamed ReleaseWindow to UngrabWindow
30494           - Added proper startup notice to allow version identification
30495         * Form.cs:
30496           - Added missing attributes
30497           - Removed FormParent concept
30498         * Label.cs: Removed border_style field, now in Control
30499         * RadioButton.cs: Now properly selects RadioButton when focus is
30500           received
30501         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
30502         * Control.cs:
30503           - Added missing attributes
30504           - Added borderstyle handling
30505           - Removed FormParent concept support
30506           - Fixed calls to XplatUI to match changed APIs
30507           - Fixed bug that would case us to use disposed Graphics objects
30508           - Removed unneeded internal methods
30509           - PerformLayout(): Fixed to handle DockStyle.Fill properly
30510           - SelectNextControl(): Fixed to properly check common parents
30511         * TextBoxBase.cs: Removed border_style field (now in Control)
30512         * MessageBox.cs:
30513           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
30514             fixed calculations for form size
30515           - Added support for localized strings and icons
30516           - Improved form size calculations, added border
30517         * ListView.cs: Removed border_style field (now in Control)
30518         * X11Structs.cs: Moved several structs from X11 driver here
30519         * X11Keyboard.cs: Changed debug message
30520         * Application.cs: Removed FormParent concept support
30521         * CommonDialog.cs:
30522           - Resetting end_modal flag
30523           - Removed FormParent concept support
30524         * NativeWindow.cs: Removed FormParent concept support
30525         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
30526           Client area and Non-Client whole window to allow support for WM_NC
30527           messages
30528         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
30529           prevent using it until it supports Hwnd as per Geoff Norton's request
30530         * ToolBar.cs: Fixed drawing, was not doing proper drawing
30531         * PictureBox.cs: Removed border_style field, now in Control
30532         * XplatUIWin32.cs: Added new driver methods
30533
30534 2005-02-12  Peter Bartok  <pbartok@novell.com>
30535
30536         * OpacityConverter.cs: Implemented
30537         * Hwnd.cs: Internal class to support drivers that need to emulate
30538           client area/non-client area window behaviour
30539
30540 2005-02-11  Peter Bartok  <pbartok@novell.com>
30541
30542         * KeysConverter.cs: Implemented
30543
30544 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
30545
30546         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
30547         * LinkLabel: Added missing attributes
30548         * MainMenu.cs: fixes ToString
30549         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
30550         * ListBox.cs: fixes event position
30551         * TrackBar.cs: adds missing attributes and events
30552         
30553 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
30554
30555         * MenuItem.cs: Use SystemInformation and bug fixes
30556         * MenuAPI.cs: Use SystemInformation and bug fixes
30557
30558 2005-02-09  Jackson Harper  <jackson@ximian.com>
30559
30560         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
30561         their keystate otherwise things like VK_MENU get stuck "on".
30562
30563 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
30564
30565         * ListBox.cs: Fixes AddRange bug
30566         
30567 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
30568
30569         * ProgressBar.cs
30570                 - Add missing attributes
30571                 - Add missing method
30572                 
30573         * CheckedListBox.cs: Added missing attributes
30574                 - Add missing attributes
30575                 - Remove extra method
30576         
30577         * ComboBox.cs: Added missing attributes
30578         * VScrollBar.cs: Added missing attributes
30579         * ScrollBar.cs:  Added missing attributes
30580         * ListBox.cs: Fixes signature, add missing consts
30581         * LinkArea.cs:   Added missing attributes
30582         
30583
30584 2005-02-08  Peter Bartok  <pbartok@novell.com>
30585
30586         * Menu.cs: Added missing attributes
30587         * MainMenu.cs: Added missing attributes
30588         * GroupBox.cs: Added missing attributes
30589         * Label.cs: Added missing attributes
30590         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
30591         * ColorDialog.cs:
30592           - Added Instance and Options properties
30593           - Added missing attributes
30594         * Cursor.cs: Made Serializable
30595         * NotifyIcon: Added missing attributes
30596         * MenuItem.cs: Added missing attributes
30597         * TextBoxBase.cs: Implemented AppendText() and Select() methods
30598         * Panel.cs: Added Missing attributes
30599         * MonthCalendar.cs: Fixed CreateParams
30600
30601 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
30602         
30603         * LinkLabel.cs:
30604                 - Fixes signature
30605                 - Fixes issues with links
30606                 - Adds the class attributes
30607
30608 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
30609         
30610         * ComboBox.cs:
30611                 - Fixes button when no items available in dropdown
30612                 - Fixes repainting problems
30613                 - Adds the class attributes
30614                 
30615 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
30616
30617         * XplatUIOSX.cs: Detect the menu bar and title bar height from
30618         the current theme.  Cache these on startup.
30619
30620 2005-02-07  Jackson Harper  <jackson@ximian.com>
30621
30622         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
30623         the scrollbar buttons when they are depressed.
30624
30625 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
30626
30627         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
30628         Get the display size from the main displayid.  We currently dont
30629         support multiple display configurations.
30630
30631 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
30632
30633         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
30634
30635 2005-02-07  Miguel de Icaza  <miguel@novell.com>
30636
30637         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
30638
30639 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
30640
30641         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
30642
30643 2005-02-04  Jackson Harper  <jackson@ximian.com>
30644
30645         * ThemeWin32Classic.cs: Respect the clipping rect when
30646         drawing. Only fill the intersection of clips and rects so there
30647         isn't a lot of large fills.
30648         * ScrollBar.cs: Pass the correct clipping rect to the theme
30649         engine. Remove some debug code.
30650
30651 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
30652         
30653         * DateTimePicker.cs:
30654                 - Fixed crash on DateTime.Parse, use Constructor instead
30655
30656 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
30657         
30658         * MenuItem.cs:
30659         * MenuAPI.cs:
30660                 - Owner draw support (MeasureItem and DrawItem)
30661
30662 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
30663         
30664         *  Menu.cs:
30665                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
30666                 - Fixes MenuItems.Add range
30667         * MenuItem.cs:
30668                 - MergeMenu and Clone and CloneMenu functions
30669
30670 2005-02-03  Jackson Harper  <jackson@ximian.com>
30671
30672         * ScrollBar.cs: Make abstract
30673         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
30674         is abstract.
30675
30676 2005-02-03  Jackson Harper  <jackson@ximian.com>
30677
30678         * ScrollBar.cs: First part of my scrollbar fixups. This removes
30679         all the unneeded refreshes and uses invalidates with properly
30680         computed rects.
30681
30682 2005-02-03  Peter Bartok  <pbartok@novell.com>
30683
30684         * ComponentModel.cs: Added
30685         * IDataGridEditingService.cs: Added
30686         * Timer.cs: Added missing attributes
30687         * ToolTip.cs: Added missing attributes
30688
30689 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
30690
30691         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
30692
30693 2005-02-03  Peter Bartok  <pbartok@novell.com>
30694
30695         * ListBox.cs: Added missing attributes
30696
30697 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
30698         
30699         * ListBox.cs:
30700                 - Fixes font height after font change
30701                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
30702                 
30703 2005-02-02  Peter Bartok  <pbartok@novell.com>
30704
30705         * HandleData.cs: Introduced static methods to allow class
30706           to be more self-contained and track it's own HandleData objects
30707         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
30708           HandleData to use new static methods
30709
30710 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
30711
30712         * Combobox.cs:
30713                 - Fixes default size and PreferredHeight
30714                 - Missing events
30715                 - ObjectCollection.Insert implementation
30716                 
30717         * ListControl.cs
30718                 - Fixes signature
30719         * ListBox.cs:
30720                 - Several fixes
30721                 - ObjectCollection.Insert implementation
30722                 - No selection after clean
30723                 - Small fixes
30724
30725 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
30726
30727         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
30728
30729 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
30730
30731         * Combobox.cs:
30732                 - Caches ItemHeight calculation for OwnerDrawVariable
30733                 - Handles dropdown properly
30734                 - Fixes several minor bugs
30735
30736 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
30737
30738         * ListBox.cs:
30739                 - Fixes 71946 and 71950
30740                 - Fixes changing Multicolumn on the fly
30741                 - Fixes keyboard navigation on Multicolumn listboxes
30742
30743 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
30744         
30745         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
30746         crash reporter log.
30747
30748 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
30749
30750         * XplatUIOSX.cs: Allow applications to actually exit.
30751
30752 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
30753
30754         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
30755         their parent at creation time rather than lazily later.  Fixes a major
30756         regression we were experiencing.
30757
30758 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
30759
30760         * ThemeWin32Classic.cs: more date time picker painting fixes
30761         * DateTimePicker.cs: more monthcalendar drop down fixes
30762         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
30763
30764 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
30765
30766         * ScrollBar.cs:
30767                 - When moving the thumb going outside the control should stop the moving
30768                 - Adds the firing of missing events
30769                 - Fixes no button show if Size is not specified
30770                 - End / Home keys for keyboard navigation
30771
30772 2005-01-30  Peter Bartok  <pbartok@novell.com>
30773
30774         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
30775           sanity check to prevent theoretical loop
30776         * XplatUIWin32.cs (SetVisible): Removed debug output
30777         * XplatUIX11.cs (SystrayChange): Added sanity check
30778         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
30779         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
30780           behaviour, valid until the X11 client window rewrite is done
30781         * TextBox.cs (ctor): Setting proper default foreground and background
30782           colors
30783
30784 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
30785
30786         * Theme: Added DrawDateTimePicker to interface
30787         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
30788         * DateTimePicker.cs: Created (still needs keys and painting code)
30789         * DateTimePickerFormat.cs: added
30790         * MonthCalendar.cs: fixed CreateParams for popup window mode
30791           
30792 2005-01-29  Peter Bartok  <pbartok@novell.com>
30793
30794         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
30795           this should also the calculations for ligher/darker
30796         * Theme.cs: Fixed defaults for ScrollBar widths/heights
30797
30798 2005-01-29  Peter Bartok  <pbartok@novell.com>
30799
30800         * ArrangeDirection.cs: Added
30801         * ArrangeStartingPositon.cs: Added
30802         * SystemInformation.cs: Implemented
30803         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
30804           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
30805           used by SystemInformation class
30806         * X11Strucs.cs: Added XSizeHints structure
30807         * MenuAPI.cs:
30808           - Fixed CreateParams to make sure the menu window is always visible
30809           - TrackPopupMenu: Added check to make sure we don't draw the
30810             menu offscreen
30811
30812 2005-01-29  Peter Bartok  <pbartok@novell.com>
30813
30814         * HandleData.cs: Added method for altering invalid area
30815         * TextBoxBase.cs: Implemented TextLength
30816
30817 2005-01-28  Peter Bartok  <pbartok@novell.com>
30818
30819         * XplatUIX11.cs: Improvement over last patch, not sending
30820           the WM_PAINT directly anymore, instead we scroll any pending
30821           exposed areas and let the system pick out the WM_PAINT later
30822
30823 2005-01-28  Peter Bartok  <pbartok@novell.com>
30824
30825         * SWF.csproj: Deleted, no longer used. Instead,
30826           Managed.Windows.Forms/SWF.csproj should be used
30827         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
30828           directly, to avoid a potential race condition with the next
30829           scroll
30830
30831 2005-01-28  Peter Bartok  <pbartok@novell.com>
30832
30833         * XplatUI.cs: Made class internal
30834
30835 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
30836
30837         * CheckedListBox.cs:
30838                 - Draw focus
30839                 - Fixed Drawing
30840                 - Missing methods and events
30841
30842 2005-01-27  Peter Bartok  <pbartok@novell.com>
30843
30844         * Application.cs (Run): Don't use form if we don't have one
30845
30846 2005-01-27  Peter Bartok  <pbartok@novell.com>
30847
30848         * TextBoxBase.cs (get_Lines): Fixed index off by one error
30849
30850 2005-01-27  Peter Bartok  <pbartok@novell.com>
30851
30852         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
30853         * GridItem.cs: Added; Patch by Jonathan S. Chambers
30854         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
30855         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
30856         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
30857         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
30858         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
30859         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
30860         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
30861         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
30862         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
30863         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
30864
30865 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
30866
30867         * Combobox.cs:
30868                 - Draw focus on Simple Combobox
30869                 - Fixes drawing issues
30870                 - fixes 71834
30871
30872 2005-01-27  Peter Bartok  <pbartok@novell.com>
30873
30874         * Form.cs:
30875           - Place window in default location, instead of hardcoded 0/0
30876           - Send initial LocationChanged event
30877         * Control.cs:
30878           - UpdateBounds after creation to find out where the WM placed us
30879           - Make sure that if the ParentForm changes location the Form
30880             is notified
30881         * XplatUIX11.cs: XGetGeometry will not return the coords relative
30882             to the root, but to whatever the WM placed around us.
30883             Translate to root coordinates before returning toplevel
30884             coordinates
30885         * XplatUIWin32.cs: Removed debug output
30886         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
30887           flag to GetWindowPos, to allow translation of coordinates on X11
30888
30889 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
30890
30891         * ListBox.cs: connect LostFocus Event
30892
30893 2005-01-27  Peter Bartok  <pbartok@novell.com>
30894
30895         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
30896           XplatUIX11.cs: Extended the Systray API
30897         * Form.cs: Removed debug output
30898         * Application.cs: Fixed focus assignment, always need to call
30899           XplatUI.Activate() since Form.Activate() has rules that may
30900           prevent activation
30901         * NotifyIcon.cs: Should be complete now
30902         * ToolTip.cs: Worked around possible timer bug
30903
30904 2005-01-27  Jackson Harper  <jackson@ximian.com>
30905
30906         * TabControl.cs:
30907         - Only invalidate the effected tabs when the
30908         selected index changes. This reduces drawing and gets rid of some
30909         flicker.
30910         - Only refresh if the tabs need to be shifted, otherwise only
30911         invalidate the slider button.
30912         - On windows the tabs are not filled to right if the slider is
30913         visible.
30914         
30915 2005-01-27  Jackson Harper  <jackson@ximian.com>
30916
30917         * TabControl.cs: Only refresh on mouseup if we are showing the
30918         slider. Also only invalidate the button whose state has changed.
30919
30920 2005-01-26  Peter Bartok  <pbartok@novell.com>
30921
30922         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
30923         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
30924           and SystrayRemove() methods
30925         * XplatUIOSX.cs: Stubbed Systray methods
30926         * XplatUIX11.cs:
30927           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
30928             methods
30929           - Fixed broken XChangeProperty calls (marshalling messed up things)
30930         * X11Structs.cs: Added enums and structs required for Size hinting
30931         * NotifyIcon.cs: Added & implemented
30932
30933 2005-01-26  Jackson Harper  <jackson@ximian.com>
30934
30935         * TabControl.cs: Space vertically layed out tabs properly.
30936
30937 2005-01-26  Peter Bartok  <pbartok@novell.com>
30938
30939         * Form.cs (CreateClientParams): Always set the location to 0,0
30940           since we're a child window.
30941
30942         * Control.cs (SetVisibleCore): Always explicitly setting the location
30943           of a toplevel window, apparently X11 doesn't like to move windows
30944           while they're not mapped.
30945
30946 2005-01-26  Jackson Harper  <jackson@ximian.com>
30947
30948         * TabControl.cs: Implement FillToRight size mode with vertically
30949         rendered tabs.
30950
30951 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
30952
30953         * ControlPaint.cs, ThemeWin32Classic.cs
30954                 - Fixes DrawFocusRectangle
30955
30956 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
30957
30958         * MenuAPI.cs:
30959                 - MenuBar tracking only starts when item is first clicked
30960                 - Fixes menu hidding for multiple subitems
30961                 - Unselect item in MenuBar when item Executed
30962                 - Fixes bug 71495
30963
30964 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
30965
30966         * ListControl.cs:
30967                 - IsInputKey for ListBox
30968         * ListBox.cs:
30969                 - Focus item
30970                 - Shift and Control item selection
30971                 - Implement SelectionMode.MultiExtended
30972                 - Fixes RightToLeft
30973         * ComboBox.cs:
30974                 - IsInputKey implemented
30975                 - Do not generate OnTextChangedEdit on internal txt changes
30976                 
30977 2005-01-23  Peter Bartok  <pbartok@novell.com>
30978
30979         * AccessibleObject.cs: Partially implemented Select()
30980         * MonthCalendar.cs: Added missing attributes and events
30981         * Form.cs: Fixed CreateParams behaviour, now controls derived from
30982           form can properly override CreateParams.
30983         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
30984           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
30985           Control performs Invalidate & Update
30986         * NativeWindow (CreateHandle): Added special handling for Form
30987           and Form.FormParent classes to allow overriding of From.CreateParams
30988         * Control.cs:
30989           - ControlNativeWindow: Renamed 'control' variable to more intuitive
30990             name 'owner'
30991           - ControlNativeWindow: Added Owner property
30992           - Removed usage of Refresh() on property changes, changed into
30993             Invalidate(), we need to wait until the queue is processed for
30994             updates, direct calls might cause problems if not all vars for
30995             Paint are initialized
30996           - Added call to UpdateStyles() when creating the window, to set any
30997             styles that CreateWindow might have ignored.
30998           - Added support for Form CreateParent overrides to UpdateStyles()
30999         * MessageBox.cs: Removed no longer needed FormParent override stuff,
31000           CreateParams are now properly overridable
31001         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
31002           CreateParams are now properly overridable
31003
31004 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
31005
31006         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
31007         OnTextBoxChanged.
31008
31009         Capture LostFocus and OnTextBoxChanged.  The later introduces a
31010         recursive invocation that I have not figured out yet.
31011
31012         Reset the timer when not using (it was accumulating).
31013
31014
31015         (OnTextBoxChanged): Set UserEdit to true here to track whether the
31016         user has made changes that require validation.
31017
31018         Reset changing to avoid loops.
31019
31020 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
31021
31022         * NumericUpDown.cs: Display value at startup.
31023
31024         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
31025         ValidateEditText.
31026
31027         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
31028         filled in.  Added some basic parsing of text.
31029
31030         Still missing the OnXXX method overrides, and figuring out the
31031         events that must be emitted.
31032
31033         * UpDownBase.cs: Handle UserEdit on the Text property.
31034         
31035 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
31036
31037         * ComboBox.cs:
31038           - Fixes IntegralHeight
31039           - ToString method
31040
31041 2005-01-21  Jackson Harper  <jackson@ximian.com>
31042
31043         * TabControl.cs: Set the SelectedIndex property when SelectedTab
31044         is set so that the page visibility is updated and the tabs are
31045         sized correctly.
31046
31047 2005-01-21  Jackson Harper  <jackson@ximian.com>
31048
31049         * TabControl.cs: Use cliping rectangle for blitting. Give the
31050         theme the clipping rect so we can do clipping while
31051         drawing. Remove some debug code.
31052
31053 2005-01-21  Jackson Harper  <jackson@ximian.com>
31054
31055         * TabPage.cs: Add a new method so tab pages can force the tab
31056         control to recalculate the tab page sizes.
31057         * TabControl.cs: UpdateOwner needs to make the tab control recalc
31058         sizes.
31059
31060 2005-01-20  Jackson Harper  <jackson@ximian.com>
31061
31062         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
31063
31064 2005-01-20  Jackson Harper  <jackson@ximian.com>
31065
31066         * TreeView.cs: Set the bounds for nodes properly. They were
31067         getting screwed up when checkboxes were not enabled, but images
31068         were.
31069
31070 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
31071
31072         * ListBox.cs:
31073                 - Owner draw support
31074                 - Fixes
31075                 
31076 2005-01-20  Jackson Harper  <jackson@ximian.com>
31077
31078         * XplatUIStructs.cs: More misc keys
31079         * X11Keyboard.cs: Ignore some control keys.
31080
31081 2005-01-20  Jackson Harper  <jackson@ximian.com>
31082
31083         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
31084         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
31085
31086 2005-01-19  Peter Bartok  <pbartok@novell.com>
31087
31088         * Control.cs: Un-selecting the control when it is loosing focus
31089
31090 2005-01-19  Jackson Harper  <jackson@ximian.com>
31091
31092         * TreeView.cs: Hook up to the text controls leave event so we can
31093         end editing when the users clicks outside the text box.
31094         
31095 2005-01-19  Jackson Harper  <jackson@ximian.com>
31096
31097         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
31098         get set in the conversion array.
31099
31100 2005-01-19  Peter Bartok  <pbartok@novell.com>
31101
31102         * Application.cs (ModalRun): Added a call to CreateControl to ensure
31103           focus is properly set
31104         * Button.cs:
31105           - Added missing attributes
31106           - removed styles, those are already set in the base class
31107         * ButtonBase.cs:
31108           - Added missing attributes
31109           - Added clip window styles
31110         * CheckBox.cs: Added missing attributes
31111         * CommonDialog.cs:
31112           - FormParentWindow.CreateParams: Added required clip styles
31113         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
31114           also filters modifier keys
31115         * MessageBox.cs:
31116           - Added assignment of Accept and Cancel button to enable Enter
31117             and Esc keys in MessageBox dialogs
31118           - FormParentWindow.CreateParams: Added required clip styles
31119         * RadioButton.cs: Added missing attributes
31120         * TextControl.cs: No longer draws selection if control does not
31121           have focus
31122         * TextBoxBase.cs:
31123           - Now draws simple rectangle around test area to make it obvious
31124             there's a control. This is a hack until we properly support borders
31125           - A few simple fixes to support selections better, now erases selected
31126             text when typing, and resets selection when using movement keys
31127
31128 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
31129
31130         * UpDownBase.cs: Added some new properties.
31131
31132         * DomainUpDown.cs: Implement a lot to get my test working.
31133
31134 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
31135
31136         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
31137
31138 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
31139
31140         * OSXStructs (WindowAttributes): Fixed csc complaints
31141
31142 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
31143
31144         * XplayUIOSX.cs:
31145           OSXStructs.cs: Initial refactor to move enums and consts into
31146           OSXStructs and use them in the driver for greater readability.
31147
31148 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
31149
31150         * XplatUIOSX.cs: Initial support for Standard Cursors.
31151         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
31152
31153 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
31154
31155         * ComboBox.cs: ability to change style when the ctrl is already
31156         created, missing methods and events, bug fixes, signature fixes
31157
31158 2005-01-19  Peter Bartok  <pbartok@novell.com>
31159
31160         * Cursors.cs (ctor): Added ctor to fix signature
31161
31162 2005-01-18  Peter Bartok  <pbartok@novell.com>
31163
31164         * Button.cs: Implemented DoubleClick event
31165         * ButtonBase.cs:
31166           - Fixed keyboard handling to behave like MS, where the press of
31167             Spacebar is equivalent to a mousedown, and the key release is
31168             equivalent to mouseup. Now a spacebar push will give the same
31169             visual feedback like a mouse click.
31170           - Added missing attributes
31171           - Added ImeModeChanged event
31172           - Added support for generating DoubleClick event for derived classes
31173         * CheckBox.cs:
31174           - Implemented DoubleClick event
31175           - Added missing attributes
31176         * CommonDialog.cs: Added missing attribute
31177         * ContextMenu.cs: Added missing attributes
31178         * RadioButton.cs:
31179           - AutoChecked buttons do not allow to be unselected when clicked
31180             (otherwise we might end up with no selected buttons in a group)
31181           - Added missing attributes
31182           - Implemented DoubleClickEvent
31183         * ThreadExceptionDialog.cs: Enabled TextBox code
31184
31185 2005-01-18  Peter Bartok  <pbartok@novell.com>
31186
31187         * Form.cs: Removed debug output
31188         * Button.cs: Added support for DoubleClick method
31189
31190 2005-01-18  Peter Bartok  <pbartok@novell.com>
31191
31192         * Form.cs:
31193           - Added method to parent window that allows triggering size
31194             calculations when a menu is added/removed
31195           - set_Menu: Cleaned up mess from early days of Form and Control,
31196             now properly triggers a recalc when a menu is added/removed
31197           - Added case to select form itself as focused form if no child
31198             controls exist
31199           - Added PerformLayout call when showing dialog, to ensure properly
31200             placed controls
31201         * Control.cs:
31202           - Select(): Made internal so Form can access it
31203           - Focus(): Only call Xplat layer if required (avoids loop), and sets
31204             status
31205         * Application.cs (Run): Removed hack and calls PerformLayout instead
31206           to trigger calculation when Form becomes visible
31207
31208 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
31209
31210         * ComboBox.cs: fixes for ownerdraw
31211
31212 2005-01-18  Peter Bartok  <pbartok@novell.com>
31213
31214         * TextControl.cs:
31215           - Sentinel is no longer static, each Document gets it's own, this
31216             avoids locking or alternatively overwrite problems when more
31217             than one text control is used simultaneously.
31218           - Switched to use Hilight and HilightText brushes for text selection
31219
31220         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
31221
31222 2005-01-18  Peter Bartok  <pbartok@novell.com>
31223
31224         * Control.cs:
31225           - Hooked up the following events:
31226                 o ControlAdded
31227                 o ControlRemoved
31228                 o HandleDestroyed
31229                 o ImeModeChanged
31230                 o ParentChanged
31231                 o TabStopChanged
31232                 o Invalidated
31233                 o SystemColorsChanged
31234                 o ParentFontChanged
31235                 o Move
31236           - Removed debug output
31237           - Added a call to the current theme's ResetDefaults when a color change
31238             is detected
31239         * Form.cs: Now setting the proper ImeMode
31240         * Theme.cs: Defined a method to force recreation of cached resources
31241           and rereading of system defaults (ResetDefaults())
31242         * ThemeWin32Classic.cs: Added ResetDefaults() stub
31243
31244 2005-01-17  Peter Bartok  <pbartok@novell.com>
31245
31246         * Control.cs: Added missing attributes
31247
31248 2005-01-17  Jackson Harper  <jackson@ximian.com>
31249
31250         * TreeNode.cs: Implement editing. Add missing properties selected
31251         and visible.
31252         * TreeView.cs: Implement node editing. Also some fixes to use
31253         Invalidate (invalid area) instead of Refresh when selecting.
31254
31255 2005-01-17  Peter Bartok  <pbartok@novell.com>
31256
31257         * Control.cs:
31258           - Implemented InvokeGotFocus() method
31259           - Implemented InvokeLostFocus() method
31260           - Implemented InvokePaint() method
31261           - Implemented InvokePaintBackground() method
31262           - Implemented InvokeClick() method
31263           - Implemented FindForm() method
31264           - Implemented RectangleToClient() method
31265           - Implemented ClientToRectangle() method
31266           - Implemented ResetBackColor() method
31267           - Implemented ResetCursor() method
31268           - Implemented ResetFont() method
31269           - Implemented ResteForeColor() method
31270           - Implemented ResetImeMode() method
31271           - Implemented ResetLeftToRight() method
31272           - Implemented ResetText() method
31273           - Implemented Scale() methods
31274           - Implemented ScaleCore() method
31275           - Implemented Update() method
31276           - Removed unused variables
31277           - Stubbed AccessibilityNotifyClients and
31278             ControlAccessibleObject.NotifyClients() methods (dunno what to do
31279             with those yet)
31280           - Now setting proper default for RightToLeft property
31281           - Fixed bug in SetClientSizeCore that would cause windows to get
31282             really big
31283           - Now sending Click/DoubleClick events
31284           - Now selecting controls when left mouse button is clicked on
31285             selectable control
31286         * AccessibleEvents.cs: Added
31287         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
31288         * XplatUIOSX.cs: Stubbed UpdateWindow() method
31289         * XplatUIWin32.cs: Implemented UpdateWindow() method
31290         * XplatUIX11.cs: Implemented UpdateWindow() method
31291         * Form.cs: Removed stray semicolon causing CS0162 warning
31292         * ThemeWin32Classic.cs: Fixed unused variable warnings
31293         * ScrollableControl.cs: Now calls base method for ScaleCore
31294         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
31295           style to avoid interference with internal click handler (which is
31296           different than standard Control click handling)
31297         * RadioButton.cs:
31298           - Now unchecks all sibling radio buttons when control is
31299             selected (Fixes #68756)
31300           - Removed internal tabstop variable, using the one inherited from
31301             Control
31302
31303 2005-01-17  Jackson Harper  <jackson@ximian.com>
31304
31305         * NavigateEventArgs.cs: Fix base type.
31306         * LinkLabel.cs: Sig fix
31307         
31308 2005-01-17  Jackson Harper  <jackson@ximian.com>
31309
31310         * TreeView.cs: Only invalidate the effected nodes bounds when
31311         selecting nodes.
31312
31313 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
31314
31315         * XplatUIWin32.cs: fixes Win32 marshaling
31316         * XplatUIX11.cs: fixes method signature
31317
31318 2005-01-17  Peter Bartok  <pbartok@novell.com>
31319
31320         * XplatUIX11.cs: Clean up resources when we no longer need them
31321
31322 2005-01-17  Peter Bartok  <pbartok@novell.com>
31323
31324         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
31325           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
31326           and DestroyCursor() methods.
31327         * Cursor.cs: Partially implemented, now supports standard cursors;
31328           still contains some debug code
31329         * Cursors.cs: Implemented class
31330         * Control.cs:
31331           - WndProc(): Added handling of WM_SETCURSOR message, setting the
31332             appropriate cursor
31333           - Implemented Cursor property
31334           - Replaced break; with return; more straightforwar and possibly
31335             faster
31336           - Now properly setting the result for WM_HELP
31337         * X11Structs.cs: Added CursorFontShape enum
31338         * XplatUIStructs.cs:
31339           - Added StdCursor enum (to support DefineStdCursor() method)
31340           - Added HitTest enum (to support sending WM_SETCURSOR message)
31341         * XplatUIX11.cs:
31342           - Now sends the WM_SETCURSOR message
31343           - Implemented new cursor methods
31344         * XplatUIOSX.cs: Stubbed new cursor methods
31345         * XplatUIWin32.cs:
31346           - Implemented new cursor methods
31347           - Added GetSystemMetrics function and associated enumeration
31348
31349 2005-01-15  Peter Bartok  <pbartok@novell.com>
31350
31351         * Control.cs:
31352           - WndProc(): Now handles EnableNotifyMessage
31353           - SelectNextControl(): Fixed bug where if no child or sibling
31354             controls exist we looped endlessly
31355
31356 2005-01-14  Jackson Harper  <jackson@ximian.com>
31357
31358         * TreeView.cs: Recalculate the tab pages when a new one is added
31359         so that the proper bounding rects are created.
31360
31361 2005-01-14  Jackson Harper  <jackson@ximian.com>
31362
31363         * TreeView.cs: Draw a gray box instead of a grip in the lower
31364         right hand corner when there are both horizontal and vertical
31365         scroll bars.
31366
31367 2005-01-14  Jackson Harper  <jackson@ximian.com>
31368
31369         * Control.cs: When erasing backgrounds use FromHwnd instead of
31370         FromHdc when there is a NULL wparam. This occurs on the X driver.
31371         * XplatUIX11.cs: Set the wparam to NULL.
31372
31373 2005-01-13  Jackson Harper  <jackson@ximian.com>
31374
31375         * PictureBox.cs: Implement missing methods (except ToString, need
31376         to test that on windows) and events. When visibility is changed we
31377         need to redraw the image because the buffers are killed. When size
31378         is changed refresh if the sizemode needs it.
31379
31380 2005-01-13  Peter Bartok  <pbartok@novell.com>
31381
31382         * Control.cs (SelectNextControl): Was using wrong method to select
31383           a control
31384
31385 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
31386
31387         * ComboBox.cs: fixes dropstyle
31388
31389 2005-01-13  Peter Bartok  <pbartok@novell.com>
31390
31391         * Form.cs:
31392           - Implemented Select() override
31393           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
31394           - Now sets keyboard focus on startup
31395         * Control.cs (SelectNextControl): Now properly handles directed=true
31396         * TextBoxBase.cs:
31397           - WndProc: Now passes tab key on to base if AcceptTabChar=false
31398           - Added (really bad) focus rectangle (mostly for testing)
31399         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
31400           to enforce redraw on focus changes
31401         * ContainerControl.cs:
31402           - Fixed detection of Shift-Tab key presses
31403           - Fixed traversal with arrow keys
31404         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
31405           gonna keep this or if it's complete yet
31406         
31407 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
31408
31409         * ComboBox.cs: missing properties, fixes
31410
31411 2005-01-13  Peter Bartok  <pbartok@novell.com>
31412
31413         * Panel.cs (ctor): Setting Selectable window style to off
31414         * Splitter.cs (ctor): Setting Selectable window style to off
31415         * GroupBox.cs (ctor): Setting Selectable window style to off
31416         * Label.cs (ctor): Setting Selectable window style to off
31417
31418 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
31419
31420         * UpDownBase.cs (InitTimer): If the timer has been already
31421         created, enable it.
31422
31423         Use a TextBox instead of a Label.
31424
31425 2005-01-12  Jackson Harper  <jackson@ximian.com>
31426
31427         * TreeView.cs: Refresh the tree after sorting the nodes. Always
31428         draw the connecting node lines (when ShowLines is true).
31429         * TreeNode.cs: The nodes index can now be updated. This is used
31430         when a node collection is sorted.
31431         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
31432         insert or an existing unsorted node collection can be sorted.
31433         
31434 2005-01-12  Peter Bartok  <pbartok@novell.com>
31435
31436         * ContainerControl.cs: Implemented ProcessDialogKeys()
31437
31438 2005-01-12  Peter Bartok  <pbartok@novell.com>
31439
31440         * Control.cs:
31441           - Implemented SelectNextControl() method
31442           - Several focus related bug fixes
31443           - Fixed Docking calculations to match MS documentation and
31444             behaviour
31445
31446 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
31447
31448         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
31449         bug fixes
31450
31451 2005-01-12  Peter Bartok  <pbartok@novell.com>
31452
31453         * Control.cs:
31454           - Fixed broken Contains() method
31455           - Implemented GetNextControl() method. Finally. This is the pre-
31456             requisite for focus handling.
31457
31458 2005-01-12  Peter Bartok  <pbartok@novell.com>
31459
31460         * OSXStrucs.cs: Added
31461
31462 2005-01-12  Peter Bartok  <pbartok@novell.com>
31463
31464         * XplatUIWin32.cs:
31465           - Removed PeekMessageFlags
31466           - Implemented SetWindowStyle() method
31467         * XplatUIStructs.cs: Added PeekMessageFlags
31468         * X11Structs: Added missing border_width field to XWindowChanges struct
31469         * XplatUIX11.cs:
31470           - PeekMessage: Now throws exception if flags which are not yet
31471             supported are passed
31472           - Implemented SetWindowStyle() method
31473           - Fixed SetZOrder to handle AfterHwnd properly
31474         * XplatUI.cs: Added SetWindowStyle() method
31475         * XplatUIDriver.cs: Added SetWindowStyle() abstract
31476         * Control.cs:
31477           - Implemented UpdateStyles() method
31478           - Implemented UpdateZOrder() method
31479         * XplatUIOSX.cs: Added SetWindowStyle() stub
31480
31481 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
31482
31483         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
31484         button mouse).
31485
31486
31487 2005-01-11  Jackson Harper  <jackson@ximian.com>
31488
31489         * TreeView.cs: Still need to draw lines to siblings even if out of
31490         the current node is out of the clip.
31491
31492 2005-01-11  Jackson Harper  <jackson@ximian.com>
31493
31494         * TreeView.cs: When setting the hbar/vbar/grip position use
31495         SetBounds so that perform layout is only called once. Also suspend
31496         and resume layout so layout is only done once for all controls.
31497         - Removed some debug fluff
31498         * SizeGrip.cs: Call base implmentation in overriding methods.
31499         - When visibility is changed the drawing buffers are killed so we
31500         need to redraw.
31501
31502 2005-01-11  Jackson Harper  <jackson@ximian.com>
31503
31504         * TreeView.cs: Calculate the open node count while drawing. This
31505         saves us an entire tree traversal for every paint operation. Use
31506         a member var for the open node count so less vars are passed around.
31507
31508 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
31509
31510         * MonthCalendar.cs:
31511         - fixed selection to use mousemove, not mouse polling on timer
31512         * ThemeWin32Classic.cs
31513         - removed redundant unused variable "no_more_content"
31514         
31515 2005-01-11  Peter Bartok  <pbartok@novell.com>
31516
31517         * XplatUIX11.cs (DoEvents): Needs to return when no more events
31518           are pending, so it now calls PeekMessage instead of GetMessage;
31519           implemented a incomplete version of PeekMessage
31520         
31521 2005-01-11  Peter Bartok  <pbartok@novell.com>
31522
31523         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
31524           I18n issues
31525         * TextBoxBase.cs: Added sending of TextChanged event
31526
31527 2005-01-10  Jackson Harper  <jackson@ximian.com>
31528
31529         * TreeView.cs: Try not to draw outside the clipping rectangle on
31530         each node element.
31531
31532 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
31533
31534         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
31535
31536 2005-01-10  Jackson Harper  <jackson@ximian.com>
31537
31538         * TreeView.cs:
31539         - Implement fast scrolling. Now only the newly
31540         exposed nodes are drawn and the old image is moved using the
31541         XplatUI::ScrollWindow method.
31542         - Factor in height of nodes when calculating whether or not the
31543         node is in the clipping rect.
31544
31545 2005-01-10  Jackson Harper  <jackson@ximian.com>
31546
31547         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
31548
31549 2005-01-10  Peter Bartok  <pbartok@novell.com>
31550
31551         * Application.cs: Added temporary hack to resolve all our resize
31552           required issues on startup. This will get fixed properly at
31553           some point in the future
31554
31555 2005-01-10  Jackson Harper  <jackson@ximian.com>
31556
31557         * SizeGrip.cs: New internal class that is used as a sizing
31558         grip control...hence the name.
31559
31560 2005-01-10  Peter Bartok  <pbartok@novell.com>
31561
31562         * Control.cs: Implemented proper TabIndex handling, now assigning
31563           a tabindex when a control is added to a container
31564         * GroupBox.cs (ctor): Now sets the Container style bit, required
31565           for Control.GetNextControl()
31566
31567 2005-01-09  Jackson Harper  <jackson@ximian.com>
31568
31569         * TextBoxBase.cs: Clear window when scrolling (fixes build).
31570
31571 2005-01-09  Peter Bartok <pbartok@novell.com>
31572
31573         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
31574           XplatUIX11.cs: Added ability to control ScrollWindow expose and
31575           an overload for ScrollWindow to allow only scrolling a rectangle
31576
31577 2005-01-09  Peter Bartok <pbartok@novell.com>
31578
31579         * Form.cs:
31580           - Implemented SetDesktopBounds method
31581           - Implemented SetDesktopLocation method
31582
31583 2005-01-08  Jackson Harper  <jackson@ximian.com>
31584
31585         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
31586         the node count has changed, this removes to VScroll::Refresh calls
31587         when drawing.
31588
31589 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
31590
31591         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
31592
31593 2005-01-07  Jackson Harper  <jackson@ximian.com>
31594
31595         * TreeNode.cs: Just update the single node when it is
31596         checked. Don't refresh after toggling, the Expand/Collapse already
31597         handles this.
31598         * TreeView.cs: Respect clipping a little more when drawing. Try
31599         not to redraw things that don't need to be redrawn. Just hide the
31600         scrollbars when they are no longer needed instead of removing
31601         them, so they don't have to be created again and again.
31602         
31603 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
31604
31605         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
31606         coordinates to window space to place the caret properly, FIXED.
31607         Implement GetWindowState & SetWindowState
31608
31609 2005-01-06  Peter Bartok <pbartok@novell.com>
31610
31611         * Form.cs:
31612           - Implemented ClientSize property
31613           - Implemented DesktopBounds property
31614           - Implemented DesktopLocation property
31615           - Implemented IsRestrictedWindow property
31616           - Implemented Size property
31617           - Implemented TopLevel property
31618           - Implemented FormWindowState property
31619         * Control.cs:
31620           - Implemented GetTopLevel() method
31621           - Implemented SetTopLevel() method
31622         * X11Structs.cs (Atom):
31623           - Added AnyPropertyType definition
31624           - Added MapState definiton and updated XWindowAttribute struct
31625         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
31626         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
31627         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
31628         * XplatUIWin32.cs:
31629           - Implemented GetWindowState() and SetWindowState() methods
31630           - Fixed Win32GetWindowLong return type
31631         * XplatUIX11.cs:
31632           - Introduced central function for sending NET_WM messages
31633           - Implemented GetWindowState() and SetWindowState() methods
31634         * TextBoxBase.cs (set_Lines):
31635           - Now uses Foreground color for text added via Text property (Duh!)
31636           - Added code to remember programmatically requested size (fixes
31637             behaviour when Multiline is set after Size)
31638           - Added AutoSize logic
31639
31640 2005-01-06  Jackson Harper  <jackson@ximian.com>
31641
31642         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
31643
31644 2005-01-06  Jackson Harper  <jackson@ximian.com>
31645
31646         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
31647         set to less then 0.
31648
31649 2005-01-06  Jackson Harper  <jackson@ximian.com>
31650
31651         * ScrollableControl.cs: Lazy init the scrollbars.
31652         
31653 2005-01-06  Jackson Harper  <jackson@ximian.com>
31654
31655         * Theme.cs: Speed up getting pens and solid brushes, by using
31656         their ARGB as a hash instead of tostring and not calling Contains.
31657
31658 2005-01-06  Peter Bartok <pbartok@novell.com>
31659
31660         * Form.cs:
31661           - Implemented OnActivated and OnDeactivate event trigger
31662           - Implemented Activate() method
31663           - Fixed ShowDialog() to activate the form that was active before
31664             the dialog was shown
31665         * XplatUIX11.cs:
31666           - Added global active_window var that tracks the currently active
31667             X11 window
31668           - Now always grabs Property changes from the root window to always
31669             catch changes on the active window property
31670           - Added code to PropertyNotify handler to send Active/Inactive
31671             messages when state changes. This puts X11 and Win32 en par on
31672             WM_ACTIVATE notifications (except for double notifications when
31673             the user clicks away from our modal window to another one of our
31674             windows)
31675
31676 2005-01-05  Jackson Harper  <jackson@ximian.com>
31677
31678         * ImageList.cs: Implment ctor
31679
31680 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
31681
31682         * XplatUIOSX.cs: Implement Activate/SetTopmost
31683
31684 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
31685
31686         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
31687
31688 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
31689
31690         * XplatUIOSX.cs: Implement GetActive/SetFocus.
31691
31692 2005-01-05  Peter Bartok <pbartok@novell.com>
31693
31694         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
31695           XplatUIOSX.cs: Added GetActive method to return the currently
31696           active window for the application (or null, if none is active)
31697         * Form.cs:
31698           - Implemented ActiveForm
31699           - Commented out owner assignment for modal dialogs (causes problems
31700             on Win32, since the owner will be disabled)
31701           - Reworked some Active/Focus handling (still incomplete)
31702         * CommonDialog.cs: Commented out owner assignment for modal dialogs
31703           (causes problems on Win32, since the owner will be disabled)
31704         * IWin32Window: Added ComVisible attribute
31705
31706 2005-01-05  Peter Bartok <pbartok@novell.com>
31707
31708         * ToolTip.cs (WndProc): Enable setting focus now that we have the
31709           required XplatUI functions.
31710
31711 2005-01-05  Peter Bartok <pbartok@novell.com>
31712
31713         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
31714           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
31715           to implement focus and activation handling; still incomplete and
31716           with debug output
31717
31718 2005-01-04  Peter Bartok <pbartok@novell.com>
31719
31720         * TextBoxBase.cs: Changed access level for Document property to
31721           match switch to internal for TextControl
31722
31723 2005-01-04  Peter Bartok <pbartok@novell.com>
31724
31725         * AccessibleObject: Added ComVisible attribute
31726
31727 2005-01-04  Jackson Harper  <jackson@ximian.com>
31728
31729         * X11Keyboard.cs: Remove unneeded var.
31730
31731 2005-01-04  Jackson Harper  <jackson@ximian.com>
31732
31733         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
31734         but PAINT.
31735         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
31736         ClientMessage. This makes apps exit cleanly (more often).
31737         
31738 2005-01-04  Jackson Harper  <jackson@ximian.com>
31739
31740         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
31741         handling focus, return correct colors and fonts,
31742         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
31743         handle selection, horizontal scrolling, and mouse interaction.
31744
31745 2005-01-04  Peter Bartok <pbartok@novell.com>
31746
31747         * ICommandExecutor.cs: Added
31748         * IDataGridColumnStyleEditingNotificationService.cs: Added
31749         * IFeatureSupport.cs: Added
31750         * IFileReaderService.cs: Added
31751         * IDataObject.cs: Added ComVisible attribute
31752         * AmbientProperties.cs: Added
31753         * BaseCollection.cs: Added missing attributes
31754         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
31755         * BaseCollection.cs: Added missing attributes
31756         * Binding.cs: Added TypeConverter attribute
31757         * BindingContext.cs: Added DefaultEvent attribute
31758         * BindingsCollection.cs: Added DefaultEvent attribute
31759         * Button.cs: Added DefaultValue attribute
31760         * DragEventArgs.cs: Added ComVisible attribute
31761         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
31762         * KeyEventArgs.cs: Added ComVisible attribute
31763         * KeyPressEventArgs.cs: Added ComVisible attribute
31764         * MouseEventArgs.cs: Added ComVisible attribute
31765         * NavigateEventArgs.cs: Added
31766         * NavigateEventHandler.cs: Added
31767         * FeatureSupport.cs: Added
31768         * OSFeature.cs: Added
31769         * Theme.cs: Added abstract Version property to support OSFeature
31770         * ThemeWin32Classic.cs: Added Version property to
31771           support OSFeature.Themes
31772         * ProgressBar.cs: Removed OnPaintBackground override, not required since
31773           the proper styles to avoid background drawing are set, also doesn't
31774           match MS signature
31775         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
31776         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
31777         * ScrollEventArgs.cs: Added ComVisible attribute
31778         * SplitterEventArgs.cs: Added ComVisible attribute
31779         * AccessibleSelection.cs: Added Flags attribute
31780         * Appearance.cs: Added ComVisible attribute
31781         * Border3DSide.cs: Added ComVisible attribute
31782         * Border3DStyle.cs: Added ComVisible attribute
31783         * BorderStyle.cs: Added ComVisible attribute
31784         * DragAction.cs: Added ComVisible attribute
31785         * ErrorBlinkStyle.cs: Added
31786         * ScrollEventType.cs: Added ComVisible attribute
31787         * AnchorStyles.cs: Added Editor attribute
31788         * DockStyle.cs: Added Editor attribute
31789         * HorizontalAlignment.cs: Added ComVisible attribute
31790         * HelpEventArgs.cs: Added ComVisible attribute
31791         * PaintEventArgs.cs: Added IDisposable
31792
31793 2005-01-04  Peter Bartok <pbartok@novell.com>
31794
31795         * TextControl.cs: Switched Line, LineTag and Document classes to
31796           internal
31797
31798 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
31799
31800         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
31801         Simple mode, fixes, IntegralHeight, etc.
31802
31803 2005-01-04  Peter Bartok <pbartok@novell.com>
31804
31805         * TextBoxBase.cs: Using proper font variable now
31806
31807 2005-01-04  Peter Bartok <pbartok@novell.com>
31808
31809         * Form.cs (ShowDialog): Set parent to owner, if provided
31810         * GroupBox.cs: Removed unused vars
31811         * TextControl.cs:
31812           - Added GetHashCode() for Document and LineTag classes
31813           - Removed unused variables
31814           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
31815             to allow translation between continuous char position and line/pos
31816         * CheckBox.cs: Removed vars that are provided by base class
31817         * RadioButton.cs: Removed vars that are provided by base class, added
31818           new keyword where required
31819         * LinkLabel.cs: Added new keyword where required
31820         * Control.cs (WndProc): Removed unused variable
31821         * TextBoxBase.cs:
31822           - Finished SelectionLength property
31823           - Implemented SelectionStart property
31824           - Implemented Text property
31825           - Removed unused vars
31826         * MessageBox.cs: Added new keyword where required
31827         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
31828           WndProc signature
31829         * MenuAPI.cs: Added new keyword where required
31830         * ButtonBase.cs: Removed vars that are provided by base class, added
31831           new keyword where required
31832         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
31833           argument to double, to allow compiling with csc 2.0 (Atsushi ran
31834           into this)
31835         * Application.cs (Run): Now triggers the ThreadExit event
31836         * CommonDialog.cs: Added new keyword where required; now properly sets
31837           parent (owner) for dialog
31838         * XplatUIX11.cs: Commented out unused vars
31839         * StatusBar.cs: Fixed signature for Text property
31840         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
31841
31842 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
31843
31844         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
31845         TrackBar.cs, MonthCalendar.cs: remove unused vars
31846
31847 2005-01-03  Jackson Harper  <jackson@ximian.com>
31848
31849         * ThemeWin32Classic.cs:
31850         * X11Keyboard.cs: Remove unused vars.
31851
31852 2005-01-03  Peter Bartok  <pbartok@novell.com>
31853
31854         * TextBox.cs:
31855           - set_Text: Tied into TextControl
31856           - set_TextAlignment: Tied into TextControl
31857         * TextControl.cs:
31858           - Added alignment properties and implemented alignment handling
31859             and drawing (still has a bug, not generating proper expose events)
31860           - Added new Line() constructor to allow passing the line alignment
31861           - Fixed selection setting, properly handling end<start now
31862           - Added aligment considerations to RecalculateDocument()
31863         * TextBoxBase.cs:
31864           - Now properly enforces control height for single line controls
31865           - Added support for CharacterCasing
31866           - Added IsInputKey override
31867           - Fixed Keys.Enter logic
31868           - Added SetBoundsCore override
31869           - Fixed mouse selection handling
31870
31871 2005-01-03  Jackson Harper  <jackson@ximian.com>
31872
31873         * TreeView.cs:
31874           - Collapse and uncheck all nodes when CheckBoxes is disabled.
31875           - Checkboxes are always aligned to the bottom of the node,
31876           regardless of item height.
31877           - Use the node bounds to draw the text so we can center it when
31878           the item height is greater then the font height.
31879           - Node::Bounds are only the text part of the node.
31880         * TreeNode.cs: New method to combine collapsing and unchecking all
31881           nodes recursively.
31882
31883 2005-01-02  Jackson Harper  <jackson@ximian.com>
31884
31885         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
31886         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
31887         tree when a check is changed. TODO: Only refresh the checked node.
31888
31889 2004-12-30  Jackson Harper  <jackson@ximian.com>
31890
31891         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
31892         * TreeNode.cs: When collapsing make sure to never collapse the
31893         root node.
31894
31895 2004-12-29  Jackson Harper  <jackson@ximian.com>
31896
31897         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
31898         
31899 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
31900
31901         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
31902
31903 2004-12-28  Peter Bartok  <pbartok@novell.com>
31904
31905         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
31906           not yet assigned
31907
31908 2004-12-28  Peter Bartok  <pbartok@novell.com>
31909
31910         * Control.cs (WndProc): Added WM_HELP handler, now generates
31911           HelpRequested event
31912         * Form.cs: Added HelpButton property and required support code
31913         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
31914
31915 2004-12-28  Peter Bartok  <pbartok@novell.com>
31916
31917         * CommonDialog.cs:
31918           - Made DialogForm.owner variable internal
31919           - Added check to ensure owner form is set before setting
31920             owner properties in CreateParams
31921
31922 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
31923
31924         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
31925           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
31926           GetCursorPos.  Fix major visibility issues.  Rework the windowing
31927           system to support borderless/titleless windows (implements menus).
31928           Fix GetWindowPos.  Implement initial background color support for
31929           views.
31930
31931 2004-12-28  Peter Bartok  <pbartok@novell.com>
31932
31933         * Form.cs (get_CreateParams): Make sure we have an owner before using
31934           the owner variable. Implement proper default if no owner exists
31935
31936 2004-12-28  Peter Bartok  <pbartok@novell.com>
31937
31938         * In preparation for making Managed.Windows.Forms the default build target
31939           for System.Windows.Forms, the following stubbed files were added.
31940           Dialogs are currently being implemented by contributors and are only
31941           short-term place holders.
31942         * ColorDialog.cs: Initial check-in (minmal stub)
31943         * DataGrid.cs: Initial check-in (minimal stub)
31944         * DataGridLineStyle.cs: Initial check-in (minimal stub)
31945         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
31946         * DataGridTableStyle.cs: Initial check-in (minimal stub)
31947         * FontDialog.cs: Initial check-in (minimal stub)
31948         * FileDialog.cs: Initial check-in (minimal stub)
31949         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
31950         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
31951         * OpenFileDialog: Initial check-in (minimal stub)
31952         * IComponentEditorPageSite.cs: Initial check-in
31953         * Splitter.cs: Initial check-in (for Jackson)
31954         * SplitterEventArgs.cs: Initial check-in (for Jackson)
31955         * SplitterEventHandler.cs: Initial check-in (for Jackson)
31956         * TextBox.cs: Initial check-in; still needs some wiring to
31957           TextControl backend
31958         * Form.cs: Implemented ControlBox property
31959         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
31960         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
31961         * TextControl.cs: Added selection functionality; added todo header
31962         * TextBoxBase.cs:
31963           - Implemented Lines property
31964           - Implemented TextHeight property
31965           - Implemented SelectedText property
31966           - Implemented SelectionLength property
31967           - Implemented SelectAll method
31968           - Implemented ToString method
31969           - Removed and cleaned up some debug code
31970           - Implemented (still buggy) mouse text selection
31971
31972 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
31973
31974         * ComboBox.cs: Complete DropDownList implementation, fixes.
31975
31976 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
31977
31978         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
31979         * ComboBoxStyle.cs: ComboBoxStyle enum
31980         * ComboBox.cs: Initial work on ComboBox control
31981
31982 2004-12-21  Peter Bartok  <pbartok@novell.com>
31983
31984         * Control.cs (ctor, CreateParams): Moved setting of is_visible
31985           forward so that anything that creates a window gets the default,
31986           also no longer uses Visible property in CreateParams to avoid
31987           walking up the parent chain and possibly get the wrong visible
31988           status. Fixed IsVisible to no longer walk up to the parent.
31989
31990 2004-12-21  Peter Bartok  <pbartok@novell.com>
31991
31992         * Form.cs (ShowDialog): Unset modality for the proper window
31993  
31994 2004-12-20  Peter Bartok  <pbartok@novell.com>
31995
31996         * CommonDialog.cs: Initial check-in
31997
31998 2004-12-20  Peter Bartok  <pbartok@novell.com>
31999
32000         * Control.cs (Visible): Now uses the parent window instead of the
32001           client area window for the property
32002
32003         * Form.cs
32004           - ShowDialog(): Now uses the proper window for modality
32005           - The default visibility state for the form parent is now false. This
32006             will prevent the user from seeing all the changes to the form and
32007             its controls before the application hits Application.Run()
32008           - Removed some stale commented out code
32009
32010         * NativeWindow.cs:
32011           - Added FindWindow() method to have a method to check for existence
32012             of a window handle
32013           - Added ability to override default exception handling (for example
32014             when debugging with VS.Net; to do this the ExternalExceptionHandler
32015             define must be set
32016           - Removed some useless debug output
32017
32018         * XplatUIX11.cs:
32019           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
32020             not working as expected
32021           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
32022             property to allow switching back to the modal window if focus is
32023             given to another one of our windows (Application Modal)
32024           - Now only sets override_redirect if we create a window
32025             without WS_CAPTION
32026           - Moved EventMask selection before mapping of newly created window
32027             so we can catch the map event as well
32028           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
32029           - Added various Atom related DllImports
32030           - Implemented Exit() method
32031           - .ctor() : No longer shows window if WS_VISIBLE is not defined
32032             in the CreateParams
32033
32034         * MessageBox.cs: Now properly deals with the FormParent window by
32035           providing an override the FormParent CreateParams property to
32036           set as POPUP instead of OVERLAPPED window.
32037
32038 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
32039
32040         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
32041         Minor code cleanup.
32042
32043 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
32044         
32045         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
32046
32047 2004-12-18  Peter Bartok  <pbartok@novell.com>
32048
32049         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
32050           implementing SetModal() method
32051
32052 2004-12-18  Peter Bartok  <pbartok@novell.com>
32053
32054         * X11Structs.cs (XGCValues): Fixed type of function element
32055         * XplatUI.cs: Added ScrollWindow() method
32056         * XplatUIDriver.cs: Added ScrollWindow() abstract
32057         * XplatUIWin32.cs: Implemented ScrollWindow() method
32058         * XplatUIX11.cs: Implemented ScrollWindow() method
32059         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
32060
32061 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
32062
32063         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
32064         Some more keyboard support (INCOMPLETE)
32065
32066 2004-12-17  Peter Bartok  <pbartok@novell.com>
32067
32068         * TextControl.cs:
32069         - Added color attribute to line tags.
32070         - Added color argument to all functions dealing with tags
32071         - Added color argument support to various functions
32072         - Fixed miss-calculation of baseline/shift in certain circumstances
32073
32074         * TextBoxBase.cs: Added new color option to test code
32075
32076 2004-12-17  Jackson Harper  <jackson@ximian.com>
32077
32078         * TreeNode.cs:
32079         * MonthCalendar.cs: Signature fixes
32080
32081 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
32082
32083         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
32084         keyboard event moved it.  Create a new graphics context for each paint resolves this
32085
32086 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
32087
32088         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
32089         Make caret exist and go blink blink.  Initial keyboard support.
32090         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
32091         works.
32092
32093 2004-12-17  Jackson Harper  <jackson@ximian.com>
32094
32095         * XplatUIStructs.cs: Updated set of virtual keycodes.
32096         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
32097
32098 2004-12-17  Jackson Harper  <jackson@ximian.com>
32099
32100         * XplatUIX11.cs: Prune old keyboard code.
32101
32102 2004-12-17  Jackson Harper  <jackson@ximian.com>
32103
32104         * XplatUIX11.cs: When generating mouse wparams get the modifier
32105         keys from the ModifierKeys property.
32106
32107 2004-12-17  Jackson Harper  <jackson@ximian.com>
32108
32109         * X11Keyboard.cs: Send up/down input when generating
32110         messages. Remove some unused vars.
32111
32112 2004-12-17  Jackson Harper  <jackson@ximian.com>
32113
32114         * TabControl.cs:
32115         * TreeView.cs: get rid of warnings.
32116
32117 2004-12-17  Jackson Harper  <jackson@ximian.com>
32118
32119         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
32120
32121 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
32122
32123         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
32124           CheckedListBox.cs: Implementation
32125
32126 2004-12-17  Peter Bartok  <pbartok@novell.com>
32127
32128         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
32129
32130 2004-12-16  Peter Bartok  <pbartok@novell.com>
32131
32132         * TextControl.cs:
32133           - InsertCharAtCaret(): Fixed start pos fixup
32134           - CaretLine_get: No longer derives the line from the tag, the tag
32135             could be stale if lines in the document have been added or deleted
32136           - RebalanceAfterDelete(): Fixed bug in balancing code
32137           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
32138           - Line.Streamline(): Now can also elminate leading empty tags
32139           - DumpTree(): Added a few more tests and prevented exception on
32140             uninitialized data
32141           - Added Debug section for Combining lines
32142           - Delete(): Now copies all remaining properties of a line
32143           
32144         * TextBoxBase.cs:
32145           - Left mousebutton now sets the caret (and middle button still acts
32146             as formatting tester, which must go away soon)
32147           - Added Debug section for Deleting/Combining lines
32148           - Fixed calculations for UpdateView after Combining lines
32149
32150 2004-12-16  Peter Bartok  <pbartok@novell.com>
32151
32152         * TextControl.cs: Now properly aligns text on a baseline, using the
32153           new XplatUI.GetFontMetrics() method. Simplified several calculations
32154         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
32155           defined
32156
32157 2004-12-16  Peter Bartok  <pbartok@novell.com>
32158
32159         * XplatUI.cs: Added GetFontMetrics() method
32160         * XplatUIDriver.cs: Added GetFontMetrics() abstract
32161         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
32162           into libgdiplus, our private GetFontMetrics function
32163         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
32164         * XplatUIWin32.cs: Implemented GetFontMetrics() method
32165
32166 2004-12-16  Jackson Harper  <jackson@ximain.com>
32167
32168         * XplatUIStruct.cs: Add enum for dead keys
32169         * X11Keyboard.cs: Map and unmap dead keys.
32170
32171 2004-12-16  Jackson Harper  <jackson@ximian.com>
32172
32173         * X11Keyboard.cs: Detect and use the num lock mask.
32174
32175 2004-12-16  Peter Bartok  <pbartok@novell.com>
32176
32177         * Control.cs (CreateGraphics): Added check to make sure the
32178           handle of the window exists before calling Graphics.FromHwnd()
32179
32180 2004-12-16  Peter Bartok  <pbartok@novell.com>
32181
32182         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
32183           contains a lot of code that's not supposed to be there for the
32184           real thing, but required for developing/testing the textbox
32185           backend.
32186
32187 2004-12-16  Peter Bartok  <pbartok@novell.com>
32188
32189         * TextControl.cs:
32190         - Fixed Streamline method
32191         - Added FindTag method to Line
32192         - Added DumpTree method for debugging
32193         - Added DecrementLines() method for deleting lines
32194         - Fixed UpdateView to update the cursor to end-of-line on single-line
32195           updates
32196         - Added PositionCaret() method
32197         - Fixed MoveCaret(LineDown) to move into the last line, too
32198         - Added InsertChar overload
32199         - Fixed InsertChar tag offset calculations
32200         - Added DeleteChar() method
32201         - Added Combine() method for folding lines
32202         - Fixed Delete() method, no longer allocates wasted Line object and
32203           now copies all properties when swapping nodes
32204         - Delete() method now updates document line counter
32205
32206 2004-12-15  Jackson Harper  <jackson@ximian.com>
32207
32208         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
32209         * X11Keyboard.cs: Expose the currently selected modifier keys
32210         through a property.
32211
32212 2004-12-15  Peter Bartok  <pbartok@novell.com>
32213
32214         * TextControl.cs: Initial check-in. Still incomplete
32215
32216 2004-12-15  Jackson Harper  <jackson@ximian.com>
32217
32218         * TreeNode.cs:
32219         * TreeView.cs: Fix build on csc (second time today ;-))
32220
32221 2004-12-15  Jackson Harper  <jackson@ximian.com>
32222
32223         * TreeView.cs: Store the treenodes plus/minus box bounds when it
32224         is calculated and use this for click testing.
32225         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
32226
32227 2004-12-15  Jackson Harper  <jackson@ximian.com>
32228
32229         * TreeView.cs: Pass the nodes image index to the image list when
32230         drawing that image.
32231
32232 2004-12-15  Jackson Harper  <jackson@ximian.com>
32233
32234         * X11Keyboard.cs: Set messages hwnd.
32235         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
32236         post_message calls.
32237
32238 2004-12-15  Jackson Harper  <jackson@ximian.com>
32239
32240         * X11Keyboard.cs: Fix to compile with csc.
32241         
32242 2004-12-15  Jackson Harper  <jackson@ximian.com>
32243
32244         * X11Structs.cs: Add key mask values
32245         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
32246         * X11Keyboard.cs: New file - Extrapolates and interpolates key
32247         down/up foo into WM_CHAR foo
32248         * KeyboardLayouts.cs: Common keyboard layouts
32249         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
32250         post messages into the main queue.
32251
32252 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
32253
32254         * Button.cs: implement ProcessMnemonic
32255         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
32256           brushes everytime
32257         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
32258         * ButtonBase.cs: Show HotkeyPrefix (not the &)
32259
32260 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
32261         
32262         * MonthCalendar.cs: Implemented click-hold for next/previous month
32263           and date selection
32264           
32265 2004-12-11  Peter Bartok  <pbartok@novell.com>
32266
32267         * X11Structs.cs:
32268           - Added XKeyboardState (moved from XplatUIX11.cs)
32269           - Added XCreateGC related enums and structures
32270           - Added GXFunction for XSetFunction
32271
32272         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
32273
32274         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
32275           CaretVisible() calls
32276
32277         * ToolTip.cs: Added code to prevent stealing focus from app windows
32278
32279         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
32280           DestroyCaret, SetCaretPos and CaretVisible)
32281
32282         * XplatUIX11.cs:
32283           - Added implementation for caret functions
32284           - Moved hover variables into a struct, to make it a bit easier
32285             on the eyes and to debug
32286           - Removed XKeyboardState (moved to XplatUIX11.cs)
32287           - Moved Keyboard properties into the properties region
32288
32289         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
32290           call to get a graphics context for our control
32291
32292         * XplatUIOSX.cs: Added empty overrides for the new caret functions
32293
32294         * TreeView.cs: Fixed bug. No matter what color was set it would always
32295           return SystemColors.Window
32296
32297         * XplatUIWin32.cs: Implemented caret overrides
32298
32299 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
32300
32301         * ListBox.cs: fire events, implement missing methods and properties,
32302         sorting.
32303
32304 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
32305
32306         * MonthCalendar.cs: invalidation bug fixing
32307         * ThemeWin32Classic.cs: paint fixing
32308
32309 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
32310
32311         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
32312         prepare the CGContextRef there now.
32313
32314 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
32315
32316         * MonthCalendar.cs:
32317           - optimisationL only invalidate areas that have changed
32318         * ThemeWin32Classic.cs:
32319           - only paint parts that intersect with clip_area
32320
32321 2004-12-09  Peter Bartok  <pbartok@novell.com>
32322
32323         * Application.cs: Undid changes from r37004 which cause problems
32324         on X11
32325
32326 2004-12-09  Ravindra  <rkumar@novell.com>
32327
32328         * ToolBar.cs: Added support for displaying ContextMenu
32329         attached to a button on ToolBar.
32330         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
32331         property.
32332
32333 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
32334
32335         * Label.cs: autosize works in text change and removes unnecessary
32336         invalidate
32337
32338 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
32339
32340         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
32341         remove warnings
32342
32343 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
32344
32345         * XplatUIOSX.cs: Added mouse move/click/grab support
32346         Remove some debugging WriteLines not needed anymore.
32347         Add window resizing/positioning.
32348         Fix visibility on reparenting.
32349
32350 2004-12-08  Peter Bartok  <pbartok@novell.com>
32351
32352         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
32353
32354 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
32355
32356         * XplatUIOSX.cs: Initial checkin
32357         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
32358
32359 2004-12-03  Ravindra <rkumar@novell.com>
32360
32361         * ListView.cs: Added some keybindings and fixed scrolling.
32362         ScrollBars listen to ValueChanged event instead of Scroll
32363         Event. This would let us take care of all changes being
32364         done in the scrollbars' values programmatically or manually.
32365         * ListView.cs (CanMultiselect): Added a check for shift key.
32366         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
32367         * ListViewItem.cs (Clone): Fixed. We need to make a copy
32368         of ListViewSubItemCollection as well.
32369
32370 2004-12-06  Peter Bartok <pbartok@novell.com>
32371
32372         * Control.cs (Parent): Added check and exception to prevent
32373         circular parenting
32374
32375 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
32376
32377         * ListBox.cs: implemented clipping, selection single and multiple,
32378         bug fixing
32379
32380 2004-12-03  Ravindra <rkumar@novell.com>
32381
32382         * ListView.cs (ListView_KeyDown):
32383         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
32384         when CTRL key is pressed.
32385         * ListViewItem.cs (Selected): Fixed setting the property.
32386
32387 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
32388
32389         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
32390
32391         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
32392         MinimizeBox, ShowInTaskbar, TopMost properties.
32393
32394         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
32395         will be implemented).
32396
32397 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
32398
32399         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
32400
32401         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
32402         tests.
32403         
32404         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
32405         
32406         * TreeView.cs: BackColor is Colors.Window.
32407
32408 2004-12-01  Jackson Harper  <jackson@ximian.com>
32409
32410         * TreeView.cs: When resizing the tree if the user is making it
32411         smaller we don't get expose events, so we need to handle adding
32412         the horizontal scrollbar in the size changed handler as well as
32413         the expose handler.
32414
32415 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
32416
32417         * DrawItemState.cs: fixes wrong enum values
32418
32419 2004-12-01  Jackson Harper  <jackson@ximian.com>
32420
32421         * TreeView.cs: Resize the hbar as well as the vbar on resize.
32422
32423 2004-12-01  Jackson Harper  <jackson@ximian.com>
32424
32425         * NodeLabelEditEventArgs.cs:
32426         * NodeLabelEditEventHandler.cs:
32427         * OpenTreeNodeEnumerator.cs:
32428         * TreeNode.cs:
32429         * TreeNodeCollection.cs:
32430         * TreeView.cs:
32431         * TreeViewAction.cs:
32432         * TreeViewCancelEventArgs.cs:
32433         * TreeViewCancelEventHandler.cs:
32434         * TreeViewEventArgs.cs:
32435         * TreeViewEventHandler.cs: Initial implementation.
32436
32437 2004-12-01  Ravindra <rkumar@novell.com>
32438
32439         * ListView.cs (CalculateListView): Fixed scrolling related
32440         calculations. Also, removed some debug statements from other
32441         places.
32442         * ListViewItem.cs: Changed access to 'selected' instance variable
32443         from private to internal.
32444         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
32445
32446 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
32447
32448         * ThemeWin32Classic.cs: remove cache of brush and pens for
32449         specific controls and use the global system, fixes scrollbutton
32450         bugs (for small sizes, disabled, etc)
32451         
32452         * ScrollBar.cs: does not show the thumb for very small controls
32453         (as MS) and allow smaller buttons that the regular size
32454
32455 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
32456
32457         * UpDownBase.cs: Add abstract methods for the interface.
32458         Add new virtual methods (need to be hooked up to TextEntry when it
32459         exists).
32460         Add override methods for most features.
32461         Computes the size, forces the height of the text entry.
32462
32463         * NumericUpDown.cs: Put here the current testing code.
32464
32465         * Set eol-style property on all files that do not have mixed line
32466         endings, to minimize the future problems.  There are still a few
32467         files with mixed endings, and someone should choose whether they
32468         want to move it or not.
32469
32470 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
32471
32472         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
32473         System.Colors
32474         
32475 2004-11-30  Ravindra <rkumar@novell.com>
32476
32477         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
32478         drawing and replaced use of SystemColors by theme colors.
32479         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
32480         * ListView.cs (ListViewItemCollection.Add): Throw exception when
32481         same ListViewItem is being added more than once.
32482
32483 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
32484
32485         * MonthCalendar.cs:
32486           - ControlStyles love to make the control not flicker
32487           
32488 2004-11-30  Peter Bartok  <pbartok@novell.com>
32489
32490         * CharacterCasing.cs: Added
32491
32492 2004-11-29  Peter Bartok  <pbartok@novell.com>
32493
32494         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
32495           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
32496           I am removing these files as they conflict with already completed
32497           work. While it is fantastic to get contributions to MWF, I
32498           respectfully ask that everyone please coordinate their contributions
32499           through mono-winforms-list or #mono-winforms at this time. We're
32500           explicitly avoiding stubbing and don't want controls that don't have
32501           their basic functionality implemented in svn. Please also see
32502           http://www.mono-project.com/contributing/winforms.html
32503
32504
32505 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
32506
32507         * Application.cs (ModalRun): Don't hang after exit.
32508
32509         * Theme.cs: New TreeViewDefaultSize property.
32510
32511         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
32512         with less hardcoded SystemColors constant.
32513         Implemented TreeViewDefaultSize.
32514
32515         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
32516         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
32517
32518
32519 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
32520
32521         * MonthCalendar.cs:
32522           - Fix NextMonthDate and PrevMonthDate click moving calendar
32523
32524 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
32525
32526         * MonthCalendar.cs:
32527           - Fix usage of ScrollChange Property when scrolling months
32528
32529 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
32530
32531         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
32532          - Fixes menu destroying
32533          - Support adding and removing items on already created menus
32534
32535 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
32536
32537         * MonthCalendar.cs:
32538           - Re-worked all bolded dates handling to match win32
32539         * ThemeWin32Classic.cs:
32540           - Fixed rendering with bolded dates
32541
32542 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
32543
32544         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
32545         - Horizontal scroolbar
32546         - Multicolumn
32547         - Fixes
32548
32549
32550 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
32551
32552         * MonthCalendar.cs:
32553           - Fix Usage of MaxSelectionCount from SelectionRange
32554           - Fixed Shift + Cursor Selection
32555           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
32556           - Fixed normal cursor selection to be compat with win32
32557           - Fixed Shift + Mouse Click selection
32558
32559 2004-11-24  Peter Bartok <pbartok@novell.com>
32560
32561         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
32562         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
32563         * XplatUIX11.cs:
32564           - CreatedKeyBoardMsg now updates keystate with Alt key
32565           - Added workaround for timer crash to CheckTimers, Jackson will
32566             develop a proper fix and check in later
32567           - Implemented DispatchMessage
32568           - Removed calling the native window proc from GetMessage (call
32569             now moved to DispatchMessage)
32570
32571         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
32572           the keydata (Fixes bug #69831)
32573
32574         * XplatUIWin32.cs:
32575           - (DispatchMessage): Switched to return IntPtr
32576           - Added DllImport for SetFocus
32577
32578 2004-11-24  Ravindra <rkumar@novell.com>
32579
32580         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
32581         background drawing.
32582         * ListViewItem.cs: Fixed various properties, calculations
32583         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
32584         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
32585         and some internal properties. Fixed MouseDown handler and Paint
32586         method.
32587
32588 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
32589
32590         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
32591
32592 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
32593
32594         * ContainerControl.cs: correct accidental check in of local changes
32595
32596 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
32597
32598         * ThemeWin32Classic.cs:
32599                 - Fixed Drawing Last month in grid (sometimes not showing)
32600         * MonthCalendar.cs:
32601                 - Fixed title width calculation bug (makeing title small)
32602
32603 2004-11-23  Peter Bartok <pbartok@novell.com>
32604
32605         * XplatUIX11.cs:
32606           - Added generation of WM_MOUSEHOVER event
32607           - Added missing assignment of async_method atom
32608           - Fixed WM_ERASEBKGND; now only redraws the exposed area
32609
32610 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
32611
32612         * ThemeWin32Classic.cs:
32613                 - Fixed Drawing of today circle when showtodaycircle not set
32614                 - fixed drawing of first and last month in the grid (gay dates)
32615         * MonthCalendar.cs:
32616                 - Fixed Drawing of today circle
32617                 - Fixed drawing of grady dates
32618                 - Fixed HitTest for today link when ShowToday set to false
32619                 - Fixed DefaultSize to obey ShowToday
32620
32621 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
32622
32623         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
32624         * System.Windows.Forms/Theme.cs
32625         * MonthCalendar.cs: added for MonthCalendar
32626         * SelectionRange.cs: added for MonthCalendar
32627         * Day.cs: added for MonthCalendar: added for MonthCalendar
32628         * DateRangeEventArgs.cs: added for MonthCalendar
32629         * DateRangeEventHandler.cs: added for MonthCalendar
32630
32631 2004-11-22  Ravindra <rkumar@novell.com>
32632
32633         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
32634         property.
32635
32636 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
32637
32638         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
32639         event handler.
32640         
32641         * NumericUpDown.cs: Added new implementation.
32642         * UpDownBase.cs: Added new implementation.
32643
32644         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
32645         implementations.
32646         
32647         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
32648         implementations.
32649
32650         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
32651         methods.
32652
32653 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
32654
32655         * Timer.cs  (Dispose): Should call the base dispose when
32656         overriding.
32657
32658 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
32659
32660         * ScrollBar.cs: updates thumb position when max, min or increment
32661         is changed
32662
32663 2004-11-21  Ravindra <rkumar@novell.com>
32664
32665         * ListView.cs: Implemented item selection, activation and
32666         column header style. Fixed properties to do a redraw, if
32667         required. Added support for MouseHover, DoubleClick, KeyDown
32668         and KeyUp event handling and some minor fixes.
32669         * ListViewItem.cs: Fixed constructor.
32670         * ThemeWin32Classic.cs: Improved drawing for ListView.
32671
32672 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
32673
32674         * ThemeWin32Classic.cs: initial listbox drawing code
32675         * DrawMode.cs: new enumerator
32676         * ListControl.cs: stubbed class
32677         * ListBox.cs: initial implementation
32678         * Theme.cs: new methods definitions
32679         * SelectionMode.cs: new enumerator
32680
32681 2004-11-17  Peter Bartok  <pbartok@novell.com>
32682
32683         * XplatUIWin32.cs: Added double-click events to the class style
32684         * Control.cs (WndProc):
32685           - Added handling of click-count to MouseDown/ MouseUp events.
32686           - Added handling of middle and right mouse buttons
32687           - Removed old debug code
32688
32689 2004-11-17  Jackson Harper  <jackson@ximian.com>
32690
32691         * XplatUIX11.cs: Use the new Mono.Unix namespace.
32692
32693 2004-11-17  Ravindra <rkumar@novell.com>
32694
32695         * ListView.cs: Added event handling for MouseMove/Up/Down.
32696         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
32697         * ThemeWin32Classic.cs: We need to clear the graphics context and
32698         draw column header in a proper state.
32699
32700
32701 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
32702
32703         *  Menu.cs: fixes signature
32704
32705 2004-11-16  Peter Bartok  <pbartok@novell.com>
32706
32707         * XplatUIX11.cs (GetMessage): Implemented generation of
32708           double click mouse messages
32709
32710 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
32711
32712         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
32713         not by menu
32714
32715 2004-11-11  Peter Bartok  <pbartok@novell.com>
32716
32717         * HandleData.cs: Added Visible property
32718         * XplatUIX11.cs (IsVisible): Now uses Visible property from
32719           HandleData
32720         * XplatUIX11.cs: Removed old debug leftovers
32721         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
32722         * Control.cs (WndProc): Removed old debug leftovers,
32723           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
32724           needed WM_SIZE handling
32725
32726 2004-11-11  Jackson Harper  <jackson@ximian.com>
32727
32728         * OwnerDrawPropertyBag.cs:
32729         * TreeViewImageIndexConverter.cs: Initial implementation
32730
32731 2004-11-10  Jackson Harper  <jackson@ximian.com>
32732
32733         * ThemeWin32Classic.cs:
32734         * TabControl.cs: instead of moving tabs by the slider pos just
32735         start drawing at the tab that is offset by the slider. This way
32736         scrolling always moves by exactly one tab.
32737
32738 2004-11-10  Jackson Harper  <jackson@ximian.com>
32739
32740         * TabControl.cs: You can only scroll left when the slider has
32741         already ben moved right.
32742         
32743 2004-11-10  Jackson Harper  <jackson@ximian.com>
32744
32745         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
32746         the clip area.
32747         
32748 2004-11-10  Jackson Harper  <jackson@ximian.com>
32749
32750         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
32751         clip area.
32752         
32753 2004-11-09  Jackson Harper  <jackson@ximian.com>
32754
32755         * TabControl.cs (CalcXPos): New helper method so we can determine
32756         the proper place to start drawing vertical tabs.
32757         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
32758         
32759 2004-11-09  Jackson Harper  <jackson@ximian.com>
32760
32761         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
32762         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
32763         and Bottom, left and right are illegal values for this and
32764         multiline is enabled when the alignment is set to left or right.
32765         (DrawTab): Each alignment block should draw the text itself now
32766         because Left requires special love. Also add rendering for Left
32767         aligned tabs.
32768         
32769 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
32770
32771         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
32772         does not destroy the windows, removes debugging messages
32773
32774 2004-11-09  jba  <jba-mono@optusnet.com.au>
32775
32776         * ThemeWin32Classic.cs
32777         (DrawButtonBase): Fix verticle text rect clipping in windows
32778         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
32779         rendering and incorrect text rect clipping
32780         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
32781         rendering and incorrect text rect clipping
32782         
32783 2004-11-08  Jackson Harper  <jackson@ximian.com>
32784
32785         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
32786         bottom when they are bottom aligned so the bottoms of the tabs get
32787         displayed.
32788         * TabControl.cs (DropRow): Move rows up instead of down when the
32789         tab control is bottom aligned.
32790
32791 2004-11-08 13:59  pbartok
32792
32793         * XplatUIX11.cs:
32794           - Added handling for various window styles
32795           - Added handling for popup windows
32796           - Added SetTopmost handling
32797
32798 2004-11-08 13:55  pbartok
32799
32800         * XplatUIWin32.cs:
32801           - Added argument to SetTopmost method
32802           - Fixed broken ClientToScreen function
32803
32804 2004-11-08 13:53  pbartok
32805
32806         * XplatUIStructs.cs:
32807           - Added missing WS_EX styles
32808
32809 2004-11-08 13:53  pbartok
32810
32811         * XplatUI.cs, XplatUIDriver.cs:
32812           - Added argument to SetTopmost
32813
32814 2004-11-08 13:52  pbartok
32815
32816         * X11Structs.cs:
32817           - Added XSetWindowAttributes structure
32818           - Improved XWindowAttributes structure
32819           - Added SetWindowValuemask enum
32820           - Added window creation arguments enum
32821           - Added gravity enum
32822           - Added Motif hints structure
32823           - Added various Motif flags and enums
32824           - Added PropertyMode enum for property functions
32825
32826 2004-11-08 13:50  pbartok
32827
32828         * Form.cs:
32829           - Fixed arguments for updated SetTopmost method
32830
32831 2004-11-08 13:49  pbartok
32832
32833         * ToolTip.cs:
32834           - Fixed arguments for updated SetTopmost function
32835           - Fixed usage of PointToClient
32836
32837 2004-11-08 13:44  pbartok
32838
32839         * MenuAPI.cs:
32840           - Added Clipping of children and siblings
32841
32842 2004-11-08 13:41  pbartok
32843
32844         * MainMenu.cs:
32845           - Removed SetMenuBarWindow call. We do this in Form.cs
32846
32847 2004-11-08 13:40  jackson
32848
32849         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
32850           scrolling jimmi in the correct location with bottom aligned tabs
32851
32852 2004-11-08 13:36  pbartok
32853
32854         * ContainerControl.cs:
32855           - Implemented BindingContext
32856           - Implemented ParentForm
32857
32858 2004-11-08 12:46  jackson
32859
32860         * TabControl.cs: Put bottom rendered tabs in the right location
32861
32862 2004-11-08 07:15  jordi
32863
32864         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
32865           removes dead code
32866
32867 2004-11-05 17:30  jackson
32868
32869         * TabControl.cs: When selected tabs are expanded make sure they
32870           don't go beyond the edges of the tab control
32871
32872 2004-11-05 14:57  jackson
32873
32874         * TabControl.cs: Reset show_slider so if the control is resized to
32875           a size where it is no longer needed it's not displayed anymore
32876
32877 2004-11-05 13:16  jackson
32878
32879         * TabControl.cs: Make tab pages non visible when added to the
32880           control
32881
32882 2004-11-05 12:42  jackson
32883
32884         * TabControl.cs: Implement SizeMode.FillToRight
32885
32886 2004-11-05 12:16  jackson
32887
32888         * Control.cs: Do not call CreateHandle if the handle is already
32889           created
32890
32891 2004-11-05 11:46  jackson
32892
32893         * TabControl.cs: Remove superflous call to CalcTabRows
32894
32895 2004-11-05 09:07  jackson
32896
32897         * XplatUIX11.cs: Update for Mono.Posix changes
32898
32899 2004-11-05 07:00  ravindra
32900
32901         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
32902           scrolling.
32903
32904 2004-11-04 22:47  jba
32905
32906         * ThemeWin32Classic.cs:
32907           - Fix Button rendering for FlatStyle = Flat or Popup
32908           - Fix RadioButton and CheckBox rendering when Appearance = Button
32909             (normal and flatstyle).
32910           - Correct outer rectangle color when drawing focus rectangle
32911           - Adjust button bounds to be 1 px smaller when focused
32912           - Make button not draw sunken 3d border when pushed (windows compat)
32913           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
32914           - Offset the text in RadioButton and Checkbox when being rendered as
32915           a button.
32916           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
32917           radiobuttons
32918           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
32919           - Fixed disabled text rendering for normally rendered radiobuttons
32920
32921 2004-11-04 10:26  jackson
32922
32923         * TabControl.cs: Recalculate tab rows when resizing
32924
32925 2004-11-04 07:47  jordi
32926
32927         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
32928           collection completion, drawing issues, missing features
32929
32930 2004-11-04 05:03  ravindra
32931
32932         * ScrollBar.cs:
32933                 - We need to recalculate the Thumb area when
32934                 LargeChange/maximum/minimum values are changed.
32935           - We set the 'pos' in UpdatePos() method to minimum, if it's less
32936                 than minimum. This is required to handle the case if large_change is
32937                 more than max, and use LargeChange property instead of large_change
32938                 variable.
32939           - We return max+1 when large_change is more than max, like MS does.
32940
32941 2004-11-04 04:29  ravindra
32942
32943         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
32944                 - Changed default value signatures (prefixed all with ListView).
32945                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
32946                 ListView.
32947           - Fixed calculations for ListViewItem and implemented Clone()
32948           method.
32949
32950 2004-11-04 04:26  ravindra
32951
32952         * Theme.cs, ThemeWin32Classic.cs:
32953                 - Changed default ListView values signatures (prefixed all with
32954                 ListView).
32955           - Fixed default size values for VScrollBar and HScrollBar.
32956                 - Fixed DrawListViewItem method.
32957
32958 2004-11-04 04:05  ravindra
32959
32960         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
32961
32962 2004-11-04 04:04  ravindra
32963
32964         * ImageList.cs: Implemented the missing overload for Draw method.
32965
32966 2004-11-03 19:29  jackson
32967
32968         * TabControl.cs: Handle dropping rows on selection properly
32969
32970 2004-11-03 11:59  jackson
32971
32972         * TabControl.cs: remove debug code
32973
32974 2004-11-03 11:52  jackson
32975
32976         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
32977           the scrolly widgerywoo
32978
32979 2004-11-02 13:52  jackson
32980
32981         * TabControl.cs: Resize the tab pages and tabs when the tab control
32982           is resized
32983
32984 2004-11-02 13:40  jackson
32985
32986         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
32987           selected tab to the bottom
32988
32989 2004-11-02 13:39  jackson
32990
32991         * TabPage.cs: Store the tab pages row
32992
32993 2004-11-02 12:33  jordi
32994
32995         * MenuItem.cs: fixes handle creation
32996
32997 2004-11-02 11:42  jackson
32998
32999         * TabControl.cs: signature fix
33000
33001 2004-11-02 08:56  jackson
33002
33003         * TabControl.cs: Calculate whether the tab is on an edge properly.
33004           Remove top secret debugging code
33005
33006 2004-11-01 19:57  jackson
33007
33008         * TabControl.cs: Add click handling, and proper sizing
33009
33010 2004-11-01 19:47  jackson
33011
33012         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
33013           tab controls
33014
33015 2004-11-01 19:39  jackson
33016
33017         * TabPage.cs: add internal property to store the bounds of a tab
33018           page
33019
33020 2004-10-30 04:23  ravindra
33021
33022         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
33023           values.
33024
33025 2004-10-30 04:21  ravindra
33026
33027         * ListView.cs, ListViewItem.cs: Added support for scrolling and
33028           fixed calculations.
33029
33030 2004-10-30 03:06  pbartok
33031
33032         * XplatUIX11.cs:
33033           - Removed extension of DllImported libs
33034
33035 2004-10-29 09:55  jordi
33036
33037         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
33038           navigation, itemcollection completion, menu fixes
33039
33040 2004-10-27 22:58  pbartok
33041
33042         * XplatUIX11.cs:
33043           - Now throws a nice error message when no X display could be opened
33044
33045 2004-10-26 13:51  jordi
33046
33047         * ListView.cs: removes warning
33048
33049 2004-10-26 03:55  ravindra
33050
33051         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
33052           ThemeWin32Classic.cs: Some formatting for my last checkins.
33053
33054 2004-10-26 03:36  ravindra
33055
33056         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
33057           control and default values.
33058
33059 2004-10-26 03:35  ravindra
33060
33061         * Theme.cs: Added some default values for ListView control.
33062
33063 2004-10-26 03:33  ravindra
33064
33065         * ToolBar.cs: ToolBar should use the user specified button size, if
33066           there is any. Added a size_specified flag for the same.
33067
33068 2004-10-26 03:33  ravindra
33069
33070         * ColumnHeader.cs: Added some internal members and calculations for
33071           ColumnHeader.
33072
33073 2004-10-26 03:32  ravindra
33074
33075         * ListViewItem.cs: Calculations for ListViewItem.
33076
33077 2004-10-26 03:31  ravindra
33078
33079         * ListView.cs: Added some internal members and calculations for
33080           ListView.
33081
33082 2004-10-22 13:31  jordi
33083
33084         * MenuAPI.cs: speedup menus drawing
33085
33086 2004-10-22 13:16  jackson
33087
33088         * XplatUIX11.cs: Make sure to update exposed regions when adding an
33089           expose event
33090
33091 2004-10-22 11:49  jackson
33092
33093         * Control.cs: oops
33094
33095 2004-10-22 11:41  jackson
33096
33097         * Control.cs: Check to see if the window should have its background
33098           repainted by X when drawing.
33099
33100 2004-10-22 11:31  jackson
33101
33102         * XplatUIX11.cs: When invalidating areas only use XClearArea if
33103           clear is true, this way we do not get flicker from X repainting the
33104           background
33105
33106 2004-10-22 11:28  jackson
33107
33108         * XEventQueue.cs: Queue properly
33109
33110 2004-10-21 09:38  jackson
33111
33112         * XEventQueue.cs: Fix access modifier
33113
33114 2004-10-21 09:36  jackson
33115
33116         * XEventQueue.cs: Don't loose messages
33117
33118 2004-10-21 09:22  jackson
33119
33120         * XEventQueue.cs: Don't loose messages
33121
33122 2004-10-20 04:15  jordi
33123
33124         * BootMode.cs: enum need it by SystemInfo
33125
33126 2004-10-19 21:58  pbartok
33127
33128         * XplatUIWin32.cs:
33129           - Small sanity check
33130
33131 2004-10-19 21:56  pbartok
33132
33133         * Form.cs:
33134           - Added private FormParentWindow class which acts as the container
33135             for our form and as the non-client area where menus are drawn
33136           - Added/Moved required tie-ins to Jordi's menus
33137           - Fixed/Implemented the FormStartPosition functionality
33138
33139 2004-10-19 21:52  pbartok
33140
33141         * Control.cs:
33142           - Removed unneeded locals
33143           - Added code to all size and location properties to understand and
33144             deal with the parent container of Form
33145
33146 2004-10-19 21:33  pbartok
33147
33148         * Application.cs:
33149           - Fixed to deal with new Form subclasses for menus
33150
33151 2004-10-19 17:48  jackson
33152
33153         * XEventQueue.cs: commit correct version of file
33154
33155 2004-10-19 16:50  jackson
33156
33157         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
33158
33159 2004-10-19 16:15  jordi
33160
33161         * MenuAPI.cs: MenuBarCalcSize returns the height
33162
33163 2004-10-19 08:31  pbartok
33164
33165         * Control.cs:
33166           - Added missing call to PreProcessMessage before calling OnXXXKey
33167           methods
33168
33169 2004-10-19 00:04  ravindra
33170
33171         * ToolTip.cs: Fixed constructor.
33172
33173 2004-10-18 09:31  jordi
33174
33175         * MenuAPI.cs: menuitems in menubars do not have shortcuts
33176
33177 2004-10-18 09:26  jordi
33178
33179         * MenuItem.cs: fixes MenuItem class signature
33180
33181 2004-10-18 08:56  jordi
33182
33183         * MenuAPI.cs: prevents windows from showing in the taskbar
33184
33185 2004-10-18 00:28  ravindra
33186
33187         * ToolTip.cs: Suppressed a warning message.
33188
33189 2004-10-18 00:27  ravindra
33190
33191         * Control.cs: Default value of visible property must be true.
33192
33193 2004-10-17 23:19  pbartok
33194
33195         * ToolTip.cs:
33196           - Complete implementation
33197
33198 2004-10-17 23:19  pbartok
33199
33200         * XplatUIX11.cs:
33201           - Added EnableWindow method
33202           - Added SetModal stub
33203           - Added generation of WM_ACTIVATE message (still needs testing)
33204           - Added SetTopMost stub
33205           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
33206
33207 2004-10-17 23:17  pbartok
33208
33209         * XplatUIWin32.cs:
33210           - Removed VirtualKeys to XplatUIStructs
33211           - Implemented SetTopMost method
33212           - Implemented EnableWindow method
33213           - Bugfix in ScreenToClient()
33214           - Bugfixes in ClientToScreen()
33215
33216 2004-10-17 22:51  pbartok
33217
33218         * XplatUIStructs.cs:
33219           - Added WS_EX styles to WindowStyles enumeration
33220
33221 2004-10-17 22:50  pbartok
33222
33223         * XplatUI.cs, XplatUIDriver.cs:
33224           - Added method for enabling/disabling windows
33225           - Added method for setting window modality
33226           - Added method for setting topmost window
33227
33228 2004-10-17 22:49  pbartok
33229
33230         * ThemeWin32Classic.cs:
33231           - Added ToolTip drawing code
33232
33233 2004-10-17 22:49  pbartok
33234
33235         * Theme.cs:
33236           - Added ToolTip abstracts
33237
33238 2004-10-17 22:47  pbartok
33239
33240         * Form.cs:
33241           - Fixed Form.ControlCollection to handle owner relations
33242           - Added Owner/OwnedForms handling
33243           - Implemented Z-Ordering for owned forms
33244           - Removed unneeded private overload of ShowDialog
33245           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
33246             so I hope)
33247           - Fixed Close(), had wrong default
33248           - Added firing of OnLoad event
33249           - Added some commented out debug code for Ownership handling
33250
33251 2004-10-17 22:16  pbartok
33252
33253         * Control.cs:
33254           - Fixed/implemented flat list of controls
33255
33256 2004-10-17 22:14  pbartok
33257
33258         * Application.cs:
33259           - Added code to simulate modal dialogs on Win32
33260
33261 2004-10-17 16:11  jordi
33262
33263         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
33264           mouse event
33265
33266 2004-10-17 13:39  jordi
33267
33268         * MenuAPI.cs: menu drawing fixes
33269
33270 2004-10-15 09:10  ravindra
33271
33272         * StructFormat.cs: General Enum.
33273
33274 2004-10-15 09:09  ravindra
33275
33276         * SizeGripStyle.cs: Enum for Form.
33277
33278 2004-10-15 09:08  ravindra
33279
33280         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
33281           in Theme for ListView.
33282
33283 2004-10-15 09:06  ravindra
33284
33285         * ColumnHeader.cs: Flushing some formatting changes.
33286
33287 2004-10-15 09:05  ravindra
33288
33289         * ListViewItem.cs: Implemented GetBounds method and fixed coding
33290           style.
33291
33292 2004-10-15 09:03  ravindra
33293
33294         * ListView.cs: Implemented Paint method and fixed coding style.
33295
33296 2004-10-15 07:34  jordi
33297
33298         * MenuAPI.cs: fix for X11
33299
33300 2004-10-15 07:32  ravindra
33301
33302         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
33303                 - Renamed Paint() method to Draw() for clarity. Also, moved
33304                 DrawImage() to OnPaint().
33305
33306 2004-10-15 07:25  ravindra
33307
33308         * CheckBox.cs, RadioButton.cs:
33309                 - Removed Redraw (), we get it from ButtonBase.
33310                 - Implemented Paint (), to do class specific painting.
33311
33312 2004-10-15 07:16  ravindra
33313
33314         * ButtonBase.cs:
33315                 - Redraw () is not virtual now.
33316                 - Added an internal virtual method Paint (), so that
33317                 derived classes can do their painting on their own.
33318                 - Modified OnPaint () to call Paint ().
33319
33320 2004-10-15 06:43  jordi
33321
33322         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
33323           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
33324
33325 2004-10-15 00:30  ravindra
33326
33327         * MessageBox.cs:
33328                 - MessageBox on windows does not have min/max buttons.
33329                 This change in CreateParams fixes this on Windows. We
33330                 still need to implement this windowstyle behavior in
33331                 our X11 driver.
33332
33333 2004-10-14 05:14  ravindra
33334
33335         * ToolBar.cs:
33336                 - Changed Redraw () to do a Refresh () always.
33337                 - Fixed the MouseMove event handling when mouse is pressed,
33338                 ie drag event handling.
33339                 - Replaced the usage of ToolBarButton.Pressed property to
33340                 ToolBarButton.pressed internal variable.
33341
33342 2004-10-14 05:10  ravindra
33343
33344         * ToolBarButton.cs:
33345                 - Added an internal member 'inside' to handle mouse move
33346                 with mouse pressed ie mouse drag event.
33347                 - Changed 'Pressed' property to return true only when
33348                 'inside' and 'pressed' are both true.
33349                 - Some coding style love.
33350
33351 2004-10-14 00:17  ravindra
33352
33353         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
33354           public method.
33355
33356 2004-10-14 00:15  ravindra
33357
33358         * ButtonBase.cs: Redraw () related improvements.
33359
33360 2004-10-14 00:14  ravindra
33361
33362         * MessageBox.cs: Moved InitFormSize () out of Paint method and
33363           removed unnecessary calls to Button.Show () method.
33364
33365 2004-10-13 17:50  pbartok
33366
33367         * XplatUIX11.cs:
33368           - Formatting fix
33369           - Removed destroying of window until we solve the problem of X
33370             destroying the window before us on shutdown
33371
33372 2004-10-13 16:32  pbartok
33373
33374         * ButtonBase.cs:
33375           - Now Redraws on MouseUp for FlatStyle Flat and Popup
33376
33377 2004-10-13 14:18  pbartok
33378
33379         * XplatUIX11.cs:
33380           - Added code to destroy the X window
33381
33382 2004-10-13 14:18  pbartok
33383
33384         * XplatUIWin32.cs:
33385           - Added code to destroy a window
33386
33387 2004-10-13 14:12  pbartok
33388
33389         * ButtonBase.cs:
33390           - Added the Redraw on Resize that got dropped in the last rev
33391
33392 2004-10-13 09:06  pbartok
33393
33394         * ThemeWin32Classic.cs:
33395           - Path from John BouAntoun:
33396             * Fix check rendering (centre correctly for normal style, offset
33397               correctly for FlatStyle).
33398             * Fix border color usage (use backcolor) for FlatStyle.Popup
33399             * Use checkbox.Capture instead of checkbox.is_pressed when
33400               rendering flatstyle states.
33401
33402 2004-10-12 21:48  pbartok
33403
33404         * ThemeWin32Classic.cs:
33405           - Removed all occurences of SystemColors and replaced them with the
33406             matching theme color
33407
33408 2004-10-12 21:41  pbartok
33409
33410         * ThemeWin32Classic.cs:
33411           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
33412             him using the function for flatstyle drawing
33413           - Changed functions to use the new version of CPDrawBorder3D
33414
33415 2004-10-12 21:15  pbartok
33416
33417         * ControlPaint.cs:
33418           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
33419             match MS documentation. They need to return defined colors if the
33420             passed color matches the configured control color. Thanks to John
33421             BouAntoun for pointing this out.
33422
33423 2004-10-12 20:57  pbartok
33424
33425         * Control.cs:
33426           - Fix from John BouAntoun: Raise ForeColorChanged event when text
33427             color is changed
33428
33429 2004-10-12 20:46  pbartok
33430
33431         * CheckBox.cs:
33432           - Fix from John BouAntoun: Now properly sets the Appearance property
33433
33434 2004-10-12 20:45  pbartok
33435
33436         * ThemeWin32Classic.cs:
33437           - Fixes from John BouAntoun: now handles forecolors and backcolors
33438             for flatstyle rendered controls much better; It also fixes normal
33439             checkbox rendering when pushed or disabled.
33440
33441 2004-10-08 02:50  jordi
33442
33443         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
33444           work
33445
33446 2004-10-07 08:56  jordi
33447
33448         * ThemeWin32Classic.cs: Removes deletion of cached brushes
33449
33450 2004-10-06 03:59  jordi
33451
33452         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
33453           XplatUIWin32.cs: removes warnings from compilation
33454
33455 2004-10-05 12:23  jackson
33456
33457         * RadioButton.cs: Fix ctor
33458
33459 2004-10-05 11:10  pbartok
33460
33461         * MessageBox.cs:
33462           - Partial implementation by Benjamin Dasnois
33463
33464 2004-10-05 10:15  jackson
33465
33466         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
33467           by John BouAntoun
33468
33469 2004-10-05 03:07  ravindra
33470
33471         * ToolBar.cs:
33472                 - Removed a private method, Draw ().
33473                 - Fixed the ButtonDropDown event handling.
33474                 - Fixed MouseMove event handling.
33475
33476 2004-10-05 03:04  ravindra
33477
33478         * ThemeWin32Classic.cs:
33479                 - Added DrawListView method and ListViewDefaultSize property.
33480                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
33481                 - Changed DOS style CRLF to Unix format (dos2unix).
33482
33483 2004-10-05 03:03  ravindra
33484
33485         * Theme.cs:
33486                 - Added DrawListView method and ListViewDefaultSize property.
33487
33488 2004-10-05 02:42  ravindra
33489
33490         * ToolBarButton.cs: Added an internal member dd_pressed to handle
33491           clicks on DropDown arrow.
33492
33493 2004-10-04 22:56  jackson
33494
33495         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
33496           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
33497           Control handle the buffers, derived classes should not have to
33498           CreateBuffers themselves.
33499
33500 2004-10-04 21:20  jackson
33501
33502         * StatusBar.cs: The control handles resizing the buffers now.
33503
33504 2004-10-04 21:18  jackson
33505
33506         * Control.cs: When resizing the buffers should be invalidated. This
33507           should be handled in Control not in derived classes.
33508
33509 2004-10-04 14:45  jackson
33510
33511         * TabPage.cs: oops
33512
33513 2004-10-04 02:14  pbartok
33514
33515         * LeftRightAlignment.cs:
33516           - Initial check-in
33517
33518 2004-10-04 01:09  jordi
33519
33520         * ThemeWin32Classic.cs: fixes right button position causing right
33521           button not showing on horizontal scrollbars
33522
33523 2004-10-02 13:12  pbartok
33524
33525         * XplatUIX11.cs:
33526           - Simplified the Invalidate method by using an X call instead of
33527             generating the expose ourselves
33528           - Added an expose when the window background is changed
33529           - Implemented ClientToScreen method
33530
33531 2004-10-02 13:08  pbartok
33532
33533         * XplatUIWin32.cs:
33534           - Added Win32EnableWindow method (test for implementing modal
33535           dialogs)
33536           - Added ClientToScreen method and imports
33537
33538 2004-10-02 13:07  pbartok
33539
33540         * XplatUI.cs, XplatUIDriver.cs:
33541           - Added ClientToScreen coordinate translation method
33542
33543 2004-10-02 13:06  pbartok
33544
33545         * KeyPressEventArgs.cs:
33546           - Fixed access level for constructor
33547
33548 2004-10-02 13:06  pbartok
33549
33550         * NativeWindow.cs:
33551           - Changed access level for the window_collection hash table
33552
33553 2004-10-02 13:05  pbartok
33554
33555         * Form.cs:
33556           - Added KeyPreview property
33557           - Added Menu property (still incomplete, pending Jordi's menu work)
33558           - Implemented ProcessCmdKey
33559           - Implemented ProcessDialogKey
33560           - Implemented ProcessKeyPreview
33561
33562 2004-10-02 13:02  pbartok
33563
33564         * Control.cs:
33565           - Added private method to get the Control object from the window
33566           handle
33567           - Implemented ContextMenu property
33568           - Implemented PointToScreen
33569           - Implemented PreProcessMessage
33570           - Implemented IsInputChar
33571           - Implemented IsInputKey
33572           - Implemented ProcessCmdKey
33573           - Completed ProcessKeyEventArgs
33574           - Fixed message loop to call the proper chain of functions on key
33575           events
33576           - Implemented ProcessDialogChar
33577           - Implemented ProcessDialogKey
33578           - Implemented ProcessKeyMessage
33579           - Implemented ProcessKeyPreview
33580           - Added RaiseDragEvent stub (MS internal method)
33581           - Added RaiseKeyEvent stub (MS internal method)
33582           - Added RaiseMouseEvent stub (MS Internal method)
33583           - Added RaisePaintEvent stub (MS Internal method)
33584           - Added ResetMouseEventArgs stub (MS Internal method)
33585           - Implemented RtlTranslateAlignment
33586           - Implemented RtlTranslateContent
33587           - Implemented RtlTranslateHorizontal
33588           - Implemented RtlTranslateLeftRight
33589           - Added generation of KeyPress event
33590
33591 2004-10-02 05:57  ravindra
33592
33593         * ListViewItem.cs: Added attributes.
33594
33595 2004-10-02 05:32  ravindra
33596
33597         * ListView.cs: Added attributes.
33598
33599 2004-10-01 11:53  jackson
33600
33601         * Form.cs: Implement the Close method so work on MessageBox can
33602           continue.
33603
33604 2004-09-30 14:06  pbartok
33605
33606         * XplatUIX11.cs:
33607           - Bug fixes
33608
33609 2004-09-30 11:34  jackson
33610
33611         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
33612
33613 2004-09-30 07:26  ravindra
33614
33615         * ListViewItemConverter.cs: Converter for ListViewItem.
33616
33617 2004-09-30 07:26  ravindra
33618
33619         * SortOrder.cs: Enum for ListView control.
33620
33621 2004-09-30 07:25  ravindra
33622
33623         * ColumnHeader.cs: Supporting class for ListView control.
33624
33625 2004-09-30 07:24  ravindra
33626
33627         * ListView.cs, ListViewItem.cs: Initial implementation.
33628
33629 2004-09-30 07:20  ravindra
33630
33631         * ItemActivation.cs: Enum for ListView Control.
33632
33633 2004-09-29 20:29  pbartok
33634
33635         * XplatUIX11.cs:
33636           - Added lookup of pixel value for background color; tries to get a
33637             color 'close' to the requested color, it avoids having to create a
33638             colormap.  Depending on the display this could mean the used color
33639             is slightly off the desired color. Might have to change it to a more
33640             resource intensive colormap approach, but it will work as a
33641           workaround to avoid red screens.
33642
33643 2004-09-29 14:27  jackson
33644
33645         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
33646
33647 2004-09-28 12:44  pbartok
33648
33649         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
33650           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
33651           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
33652           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
33653           TrackBar.cs, VScrollBar.cs:
33654           - Streamlined Theme interfaces:
33655             * Each DrawXXX method for a control now is passed the object for
33656               the control to be drawn in order to allow accessing any state the
33657               theme might require
33658
33659             * ControlPaint methods for the theme now have a CP prefix to avoid
33660               name clashes with the Draw methods for controls
33661
33662             * Every control now retrieves it's DefaultSize from the current
33663             theme
33664
33665 2004-09-28 12:17  jackson
33666
33667         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
33668           drawing
33669
33670 2004-09-24 14:57  jackson
33671
33672         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
33673           Gives us a nice little performance boost.
33674
33675 2004-09-24 12:02  jackson
33676
33677         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
33678           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
33679           Control and supporting classes. Initial checkin
33680
33681 2004-09-23 13:08  jackson
33682
33683         * Form.cs: Temp build fixage
33684
33685 2004-09-23 01:39  ravindra
33686
33687         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
33688           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
33689           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
33690           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
33691           EventHandlers needed by ListView Control.
33692
33693 2004-09-22 14:12  pbartok
33694
33695         * ScrollableControl.cs:
33696           - Implemented DockPadding property
33697           - Implemented AutoScroll property
33698           - Implemented AutoScrollMargin property
33699           - Implemented AutoScrollMinSize property
33700           - Implemented AutoScrollPosition property
33701           - Implemented DisplayRectangle property (still incomplete)
33702           - Implemented CreateParams property
33703           - Implemented HScroll property
33704           - Implemented VScroll property
33705           - Implemented OnVisibleChanged property
33706
33707 2004-09-22 14:09  pbartok
33708
33709         * Form.cs:
33710           - Added Form.ControllCollection class
33711           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
33712             RemoveOwnedForm (still incomplete, missing on-top and common
33713             minimize/maximize behaviour)
33714           - Added StartPosition property (still incomplete, does not use when
33715             creating the form)
33716           - Added ShowDialog() methods (still incomplete, missing forcing the
33717             dialog modal)
33718
33719 2004-09-22 14:05  pbartok
33720
33721         * Application.cs:
33722           - Added message loop for modal dialogs
33723
33724 2004-09-22 14:02  pbartok
33725
33726         * GroupBox.cs:
33727           - Fixed wrong types for events
33728
33729 2004-09-22 14:00  pbartok
33730
33731         * Shortcut.cs, FormWindowState.cs:
33732           - Fixed wrong values
33733
33734 2004-09-22 12:01  jackson
33735
33736         * Control.cs: Text is never null
33737
33738 2004-09-20 22:14  pbartok
33739
33740         * XplatUIWin32.cs:
33741           - Fixed accessibility level for Idle handler
33742
33743 2004-09-20 18:54  jackson
33744
33745         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33746           XplatUIX11.cs: New message loop that uses poll so we don't get a
33747           busy loop
33748
33749 2004-09-17 10:43  pbartok
33750
33751         * ScrollBar.cs:
33752           - Fixed behaviour of arrow buttons. Now properly behaves like
33753             Buttons (and like Microsoft's scrollbar arrow buttons)
33754
33755 2004-09-17 10:14  pbartok
33756
33757         * ScrollBar.cs:
33758           - Added missing release of keyboard/mouse capture
33759
33760 2004-09-17 06:18  jordi
33761
33762         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
33763           Theme.cs: Very early menu support
33764
33765 2004-09-16 17:45  pbartok
33766
33767         * XplatUIWin32.cs:
33768           - Fixed sending a window to the front
33769           - Added overload for SetWindowPos to avoid casting
33770
33771 2004-09-16 17:44  pbartok
33772
33773         * Control.cs:
33774           - Added SendToBack and BringToFront methods
33775
33776 2004-09-16 07:00  ravindra
33777
33778         * Copyright: Added Novell URL.
33779
33780 2004-09-16 07:00  ravindra
33781
33782         * ToolBar.cs: Invalidate should be done before redrawing.
33783
33784 2004-09-15 21:19  ravindra
33785
33786         * ColumnHeaderStyle.cs: Enum for ListView Control.
33787
33788 2004-09-15 21:18  ravindra
33789
33790         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
33791           ListView Control.
33792
33793 2004-09-13 18:26  jackson
33794
33795         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
33796           properly
33797
33798 2004-09-13 18:13  jackson
33799
33800         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
33801           a second thread and post messages into the main threads message
33802           queue. This makes timing much more consistent. Both win2K and XP
33803           have a minimum timer value of 15 milliseconds, so we now do this
33804           too.
33805
33806 2004-09-13 15:18  pbartok
33807
33808         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33809           XplatUIX11.cs:
33810           - Added Z-Ordering methods
33811
33812 2004-09-13 10:56  pbartok
33813
33814         * Form.cs:
33815           - Fixed #region names
33816           - Moved properties and methods into their proper #regions
33817
33818 2004-09-13 10:51  pbartok
33819
33820         * Form.cs:
33821           - Added Accept and CancelButton properties
33822           - Added ProcessDialogKey() method
33823
33824 2004-09-13 08:18  pbartok
33825
33826         * IWindowTarget.cs:
33827           - Initial check-in
33828
33829 2004-09-10 21:50  pbartok
33830
33831         * Control.cs:
33832           - Added DoDragDrop() [incomplete]
33833           - Properly implemented 'Visible' handling
33834           - Added SetVisibleCore()
33835           - Implemented FindChildAtPoint()
33836           - Implemented GetContainerControl()
33837           - Implemented Hide()
33838
33839 2004-09-10 19:28  pbartok
33840
33841         * Control.cs:
33842           - Moved methods into their appropriate #regions
33843           - Reordered methods within regions alphabetically
33844
33845 2004-09-10 18:57  pbartok
33846
33847         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
33848           - Added method to retrieve text from window
33849
33850 2004-09-10 18:56  pbartok
33851
33852         * Control.cs:
33853           - Moved some internal functions into the internal region
33854           - Implemented FontHeight
33855           - Implemented RenderRightToLeft
33856           - Implemented ResizeRedraw
33857           - Implemented ShowFocusCues
33858           - Implemented ShowKeyboardCues
33859           - Implemented FromChildHandle
33860           - Implemented FromHandle
33861           - Implemented IsMnemonic
33862           - Implemented ReflectMessage
33863           - All public and protected Static Methods are now complete
33864
33865 2004-09-10 16:54  pbartok
33866
33867         * Control.cs:
33868           - Implemented remaining missing public instance properties
33869           - Alphabetized some out of order properties
33870
33871 2004-09-10 05:51  ravindra
33872
33873         * PictureBox.cs: Added a check for null image.
33874
33875 2004-09-10 00:59  jordi
33876
33877         * GroupBox.cs: remove cvs tag
33878
33879 2004-09-09 05:25  ravindra
33880
33881         * ToolBar.cs: Make redraw accessible from ToolBarButton.
33882
33883 2004-09-09 05:23  ravindra
33884
33885         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
33886           parent redraw.
33887
33888 2004-09-09 02:28  pbartok
33889
33890         * ThemeWin32Classic.cs:
33891           - Improve disabled string look
33892
33893 2004-09-09 01:15  jordi
33894
33895         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
33896           args and handler
33897
33898 2004-09-08 23:56  ravindra
33899
33900         * ItemBoundsPortion.cs: It's enum, not a class!
33901
33902 2004-09-08 23:47  ravindra
33903
33904         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
33905           Enums for Form.
33906
33907 2004-09-08 21:13  ravindra
33908
33909         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
33910           ListView control.
33911
33912 2004-09-08 21:03  ravindra
33913
33914         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
33915           avoid crash.
33916
33917 2004-09-08 21:01  ravindra
33918
33919         * ScrollableControl.cs: Removed unreachable code.
33920
33921 2004-09-08 06:45  jordi
33922
33923         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
33924
33925 2004-09-08 01:00  jackson
33926
33927         * XplatUIX11.cs: Only run the timers when updating the message
33928           queue. This effectively gives X messages a higher priority then
33929           timer messages. Timers still need love though
33930
33931 2004-09-07 14:01  jackson
33932
33933         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
33934           this for us and the handle is no longer valid.
33935
33936 2004-09-07 13:59  jackson
33937
33938         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
33939           loop that manages to not crash. TODO: Add poll and cleanup timers
33940
33941 2004-09-07 11:12  jordi
33942
33943         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
33944
33945 2004-09-07 03:40  jordi
33946
33947         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
33948           fixes, methods, multiple links
33949
33950 2004-09-06 06:55  jordi
33951
33952         * Control.cs: Caches ClientRectangle rectangle value
33953
33954 2004-09-05 02:03  jordi
33955
33956         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
33957           certain situations
33958
33959 2004-09-04 11:10  jordi
33960
33961         * Label.cs: Refresh when font changed
33962
33963 2004-09-02 16:24  pbartok
33964
33965         * Control.cs:
33966           - Added sanity check to creation of double buffer bitmap
33967
33968 2004-09-02 16:24  pbartok
33969
33970         * ButtonBase.cs:
33971           - Fixed selection of text color
33972           - Fixed handling of resize event; now properly recreates double
33973             buffering bitmap
33974           - Added missing assignment of TextAlignment
33975           - Added proper default for TextAlignment
33976
33977 2004-09-02 14:26  pbartok
33978
33979         * RadioButton.cs:
33980           - Added missing RadioButton.RadioButtonAccessibleObject class
33981
33982 2004-09-02 14:26  pbartok
33983
33984         * Control.cs:
33985           - Added missing Control.ControlAccessibleObject class
33986           - Started to implement Select()ion mechanisms, still very incomplete
33987
33988 2004-09-02 14:25  pbartok
33989
33990         * AccessibleObject.cs:
33991           - Added missing methods
33992
33993 2004-09-02 14:23  pbartok
33994
33995         * AccessibleNavigation.cs, AccessibleSelection.cs:
33996           - Initial check-in
33997
33998 2004-09-02 10:32  jordi
33999
34000         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
34001           pool for pens, brushes, and hatchbruses
34002
34003 2004-09-01 15:30  jackson
34004
34005         * StatusBar.cs: Fix typo
34006
34007 2004-09-01 14:44  pbartok
34008
34009         * RadioButton.cs:
34010           - Fixed state
34011
34012 2004-09-01 14:39  pbartok
34013
34014         * Button.cs, RadioButton.cs:
34015           - Functional initial check-in
34016
34017 2004-09-01 14:01  pbartok
34018
34019         * CheckBox.cs:
34020           - Added missing default
34021           - Added missing region mark
34022
34023 2004-09-01 09:10  jordi
34024
34025         * Label.cs: fixes method signatures, new methods, events, fixes
34026           autosize
34027
34028 2004-09-01 07:19  jordi
34029
34030         * Control.cs: Init string variables with an empty object
34031
34032 2004-09-01 04:20  jordi
34033
34034         * Control.cs: fires OnFontChanged event
34035
34036 2004-08-31 20:07  pbartok
34037
34038         * ButtonBase.cs:
34039           - Enabled display of strings
34040
34041 2004-08-31 20:05  pbartok
34042
34043         * Form.cs:
34044           - Added (partial) implementation of DialogResult; rest needs to be
34045             implemented when the modal loop code is done
34046
34047 2004-08-31 19:55  pbartok
34048
34049         * CheckBox.cs:
34050           - Fixed to match the removal of the needs_redraw concept
34051
34052 2004-08-31 19:55  pbartok
34053
34054         * ButtonBase.cs:
34055           - Removed the rather odd split between 'needs redraw' and redrawing
34056           - Now handles the events that require regeneration (ambient
34057             properties and size)
34058
34059 2004-08-31 19:41  pbartok
34060
34061         * Control.cs:
34062           - Added firing of BackColorChanged event
34063           - Added TopLevelControl property
34064           - Fixed handling of WM_ERASEBKGRND message
34065
34066 2004-08-31 12:49  pbartok
34067
34068         * ButtonBase.cs:
34069           - Removed debug
34070           - Minor fixes
34071
34072 2004-08-31 12:48  pbartok
34073
34074         * CheckBox.cs:
34075           - Finished (famous last words)
34076
34077 2004-08-31 04:35  jordi
34078
34079         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
34080           scrolling bugs, adds new methods
34081
34082 2004-08-30 14:42  pbartok
34083
34084         * CheckBox.cs:
34085           - Implemented CheckBox drawing code
34086
34087 2004-08-30 14:42  pbartok
34088
34089         * ButtonBase.cs:
34090           - Made Redraw() and CheckRedraw() virtual
34091           - Improved mouse up/down/move logic to properly track buttons
34092
34093 2004-08-30 09:44  pbartok
34094
34095         * CheckBox.cs:
34096           - Updated to fix broken build. Not complete yet.
34097
34098 2004-08-30 09:28  pbartok
34099
34100         * CheckState.cs:
34101           - Initial checkin
34102
34103 2004-08-30 09:17  pbartok
34104
34105         * Appearance.cs:
34106           - Initial check-in
34107
34108 2004-08-27 16:12  ravindra
34109
34110         * ToolBarButton.cs: Added TypeConverter attribute.
34111
34112 2004-08-27 16:07  ravindra
34113
34114         * ImageIndexConverter.cs: Implemented.
34115
34116 2004-08-27 14:17  pbartok
34117
34118         * Control.cs:
34119           - Removed unneeded stack vars
34120           - First attempt to fix sizing issues when layout is suspended
34121
34122 2004-08-25 15:35  jordi
34123
34124         * ScrollBar.cs: more fixes to scrollbar
34125
34126 2004-08-25 14:04  ravindra
34127
34128         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
34129           Added the missing divider code and grip for ToolBar Control.
34130
34131 2004-08-25 13:20  pbartok
34132
34133         * Control.cs:
34134           - Control now properly passes the ambient background color to child
34135             controls
34136
34137 2004-08-25 13:20  jordi
34138
34139         * ScrollBar.cs: small bug fix regarding bar position
34140
34141 2004-08-25 12:33  pbartok
34142
34143         * Timer.cs:
34144           - Now only calls SetTimer or KillTimer if the enabled state has
34145           changed
34146
34147 2004-08-25 12:33  pbartok
34148
34149         * XplatUIWin32.cs:
34150           - Fixed timer handling, now seems to work
34151           - Improved error message for window creation
34152
34153 2004-08-25 12:32  pbartok
34154
34155         * Control.cs:
34156           - Fixed generation of MouseUp message
34157
34158 2004-08-25 12:29  jordi
34159
34160         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
34161           and fixes for progressbar
34162
34163 2004-08-24 18:43  ravindra
34164
34165         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
34166           in ToolBar control.
34167
34168 2004-08-24 17:15  pbartok
34169
34170         * Panel.cs:
34171           - Added #region
34172           - Added missing events
34173           - Alphabetized
34174
34175 2004-08-24 17:14  pbartok
34176
34177         * StatusBar.cs, PictureBox.cs:
34178           - Now uses Control's CreateParams
34179
34180 2004-08-24 16:36  pbartok
34181
34182         * XplatUIX11.cs:
34183           - Fixed background color handling
34184           - Fixed sending of enter/leave events on a grab
34185
34186 2004-08-24 16:35  pbartok
34187
34188         * X11Structs.cs:
34189           - Refined definitions for CrossingEvent
34190
34191 2004-08-24 12:37  jordi
34192
34193         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
34194           formmating, methods signature, and adds missing events
34195
34196 2004-08-24 12:24  jordi
34197
34198         * Control.cs: fire OnEnabledChanged event
34199
34200 2004-08-24 11:17  pbartok
34201
34202         * XplatUIWin32.cs:
34203           - Implemented SetTimer() and KillTimer()
34204
34205 2004-08-24 11:16  pbartok
34206
34207         * XplatUIX11.cs:
34208           - Now uses Remove instead of Add to kill the timer
34209
34210 2004-08-24 10:16  jackson
34211
34212         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
34213           picture boxes in the theme now. Draw picture box borders and obey
34214           sizing modes
34215
34216 2004-08-24 05:49  jackson
34217
34218         * Timer.cs: Remove top secret debugging code
34219
34220 2004-08-24 05:34  jackson
34221
34222         * PictureBox.cs: Temp hack to make picture boxes draw their full
34223           image
34224
34225 2004-08-24 05:29  jackson
34226
34227         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34228           XplatUIX11.cs: Move timers to the driver level. On X they are
34229           queued by the driver and checked on idle.
34230
34231 2004-08-24 01:07  jackson
34232
34233         * XplatUIX11.cs: Use a queue for async messages instead of passing
34234           them as ClientMessages since that was totally broken. Also simply
34235           check for events and return an idle message if none are found. This
34236           gives us an idle handler, and prevents deadlocking when no messages
34237           are in the queue.
34238
34239 2004-08-23 18:19  ravindra
34240
34241         * XplatUIWin32.cs: Removed the unwanted destructor.
34242
34243 2004-08-23 17:27  pbartok
34244
34245         * ButtonBase.cs:
34246           - Finishing touches. Works now, just needs some optimizations.
34247
34248 2004-08-23 16:53  jordi
34249
34250         * ScrollBar.cs: small fix
34251
34252 2004-08-23 16:45  pbartok
34253
34254         * Application.cs:
34255           - Removed debug output
34256           - Simplifications
34257
34258 2004-08-23 16:43  jordi
34259
34260         * ScrollBar.cs: [no log message]
34261
34262 2004-08-23 16:10  pbartok
34263
34264         * Form.cs:
34265           - Fixed handling of WM_CLOSE message
34266           - Removed debug output
34267
34268 2004-08-23 16:09  pbartok
34269
34270         * Application.cs:
34271           - Added handling of Idle event
34272           - Added handling of form closing
34273           - Fixed reporting of MessageLoop property
34274           - Removed some unneeded code, should provide a bit of a speedup
34275
34276 2004-08-23 15:22  pbartok
34277
34278         * Control.cs:
34279           - Added InitLayout() method
34280           - Added code to properly perform layout when Anchor or Dock property
34281             is changed
34282           - Changed 'interpretation' of ResumeLayout. MS seems to have a
34283             LAMESPEC, tried to do it in a way that makes sense
34284
34285 2004-08-23 14:10  jordi
34286
34287         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
34288           properties and methods
34289
34290 2004-08-23 13:55  pbartok
34291
34292         * Control.cs:
34293           - Properly fixed Jordi's last fix
34294           - Now uses Cursor's Position property instead of calling XplatUI
34295           directly
34296
34297 2004-08-23 13:44  jordi
34298
34299         * PaintEventHandler.cs: Adding missing attribute
34300
34301 2004-08-23 13:39  pbartok
34302
34303         * Cursor.cs:
34304           - Implemented Position property
34305
34306 2004-08-23 13:39  pbartok
34307
34308         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
34309           - Added method to move mouse cursor
34310
34311 2004-08-23 13:39  pbartok
34312
34313         * XplatUIX11.cs:
34314           - Fixed setting of background color
34315           - Added method to move mouse cursor
34316
34317 2004-08-23 13:16  jordi
34318
34319         * Control.cs: avoids null exception
34320
34321 2004-08-22 17:46  jackson
34322
34323         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
34324           PictureBox
34325
34326 2004-08-22 17:40  jackson
34327
34328         * XplatUIX11.cs: Add some missing locks
34329
34330 2004-08-22 15:10  pbartok
34331
34332         * Control.cs, Form.cs:
34333           - Removed OverlappedWindow style from Control, instead it's default
34334             now is child
34335           - Made form windows OverlappedWindow by default
34336
34337 2004-08-22 13:34  jackson
34338
34339         * ScrollBar.cs: Update the position through the Value property so
34340           the OnValueChanged event is raised.
34341
34342 2004-08-22 12:04  pbartok
34343
34344         * SWF.csproj:
34345           - Added Cursor.cs and UserControl.cs
34346
34347 2004-08-22 12:03  pbartok
34348
34349         * Cursor.cs:
34350           - Started implementation, not usable yet
34351
34352 2004-08-22 12:00  pbartok
34353
34354         * UserControl.cs:
34355           - Implemented UserControl (complete)
34356
34357 2004-08-21 19:20  ravindra
34358
34359         * ToolBar.cs: Correcting the formatting mess of VS.NET.
34360
34361 2004-08-21 18:49  ravindra
34362
34363         * ToolBar.cs: Probably this completes the missing attributes in
34364           toolbar control.
34365
34366 2004-08-21 18:03  ravindra
34367
34368         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
34369           Fixed toolbar control signatures.
34370
34371 2004-08-21 16:32  pbartok
34372
34373         * LinkLabel.cs:
34374           - Signature Fixes
34375
34376 2004-08-21 16:30  pbartok
34377
34378         * Label.cs:
34379           - Signature fixes
34380
34381 2004-08-21 16:19  pbartok
34382
34383         * Control.cs, Label.cs:
34384           - Signature fixes
34385
34386 2004-08-21 15:57  pbartok
34387
34388         * ButtonBase.cs:
34389           - Added loads of debug output for development
34390           - Fixed typo in method name
34391
34392 2004-08-21 15:52  pbartok
34393
34394         * ToolBarButtonClickEventArgs.cs:
34395           - Added missing base class
34396
34397 2004-08-21 14:53  pbartok
34398
34399         * Control.cs:
34400           - Updated to match new GrabWindow signature
34401
34402 2004-08-21 14:51  pbartok
34403
34404         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34405           - Added method to get default display size
34406
34407 2004-08-21 14:23  pbartok
34408
34409         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34410           - Added method to query current grab state
34411           - Added argument to allow confining a grab to a window
34412
34413 2004-08-21 14:22  pbartok
34414
34415         * Keys.cs:
34416           - Added [Flags] attribute so that modifiers can be used in bitwise
34417           ops
34418
34419 2004-08-21 14:21  pbartok
34420
34421         * TrackBar.cs, ScrollBar.cs:
34422           - Replaced direct XplatUI calls with their Control counterpart
34423
34424 2004-08-21 13:32  pbartok
34425
34426         * Control.cs:
34427           - Implemented Created property
34428
34429 2004-08-21 13:28  pbartok
34430
34431         * Control.cs:
34432           - Implemented ContainsFocus
34433
34434 2004-08-21 13:26  pbartok
34435
34436         * Control.cs:
34437           - Implemented CausesValidation
34438
34439 2004-08-21 13:21  pbartok
34440
34441         * Control.cs:
34442           - Implemented CanFocus
34443           - Implemented CanSelect
34444           - Implemented Capture
34445
34446 2004-08-21 12:35  pbartok
34447
34448         * XplatUIWin32.cs:
34449           - Fixed bug with Async message handling
34450           - Implemented getting the ModifierKeys
34451
34452 2004-08-21 12:32  jackson
34453
34454         * AsyncMethodResult.cs: Make sure we have the mutex before we
34455           release it. Fixes BeginInvoke on windows
34456
34457 2004-08-21 11:31  pbartok
34458
34459         * XplatUIWin32.cs, XplatUIX11.cs:
34460           - Drivers now return proper mouse state
34461
34462 2004-08-21 10:54  jackson
34463
34464         * Control.cs: Implement EndInvoke
34465
34466 2004-08-21 10:48  jackson
34467
34468         * Timer.cs: Remove unneeded finalizer
34469
34470 2004-08-20 19:52  ravindra
34471
34472         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
34473           in mouse event handling in the ToolBar control.
34474
34475 2004-08-20 19:50  ravindra
34476
34477         * ImageList.cs: Changed draw method to use the arguments passed in
34478           to draw the image.
34479
34480 2004-08-20 18:58  pbartok
34481
34482         * XplatUIStructs.cs:
34483           - Added private message for async communication
34484
34485 2004-08-20 17:38  ravindra
34486
34487         * Control.cs: Made RightToLeft property virtual and removed a
34488           Console.WriteLine.
34489
34490 2004-08-20 14:39  jordi
34491
34492         * ThemeGtk.cs: use style_attach
34493
34494 2004-08-20 14:39  pbartok
34495
34496         * XplatUIWin32.cs:
34497           - Added jackson's Async code from X11 to Win32
34498
34499 2004-08-20 14:09  pbartok
34500
34501         * SWF.csproj:
34502           - Added all new files
34503
34504 2004-08-20 14:09  pbartok
34505
34506         * Control.cs:
34507           - Added call to set window background color
34508
34509 2004-08-20 14:03  pbartok
34510
34511         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
34512           - Added method for setting the window background
34513
34514 2004-08-20 14:02  pbartok
34515
34516         * XplatUIWin32.cs:
34517           - Added method for setting the background color
34518           - Added handling for erasing the window background
34519
34520 2004-08-20 13:45  jordi
34521
34522         * TrackBar.cs: fixes timer, new properties and methods
34523
34524 2004-08-20 13:34  jackson
34525
34526         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
34527           correct thread
34528
34529 2004-08-20 13:22  jackson
34530
34531         * Timer.cs: Timer Tick events are now handed through Controls Async
34532           mechanism so the callbacks are executed in the same thread as X
34533
34534 2004-08-20 13:19  jackson
34535
34536         * XplatUIDriver.cs: Expose functionality to send async messages
34537           through the driver
34538
34539 2004-08-20 13:18  jackson
34540
34541         * Control.cs: Implement Begininvoke
34542
34543 2004-08-20 13:14  jackson
34544
34545         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
34546           messages through the driver
34547
34548 2004-08-20 13:12  jackson
34549
34550         * XplatUIX11.cs: Lock before all X operations. Also added Async
34551           method functionality through XSendEvent
34552
34553 2004-08-20 13:11  jackson
34554
34555         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
34556           This will screw up on 64 bit systems)
34557
34558 2004-08-20 13:10  jackson
34559
34560         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
34561           Async messages through X/Win32
34562
34563 2004-08-19 19:39  pbartok
34564
34565         * XplatUIX11.cs:
34566           - Updated code to match new HandleData.DeviceContext type
34567
34568 2004-08-19 19:38  pbartok
34569
34570         * HandleData.cs:
34571           - Made DeviceContext a generic object to allow usage from various
34572           drivers
34573           - Added support for queueing Windows messages
34574
34575 2004-08-19 19:37  pbartok
34576
34577         * XplatUIWin32.cs:
34578           - Added generation of MouseEnter, MouseLeave and MouseHover events
34579           - Added cleanup on EndPaint
34580
34581 2004-08-19 19:17  pbartok
34582
34583         * Control.cs:
34584           - Added handling of WM_MOUSEHOVER
34585           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
34586           code
34587
34588 2004-08-19 18:55  jordi
34589
34590         * ThemeGtk.cs: fixes button order
34591
34592 2004-08-19 18:12  jordi
34593
34594         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
34595
34596 2004-08-19 17:09  pbartok
34597
34598         * Control.cs:
34599           - Added Right property
34600           - Added RightToLeft property
34601
34602 2004-08-19 16:27  jordi
34603
34604         * ThemeGtk.cs: experimental GTK theme support
34605
34606 2004-08-19 16:26  jordi
34607
34608         * ITheme.cs, Theme.cs: move themes from an interface to a class
34609
34610 2004-08-19 16:25  jordi
34611
34612         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
34613           theme enhancaments
34614
34615 2004-08-19 16:04  pbartok
34616
34617         * XplatUIX11.cs:
34618           - Added colormap basics
34619           - Added a way to re-initialize with a different display handle
34620           - Fixed setting of the window background color
34621           - Added various X11 imports related to colors and colormaps
34622
34623 2004-08-19 15:51  pbartok
34624
34625         * X11Structs.cs:
34626           - Removed packing hints (Paolo suggested this a while back)
34627           - fixed colormap type
34628           - Added default Atom types
34629           - Added Screen and color structs and enums
34630
34631 2004-08-19 15:39  pbartok
34632
34633         * ImageList.cs:
34634           - Added missing Draw() method
34635           - Added missing RecreateHandle event
34636
34637 2004-08-19 15:30  pbartok
34638
34639         * Form.cs:
34640           - Added handling of WM_CLOSE
34641
34642 2004-08-18 13:16  jordi
34643
34644         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
34645           a table
34646
34647 2004-08-18 09:56  jordi
34648
34649         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
34650
34651 2004-08-17 15:31  ravindra
34652
34653         * SWF.csproj: Updated project.
34654
34655 2004-08-17 15:25  pbartok
34656
34657         * Control.cs:
34658           - Drawing improvement; don't call UpdateBounds if we are not visible
34659             (or have been minimized)
34660
34661 2004-08-17 15:24  pbartok
34662
34663         * XplatUIWin32.cs:
34664           - Finished IsVisible
34665           - Added Win32GetWindowPlacement
34666
34667 2004-08-17 15:08  jackson
34668
34669         * Panel.cs: Initial checkin of the Panel
34670
34671 2004-08-17 14:25  pbartok
34672
34673         * Control.cs:
34674           - Fixed broken handling of default window sizes
34675
34676 2004-08-17 13:29  jackson
34677
34678         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
34679           has a large startup time.
34680
34681 2004-08-17 10:25  jackson
34682
34683         * HandleData.cs: union areas properly
34684
34685 2004-08-17 10:12  jackson
34686
34687         * HandleData.cs: union areas properly
34688
34689 2004-08-16 20:00  ravindra
34690
34691         * ToolBar.cs, ToolBarButton.cs: Added attributes.
34692
34693 2004-08-16 18:48  ravindra
34694
34695         * ToolBar.cs: Added attributes.
34696
34697 2004-08-16 17:17  ravindra
34698
34699         * SWF.csproj: Updated project.
34700
34701 2004-08-16 17:16  jackson
34702
34703         * XplatUIX11.cs: Check for more expose events before sending a
34704           WM_PAINT so they can all be grouped together. This makes dragging a
34705           window across another window redraw in a sane way.
34706
34707 2004-08-16 15:47  pbartok
34708
34709         * Control.cs:
34710           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
34711             support OnMouseEnter/Leave()
34712           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
34713             exposure handling
34714
34715 2004-08-16 15:46  pbartok
34716
34717         * XplatUIStructs.cs, XplatUIX11.cs:
34718           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
34719           OnMouseEnter/Leave()
34720
34721 2004-08-16 15:34  jackson
34722
34723         * XplatUIX11.cs: Group multiple expose events in HandleData, make
34724           sure messages get the message field set to WM_NULL if they are not
34725           handled.
34726
34727 2004-08-16 15:24  jackson
34728
34729         * HandleData.cs: HandleData is used for storing message information
34730           for window handles
34731
34732 2004-08-15 17:23  ravindra
34733
34734         * ColorDepth.cs: Added attribute.
34735
34736 2004-08-15 17:23  ravindra
34737
34738         * SWF.csproj: Updated project for ToolBar Control.
34739
34740 2004-08-15 17:20  ravindra
34741
34742         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
34743           control and also dos2unix format.
34744
34745 2004-08-15 17:13  ravindra
34746
34747         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
34748           ToolBarButtonClickEventArgs.cs,
34749           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
34750           ToolBarTextAlign.cs: First Implementation of ToolBar control.
34751
34752 2004-08-15 15:31  pbartok
34753
34754         * ButtonBase.cs:
34755           - First (mostly) working version
34756
34757 2004-08-13 16:15  pbartok
34758
34759         * Control.cs:
34760           - Fixed Anchor default
34761
34762 2004-08-13 15:43  pbartok
34763
34764         * Control.cs:
34765           - Changed GetCursorPos signature
34766
34767 2004-08-13 15:42  pbartok
34768
34769         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
34770           - Changed signature for GetCursorPos
34771
34772 2004-08-13 15:25  pbartok
34773
34774         * XplatUIX11.cs:
34775           - Cleanup
34776           - Fixed resizing/exposure handling
34777
34778 2004-08-13 15:22  jordi
34779
34780         * ThemeWin32Classic.cs: removes redundant code and fixes issues
34781           with tickposition
34782
34783 2004-08-13 14:55  jordi
34784
34785         * TrackBar.cs: change from wndproc to events
34786
34787 2004-08-13 13:00  jordi
34788
34789         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34790           XplatUIX11.cs: implements PointToClient (ScreenToClient)
34791
34792 2004-08-13 12:53  pbartok
34793
34794         * XplatUIWin32.cs:
34795           - Changed GetWindowPos to also provide client area size
34796           - Fixed broken prototypes for several win32 functions
34797
34798 2004-08-13 12:53  pbartok
34799
34800         * XplatUI.cs, XplatUIDriver.cs:
34801           - Changed GetWindowPos to also provide client area size
34802
34803 2004-08-13 12:52  pbartok
34804
34805         * XplatUIX11.cs:
34806           - Added generation of WM_POSCHANGED
34807           - Changed GetWindowPos to also provide client area size
34808
34809 2004-08-13 12:52  pbartok
34810
34811         * Control.cs:
34812           - Added Dispose() and destructor
34813           - Fixed resizing and bounds calculation
34814           - Fixed Layout
34815           - Added memory savings for invisible windows
34816
34817 2004-08-13 12:46  jordi
34818
34819         * TrackBar.cs: adds timer and grap window
34820
34821 2004-08-13 10:25  jackson
34822
34823         * Timer.cs: SWF Timer
34824
34825 2004-08-12 16:59  pbartok
34826
34827         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34828           - Implemented method to get current mouse position
34829
34830 2004-08-12 14:29  jordi
34831
34832         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
34833           enhancement, fix mouse problems, highli thumb, etc
34834
34835 2004-08-12 13:31  pbartok
34836
34837         * Control.cs:
34838           - Fixed Anchoring bugs
34839
34840 2004-08-12 13:01  jackson
34841
34842         * StatusBar.cs: Don't forget things
34843
34844 2004-08-12 12:54  jackson
34845
34846         * ThemeWin32Classic.cs: Handle owner draw status bars
34847
34848 2004-08-12 12:54  jackson
34849
34850         * StatusBar.cs: Implement missing properties, events, and methods.
34851           Handle mouse clicking
34852
34853 2004-08-12 10:19  jackson
34854
34855         * StatusBarPanelClickEventArgs.cs,
34856           StatusBarPanelClickEventHandler.cs: Classes for handling status
34857           bar panel click events
34858
34859 2004-08-12 10:10  jackson
34860
34861         * Control.cs: Add missing properties
34862
34863 2004-08-12 09:46  pbartok
34864
34865         * BindingsManagerBase.cs:
34866           - Name changed to BindingManagerBase.cs
34867
34868 2004-08-12 09:25  jordi
34869
34870         * ScrollableControl.cs: calls ctrlbase instead of exeception
34871
34872 2004-08-11 16:28  pbartok
34873
34874         * InputLanguageChangingEventArgs.cs:
34875           - Never check in before compiling. Fixes the last check-in
34876
34877 2004-08-11 16:26  pbartok
34878
34879         * InputLanguageChangingEventArgs.cs:
34880           - More signature fixes
34881
34882 2004-08-11 16:20  pbartok
34883
34884         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
34885           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
34886           ImageListStreamer.cs, InputLanguage.cs,
34887           InputLanguageChangedEventArgs.cs,
34888           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
34889           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
34890           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
34891           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34892           - Signature fixes
34893
34894 2004-08-11 16:16  pbartok
34895
34896         * Application.cs:
34897           - Fixed Signature
34898           - Added .Net 1.1 method
34899
34900 2004-08-11 15:25  pbartok
34901
34902         * SWF.csproj:
34903           - Fixed BindingManagerBase.cs filename
34904
34905 2004-08-11 15:22  pbartok
34906
34907         * BindingManagerBase.cs:
34908           - Was checked in with wrong filename
34909
34910 2004-08-11 14:50  pbartok
34911
34912         * SWF.csproj:
34913           - Updated
34914
34915 2004-08-11 13:41  jordi
34916
34917         * XplatUIWin32.cs: Fixes ClientRect
34918
34919 2004-08-11 13:19  pbartok
34920
34921         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34922           XplatUIX11.cs:
34923           - We had SetWindowPos and MoveWindow to set window positions and
34924             size, removed MoveWindow. We have GetWindowPos, so it made sense to
34925             keep SetWindowPos as matching counterpart
34926           - Added some X11 sanity checking
34927
34928 2004-08-11 12:59  pbartok
34929
34930         * Control.cs:
34931           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
34932             (It seems that SetBounds is just a front for SetBoundsCore and
34933              SetBoundsCore updates the underlying window system and
34934              UpdateBounds is responsible for updating the variables associated
34935              with the Control and sending the events)
34936           - Major cleanup of Size handling; we now have two sizes, client_size
34937             and bounds. Bounds defines the window with decorations, client_size
34938             without them.
34939
34940 2004-08-11 12:55  pbartok
34941
34942         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34943           - Added method to calculate difference between decorated window and
34944             raw client area
34945
34946 2004-08-11 12:54  pbartok
34947
34948         * Label.cs:
34949           - Forcing redraw on resize
34950
34951 2004-08-11 11:43  pbartok
34952
34953         * ImageList.cs:
34954           - Removed disposing of the actual images when the list is disposed
34955
34956 2004-08-11 09:13  pbartok
34957
34958         * Control.cs:
34959           - Now properly reparents windows
34960
34961 2004-08-11 08:37  pbartok
34962
34963         * Control.cs:
34964           - Duh!
34965
34966 2004-08-11 07:47  pbartok
34967
34968         * Control.cs:
34969           - Rewrote the collection stuff. Might not be as fast now, not
34970             keeping the number of children around and accessible directly, but
34971             it's more straightforward
34972
34973 2004-08-11 07:44  pbartok
34974
34975         * AccessibleObject.cs:
34976           - Fixed to match ControlCollection rewrite
34977
34978 2004-08-11 07:43  pbartok
34979
34980         * ImageList.cs:
34981           - Added missing creation of the collection list
34982
34983 2004-08-10 20:08  jackson
34984
34985         * StatusBar.cs: Get the paint message from WndProc
34986
34987 2004-08-10 19:31  jackson
34988
34989         * ThemeWin32Classic.cs: Create Brushes as little as possible
34990
34991 2004-08-10 19:20  jackson
34992
34993         * UICues.cs: Add Flags attribute
34994
34995 2004-08-10 19:19  jackson
34996
34997         * StatusBarPanel.cs: Signature cleanup
34998
34999 2004-08-10 19:10  jackson
35000
35001         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
35002           Initial implementation of status bar item drawing
35003
35004 2004-08-10 17:27  jordi
35005
35006         * TrackBar.cs: add missing methods, properties, and restructure to
35007           hide extra ones
35008
35009 2004-08-10 16:24  jackson
35010
35011         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
35012           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
35013           attribute
35014
35015 2004-08-10 13:21  jordi
35016
35017         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
35018           enhancements and standarize on win colors defaults
35019
35020 2004-08-10 12:52  jackson
35021
35022         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
35023           ThemeWin32Classic.cs: Implement DrawItem functionality
35024
35025 2004-08-10 12:47  jordi
35026
35027         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
35028
35029 2004-08-10 12:32  jordi
35030
35031         * Control.cs: throw ontextchange event
35032
35033 2004-08-10 11:43  pbartok
35034
35035         * Control.cs:
35036           - Added more to the still unfinished Dock/Anchor layout code
35037
35038 2004-08-10 11:39  pbartok
35039
35040         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
35041           - Added GetWindowPos method
35042
35043 2004-08-10 11:36  pbartok
35044
35045         * XplatUIWin32.cs:
35046           - Implemented several methods
35047
35048 2004-08-10 09:47  jackson
35049
35050         * TrackBar.cs: Allow control to handle buffering
35051
35052 2004-08-10 09:41  jackson
35053
35054         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
35055
35056 2004-08-10 09:24  jackson
35057
35058         * Label.cs, LinkLabel.cs: Let Control handle buffering.
35059
35060 2004-08-10 09:09  jackson
35061
35062         * StatusBar.cs: Let Control handle all the buffering.
35063
35064 2004-08-10 09:08  jackson
35065
35066         * Control.cs: Control will now handle the buffering code, so each
35067           control does not have to implement this.
35068
35069 2004-08-10 08:34  jackson
35070
35071         * XplatUIDriver.cs: Use default colors from the theme
35072
35073 2004-08-09 17:12  pbartok
35074
35075         * ImageList.cs:
35076           - Fixed several bugs Ravindra pointed out
35077
35078 2004-08-09 16:11  pbartok
35079
35080         * Control.cs:
35081           - Added incomplete dock layout code
35082           - Added support for mouse wheel
35083
35084 2004-08-09 16:09  pbartok
35085
35086         * XplatUIX11.cs:
35087           - Added handling for middle and right mousebutton
35088           - Added handling for mouse wheel
35089           - Added handling for key state and mouse state and position
35090           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
35091           messages
35092
35093 2004-08-09 15:40  jackson
35094
35095         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
35096           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
35097           checkin
35098
35099 2004-08-09 15:37  jackson
35100
35101         * StatusBar.cs: Initial implementation of StatusBar
35102
35103 2004-08-09 15:36  jackson
35104
35105         * ITheme.cs: Add support for drawing status bar and getting status
35106           bar item sizes
35107
35108 2004-08-09 15:35  pbartok
35109
35110         * MouseButtons.cs:
35111           - Fixed values
35112
35113 2004-08-09 15:34  jackson
35114
35115         * ThemeWin32Classic.cs: Add support for drawing status bar and get
35116           status bar item sizes
35117
35118 2004-08-09 15:21  jackson
35119
35120         * ThemeWin32Classic.cs: Use known colors for default control
35121           colours
35122
35123 2004-08-09 15:12  jackson
35124
35125         * ThemeWin32Classic.cs: Make the default font static, it is static
35126           in control so this doesn't change functionality and creating fonts
35127           is sloooooow.
35128
35129 2004-08-09 14:56  pbartok
35130
35131         * X11Structs.cs:
35132           - Added GrabMode enum
35133
35134 2004-08-09 14:55  pbartok
35135
35136         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35137           - Removed Run method, was only required for initial development
35138
35139 2004-08-09 14:51  pbartok
35140
35141         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35142           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
35143           capture
35144
35145 2004-08-09 13:48  pbartok
35146
35147         * XplatUIX11.cs:
35148           - Fixed default sizing for child windows
35149
35150 2004-08-09 12:56  pbartok
35151
35152         * XplatUIX11.cs:
35153           - Added generation of WM_DESTROY message
35154           - Added handling of window manager induced shutdown
35155
35156 2004-08-09 11:31  jackson
35157
35158         * ThemeWin32Classic.cs: New names for control properties
35159
35160 2004-08-09 11:25  jackson
35161
35162         * Control.cs: Use new color names
35163
35164 2004-08-09 11:02  jackson
35165
35166         * XplatUI.cs: Get default window properties from the theme
35167
35168 2004-08-09 11:01  jackson
35169
35170         * ITheme.cs: The theme engine now controls default window
35171           properties
35172
35173 2004-08-09 11:00  jackson
35174
35175         * ThemeWin32Classic.cs: Add default window color properties
35176
35177 2004-08-09 10:17  jackson
35178
35179         * ThemeWin32Classic.cs: Use correct default back color
35180
35181 2004-08-09 10:05  jackson
35182
35183         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
35184           the theme now.
35185
35186 2004-08-09 09:56  jackson
35187
35188         * XplatUI.cs: Remove defaults, these are handled by the theme now.
35189
35190 2004-08-09 09:54  jackson
35191
35192         * Control.cs: Get default properties from the theme.
35193
35194 2004-08-09 09:53  jackson
35195
35196         * ITheme.cs: Themes now handle default control properties
35197
35198 2004-08-09 09:53  jackson
35199
35200         * ThemeWin32Classic.cs: Themes now handle default control
35201           properties so coloring will be consistent
35202
35203 2004-08-08 16:54  jordi
35204
35205         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
35206
35207 2004-08-08 15:08  jordi
35208
35209         * XplatUIX11.cs: fixes keyboard crash
35210
35211 2004-08-08 13:47  jordi
35212
35213         * Label.cs: add cvs header info
35214
35215 2004-08-08 12:09  jackson
35216
35217         * ThemeWin32Classic.cs: Add pen_buttonface
35218
35219 2004-08-08 11:52  jordi
35220
35221         * Label.cs, LinkLabel.cs: [no log message]
35222
35223 2004-08-08 11:34  jordi
35224
35225         * ThemeWin32Classic.cs: Use Windows Standard Colours
35226
35227 2004-08-07 17:32  jordi
35228
35229         * TrackBar.cs: throw exceptions of invalid enums values
35230
35231 2004-08-07 17:31  jordi
35232
35233         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
35234           draw method name
35235
35236 2004-08-07 16:56  jackson
35237
35238         * HorizontalAlignment.cs: Initial checkin
35239
35240 2004-08-07 13:16  jordi
35241
35242         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
35243           methods
35244
35245 2004-08-07 13:05  jordi
35246
35247         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
35248           GetSysColor defines
35249
35250 2004-08-06 18:01  pbartok
35251
35252         * ThemeWin32Classic.cs:
35253           - Fixed some rounding issues with float/int
35254
35255 2004-08-06 18:00  jackson
35256
35257         * DockStyle.cs, AnchorStyles.cs:
35258
35259                   Add flags and serializable attributes.
35260
35261 2004-08-06 17:46  pbartok
35262
35263         * XplatUIX11.cs:
35264           - Implemented GetParent
35265
35266 2004-08-06 17:18  pbartok
35267
35268         * TrackBar.cs:
35269           - Fixed some rounding issues with float/int
35270
35271 2004-08-06 17:17  pbartok
35272
35273         * X11Structs.cs, XplatUIX11.cs:
35274           - Fixed Refresh and Invalidate
35275
35276 2004-08-06 15:30  pbartok
35277
35278         * Control.cs, X11Structs.cs, XplatUIX11.cs:
35279           - Fixed recursive loop when resizing
35280           - Improved/fixed redrawing on expose messages
35281
35282 2004-08-06 09:53  jordi
35283
35284         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
35285           keyboard navigation
35286
35287 2004-08-06 08:02  pbartok
35288
35289         * X11Structs.cs, XplatUIX11.cs:
35290           - Fixed reparenting
35291           - Fixed window border creation
35292
35293 2004-08-05 15:38  pbartok
35294
35295         * XplatUIX11.cs:
35296           - Attempted fix for reparenting problems
35297
35298 2004-08-04 15:14  pbartok
35299
35300         * Control.cs:
35301           - Fixed Invalidation bug (calculated wrong client area)
35302           - Added ClientSize setter
35303
35304 2004-08-04 15:13  pbartok
35305
35306         * Form.cs:
35307           - Added AutoScale properties
35308
35309 2004-08-04 15:13  pbartok
35310
35311         * SWF.csproj:
35312           - Added latest files
35313
35314 2004-08-04 14:11  pbartok
35315
35316         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35317           XplatUIX11.cs:
35318           - Added Invalidate handling
35319
35320 2004-08-03 17:09  jordi
35321
35322         * XplatUIDriver.cs: fixes spelling mistake
35323
35324 2004-07-27 09:53  jordi
35325
35326         * TrackBar.cs: fixes trackbar events, def classname, methods
35327           signature
35328
35329 2004-07-27 09:29  jordi
35330
35331         * ScrollBar.cs: fixes scrollbar events
35332
35333 2004-07-27 04:38  jordi
35334
35335         * Control.cs: changes to be able to run winforms samples
35336
35337 2004-07-26 11:42  jordi
35338
35339         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
35340           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
35341
35342 2004-07-26 05:41  jordi
35343
35344         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
35345           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
35346           implementation
35347
35348 2004-07-22 09:22  jordi
35349
35350         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
35351           check link overlapping, implement events, and fixes
35352
35353 2004-07-21 10:28  jordi
35354
35355         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
35356
35357 2004-07-21 10:19  jordi
35358
35359         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
35360           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
35361           LinkLabelLinkClickedEventArgs.cs,
35362           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
35363           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
35364           implementation
35365
35366 2004-07-19 13:09  jordi
35367
35368         * Control.cs, Label.cs: label control re-written: added missing
35369           functionlity, events, and properties
35370
35371 2004-07-19 10:49  jordi
35372
35373         * Control.cs: fixes SetBounds logic
35374
35375 2004-07-19 01:29  jordi
35376
35377         * Control.cs: Call RefreshWindow only if the window has created
35378
35379 2004-07-15 14:05  pbartok
35380
35381         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
35382           - Implemented ImageList and ImageList.ImageCollection classes
35383           - Added ColorDepth enumeration
35384           - Updated SWF VS.Net project
35385
35386 2004-07-15 11:06  jordi
35387
35388         * XplatUIStructs.cs: added MsgButons enum
35389
35390 2004-07-15 11:03  jordi
35391
35392         * Control.cs: added basic mouse handeling events
35393
35394 2004-07-15 03:38  jordi
35395
35396         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
35397           Vertical TrackBar control implementation
35398
35399 2004-07-13 09:33  jordi
35400
35401         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
35402
35403 2004-07-13 09:31  jordi
35404
35405         * Control.cs, Form.cs: commit: new properties and fixes form size
35406           problems
35407
35408 2004-07-09 14:13  miguel
35409
35410         * ProgressBar.cs: Spelling
35411
35412 2004-07-09 11:25  pbartok
35413
35414         * ProgressBar.cs:
35415           - Removed usage of Rectangle for drawing. Miguel pointed out it's
35416           faster
35417
35418 2004-07-09 11:17  miguel
35419
35420         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
35421
35422                 * ProgressBar.cs: Fixed spelling for `block'
35423
35424                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
35425                 style guidelines.
35426
35427                 Avoid using the += on rect.X, that exposed a bug in the compiler.
35428
35429 2004-07-08 23:21  pbartok
35430
35431         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
35432           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
35433           BaseCollection.cs, Binding.cs, BindingContext.cs,
35434           BindingMemberInfo.cs, BindingsCollection.cs,
35435           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
35436           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
35437           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
35438           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
35439           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
35440           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
35441           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
35442           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
35443           FrameStyle.cs, GiveFeedbackEventArgs.cs,
35444           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
35445           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
35446           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
35447           InputLanguageChangedEventArgs.cs,
35448           InputLanguageChangedEventHandler.cs,
35449           InputLanguageChangingEventArgs.cs,
35450           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
35451           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
35452           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
35453           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
35454           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
35455           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
35456           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
35457           QueryAccessibilityHelpEventArgs.cs,
35458           QueryAccessibilityHelpEventHandler.cs,
35459           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
35460           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
35461           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
35462           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
35463           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
35464           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
35465           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
35466           XplatUIX11.cs, lang.cs:
35467           - Initial check-in
35468
35469