2008-07-09 George Giolfan <georgegiolfan@yahoo.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
2
3         * IDeviceContext.cs: Added Dispose.
4
5 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
6
7         * Control.cs: Added OnSizeInitializedOrChanged.
8         * Form.cs: OnLoadInternal: Added a call to
9         Control.OnSizeInitializedOrChanged.
10         * InternalWindowManager.cs:
11          * HandleTitleBarMouseMove: No longer invalidates the parent window.
12          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
13          * TitleButton: Added Entered.
14          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
15         * MdiWindowManager.cs:
16          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
17          move over the maximized title buttons causes a change.
18          * IsActive: Can now be called before the window is added to a MDI parent.
19         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
20         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
21         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
22         * ThemeWin32Classic.cs:
23          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
24          * DrawTitleButton takes a new form parameter.
25          * Added ManagedWindowTitleButtonHasHotElementStyle,
26          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
27
28 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
29
30         * ThemeEngine.cs: ThemeVisualStyles is now selected if
31         Application.EnableVisualStyles has been called, even if the current system
32         configuration does not support rendering with Visual Styles.
33         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
34         Styles should not be used.
35
36 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
37
38         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
39         ComboBox in FormsTest.
40
41 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
42
43         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
44         for fixed toolwindows.
45
46 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
47
48         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
49
50 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
51
52         * Control.cs: CreateControl just returns if the Control is diposed 
53         and doesn't throw ObjectDisposedException.
54         [Fixes bug #406566]
55
56 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
57
58         * Control.cs: Do not create the control if the parent isn't created 
59         yet, e.g in the case of a parented form on which .Show is called.
60         It will be created when the parent is made visible/created.
61         Improves #402446.
62
63 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
64
65         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
66         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
67         [Fixes bug #406786]
68
69 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
70
71         * Form.cs: When disposed set owner to null. Improves #402446.
72
73 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
74
75         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
76         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
77         if not.
78         * Form.cs: Take the Padding into account for the PreferredSize.
79         [Fixes bug #402849]
80
81 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
82
83         * TabControl.cs: Since we don't support more than one direction in
84         TabControl rows alignment (this is, the row becomes the
85         bottom row when selected), make Direction return always 1. This way
86         the layout doesn't get confused about a bad calculation.
87         Fixes #399582.
88
89 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
90
91         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
92         so that the wparam is properly set.
93         Fixes form moving in the test case in bug 402446.
94
95 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
96
97         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
98         the full tree instead of nothing.  [Improves bug #406584]
99
100 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
101
102         * ThemeWin32Classic.cs: Adjusted minimized window painting.
103
104 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
105
106         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
107         children.
108
109 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
110
111         * TreeView.cs: Add a null check when using CollapseAll on an
112         empty tree.  [Fixes bug #406449]
113
114 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
115
116         * Form.cs: Make OnMenuComplete internal so we can call it.
117         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
118         [Fixes bug #399321]
119
120 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
121
122         * TabControl.cs: Handle Up and Down keys when TabControl is in
123         vertical alignment.
124         [Fixes bug #399585]
125
126 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
127
128         * TabControl.cs: Invalidate when we remove a tab.  Guard against
129         an AOORE when trying to remove a tabpage that is not owned by the
130         parent control.
131         [Fixes bug #399927]
132
133 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
134
135         * ScrollBar.cs: Change the LargeChange calculation to be correct.
136         Ensure we are using LargeChange instead of large_change so we our
137         calculations are correct.
138         [Fixes bug #403122]
139
140 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
141
142         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
143         we need to ensure the ColumnCount/RowCount gets set.
144         [Fixes bug #404851]
145
146 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
147
148         * ListBox.cs: When handling item navigation, if selection mode is
149         None, call EnsureVisible, since scrolling is normally handled by
150         selection, that we are not calling in this case.
151         Fixes #398345.
152
153 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
154
155         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
156         a null check to our focus walking code.  [Fixes bug #394332]
157
158 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
159
160         * ComboBox.cs: Case missed in bug 379596 "Support item
161         navigation by entering text": On _close_ drop-down select
162         the first item matching the text in the textbox.  [Fixes bug #397265]
163
164 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
165
166         * DataGridView.cs: Fix a crash when sorting by column headers, 
167         mentioned in bug #404841.  Remove some dead switch cases.
168
169 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
170
171         * ComboBox.cs:
172         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
173         uses the AutoComplete support in the internal TextBox. Also TextBox
174         can store a reference to ComboBox, in case AutoCompleteSource is set
175         to ListItems (this is, ComboBox's items, and we don't want to pass an
176         additional collection).
177
178 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
179
180         * ListViewItem.cs: Restore the initial value of bounds rect to
181         Rectangle.Empty, and is this value for Layout detection in virtual
182         mode. Fixes the tests.
183
184 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
185
186         * XPlatUI.cs: Remove references to "new" X11 backend.
187
188 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
189
190         * Control.cs: Add an internal virtual OnDragDropEnd method 
191         to allow controls such as ListBox, which depend on a sequence 
192         of MouseDown+Move+End events, to handle the lack of a MouseUp 
193         when a DnD operation is started in MouseDown.
194         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
195         get a MouseUp, so reset our state whenever a DnD operation ends.
196
197 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
198
199         * PropertyGrid.cs: Clear the root griditem first thing when 
200         new object/s is/are selected. Fixes some rare cases where 
201         the View will get a paint request and won't know that the 
202         grid is in the process of repopulating.
203
204 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
205
206         * XplatUIX11.cs, InternalWindowManager.cs: 
207         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
208         doesn't automagically update the FormBorderStyle, so we must 
209         double check the CreateParams explicitly to determine if the 
210         window is a toolwindow.
211         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
212         instead of doing custom checks.
213
214         Fixes toolwindows for the test case in bug #402446
215
216 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
217
218         * Control.cs: Visibility of the control should be false 
219         when the handle is destroyed in WmDestroy and not immediately 
220         in Dispose(). This is effectively where the disposing process 
221         ends even though the control is marked as Disposed immediately 
222         after calling Dispose().
223         [Fixes bug #402446]
224
225 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
226
227         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
228         when the textbox gets focus.
229         [Fixes bug #402704]
230
231 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
232
233         * PropertyGridTextBox.cs, PropertyGridView.cs: 
234          - Alt + Down should show the drop down editor.
235          - Focus the editor when showing it
236         [Fixes bug #402710]
237
238 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
239
240         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
241         that are not the first panel.
242         * StatusBar.cs: Ensure that the X coordinate of panels is always
243         stored.  Fix IList implementation of StatusBarPanelCollection to
244         call the regular methods.
245         [Fixes bug #403599, #402165]
246
247 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
248
249         * ThemeWin32Classic.cs: Fix position calculation for centered
250         text on status bar panels.  [Fixes bug #402165]
251
252 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
253
254         * Splitter.cs: Fix Splitter to:
255          - Work for arbitrary splitter size
256          - Handle MinSize and MinExtra properly
257          - Get rid of absolute positioning during drag and use relative
258          - Multiple other fixes 
259          [Fixes bug #338966]
260
261 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
262
263         * Cursor.cs: Show shouldn't hide the cursor.
264
265 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
266
267         * ListViewItem.cs: When invalidating, add some extra space to bounds,
268         since focus rectangle and selection can add some space and need to
269         take into account those small offsets - specially in Details view.
270         * ListView.cs: Instead of invalidate using item Bounds directly, call
271         item.Invalidate, to have the code centralized.
272         Fixes focused/selection garbage when selecting and deselecting items
273         that are close.
274
275 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
276
277         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
278         mode we can check whether we have to force a Layout or not, and can
279         cache based on this, instead of avoiding caching all the the time. Do
280         this check in GetBounds and TextBounds.
281         Fixes selection in Details view.
282
283 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
284
285         * ListView.cs: Make HeaderControl internal, thus the theme engine can
286         get its *real* height instead of trying to infere it.
287         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
288         get the position of them, since it's in general a bad idea in general,
289         and because we can't do that in virtual mode. Instead get the first
290         visible item as well as item height, and draw them.
291         Fixes #400390.
292
293 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
294
295         * ToolStripSplitButton.cs: We can't add in extra width if
296         the button is not AutoSize.  [Fixes bug #401279]
297
298 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
299
300         * PaddingConverter.cs: 
301          - Implement conversion to InstanceDescriptor
302          - Handle "All" in CreateInstance by using the supplied 
303          ITypeDescriptorContext.
304          [Fixes bugs #396076 and #396078]
305
306          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
307          Code contributed under MIT/X11 license.
308
309 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
310
311         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
312         ButtonBase.cs:
313         Add Category attributes.
314         Code is contributed under the MIT/X11 license.
315
316 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
317
318         * Form.cs: 
319          - Fix a NRE when unparenting a form.
320          - Do not recreate or destroy a parented form when 
321         unparenting. 
322
323 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
324
325         * TextBox.cs: Implement basic support for AutComplete with custom
326         sources.
327
328 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
329
330         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
331         DropDownButtonBounds should be from the origin of the button, not the
332         ToolStrip.  [Fixes bug #401279]
333
334 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
335
336         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
337           running gtk_init_check.  This prevents GAIL from loading
338           unnecessarily, which was breaking UIA support.  Initial fix for bug
339           #375987.
340         * Application.cs: Add UIA support to Winforms.  New static constructor
341           uses reflection to initialize UIAutomationWinforms assembly.  Added
342           PreRun event so UIA can initialize before the mainloop starts, and
343           FormAdded event so UIA can provide a11y support for new Forms in an
344           Application.
345
346 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
347
348         * DataGridView.cs: When binding to a dataset, subscribe to table
349         and column change events.  Unsubscribe to these when we clear bindings.
350         [Fixes bug #399601]
351
352 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
353
354         [DataGrid drawing refactory]
355
356         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
357
358         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
359         must be handle by Theme, now it call DataGridPaintColumnHeader.
360
361         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
362         test cases must be also fixed because it checks for wrong size.
363
364         * ThemeWin32Classic.cs: 
365                 - Draw the bottom line of grid caption.
366                 - Prevent to draw caption text when it is empty.
367                 - Use CPDrawBorder3D for 3D efects to simplify code.
368                 - Uses 3D (when not flat) to paint corner shared between row and column
369                 header.
370                 - Fix header drawing issues on win32, now borders are drawing.
371                 - Fix column header paint issues to mimic win32.
372                 - Adjust header drawing for last column, like first one it must be draw
373                 different.
374                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
375                 not an character.
376                 - DataGridPaintColumnHeader created to draw column headers, it also
377                 paint stuff right on Win32.
378                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
379                 class.
380
381         * Theme.cs: 
382                 - DataGridPaintRowHeaderStar method added.
383                 - DataGridPaintColumnHeader method added.
384
385 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
386
387         * Control.cs: Don't reset to Dock style layout if DockStyle is
388         set to none.  [Fixes bug #399316]
389
390 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
391
392         * Win32DnD.cs: Fix the check for control not equal null.
393         Fixes bug #341420 and #381886. 
394
395 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
396
397         * DataGridViewRowCollection.cs: Update the indexes of rows after
398         one has been removed.
399         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
400         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
401         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
402         rows for the Rows collection, or deleting rows from the bound DataSet.
403
404 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
405
406         * DataGridView.cs: Listen to a DataSet's changed event even
407         when autogeneratecolumns is false.  Refactor the changed event's
408         add row code to use the same as the existing add row code.
409         [Fixes bug #399601]
410
411 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
412
413         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
414         much any time the caret moves and there is text, not just when
415         the selection changes as one would think.
416         * RichTextBox.cs: Override RaiseSelectionChanged and fire
417         SelectionChanged.
418         [Fixes bug #397271]
419
420 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
421
422         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
423         instead of trying to duplicate the code.
424         * ListBox.cs: Make method internal so we can send keyboard events.
425         [Fixes bug #398344]
426         
427 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
428
429         * TextBoxBase.cs: When pasting and checking the max length,
430         subtract the selected text length (the text we will be replacing) from
431         the document length.
432         * TextControl.cs: Ensure every character insertion is reflected in
433         charcount, so max length will work properly.
434         [Fixes bug #398605]
435
436 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
437
438         * ListBox.cs: Ensure scrollbars are updated when a single
439         column listbox with an already set top-index is created.
440         [Fixes bug #398342]
441
442 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
443
444         * FontDialog.cs: Typing in the font/style textboxes should search
445         the list boxes case-insensitively.  [Fixes bug #398343]
446
447 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
448
449         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
450         widths of icon and buttons instead of hard coded values.
451
452 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
453
454         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
455         as well as generating a SelectedIndexChanged event, just like .Net does
456         -surprise-.
457         Fixes #398345.
458
459 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
460
461         * ListBox.cs: When navigating items visually, use FocusedItem as the
462         reference point instead of SelectedIndex, since even in
463         SelectionMode.None we need to support navigation, and in that case we
464         just can't use SelectedIndex.
465         Fixes part of #398345.
466
467 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
468
469         * Control.cs: Make a SetBoundsInternal that avoids the new
470         SetBounds code.
471         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
472         SetBoundsInternal instead of SetBoundsCoreInternal.
473
474 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
475
476         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
477         SetBounds for the scrollbars.
478
479 2008-06-10  Andreia Gaita <avidigal@novell.com> 
480
481         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
482           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
483           OnMouseMove, OnMouseOver, OnMouseUp
484         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
485           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
486         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
487           to the WebControl object to pass to new collection objects
488         * HtmlHistory.cs: Implement support for individual window histories.
489         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
490           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
491           GotFocus, LostFocus, OnLoad, OnUnload
492         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
493           ContextMenu
494         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
495           security level changes and context menu event support.
496
497 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
498
499         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
500         as happens with Esc, patch my Andy Hume.
501         Fixes #396294.
502
503 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
504
505         * MdiWindowManager.cs: DrawMaximizedButtons now uses
506         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
507         * Theme.cs: Made MenuButtonSize platform dependent. Added
508         ManagedWindowButtonSize.
509         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
510         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
511
512 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
513
514         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
515         Added support for rendering with VisualStyles.
516
517 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
518
519         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
520         support for rendering the border with VisualStyles.
521
522 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
523
524         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
525         the icon is not shown.
526         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
527         its own logic.
528
529 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
530
531         * InternalWindowManager.cs: Draw minimized windows even if they don't have
532         borders.
533
534 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
535
536         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
537
538 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
539
540         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
541         [Fixes bug #397943]
542
543 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
544
545         * ComboBox.cs: When snaping height -because of IntegralHeight set to
546         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
547         if the requested height leaves the listbox area with *less* than the
548         required are to see one item. We were setting it to PreferredHeight
549         even for values matching the height for a single item.
550         Fixes #396297.
551
552 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
553
554         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
555
556 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
557
558         * DataGridViewCell.cs: Use property instead of field.
559
560 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
561
562         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
563         null checks.
564
565 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
566
567         * Theme.cs: Added #region around the managed window code. Made the managed
568         window methods abstract.
569         * ThemeWin32Classic.cs: Added #region around the managed window code.
570
571 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
572
573         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
574         if it has borders.
575         * ThemeWin32Classic.cs: Removed HasBorders checks in
576         DrawManagedWindowDecorations.
577
578 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
579
580         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
581         Extracted ManagedWindowGetTitleBarIconArea.
582
583 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
584
585         * DataGridViewCellStyle.cs: Don't clone the font.
586
587 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
588
589         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
590
591 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
592
593         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
594         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
595         in 64 bit machines.
596
597 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
598
599         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
600         Use Format/FormatProvider before trying converters.
601         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
602         are 'set'.  Change constructor to not use ApplyStyle since it wants
603         everything applied.  Clone the Font.
604         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
605         ApplyStyle the rest.
606
607 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
608
609         * ListView.cs: We need to calculate the scrollbars even if the handle
610         hasn't been created - this is needed when methods using scrollbars
611         info, such EnsureVisible, are called before control has been created.
612         Fixes #397272.
613
614 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
615
616         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
617         only if the elements are defined. 
618
619 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
620
621         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
622         section. Also, when setting bounds, snap height as well as save the
623         requested height if Dock has any value affecting the height: Left,
624         Right and Bottom - important if using IntegralHeight as true.
625
626 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
627
628         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
629         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
630         instead of doing that only in our SetBoundsCore override, since the 
631         bounds cached can be the same as saved one and we could not get the
632         new height applied.
633         Fixes #396297.
634
635 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
636
637         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
638         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
639         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
640         ToolWindowCaptionButtonSize.
641         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
642
643 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
644
645         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
646         hard coded values.
647         * Theme.cs: Made DoubleClickTime plaform dependent.
648
649 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
650
651         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
652         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
653         ToolWindowCaptionHeight.
654
655 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
656
657         * InternalWindowManager.cs: The adjustment to ensure positive client area
658         sizes is now platform dependent (disabled on Windows).
659         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
660         RequiresPositiveClientAreaSize.
661
662 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
663
664         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
665
666 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
667
668         * InternalWindowManager.cs: Changed IconicSize to use
669         SystemInformation.MinimizedWindowSize.
670         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
671         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
672
673 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
674
675         * ComboBox.cs: If the combobox is anchored both on top and bottom,
676         adjust height if IntegralHeight is true when calling SetBoundsCore (as
677         likely the height was modified even if Height wasn't specified in
678         BoundsSpecified parameter).
679         Fixes part of #396297.
680
681 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
682
683         * InternalWindowsManager.cs: Changed minimum window size while resizing to
684         SystemInformation.MinWindowTrackSize.
685         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
686         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
687
688 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
689
690         * MenuItem.cs: Fixed Dispose.
691
692 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
693
694         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
695         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
696         EnteredHeaderCell, PressedHeaderCell: Added.
697         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
698         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
699         theme a chance to override default painting.
700         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
701         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
702         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
703         ListView and DataGridView header rendering.
704         
705 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
706
707         * RichTextBox.cs: GetPositionFromCharIndex should return the 
708         visual position of the character relative to the viewport.
709         [Fixes part of bug #396664]
710
711 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
712
713         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
714         and not just for the existance of an UITypeEditor. In some cases 
715         there is an editor associated just to do PaintValue, but which 
716         doesn't actually support editing.
717         [Fixes bug #396632]
718
719 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
720
721         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
722         if needed, instead of 0 - this should help us in the corner case where
723         we have more than one item but we are only partially showing 1 item.
724         Fixes part of #374713.
725
726 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
727
728         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
729         control, return immediately if the any parent control's handle hasn't
730         been created or isn't visible, as well as avoiding creating the parent
731         Form if the handle hasn't been previously created.
732         Fixes tests.
733
734 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
735
736         * TableLayoutPanel.cs: Use border sizes when calculating the
737         panel's preferred size.  [Fixes part of bug #396433]
738
739 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
740
741         * SplitContainer.cs:
742          - Fix SplitterDistance to update only if needed. 
743          - Make it force min and max validation.
744          - Handle properly mouse moves outside the resizeable area.
745          [Fixes bug #396232]
746
747 2008-06-02  Andreia Gaita <avidigal@novell.com> 
748
749         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
750           (which also suppresses all popup dialogs). Throw NotSupported
751           exceptions for activex getters/setters.
752         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
753           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
754           StatusText, Version, GoSearch
755         * HtmlDocument.cs: Add DocType support
756
757 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
758
759         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
760         [Fixes bug 396124]
761
762 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
763
764         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
765
766 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
767
768         * TableLayoutPanel.cs: When calculating preferred size, use the
769         actual number of columns and rows, not what the user set them to.
770         [Fixes bug #396141]
771
772 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
773
774         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
775         394311.
776
777 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
778
779         * XplatUIX11.cs: When detecting areas obscured in a control by other
780         toplevel windows while scrolling, return if the control hasn't a 
781         container form.
782         Fixes some tests.
783
784 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
785
786         * XplatUIX11.cs: Properly detect the visible area of a control being
787         scrolled (obscured by other winforms controls and any X toplevel
788         windows), to mark as invalid the requested area to be scrolled that
789         isn't visible and thus can't be copied.
790         Fixes #324513.
791
792 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
793
794         * ListBox.cs: Compute the precise amount to vertically scroll when
795         using DrawMode.OwnerDrawVariable.
796         Patch by jkeymer (j.keymer@gmx.net).
797
798 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
799
800         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
801         to avoid setting an invalid value for the verticall scrollbar 
802         when navigating items. And, duh, also remove my silly debug messages
803         from previous commits.
804         Fixes #374713.
805
806 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
807
808         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
809         make it MS compatible.
810
811 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
812
813         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
814          - Allow the editing of entries even if their parent is read-only.
815          - Do not render expandable properties read-only.
816          - Refactor expansion checks form PropertyGrid into PropertyGrid.
817
818 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
819
820         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
821         support for the hover style.
822
823 2008-05-29  Andreia Gaita <avidigal@novell.com> 
824
825         * ContainerControl.cs: Check for null dead-end when traversing the tree
826           of parent controls.
827         
828           [Fixes #394332, patch by Ernesto Carrea]
829
830 2008-05-29  Geoff Norton  <gnorton@novell.com>
831
832         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
833         constant that it is.  Fixes #393981
834
835 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
836
837         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
838         that the user probably doesn't want to set this.
839
840 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
841
842         * ThemeWin32Classic.cs: Don't let the text size be bigger than
843         the control size for CheckBox/RadioBox.
844         [Fixes part of bug #394645]
845
846 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
847
848         * PropertyGrid.cs: Update the state of the sorting buttons in 
849         the toolbar if PropertySort is set programatically.
850
851 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
852
853         * GridItemCollection.cs: Add multiple items with conflicting names 
854         support and also preserve name ordering.
855         [Fixes #395345]
856
857 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
858
859         * GridItemCollection.cs: Revert my multiple items with same 
860         name patch.
861
862 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
863
864         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
865         or middle ones.
866         Fixes part of #393908.
867
868 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
869
870         * ToolStripDrowDown.cs: When using the Show () methods that have a
871         Control parameter, set the menu owner to that Control.
872         [Fixes bug #394345]
873
874 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
875
876         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
877         [Fixes bug #362756]
878
879 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
880
881         * GridItemCollection.cs: Refactor to support multiple items with the 
882         same name.
883         [Fixes bug #394314]
884
885 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
886
887         * Control.cs: The 2.0 check for illegal cross thread calls in 
888         Control.Handle were throwing an exception when we were getting
889         the Handle in order to invoke correctly.  Created a private
890         version that does not contain this check.
891         [Fixes bug #394531]
892
893 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
894
895         * PropertyGrid.cs: Respect DefaultTabType.
896
897 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
898
899         * ListView.cs: SPACE selects an item.
900         [Fixes bug #393023]
901
902 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
903
904         * ListView.cs: Reset the search string whenever the items are 
905         modified.
906         [Fixes bug #393020]
907
908 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
909
910         * ListControl.cs: For the first added item PositionChanged is fired
911         _before_ ItemChanged, which leave us in a temporary invalid state - so
912         we need to set the selected index from ItemChanged handler *if* we
913         know that the first item has just been added *and* the items have been
914         actually added to the ListControl.
915         Fixes #369048.
916
917 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
918
919         * TabControl.cs: Only clicks with the left button should be
920         handled.
921         Fixes #393908.
922
923 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
924
925         * ComboBox.cs: 
926         * FIleDialog.cs:
927         * TextBox.cs: Expose an internal method in TextBox to restore the
928         original context menu, and call it from ComboBox to re-use it in the
929         combobox containing the file name in FileDialog.cs.
930         Fixes part of #393775.
931
932 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
933
934         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
935         style.
936
937 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
938
939         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
940         down button style.
941
942 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
943
944         * ComboBox.cs: Minor correction to previous patch: PageDown should
945         also *try* to move by one item if the computed offset is negative,
946         just like the PageUp case.
947
948 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
949
950         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
951         should be done for at least 1 item, and not stay at the same item.
952         Fixes part of #374713.
953
954 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
955
956         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
957         directories.  [Fixes bug #393931]
958
959 2008-05-22  Andreia Gaita <avidigal@novell.com> 
960
961         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
962           Don't fire events until the initial about:blank page has finished
963           loading. Clean up events.
964
965 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
966
967         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
968           FocusIn() too. This should fix the issue on switching
969           scim keyboards.
970
971 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
972
973         * X11Keyboard.cs : set XIM font size to somewhat reasonable
974           number (ideally the input textbox size, but that could be
975           too messy).
976
977 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
978
979         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
980         the ToolStripItem's TextChanged.  [Fixes bug #393597]
981
982 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
983
984         * TabControl.cs: When invalidating in SelectedIndex and we need to
985         inflate to take into account the border of the tabs, make sure that
986         the invalidated rect doesn't overflow the control bounds, since that
987         would avoid updating at all.
988
989 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
990
991         * TabControl.cs: Don't substract scroller width from the row width,
992         since we need to take into account the total width of the control when
993         calculating the position of the tabs. This avoids showing scroller
994         when it is actually not needed.
995         Fixes part of #322325.
996
997 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
998
999         * ThemeVisualStyles.cs: Added support for TextBoxBase.
1000
1001 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
1002
1003         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
1004         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
1005
1006 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
1007
1008         * DataGridView.cs: Only paint the top left header cell if there
1009         are columns.
1010
1011 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
1012
1013         * DataGridView.cs: When binding to a BindingSource, get the underlying
1014         list to bind to.  [Fixes bug #345483]
1015
1016 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
1017
1018         * DataGridView.cs: Do not bind to collection properties.
1019         [Fixes bug #337470]
1020
1021 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
1022
1023         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
1024
1025 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
1026
1027         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
1028         thumb style.
1029
1030 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
1031
1032         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
1033
1034 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
1035
1036         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
1037         background.
1038
1039 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
1040
1041         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
1042
1043 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
1044
1045         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
1046         checked styles.
1047
1048 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
1049
1050         * TabControl.cs: Extended to handle the hot style.
1051
1052 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
1053
1054         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
1055         Extended UpDownBase code to handle hot and disabled styles.
1056
1057 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
1058
1059         * DataGridView.cs: Handle databinding to generic list type things.
1060         [Fixes bug #325239]
1061
1062 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
1063
1064         * DataGridViewCellCollection.cs: Add a method to find the cell
1065         with the given DataPropertyName.
1066         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
1067         * DataGridViewColumnCollection.cs: Add a method to clear all
1068         autogenerated columns.
1069         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
1070         columns.
1071         [Fixes bug #348082]
1072
1073 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
1074
1075         * DataGridView.cs: Don't try to update the RowTemplate with
1076         a null CellTemplate.
1077
1078 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
1079
1080         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
1081         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
1082         * DataGridView.cs: Lots of fixes/enhancements to databinding to
1083         a DataSet.
1084
1085 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
1086
1087         * Control.cs: Remove invalidating implicit child controls when
1088         control is invalidated.  It was causing too many redraws on
1089         controls with implicit scrollbars.
1090         * ListView.cs: Listen to the Invalidated event and invalidate
1091         child controls.
1092
1093 2008-05-20  Andreia Gaita <avidigal@novell.com> 
1094
1095         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
1096         * HtmlDocument.cs: Check for nulls
1097
1098 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1099
1100         * Control.cs: In ControlCollection.RemoveInternal, remove the
1101         internal control before calling PerformLayout and OnControlRemoved,
1102         which was leaving us in an invalid state and causing a X error (bad
1103         match). Observe that Remove () call has the same order.
1104         Fixes an X error changing ComboBoxStyle.DropDownStyle.
1105
1106 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1107
1108         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
1109         being fired if ControlStyles.UserPaint style is activated.
1110         Fixes #371905.
1111
1112 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
1113
1114         * GridEntry.cs: Don't be so strict when setting the value - 
1115         do not check if what we set is what we get.
1116         [Fixes bug #389245]
1117
1118 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
1119
1120         * XplatUIX11.cs: If there are no timers timeout should be 0
1121         [Fixes bug #363522]
1122
1123 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
1124
1125         * Control.cs: As a followup to invalidating implicit children when
1126         a control is invalidated, only invalidate them if they are in the
1127         clip rectangle.
1128
1129 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
1130
1131         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
1132
1133 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
1134
1135         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
1136
1137 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
1138
1139         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
1140         * XplatUIWin32.cs: Made Win32DeleteObject public.
1141
1142 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
1143
1144         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
1145         PropertyDescriptor.ShouldSerializeValue.
1146         [Fixes bug #391924]
1147
1148 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
1149
1150         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
1151         in the classic theme.
1152
1153 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
1154
1155         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
1156         ThumbPressed.
1157         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
1158         ScrollBarHasPressedThumbStyle.
1159
1160 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
1161
1162         * TextRenderer.cs: Included some methods in the 1.1 profile.
1163
1164 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
1165
1166         * Control.cs: When we make a control visible, it may have been
1167         previously visible and while it wasn't visible, the z-order of
1168         things may have been shuffled, so the control needs to have its
1169         z-order updated just in case.  [Fixes bug #391518]
1170
1171 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
1172
1173         * ThemeVisualStyles.cs: Added support for GroupBox.
1174
1175 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
1176
1177         * GroupBoxRenderer.cs: Included in the 1.1 profile.
1178
1179 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
1180
1181         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
1182           bug #389996; XSelectInput() behaved as mouse handler robber,
1183           so remove extra call to it.
1184
1185 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
1186
1187         * Control.cs: Simplify ControlCollection.Contains method.
1188
1189 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
1190
1191         * DataGridViewRow.cs: Implement GetPreferredSize.
1192
1193 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
1194
1195         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
1196
1197 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
1198
1199         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
1200         painting and edit control fixes.
1201
1202 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
1203
1204         * DataGridView.cs, DataGridViewCell.cs: Work around some external
1205         checks to make sure we are in an actual row/col for top left header cell.
1206         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
1207
1208 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
1209
1210         * Control.cs: Use long instead of int when handling WParam from
1211         mousewheel scrolling.  Int was overflowing on Win64.
1212
1213 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
1214
1215         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
1216         flow panel without scrolling first, and then calculate the 
1217         scrolling based on the new layout.  [Fixes bug #390149]
1218
1219 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
1220
1221         * ListBox.cs: Invalidate after scrolling up when selected index
1222         changes.  [Fixes bug #390151]
1223
1224 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1225
1226         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
1227         set, default height to 150. I tried first with DefaultSize, but this
1228         is not generating a SetBoundsCore call before handle creation time, so
1229         we can take it into account. This is just what .net does.
1230
1231 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
1232
1233         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
1234         as it broke some stuff.  Calberto is filing a bug for eno to
1235         work with.
1236
1237 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1238
1239         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
1240         to 0 is the current value is -1, and if style is not Simple, just
1241         return, like .net does.
1242         Fixes part of #374713.
1243
1244 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
1245
1246         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
1247         progress bar stuffs, use doubles instead of ints to prevent
1248         overflow.  [Fixes bug #389798]
1249
1250 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
1251
1252         * XplatUIX11.cs, X11Keyboard.cs :
1253           Significant refactoring on XIM support. Now IM engine UI
1254           should show up, at mostly-correct preedit position.
1255           - Eliminated use of FocusWindow, as it is never mapped
1256             and hence blocks correct preedit position. XIC is now
1257             created per window, and it must be destroyed too when
1258             the window is destroyed.
1259           - WM_QUIT messages should not be filtered even when hwnd
1260             is zombie. Filtering it could cause endless loop.
1261           - Preedit position must move only when the window is alive.
1262           - Make it IDisposable and make sure to release XIM/XICs.
1263
1264 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
1265
1266         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
1267           XplatUIX11.cs, XplatUIWin32.cs :
1268           fix for bug #325033 and #387693;
1269           - WM_QUIT should not be sent when no running application
1270             exists.
1271           - SetTimer/KillTimer (especially on win32) should be
1272             invoked for the window that the timer is/will_be attached.
1273           - There could be unattached timers to a window when it's
1274             started. For those timers, hold pending timers and when
1275             a window is mapped, attach them to it.
1276           - WaitForHwndMessage() could run into loop when
1277             WM_SHOWWINDOW is handled before this method is called.
1278             So, strictly check wm_showwindow state.
1279           - Tick handler should not be invoked while one Tick handler
1280             call is still running (introduced Busy state).
1281
1282 2008-05-13  Andreia Gaita <avidigal@novell.com> 
1283
1284         * WebBrowserBase.cs: Override Internal alternative methods for
1285           SetBoundsCore and OnResize instead of the protected ones.
1286         * Control.cs: Move SetBoundsCore and OnResize implementations to
1287           SetBoundsCoreInternal and OnResizeInternal, so they can be
1288           overriden internally (WebBrowserBase needs to catch them but can't
1289           override the protected methods without api compat problems)
1290
1291 2008-05-13  Andreia Gaita <avidigal@novell.com> 
1292
1293         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
1294
1295 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1296
1297         * Binding.cs:
1298         * ListView.cs: Remove debug messages.
1299
1300 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1301
1302         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
1303         area is empty. Also calculate scrollbars in Simple mode based in area
1304         height and total number of items, not in MaxDropDownItems.
1305         Fixes part of #371991.
1306
1307 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1308
1309         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
1310
1311 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1312
1313         * BindingSource.cs: GetListSortDescription is not public.
1314
1315 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1316
1317         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
1318
1319 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1320
1321         * HtmlElement.cs: Fix parameter names to match MS.
1322         * HtmlWindowCollection.cs: Should not be sealed.
1323
1324 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1325
1326         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
1327         button, because the thumb button will not get drawn if the scrollbar
1328         is disabled.  [Fixes bug #389262]
1329
1330 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1331
1332         * ListBox.cs: Handle End key for multi-column listboxen.
1333         [Fixes bug #389266]
1334
1335 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1336
1337         * ListBox.cs: Fix algorithm to determine which column our item is in.
1338         [Fixes bug #389265]
1339
1340 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1341
1342         * ListBox.cs: Invalidate when the listbox is resized.
1343         [Fixes bug #389256]
1344
1345 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1346
1347         * ListBox.cs: There is always at least one row in the ListBox (if
1348         we are doing these calculations.)  [Fixes bug #389253]
1349
1350 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1351
1352         * ListBox.cs: There is always at least one column in the ListBox.
1353         [Fixes bug #389250]
1354
1355 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1356
1357         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
1358         ensure in Simple mode that the height is exactly the requested one.
1359         Also add the ComboBoxListControl to the controls collection in Simple
1360         mode even if handle hasn't been created.
1361         Fixes part of #371991.
1362
1363 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1364
1365         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
1366         our ComboBox owner instead of giving it back to the previous control (
1367         as done in other controls). Also remove the empty override of Select
1368         method, since we want to be selected *and* give focus to our owner.
1369         This should let the user do keys-navigation in Simple mode. 
1370
1371 2008-05-10  Geoff Norton  <gnorton@novell.com>
1372
1373         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
1374         problems with rapid scrolling of treeviews. Fixes #381084
1375
1376 2008-05-10  Geoff Norton  <gnorton@novell.com>
1377
1378         * XplatUICarbon.cs: Deactivate the active window before
1379         activating the desired window.  Completes fixing #386504
1380
1381 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1382
1383         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
1384         SmallChange to the item size width plus the padding, to match .net.
1385
1386 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1387
1388         * FileDialog.cs: Apply the custom filter typed by the user in the file
1389         name combobox as much as possible while navigating in the file dialog.
1390         Fixes #385261.
1391
1392 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1393
1394         * Binding.cs: Actually use NullValue if the retrieved value of
1395         data source is null or DBNull. Makes a test pass.
1396
1397 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
1398
1399         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
1400         * MimeIcon.cs: Provide a way to get icons from resources.
1401
1402 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1403
1404         * Binding.cs: When the value retrieved from the control to be assigned
1405         to the data source is null, actually use the 2.0 DataSourceNullValue
1406         value. Make pass a data binding test.
1407
1408 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
1409
1410         * Control.cs: We need to invalidate implicit children even when
1411         invalidate is called with invalidatechildren = false.  (Implicit
1412         children are really part of the parent.)
1413         * ListView.cs: Double-buffer internal child controls for less
1414         flicker.
1415         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
1416         owner ListView subitems for greatly increased performance.
1417         [Fixes bug #388477]
1418
1419 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
1420
1421         * FileDialog.cs: When the user types a wildcard character in the
1422         filename combobox, update the contents of the folder using the text as
1423         a filter.
1424         Fixes part of #385261.
1425
1426 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
1427
1428         * ListBox.cs: Various fixes for MultiColumn listboxen.
1429         [Fixes bug #388114]
1430
1431 2008-05-08  Andreia Gaita <avidigal@novell.com> 
1432
1433         * HtmlElement.cs: Implement Style property
1434
1435 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
1436
1437         * ListBox.cs: Respect checkboxes when measuring item size.
1438         * ThemeWin32Classis.cs: When drawing list items, don't draw
1439         text outside of the item's bounds to prevent overlapping.
1440         (.Net actually overlaps, but that's just silly.)
1441         [Fixes bug #388117]
1442
1443 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
1444
1445         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
1446         Gert Driesen. Fixes bug #324830. 
1447
1448 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
1449
1450         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
1451         method implemented.
1452
1453 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1454
1455         * BindingSource.cs: When calling IsSynchronized, return the value of
1456         the related IList list.
1457
1458 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1459
1460         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
1461         make a test pass.
1462
1463 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
1464
1465         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
1466         navigation to scroll the grid if the current cell is not visible.
1467
1468 2008-05-07  Andreia Gaita <avidigal@novell.com> 
1469
1470         * HtmlElement.cs: Implement TabIndex
1471
1472 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
1473
1474         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
1475         properties, even when there are no items.
1476         [Fixes bug #387611]
1477
1478 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
1479
1480         * NativeWindow.cs: Add support for multiple handles per window.
1481         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
1482         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
1483         directly - use FromHandle instead.
1484         [Fixes bug #374660]
1485
1486 2008-05-07  Andreia Gaita <avidigal@novell.com> 
1487
1488         * HtmlElement.cs: Implement InnerHTML setter
1489
1490 2008-05-07  Andreia Gaita <avidigal@novell.com> 
1491
1492         * HtmlDocument.cs: Implement Focused
1493
1494 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1495
1496         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
1497         methods, as well as add messages to the exceptions.
1498
1499 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1500
1501         * BindingSource.cs: Setting DataSource should only reset DataMember if
1502         the previous value was null (make pass a not working test).
1503
1504 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1505
1506         * BindingSource.cs: When EndInit call is postponed and is called until
1507         DataSource.EndInit is called, remove the handler for data source.
1508
1509 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
1510
1511         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
1512
1513 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
1514
1515         * ToolStripManager.cs: Store references to toolstrips as
1516         weak references so they do not prevent forms from getting collected.
1517         [Fixes bug #386483]
1518
1519 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
1520
1521         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
1522         on .Net.  So do the same thing in WndProc.
1523
1524 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
1525
1526         * TrackBar.cs: Commit patch from Andy Hume that corrects
1527         the clickable areas to better match .Net.
1528         [Fixes bug #387074]
1529
1530 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
1531
1532         * TrackBar.cs: Commit patch from Andy Hume that adds the
1533         ResizeRedraw control flag so the track bar repaints itself
1534         when it is resized.  [Fixes bug #387072]
1535
1536 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
1537
1538         * TrackBar.cs: Commit patch from Andy Hume that adds better
1539         support for keyboard navigation when the TrackBar is vertical.
1540         [Fixes bug #387071]
1541
1542 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1543
1544         * BindingSource.cs: Implement ISupportInitializeNotification support.
1545
1546 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
1547
1548         * ThemeVisualStyles.cs: Added support for ToolBar.
1549
1550 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
1551
1552         * ToolBar.cs: Made the Vertical property internal.
1553
1554 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
1555
1556         * ThemeVisualStyles.cs: Added support for TrackBar.
1557
1558 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
1559
1560         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
1561         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
1562         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
1563         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
1564         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
1565         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
1566
1567 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
1568
1569         * ThemeVisualStyles.cs: Added support for UpDownBase.
1570
1571 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
1572
1573         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
1574         Extracted Theme.UpDownBaseDrawButton.
1575
1576 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
1577
1578         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
1579         removed from the static toolstrips collection in ToolStripManager
1580         when they are disposed.  Provides a workaround for bug #386483.
1581
1582 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
1583
1584         * GridEntry.cs: Read-only properties with Editor with 
1585         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
1586         [Fixes bug #384184]
1587
1588 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
1589
1590         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
1591         the menu key and there are no items on the menu.
1592         [Fixes bug #386644]
1593
1594 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
1595
1596         * Control.cs: Avoid calling ToString on a string.
1597         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
1598         * GroupBox.cs: In FlatStyle property throw, not just create, the 
1599         exception. Avoid calling ToString on a string.
1600         * ProgressBar.cs: Avoid calling ToString on a string. 
1601         * ScrollBar.cs: Avoid calling ToString on a string. 
1602         [All issues were found using Gendarme]
1603
1604 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
1605
1606         * NotifyIcon.cs: Prevent click events to be trigger after double click 
1607         events. Fixes remaining issues of bug #324832.
1608
1609 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
1610
1611         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
1612         to mimic win32 behavior. Partially fixes bug #324832.
1613
1614 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1615
1616         * BindingSource.cs: Implement Find methods.
1617
1618 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1619
1620         * BindingSource.cs: Implement Sort, ApplySort overloads, and
1621         RemoveSort methods.
1622
1623 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1624
1625         * ListBindingHelper.cs: When calling GetListItemProperties and the
1626         passed object is ITypedList, return the result of
1627         ITypedList.GetItemProperties instead.
1628
1629 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
1630
1631         * LinkLabel.cs: Set default value of name on constructor of Link class
1632         only for 2.0 profile.
1633
1634 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
1635
1636         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
1637         Fixes remaining issues of bug #346154.
1638
1639 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
1640
1641         * LinkLabel.cs: Set a default value for name on internal contructor of
1642         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
1643
1644 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
1645
1646         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
1647         and refer all instances to owner.links. Partially fixes #346154.
1648
1649 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1650
1651         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
1652         length equal zero. Also called CreateLinkPieces in constructor. It fixes
1653         the LinkLabel test 'TestLinkArea'.
1654
1655 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1656
1657         * Form.cs: Remove menu before close form to prevent form to be not gaced.
1658         [Fixes #386460]
1659
1660 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1661
1662         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
1663         [Fixes #386463]
1664
1665 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1666
1667         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
1668         [Fixed bug #357004]
1669
1670 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1671
1672         * MenuAPI.cs: Remove unused ProcessCmdKey method.
1673
1674 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1675
1676         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
1677         [Fixes bug #375398]
1678
1679 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1680
1681         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
1682         of bug #367492.
1683
1684 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1685
1686         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
1687         sometimes we open a conext menu on mouse down of some controls and the mouse
1688         up is dispatched to menu and dont need to. It fix remaining issues of 
1689         #363711 and other problems related to menu mouse click events.
1690
1691 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
1692
1693         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
1694         some var names to better fit changes, now we have month_menu and today_menu
1695         vars. Fixes bug #363711.
1696
1697 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
1698
1699         * MonthCalendar.cs: Handle every right mouse click to open context menu,
1700         right now the default month menu but it will be change to have "Go to today"
1701         menu.
1702
1703 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1704
1705         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
1706
1707 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
1708
1709         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
1710
1711 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1712
1713         * ThemeVisualStyles.cs: Added support for TreeView.
1714
1715 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1716
1717         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
1718         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
1719
1720 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1721
1722         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
1723
1724 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1725
1726         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
1727         Implement 2.0 SP1 stuffs.
1728
1729 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1730
1731         * FileDialog.cs: Implement 2.0 SP1 stuffs.
1732
1733 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1734
1735         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
1736         Implement CanEnableIme property. (2.0 SP1)
1737
1738 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1739
1740         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
1741         from the 2.0 API.
1742
1743 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1744
1745         * Control.cs: Provide an internal way for a control to override
1746         the setting of Height.
1747         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
1748         set height using new method.
1749
1750 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1751
1752         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
1753
1754 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1755
1756         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
1757         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
1758
1759 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1760
1761         * ThemeVisualStyles.cs: Added support for StatusBar.
1762
1763 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1764
1765         * DataObject.cs: Add the other IDataObject interface.
1766
1767 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1768
1769         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
1770         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
1771
1772 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1773
1774         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
1775         * ListView.cs: Hide non-public API.
1776         * MaskedTextBox.cs: Remove extra attribute.
1777
1778 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1779
1780         * DataGridViewImageCell.cs: Use formatted value instead of value
1781         to calculate preferred size.
1782
1783 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
1784
1785         * ListBox.cs: Move some initialization around so that selected_indices
1786         is not accessed before it is created.
1787
1788 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
1789
1790         * InputLanguageCollection.cs: Implement the collection better.
1791         [Fixes bug #385506]
1792
1793 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
1794
1795         * ToolStripDropDownItem.cs: Get the correct event object for
1796         DropDownItemClicked.
1797         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
1798         [Fixes bug #385475]
1799
1800 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
1801
1802         * DataGridViewRowCollection.cs: We don't currently support shared 
1803         rows.  Should fix test failures caused by previous commit.
1804
1805 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
1806
1807         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
1808         datagridview gets set.  Only paint cells in visible columns.
1809         * DataGridViewCell.cs: Draw border after cell content.
1810         * DataGridView.cs: Invalidate after setting some properties.  Only
1811         use visible columns.  Fit hit test bug with areas in the col/row header
1812         area but not in a row or col.  Implement UpdateCell/Row methods.
1813
1814 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
1815
1816         * DataGridViewElement.cs: Don't throw NIEX.
1817         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
1818         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
1819         * DataGridViewCheckBoxColumn.cs: Implement ToString.
1820         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
1821         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
1822         if the user filled in the formatting Value, use it.
1823
1824 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
1825
1826         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
1827         to a string.
1828
1829 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1830
1831         * BindingSource.cs: Some corrections to Filter property, as well as
1832         setting it for our list when resetting it.
1833
1834 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
1835
1836         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
1837         than the maximum.  Fixes reopened bug #384182.
1838
1839 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1840
1841         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
1842         Fixes remaining issues of #367490.
1843
1844 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1845
1846         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
1847         SystemInformation.WorkingArea to get max_screen value.
1848
1849 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1850
1851         * BindingSource.cs: Implement Filter and RemoveFilter.
1852
1853 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1854
1855         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
1856
1857 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1858
1859         * X11Dnd.cs: When trying to convert data and we know we started the
1860         dnd loop, don't try to use the cached data if the loop is not running,
1861         which means that the data has been resetted.
1862         Fixes #378191.
1863
1864 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1865
1866         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
1867         win32 behavior.
1868
1869 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1870
1871         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
1872         it to drawn off screen edge. Fixes bug #367490.
1873
1874 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1875
1876         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
1877         menu position to have only one assignment of Location var.
1878
1879 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1880
1881         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
1882         for this patch. Fixes bug #384115.
1883
1884 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
1885
1886         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
1887         the same.  If LargeChange is zero, set a minimum size for the scroll
1888         thumb grip.  [Fixes bug #384182]
1889
1890 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
1891
1892         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
1893         [Fixes bug #384181]
1894
1895 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
1896
1897         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
1898
1899 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
1900
1901         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
1902         patch from Ernesto).
1903
1904 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
1905
1906         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
1907
1908 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
1909
1910         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
1911
1912 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
1913
1914         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
1915
1916 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
1917
1918         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
1919
1920 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
1921
1922         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
1923
1924 2008-04-27  Andreia Gaita <avidigal@novell.com> 
1925
1926         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
1927           supposed to return a reference to an mshtml interface, which we
1928           don't support).
1929         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
1930           reference to an mshtml interface, which we don't support). Code
1931           formatting cleanup.
1932         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
1933           DomDocument getter (it's supposed to return a reference to an
1934           mshtml interface, which we don't support). Code formatting cleanup.
1935
1936 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1937
1938         * ListView.cs: Ouch, forgot to commit.
1939
1940 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1941
1942         * ListView.cs: 
1943         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
1944
1945 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1946
1947         * ListView.cs: When calculating box selection for virtual mode, don't
1948         look for intersection with item's text, but item bounds, since that
1949         would mean read ListViewItem's text for _every_ item, and that's
1950         something we just can't do in virtual mode (items are only requested
1951         when drawn).
1952
1953 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
1954
1955         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
1956         partial support for managed windows (based on the patch from Ernesto).
1957
1958 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1959
1960         * ListView.cs: When doing a key search use FindItemWithText method
1961         instead of doing the search by ourselves, this way we avoid
1962         duplicating the code and also we handle the special case for virtual
1963         mode. To achieve that make our private overload of FindItemWithText
1964         internal and also have a 'roundtrip' parameter.
1965
1966 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1967
1968         * ListView.cs: When doing the layout don't request the
1969         ListViewItem instance if we are in virtual mode (since we can't request it
1970         until the item is actully drawn).
1971
1972 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
1973
1974         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
1975         from Ernesto).
1976
1977 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
1978
1979         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
1980         the patch from Ernesto).
1981
1982 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
1983
1984         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
1985         * ThemeVisualStyles.cs: Added.
1986
1987 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
1988
1989         * IDeviceContext.cs: Added a missing using.
1990
1991 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
1992
1993         * ButtonBase.cs: Made IsDefault protected internal.
1994         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
1995
1996 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
1997
1998         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
1999         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
2000         RadioButtonRenderer.cs: Included in the 1.1 profile.
2001         * IDeviceContext.cs: Added.
2002         * TextRenderer.cs: Included a member in the 1.1 profile.
2003
2004 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
2005
2006         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
2007
2008 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
2009
2010         * ErrorProvider.cs: Make the error icons come after the control
2011         they refer to.  It isn't the way the MS does it, but its better
2012         than what we were doing.  See bug #368587.
2013
2014 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
2015
2016         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
2017         from Eric Albright that lazy loads the input language as ensures
2018         everything gets properly initialized.  Fixes bug #373871.
2019
2020 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
2021
2022         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
2023         implicit mnemonics.  [Fixes bug #383000]
2024
2025 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2026
2027         * X11Dnd.cs: When canceling the operation, automatically restore the
2028         default cursor - normally the default cursor is restored when the
2029         mouse buttons are released, but we should be able to restore it even
2030         if the buttons are still pressed (for example, when pressing ESC to
2031         cancel).
2032         Fixes #381894.
2033
2034 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2035
2036         * X11Dnd.cs: When starting a new drad and drop operation, set control
2037         field to null, just as the other fields, to avoid calling any
2038         operation on a previous control. Also, when calling DndLeave on a
2039         control, set it to null, thus we don't fire that event multiple times
2040         for that control.
2041         Fixes #209264.
2042
2043 2008-04-23  Geoff Norton  <gnorton@novell.com>
2044
2045         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
2046         the whole_window object.  Fixes #377084.
2047
2048 2008-04-23  Andreia Gaita <avidigal@novell.com> 
2049
2050         * HtmlElement.cs: Implement RaiseEvent (event injection into the
2051           embedded browser)
2052
2053 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
2054
2055         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
2056
2057 2008-04-23  Andreia Gaita <avidigal@novell.com> 
2058
2059         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
2060           invocation
2061
2062 2008-04-23  Andreia Gaita <avidigal@novell.com> 
2063
2064         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
2065           attaching/detaching
2066
2067 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2068
2069         * X11Dnd.cs: When the drop was cancelled, or could just not be
2070         performed, return DragDropEffect.None always (match .net).
2071
2072 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
2073
2074         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
2075
2076 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
2077
2078         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
2079
2080 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
2081
2082         * DataGridView.cs: Add support for error icon tool tips.
2083         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
2084         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
2085
2086 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
2087
2088         * X11Structs.cs: Add mouse button masks enum.
2089         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
2090         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
2091         form resize/move operation instead of for each step of it.
2092         [Fixes bug #346529 for the x11 backend]
2093
2094 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
2095
2096         * DataGridView*: Implement support for drawing error icons.
2097
2098 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
2099
2100         * TreeView.cs: Make vbar and hbar internal.
2101         * TreeNode.cs: If collapsing the node removes one of the TreeView's
2102         scrollbars, invalidate the whole thing.
2103         [Fixes bug #382001]
2104
2105 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
2106
2107         * TreeView.cs: Calling Sort() sets Sorted = true.
2108         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
2109         if the nodes need to be sorted.
2110         [Fixes bug #382028]
2111
2112 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
2113
2114         * Form.cs: Fire SizeChanged for both when the form is minimized and 
2115         restored.
2116         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
2117         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
2118
2119 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
2120
2121         * ComboBox.cs: If the combobox is disabled, draw a disabled
2122         background before painting anything else.
2123         [Fixes bug #381729]
2124
2125 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2126
2127         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
2128         forget to send a Leave event to the target window - just as .net does
2129         when cancelling dnd operations.
2130
2131 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2132
2133         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
2134         soon as possible - this happens when we send the drop message to the
2135         target window. This way we avoid firing any DragOver _after_ drop finished.
2136         Fixes #378179.
2137
2138 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
2139
2140         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
2141         * Form.cs: Handle form minimization as a special state, where size doesn't 
2142         change, but we have to fire SizeChanged.
2143         [Fixes bug #325122 for the win32 and x11 backends]
2144
2145 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
2146
2147         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
2148         if the handle is disabled.
2149         [Fixes bug #371751]
2150
2151 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
2152
2153         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
2154         for forms with FormBorderStyle.None.
2155         [Fixes bug #349571]
2156
2157 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
2158
2159         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
2160         WM_EXITSIZEMOVE.
2161         [Fixes bug #346529 for the X11 backend]
2162
2163 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
2164
2165         * XplatUIX11.cs: 
2166           - Send a mouse Enter message after say dragging the mouse with a 
2167           button down and then release it in another client.
2168           - Reset the cursor to prevent X11 from remembering it and setting it 
2169           before the control gets WM_SETCURSOR.
2170           - Qeueue a mouse move after a mouse enter like win32.
2171           [Fixes bug #323234]
2172
2173 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
2174
2175         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
2176         It's sent when the form gets moved, resized, closed.
2177         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
2178         [Fixes bug #359193 for X11]
2179
2180 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
2181
2182         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
2183         the build.
2184
2185 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
2186
2187         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
2188         group. Fixes the 1.1 build.
2189
2190 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2191
2192         * ListView.cs: Use display indexes for selection in Details view, as
2193         well as do the proper layout based on display indexes for that view
2194         too.
2195
2196 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2197
2198         * ListView.cs: Focused item information is now stored as a display
2199         index, and display indexes are used all over the place for selection,
2200         instead of ListViewItem.Index values, which doesn't give us enough
2201         information to modify the selection in groups mode, and was broken.
2202
2203 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
2204
2205         * Control.cs: Do not fire MouseDown if validation of the control has 
2206         failed.
2207         * Form.cs: Validate the form before closing.
2208         [Fixes bugs #330501 and #353310]
2209
2210 2008-04-18  Andreia Gaita <avidigal@novell.com> 
2211
2212         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
2213           CreateWebBrowserSiteBase implementations
2214         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
2215           Style and TabIndex setters
2216
2217 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2218
2219         * ListViewGroup.cs: When returning the actual item count, return the
2220         proper count for default group.
2221         Fix the tests.
2222
2223 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2224
2225         * ListView.cs:
2226         * ListViewGroup.cs: When calculating groups layout, get the actual
2227         number of items per group, since groups added to the group BUT not
2228         added to the ListView are just ignored, and can cause some nasty
2229         exceptions because of the lack of synchronization. Also for
2230         ListViewGroup don't use lazy initialization for items, since we 
2231         the common scenario is to use it always - and it helps us to  refactor
2232         and clean the .ctor overloads.
2233
2234 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2235
2236         * ListView.cs: When adding an item to a ListViewItemCollection
2237         belonging to a group (ListViewGroup.Items), don't generate a redraw if
2238         the added item hasn't beeen previously added to the ListView instance
2239         refered by the group, since it will be ignored. This should avoid some 
2240         really nasty flickering.
2241
2242 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2243
2244         * ListView.cs: When accessing an item in a specific display
2245         position, use the helper method GetItemAtDisplayIndex, instead of
2246         direct access to the reordered_items_indices array. When doing layout
2247         for groups set the correct Items index for the display position (since
2248         in groups mode items don't have the same position as in Items
2249         collection).
2250         * ListViewGroup.cs: Add a field to store the starting item number,
2251         which is later used when calculating the layout.
2252
2253         Fixes #360805.
2254
2255 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
2256
2257         * Application.cs: Fixed ProductVersion to fallback to the assembly
2258         version. Fixes regression for bug #325413.
2259
2260 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2261
2262         * ListView.cs: New helper method to retrieve an item in a _specific
2263         display_ position (the items can be displayed in a different order
2264         than one of Items collection).
2265         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
2266         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
2267         specific display position (again remember that items can be sorted
2268         different than Items).
2269
2270 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
2271
2272         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
2273         list and update it when the collection changes.  We were recreating
2274         this several times per row paint and for every pixel the mouse moved
2275         across the grid.
2276         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
2277         changes.
2278
2279 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
2280
2281         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
2282         list to use generics.
2283         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
2284         and remove unneccessay casts.
2285
2286 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
2287
2288         * DataGridViewBand.cs: Add internal way to set displayed variable.
2289         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
2290         * DataGridView.cs: Make sure we always keep track of Displayed
2291         rows and columns, and only draw things that are displayed.
2292
2293 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
2294
2295         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
2296           whether the key events are filtered or not. Introduced
2297           PreFilter() process for this purpose. This fixes atokx3/iiimx
2298           shift state issue.
2299
2300 2008-04-16  Andreia Gaita <avidigal@novell.com> 
2301
2302         * HtmlHistory.cs: Implement Length property
2303
2304 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
2305
2306         * DataGridView.cs: Call EndEdit when a sort is performed so we take
2307         away the edit textbox.  Refactor to reuse column sort code.
2308
2309 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
2310
2311         * MenuAPI.cs: Remove the code that save and restore capture status of 
2312         grab_control, this fixes some Menu and Context menu bugs but maybe it can
2313         cause some others, I cant figure the possible problems of this patch but
2314         right now remove the code looks to be better than keep it. This patch fixes
2315         bugs #357638, #378721 and #379570.
2316
2317 2008-04-12  Andreia Gaita <avidigal@novell.com> 
2318
2319         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
2320         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
2321         add missing properties and event handlers.
2322         
2323 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
2324
2325         * ListBox.cs: Make sure the LargeChange we are setting is at least
2326         zero, to prevent an IOORE.  [Fixes bug #379531]
2327
2328 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
2329
2330         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
2331         in DropDownList mode, for each key-press select the next item 
2332         starting with that letter.
2333         For other modes, when no item selected, on arrow-up/-down and open 
2334         drop-down select the first item matching the text in the textbox.
2335
2336 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
2337
2338         * X11Keyboard.cs : Control.FromHandle() could return null
2339           in MoveCurrentCaretPos().
2340
2341 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2342
2343         * ListView.cs: When changing the size in VirtualMode, also Reset the
2344         selection.
2345         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
2346         changing selection info for VirtualMode.
2347         Fixes #372618.
2348
2349 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2350
2351         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
2352         view, don't use LineLimit for the first item - use NoWrap *always*
2353         instead, since ListView.LabelWrap is not used for this view.
2354         Fixes #378054.
2355
2356 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2357
2358         * Binding.cs: Call UpdateIsBinding when setting control - probably
2359         Binding is already usable and we don't need to wait to check the
2360         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
2361         Created, just like 2.0 does.
2362         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
2363
2364 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2365
2366         * Binding.cs: Just realized we don't need to have a handler for
2367         BindingContextChanged, since this info should be now consumed directly
2368         in the BindingManagerBase. And also, the manager.IsBindingSuspended
2369         state info is checked directly, instead of caching it.
2370
2371         * CurrencyManager.cs: IsSuspended should return always false if Count
2372         == 0.
2373
2374 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2375
2376         * Binding.cs: When calling PushData, return if manager.Count == 0,
2377         since we just don't have data to be read. Also, when setting the
2378         Control for binding, hook up some events to refresh the IsBinding
2379         state when BindingContext change or control gets created; use
2380         Control.IsHandleCreated instead of Control.Created check to set
2381         IsBinding state - we *actually* need to modify IsBinding when control
2382         is created, but we don't have any Created event, only HandleCreated.
2383         Fixes part of #349364.
2384
2385 2008-04-11  Geoff Norton  <gnorton@novell.com>
2386
2387         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
2388         warping a null Caret.
2389
2390 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
2391
2392         * DataGridView.cs: Implement row/column autosizing methods. Implement
2393         autosorting.
2394         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
2395         * DataGridViewRowCollection.cs: Add an internal sorting method.
2396
2397 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
2398
2399         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
2400         value in ListView drawing code.
2401
2402 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
2403
2404         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
2405         is clicked.  Respect the user setting Cancel in FileOk.
2406
2407 2008-04-11  Geoff Norton  <gnorton@novell.com>
2408
2409         * ListView.cs: Avoid setting and resetting control Width/Heights and
2410         calculate the final value and set it once.  Prevents a feedback loop
2411         on the mac.
2412
2413 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
2414
2415         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
2416         [Fixes bug #378869]
2417
2418 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
2419
2420         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
2421           Add some on-the-spot code, but it seems we don't need it.
2422
2423 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
2424
2425         * Form.cs: Add method for DataGridView to trigger focus cues
2426         even when it handles the tab keypress.
2427
2428 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
2429
2430         * DataGridView.cs: More keyboard handling, tab, esc.
2431         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
2432         when at the beginning or end of the text in the text box.
2433
2434 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
2435
2436         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
2437
2438 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
2439
2440         * DataGridView.cs: Some fixups for showing and adding the edit control.
2441         * DataGridViewButtonColumn.cs: Implement ToString.
2442         * DataGridViewCell.cs: Size and position the control simultaneously.
2443         * DataGridViewTextBoxCell.cs: Use base to position control.
2444
2445 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
2446
2447         * DataGridViewCell.cs: Fix up some formatting and painting code.
2448         * DataGridViewImageCell.cs: Implement some NIEX methods.
2449
2450 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
2451
2452         * ToolStripItemCollection.cs: What moving an item from one owner
2453         to another, remove from source owner before adding to destination.
2454         [Fixes bug #378109]
2455
2456 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
2457
2458         * PictureBox.cs: Call Load when ImageLocation is set.
2459         [Fixes bug #378308]
2460
2461 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
2462
2463         * X11Keyboard.cs, XplatUIX11.cs :
2464           Implement over-the-spot mode (with some odd offsets).
2465           - set preedit position when caret is set.
2466           - Wrap XMoveResizeWindow() to move preedit position.
2467
2468 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
2469
2470         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
2471         array lenght.
2472
2473 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
2474
2475         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
2476         and ScanTableIndex public, it fix compilations errors when compiling
2477         WinForms to generate keyboard layout resources.
2478
2479 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
2480
2481         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
2482         different element count than scan table. It prevents some errors in non
2483         standard keyboards.
2484
2485 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
2486
2487         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
2488
2489 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
2490
2491         * DataGridView.cs: Call OnContentClick.
2492         * DataGridViewCell.cs: Do a null check on ValueType instead
2493         of valueType.
2494         * DataGridViewCheckBoxCell.cs: Implement.
2495
2496 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
2497
2498         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
2499
2500 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
2501
2502         * X11Keyboard.cs : Check XGetIMValues() return value in
2503           case it does not return input styles in some environment.
2504
2505 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
2506
2507         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
2508
2509 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2510
2511         * BindingContext.cs: Stub UpdateBinding method.
2512
2513 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
2514
2515         * X11Structs.cs : added couple of structs for XIM support.
2516         * X11Keyboard.cs :
2517           Release XIM in case it failed to create XIC. 
2518           Use consts for XNblah string.
2519           Add support for IM style customization and XIC creation
2520           for preedit-position and preedit-callback.
2521           Right now use MONO_WINFORMS_XIM_STYLE environment variable
2522           (list of: over-the-spot | on-the-spot | root). Only root
2523           mode works so far.
2524
2525           (redoing r99172 with fix.)
2526
2527 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
2528
2529         * TreeView.cs: Center the checkbox a little better.
2530
2531 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
2532
2533         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
2534         Apply very nice patch from Ernesto Carrea that simplifies our
2535         scrollbar drawing.  [From bug #376146]
2536
2537 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
2538
2539         * TreeView.cs: Correct the location of the root node checkbox when
2540         ShowRootLines = false.  Don't draw the root lines for the root node
2541         when ShowRootLines = false.  [Fixes bug #377535]
2542
2543 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
2544
2545         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
2546         Fixed line endings.
2547         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
2548         line endings.
2549         * MaskedTextBox.cs: Added missing attribute. Code formatting.
2550         * PageSetupDialog.cs: Added missing attribute. Code formatting.
2551         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
2552         * ImeMode.cs: Added missing field.
2553         * HtmlWindow.cs: Code formatting. Fixed line endings.
2554         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
2555         warnings.
2556         * HtmlHistory.cs: Code formatting. Fixed line endings.
2557         * HtmlDocument.cs: Code formatting. Fixed line endings.
2558         * ToolStripPanel.cs: Added missing IList implementation.
2559         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
2560
2561 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
2562
2563         * BindingContext.cs: Changed argument names to fix corcompare errors.
2564         * DataGridView.cs: Removed extra explicit interface implementation
2565         of IDropTarget. Code formatting.
2566         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
2567         * ComboBox.cs: Changed argument names to fix corcompare errors.
2568         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
2569         errors.
2570         * GridColumnStylesCollection.cs: Changed argument names to fix
2571         corcompare errors. Removed extra tabs.
2572         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
2573         errors.
2574         * Control.cs: Changed argument names to fix corcompare errors. Code
2575         formatting. Removed extra explicit IList implementation.
2576         * TextBox.cs: Changed argument names to fix corcompare errors. Code
2577         formatting. Use string.Empty instead of "".
2578         * GridItemCollection.cs: Changed argument names to fix corcompare
2579         errors. Code formatting.
2580         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
2581         corcompare errors. Code formatting.
2582         * ImageList.cs: Changed argument names to fix corcompare errors.
2583         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
2584         * DataGridViewRowCollection.cs: Changed argument names to fix
2585         corcompare errors. Code formatting.
2586         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
2587         * DataGridViewSelectedCellCollection.cs: Changed argument names to
2588         fix corcompare errors. Code formatting.
2589         * DataGridViewComboBoxCell.cs: Changed argument names to fix
2590         corcompare errors. Code formatting.
2591         * LinkLabel.cs: Changed argument names to fix corcompare errors.
2592         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
2593         formatting.
2594         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
2595         Code formatting.
2596         * BindingSource.cs: Changed argument names to fix corcompare errors.
2597         Removed extra explicit interface implementations.
2598         * DataGridViewSelectedRowCollection.cs: Changed argument names to
2599         fix corcompare errors. Code formatting.
2600         * ToolStripItemCollection.cs: Removed extra explicit interface
2601         implementation of IList.ReadOnly.
2602         * DataGridViewColumnCollection.cs: Changed argument names to fix
2603         corcompare errors. Code formatting.
2604         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
2605         * ListView.cs:  Changed argument names to fix corcompare errors.
2606         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
2607         errors.
2608         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
2609         errors.
2610         * ListBindingHelper.cs: Changed argument names to fix corcompare
2611         errors.
2612         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
2613         fix corcompare errors. Code formatting.
2614         * ToolStripPanel.cs: Removed extra explicit implementation of
2615         IDropTarget interface.
2616         * ListBox.cs: Changed argument names to fix corcompare errors. Code
2617         formatting. Removed extra tabs and spaces.
2618         * DataGridViewCellCollection.cs: Changed argument names to fix
2619         corcompare errors.
2620         * Help.cs: Changed argument names to fix corcompare errors. Code
2621         formatting.
2622         * TabControl.cs: Changed argument names to fix corcompare errors.
2623         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
2624         errors.
2625         * TableLayoutSettings.cs: Changed argument names to fix corcompare
2626         errors.
2627
2628 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2629
2630         * ListBindingHelper.cs: When returning properties, only return those
2631         that are browsable. Also, don't do a linear search of the properties,
2632         but use the indexer of the PropertyDescriptorCollection class.
2633
2634 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2635
2636         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
2637         Dictionary containing the related (child) currency managers. Also,
2638         when setting DataSource, add datasource to our List if it is not a list.
2639
2640 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
2641
2642         * PropertyGridTextBox.cs: Fix background color of the buttons.
2643         * PropertyGridView.cs: Make the entry less jumpy.
2644
2645 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
2646
2647         * PropertyGrid.cs: Fix unused variable warnings.
2648
2649 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
2650
2651         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
2652         double-click. It expanded it once in the mouse down and then 
2653         again in the double-click handler.
2654
2655 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
2656         
2657         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
2658         TypeConverter and UITypeEditors.
2659
2660 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
2661
2662         * Control.cs: Visibility should be set synchronously, 
2663         so we must also redraw once it is and not rely on layouting or 
2664         other code to repaint.
2665         [Fixes bug #339898]
2666
2667 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
2668
2669         * DataGridViewCell.cs: Respect DataGridView.GridColor.
2670
2671 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
2672
2673         * Control.cs: Invalidate when the alpha channel is less than 255,
2674         not only when control is transparent.
2675
2676 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
2677
2678         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
2679         Implement some painting convenience methods that threw NIEX.
2680
2681 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
2682
2683         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
2684         * DataGridViewLinkCell.cs: Implement.
2685
2686 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
2687
2688         * GridEntry.cs: Report the conversion exception error description.
2689         [Fixes bug #375792]
2690
2691 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
2692
2693         * PropertyGridView.cs: Do not scroll to item on resize.
2694         [Fixes bug #375789]
2695
2696 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2697
2698         * BindingContext.cs: When retrieving a BindingManagerBase, if the
2699         dataSource parameter is ICurrencyManagerProvider, then return
2700         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
2701         instead of creating a new one.
2702
2703 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2704
2705         * BindingSource.cs: Implement support for Type instances as
2706         DataSource.
2707
2708 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
2709
2710         * DataGridView.cs: Minor cleanups and call CellMouseUp.
2711         * DataGridViewCell.cs: Make some painting routines internally virtual.
2712         * DataGridViewButtonCell.cs: Implement.
2713
2714 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
2715
2716         * Control.cs: We always need to invalidate our children with
2717         transparent backgrounds when we are invalidated.
2718         [Fixes bug #376081]
2719
2720 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2721
2722         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
2723         and CancelCurrentEdit on CurrencyManager respectively. Implement
2724         support for ICancelAddNew too.
2725
2726 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2727
2728         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
2729         call EndNew/CancelNew if list is ICancelAddNew.
2730
2731 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
2732
2733         * DataGridView.cs: Guard against an exception while painting
2734         if there are no rows.
2735
2736 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
2737
2738         * DataGridView.cs: Implement a bunch of keyboard commands.
2739
2740 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
2741
2742         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
2743         isn't set, don't call OnPaint.  [Fixes bug #375300]
2744
2745 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2746
2747         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
2748         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
2749         hookup the remaining events related to CurrencyManager, and fire
2750         OnListChanged also for the Clear () method.
2751
2752 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2753
2754         * BindingSource.cs: Use Current and Position implementations in
2755         CurrencyManager instead of using our own routines, since we need 
2756         to be in synch with it. Count should NEVER return a -1 value, and 
2757         also report ListChanged events for both simple IList data 
2758         sources (manually) as well for IBindingList ones (by hooking up an
2759         event handler for it).
2760
2761 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2762
2763         * BindingSource.cs: Make one .ctor call the another, to avoid
2764         duplicate code. Add the CurrencyManager property, and also for AddNew
2765         throw the proper exceptions and show better error messages.
2766
2767 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
2768
2769         * ComboBox.cs: Only adjust selectedindex if Handle has been
2770         created.  Fixes failing test.
2771
2772 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
2773
2774         * ComboBox.cs: Adjust selectedindex if we insert a new item
2775         above the current selectedindex in a sorted ComboBox.
2776         [Fixes bug #374654]
2777
2778 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
2779
2780         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
2781         [Fixes bug #374712]
2782
2783 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
2784
2785         * DataGridViewTextBoxCell.cs: Implement stuffs.
2786
2787 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
2788
2789         * TreeView.cs: Create the scrollbars even earlier to be
2790         double dog certain they are created before they are accessed.
2791
2792 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
2793
2794         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
2795
2796 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
2797
2798         * ScrollBar.cs: Create an internal safe Value setter so we
2799         won't crash if we try to set a value outside the min and max.
2800         * TextBoxBase.cs: Use safe value setter to guard against a
2801         potential NRE that is being reported by Reflector.
2802
2803 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
2804
2805         * TreeView.cs: Create the scrollbars earlier in the constructor
2806         to attempt to guard against an NRE in SetTop in Reflector.
2807
2808 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
2809
2810         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
2811         DataGridViewRowCollection.cs: Do not scroll column and row headers,
2812         show messagebox on data format error, use column display index
2813         correctly, make sure HitTest supports new layout stuff,
2814         make sure scrollbars support new layout stuff.
2815
2816 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
2817
2818         * XplatUIX11.cs : Patch by Doug Rintoul.
2819           For some IM engines, keypress events need to delay call
2820           to XPending() and XNextEvent() in the loop so that it
2821           does not mess the orders in XIM commit callback.
2822           Some KeyRelease events such as shift keys need to be
2823           processed both in the IM engine and winforms driver
2824           itself since winforms holds its own state check.
2825
2826           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
2827
2828 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
2829
2830         * X11Keyboard.cs, XplatUIX11.cs :
2831           add primitive support for XIM input support (preedit-
2832           nothing and status-nothing). It requires precise event
2833           capturing (XSelectInput/"filterEvents") and different
2834           call to XFilterEvent against root window.
2835           Get composed string and send dummy WM_IME_COMPOSITION.
2836           Free XIM and XIC instances in finalizer.
2837
2838           (This first patch does not include suggested changes
2839            by Doug Rintoul. It will follow.)
2840
2841 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
2842
2843         * DataGridView.cs: When binding to a property, if the property
2844         doesn't have a setter, set the column to readonly.
2845         [Fixes bug #343965]
2846
2847 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
2848
2849         * ComboBox.cs: Guard against NRE if an arrow key is hit while
2850         we aren't dropped down.  Support Home/End in DropDownList mode.
2851         [Fixes bug #371990]
2852
2853 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
2854
2855         * TreeNodeCollection.cs: Don't increment count until we've
2856         saved our index to return.
2857         [Fixes bug #373603]
2858
2859 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
2860
2861         * Label.cs: Add padding to the label's AutoSize calculation.
2862         [Fixes bug #373792]
2863
2864 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2865
2866         * ListBindingHelper.cs: Actually implement GetListName method.
2867
2868 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2869
2870         * BindingSource.cs: Throw the propert expceptions for some methods, as
2871         well as detect the list item type for Add method if DataSource is null.
2872
2873 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
2874
2875         * DataGridViewCell.cs: I don't know why I commented this out,
2876         putting it back for now.
2877
2878 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
2879
2880         * DataGridViewCell.cs: Remove storage for owning column, just
2881         use column index.
2882         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
2883         * DataGridViewColumnHeaderCell.cs: If the header text has been
2884         explicitly set, return it.
2885         [Fixes bug #325979]
2886
2887 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
2888
2889         * DataGridViewRowCollection.cs: Disable row sharing when
2890         using data binding.  Its a great feature, but lets work on
2891         getting DGV usable first before we worry about optimizations.
2892
2893 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2894
2895         * BindingSource.cs: When resetting our internal list, compute list
2896         item type information to be used for indirect list access. Also
2897         implement/tune some properties and methods related to the list access
2898         too.
2899         * ListBindingHelper.cs: Add a stub for GetListName method, used from
2900         BindingSource.
2901
2902 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
2903
2904         * DataGridView.cs: If RowCount is increased while ColumnCount
2905         is zero, add a column.  [Fixes bug #331649]
2906
2907 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
2908
2909         * DataGridViewRowCollection.cs: When adding new rows for
2910         databinding, make sure they are place before the add row.
2911         [Fixes bug #343961]
2912
2913 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
2914
2915         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
2916         instead of Index order.
2917
2918 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
2919
2920         * DataGridView.cs: If columns are added by increasing ColumnCount,
2921         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
2922         [Fixes bug #325588]
2923
2924 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
2925
2926         * DataGridView.cs: Turn off and on the "new row" when 
2927         AllowUserToAddRows is toggled.  When the handle is created,
2928         set current cell and selected cell/row/col.
2929
2930 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
2931
2932         * ComboBox.cs: When navigating the drop down by keyboard, we
2933         need to scroll the list box if our selection moves out of the
2934         currently shown items.  [Fixes bug #371990]
2935
2936 2008-03-24  Luke Page <luke.a.page@gmail.com>
2937
2938         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
2939         on the control. Also now handles unicode compatibility characters and
2940         stores the unicode compatibility length on the stack. Fixes Bugs
2941         #355198 and #366436.
2942
2943 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2944
2945         * BindingSource..cs: Take into account DataMember when re-creating the
2946         List property, and also create a specific kind of list as needed.
2947
2948 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2949
2950         * ListBindingHelper.cs: Add a new case for GetList () method - when we
2951         get an empty IEnumerable, try to detect whether the datamember is
2952         valid or not for that type, if true, return null, and throw exception
2953         otherwise.
2954
2955 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
2956
2957         * ComboBox.cs: Alt-Down should drop down the list, Esc should
2958         retract it.  [Fixes bug #371989]
2959
2960 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
2961
2962         * PropertyGrid.cs: Initialize the sorting button as pushed.
2963
2964 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
2965
2966         * PropertyGrid.cs: 
2967          - Visually select the PropertyTab.
2968          - Filter Properties by Attributes properly.
2969
2970 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
2971
2972         * MenuItem.cs: Remove menu item from parent when disposed.
2973         [Fixes bug #372845]
2974
2975 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
2976
2977         * ToolBar.cs: Don't reset layout_type if Dock = None.
2978
2979 2008-03-21  Andreia Gaita <avidigal@novell.com> 
2980
2981         * UserControl.cs: Select the first available control when we get focus.
2982           Fixes #372616
2983
2984 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
2985
2986         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
2987         the content if we are in edit mode.  [Fixes bug #343964]
2988
2989 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
2990
2991         * DataGridViewCell.cs: Fix border painting for column headers.
2992
2993 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2994
2995         * BindingSource.cs: When setting or resetting data source,
2996         use ListBindingHelper.GetList () method, since it will get the list in
2997         case datasource is IListSource.
2998
2999 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
3000
3001         * DataGridViewCell.cs: Implement lots more stuffs.
3002
3003 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
3004
3005         * PropertyGridView.cs, GridEntry.cs: Implement support for 
3006         UITypeEditor.IsDropDownResizable.
3007
3008 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
3009
3010         * DataGridViewCell.cs: Remove unused variables, improve how
3011         several of the property getters work.
3012         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
3013         get its size from the parent row/col.
3014
3015 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
3016
3017         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
3018         user alters manually the PropertyTabs collection via the 
3019         PropertyTabs property.
3020
3021 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3022
3023         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
3024         new tests for them to be sure to be compatible with .net.
3025
3026 2008-03-20  Andreia Gaita <avidigal@novell.com> 
3027
3028         * WebBrowserBase.cs: Fix attributes, add events
3029         * WebBrowser.cs: Fix Padding signature
3030
3031 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
3032
3033         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
3034
3035 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
3036
3037         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
3038         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
3039         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
3040         passes the new suite of tests for it.
3041
3042 2008-03-18  Andreia Gaita <avidigal@novell.com> 
3043
3044         * WebBrowser.cs: Add missing attributes, missing Padding and
3045           DefaultSize properties, remove extraneous getters
3046
3047 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3048
3049         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
3050         method overloads.
3051
3052 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
3053
3054         * ComboBox.cs: Move resetting the selected index to keypress
3055         instead of textchanged.  Changing the text programmatically
3056         should not trigger resetting the selected index.  Fixes test.
3057
3058 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
3059
3060         * ComboBox.cs: When the user types into the textbox, reset
3061         the selected index to -1.  [Fixes bug #371672]
3062
3063 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
3064
3065         * FileDialog.cs: Support Control-A for selecting everything
3066         in an OpenFileDialog.  [Fixes bug #371564]
3067
3068 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
3069
3070         * DataGridView.cs: When row/column visible/height properties
3071         change, invalidate.  Take the NIEX out of InvalidateRow/Column
3072         etc.  We don't support them yet, but we can just invalidate
3073         everything until we do support them.  (Added MonoTODO).  Set
3074         proper control styles.
3075         * DataGridViewRow.cs: Don't call PaintHeader if row headers
3076         are turned off. 
3077
3078 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3079
3080         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
3081
3082 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
3083
3084         * DataGridViewRow.cs: Only paint the white background in
3085         cell bounds, the row bounds extends past the cells if the 
3086         grid width isn't as wide as the DGV.
3087
3088 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
3089
3090         * DataGridView*: Completely revamp the drawing to match the
3091         public API.  Our grids now look better, and call all the
3092         appropriate methods and event to allow users to override
3093         the painting and do their own.
3094
3095 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3096
3097         * ListBindingHelper.cs: Implement 2.0 GetList methods.
3098
3099 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
3100
3101         * DataGridView.cs: Implement BorderStyle.
3102
3103 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
3104
3105         * FileDialog.cs: Apply patch from Andy Hume: Any time we
3106         are comparing attributes, make sure we only look at the
3107         one we are interested.  These calls were failing if there
3108         were more than one attribute.
3109         [Fixes bug #370385]
3110
3111 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
3112
3113         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
3114
3115 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
3116
3117         * PageSetupDialog.cs: Stub EnableMetric.
3118         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
3119         * PrintPreviewDialog.cs: Add ProcessDialogKey,
3120         ProcessTabKey.
3121
3122 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
3123
3124         * MonthCalendar.cs: Remove unused variable.
3125
3126 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
3127
3128         * DataGridView*.cs: corcompare stuffs.
3129
3130 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
3131
3132         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
3133         The savings aren't worth the extra code to fix the optimization.
3134         [Fixes bug #368585]
3135
3136 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
3137
3138         * ToolBar.cs: Always call base.Dock in the Dock override so that
3139         Control's layout_type gets reset correctly.
3140         [Fixes bug #368882]
3141
3142 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
3143
3144         * X11Dnd.cs: End DnD operation also for the middle mouse button.
3145
3146 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
3147
3148         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
3149         at the same time we do explicit ones, because we have to give all
3150         other controls on the container a chance to handle explicit ones
3151         first.  If no one has an explicit mnemonic, then we can let the
3152         MenuStrip have a shot at implicit mnemonics.
3153         * MenuStrip.cs: Create an implicit mnemonic function.
3154         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
3155         mnemonics for MenuStrips.
3156         [Fixes bug #368493]
3157
3158 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
3159
3160         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
3161         DataGridColumnStyle.cs: corcompare stuffs.
3162
3163 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3164
3165         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
3166         Details - This is needed after we added the bits to use any available
3167         column also for List and SmallIcon view. 
3168
3169 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3170
3171         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
3172         at the proper place, not only when changing SelectedIndex and changing
3173         the selection using keys/mouse, as .net does.
3174
3175 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3176
3177         * ControlBindingsCollection.cs: Implement last 2.0
3178         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
3179         in the new 2.0 Add methods.
3180
3181 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3182
3183         * ListBox.cs: When calling SelectedIndexCollection.Clear,
3184         return if no items are previously selected - this is done to avoid 
3185         firing OnSelectedIndexChanged without need to do so. Also,
3186         when creating handle ensure that the focused item is visible (as
3187         .net does).
3188
3189 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3190
3191         * ListBox.cs: Rewrote/refactored most of selection code. We require
3192         the following things in selection: a) keep selection sorted (both
3193         indices and items), b) SelectedIndices automatically detect the
3194         selection mode, c) SelectedIndex should be the first selected item
3195         index, d) Need to Focus/adjust scroll bar when selecting a new item,
3196         not only for SelectedIndex, which is specially important in Multi*
3197         selection modes. To achieve this we are moving the selection core to
3198         SelectedIndexCollection and make depend all selection modifications on
3199         it.
3200         Fixes #366438.
3201
3202 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
3203
3204         * ToolStrip.cs: Enable implicit mnemonics for drop down
3205         menu strips.  [Fixes part of bug #367692]
3206
3207 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
3208
3209         corcompare - fix parameter names [stragglers].
3210         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
3211         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
3212         TabControl.cs.
3213
3214 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
3215
3216         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
3217         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
3218         mnemonic, let the ToolStripManager have it even if it doesn't
3219         have a matching mnemonic.
3220         [Fixes bug #367499]
3221
3222 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
3223
3224         corcompare - fix warning about implicit implementation
3225         * ToolStrip.cs: Add IToolStripData interface.
3226         * IToolStripData.cs: Add.
3227
3228 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
3229
3230         corcompare - fix warning about implicit implementation
3231         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
3232         * IBounds.cs: Add.
3233
3234 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
3235
3236         corcompare - fix parameter names [N-Z].
3237         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
3238         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
3239         PropertyManager.cs, RichTextBox.cs,
3240         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
3241         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
3242         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
3243         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
3244         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
3245         ToolStripContentPanel.cs, ToolStripDropDown.cs,
3246         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
3247         ToolStripPanel.cs, ToolStripSeparator.cs,
3248         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
3249         UICuesEventHandler.cs, UpDownBase.cs.
3250
3251 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
3252
3253         corcompare - fix parameter names [G-M].
3254         GridColumnStylesCollection.cs, GridItemCollection.cs,
3255         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
3256         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
3257         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
3258         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
3259         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
3260
3261 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
3262
3263         corcompare - fix parameter names [A-F].
3264         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
3265         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
3266         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
3267         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
3268         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
3269         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
3270         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
3271
3272 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
3273
3274         * GridEntry.cs: Do not convert not only if the types match, 
3275         but also if the property type is assigneable from the value's
3276         type.
3277         [Fixes bug #366566]
3278
3279 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
3280
3281         * PropertyGridView.cs: 
3282          - Subscribe to the listbox only once and not everytime.
3283          - Update the textbox even if SetValue fails.
3284          - Close the listbox before calling TrySetValue just in case.
3285          [Fixes bug #366569]
3286
3287 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
3288
3289         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
3290
3291 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3292
3293         * ListView.cs: Implement support for custom column width based on
3294         Columns collection (we were previously using this collection only
3295         with Details view).
3296         Fixes #364484.
3297
3298 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3299
3300         * ListViewItem.cs: For Tile view, always set bounds for the first
3301         subitem (which is the main one), and also don't let Width be larger
3302         than ListView.TileSize.Width. Improve code readibility also.
3303         * ThemeWin32Classic.cs: When painting the ListViewItem instances
3304         in Tile view, _always_ use the NoWrap flag.
3305         Fixes #360798.
3306
3307 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
3308
3309         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
3310         in case.
3311         * GridEntry.cs: For MS compitability make all child properties 
3312         readonly if the parent is readonly. Ugh.
3313         [Fixes bug #365945 and #365944]
3314
3315 2008-02-29  Andreia Gaita <avidigal@novell.com> 
3316
3317         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
3318           relative to the history
3319
3320 2008-02-29  Andreia Gaita <avidigal@novell.com>
3321
3322         * HtmlElement.cs: More handlers for mouse and key events
3323
3324 2008-02-28  Andreia Gaita <avidigal@novell.com>
3325
3326         * WebBrowserBase.cs: MouseClick sig changed.
3327         * HtmlHistory.cs: Implement history navigation
3328         * HtmlElement.cs: Add event handlers, and connect them.
3329
3330 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
3331
3332         * GridEntry.cs: 
3333          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
3334            so that DisplayNameAttribute doesn't get ignored.
3335          - Check for ParenthesizeNameAttribute and parenthesize the Label.
3336          - Add support for PasswordPropertyTextAttribute
3337         * PropertyGridView.cs: Check if an entry is a password.
3338         [Fixes bugs #365589, #365586, #365588]
3339
3340 2008-02-28  Andreia Gaita <avidigal@novell.com>
3341
3342         * PropertyGridView.cs: Revert the message filtering change, as we
3343         need it to block after all. Remove block parameter, unnecessary.
3344
3345 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
3346
3347         * UserControl.cs: Better implementation of GetPreferredSize.
3348         First step to fixing bug #361441.
3349
3350 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3351
3352         * Binding.cs: Actually implement data binding support for 
3353         classes implementing IBindableComponent.
3354         * ControlBindingsCollection.cs: Likewise.
3355
3356 2008-02-26  Andreia Gaita  <avidigal@novell.com>
3357
3358         * PropertyGridView.cs: Use a message filter to check when to 
3359         close the dropdown
3360
3361 2008-02-26  Andreia Gaita  <avidigal@novell.com>
3362
3363         * Application.cs: Change the message_filters loop so a filter 
3364         can be removed while looping.
3365
3366 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
3367
3368         * GridEntry.cs: Optimization in ToggleValue so that it caches
3369         the current value.
3370         * PropertyGridView.cs: An optimization so that the property isn't 
3371         re-read twice for each StandardValue added to the drop-down menu.
3372         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
3373         license.
3374         [Fixes bug #362755]
3375
3376 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
3377
3378         * Application.cs: Apply patch from Justin Cherniak to match
3379         MS better for ProductName, ProductVersion, and CompanyName.
3380         [Fixes bug #361709]
3381
3382 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3383
3384         * Binding.cs: Actually implement 2.0 NullValue property. Also
3385         when changing the formatting related properties, only update the state
3386         if formatting_enabled is true (we don't mind otherwise).
3387
3388 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
3389
3390         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
3391         [Fixes bug #364486]
3392
3393 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
3394
3395         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
3396         of GetType on the current value as it uses reflection to 
3397         determine the type. This fixes the case where the new value is 
3398         null. 
3399
3400 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
3401
3402         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
3403         past the view.
3404
3405 2008-02-24  Luke Page  <luke.a.page@gmail.com>
3406
3407         * Line.cs, TextControl.cs: Implement offset x and y so that a
3408         document doesn't have to begin  at (0,0) on the viewpoint.
3409         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
3410         bars and switches the text alignment (and therefore is now
3411         implemented for textbox). Fixes #321383.
3412
3413 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3414
3415         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
3416         properties. Also when changing FormattingEnabled update the control
3417         property -as .Net does-.
3418
3419 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
3420
3421         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
3422         * Binding.cs: Add stubs for the overloads of the Add method in
3423         CBCollection.
3424
3425 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3426
3427         * Binding.cs: PullData () returns a false value if we got an exception.
3428         Also when validating the control and we get an error, instead of
3429         setting the value of the previous one, cancel the event (tested in 1.1
3430         and 2.0).
3431
3432 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
3433
3434         * TreeView.cs: Make selected_node and highlighted_node internal.
3435         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
3436         to null when Nodes.Clear is called.
3437         [Fixes bug #363884]
3438
3439 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
3440
3441         * FontDialog.cs: Ensure that when the Font is set in code,
3442         all the gui pieces are updated accordingly.
3443         [Fixes bug #361020]
3444
3445 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
3446
3447         * TextRenderer.cs: Respect proposed size for MeasureString.
3448         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
3449         autosize, use a proposed width to force wrapping for long text.
3450         [Fixes bug #360981]
3451
3452 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
3453
3454         * TreeView.cs: Factor in checkboxes = false and state images in
3455         to HitTest.  [Fixes bug #363360]
3456
3457 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
3458
3459         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
3460         when drawing the selected range.
3461         [Fixes bug #363648]
3462
3463 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
3464
3465         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
3466         ResizeRedraw control styles.
3467         [Fixes bug #363555]
3468
3469 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
3470
3471         * TreeView.cs: StateImages are basically custom checkboxes, so
3472         factor their size the same as real checkboxes when determining
3473         what got clicked.
3474         [Fixes bug #363367]
3475
3476 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
3477
3478         * MessageBox.cs: Make the message box wider if the form caption
3479         is longer than the text in the form.
3480         [Fixes bug #361137]
3481
3482 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
3483
3484         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
3485
3486 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
3487
3488         * TreeNode.cs: Guard against an NRE when the parent's
3489         StateImageList hasn't been set.
3490         [Fixes bug #363353]
3491
3492 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
3493
3494         * SplitContainer.cs: Add SupportsTransparentBackColor and
3495         OptimizedDoubleBuffering control styles.
3496         [Fixes bug #363303]
3497
3498 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
3499
3500         * Application.cs: For the app data paths and the registry key paths,
3501         ensure they are created before returning them to the user.
3502         [Fixes bug #361709]
3503
3504 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
3505
3506         * Application.cs: Guard against an NRE in CompanyName and
3507         ProductName.
3508
3509 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
3510
3511         * Application.cs: For CompanyName, ProductName, and ProductVersion,
3512         make sure we handle all three cases correctly: attribute is present,
3513         attribute is present but is an empty string, and attribute is not
3514         present.
3515
3516 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
3517
3518         * PropertyGridView.cs: 
3519          - Fix a NRE that caused a test failure
3520          - Another performance improvement - cache the standard values
3521          listbox.
3522
3523 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
3524
3525         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
3526         code paths.
3527
3528 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
3529
3530         * PropertyGridView.cs: Fix a big performance bug.
3531
3532 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
3533
3534         * SelectionRange.cs: Apply patch from Andy Hume to make
3535         constructor behavior more accurate.  [Fixes bug #362117]
3536
3537 2008-02-19  Andreia Gaita <avidigal@novell.com> 
3538
3539         * Control.cs: Added a new flag is_disposing to track if the
3540         window is currently in the process of being disposed of.
3541         This is used so that, when firing visibility changes triggered
3542         by unparenting controls during Dispose, the control doesn't
3543         get created again.      
3544
3545 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
3546
3547         * ComboBox.cs: Set height to preferred height when the handle
3548         is created.  [Fixes bug #360862]
3549
3550 2008-02-18  Andreia Gaita <avidigal@novell.com>
3551
3552         * XplatUIX11.cs: Create FosterParent with border width at 0.
3553         With the previous value of 4, everytime a control got reparented
3554         from parent = null, it's location would be shifted right and 
3555         down by 4, since these coordinates would be offset by the 
3556         FosterParent's border width.
3557
3558 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
3559
3560         * Control.cs: During diposing firstly remove ourselfes from
3561         the parent and *then* destroy our handle, because removing
3562         ourselfes from the parent controls collection causes 
3563         VisibilityChange, etc events, which require a handle and end
3564         up recreating the control.
3565
3566 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
3567
3568         * GridEntry.cs: Set expanded state before notifying that the
3569         expansion has taken place.
3570         * PropertyGridView.cs:
3571          - Set the propertygridtextbox text to the selected 
3572          StandardValue before proceeding to setting it.
3573          - Scrolling bugfixes.
3574
3575 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
3576
3577         * GridEntry.cs:
3578          - Fix ValueText to not return null.
3579          - Fix conversion error reporting to actually happen.
3580         * PropertyGridView.cs: Set entry only if the text has changed.
3581         [Fixes bug #362116]
3582
3583 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
3584
3585         * GridEntry.cs: 
3586          - Fix handling of a null current value.
3587          - Swallow editor exceptions.
3588         [Fixes bug #362114]
3589
3590 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
3591
3592         * PropertyGrid.cs: Clear current items first thing before 
3593         repopulating subitems.
3594         * GridEntry.cs: 
3595          - Handle null StandardValuesCollection.
3596          - Mark as not editable if there is no PropertyDescriptor and
3597          if the Converter cannot convert from string.
3598         [Part of fix for bugs #360666 and #358332]
3599
3600 2008-02-15  Luke Page  <luke.a.page@gmail.com>
3601         * MaskedTextBox.cs: Now skips non editable characters after a
3602         character has been entered and we are progressing to the next
3603         position in the MaskedTextBox.
3604
3605 2008-02-15  Luke Page  <luke.a.page@gmail.com>
3606         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
3607         that it changes the selection rather than just repositioning the
3608         cursor. Fixes Bug #360873.
3609
3610 2008-02-15  Luke Page  <luke.a.page@gmail.com>
3611         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
3612         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
3613         correctly. See #359330
3614
3615 2008-02-15  Andreia Gaita <avidigal@novell.com>
3616
3617         * XplatUIX11.cs: If the handle is null when posting a message, use the
3618         current thread queue to post instead. Fixes #332409
3619
3620         * SendKeys.cs: Slight optimization
3621
3622 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
3623
3624         * PropertyGrid.cs, PropertyGridView.cs:
3625         Fix multiple scrolling and sizing issues.
3626         [Fixes bug #359199]
3627
3628 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
3629
3630         * PropertyGridView.cs: Ensure that drop down editors are shown
3631         in the WorkingArea of the screen.
3632         [Fixes bug #359807]
3633
3634 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
3635
3636         * GridEntry.cs: Fail silently when UITypeEditor is missing.
3637         [Fixes bug #360666]
3638
3639 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3640
3641         * Binding.cs: Implement 2.0 DataSourceNullValue property.
3642
3643 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
3644
3645         * PropertyGridView.cs:
3646          - Clear the controls in the drop down form after it is hidden.
3647          - Fix Width sizing of the dropdown editors to match MSFT.
3648
3649 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
3650
3651         * PropertyGridView.cs: 
3652          - Fix height for drawing the grid entry
3653          text value, so that it clips multiline text properly.
3654          - Fix unfocusing to match MSFT.
3655
3656 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
3657
3658         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
3659         Fixes a bug where on repopulation after value changed items become
3660         expandable.
3661
3662 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3663
3664         * Binding.cs: For the 2.0 profile, look for a 
3665         'PropertyChanged' event in the target control, and add checks for
3666         DataSourceUpdateMode property to change -or not- the data source
3667         from validation/control property change.
3668
3669 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
3670
3671         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
3672           not compare struct with null in 2.0).
3673
3674 2008-02-10  Luke Page <luke.a.page@gmail.com>
3675
3676         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
3677         updates the provider and if not using a provider, uses the internal document
3678         class implementation of password char. Also when showing text, uses display string
3679         from the provider, instead of the actual text.
3680
3681 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3682
3683         * Binding.cs: Ooooops, forgot to take into account the data_source
3684         and binding_member_info null case (it was breaking the Binding tests).
3685
3686 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3687
3688         * Binding.cs: Implement support for data source changes exposed by
3689         'PropertyNameChanged' events, and update the control property as
3690         needed.
3691
3692 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3693
3694         * Binding.cs: Implement 2.0 WriteValue method.
3695
3696 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
3697
3698         Commit patch from James Purcell for better AutoScale implementation:
3699
3700         * ScaleControl should call GetScaledBounds with the control's total size rather
3701         than client size.  GetScaledBounds should handle ignoring the borders in its
3702         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
3703         (for the most part they just call the base code now since that is fixed).
3704         * Added ScaleChildrenInternal to allow controls to disable scaling of children
3705         without having to override ScaleChildren (since none of .NET's controls do). 
3706         This is required for most controls in Mono that have scrollbars to prevent the
3707         scrollbars from being moved/resized.
3708         * Nested ContainerControls can have a different scale mode than their parent. 
3709         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
3710         designer produce different results both of which look incorrect).
3711         * Default AutoScaleMode for ContainerControl should be Inherit.
3712         * Simplified workaround for ComboBox scaling issue.
3713         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
3714         1.0 style auto scaling should scale the whole control's size instead of
3715         ignoring the borders (except for Form) and the rounding is done differently to
3716         preserve control alignment.
3717         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
3718         GetAutoScaleSize.
3719         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
3720         * CurrentAutoScaleDimensions should round the estimated character width instead
3721         of truncating.
3722         * ListBox's GetScaledBounds should always use the height it was set to instead
3723         of the height that was passed in.  This prevents rounding errors from
3724         accumulating quickly with IntegralHeight.
3725         [Bug #359098]
3726
3727 2008-02-08  Andreia Gaita <avidigal@novell.com>
3728
3729         * Form.cs: Add a null check (darn it). 
3730
3731 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
3732
3733         * MdiClient.cs: Make sure the requesting form actually owns the
3734         control menu items before removing them.  Also, use
3735         Suspend/ResumeLayout when adding or removing items so we only
3736         layout once.
3737         [Fixes bug #359887]
3738
3739 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
3740
3741         * Control.cs: Guard against an NRE in ShowFocusCues.
3742         [Fixes bug #359830]
3743
3744 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3745
3746         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
3747         property, as well as stubbing DataSourceUpdateMode.
3748
3749 2008-02-08  Andreia Gaita <avidigal@novell.com>
3750
3751         * Form.cs: When closing forms, get focus back to the active control of the
3752         active form. [Fixes #341314, corner case]
3753         
3754 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3755
3756         * MdiClient.cs: After we move the scrollbars, invalidate the NC
3757         area, so any old scrollbar artifacts are cleaned up.
3758         [Fixes bug #336305]
3759
3760 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3761
3762         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
3763         for our menus, display that control box menu instead of the 1.1
3764         menu one.
3765
3766 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3767
3768         * MdiControlStrip.cs: Add property to access the mdi form tied to
3769         each toolstripitem.
3770         * MdiClient.cs: Be smarter about removing and adding toolstripitems
3771         to the implicitly merged menu.  Every time we clicked the form, items
3772         were getting removed and the re-added, causing the form to jump around
3773         as the menu resized.
3774
3775 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3776
3777         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
3778         was being reset by the implicit menu merge for menustrips.
3779         [Fixes bug #336296]
3780
3781 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3782
3783         * Form.cs: Don't do the previous change when WindowState = Normal,
3784         or it messes up where the window is placed.  Fixes test failure.
3785
3786 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3787
3788         * Form.cs: When becoming visible, if we are an MDI child, call
3789         SetWindowState with a dummy old_state so that changes will actually
3790         be made.
3791         [Fixes the 2nd part of bug #325473]
3792
3793 2008-02-07  Andreia Gaita <avidigal@novell.com>
3794
3795         * Control.cs: Reset properties to their pre parent-change values in case
3796         the new parent == null (in which case we're basically removing the control, 
3797         and don't want any events fired due to fake property changes)
3798         [Fixes #355850]
3799
3800 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
3801
3802         * PropertyGridView.cs: 
3803          - Refactor SetValue to allow setting the value
3804         when a custom editor is used, but the entry is not editable.
3805          - Remove the custom editor control on CloseDropDown.
3806         [Fixes #359196]
3807
3808 2008-02-06  Andreia Gaita <avidigal@novell.com>
3809
3810         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
3811         reflection only on 1.1, this property is public on system.drawing on 2.0.
3812         Fixed #359247
3813
3814 2008-02-06  Andreia Gaita  <avidigal@novell.com>
3815         
3816         * WebBrowser.cs: Do a normal page refresh by default.
3817
3818 2008-02-05  Andreia Gaita  <avidigal@novell.com>
3819
3820         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
3821         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
3822         platforms. Fixes #359036
3823         
3824         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
3825         platform-specific flags.
3826
3827 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3828
3829         * Binding.cs: Add 2.0 BindableComponent property - just return control
3830         by now.
3831
3832 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
3833
3834         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
3835         Jonathan for this patch. Fixes #358442.
3836
3837 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
3838
3839         * Form.cs: If we change the active MDI child form, let the others
3840         know they need to repaint their title bar so it will appear inactive.
3841         [Fixes part 1 of bug #325473]
3842
3843 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
3844
3845          * PropertyGridView.cs: Do not trucate custom editors' width
3846          and align them to the left.
3847          [Fixes #358353 and #358349]
3848
3849 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3850
3851         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
3852         Also fix the arguments passed to CollectionChangeEventArgs in the
3853         related methods.
3854
3855 2008-02-04  Geoff Norton  <gnorton@novell.com>
3856
3857         * Hwnd.cs: The conversion to Quartz coordinates happens in
3858         System.Drawing.  Removing this translation from here.
3859
3860 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
3861
3862          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
3863          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
3864          GridItemCollection.cs:
3865          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
3866
3867 2008-02-04  Geoff Norton  <gnorton@novell.com>
3868
3869         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
3870         SYSKEYUP if any other key has been pressed in the mean time.
3871         Fixes #324404
3872
3873 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3874
3875         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
3876         when the item in current position is different than 0. Also, save the
3877         item index in the beginning of the operation, instead of getting the
3878         index of the item when the event is actually performed. Lastly clean
3879         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
3880         triggered.
3881         [Fixes #357873]
3882
3883 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
3884
3885         * Form.cs: Alt-Minus for MDI children system menu should work
3886         with both the minus keys on the keyboard.
3887         [Fixes bug #336295]
3888
3889 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
3890
3891         * Control.cs: Don't invalidate on region change.  The WM should
3892         take care of this automagically.  Keeps us out of an infinite
3893         paint loop if someone changes the Region in the OnPaint.
3894         [Fixes bug #358327]
3895
3896 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
3897
3898          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
3899
3900 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
3901
3902         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
3903         down the MonthCalendar only on F4, not Alt+F4.
3904         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
3905         [Fixes bug #358340]
3906
3907 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
3908
3909         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
3910         if its part of a DateTimePicker, else, use the back color.
3911         [Fixes bug #358339]
3912
3913 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
3914
3915         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
3916         [Fixes bug #358342]
3917
3918 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3919
3920         * CurrencyManager.cs: When we get a ListChanged event from our source,
3921         always fire our own ListChanged event, as .Net does.
3922
3923 2008-02-03  Luke Page  <luke.a.page@gmail.com>
3924
3925         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
3926         #358379.
3927
3928 2008-02-03  Luke Page  <luke.a.page@gmail.com>
3929
3930         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
3931         property. Removed if for richtext property that was always true.
3932         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
3933
3934 2008-02-03  Luke Page  <luke.a.page@gmail.com>
3935
3936         * TextBoxBase.cs - commited patch from James Purcell that
3937         correctly sets the FixedHeight control style when the MultiLine
3938         property is changed on a TextBox control. Fixes bug 358229.
3939
3940 2008-02-02  Luke Page  <luke.a.page@gmail.com>
3941
3942         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
3943         Fixes bug 351938 - caret is positioned correctly when drawn
3944         and when calculating textual position of caret, no longer
3945         has a NRE in certain situations.
3946         
3947 2008-02-01  Geoff Norton  <gnorton@novell.com>
3948
3949         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
3950         get that region removed from the paint event.
3951         * XplatUICarbon.cs: Remove the window mapping after disposing of 
3952         window.  Prevents a crash with handle reuse.  Optimize exposes
3953         only onto visible windows (rare; but possible).
3954
3955 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
3956
3957         * UpDownBase.cs: Make sure the internal textbox calls the base's
3958         OnMouseDown and OnMouseUp so the textbox will function correctly.
3959         There were notes saying it doesn't chain up, but its an internal
3960         class, so our implementation may differ.
3961         [Fixes bug #357482]
3962
3963 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
3964
3965         * ListBox.cs: Fix a logic error and don't process MouseDown
3966         for mouse buttons other than Left.
3967
3968 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
3969
3970         * Control.cs: Remove HeightInternal.
3971         * ListBox.cs: Commit patch from James Purcell that correctly
3972         calculates heights for ListBoxen.
3973         [Fixes bug #357152]
3974
3975 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
3976
3977         * Label.cs: Apply patch from James Purcell that corrects the 
3978         signature of the AutoSize property.
3979         [Fixes bug #357605]
3980
3981 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
3982
3983         * ListBox.cs: Don't throw [Mouse]Click events for buttons
3984         other than the left mouse button.
3985
3986 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
3987
3988         * Control.cs: Remove my awesome optimization as it caused some
3989         regressions with control ordering.  :(
3990         [Fixes bug #357467]
3991
3992 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
3993
3994          * PropertyGridView.cs: Fix a NRE on double click when there is no
3995          selected object.
3996
3997 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3998
3999         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
4000
4001 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
4002
4003         * ListBox.cs: Call MouseClick and MouseDoubleClick.
4004         [Fixes bug #357146]
4005
4006 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
4007
4008         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
4009         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
4010         instead of Hwnd.bmp_g.
4011
4012 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
4013
4014         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
4015         Use the Hwnd one instead.
4016
4017 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
4018
4019         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
4020
4021 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
4022
4023         * Form.cs: corcompare for RestoreBounds.
4024
4025 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
4026
4027         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
4028
4029 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
4030
4031         * Form.cs: Handle Alt-Minus for MDI children forms.
4032         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
4033         Add mnemonics to the control menu.
4034         [Fixes bug #336295]
4035
4036 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4037
4038         * Binding.cs: Initial implementation bits of FormattingEnabled
4039         property and BindingComplete event (2.0). 
4040         * BindingCompleteEventArgs.cs: Internal methods for setting error text
4041         and exception.
4042
4043 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
4044
4045         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
4046         table.Location.  [Fixes bug #354672]
4047
4048 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
4049
4050         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
4051         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
4052
4053 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4054
4055         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
4056         of doing all the re-bound work, just invalidate and call SetControlText 
4057         to set the updated text of selected item to our textbox.
4058         Fixes #333750.
4059
4060 2008-01-28  Andreia Gaita <avidigal@novell.com>
4061
4062         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
4063         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
4064         missing properties and methods. Add Load, Unload, Error, GotFocus, 
4065         LostFocus, Resize, Scroll events (only load and unload are connected)
4066
4067 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
4068
4069         * AccessibleObject.cs: Modified argument names to match MS.
4070         * Button.cs: Modified argument names to match MS.
4071         * BindingContext.cs: Modified argument names to match MS.
4072         * BindingMemberInfo.cs: Modified argument names to match MS.
4073         * ButtonBase.cs: Modified argument names to match MS.
4074         * ComboBox.cs: Modified argument names to match MS.
4075         * Control.cs: Modified argument names to match MS.
4076         * CheckedListBox.cs: Modified argument names to match MS.
4077         * CommonDialog.cs: Modified argument names to match MS.
4078         * DataGrid.cs: Modified argument names to match MS.
4079         * CursorConverter.cs: Modified argument names to match MS.
4080         * ControlPaint.cs: Modified argument names to match MS.
4081         * CheckBox.cs: Modified argument names to match MS.
4082         * ControlBindingsCollection.cs: Modified argument names to match MS.
4083         * BindingSource.cs: Modified argument names to match MS.
4084         * DataFormats.cs: Modified argument names to match MS.
4085         * ContainerControl.cs: Modified argument names to match MS.
4086         * CurrencyManager.cs: Modified argument names to match MS.
4087         * Application.cs: Modified argument names to match MS.
4088         * ContextMenuStrip.cs: Modified argument names to match MS.
4089         * ContextMenu.cs: Modified argument names to match MS.
4090         * BindingManagerBase.cs: Modified argument names to match MS.
4091         * WindowsFormsSection.cs: Fixed line ending.    
4092
4093 2008-01-27  Andreia Gaita <avidigal@novell.com>
4094
4095         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
4096         detecting that the dropdown toolwindow is hidden. EndLoop outside the
4097         while.
4098
4099 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
4100
4101         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
4102         MS. Code formatting.
4103
4104 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4105
4106         * Binding.cs: Don't avoid the Format event if the control 
4107         property type is object. Also, if the value retrieved by 
4108         the data source is null _and_ the control proeprty type 
4109         is object, return Convert.DBNull (match .Net).
4110         Fixes part of #324286.
4111
4112 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4113
4114         * ListControl.cs: Since we are getting two BinginContextChanged events
4115         for the same binding context instance (when the control is added to
4116         form, and when the form is actually shown), take it into account only the
4117         first time for a given binding context instance.
4118         Fixes part of #324286.
4119
4120 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
4121
4122          * PropertryGridView.cs: Ops.
4123
4124 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
4125
4126          * PropertyGridView.cs: Close dropdown form if the owner form is
4127          moved or minimized.
4128          [Fixes bug #322446]
4129
4130 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
4131
4132          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
4133          RootGridEntry.cs, CategoryGridEntry.cs:
4134          PropertyGrid rewrite.
4135          - Rewrite all of the control logic in PropertyGrid.
4136          - Rewrite all of the ComponentModel logic in GridEntry.
4137          - Rewrite all UI work in PropertyGridView.
4138          - Many bugfixes, etc.
4139
4140 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
4141
4142         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
4143         when all contained controls are autosize or dock-fill.  Also take into
4144         account when the total percentage of column/row sizes is not 100%.
4145         [Fixes bug #354672]
4146
4147 2008-01-24  Andreia Gaita <avidigal@novell.com>
4148
4149         * HtmlDocument.cs:
4150         - Save a reference to the IDocument in the instance and
4151           use that one instead of going to WebHost.Document; the document that the 
4152           WebHost returns might not be the right one (in case of frames).
4153         - Use the hashcode returned from the IDocument interface.
4154         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
4155           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
4156           LinkColor, Url, VisitedColor, Window
4157
4158         * HtmlElement.cs: 
4159         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
4160           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
4161           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
4162           SetAttribute, Equals, equality operators.
4163         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
4164           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
4165         
4166         * HtmlElementCollection.cs: Change implementation to use a generic
4167         collection. Implemented Enumerator and CopyTo
4168
4169         * HtmlHistory.cs: Add constructor, no implementation yet.
4170
4171         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
4172         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
4173         Equals, equality operators.
4174
4175         * HtmlWindowCollection.cs: Implemented. 
4176
4177         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
4178         has been deprecated).
4179
4180         * WebBrowserBase.cs: Use Completed event to track document loading
4181         (Navigated has been deprecated)
4182
4183 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
4184
4185         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
4186         level MenuItems do not respect tabs.
4187         [Fixes bug #355196]
4188
4189 2008-01-23  Geoff Norton  <gnorton@novell.com>
4190
4191         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
4192         FormWindowState.  Finished fixing Fullscreen windows on Carbon
4193
4194 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
4195
4196         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
4197         be used as grab_control. Also save status of capture before show ContextMenu
4198         and restore it after close.
4199
4200 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
4201
4202         * Control.cs: Internal FindRootParent method added to return high control
4203         in parent tree.
4204
4205 2008-01-23  Geoff Norton  <gnorton@novell.com>
4206
4207         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
4208         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
4209         it work again.  Handle HITTEST events.
4210
4211 2008-01-23  Geoff Norton  <gnorton@novell.com>
4212
4213         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
4214         a crash in certain cases.  Support for fullscreen windows in certain cases.
4215
4216 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
4217
4218         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
4219         [Fixes bug #355703]
4220
4221 2008-01-23  Geoff Norton  <gnorton@novell.com>
4222         
4223         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
4224
4225 2008-01-23  Geoff Norton  <gnorton@novell.com>
4226
4227         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
4228
4229 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
4230
4231         * SplitContainer.cs: Remove unused declarations.
4232         * Binding.cs: Remove unused declarations.
4233
4234 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
4235
4236         * Form.cs: Remove unused declaration of 'active' in Activate method.
4237         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
4238         prevent compilation warnings.
4239         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
4240         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
4241         * Bindings.cs: Remove unused formatting_enabled declaration.
4242         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
4243         warnings.
4244         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
4245         warnings.
4246         * PropertyGridView.cs: Remove usused 'ex' declaration.
4247         * DataGridView.cs: Remove unused declarations.
4248
4249 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
4250
4251         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
4252         
4253         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
4254         to Control class, it makes possible to grab menu to controls that can't 
4255         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
4256         WmMouseMove removed since it was used only to track menu events.
4257
4258         * Control.cs:
4259         - Moved all active_tracker stuff from Form.
4260         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
4261         can call this method instead of reimplement all necessary code handle for
4262         menu tracker.
4263         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
4264         and WmMouseMove).
4265         
4266         * MenuAPI.cs: 
4267         - Remove special handle to ToolStripOverflow, now we can grab menu to 
4268         controls that can't reach Form using parent tree.
4269         - Change type of grab_control from Form to Control.
4270
4271 2008-01-22  Geoff Norton  <gnorton@novell.com>
4272
4273         * TextBoxBase.cs: Split up the sizing of controls and placing of 
4274         controls.  Fixes a bug where scrollbars in Reflector could be sized
4275         wrong and have non-working thumbers.
4276
4277 2008-01-23  Geoff Norton  <gnorton@novell.com>
4278
4279         * XplatUI.cs: Refactor environment variables to default support to the
4280         Carbon driver on the Mac.
4281
4282 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
4283
4284         * Label.cs: Uses new LabelPainter for drawing operations.
4285         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
4286         * Theme.cs: DrawLabel and LabelDefaultSize removed.
4287
4288 2008-01-22  Geoff Norton  <gnorton@novell.com>
4289
4290         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
4291
4292 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
4293
4294         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
4295         through the normal flat button code and don't draw the checkbox glyph.
4296         * Theme.cs: Button->ButtonBase signature change.
4297         [Fixes bug #324755]
4298
4299 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
4300
4301         * LinkLabel.cs: Uses new class LinkLabelPainter.
4302
4303 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
4304
4305         * MessageBox.cs: Adjust right border space, we don't need to add 
4306         "space_border*2" two times.
4307
4308 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
4309
4310         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
4311         becomes a wrapper around Padding.
4312         [Fixes a part of bug #354676]
4313
4314 2008-01-22 Geoff Norton  <gnorton@novell.com>
4315
4316         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
4317         acquired.  Also ensure the buffer is large enough to grab the header
4318         we need on linux boxes.
4319
4320 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
4321
4322         * Control.cs: Implement a custom enumerator so people can delete
4323         from the Controls collection while in a foreach.
4324         [Fixes bug #355074]
4325
4326 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
4327
4328          * PropertyGridView.cs: Fix focusing behavior:
4329          - Tab should focus the grid text box.
4330          - Clicking on the labels shouldn't focus the grid text box.
4331
4332 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
4333
4334          * PropertyGridView.cs: IsValueTypeGridItem should return true 
4335          for Arrays as well.
4336
4337 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
4338
4339          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
4340           - Renamed GridEntry.SelectedObjects to TargetObjects to better
4341           reflect the property name role.
4342           - PropertyGrid.GetTarget is not required as the target is known
4343           (TargetObjects).
4344           - Setting values will handle value types as a special case now and
4345           populate them up in the chain.
4346           [Fixes #354990]
4347
4348 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
4349
4350         * Hwnd.cs: Create a public property for the Graphics we keep around.
4351
4352 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
4353
4354          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
4355          when the current object selection changes. 
4356          Fixes failing test SelectedObject_Null2.B5.
4357
4358 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
4359
4360          * PropertyGrid.cs: Process Browsable properties with 
4361          DesignerSerializationVisibilityAttribute.Content as being expandable.
4362          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
4363          will not be expandable. We should be nested components-friendly now.
4364
4365 2008-01-21  Andreia Gaita <avidigal@novell.com>
4366
4367         * WebBrowserBase.cs: Check if control was loaded properly, 
4368         don't bind if it wasn't.
4369
4370         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
4371         GetElementFromPoint, equality operators, OpenNew, Write.
4372         Remove extra set_Body
4373
4374 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
4375
4376         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
4377         that makes our AutoScale* stuff more tolerant to different orders
4378         of being set.  [Fixes bug #354669]
4379
4380 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
4381
4382          * PropertyGridView.cs, PropertyGridTextBox.cs: 
4383          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
4384          [Fixes #339005 and #348209]
4385
4386 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
4387
4388          * PropertyGridView.cs: Hide the grid text box before adjusting it
4389          for the newly selected GridItem.
4390          [Fixes #338999]
4391
4392 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
4393
4394         * Form.cs: Give MDI children the opportunity to cancel the parent form
4395         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
4396         properly for both the parent and child.
4397         * Application.cs: Signature of internal method changed, pass the previous
4398         default of false.
4399         [Fixes bug #354286]
4400
4401 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
4402
4403         * PropertyGridView.cs: Set the property value only if it has changed.
4404         [Fixes bug #338997]
4405
4406 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
4407
4408         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
4409         If the mouse hasn't actually moved, ignore these messages so the currently
4410         highlighted menuitem isn't reset to the one under the mouse.
4411         [Fixes bug #333668]
4412
4413 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
4414
4415         * PropertyGridView.cs: When the property changes Invalidate the GridItem
4416         in order for the properties with UITypeEditor.GetPaintValueSupported == true
4417         to reflect the change visually.
4418         [Fixes bug #338998]
4419
4420 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
4421
4422         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
4423         to 2.0 button drawing.
4424         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
4425         the button text is tall enough for one line.  LineLimit says it will
4426         always draw at least one line, but it is a lie.
4427         [Fixes bug #324941]
4428
4429 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
4430
4431         * XplatUIStructs.cs, X11Keyboard.cs :
4432           added some more VK_* keys to be handled.
4433
4434 2008-01-16  Andreia Gaita <avidigal@novell.com>
4435
4436         * Control.cs: Check if there is a container before setting or getting
4437         the validation flag.
4438
4439 2008-01-16  Andreia Gaita <avidigal@novell.com>
4440
4441         * ContainerControl.cs: Add flag to track if a control cancels validation, 
4442         so we don't fire click events.
4443
4444         * Control.cs: 
4445         - (HandleClick) Check if validation was cancelled before  firing the click
4446         events (doubleclicks are fired, but not clicks)
4447         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
4448         ContainerControl.set_ActiveControl, but in the case of non-selectable
4449         controls, like a Label, activecontrol is not set. 
4450
4451         * ButtonBase.cs: Only fire clicks if validation passes.
4452         
4453         Fixes #353310
4454
4455 2008-01-16  Geoff Norton  <gnorton@novell.com>
4456
4457         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
4458         trunk
4459
4460 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
4461
4462         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
4463         SelectedPath, just display the default dialog instead of crashing.
4464         [Fixes bug #348989]
4465
4466 2008-01-16  Geoff Norton  <gnorton@novell.com>
4467
4468         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
4469         AddExpose instead of trusting apples compositing manager which doesn't
4470         work for our use case.  Remove some dead code causing warnings and 
4471         redecorate some other code to prevent warnings.
4472
4473 2008-01-16  Geoff Norton  <gnorton@novell.com>
4474
4475         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
4476         carbon signals us to redraw.  Fixes another portion of the flickering bug
4477
4478 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
4479
4480         * Form.cs: Prevent the MdiParent property to be set when value is the same
4481         as value already set. Fixes bug #328019.
4482
4483 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
4484
4485         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
4486         it prevents NRE when closing mdi child windows. Fixes bug #325211.
4487
4488 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
4489
4490         * InternalWindowManager.cs: Invalidade close button after mouse up when 
4491         mdi form is prevented to close.
4492
4493 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
4494
4495         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
4496         thanks to Andy Hume. Fixes bug #325433.
4497
4498 2008-01-16  Andreia Gaita <avidigal@novell.com>
4499
4500         * LinkLabel.cs: Reset focused_index when resellecting the control.
4501         Fixes #323190
4502
4503 2008-01-15  Geoff Norton  <gnorton@novell.com>
4504
4505         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
4506         messages.
4507
4508 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
4509
4510         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
4511         of truncate.
4512
4513 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
4514
4515         * ContainerControl.cs: Setting AutoScaleMode to anything should set
4516         Form.AutoScale to false.
4517         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
4518         AutoScaleBaseSize should be changed on Font change unless it has been
4519         explicitly set.
4520         [Fixes bug #353827]
4521
4522 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
4523
4524         * MenuAPI.cs: On instance of MenuTracker check if source control is
4525         ToolStripOverflow and use properly method to find form.
4526         [Fixes bug #338511]
4527
4528 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
4529
4530         [Fixes bug #323241 Transparent toolbar support]
4531
4532         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
4533         is flat.
4534
4535         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
4536         defined in control style to mimic win32 behavior.
4537
4538         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
4539         it will be transparent.
4540
4541 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
4542
4543         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
4544         CreateParams for ToolBar controls.
4545
4546 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
4547
4548         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
4549         FixedToolWindow, SizeableToolWindow, or None for border styles have
4550         different minimum sizes than regular forms.  Implemented to fix
4551         regression in PDN with toolbox being too wide.
4552
4553 2008-01-14  Andreia Gaita <avidigal@novell.com>
4554
4555         * HtmlElementCollection.cs: Implemented
4556
4557         * HtmlElement.cs: Implemented:
4558           - All
4559           - InnerHtml
4560           - InnerText
4561           - Id
4562           - Name
4563           - FirstChild
4564
4565         * HtmlDocument.cs: Implemented GetElementsByTagName.
4566
4567 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
4568
4569         * Screen.cs: Stub BitsPerPixel to always return 32.
4570
4571 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
4572
4573         * Form.cs: Implement RestoreBounds.
4574
4575 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
4576
4577         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
4578         Sebastien and his fabulous magical problem-finding machine:
4579         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
4580         respect the value set.
4581
4582 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
4583
4584         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
4585         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
4586
4587 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4588
4589         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
4590         messages (to match .Net), we need to remove the capture ourselves.
4591
4592 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
4593
4594         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
4595         will process the message and close our window.
4596         [Fixes bug #324328]
4597
4598 2008-01-10  Geoff Norton  <gnorton@novell.com>
4599
4600         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
4601         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
4602         window manager.
4603
4604 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
4605
4606         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
4607         failing test.
4608
4609 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
4610
4611         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
4612         Linux doesn't care, having a minimum matches MS and keeps the window
4613         from becoming too small to use window decorations.
4614         [Fixes bug #338996]
4615
4616 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
4617
4618         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
4619         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
4620         control.  [Fixes bug #325419]
4621
4622 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
4623
4624         * ComboBox.cs: Guard against an NRE if the user open a new form from a
4625         SelectedIndexChanged event.  This closes the combobox dropdown, and we
4626         were trying to dispose it.  [Fixes bug #352830]
4627
4628 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
4629
4630         * Control.cs, Form.cs: Implement the necessary semantics for
4631         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
4632         to determine if a focus rectangle should be drawn.
4633         * PropertyGrid.cs: Fix property visibility to match override.
4634         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
4635
4636 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
4637
4638         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
4639         [Fixes bug #323552]
4640
4641 2008-01-09  Geoff Norton  <gnorton@novell.com>
4642         
4643         * XplatUICarbon.cs: Scroll windows in the correct direction.
4644
4645 2008-01-09  Geoff Norton  <gnorton@novell.com>
4646
4647         * XplatUICarbon.cs: Track all created utility windows so we can hide them
4648         when the app is deactivated or spaces is enabled.
4649
4650 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4651
4652         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
4653         extra separation pixel for the label rect origin if SmallImageList is
4654         null, and thus we don't need that separation between icon and label
4655         rects.
4656         Patch by Ernesto Carrea.
4657         Fixes # 340195.
4658
4659 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
4660
4661         * StatusStrip.cs: Invalidate after completing a layout.  The base
4662         OnLayout does this, but we don't call the base.
4663         * ToolStripItem.cs: Revert the previous change to invalidate after
4664         the item moves.
4665         [Fixes bug #351341 better.]
4666
4667 2008-01-07  Geoff Norton  <gnorton@novell.com>
4668
4669         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
4670         not a notification to exit the application.  Listen for WM_QUIT
4671         instead.
4672
4673 2008-01-07  Andreia Gaita <avidigal@novell.com>
4674
4675         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
4676
4677 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
4678
4679         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
4680         so it can repaint at the correct location.
4681         [Fixes bug #351341]
4682
4683 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4684
4685         * ListControl.cs: SelectedValue should return a null value if
4686         SelectedIndex is -1. Also, when setting it, it should throw an
4687         ArgumentNullException if the value is null, as well as taking
4688         into account the String.Empty value, instead of ignoring it (we have
4689         tests for that now).
4690         Fixes part of #324286.
4691
4692 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
4693
4694         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
4695         SelectionStart is updated after pressing enter.  Fixes bug #351918.
4696
4697 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4698
4699         * TextControl.cs: Revert a piece r92316 that prevented the fix
4700         from working when there were multiple tags in the text box.
4701         Fixes bug #351881.
4702
4703 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4704
4705         * TextControl.cs: Apply patch from Luke Page that prevents an
4706         NRE when determining the beginning of a paragraph.
4707         Fixes bug #351886.
4708
4709 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4710
4711         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
4712         caret gets moved with clicking away from a selected block of
4713         text.  Fixes bug #351885.
4714
4715 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4716
4717         * TextControl.cs: Apply patch from Luke Page that takes line
4718         alignment into account for mouse selection, so that center and
4719         right aligned text can be selected.
4720         Fixes bug #351881.
4721
4722 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4723
4724         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
4725         issues after loading an RTF file by using the correct line feeds.
4726         Fixes bug #351841.
4727
4728 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4729
4730         * TextControl.cs: When deleting multiple line selections, we need
4731         to invalidate every line beginning at the first line of the selection.
4732         Patch from Luke Page fixes bug #351791.
4733
4734 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4735
4736         * ListControl.cs: When getting a CurrencyManager.PositionChanged
4737         event, don't set SelectedIndex if the number of items is 1. This is
4738         because, for the first item, PositionChanged is fired _before_
4739         ItemChanged (the place where we actually populate the items), and
4740         leave us in a temporary invalid state (since items collection is
4741         empty).
4742         Fixes #349655.
4743
4744 2008-01-04  Geoff Norton  <gnorton@novell.com>
4745
4746         * XplatUICarbon.cs:  Create native toolwindows instead of
4747         the managed drawing ones.
4748
4749 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
4750
4751         * LineTag.cs: If the line doesn't have any characters, return
4752         0 for GetCharIndex.  Fixes an AOORE exception after certain
4753         caret movements.  Fixes bug #351683.  Patch by Luke Page.
4754
4755 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
4756
4757         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
4758         is hit when there is selected text, only the selected text gets
4759         deleted, not the character in front of the selection as well.
4760         Fixes bug #351578.
4761
4762 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4763
4764         * ComboBox.cs: When the values are displayed, calculate the
4765         ComboListBox scrollbar's LargeChange based on the visible area's
4766         height and  the actuall ItemHeight, instead of calculating it
4767         based on MaxDropItems value, since it's not used by our _current_ 
4768         2.0 profile.
4769         Fixes #332366.
4770
4771 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
4772
4773         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
4774         Patch from Luke Page that fixes issues with font colors and styles
4775         not showing up in a readonly RichTextBox.  Fixes bug #324354.
4776
4777 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
4778
4779         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
4780         from Luke Page.  This one fixes bug #349926.
4781
4782 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4783
4784         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
4785         an item in the IBindingList source changes with
4786         ListChangedType.ItemAdded. Ignore for now firing the event for other
4787         changes, since we want to have tests for those cases as well.
4788
4789 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
4790
4791         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
4792         created.
4793
4794 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
4795
4796         * TextBoxTextRenderer.cs: Implement a cache for measuring each
4797         character.  This is effective because the typical usage of a
4798         TextBox is with a limited amount of fonts and characters, and
4799         the current implementation of TextBox measures everything one
4800         character at a time.  Another second or two speedup for bug #347238.
4801
4802 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
4803
4804         * Control.cs: Rewrite the Font getter to only query the parent's
4805         Font property once instead of twice.  Since this operation is
4806         recursive, the queries were growing exponentially as the control
4807         tree got deeper.  Another second or two speedup for bug #347238.
4808
4809 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
4810
4811         * Control.cs: Avoid setting a parent (and more importantly, updating
4812         the zorder of all its children) if the parent is already correct in
4813         WmShowWindow.  Decreases the startup time of the test case on bug
4814         #347238 from 35 seconds to 11 seconds.
4815
4816 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4817
4818         * X11Dnd.cs: When the dnd operation has started and we are 
4819         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
4820         This is done to match .Net, which doesn't send those messages after
4821         dnd operation was completed/cancelled.
4822         Fixes #349922.
4823
4824 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
4825
4826         * ToolStrip.cs: Previous change should be != null, not == null.
4827         Thanks Gert!
4828
4829 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
4830
4831         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
4832         user may have moved the mouse off the current item during the event.
4833
4834 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4835
4836         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
4837         calling GetItemAt for every MouseMove event by also taking into
4838         account whether any mouse button is pressed (probably dragging); 
4839         if so, we can call GetItemAt, and if not, try to not call it 
4840         (GetItemAt can be quite expensive when used with a large number of items).
4841
4842 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4843
4844         * ListView.cs: Implement -finally- support for dnd, by calling
4845         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
4846         authors list ;-).
4847         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
4848         simple calculation of distances for all the items in the owner
4849         listview.
4850
4851 2007-12-21  Geoff Norton  <gnorton@novell.com>
4852
4853         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
4854         for windows that are originally created as invisible.  Fixes missing
4855         main window in paint-mono.
4856
4857 2007-12-21  Geoff Norton  <gnorton@novell.com>
4858
4859         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
4860         subclass handler for com.novell.mwfview subclassing HIView.  Implement
4861         Pasteboard and Dnd methods.
4862
4863 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4864
4865         * ListBox.cs: When we got focus, give focus to first item if there
4866         wasn't any pervious focused item. Also update navigation to depend on
4867         SelectedIndex rather than FocusedItem, just as .Net does.
4868         Fixes #349174.
4869
4870 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4871
4872         * ListBox.cs: Both FindString and FindStringExact methods must do an
4873         case insensitive search, should allow the last valid index to be
4874         passed in the overload taking an initial index, and should also
4875         continue searching from the top back to the specified index when it
4876         reaches the bottom.
4877
4878 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
4879
4880         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
4881         redraw issue, and allows RichTextBox to draw colored text even while
4882         disabled or readonly.
4883
4884 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
4885
4886         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
4887         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
4888         and doesn't grey text in a disabled RichTextBox.
4889
4890 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
4891
4892         * RichTextBox.cs: Apply patch from Luke Page that adds better support
4893         for many RTF commands: quad alignment, separate formatting for blocks
4894         inside groups, and ParDef support.  Makes the test case from bug #324589
4895         look much better.
4896
4897 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
4898
4899         * LineTag.cs: Fix an error in the new Draw method that caused
4900         a crash when rendering the document on bug #324589.
4901
4902 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
4903
4904         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
4905         TextControl.cs: Apply patch from Luke Page that adds support
4906         for URL links in RichTextBox.
4907         [Fixes enhancement #342516]
4908
4909 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
4910
4911         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
4912         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
4913
4914 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4915
4916         * ListBox.cs: When a key gets pressed, try to find a string
4917         if the key is a character or a digit.
4918         Fixes #343971.
4919
4920 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
4921
4922         * TableLayoutPanel.cs: Remove some unused variables.
4923
4924 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
4925
4926         * DateTimePicker.cs: Commit patch from Luke Page that ensures
4927         we don't end up at an invalid date when we click the up/down
4928         spinner to change the month or year.  Fixes bug #348682.
4929
4930 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
4931
4932         * Application.cs: Calling Exit in 2.0 should chain to the
4933         Exit (CancelEventArgs) version so it can be cancelled.
4934         * Form.cs: Create a flag to allow raising the Closing
4935         events to be skipped.  We raise them once in Application.Exit
4936         and don't want to raise them again when the Form is actually
4937         closed.  [Fixes bug #349073]
4938
4939 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
4940
4941         * ToolStripDropDown.cs: Guard against an NRE when there
4942         hasn't been a mainform set in the application context.
4943         [Fixes bug #349108]
4944
4945 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4946
4947         * ListBox.cs: When SetBoundsCore gets called, besides
4948         calling UpdateScrollBars, update the value of
4949         last_visible_index, since we could need to show more items
4950         than before, and we need to let the paint routines know that.
4951         Fixes #344445.
4952
4953 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4954
4955         * ListView.cs: Add DesignerSerializationVisibility attribute to
4956         InsertionMark property.
4957         * ListViewItem.cs: Add same attribute to Position property.
4958
4959 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4960
4961         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
4962         is 2.0 only.
4963
4964 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
4965
4966         * ThemeWin32Classic.cs: Don't draw the background on a
4967         flat button if there is a background image.
4968         [Fixes bug #348649]
4969
4970 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4971
4972         * ListBox.cs: If we remove the item currently selected,
4973         remove it not only from SelectedItems, but also
4974         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
4975         the items count decreased and focused_item has bigger value than that.
4976
4977 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
4978
4979         * Control.cs: Perform our layout after we resize ourselves
4980         if we had to adjust our AutoSize.  Missed commit for bug
4981         #346246.
4982
4983 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
4984
4985         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
4986         we can provide an implementation of AutoSize.
4987         [Fixes bug #346246]
4988
4989 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4990
4991         * ListBox.cs: Add the internal overload Sort (bool paint),
4992         to indicate whether we actually need a paint or we will
4993         call Refresh ourselves. This way we don't request a paint
4994         _before_ having an updated and valid layout.
4995         Fixes #347233.
4996
4997 2007-12-12  Andreia Gaita <avidigal@novell.com>
4998
4999         * XPlatUIX11.cs: Send paint messages when updating a systray icon
5000         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
5001         properly invalidated. 
5002         Fixes #324237
5003
5004 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5005
5006         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
5007         don't simply assign it to our internal group field, but instead 
5008         use our Group property, which should do all the neccessary work
5009         required to support groups. Fixes an issue reported to me (mail) by a 
5010         guy using this new feature.
5011
5012 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
5013
5014         * Control.cs: Use Scale instead of ScaleControl to ensure the
5015         whole hierarchy gets scaled.
5016         [Fixes bug #347282]
5017
5018 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
5019
5020         * DateTimePicker.cs: Don't set the internal MonthCalendar's
5021         Parent property.  Doing this causes the control to be hosted by
5022         the Form instead of being a popup window.
5023         [Fixes bug #347665]
5024
5025 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
5026
5027         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
5028         at an index higher than Count, just use Add instead of Insert.
5029         [Fixes bug #347669]
5030
5031 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
5032
5033         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
5034         DrawPictureBox, this is handled by Control.PaintBackground.
5035         [Fixes bug #347276]
5036
5037 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
5038
5039         * MenuAPI.cs: When process menu keys return true by default only if menu is
5040         active. Fixes bug #342892.
5041
5042 2007-12-09  Andreia Gaita <avidigal@novell.com>
5043
5044         * Control.cs: check if windows are actually mapped before
5045         trying to zorder. Fixes #342509, #346955
5046
5047 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5048
5049         * ListView.cs:
5050         * ListViewInsertionMark.cs:
5051         * ThemeWin32Classic.cs: Implement the drawing side of the
5052         new 2.0 ListView.InsertionMark property.
5053
5054 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
5055
5056         * CurrencyManager.cs: Silence some debug spew.
5057
5058 2007-12-07  Geoff Norton  <gnorton@novell.com>
5059         
5060         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
5061         masks for our children as well as siblings to avoid having to query
5062         Quartz for this information.
5063         * XplatUICarbon.cs: Implement a delegate based system to pass
5064         information to System.Drawing.  Implement Async methods.  Remove
5065         the hack for the resize thumb and imlpement a transparent Grow Box.
5066         Rework the messaging system to proplery create window's and messages,
5067         fixes TabControl.
5068
5069 2007-12-06  Andreia Gaita <avidigal@novell.com>
5070
5071         * X11Keyboard.cs: Use Xutf8LookupString to support international 
5072         characters under alternate codepages. Patch from #340878
5073
5074 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5075
5076         * ListView.cs: When doing layout computations, set position in the
5077         ListView instances (we cache the position just as .Net does).
5078         * ListViewItem.cs: New internal setter method for Position. Also set
5079         position field as also available in 1.1, since we are going to use it
5080         now in the common case.
5081
5082 2007-12-06  Andreia Gaita <avidigal@novell.com>
5083
5084         * Control.cs: When removing controls, get the actual container
5085         to notify about active control changes. Fixes 341314.
5086
5087 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5088
5089         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
5090
5091 2007-12-05  Andreia Gaita <avidigal@novell.com>
5092
5093         * Control.cs: When updating the zorder, ignore windows that are not
5094         mapped. Fixes #342509
5095
5096 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5097
5098         * ListViewItem.cs: Actually implement serialization on this class.
5099
5100 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
5101
5102         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
5103         LinkCollection. Spaces to tabs, and removed extra tabs.
5104
5105 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5106
5107         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
5108           tests to fail (hopefully).
5109
5110 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
5111
5112         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
5113         the image margin so custom renderers can correctly place it.
5114
5115 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
5116
5117         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
5118         so custom renderers can correctly place it.
5119
5120 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
5121
5122         * Application.cs: Let WM_CHAR messages flow through to controls
5123         hosted in Strips.  [Fixes bug #343972]
5124
5125 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
5126
5127         * ToolStripManager.cs: Guard against an NRE I ran into.
5128
5129 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
5130
5131         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
5132         a Link is manually added to the Links collection, we need to set
5133         its owner, so it can invalidate properly.
5134         [Fixes bug #344012]
5135
5136 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5137
5138         * ListView.cs: When changing ListViewItem.Position (which calls
5139         ListView.ChangeItemLocation), invalidate not only the area
5140         corresponding to the main item, but also to the area occupied
5141         by the items being moved.
5142
5143 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5144
5145         * ListView.cs: When changing the position of a given item,
5146         don't use item bounds, but item areas (which includes the item spacing
5147         between them). Also, use first/last position if the requested
5148         position is outside bounds (as .Net does). Invalidate the previous and
5149         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
5150         in a specific position, instead of directly accessing Items collection
5151         (this is done to get the right item - remember an Item can have a
5152         different position in the grid than in the Items collection).
5153
5154 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
5155
5156         * MessageBox.cs: Calculate text area instead of just top left, this rect 
5157         area will be used in DrawString. Fixes bug #343364.
5158
5159 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
5160
5161         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
5162         screen width. Partially fixes bug #343364.
5163
5164 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
5165
5166         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
5167         code inside recalculate, it makes code more simple.
5168
5169 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
5170
5171         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
5172         between update or add icon. Fixes bug #324344.
5173
5174 2007-11-21  Andreia Gaita <avidigal@novell.com>
5175
5176         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
5177         window manager, since that stretches the drawing area to include
5178         the window decorations, and they get hidden. Reverts r84444 and fixes
5179         #335849 and #342790 (mdi and pdn3 regression)
5180
5181 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5182
5183         * ListView.cs: When setting focused item, try to give focus to the
5184         previous one _only_ if the previous one remains valid. 
5185         Fixes #342504.
5186
5187 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
5188
5189         * Application.cs: Revert r89650, as it broke a common case to fix
5190         an obscure case.  Fixes bug #342606.
5191
5192 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
5193
5194         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
5195
5196 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
5197
5198         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
5199         alignment. [Fixes #324228]
5200
5201 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
5202
5203         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
5204         [Fixes bug #342123]
5205
5206 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
5207
5208         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
5209         it prevent problems when empty captions. [Fixes #342141]
5210
5211 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
5212
5213         * Label.cs: Use Size instead of None.  Fixes bug #342077.
5214
5215 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5216
5217         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
5218
5219 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
5220
5221         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
5222         but there isn't a MdiContainer.
5223         [Fixes bug #342358]
5224
5225 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
5226
5227         * TextControl.cs: Don't recalculate document if the recalc_start and
5228         recalc_end hasn't changed.
5229         [Fixes bug #342505]
5230
5231 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
5232
5233         * DataGridViewTextBoxCell.cs: Removed CWL.
5234
5235 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5236
5237         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
5238
5239 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
5240
5241         * TextControl.cs: Missed some code for bug 341534 to trigger a
5242         recalculation when the font changes.
5243
5244 2007-11-16  Andreia Gaita <avidigal@novell.com>
5245
5246         * Control.cs: When updating the zorder, check if the child to update is
5247         the same control that is set to always be on top (i.e., scrollbars), and 
5248         just put it on top directly. Fixes BadMatch error on pdn3
5249
5250 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5251
5252         * ListView.cs: Throw the needed exceptions for FindNearestItem.
5253
5254 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
5255
5256         * Control.cs: Don't perform a new layout when a label changes its text,
5257         cause label handles its own autosizing.
5258         [Fixes bug #342077]
5259
5260 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5261
5262         * ListView.cs: Implement 2.0 FindNearestItem methods.
5263
5264 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
5265
5266         * ToolStripPanel.cs: Make Join at least add the control to the panel,
5267         even if the rest of what Join does isn't supported.  Add some more
5268         support for vertical toolbars.
5269         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
5270         [Fixes the application breaking parts of bug #341998]
5271
5272 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
5273
5274         * ToolStripItem.cs: When determining if we have a check/image margin,
5275         we need to look at ShowCheckMargin as well as ShowImageMargin.
5276
5277 2007-11-15  Geoff Norton  <gnorton@novell.com>
5278
5279         * XplatUIOSX.cs: Rename to...
5280         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
5281         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
5282
5283 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
5284
5285         * KeysConverter.cs: The default values should be an array of Keys, not
5286         strings.  Also, the array has more values for 2.0.
5287         [Fixes bug #341851]
5288
5289 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
5290
5291         * Application.cs: Change ExecutablePath to use 
5292         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
5293         [Fixes bug #323552]
5294
5295 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
5296
5297         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
5298         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
5299         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
5300         be ignored.  Create a new GetLineEnding that can specify which types of
5301         line endings to look for.  On Insert, only create new lines for \n and \r\n.
5302         [Fixes bug #324274]
5303
5304 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
5305
5306         * TextBoxBase.cs: As we loop through each line changing the font, tell
5307         the document that the line needs to be recalculated.  Fixes bug #341534.
5308
5309 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
5310         [Another round of refactoring]
5311         * Line.cs: Add DeleteCharacters.
5312         * LineTag.cs: Add Delete.
5313         * TextBoxBase.cs: Update to use new methods.
5314         * TextControl.cs: Refactor the Delete* methods.
5315
5316 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
5317
5318         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
5319         the patch. [Fixes #324856]
5320
5321 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5322
5323         * ListView.cs:
5324         * ListViewItem.cs: Add an initial implementation of
5325         2.0 ListViewItem.Position getter.
5326
5327 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5328
5329         * ListView.cs: Add a reordered_items_indices array, to allow us
5330         to have a different sorting than that of Items (the sorting in Items
5331         could not match the actual sorting in screen). This is needed to
5332         implement a pair of 2.0 features.
5333         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
5334         actual position in the ListView grid, since it could have a position
5335         different than its Index (position in ListViewItemCollection). 
5336
5337 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
5338
5339         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
5340         not draw partial lines.
5341         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
5342         LineLimit flag from the base is preserved.
5343         Fixes the windows part of bug #338965.
5344
5345 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
5346
5347         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
5348         so that it can be canceled in KeyPress.
5349         Fixes bug #340078.
5350
5351 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5352
5353         * ListView.cs: In ItemControl, reset mouse-handling related
5354         fields even if we dont' have items (we still should reset them when
5355         we had items but then called Items.Clear). Partially based in a patch
5356         by George Giolfan.
5357         Fixes #338399.
5358
5359 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
5360
5361         * Application.cs: In ProductVersion first try AssemblyFileVersion
5362         before falling back to assembly version. Fixes bug #339787.
5363
5364 2007-11-08  Andreia Gaita <avidigal@novell.com>
5365
5366         * HtmlElement.cs: Implement InnerText setter.
5367         * WebBrowserBase.cs: Implement Navigated event support.
5368         Add flag to track when the browser "document" is ready to be retrieved.
5369         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
5370         Make sure browser document is ready before retrieving it.
5371         Clean up cached objects (document) when moving to a new page through
5372         any of the navigation methods.
5373         Use the new Mono.WebBrowser.INavigation interface to control navigation.
5374         Implement OnNavigated event.
5375
5376 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
5377
5378         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
5379         DrawLinkLabel, this is handled by OnPaintBackground.
5380         Fixes bug #339565, part II.
5381
5382 2007-11-07  Andreia Gaita <avidigal@novell.com>
5383
5384         * Control.cs: Revert r88915. Selecting text on a textbox depends on
5385         getting a Select call on click, so this call needs to be here for now.
5386         Unfixes #325809
5387
5388 2007-11-07  Geoff Norton  <gnorton@novell.com>
5389
5390         * OSXStructs.cs: Add the kEventClassApplication constants.
5391         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
5392         application is deactivated otherwise Menu overlays linger on top of
5393         other application windows.
5394
5395 2007-11-07  Geoff Norton  <gnorton@novell.com>
5396
5397         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
5398         dont support cursors yet anyways.  This allows Reflector to run.
5399
5400 2007-11-07  Geoff Norton  <gnorton@novell.com>
5401
5402         * XplatUIOSX.cs: Implement DragSize.
5403
5404 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5405
5406         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
5407         ItemControl, request the focus, as .Net does. This is needed after 
5408         Control does not request focus anymore when it receives a
5409         WM_LBUTTONDOWN.
5410
5411 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
5412
5413         * Label.cs: Make DrawImage internal so it can be called from Theme code.
5414         Remove the DrawImage call from OnPaint.
5415         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
5416         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
5417         but before we draw the text for DrawLabel and DrawLinkLabel.
5418         Fixes bug #339565.
5419
5420 2007-11-05  Andreia Gaita <avidigal@novell.com>
5421
5422         * Control.cs: Remove select call on click. Fixes #325809
5423
5424 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5425
5426         * ListViewItem.cs: Add 2.0 Position property getter.
5427
5428 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5429
5430         * ListView.cs: Add 2.0 BackgroundImageTiled property.
5431         Also, to make it work properly, change item's BackColor and
5432         BackgroundImageLayout as needed.
5433         * ThemeWin32Classic.cs: Don't fill any background rectangle 
5434         in ListView.ItemControl when drawing items; just let the Control
5435         base implementation fill it.
5436
5437 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5438
5439         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
5440         as well as adding a custom 'dummy' Converter, as .net does.
5441
5442 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5443
5444         * PropertyGridView.cs: When clicking drop-down button,
5445         select an index in the listbox only if our standard values collection 
5446         has one or more items.
5447
5448 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5449
5450         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
5451         property.
5452
5453 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
5454
5455         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
5456         the value is not changed. This ensure a pushed button remains in that
5457         state when clicked again. When switching the value of PropertySort
5458         between Categorized and CategorizedAlphabetical, do not update the
5459         grid items and do not fire a PropertyChangedEvent. When clicking the
5460         sorting buttons, do not modify the PropertySort value when switching
5461         between Categorized and CategorizedAlphabetical but only update the
5462         button state.
5463
5464 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
5465
5466         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
5467         formatting.
5468         * PropertyGrid.cs: Also put Categorized button in pushed state when
5469         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
5470         for help description label.
5471
5472 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5473
5474         * ListView.cs: When calculating the biggest item for a given column,
5475         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
5476         the item's width.
5477
5478 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
5479
5480         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
5481         value for PropertySort on 1.0 profile. PropertySortChanged event
5482         should only be fired on 2.0 profile. Fixed NullReferenceException
5483         in UpdateSortLayout when PropertyGrid contains no items.
5484
5485 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
5486
5487         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
5488         [Fixes bug #338554]
5489
5490 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5491
5492         * ListViewItem.cs: Implement 2.0 IndentCount property.
5493
5494 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5495
5496         * X11Dnd.cs: When sending status in a dnd operation, compare current
5497         effect with the 'allowed' field instead of 'drag_data.Allowed', since
5498         the later is only created when a Winforms application is both the
5499         source and the target, but not when we are the target only.
5500         Fixes part of #324251.
5501
5502 2007-11-01  Geoff Norton  <gnorton@novell.com>
5503
5504         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
5505         order of Z-Order.
5506         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
5507         children out of the drawing view on mac.
5508         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
5509         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
5510         
5511 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
5512
5513         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
5514         on the non-hosted-control part of it shouldn't do anything.
5515         Fixes part of bug #327498.
5516
5517 2007-11-01  Andreia Gaita <avidigal@novell.com>
5518
5519         * WebBrowserBase.cs: revert previous change, resize can be called anytime
5520
5521 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
5522
5523         * Application.cs: When a toolstrip has the keyboard input loop, let messages
5524         it does not use flow through to controls that are hosted in menus.
5525         Same with mouse clicks.
5526         * Form.cs: Don't close all menus on click if the click is on a
5527         control hosted in a menu.
5528         Fixes part of bug #327498, and part of bug #325969.
5529
5530 2007-10-31  Andreia Gaita <avidigal@novell.com>
5531
5532         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
5533
5534 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
5535
5536         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
5537         Addresses an issue raised in bug #336218.
5538
5539 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
5540
5541         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
5542         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
5543
5544 2007-10-30  Andreia Gaita <avidigal@novell.com>
5545
5546         * ContainerControl.cs: Check if the active control is a
5547         child of a removed control and update active_control accordingly.
5548         Fixes #329718
5549
5550 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
5551
5552         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
5553         or the MaxDate.  Fixed bug #337693.
5554
5555 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
5556
5557         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
5558         after calling SetWindowLong for a form, to force an immediate NC refresh.
5559         Fixes first part of bug #325150.
5560
5561 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
5562
5563         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
5564         simple.  Fixes the last part of bug #322668.
5565
5566 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
5567
5568         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
5569         needs to be TopMost as well, or else the MessageBox is under the form.
5570         Patch by George fixes bug #325300.
5571
5572 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5573
5574         * X11Dnd.cs: When starting a new drag operation, reset the static
5575         'dropped' field to false (previously the implementation didn't reset
5576         it and got confused after the first drag).
5577         Fixes #325071.
5578
5579 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5580
5581         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
5582         items instead of re-creating them all. For this purpose we now cache
5583         both CategoryGridEntry items and the GridEntries for the main object's
5584         properties.
5585         * GridItem.cs: Make SetParent method abstract.
5586         * GridEntry.cs: Override the SetParent method (already there, but now
5587         we override it).
5588         Fixes #324866.
5589
5590 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5591
5592         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
5593         depending on its depth (as .Net does). Update the needed values in
5594         MouseDown handler. Also draw the plus/minus rect after the label,
5595         so we don't draw on top of it.
5596
5597 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
5598
5599         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
5600         processed by forms or controls when menu is active. [Fixes #333548]
5601
5602 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
5603
5604         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
5605         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
5606         focus on mouse over.
5607
5608 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
5609
5610         * TextControl.cs: Code cleaning, simplifying.
5611
5612 2007-10-24  Geoff Norton  <gnorton@novell.com>
5613
5614         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
5615         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
5616
5617 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
5618
5619         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
5620         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
5621
5622 2007-10-24  Andreia Gaita <avidigal@novell.com>
5623
5624         * SendKeys.cs: apply jpobst's patch to bug #332409
5625
5626 2007-10-23  Andreia Gaita <avidigal@novell.com>
5627
5628         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
5629         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
5630         for some reason
5631
5632 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5633
5634         * PropertyGridView.cs: If a property has an UIEditor available,
5635         make the drop-down/editor button available only if the property
5636         is _not_ read only.
5637
5638 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5639
5640         * PropertyGridView.cs: Don't make the grid item textbox 
5641         editable when a drop-down control is available, but 
5642         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
5643         true. The same bur the color of the grid item value's label.
5644
5645 2007-10-22  Geoff Norton  <gnorton@novell.com>
5646
5647         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
5648         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
5649         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
5650         driver.  Padd the bottom of all real windows so the resize thumb doesn't
5651         obscure scroll/status bars.
5652
5653 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
5654
5655         * WindowsFormsSection.cs: Implement.
5656
5657 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
5658
5659         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
5660         closed see #325434 patch.
5661
5662 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
5663
5664         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
5665         see #325434 patch.
5666
5667 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5668
5669         * PropertyGridView.cs: When showing the textbox for a grid item,
5670         have two local variables to store the read-only and non-editable
5671         status of a grid item (we were previously using just one variable
5672         to do this, when actually they are slightly different).
5673         Fixes part of #325023.
5674
5675 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5676
5677         * PropertyGridView.cs: When showing a drop-down list, try to get the
5678         values using TypeConverter.ConvertTo (to convert to a string). Fixes
5679         part of #325023.
5680
5681 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5682
5683         * PropertyGrid.cs: When updating a property and populating sub grid
5684         items, remove the previous ones, and invalidate the specific area.
5685         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
5686         area behind a grid item.
5687         * GridItemCollection.cs: Add an internal Clear method, to allow us to
5688         clean the items if needed (specially for controls implementing 
5689         ICustomTypeDescriptor and returning a variable number of properties).
5690         Fixes #324865.
5691
5692 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
5693
5694         * TextControl.cs: Clean up and document the Insert function.
5695
5696 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
5697
5698         * TextControl.cs: Make sure we know our start point for updating the view
5699         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
5700         update the view.
5701
5702 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
5703
5704         * ListView: Couple of corcompare fixes.
5705
5706 2007-10-17  Geoff Norton  <gnorton@novell.com>
5707
5708         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
5709         the title caption of real window.
5710
5711 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
5712
5713         * ErrorProvider.cs: Add the error provider's internal window to a 
5714         containercontrol when the parent changes.  [Fixes bug #329714]
5715
5716 2007-10-17  Geoff Norton  <gnorton@novell.com>
5717
5718         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
5719         When we make a new window; restore the old active window - fixes dialogs.
5720
5721 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5722
5723         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
5724         when modifying a property, and if found then invalidate as
5725         requested.
5726         Fixes part of #324865.
5727
5728 2007-10-17  Geoff Norton  <gnorton@novell.com>
5729
5730         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
5731         highly experimental.  Fixed coordinate translation.  Fixed window locations.
5732         Initial support for clipping. Implemented NC areas and menus.  Support for
5733         launching from command line from Will Johansson (wjohansson@atacomm.com).
5734         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
5735         wjohansson@atacomm.com)
5736         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
5737         Hwnds now track the existence of all of their children for Mac clipping.
5738     * XplatUI.cs: Re-enabled the native driver on the Mac.
5739
5740 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
5741
5742         * Line.cs: Move the InsertString function to here.
5743         * TextControl.cs: Cleanup some duplicate code, move some InsertString
5744         functionality to Line.
5745
5746 2007-10-17  Geoff Norton  <gnorton@novell.com>
5747
5748         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
5749
5750 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
5751
5752         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
5753         always setting value to true.
5754         * Form.cs: When changing AcceptButton, notify new and original button.
5755
5756 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
5757
5758         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
5759         a custom control that implements IButtonControl instead of an actual
5760         button.  [Fixes bug #334244]
5761
5762 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
5763
5764         * Form.cs: Change SelectActiveControl to internal, we need to call it in
5765         MdiWindowManager.
5766         
5767         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
5768         active control when activate a new mdi window.
5769         
5770         [Fixes bug #330495]
5771
5772 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
5773
5774         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
5775         is already added.
5776         [Fixes bug #333617]
5777
5778 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
5779
5780         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
5781         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
5782         so we always recalculate the whole document instead of just the new part.
5783         [Fixes bug #325082]
5784
5785 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
5786
5787         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
5788         when the mouse was to the left of the first character in the line.
5789
5790 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
5791
5792         * TextBox.cs, TextBoxBase.cs: When setting the document's password
5793         character, use the property instead of the variable so that the
5794         UseSystemPasswordChar property is taken into account.
5795         [Fixes bug #333748]
5796
5797 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5798
5799         * FolderBrowserDialog.cs: When a node is right clicked and the "New
5800         folder" contex menu appears, actually add the new folder to it, even
5801         if the node is not currently selected. Still use SelectedNode in case 
5802         there wasn't found a node under the pointer.
5803         Fixes #325452.
5804
5805 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5806
5807         * ListViewItem.cs: When retrieving the focused state, the index check
5808         should be done only when ListView is in virtualmode, as it is an
5809         expensive check for normal mode.
5810
5811 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5812
5813         * ListViewItem.cs: Make the focus state information be stored
5814         in the ListView, not in the items. This is done to match the MS
5815         behaviour for items that are not yet part of a ListView control;
5816         besides that, since just one item can be focused at the same time,
5817         we save a little space in our items.
5818         Fixes part of #331643.
5819
5820 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
5821
5822         * ComboBox.cs: When focus is lost, deselect the text. When setting
5823         text of control, select all text. Do not hide selection when control
5824         does not have focus. Fixes bug #333663.
5825
5826 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
5827
5828         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
5829         instead of ArgumentException when SelectionLength is set to negative
5830         value. Added same check to SelectionStart. Code formatting.
5831
5832 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
5833
5834         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
5835         or SelectionStart. Code formatting.
5836
5837 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5838
5839         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
5840         indicating that there was not a previous drag-and-drop operation going
5841         on.
5842         Fixes part of #325071.
5843
5844 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5845
5846         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
5847         AllowedEffect, don't let the drop operation happen. 
5848         Fixes #32580.
5849
5850 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
5851
5852         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
5853
5854 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
5855
5856         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
5857         is called.
5858
5859 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
5860
5861         * Line.cs: Add a method that finds the tag that contains an x-coord.
5862         * LineTag.cs: Add a method that finds the character at an x-coord using
5863         a binary search, the old way was a linear search.
5864         * TextControl.cs: Change FindCursor to use the above new methods.
5865
5866 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5867
5868         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
5869         value different than AllowedEffect). This should be possible to
5870         indicate that dragging is not possible in some control/area.
5871
5872 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
5873
5874         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
5875         descent internally when font changes instead of outside code being responsible
5876         for setting it.
5877         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
5878         instead of accessing internal variables.
5879
5880 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
5881
5882         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
5883         remove special treatment for ArrangeIcons since it is already arranged.
5884
5885 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
5886
5887         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
5888         the Win32 backend uses Color.
5889         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
5890         Refactor to store a Color instead of a Brush for Color.
5891
5892 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
5893
5894         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
5895         away.  I didn't realize I needed this when I refactored these earlier.
5896
5897 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
5898
5899         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
5900         store a Color structure and use the ResPool for back color instead of
5901         holding onto brushes.
5902
5903 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
5904
5905         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
5906         [Fixes bug #325592]
5907
5908 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
5909
5910         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
5911         to recalculate its size.  Fixes a part of bug #331052.
5912
5913 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
5914
5915         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
5916         button.  Fixes a part of bug #331052.
5917
5918 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
5919
5920         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
5921         the CreateParams.
5922         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
5923         decorations.
5924         [Fixes bug #330986]
5925
5926 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
5927
5928         * TextBoxTextRenderer.cs: Don't make this a static class, as static
5929         doesn't exist in 1.1.  (Thanks jb!)
5930
5931 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
5932
5933         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
5934         class to allow us to use different backends on different platforms.
5935         Linux uses the current [Draw|Measure]String backend.  Windows uses
5936         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
5937         of GDI+.  This leads to better looking text and more accurate measurements
5938         on Windows, fixing many of the reported issues.
5939         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
5940
5941 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5942
5943         * FolderBrowserDialog.cs: When running on Windows,
5944         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
5945         since we must match both "C:" and "C:\" forms. A little hackish, but
5946         works.
5947         Fixes #325247.
5948
5949 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5950
5951         * ListView.cs: When calling EndEdit (after editing an item),
5952         create a new instance of LabelEditEventArgs to keep clean the fields
5953         in case we get a new call to BeginEdit; also do Application.DoEvents
5954         to have focus in synch. This is a fix similar to TreeView's #325244.
5955
5956 2007-10-07  Andreia Gaita <avidigal@novell.com>
5957
5958         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
5959         * WebBrowserBase.cs: Added dialog support, calling the
5960           WebBrowserDialogs classes for each specific dialog type.
5961
5962 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5963
5964         * ListView.cs: When the last item is focused and is removed,
5965         move the focus to the previous item (in Items order). This is what MS
5966         does.
5967         Fixes #330415.
5968
5969 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5970
5971         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
5972         instead of the opposite (RemoveAt call Remove). This is a better
5973         approach since we don't need to to a pair of traversals when using
5974         RemoveAt.
5975
5976 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5977
5978         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
5979         check that the node actually has nodes, and if not, move to the
5980         parent node instead. 
5981         Fixes #325265.
5982
5983 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5984
5985         * TreeView.cs: Move the previous change to the general case (to
5986         call Application.DoEvents in cases where the method was called by
5987         different places).
5988
5989 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5990
5991         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
5992         call Application.DoEvents. This is neccessary when we get a call to
5993         BeginEdit from an AfterLabelEdit handler, because the focus always
5994         goes to the TreeView, even if we try to give it to our
5995         LabelEditTextBox. The call do Application.DoEvents seems to
5996         synchronize the focus, basically.
5997         Fixes #325244.
5998
5999 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6000
6001         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
6002         should be false. This also removes some nasty recursive paths. Fixes
6003         part of #325244.
6004
6005 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
6006
6007         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
6008         state to normal. Also resize window when cascading. Fixes #325433. 
6009
6010 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
6011
6012         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
6013         DefaultForeColor, as drawing empty colored lines isn't very useful.
6014         [Fixes the not drawn lines part of bug #324358]
6015
6016 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
6017
6018         * TextControl.cs: Move Line and LineTag classes into separate files to
6019         make things easier to find.
6020         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
6021         * RichTextBox.cs: Capitalize LineTag.Length property access.
6022         - This is purely an organizational/formatting change, no logic changed. -
6023
6024 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
6025
6026         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
6027         text is empty.
6028
6029 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
6030
6031         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
6032         text is empty.
6033
6034 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
6035
6036         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
6037         prevent calling of OnBackColorChanged. Fixes #325321.
6038
6039 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
6040
6041         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
6042         because control can be disabled because owner is disabled.
6043
6044 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
6045
6046         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
6047         string.Empty, test failed from previous change.
6048
6049 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
6050
6051         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
6052         is null, not String.Empty.  See bug #323038.
6053
6054 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
6055
6056         * TextControl.cs: Change the margins to match MS a little better.
6057         Still not perfect for X11 due to some DrawString differences, but
6058         is still an improvement over the old stuff.
6059         Partially fixes #324467.
6060
6061 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6062
6063         * FolderBrowserDialog.cs: When using MyComputer as 
6064         RootFolder, let absolute paths be considered as valid ones. Also, use
6065         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
6066         for Windows compatibility.
6067         Partially fixes #325247.
6068
6069 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6070
6071         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
6072         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
6073         method, since it causes the dialog to not select folders directly
6074         under the root path (when setting SelectedPath property).
6075
6076 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6077
6078         * TreeNode.cs: When calling Expand/Collapse and need to call 
6079         ExpandBelow/CollapseBelow respectively, take into account
6080         partially visible nodes (previously Expanding/Collapsing
6081         a partially visible node in the bottom was not updating its +- sign).
6082
6083 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6084
6085         * TreeView.cs: When calling Expand on a TreeNode, and we need to
6086         expand nodes below (ExpandBelow), scroll the entire Viewport
6087         area if the node is above it and not visible (instead of scrolling
6088         the area from node's Bottom, which applies only when the node is
6089         visible).
6090         Fixes #325266.
6091
6092 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6093
6094         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
6095         node in the bottom area (as .Net does). This is done to preserve the
6096         scroll position when ExpandAll is called before handle is created for
6097         the 1.1 profile (bottom area, as opposed to top area in 2.0).
6098         Fixes #324103.
6099
6100 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6101
6102         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
6103         bottom area if we are in fact not using the vertical scroll bar.
6104         Fixes #324824.
6105
6106 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
6107
6108         * Control.cs: Comment out a double buffering optimization that doesn't
6109         take into account invalidates created in OnPaint, causing the control
6110         to never be redrawn.  It would take quite a bit of work to work around
6111         this, but I left it commented with an explanation for later possible
6112         optimization.
6113         [Fixes bug #328681]
6114
6115 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
6116
6117         * Control.cs: Ask parent to perform a layout if control is AutoSize and
6118         the text changes.
6119         * RadioButton.cs: Implement GetPreferredSizeCore.
6120         [Fixes bug #328672]
6121
6122 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
6123
6124         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
6125         corcompare stuffs.
6126
6127 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
6128
6129         * Application.cs: Move the sync context stuff to Run instead of RunLoop
6130         so that it doesn't get uninstalled on modal forms.
6131         * Control.cs: Install a sync context when a control is created.
6132         * WindowsFormsSyncronizationContext.cs: Create a private static control
6133         to invoke on.  This is easier than trying to find a created control we
6134         can use.
6135         [Fixes bug #327608]
6136
6137 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
6138
6139         * Application.cs: Install a WindowsFormsSynchronizationContext in the
6140         run loop, and uninstall it when done.
6141         * WindowsFormsSynchronizationContext.cs: Implement.
6142         [Fixes the common case in bug #327608]
6143
6144 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
6145
6146         * DataGridViewCellCollection.cs: Added argument checks for indexers.
6147         Use case-insensitive lookup of column name in indexer. Code
6148         formatting.
6149
6150 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6151
6152         * TreeNode.cs: When collapsing or expanding a node, check whether its
6153         change will affect the visible area (we were previously doing a
6154         IsVisible check, but that check is not enough since children nodes
6155         could be still visible). Fixes part of #325266.
6156
6157 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
6158
6159         * TreeView.cs: Always select the first node when the TreeView gets
6160         focus if there is no currently selected node.
6161         [Fixes bug #324279]
6162
6163 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
6164
6165         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
6166         node being selected is null.
6167         [Patch from Yves Bastide fixes bug #326858]
6168
6169 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6170
6171         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
6172         whether all the parent nodes are expanded.
6173         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
6174         call RecalculateVisibleOrder if all previous nodes are expanded.
6175         Before that we were doing a IsVisible check, but sometimes the node
6176         is not in the visible area, but _should_already be ready, because of
6177         all previous nodes are expanded. Fixes #325259.
6178
6179 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
6180
6181         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
6182         portion of the item is clicked.
6183
6184 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
6185
6186         * TextControl.cs: Do not tell the system to move the cursor if the
6187         textbox isn't focused.  Fixes part of bug #322668.
6188
6189 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
6190
6191         * ComboBox.cs: When there are no items, do not show the dropdown if
6192         the down arrow is clicked.  Fixes part of bug #322668.
6193
6194 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
6195
6196         * ToolStripComboBox.cs: Manually set the size of this control in the
6197         constructor, as it doesn't seem to be the same as DefaultSize.
6198         Fixes a failing monobuild test.
6199
6200 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
6201
6202         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
6203         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
6204
6205 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
6206
6207         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
6208         Desktop.  This lets it work for people who have moved their desktops
6209         from the default location on windows.  For people who have not, both
6210         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
6211
6212 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
6213
6214         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
6215         but when the base constructor sets this, the control is null.  Set it
6216         again in the constructor.  Fixes a failing monobuild test.
6217
6218 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
6219
6220         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
6221         get called.
6222         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
6223         called.
6224
6225 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
6226
6227         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
6228         will handle it themselves.
6229         * ToolStripItem.cs: When deciding what the text of a tooltip should
6230         be, use the Text property instead of the text field.
6231         * ToolStripTextBox.cs: Handle tooltips.
6232         [Fixes bugs #325417 and #325973]
6233
6234 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
6235
6236         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
6237         left click.  Fixes the easy part of bug #325969.
6238
6239 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
6240
6241         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
6242         bug #325406, but set a minimum for StatusStrip to 22 to keep
6243         bug #325390 fixed.  I think this minimum would have been figured
6244         up automatically if the grip was actually a ToolStripItem, but it
6245         currently is not.
6246
6247 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6248
6249         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
6250         as this is apparently the actual value used by .Net. Also apply
6251         ItemPadding in Details view only, and decrease the general width padding,
6252         to have only the needed. This should fix #324340 in Windows too.
6253
6254 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6255
6256         * ListViewItem.cs: Don't Invalidate item if parent is inside
6257         a BeginUpdate/EndUpdate block. This prevents to have differences
6258         between the ListView and items state, as well as avoid some exceptions
6259         there.
6260         * ListView.cs: Make 'updating' field internal.
6261
6262 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
6263
6264         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
6265         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
6266         size if appropriate.
6267         Fixes reopened bug #325414.
6268
6269 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
6270
6271         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
6272         * ToolStripItem.cs: Invalidate before and after our new autosize when
6273         text changes.
6274         Fixes reopened bug #325390.
6275
6276 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
6277
6278         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
6279         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
6280         #325044.
6281
6282 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
6283
6284         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
6285
6286 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6287
6288         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
6289         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
6290         #82734.
6291
6292 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
6293
6294         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
6295         item to select when the ToolStrip is selected.
6296         * ToolStripControlHost: Realign the control when the bounds or visibility
6297         change.
6298         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
6299         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
6300         preferred height.
6301         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
6302         base.OnPaint.  Was causing text not to be drawn.
6303
6304 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
6305
6306         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
6307
6308 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6309
6310         * TreeView.cs: When creating the label edit text box,
6311         set is initially to Visible = false. This is done to
6312         prevent a confusion in the layout which makes it to lose
6313         focus when shown the first time. Fixes part of #82592.
6314
6315 2007-09-13 Andreia Gaita <avidigal@novell.com>
6316
6317         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
6318
6319 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
6320
6321         * ToolStrip.cs: Take Margin into account when calculating preferred
6322         size.  Also, allow preferred size to get smaller than the explicit
6323         size.
6324         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
6325         First step towards fixing bug #82747.
6326
6327 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
6328
6329         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
6330         full row select background over the plus/minus glyph.  Also, turn
6331         off the focus rectangle for full row select since MS doesn't seem
6332         to ever paint it.  [Fixes bug #81839]
6333
6334 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
6335
6336         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
6337         This was causing keyboard opened dropdowns to lose focus.
6338         [Fixes bug #82803]
6339
6340 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
6341
6342         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
6343         ClientRectangle instead.  [Fixes bug #82838]
6344
6345 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
6346
6347         * SplitContainer.cs: We can't reset Visible on every layout because
6348         someone may have set Visible = false explicitly on a SplitterPanel.
6349         Make sure when we switch orientation the SplitterDistance does not
6350         change.  Fixes two failing tests.
6351
6352 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6353
6354         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
6355         TextRenderer, since the latter is only available in 2.0.
6356
6357 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
6358
6359         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
6360         * SplitContainer.cs: Implement FixedPanel layouting.
6361
6362 2007-09-12  Andreia Gaita  <avidigal@novell.com>
6363
6364         * WebBrowserBase.cs: setup shutdown routine
6365
6366 2007-09-12  Andreia Gaita  <avidigal@novell.com>
6367
6368         * Application.cs: Let keyboard events that are targetted 
6369                 to non-mwf windows hosted inside mwf (as in, webbrowser),
6370                 propagate properly. Fixes keyboard handling on the webbrowser.
6371
6372 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6373
6374         * ListView.cs: When handling MouseUp event and we are 
6375         highligting a node with the mouse right button, don't trigger
6376         Before/AfterSelecting event, since we are not actually selecting
6377         the node.
6378
6379 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6380
6381         * TreeView.cs: When editing a node, modify the edit text box
6382         depending on the text length (as you are typing), like MS does.
6383
6384 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
6385
6386         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
6387         Override GetPreferredSizeCore to perform calculations.  Remove custom
6388         autosize logic.  [Fixes bug #82739]
6389
6390 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
6391
6392         * TextBoxBase.cs: Modified should default to false.
6393
6394 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
6395
6396         * Control.cs: Update the anchoring distances even when layout is supspended.
6397         Patch provided by George fixes bug #82805.
6398
6399 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
6400
6401         * Control.cs: Provide a setter for ExplicitHeight.
6402         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
6403         remove the hacks in here for requested_height.
6404         [Fixes bug #82749]
6405
6406 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
6407
6408         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
6409         Maximum to lower that its current Value caused an ArgumentException by setting
6410         the Value to the new Maximum.
6411
6412 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
6413
6414         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
6415         handle moves to the closest tick when it is being dragged.
6416         [Fixes bug #82751]
6417
6418 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
6419
6420         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
6421         can't let them count as real items when calculating where to merge in the
6422         user's items.  [Fixed bug #82786]
6423
6424 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
6425
6426         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
6427         who want to add a menu item directly onto a toolstrip.
6428         [Fixes bug #82775, part II]
6429
6430 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
6431
6432         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
6433         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
6434         don't set it to available.
6435         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
6436         [Fixes bug #82727, part II]
6437
6438 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
6439
6440         * StatusStrip.cs: Change item placement to None if not visible.
6441         * ToolStripItem.cs: Invalidate when InternalVisible changes.
6442         These should have been committed to fix 82723, but I missed them.
6443
6444 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
6445
6446         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
6447         Click, and that it is only called once.
6448         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
6449         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
6450         dropped down.
6451         [Fixes bug #82775]
6452
6453 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6454
6455         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
6456         to match .Net.
6457         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
6458         instead of 8, just like above. Partially fixes #82734.
6459
6460 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6461
6462         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
6463         fixes #82734.
6464
6465         * ListView.cs: Remove extra space between rows in Details view (match
6466         .Net). 
6467         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
6468         the DefaultFont.
6469
6470 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
6471
6472         * Application.cs: Modified ProductVersion to return value of
6473         AssemblyInformationVersion if available, and fallback to assembly
6474         version. Fixes bug #82746. Code formatting.
6475         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
6476         instead.
6477
6478 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6479
6480         * Control.cs: When updating ZOrder for a child control,
6481         take into account the implicit ones (we need it in our controls
6482         using them). Fixes #82642.
6483
6484 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
6485
6486         * ToolStripItem.cs: Add support for animated images.
6487         [Fixes bug #82726]
6488
6489 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
6490
6491         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
6492         visible.  [Fixes bug #82727]
6493
6494 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6495
6496         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
6497         so we repaint using the new size.  [Fixes bug #82723]
6498
6499 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6500
6501         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
6502         option.  [Fixes bug #81779]
6503
6504 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6505
6506         * TreeView.cs: Override HandleClick because the StandardClick style is
6507         set to false.  According to MSDN (and testing), the click events should
6508         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
6509
6510 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6511
6512         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
6513         the border will disappear.  Fixes reopened #82653.
6514
6515 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6516
6517         * Control.cs: If the control is autosize, and its preferred size changes
6518         when it lays out its children, tell its parent so it can be re-layed out.
6519         Fixing some of the fallout from r85433.
6520
6521 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6522
6523         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
6524         and CheckBox share some code.
6525
6526 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6527
6528         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
6529         the TrackBar, not every mouse move.  [Fixed bug #82718]
6530
6531 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6532
6533         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
6534         under 2.0 rendering.  [Fixes bug #82657]
6535
6536 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6537
6538         * TreeView.cs: If we found a TreeNode to display a context menu, but
6539         it doesn't have one to show, let the TreeView display its menu
6540         instead.  [Fixes bug #82680]
6541
6542 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6543
6544         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
6545         OnPaintInternal instead.  Give the internal TextBox a Border property
6546         so it can draw itself more correctly.  [Fixes bug #82653]
6547
6548 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
6549
6550         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
6551
6552 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
6553
6554         * ComboBox.cs: Adjust combobox button state to reflect current state when
6555         back to enabled = true. Fixes first issue of #82654.
6556
6557 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
6558
6559         * Control.cs: Fix last patch regression, prevent forms to update zorder when
6560         setting visible property.
6561
6562 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
6563
6564         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
6565         fix zorder for controls initially created as non visible. Fixes #82667.
6566
6567 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
6568
6569         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
6570         mimic win32 look. Fixes #82656.
6571
6572 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
6573
6574         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
6575         Stubs for new net 3.5 classes.
6576
6577 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6578
6579         * ListViewItem.cs: In ListViewItemCollection operations calculate
6580         Layout for owner as well as invalidate it. Fixes part of #82642.
6581
6582 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
6583
6584         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
6585         when returning Enabled.  [Fixes bug #82651]
6586
6587 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
6588
6589         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
6590
6591 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6592
6593         * ListView.cs: Put item padding info in a single place
6594         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
6595         columns again.
6596         * ThemeWin32Classic.cs:
6597         * Theme.cs: Likewise.
6598
6599 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6600
6601         * ListView.cs: When a ListViewSubItem instance is invalidated,
6602         invoke Invalidate on parent ListViewItem, not parent ListView.
6603         Fixes #81570.
6604
6605 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
6606
6607         * ListView.cs, ListViewItem.cs: corcompare stuffs.
6608
6609 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
6610
6611         * BindingMemberInfo.cs: Implement == and != operators.
6612
6613 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
6614
6615         * HtmlElementEventArgs.cs: Implement properties.
6616
6617 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
6618
6619         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
6620
6621 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
6622
6623         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
6624         Add (string,string,string) to implement the imagekey.  It turns out, we
6625         use the requested imagekey whereas .Net does not.  So I broke ours to match
6626         theirs.  :(
6627
6628 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
6629
6630         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
6631
6632 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
6633
6634         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
6635
6636 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
6637
6638         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
6639         up-to-date. Fixes bug #82618.
6640
6641 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
6642
6643         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
6644         reflect document changes. Fixes #82367.
6645
6646 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6647
6648         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
6649         as well as add new ones. This should make work the BackgroundImage
6650         property for ListView again.
6651
6652 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
6653
6654         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
6655         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
6656         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
6657
6658 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
6659
6660         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
6661         IsKeyLocked.
6662
6663 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
6664
6665         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
6666         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
6667
6668 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
6669
6670         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
6671         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
6672
6673 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
6674
6675         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
6676
6677 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
6678
6679         * GridEntry.cs: Implement GetService.
6680
6681 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
6682
6683         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
6684         for label editting, make sure we focus back on the TreeView.
6685         [Fixes bug #82590]
6686
6687 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6688
6689         * ListView.cs: Add some 2.0 overrides.
6690
6691 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
6692
6693         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
6694         because getter dont returns right value before handle creation. Thanks 
6695         to George. Fixes #82569.  
6696
6697 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
6698
6699         * Theme.cs: Revert last patch, it causes error under win32. 
6700
6701 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
6702
6703         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
6704         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
6705         logical Desktop rather than the physical file system location. Fixes #82603. 
6706
6707 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
6708
6709         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
6710         for the patch. Fixes #82568.
6711
6712 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6713
6714         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
6715         methods.
6716
6717 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6718
6719         * ListViewInsertionMark.cs: New stubbed class.
6720
6721 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
6722
6723         * FolderBrowserDialog.cs: When adding folder, immediately create the
6724         directory with temporary name and rename the directory when editing
6725         finishes. This matches MS. Ensure the node for the new folder is 
6726         selected and LabelEdit is disabled, when editing is either finished
6727         or cancelled.
6728
6729 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
6730
6731         * TreeView.cs: When editing label of node, ensure node is visible.
6732
6733 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
6734
6735         * PropertyGridView.cs: Set the value only if it has changed.
6736
6737 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6738
6739         * ListView.cs: Some more code refactoring to add support sorting
6740         with groups (now for Details view). Remove unused code also.
6741
6742 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
6743
6744         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
6745         Not a big fan of reacting immediately to a field in an EventArg, but that's
6746         the way it's done.  (This is part of the previous commit that got left out.)
6747
6748 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
6749
6750         * FolderBrowserDialog.cs: Removed need for separate description field.
6751         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
6752         has focus when dialog box is displayed again, regardless of what
6753         button was pressed the previous time. Set RootFolder and SelectedPath
6754         each time dialog box is displayed. This ensures the treeview is
6755         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
6756         when it does not have focus. Added support for more special folders.
6757
6758 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
6759
6760         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
6761         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
6762         it resets the edit_args.
6763         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
6764         [Fixes bug #82577]
6765
6766 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
6767
6768         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
6769         button to match MS. Provide more meaningful exception message for
6770         invalid RootFolder value. Use zero-length string when SelectedPath
6771         is set to null. Allow non-rooted paths in SelectedPath, but ignore
6772         them in FolderBrowserTreeView. Allow folders to be created in
6773         RootFolder. Fixes bug #82576.
6774
6775 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6776
6777         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
6778         since we need to take into account the group headers and the margin
6779         between them.
6780         * ListViewGroup.cs: Add a rows field to store the number of rows per
6781         group.
6782
6783 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6784
6785         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
6786           Anyways, let's just follow the lead.
6787
6788 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
6789
6790         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
6791         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
6792         controls in GetPreferredSizeCore.
6793         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
6794         [Fixes bug #82488]
6795
6796 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
6797
6798         * PrintDialog.cs: Need to instantiate the form variable here too.
6799
6800 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6801
6802         * ListView.cs: Do some reorganization to support sorting in groups,
6803         by doing the layout sequentially in ListView.Items. Also add support
6804         for the Default Group, which should be available for items with no
6805         group assigned.
6806         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
6807         for storing layout info also.
6808         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
6809         collection, as well as providing internal members to do a traversal
6810         including the default group (needed when doing layout/drawing).
6811         * ThemeWin32Classic.cs: When drawing group headers use internal
6812         ListViewGroupCollection members to take into account the default
6813         group.
6814
6815 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
6816
6817         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
6818
6819 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
6820
6821         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
6822         been created.  If handle is created, we want arror keys.  If we are editing
6823         a node, we want things like enter, esc, home, end, page up, page down.
6824         Allows Esc to work for FolderBrowserDialog.
6825
6826 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
6827
6828         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
6829         they close when ESC is pressed.  Thanks Andy!
6830
6831 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
6832
6833         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
6834         This way we can tell if this is a CommonDialog provided with mono, or one
6835         that is being implemented outside by a developer.  If it is an external one,
6836         the developer is responsible for showing their own form.  We were showing
6837         our blank form after the developer showed his.
6838         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
6839         PageSetupDialog.cs: Instantiate form variable in our constructor.
6840         [Fixes bug #82531]
6841
6842 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
6843
6844         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
6845         and always return true.  [Fixes bug #81616]
6846
6847 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
6848
6849         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
6850         TextBox.  [Fixes bug #82549]
6851
6852 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
6853
6854         * FileDialog.cs: When Save/Open is clicked and no filename is selected
6855         or entered then do not close the dialog. Fixes bug #82539. Removed
6856         CWLs.
6857
6858 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
6859
6860         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
6861         code to this method. It is calling every time filter changes. This method
6862         will help to fix the bug #80887.
6863
6864 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
6865
6866         * CheckBox.cs: Implement AutoSize calculation.
6867
6868 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
6869
6870         * CheckBox.cs: Use new 2.0 rendering for 2.0.
6871         * Theme.cs: Method declarations for 2.0 rendering path.
6872         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
6873
6874 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6875
6876         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
6877
6878 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6879
6880         * ListViewGroupCollection.cs: Implement AddRange the right way, to
6881         only call Redraw on the parent one time.
6882
6883 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6884
6885         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
6886           GetClipboardContent.
6887         * DataGridViewCell.cs: Implemented GetClipboardContent,
6888           GetEditedFormattedValue, GetFormattedValue.
6889         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
6890
6891 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
6892
6893         * TableLayoutStyleCollection.cs: corcompare fix.
6894
6895 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6896
6897         * DataObject.cs: Implemented retrieval of convertible / not convertible
6898           objects.
6899
6900 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
6901
6902         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
6903         ourselves.  This ensures the entire old bounds are repainted, in case our new
6904         size is smaller.  [Fixes bug #82518]
6905
6906 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
6907
6908         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
6909         flag to make fast handle of mouse events, without this the mouse move is
6910         handled in some manner, whether it is a mouse move or not. Fixes #81588.
6911
6912 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6913
6914         * ListView.cs: When doing layout calculations don't use a ref
6915         param to keep the current item; instead use its Index value (this 
6916         is specially important when doing the layout with Groups
6917         and Items being sparse). Also don't take into account items added to
6918         the Group but not yet added to the main ListView.Items collection.
6919
6920 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6921
6922         * ListViewGroupCollection.cs: Forgot to mimic an issue
6923         in the indexer (don't assign the ListView owner for new values).
6924
6925 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6926
6927         * ListViewGroupCollection.cs: Make the string indexer use
6928         the int based indexer to re-use code, instead of duplicate the code.
6929         Also Redraw as needed and take into account null values.
6930
6931 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
6932
6933         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
6934         [Fixes bug #82481]
6935
6936 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
6937
6938         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
6939         when other buttons are clicked or navigated to.
6940
6941 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6942
6943         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
6944           it's XplatUIX11 that attaches them.
6945
6946 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6947
6948         * DataGridView.cs: If a column has been added, recreate the editing row.
6949           Fixes #82226.
6950
6951 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6952
6953         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
6954           of the tag to draw. Makes disappearing text show up again.
6955
6956 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6957
6958         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
6959           Contents. Fixes #82487.
6960
6961 2007-08-19  Andreia Gaita  <avidigal@novell.com>
6962
6963         * Added HtmlElement.cs, HtmlElementCollection.cs, 
6964           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
6965           
6966 2007-08-19  Andreia Gaita  <avidigal@novell.com>
6967
6968         * BindingSource.cs: Implement this, dispose and getenumerator.
6969         * DataGridViewRowCollection.cs: Move the InvalidOperationException
6970         out of AddInternal, throw it only on public Add calls. The 
6971         UsingWebBrowser sample was blowing up with this when setting the
6972         DataSource after adding DataBindings, so it's likely that .net
6973         only throws this exception when Add is called directly. 
6974         
6975         * ToolStripControlHost.cs: Return the hosted control's text
6976         property, and not the ToolStripItem one (it would always return
6977         the initial value).
6978         
6979         * HtmlDocument.cs: Implement GetElementById and All
6980         * WebBrowser.cs: Remove exception on set_DocumentStream.        
6981
6982 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
6983
6984         * Form.cs: Fix the max and min value for opacity (0~1).
6985
6986 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
6987
6988         [Fixes #80118]
6989         * DataGridTableStyle.cs: Default header font is now null, on getter it 
6990         returns datagrid font when is null. On setter permits null.
6991
6992         * DataGrid.cs:
6993         - When ResetHeaderFont set header font to null.
6994         - On EndInit set grid_style.DataGrid.
6995
6996 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
6997
6998         * TabControl.cs: Fix regression in default padding x.
6999
7000 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
7001
7002         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
7003
7004 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
7005
7006         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
7007         not 2. Fixes #82229.
7008
7009 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
7010
7011         * TabControl.cs: Fix tab size when image height is less than text height.
7012         Partially fixes #81837.
7013
7014 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
7015
7016         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
7017         "alt + tab". It works only for Win32, for X11 theres no way to remove window
7018         from taskbar and keep it on "alt_tab". Fixes #81722.
7019
7020 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
7021
7022         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
7023         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
7024         Fixes #80877 and #79418.
7025
7026 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
7027
7028         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
7029         between position and one of the screen borders. Fixes #82349.
7030
7031 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
7032
7033         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
7034         the MessageBox in the taskbar. Fixes #82457.
7035
7036 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
7037
7038         * MessageBox.cs: Fix form size when icon is set and text height is bigger
7039         than icon. Fixes #82468.
7040
7041 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7042
7043         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
7044         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
7045           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
7046           Refactored HandleNCCalcSize somewhat to avoid code duplication.
7047         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
7048           FormBorderStyle to decide if we're calculating a new size from the
7049           client size or not. CreateParams: Don't fake tool windows, only the X11
7050           backend manages toolwindows manually.
7051
7052 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
7053
7054         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
7055         ObjectDisposedException.
7056
7057 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
7058
7059         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
7060         in OnLoad should not have any effect.  [Fixes bug #82470]
7061
7062 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
7063
7064         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
7065         paint for controls that create their own ToolTipWindow instead of
7066         going through ToolTip.
7067
7068 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
7069
7070         * ToolTip.cs: Make Hide internal instead of public to match MS API.
7071
7072 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7073
7074         * ListViewGroupCollection.cs: Use generic List instead of an
7075         ArrayList, since this collection is 2.0 only.
7076
7077 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
7078
7079         * ToolTip.cs (Hide): Made public to make the build work (should
7080         this not be public?).
7081
7082 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
7083
7084         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
7085         ToolTipWindow.
7086         * ToolTip.cs: Add an internal Visible property to facilitate transition.
7087
7088 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
7089
7090         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
7091         PopupEventHandler.cs: Make these internal for 1.1.
7092         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
7093         use ToolTipWindow internals.
7094         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
7095         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
7096
7097 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7098
7099         * X11Dnd.cs: Add a null check.
7100
7101 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7102
7103         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
7104           nothing else succeeds. Fixes #82453.
7105
7106 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7107
7108         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
7109           rectangle if we're painting to another window than the one the paint
7110           message was generated on. Simplify the code somewhat, which makes
7111           PaintEventEnd also simpler.
7112
7113 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7114
7115         * Control.cs: When changing parent of a form, let the form decide whether
7116           XplatUI.SetParent should be called or not.
7117         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
7118           recreating the handle. If the new parent's handle isn't created, don't
7119           recreate our handle, just destroy it. CreateParams: Check if the
7120           parent's handle is created before fetching it.
7121
7122 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7123
7124         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
7125           Update calls to PaintEventStart/End to take a Message argument.
7126         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
7127           take a Message argument.
7128         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
7129           Message argument, and handle the case where we don't paint to the window
7130           for which the paint message was generated.
7131
7132 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7133
7134         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
7135           Marshal.GetLastWin32Error. Plug nasty memory leak in
7136           PaintEventStart/End, we were creating a DC we weren't releasing.
7137
7138 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7139
7140         * ListView.cs: Add Groups support in Details view. Also have a small
7141         method to do the layout of the group header. Don't use a separate
7142         method to do the groups calculation in Icons view, since our methods
7143         are now a little simpler.
7144         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
7145         `Bounds'.
7146         * ThemeWin32Classic.cs: Likewise.
7147
7148 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
7149
7150         * Application.cs: Add FilterMessage method and rework our message loop
7151         logic to use it.
7152
7153 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
7154
7155         * Application.cs: Add some methods and stub a few methods that are
7156         pretty much never used.
7157
7158 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
7159
7160         * TreeNode.cs: Add some serialization methods.
7161
7162 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7163
7164         * ListView.cs: In ListViewItemCollection have a 
7165         'is_main_collection' field to not modify ListViewItem.ListView
7166         when using it as ListViewGroup.Items (and not ListView.Items)
7167         and also don't modify selection state (.Net behaviour). 
7168         Instead, set group for items contained in a ListViewGroup.Items collection.
7169         * ListViewItem.cs: Simplify some code in Group setter.
7170         * ListViewGroup.cs: use the new .ctor to pass the current instance
7171         to the ItemsCollection.
7172         * ListViewGroup.cs: Set the ListView property for ListViewGroup
7173         instances when adding/removing. Also make Remove use RemoveAt, which
7174         should perform better.
7175
7176 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
7177
7178         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
7179         that crept into the 1.1 profile.
7180
7181 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
7182
7183         * ToolBarButton.cs: Implement ImageKey.
7184
7185 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
7186
7187         * ToolBar.cs: Implement ScaleControl/ScaleCore.
7188
7189 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7190
7191         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
7192           created, it might have gotten destroyed since we last checked. Fixes
7193           #82405.
7194
7195 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
7196
7197         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
7198         tooltip will hide when mouse is moved off the control.
7199         [Fixes bug #82407]
7200
7201 2007-08-11 Andreia Gaita <avidigal@novell.com>
7202
7203         * WebBrowserBase.cs, WebBrowser.cs: add implementation
7204         using Mono.Mozilla for loading and navigating webcontrol
7205         with xulrunner.
7206         The initial implementation was done on 
7207         /trunk/mozembed/tests/browser , and copied here.
7208
7209 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
7210
7211         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
7212         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
7213
7214 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7215
7216         * DataGridView.cs: Add support for an editing row. Fixes #82226.
7217           RowTemplateFull: throw an exception if a column doesn't have a template.
7218         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
7219           add the row just before it.
7220         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
7221           selected.
7222         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
7223           DataGridView field to be able to reach the grid's editing row.
7224
7225 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
7226
7227         * ToolTip.cs: If the control's handle hasn't been created when it has a
7228         tooltip set on it, don't check to see if we need to show the tooltip.  This
7229         check was causing the control's handle to be created.
7230         [Fixes bug #82399]
7231
7232 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
7233
7234         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
7235                                         1.1             2.0
7236         Handle Not Created      -1              0
7237         Handle Created          0               0
7238         [Fixes bug #82371]
7239
7240 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
7241
7242         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
7243         [Fixes bug #82348]
7244
7245 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
7246
7247         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
7248         * ToolTip.cs: Implement some properties and owner draw.
7249
7250 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7251
7252         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
7253           show them again, since setting visibility causes a paint, causing an
7254           endless loop (instead use a temporary and set it all when it's known if
7255           they should be shown or not). Fixes #79265.
7256
7257 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7258
7259         * DataGridView.cs: Only do a full column/row selection if a header was
7260           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
7261           isn't pressed, deselect everything before selecting something.
7262
7263 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7264
7265         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
7266           behaviour according to bug #81075 - they are returned in the order they
7267           are selected. Fix HitTest to check if the point is within any of the
7268           headers. Allow for row/column selection when in ColumnHeader or
7269           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
7270           the row and column to call when their selected state changes, and
7271           updated selected_[rows|columns] whenever SetSelected* is called.
7272         * DataGridViewBand.cs: Initialize isRow correctly. Call
7273           SetSelected[Row|Column]CoreInternal when the selected state changes, and
7274           add a SelectedInternal to avoid StackOverflows.
7275         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
7276           ReadOnly no matter what.
7277         * DataGridViewSelectedColumnCollection.cs,
7278           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
7279           the items in reverse order (just as MS does...)
7280
7281 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
7282
7283         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
7284         itself, not part of a mnemonic.  [Fixes bug #82378]
7285
7286 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7287
7288         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
7289         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
7290           the DGV, the column, the row, or the cell itself is readonly.
7291
7292 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
7293
7294         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
7295         OSVersion.Platform.
7296         * FileDialog.cs: Same.
7297         * TextRendered.cs: Same.
7298         * FolderBrowserDialog.cs: Same.
7299         * TextBoxBase.cs: Same.
7300         * Application.cs: Same.
7301         * Cursors.cs: Same.
7302         * ThemeClearLooks.cs: Same.
7303
7304 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
7305
7306         * XplatUI.cs: Added RunningOnUnix property to be used by controls
7307         instead of duplicating these checks everywhere.
7308         * FileDialog.cs: Use case-insensitive comparison for populating the
7309         DirComboBox when not running on unix. Fixes bug #82385.
7310         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
7311         "Look in".
7312
7313 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7314
7315         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
7316           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
7317           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
7318           cell and column selection with ctrl and shift pressed. Call the correct
7319           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
7320           the corresponding virtual method (PaintBackground to paint background,
7321           etc).
7322         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
7323           either the column, row or the cell itself is selected.
7324         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
7325           OnRowsAdded.
7326         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
7327           here. When the row is selected, don't select all cells. Each cell now
7328           queries the row to see if the row is selected.
7329
7330 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7331
7332         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
7333           SelectionMode.
7334
7335 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7336
7337         * ListView.cs: In ListViewItemsCollection check that owner is
7338         not null before trying to access it (this happens quite often
7339         using Groups). Also don't duplicate calls by calling CollectionChanged
7340         method.
7341
7342 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
7343
7344         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
7345         when we are dismissed to clear keyboard mnemonics.
7346         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
7347         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
7348         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
7349         was activated by keyboard or the OS tells us to always draw them.
7350         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
7351         [Fixes bugs #82376, #82377]
7352
7353 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
7354
7355         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
7356         shot at having it because Alt was pressed.
7357         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
7358         the first real menu item.
7359         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
7360         a mnemonic if Text is null.
7361         [Fixes bug #82374]
7362
7363 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7364
7365         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
7366         search do check whether the item is already contained in the
7367         collection or not; instead check if the owner of the item is the same
7368         as ours. Also, remove a redundant check in the same method. 
7369
7370 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
7371
7372         * Control.cs: Allow the clip region to be set back to null.
7373         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
7374         [Fixes button still showing up in bug #82370 when Show Through is turned off]
7375
7376 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7377
7378         * GridEntry.cs: Add a null check.
7379         * PropertyGrid.cs: When checking for existing grid entries, ignore category
7380           entries. Fixes #82297.
7381
7382 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
7383
7384         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
7385         for 2.0.
7386
7387 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
7388
7389         * ListBox.cs: Implement ScaleControl.
7390
7391 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7392
7393         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
7394           have a menu strip.
7395         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
7396           parent has a menu strip. Fixes #81689.
7397
7398 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7399
7400         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
7401           moments, so apply some fuzzy logic to determine if the mouse is still
7402           inside a control or not. Fixes #82288 (for the third time).
7403
7404 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7405
7406         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
7407           Don't create the child if it has been disposed already (may happen if
7408           the user closes the form the Load event).
7409
7410 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7411
7412         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
7413           #82288.
7414
7415 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7416
7417         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
7418           might call us after we've been destroyed, in which case our own private
7419           parent field is null. Fixes #82326.
7420
7421 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
7422
7423         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
7424         check for setting the dropdown's owner.
7425
7426 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
7427
7428         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
7429         before removing system menu items.
7430
7431 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
7432
7433         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
7434         folding.
7435         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
7436         folding.
7437         * ToolStrip.cs: Add a null check to mnemonics.
7438         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
7439         no ConnectedArea.
7440         [Fixes most of bug #81689]
7441
7442 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7443
7444         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
7445
7446 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7447
7448         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
7449
7450 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7451
7452         * DataGridViewCell.cs: EditType: returns
7453           DataGridViewTextBoxEditingControl always.
7454
7455 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
7456
7457         * TextRenderer.cs: Remove the LineLimit string format flag from the
7458         DrawString fallback method so that things like buttons that aren't
7459         tall enough to draw a full line will still draw part of the text.
7460         [Fixes part of bug #82272]
7461
7462 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7463
7464         * DataGridView.cs: Implemented AutoResizeColumn(s).
7465         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
7466           according to the Alignment.
7467         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
7468           Implement alignment and padding when painting.
7469         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
7470           exists.
7471         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
7472           way.
7473         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
7474           a column is added.
7475
7476 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
7477
7478         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
7479         which is internal.
7480
7481 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
7482
7483         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
7484         hide GetPreferredSize from public API.
7485         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
7486         * ToolStripItem.cs: Stub out drag and drop methods and events.
7487         * ToolStripManager.cs: Stub out Save/LoadSettings.
7488         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
7489         * ToolStripPanel.cs: Fix corcompare error.
7490         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
7491         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
7492         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
7493
7494 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
7495
7496         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
7497         bounds height instead of PreferredHeight.  Puts things back the way 
7498         they were for height while still fixing the width.  Fixes broken unit
7499         tests.
7500
7501 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7502
7503         * Binding.cs: Implement 2.0 constructors and add a null check.
7504
7505 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7506
7507         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
7508           and fix row index (off by one).
7509
7510 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7511
7512         * PropertyGridView.cs: Remove debug output.
7513
7514 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7515
7516         * Control.cs: We need to reset the is_created flags when the handle is
7517           destroyed. Fixes #82187.
7518         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
7519           client coordinates if the window doesn't have a parent.
7520           Win32GetParent returns the parent or the owner, and for top-level
7521           windows with no parent (but with an owner) we were calculating the
7522           location from the location of the owner.
7523         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
7524           form has been disposed.
7525         * MdiClient.cs: Add a null-check.
7526
7527 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
7528
7529         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
7530         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
7531         so we can provide an implementation that returns the current width
7532         and preferred height.  Allows anchor = right to work with TextBox 2.0.
7533         [Fixes bug #82233]
7534
7535 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7536
7537         * ListView.cs: Add support for navigating items in Groups mode, by
7538         creating a big matrix containing all rows and cols of all groups. When
7539         are in other mode than Details, pressing Up should have a similar
7540         behaviour as that one of Down (moving to the next available column if
7541         current one doesn't have an item in the requested row). Also, don't
7542         proceed to use groups if ShowGroups is false.
7543         * ListViewGroup.cs: Add an internal int field to store the starting
7544         row of the group (used by the big matrix used for navigating the
7545         ListView).
7546         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
7547         false.
7548
7549 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
7550
7551         * ToolStripDropDown.cs: When we do Show, start with the 
7552         DefaultDropDownDirection, but if our popup menu is going to off-screen,
7553         modify the direction to keep it on screen.  [Fixes bug #82210]
7554
7555 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
7556
7557         * FileDialog.cs: Accept any FilterIndex value, and store it
7558         unmodified. When FilterIndex is less than 1, or greater than number
7559         of filters, then default to first filter. Only add filter extension to
7560         file if user did not specifiy an extension. When type of dialog is
7561         OpenFileDialog and DefaultExt is set, then only use filter extension
7562         if: CheckFileExists is true and no file wih the default extension
7563         exists, or CheckFileExists is false, and user specified file does not
7564         exist. When CheckFileExists is true, then add first extension of 
7565         selected filter that matches existing file. Perform checks for
7566         existing file, overwrite and create after extension has been added to
7567         file name. When CheckFileExists is true and type is SaveFileDialog,
7568         then only consider first filter extension if DefaultExt is set.
7569         When CheckFileExists is true, then ignore DefaultExt if file with that
7570         extension does not exist. Also perform check for existing file when
7571         type is SaveFileDialog. Changed some field to constants.
7572
7573 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7574
7575         * ListView.cs: Take into account the region used by header
7576         control when doing the vertical scroll (this way we invalidate
7577         the precise area, and don't get any dirty one).
7578
7579 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
7580
7581         * FileDialog.cs: Check for valid filterIndex on button open/save. 
7582         Fixes #82184.
7583
7584 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7585
7586         * ListView.cs: Update some layout calculations in details view
7587         and clean the code in a pair of assignations.
7588
7589 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
7590
7591         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
7592         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
7593         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
7594         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
7595
7596 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
7597
7598         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
7599         performance of thread-safe Graphic methods.  (Thanks rolf!)
7600
7601 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7602
7603         * ListView.cs: When doing the layout calculations, don't calculate
7604         scroll bars before handle is created. This is unnecessary and also
7605         calculating them before handle creation item causes a number of random
7606         bugs (which begin to appear after Chris' big patch for handle creation
7607         fixes). 
7608
7609 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
7610
7611         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
7612         for things that don't have a Graphics object.  Currently, things just use
7613         the static Hwnd.bmp_g which is not thread safe.
7614
7615 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7616
7617         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
7618           dialog. Fixes #82187.
7619
7620 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7621
7622         * DataGridViewElement.cs: Initialize state.
7623         * DataGridView.cs: Forward a few Mouse events to cells. Add
7624           GetRowInternal and GetCellInternal that doesn't unshare rows.
7625           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
7626           don't use the index, but look it up. Add
7627           DataGridViewControlCollection.RemoveInternal to remove controls
7628           that Remove won't remove (scrollbars, edit control).
7629         * DataGridViewColumn.cs: Initialize State correctly.
7630         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
7631           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
7632           implementing this.
7633         * DataGridViewRowCollection.cs: Implemented shared rows.
7634         * DataGridViewRow.cs: Throw exceptions as MS do.
7635         * DataGridViewCell.cs: A few properties are implemented by a
7636           Get<Property> method, so move implementation there and remove the
7637           NIEX in the method. Add a bunch of OnXInternal that DataGridView
7638           calls when necessary.
7639         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
7640           complicates matters.
7641         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
7642           unshare any rows.
7643
7644 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
7645
7646         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
7647         the children controls.  Instead, we will just set up the proper docking for the
7648         children controls so we don't have to worry about it.  [Fixes bug #82188]
7649
7650 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
7651
7652         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
7653         canceling and correct Before/AfterLabelEdit properties as layed out in bug
7654         81847.  [Fixes bug #81847]
7655
7656 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
7657
7658         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
7659         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
7660         an explicit size based on the design-time size of the text.  Since our fonts
7661         may not match this explicit size, we tend to cut off the ends of people's labels.
7662
7663 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
7664
7665         * Menu.cs: Add some missing methods to MenuItemCollection.
7666
7667 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7668
7669         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
7670         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
7671         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
7672         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
7673         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
7674         * DataGridViewElement.cs: State defaults to Visible.
7675         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
7676         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
7677
7678 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7679
7680         * Control.cs: Minor 1.1 corcompare fix.
7681
7682 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
7683
7684         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
7685         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
7686
7687 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7688
7689         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
7690           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
7691           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
7692           DataGridViewSelectedColumnCollection.cs,
7693           DataGridViewSelectedRowCollection.cs: Corcompare work.
7694
7695 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
7696
7697         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
7698         it is autoset by VS2005 designer and the effect is barely noticeable.
7699
7700 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
7701
7702         * TreeView.cs: Implement HitTest.
7703
7704 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7705
7706         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
7707           manually adding and removing the control from the Controls
7708           collecftion.
7709         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
7710           EditingControlInternal property that tracks the editing control.
7711           Always keeping the scrollbars in the Controls collection, as MS
7712           testing confirms is the right behaviour.
7713
7714 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7715
7716         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
7717           according to MSDN and new test.
7718
7719 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
7720
7721         * TreeNode.cs: Implement ToolTipText.
7722         * TreeView.cs: Implement tooltips, NodeMouse* events.
7723
7724 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
7725
7726         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
7727
7728 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
7729
7730         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
7731         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
7732
7733 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
7734
7735         * Control.cs, Form.cs, ContainerControl.cs,
7736         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
7737         for misc properties.
7738
7739 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
7740
7741         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
7742         * TreeView.cs: Implement StateImageList.
7743
7744 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7745
7746         * Form.cs: Don't check if the current form is the active form before
7747           activating it. Fixes #81904.
7748
7749 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7750
7751         * Form.cs: Don't check if the current form is the active form before
7752           activating it. Fixes #81904.
7753
7754 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7755
7756         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
7757
7758 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7759
7760         * Form.cs: Don't try to position the form after loading if the form was
7761           disposed. Fixes #81969.
7762
7763 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7764
7765         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
7766           properties. Had to change ToolBar into ToolStrip, which required a
7767           few #ifs.
7768
7769 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7770
7771         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
7772           resized, fixes part of #79829 (vertical lines in toolbar).
7773           PropertyGrid: Refactored Populate* to something that's easier to
7774           follow at least for me, as well as splitting it up into several new
7775           methods, required to update only subitems when something has
7776           changed by a popup editor or listbox. Don't use events to check
7777           when any values are changed, since the events are unreliable (we're
7778           changing the objects the events are registered with, and if the
7779           event handling requires the objects to be immutable (objects stored
7780           in hashtables for instance), the events will never be raised).
7781         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
7782           everytime we change a value, since events are unreliable.
7783           DropDownButtonClicked: For the same reason don't compare objects to
7784           check if it has changed or not, it would require all objects to
7785           derive Equals. Fix dialog location on windows, MS is doing weird
7786           things when creating parented forms.
7787         * GridEntry.cs: Add a SelectedObject setter.
7788
7789 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
7790
7791         * TreeNode.cs: Add some corcompare attributes.
7792         * TreeNodeCollection.cs: Implement 2.0 stuffs.
7793         * TreeView.cs: Implement some 2.0 stuffs.
7794
7795 2007-07-18  Andreia Gaita  <avidigal@novell.com>
7796
7797         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
7798         for moma.
7799
7800 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
7801
7802         * ListBox.cs: Implement custom tab offsets.
7803
7804 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7805
7806         * ToolStripContentPanel.cs: Support System renderer.
7807         * ToolStripControlHost.cs: Set RightToLeft to default to No.
7808
7809 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7810
7811         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
7812
7813 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7814
7815         * CheckBox.cs: Chain TextAlign to base implementation instead of
7816         maintaining another one.
7817
7818 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7819
7820         * ButtonBase.cs: Fix an incorrect string constant.
7821
7822 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7823
7824         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
7825         of creating one for measuring strings.
7826
7827 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7828
7829         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
7830         Implement MaxItemSize.
7831
7832 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
7833
7834         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
7835         for DeviceContext.  Instead, use the static one available in Hwnd.
7836         Informal tests show this saves about 500k on formtest.exe.
7837
7838 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
7839
7840         * ContainerControl.cs: Implement 2.0 AutoScaling.
7841
7842 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7843
7844         * ComboBox.cs: Work around bug #82120 (bug in mcs).
7845
7846 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
7847
7848         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
7849         Darken the focus color.
7850
7851 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
7852
7853         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
7854         for the checkbox.
7855         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
7856         X, Y instead of a rect for drawing text.
7857         - For ControlPaint.DrawCheckBox, center the check a little better when the
7858         checkbox is odd width.  When drawing a flat checkbox, use a white background
7859         when state != inactive.
7860         [Fixes bugs #82097, 82100]
7861
7862 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
7863
7864         * ListControl.cs: When changing CurrencyManager, disconnect event
7865         handlers from previous one. Fixes bug #81771. Code formatting.
7866
7867 2007-07-15  Andreia Gaita <avidigal@novell.com>
7868
7869         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
7870         full preview invalidation from layout invalidation, and only invalidate
7871         the layout when setting zoom or other properties. Invalidation should
7872         always be done even when resetting properties with the same values as
7873         what is there. Fixes #81744 and #79830.
7874
7875 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7876
7877         * ListView.cs: Implement initial support for Groups. Split some of the
7878         LayoutIcons code to render a partial list of the items (needed by
7879         items contained in ListViewGroup instances). Let the
7880         ListViewItemsCollection.ListView property be modifiable (needed when
7881         using Groups, too).
7882         * ListViewGroup.cs: Use a Bounds property rather than a Location
7883         one. Also invalidate the bounds when they get changed.
7884         * ThemeWin32Classic.cs: When drawing items, also draw the group header
7885         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
7886         method as well.
7887
7888 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7889
7890         * ListView.cs: When space gets pressed and CheckBoxes is true, 
7891         don't invoke the Begin and EndUpdate methods. We are generating 
7892         a redraw of the entire control without need to do so.
7893
7894 2007-07-13  William Holmes <billholmes54@gmail.com> 
7895
7896         * Control.cs: Changing logic in FindFlatForward and 
7897           FindFlatBackward to handle multiple Controls with 
7898           the same TabIndex.  
7899           This fixes bug 81687.
7900
7901 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
7902
7903         * OSFeature.cs: Enable IsPresent.
7904
7905 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7906
7907         * Control.cs: Don't do anything in WmShowWindow if the control has been
7908           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
7909           control is created, put on a form, the control is disposed (the
7910           form is never shown), and then we get a MapNotify, triggering a
7911           WM_SHOWWINDOW.
7912         * Form.cs: Exclude the current form when sending Deactivate to all
7913           MdiChildren.
7914         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
7915           there was a race condition because assigning the handle raises
7916           events, we can get more messages, therefore trying to assign the
7917           handle again, which would fail if any of those event handlers
7918           closed/disposed the control.
7919
7920 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7921
7922         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
7923
7924 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
7925
7926         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
7927         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
7928
7929 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7930
7931         * DateTimePicker.cs: If there's no part format specifier, return an
7932           empty string.
7933
7934 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
7935
7936         * FlatButtonAppearance.cs: Throw NotSupportedException for a
7937         Transparent BorderColor.
7938
7939 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7940
7941         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
7942           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
7943           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
7944           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
7945           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
7946           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
7947           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
7948           Remove warnings.
7949         * X11Structs.cs: Remove warnings, add ToString implementations.
7950
7951 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7952
7953         * XplatUIX11.cs: Translate min/max size according to the actual min/max
7954           size, and not the current size. Fixes #81798.
7955
7956 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7957
7958         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
7959           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
7960           to the control yet).
7961
7962 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7963
7964         * PropertyGridTextBox.cs: Add a method that sends any forwarded
7965           mousedowns to the contained textbox.
7966         * X11Structs.cs: More ToString implementation.
7967         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
7968           #81791.
7969
7970 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7971
7972         * PropertyGridView.cs: Add a null-check, fixes a few tests.
7973
7974 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
7975
7976         * TableLayoutPanelCellPosition.cs: TypeConverter.
7977
7978 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7979
7980         [ Fixes #79761]
7981         
7982         * PropertyGridTextBox.cs: Propagate any color changes to all contained
7983           controls.
7984         * PropertyGridView.cs: A few color fixes.
7985
7986 2007-07-10  Jackson Harper  <jackson@ximian.com>
7987
7988         * TextControl.cs: Remove some old unused text formatting stuff.
7989
7990 2007-07-10  Jackson Harper  <jackson@ximian.com>
7991
7992         * TreeView.cs: Update full row select invalidation to match the
7993         newer DrawSelection... method.
7994         - Make sure to invalidate the entire width when selecting a new
7995         node, if we have full row selection enabled.
7996
7997 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7998
7999         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
8000           display of properties again.
8001
8002 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
8003
8004         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
8005         to existing collections.
8006
8007 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
8008
8009         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
8010         that changed between 1.1 and 2.0.
8011
8012 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
8013
8014         * PowerStatus.cs: Added.  This is just a data class, it is filled
8015         in by SystemInformation.
8016
8017 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
8018
8019         * Message.cs: Add op_Equality and op_Inequality.
8020
8021 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
8022
8023         * MenuStrip.cs: Finish corcompare work.
8024
8025 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
8026
8027         * LinkArea.cs: Add op_Equality and op_Inequality.
8028
8029 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
8030
8031         * Application.cs: Add MessageLoopCallback delegate.
8032
8033 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
8034
8035         * ListBox.cs: First set of 2.0 stuffs.
8036
8037 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
8038
8039         * Control.cs: Make an internal Height property we can override
8040         without messing up the public API.
8041         * ListBox.cs: Override HeightInternal to always return the size
8042         the user set.  [Fixes bug #80466]
8043
8044 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
8045
8046         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
8047         paint cell borders if we haven't calculated where they go yet.
8048         [Fixes bugs #82040 and #82041]
8049
8050 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8051
8052         * ListView.cs: In Details view, set the location of item_control
8053         in the (0,0) position (and the header_control is thus on the
8054         item_control). This way the Bounds of the Items are relative to the
8055         ListView control (before this, they had a Bounds value without the
8056         header_control offset, which wasn't matching .Net). Fixes #82004.
8057
8058 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8059
8060         * ListControl.cs: When DataSource is set to null, pass an empty
8061         array of object to SetItemsCore. This is done to clean the items
8062         in the ListContol children. Fixes #81788.
8063
8064 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
8065
8066         * ListControl.cs: Add 2.0 stuffs.
8067
8068 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
8069
8070         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
8071         Refresh is overkill for just about every repaint request.
8072
8073 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
8074
8075         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
8076         so remove my custom Get method and fix the property getter.
8077
8078 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
8079
8080         * Label.cs: DefaultMargin for 2.0.
8081
8082 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
8083
8084         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
8085         reported issue where other controls with mnemonics would steal strokes
8086         from a selected ComboBox.
8087
8088 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
8089
8090         * ScrollOrientation.cs: Make internal for 1.1.
8091         * ScrollEventArgs.cs: Add 2.0 stuffs.
8092
8093 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
8094
8095         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
8096         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
8097         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
8098
8099 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8100
8101         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
8102
8103 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8104
8105         * ListView.cs: Implement the so-incredibly broken 2.0 
8106         VirtualItemsSelectionRangeChanged event.
8107
8108 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8109
8110         * ListView.cs: When enter is pressed and selection is non empty,
8111         an OnItemActivate event must be fired.
8112
8113 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8114
8115         * ListView.cs: Store the FocusedItem information as an
8116         int instead of a ListViewItem (needed by VirtualMode).
8117         Update the calls to SetFocusedItem to pass an index instead of
8118         an item.
8119         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
8120         the Focused state from the owner ListView. 
8121
8122 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8123
8124         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
8125         property. Also, invalidate previous focused item in the mentioned
8126         property (match .Net).
8127
8128 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8129
8130         * ListView.cs: Implement 2.0 FocusedItem property setter.
8131
8132 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8133
8134         * ListView.cs: Implement 2.0 TopItem property setter.
8135
8136 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
8137
8138         * StatusStrip.cs: The default renderer is System.
8139         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
8140         if the user specifies it.
8141         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
8142         if we are ManagerRenderMode.
8143         * ToolStripMenuItem.cs: Calculate our text color better.
8144         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
8145         from Professional to the base class based off working with the System renderer.
8146         * ToolStripSystemRenderer.cs: Added.
8147
8148 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8149
8150         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
8151
8152 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
8153
8154         * ToolTip.cs: Implement 2.0 Tag property.
8155
8156 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8157
8158         * ListView.cs: Implement 2.0 HitTest methods.
8159
8160 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8161
8162         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
8163         item is under the pointer or not (sugar). Also remove the TODO
8164         regarding to the cursor changes in OneClick activation.
8165         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
8166         the subitems use the parent's HotFont if UseItemStyleForSubItems is
8167         true; otherwise don't show the underline style.
8168
8169 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8170
8171         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
8172         the code to retrieve the item at position only one time. Also
8173         change cursor when Activation is ItemActivation.OneClick as well
8174         as invalidate the item if HotTracking is true (to show/hide the
8175         underline style). Add an internal HotItemIndex property to retrieve
8176         the current hot item's index.
8177         * ListViewItem.cs: Add an internal HotFont property to cache the
8178         font used when HotTracking is true and the pointer moves within the
8179         item's borders.
8180         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
8181         HotFont depending on the hot state of the item.
8182
8183 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8184
8185         * ListView.cs: Implement 2.0 HotTracking property.
8186
8187 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
8188
8189         * ToolStripControlHost.cs: If our hosted control never got created,
8190         don't try to dispose it.  [Fixes bug #81909]
8191
8192 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
8193
8194         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
8195
8196 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
8197
8198         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
8199
8200 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8201
8202         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
8203         Details view.
8204         * DrawListViewColumnHeaderEventArgs.cs:
8205         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
8206         using the DrawText () methods.
8207
8208 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
8209
8210         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
8211         background which got erased in my changes yesterday.
8212
8213 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8214
8215         * ListViewItem.cs: Actually set bounds for subitems in Details view
8216         (2.0 feature).
8217         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
8218         can invoke from the owner draw routines if we need it. Also, add
8219         support for Owner draw in Details view.
8220
8221 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
8222
8223         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
8224         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
8225         ShowImageMargin setting, properly align text in a ToolStripLabel
8226         hosted on a ToolStripDropDown.
8227
8228 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
8229
8230         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
8231         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
8232
8233 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8234
8235         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
8236
8237 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
8238
8239         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
8240         location to match ToolStripMenuItems.
8241
8242 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8243
8244         * DrawListViewColumnHeaderEventArgs.cs:
8245         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
8246         column headers in ListView. 
8247
8248 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
8249
8250         * UserControl.cs: Implement AutoSize.
8251
8252 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8253
8254         * DrawListViewItemEventArgs.cs:
8255         * ListView.cs:
8256         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
8257         ListView.
8258
8259 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
8260
8261         * ToolStripDropDownItemAccessibleObject.cs: Added.
8262         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
8263         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
8264         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
8265         ToolStripTextBox.cs: corcompare work.
8266
8267 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
8268
8269         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
8270         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
8271         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
8272                 corcompare.
8273
8274 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
8275
8276         * OSFeature.cs: Add IsPresent.
8277         * PrintPreviewControl.cs: Add RightToLeft.
8278         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
8279         * SplitterPanel.cs: Add AutoSizeMode.
8280
8281 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
8282
8283         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
8284         * MdiClient.cs: Add 2.0 ScaleControl.
8285         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
8286         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
8287
8288 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
8289
8290         * Form.cs: Implement some scaling methods, stub some RTL methods,
8291         corcompare work.
8292
8293 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
8294
8295         * Control.cs: corcompare work.
8296         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
8297
8298 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
8299
8300         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
8301         ControlPaint 2.0 stuffs.
8302
8303 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8304
8305         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
8306
8307 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8308
8309         * UpDownBase.cs: Add 2.0 stuffs.
8310
8311 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8312
8313         * NumericUpDown.cs: Add 2.0 stuffs.
8314
8315 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8316
8317         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
8318
8319 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8320
8321         * ErrorProvider.cs: Implement 2.0 stuffs.
8322
8323 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8324
8325         * DomainUpDown.cs: Implement 2.0 stuffs.
8326
8327 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8328
8329         * CheckedListBox.cs: Fix RefreshItems signature.
8330
8331 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8332
8333         * PictureBox.cs: Implement 2.0 stuffs.
8334
8335 2007-06-12  Andreia Gaita  <avidigal@novell.com>
8336         
8337         * TabControl.cs: Check if there are tabpages before checking
8338         the selected index - fix #81802 (font changes raise a ResizeTabs
8339         call on controls.add, which blew up nicely with no tabpages)
8340
8341 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8342
8343         * ListView.cs:
8344         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
8345
8346 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8347
8348         * ListView.cs:
8349         * ListViewItem.cs: In VirtualMode the selection information
8350         resides in the ListView, rather than in the Items. Also, throw
8351         InvalidOperationExceptions when VirtualMode is being used and
8352         CheckedItemCollection is accessed.
8353
8354 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
8355
8356         * ComboBox.cs: Add ScaleControl.
8357
8358 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
8359
8360         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
8361
8362 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
8363
8364         * GroupBox.cs: Add 2.0 stuffs.
8365
8366 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
8367
8368         * Panel.cs: Add autosize properties/event.
8369
8370 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
8371
8372         * Control.cs:
8373         - When we remove a control, remove it from the collection before performing the layout.
8374         - Setup an internal property for explicit_bounds.
8375         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
8376         - Perform a layout when we set a new AutoSizeMode.
8377
8378 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
8379
8380         * ScrollableControl.cs: Add 2.0 stuffs.
8381
8382 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
8383
8384         * ScrollBar.cs: Add 2.0 stuffs.
8385
8386 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
8387
8388         * Splitter.cs: Add 2.0 stuffs.
8389
8390 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
8391
8392         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
8393         to have BindingContext simply use base implementation.
8394
8395 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
8396
8397         * ColumnHeader.cs: corcompare fix.
8398
8399 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
8400
8401         * Button.cs: corcompare fixes.
8402         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
8403
8404 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
8405
8406         * Button.cs: Override GetPreferredSizeCore.
8407         * ButtonBase.cs: PerformLayout after changing properties that can affect
8408         AutoSize.  Simplify some mouse/keyboard code.
8409         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
8410         * MouseEventArgs.cs: Make Location internal for 1.1.
8411         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
8412         * Theme.cs: Add CalculateButtonAutoSize.
8413         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
8414
8415 2007-06-05  Miguel de Icaza  <miguel@novell.com>
8416
8417         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
8418
8419 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8420
8421         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
8422         since we can get different item instances every time we retrieve it.
8423
8424 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8425
8426         * ListView.cs: Work around for #81602, since an unkown an pretty
8427         infrequent condition appears only in some systems (old linux boxes, it
8428         seems).
8429
8430 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
8431
8432         * Button.cs: Completely reformat and a little refactor to bring
8433         this closer to Mono circa 2007.
8434
8435 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
8436
8437         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
8438         to be ButtonBase.Invalidate.
8439
8440 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
8441
8442         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
8443
8444 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
8445
8446         * ButtonBase.cs: Completely reformat and a little refactor to bring
8447         this closer to Mono circa 2007.
8448
8449 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
8450
8451         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
8452         values for autosize. Fixes #80137.
8453
8454 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
8455
8456         * Control.cs: Don't perform layout when AutoSize changes.
8457         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
8458         directly when autosizing, use SetBounds with BoundsSpecified.None.
8459         Fixes unit tests my last commit broke.
8460
8461 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
8462
8463         * Control.cs: Perform layout when AutoSize changes.
8464         * Form.cs: Implement AutoSizing.
8465
8466 2007-06-01  Chris Toshok  <toshok@ximian.com>
8467
8468         * DataGrid.cs: remove the XXX'ed check at the top of
8469         ProcessGridKey.  fixes #80464.
8470
8471 2007-06-01  Chris Toshok  <toshok@ximian.com>
8472
8473         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
8474         adding idempotent (add/remove in Edit()), and also make sure we
8475         don't add it until after we set the text, so it's not tripped in
8476         Edit().  Fixes unit test regression.
8477
8478 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
8479
8480         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
8481         change is user explicit, not when the layout engine moves stuff.  Fixes
8482         anchoring to bottom and right.  [Fixes bug #81790]
8483
8484 2007-06-01  Andreia Gaita  <avidigal@novell.com>
8485
8486         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
8487
8488 2007-06-01  Andreia Gaita  <avidigal@novell.com>
8489
8490         * ContainerControl.cs: 
8491         Fire enter event for common ancestor if it is not a ContainerControl.
8492         Send focus to the active_control and not the 'value', the active 
8493         control might have been changed in one of the events fired.     
8494         Definitely fixes #80159.
8495
8496 2007-06-01  Andreia Gaita  <avidigal@novell.com>
8497
8498         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
8499
8500 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8501
8502         * PropertyGrid.cs: Anchor the help description to the bottom of the
8503           help panel and refactor SelectGridItem into a
8504           SelectGridItemInternal that can be set to null (and update it to
8505           clear the help texts when it is set to null). Set root item to null
8506           when there's no SelectedObject. Fixes #80438.
8507         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
8508           when we're recalculating after a resize (only).
8509
8510 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8511
8512         * ListView.cs: Implement 2.0 RedrawItems method.
8513
8514 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8515
8516         * ListControl.cs: Disconnect PositionChanged and ItemChanged
8517         handlers from previous data manager when DataSource is set to
8518         null. Fixes #81771.
8519
8520 2007-05-31  Jackson Harper  <jackson@ximian.com>
8521
8522         * TextBoxBase.cs: These seem to be the correct values.
8523
8524 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
8525
8526         * FileDialog.cs: When close dialog with ok set filterindex using combobox
8527         value. Fixes #81784.
8528
8529 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
8530
8531         * Control.cs: Implement 2.0 scaling methods.
8532
8533 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8534
8535         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
8536           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
8537           corcompare issues.
8538
8539 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8540
8541         * ProgressBar.cs: Implemented missing 2.0 members.
8542
8543 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8544
8545         * Control.cs: Corcompare issues.
8546         * MessageBox.cs: Implemented missing 2.0 functions.
8547
8548 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8549
8550         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
8551           Implemented more 2.0 members.
8552
8553 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8554
8555         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
8556           null (strange, but it seems to happen when running unit tests).
8557
8558 2007-05-30  Andreia Gaita  <avidigal@novell.com>
8559
8560         * ContainerControl.cs: Set active_control even earlier, before 
8561         firing any events, and undo it if validation returns false.
8562
8563 2007-05-30  Andreia Gaita  <avidigal@novell.com>
8564
8565         * ContainerControl.cs: Raise Validation and Enter/Leave events
8566         even if there is no Form and set active_control earlier, just
8567         before firing Enter events (toshok's patches). Fixes #80647.
8568
8569 2007-05-30  Jackson Harper  <jackson@ximian.com>
8570
8571         * TextControl.cs: Redid the pageup/pagedown a little to simplify
8572         things and fix bug #81311.
8573
8574 2007-05-30  Jackson Harper  <jackson@ximian.com>
8575
8576         * X11Dnd.cs: Now that we have our own event loop, we need to
8577         cancel when we get a mouseup but it won't be accepted.
8578
8579 2007-05-30  Chris Toshok  <toshok@ximian.com>
8580
8581         * DataGrid.cs (set_CurrentCell): guard against negative
8582         column/row.
8583
8584         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
8585         array index syntax instead of looping over the property names.
8586
8587         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
8588         and set IsInEditOrNavigateMode to false there.
8589
8590 2007-05-30  Jackson Harper  <jackson@ximian.com>
8591
8592         * TreeView.cs: Make sure we don't get a bad visible order when
8593         setting to the top node.  Fixes some misc crashing in
8594         ControlInspector.
8595
8596 2007-05-30  Andreia Gaita  <avidigal@novell.com>
8597
8598         * UserControl.cs: Add 2.0 AutoSizeMode
8599
8600 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
8601
8602         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
8603
8604 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
8605
8606         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
8607         lines. Fixes #80285. 
8608
8609 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
8610
8611         * DataGridColumnStyle.cs: Add char trimming column header text format. 
8612
8613 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
8614
8615         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
8616         Fixes #80147.
8617
8618 2007-05-29  Jackson Harper  <jackson@ximian.com>
8619
8620         * TreeNode.cs: Fix off by one on calculating whether or not a node
8621         is visible.
8622
8623 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
8624
8625         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
8626         * ScrollableControl.cs: Force an UpdateDistances when we move the
8627         scrollbars.
8628         [Fixes bug #80605]
8629
8630 2007-05-29  Andreia Gaita  <avidigal@novell.com>
8631
8632         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
8633         update the page setup screen.
8634
8635 2007-05-29  Andreia Gaita  <avidigal@novell.com>
8636
8637         * PageSetupDialog.cs: Fix landscape mode.
8638
8639 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8640
8641         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
8642         IconSizeHorizontalSpacing.
8643
8644 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8645
8646         * ListView.cs: The declaration of prev_tooltip_item should be inside
8647         a NET_2_0 conditional (avoid a warning).
8648
8649 2007-05-28  Andreia Gaita  <avidigal@novell.com>
8650
8651         * PageSetupDialog.cs: Implement PrintPreview control to display
8652         the preview thumbnail. Change unit conversion to use 
8653         PrinterUnitConvert methods.
8654         
8655         Note: there is a huge bug in ms.net where the default margins are 
8656         interpreted as centimeters (?), when in fact they are set in inches. When 
8657         loading the page setup dialog initially (ms.net), the default margins 
8658         are set to 1 inch, and the dialog shows them with value 10, when in fact 
8659         it should be 25 (properly converted). Our dialog doesn't have this bug.
8660         
8661         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
8662         RectangleF.
8663         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
8664
8665 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8666
8667         * ListView.cs:
8668         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
8669         items.
8670
8671 2007-05-28  Andreia Gaita  <avidigal@novell.com>
8672
8673         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
8674         an IntPtr on csc (it builds fine on mcs, could it be a compiler
8675         bug?), convert the ptr to Int32 first.
8676
8677 2007-05-28  Jackson Harper  <jackson@ximian.com>
8678
8679         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
8680         recieved, we will exit the dnd tracking loop.
8681
8682 2007-05-28  Jackson Harper  <jackson@ximian.com>
8683
8684         * X11Dnd.cs: Keep tracking until the xdnd finished event is
8685         recieved. TODO: I should probably stick a timer on the dropped
8686         event, and finish the drag if the XDND Finished event never shows
8687         (because some apps don't seem to send it).
8688
8689 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
8690
8691         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
8692         #81733.
8693
8694 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8695
8696         * MonthCalendar.cs: Only mark the keypresses we actually handle as
8697           handled.
8698
8699 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8700
8701         * MonthCalendar.cs: Set the size after initializing all the relevant
8702           variables. Fixes #81742.
8703
8704 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8705
8706         * KeyEventArgs.cs: Fix typo.
8707
8708 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
8709
8710         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
8711         to match MS. Fixed MinDate to only accept value less than or equal
8712         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
8713         Removed TODO's that are now verified by unit tests.
8714
8715 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
8716
8717         * TreeNodeCollection.cs: Minor corrections to exceptions to match
8718         MS.
8719
8720 2007-05-25  Jackson Harper  <jackson@ximian.com>
8721
8722         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
8723         it's own message loop.
8724         * XplatUIX11.cs: Remove some of the dnd hooks
8725
8726 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
8727
8728         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
8729         instead of MinimizedWindowSize.
8730
8731 2007-05-25  Jackson Harper  <jackson@ximian.com>
8732
8733         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
8734
8735 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8736
8737         * KeyEventArgs.cs: Added SuppressKeyPress.
8738         * Control.cs: Added support for SuppressKeyPress.
8739
8740 2007-05-24  Andreia Gaita  <avidigal@novell.com>
8741
8742         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
8743         problems with PieChart. suppress_validation should not be a counter,
8744         if there are several BeginInit calls, the first EndInit will 
8745         activate validation. Fix exceptions thrown by set_Value.
8746         * UpDownBase.cs: ValidateText only if it's the user editing it.
8747
8748 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8749
8750         * ListControl.cs: FilterItemOnProperty should return the filtered
8751         item proeprty even if DataSource is null. The same applies for
8752         GetItemText. Fixes #80427.
8753
8754 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
8755
8756         * Control.cs: If a control doesn't have a parent when it's Dock is
8757         set, but it has children, it needs to do a layout.  Fixes some nested
8758         controls issues.  [Fixes bug #81199]
8759
8760 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8761
8762         * ComboBox.cs: If there are few items in the drop down list, make it
8763           the exact size the items need, no bigger. Fixes #81612.
8764
8765 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
8766
8767         * Application.cs: When we have captured the keyboard for a menu,
8768         check for mouse down events in case we need to close the menu.
8769         * Control.cs, Form.cs: Remove mouse down checks for menus.
8770
8771 2007-05-24  Jackson Harper  <jackson@ximian.com>
8772
8773         * TextControl.cs: Handle tabs in non multiline mode a little
8774         differently.
8775
8776 2007-05-24  Jackson Harper  <jackson@ximian.com>
8777
8778         * TextControl.cs: We need to manually break apart tabbed text and
8779         move the tabs, since the system.drawing tabbing mechanism relies
8780         on tab stops.
8781         * TextBoxBase.cs: Move the caret properly when the user enters a
8782         tab.
8783
8784 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
8785
8786         * ContainerControl.cs: Don't check CanSelect before calling
8787         ProcessMnemonic.
8788         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
8789         release a KeyboardActive on click if it's not ours.
8790
8791 2007-05-23  Andreia Gaita  <avidigal@novell.com>
8792
8793         * ColumnHeader.cs: Add TypeConverter
8794
8795 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8796
8797         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
8798
8799 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8800
8801         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
8802
8803 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8804
8805         * LinkLabel.cs: Implement public Padding property.
8806
8807 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8808
8809         * LinkLabel.cs: Implement public FlatStyle.
8810
8811 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
8812
8813         * Control.cs: Apply patch from George to call parent.PerformLayout
8814         when Visible is changed.  [Fixes bugs #81118, 81718]
8815
8816 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8817
8818         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
8819
8820 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8821
8822         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
8823
8824 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8825
8826         * ContextMenu.cs: Implement Collapse.
8827
8828 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
8829
8830         * ToolBarButton.cs: Implement Name.
8831
8832 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
8833
8834         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
8835         use current_item, it prevents some NRE. Fixes #81675.  
8836
8837 2007-05-22  Andreia Gaita  <avidigal@novell.com>
8838
8839         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
8840         without updating the text.
8841
8842 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
8843
8844         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
8845         without calling DeleteObject.  [Should fix bug #81709]
8846
8847 2007-05-22  Jackson Harper  <jackson@ximian.com>
8848
8849         * RichTextBox.cs: Set the line endings correctly, when flushing
8850         RTF text.
8851
8852 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
8853
8854         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
8855          {Width=0,Height=0}.
8856
8857 2007-05-22  Jackson Harper  <jackson@ximian.com>
8858
8859         * TreeView.cs: Setting top with a null node should set to the very
8860         top.
8861
8862 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8863
8864         * Form.cs: ShowDialog: destroy the handle when message loop is
8865           finished, matches MS behaviour. Refactor parts of WmClose into
8866           RaiseCloseEvents, that only raises events if they haven't already
8867           been raised. Fixes #81688 and #81521.
8868         * Application.cs: Don't call close on the form when exiting a modal
8869           loop, it will raise all the (Form)Closed/Closing events again if
8870           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
8871           which doesn'r raise any events it they have been raised before.
8872
8873 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
8874
8875         * Control.cs: Add OnPrint.
8876         * ToolStrip.cs: Add GetChildAtPoint.
8877         * ToolStripContainer.cs: Add OnRightToLeftChanged.
8878         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
8879
8880 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
8881
8882         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
8883
8884 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8885
8886         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
8887           isn't visible anymore. Fixes #81651.
8888
8889 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8890
8891         * Control.cs: WmShowWindow: Update children's z-order after setting
8892           their parent. SetParent may show the window, thereby corrupting
8893           z-order, since the window will be shown on top.
8894         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
8895           multiple (and redundant) WM_SHOWWINDOW messages.
8896         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
8897           event has already been raised.
8898         * Form.cs: Change is_changing_visible_state to a counter, since
8899           SetVisibleCore can be called recursively. CreateHandle: when
8900           creating mdi children, send (De)Activated events.
8901         * MdiClient.cs: Update use of is_changing_visible_state.
8902         * Application.cs: OnThreadException: Surround exception handling with
8903           try/finally to ensure we always reset the error-handling state
8904           before leaving.
8905
8906 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8907
8908         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
8909           (#81704).
8910
8911 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8912
8913         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
8914         SmallIcon views, now that we have a standarized horizontal spacing.
8915
8916         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
8917         4, just like the other views (Match .Net).
8918
8919 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
8920
8921         * Control.cs: Delay calculating anchor distances until we actually layout.
8922         Always query the WM for the actual size and location it put us at instead of
8923         only when we send negative values.
8924         [Fixes bugs #81694, 81695]
8925
8926 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8927
8928         * Application.cs: Avoid a possible stack overflow when trying to exit
8929           the application.
8930
8931 2007-05-19  Marek Safar  <marek.safar@gmail.com>
8932
8933         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
8934         enum value.
8935
8936 2007-05-19  Andreia Gaita  <avidigal@novell.com>
8937
8938         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
8939         * NumericUpDownAcceleration.cs, 
8940           NumericUpDownAccelerationCollection.cs: Added 2.0
8941           implementation.
8942
8943 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
8944
8945         * RichTextBox.cs: Recalculate the document after the ScrollBars
8946         property is changed. Fixes bug #81681.
8947
8948 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
8949
8950         * DataObject.cs: Implement 2.0 methods.
8951
8952 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8953
8954         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
8955         in the center of the checkbox, not in the left-top corner. 
8956         Fixes #80037.
8957
8958 2007-05-18  Jackson Harper  <jackson@ximian.com>
8959
8960         * RichTextBox.cs: Recalculate the document after the scrollbars
8961         property is changed.
8962         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
8963         81486.
8964
8965 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8966
8967         * CreateParams.cs: Make HasWindowManager marginally faster.
8968         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
8969           into Hwnd so that other drivers can use it as well.
8970         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
8971           the default location from Hwnd. Fixes MDI client windows always
8972           showing up at (0,0) in Windows (Win32 won't set the default
8973           location since the window styles aren't correct).
8974
8975 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
8976
8977         * TreeView.cs: Modified DoubleBuffered to just use the base
8978         implementation.
8979
8980 2007-05-18  Jackson Harper  <jackson@ximian.com>
8981
8982         * TreeView.cs: Set the top node to the last child node when
8983         expanding all
8984         - When we get focus, if there is no selected node, use the top
8985         node.
8986
8987 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
8988
8989         * KeysConverter.cs: Add CanConvertTo.
8990         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
8991         * LinkConverter.cs: Added.
8992
8993 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
8994
8995         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
8996         it prevents error when file dont have write access. Fixes #81669 and #81667.  
8997
8998 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
8999
9000         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
9001         button text. Fixes #79640.  
9002
9003 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
9004
9005         * Control.cs: According to MSDN controls created in the designer theres 
9006         keyboard accelerators visible by default. So included check for design
9007         in ShowKeyboardCuesInternal.  
9008
9009 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
9010
9011         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
9012         text. Fixes #81621.  
9013
9014 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
9015
9016         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
9017         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
9018
9019 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
9020
9021         * Control.cs: Finish implementation of UI State using WmChangeUIState
9022         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
9023         in some controls to check for show_keyboard_cues to draw accell keys "_".  
9024
9025 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9026
9027         * ListBox.cs: When calculating the horizontal scrollbar
9028         in single column mode, don't use values less than 0 for
9029         Maximum. Fixes #81474.
9030
9031 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9032
9033         * ListBox.cs: Throw the some missing exceptions in
9034         ListBox.ObjectCollection methods.
9035
9036 2007-05-17  Jackson Harper  <jackson@ximian.com>
9037
9038         * TextBoxBase.cs: Recalculate the document when the word wrap
9039         value has changed. This fixes 81488.
9040
9041 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
9042
9043         * Clipboard.cs: Implement missing GetText overload.
9044
9045 2007-05-17  Chris Toshok  <toshok@ximian.com>
9046
9047         * Control.cs (CheckDataBindings): remove the binding_context arg
9048         to binding.Check.
9049
9050         * CurrencyManager.cs (OnItemChanged): fix this now that
9051         BindingManagerBase is fixed. also remove the comment telling where
9052         the fix should go.  We set transfering_data to true/false around
9053         the call to PushData to keep UpdateIsBinding from being called.
9054         (ListChangedHandler): remove the extra OnMetaDataChanged call for
9055         PropertyDescriptorAdded in the 1.1 case.  The extra call is
9056         actually generated by System.Data generating 2 metadata changed
9057         events of its own per column add.  The fix should go there.  Add a
9058         comment to that affect in our test's Assert.Ignore.
9059
9060         * BindingManagerBase.cs: Rework PullData and PushData slightly.
9061         we keep a boolean flag (transfering_data) that keeps us from
9062         calling UpdateIsBinding multiple times if we re-enter either of
9063         them.
9064
9065         * ControlBindingsCollection.cs (AddCore): remove the
9066         binding_context arg to binding.Check.
9067
9068         * Binding.cs (IsBinding): don't check if we're binding here, just
9069         return our cached value.  we update it in UpdateIsBinding.
9070         (Check): don't take the binding_context arg, we'll just use our
9071         control's.  Also, for some reason MS doesn't use the data member
9072         field when getting the bindingmanager for this binding.  it just
9073         uses the datasource.  Make this method callable multiple times,
9074         and only do the is_null_desc stuff if manager.Position != -1 (so
9075         we don't get an exception accessing manager.Current).
9076         (UpdateIsBinding): move the code from IsBinding here.
9077         (PositionChangedHandler): call Check here to we can initialize
9078         things that require a non- -1 position.
9079
9080 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
9081
9082         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
9083         control.
9084
9085 2007-05-17  Andreia Gaita  <avidigal@novell.com>
9086
9087         * TabControl.cs: Add 2.0 methods and events, including
9088         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
9089         * TabPage.cs: Add 2.0 methods
9090
9091 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
9092
9093         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
9094         keyboard_cues is properly handled by message method.  
9095
9096 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
9097
9098         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
9099
9100 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
9101
9102         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
9103
9104 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
9105
9106         * Control.cs: 
9107         - WmUpdateUIState added to handle state changes, it make call to
9108         OnChangeUICues event.
9109         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
9110         SystemInformation.
9111
9112 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
9113
9114         * ImageKeyConverter.cs: Added.
9115         * TreeViewImageKeyConverter.cs: Added.
9116
9117 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9118         
9119         * ToolTips.cs: Update Text if SetToolTip is called for a control
9120         already showing the tooltip, as well as restarting its timer; show
9121         tooltip if we are inside the control bounds by the time of calling
9122         SetToolTip. Inside ShowTooltip remove the check to not show the 
9123         tooltip again for the active control (it is allowed by .Net to 
9124         show the tooltip on the same control multiple times).
9125
9126 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9127
9128         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
9129
9130 2007-05-16  Andreia Gaita <avidigal@novell.com> 
9131
9132         * ContainerControl.cs: only process tab key if there are no 
9133         modifier keys present, otherwise the control does the 
9134         tab processing, if it needs to. Fixes #81622
9135         * TabControl.cs: Fixes calculation for which tab to select on
9136         shift+ctrl+tab.
9137
9138 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9139
9140         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
9141
9142 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
9143
9144         * Control.cs: Make IsInputCharInternal to allow controls to
9145         override it and still match MS API.
9146         * TextBoxBase.cs: Override IsInputCharInternal and always
9147         return true.
9148         [Fixes bug #81616]
9149
9150 2007-05-15  Jackson Harper  <jackson@ximian.com>
9151
9152         * TextBox.cs: Disable some of the menu options when using a
9153         readonly textbox.
9154
9155 2007-05-15  Jackson Harper  <jackson@ximian.com>
9156
9157         * TextBox.cs:
9158         * TextBoxBase.cs:
9159         * RichTextBox.cs: Some new 2.0 methods
9160
9161 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
9162
9163         * FileDialog.cs: On 1.0 profile, do not support multidotted 
9164         extensions.
9165
9166 2007-05-14  Jackson Harper  <jackson@ximian.com>
9167
9168         * TextBoxBase.cs: Implement some of the new 2.0 methods.
9169         * RichTextBox.cs: We need to override these methods on 2.0.
9170         * MaskedTextBox.cs: These are implemented now
9171         * TextControl.cs: This was off by one.
9172
9173 2007-05-14  Jackson Harper  <jackson@ximian.com>
9174
9175         * TextControl.cs: Because the line endings are including in the
9176         text, we don't need to add them in anymore.
9177
9178 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
9179
9180         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
9181         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
9182
9183 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
9184
9185         * ToolBar.cs: Adjust size to default size when button theres no text and
9186         image, it fixes remaining issues from #81524.
9187
9188 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
9189
9190         * ToolBar.cs: 
9191         - When not flat call redraw to recalculate sizes on creare handle to match
9192         win32 behavior.
9193         - Revert 77220 because it causes some regressions in toobar
9194         button.
9195
9196 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9197
9198         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
9199           now actually enters a usable state.
9200
9201 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
9202
9203         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
9204         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
9205         3 buttons.
9206
9207 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
9208
9209         * ToolBar.cs: Save default_size on create handle to use later for buttons
9210         without text, needed to mimic win32 behavior.
9211
9212 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
9213
9214         * ToolBar.cs: Fix button layour to best fit width or height according to
9215         vertical or not. Fixes #81524.
9216
9217 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
9218
9219         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
9220         toolbar size info because different styles theres different sizes.
9221         Fixes #81522.
9222
9223 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9224
9225         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
9226         if we are using checkboxes, checked is true, and we have less
9227         than two images in StateImageList; for the 1.1 in the same scenario
9228         draw the first image if we have at least one image in StateImageList.
9229         Fixes part of #81191.
9230
9231 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
9232
9233         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
9234         the owner's Items collection on merge.
9235
9236 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
9237
9238         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
9239         * ToolStripItemCollection.cs: Lots of fixes to when events get called
9240         and parent/owner gets changed based on gert's unit tests.
9241
9242 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9243
9244         * MaskedTextBox.cs: Started implementing parts of it.
9245
9246 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9247
9248         * ListView.cs: When clicking the checkbox on the items
9249         take into account the double clicks even if we have only
9250         one image in StateImageList (only for 1.0/1.1). Also 
9251         generate an extra change of checked state when we receive
9252         the second click on checkbox (match .Net behaviour). 
9253         Fixes part of #81191.
9254
9255 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
9256
9257         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
9258
9259 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
9260
9261         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
9262         even if OnLoad is overriden and base.OnLoad is not called.
9263         [Fixes bug #81582]
9264
9265 2007-05-10  Andreia Gaita  <avidigal@novell.com>
9266
9267         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
9268         shame. (I blame my ever-persisting and annoying cold)
9269
9270 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
9271
9272         * ListView.cs: Don't eat navigation keys.  Let them flow through to
9273         KeyDown/KeyPress routines.  [Fixes bug #81569]
9274
9275 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
9276
9277         * ListView.cs: When handling keys for selecting the item based off
9278         keyboard input, do not consider keys pressed with Alt or Control.  Also,
9279         correctly handle keys when the Shift key is down. [Fixes bug #81578]
9280
9281 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
9282
9283         * Control.cs: When using UseWaitCursor, we have to store the requested
9284         Cursor to use when UseWaitCursor is turned off.
9285
9286 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
9287
9288         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
9289         to false.
9290         * Application.cs: Use PreProcessControlMessage instead of
9291         PreProcessMessage.
9292         * PreProcessControlMessage.cs: Make internal for 1.1.
9293
9294 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9295
9296         * Control.cs: Add InternalContains focus property, which hast the same
9297         functionality of ContainsFocus, but also including implicit controls.
9298         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
9299         since we need to know if the focus is contained in our implicit
9300         ItemControl when calculating Layout. Fixes part of #80888.
9301
9302 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
9303
9304         * ToolTip.cs: Remove center form string alignment as it must be align to
9305         left.
9306
9307 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
9308
9309         * ToolStripItemCollection.cs: Set the new item's parent and owner
9310         in Insert like we do in Add.  [Fixes bug #81568]
9311
9312 2007-05-08  Jackson Harper  <jackson@ximian.com>
9313
9314         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
9315         - Off by one error in SetTop
9316         - Disable DoubeBuffering
9317         
9318 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9319
9320         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
9321           control as much as necessary in order to make it entirely visible,
9322           instead of centering the control in the container (matches MS
9323           behaviour). CalculateCanvasSize: we need to take the current scroll
9324           position into account when calculating the maximum canvas,
9325           otherwise the following scenario will fail: resize so that the
9326           scrollbars appear, use the scrollbars to scroll, resize again
9327           smaller, and now the canvas size is too small. Recalculate: when
9328           showing scrollbars make sure they start off at 0, and try to scroll
9329           the active control into view. Fixes #79540. HandleScrollBar: don't
9330           scroll anywhere if the scrollbar isn't visible.
9331
9332 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9333
9334         * ListView.cs: When focus changed, call Layout/Invalidate
9335         in the focused item to update the selected state (should show
9336         entire label when ListView is focused, and a part of it if is not).
9337         * ListViewItem.cs: When doing layout for LargeIcon, take into account
9338         for displaying the entire label not only the Focused state of the
9339         item, but also the Focused state of the ListView (match .Net
9340         behaviour).
9341
9342 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
9343
9344         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
9345         Implement UseWaitCursor. 
9346
9347 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
9348         Applying contributed patch from Sergey Volk.
9349
9350         * Clipboard.cs: Implement SetDataObject retry logic and new overload
9351         of SetDataObject.
9352         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
9353
9354 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
9355
9356         * Control.cs: Implement DrawToBitmap.
9357
9358 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
9359         Applying contributed patch from Stefan Noack.
9360         
9361         * Control.cs: Add [Get|Set]AutoSizeMode.
9362
9363 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
9364
9365         * MdiClient.cs: Unmerge menus when the last child is closed.
9366
9367 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
9368
9369         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
9370         * ToolStripManager.cs: Call Merge on DropDowns.
9371         [Fixes bug #81477]
9372
9373 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9374
9375         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
9376           uints.
9377         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
9378           visibility. We can't create forms visible, since we have to set the
9379           owner before making the form visible (otherwise Win32 will do
9380           strange things with task bar icons). The problem is that we set the
9381           internal is_visible to true before creating the control, so
9382           is_changing_visible_state is the only way of determining if we're
9383           in the process of creating the form due to setting Visible=true -
9384           this works because SetVisibleCore explicitly makes the form
9385           visibile afterwards anyways. Fixes #80775.
9386
9387 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9388
9389         * ThemeWin32Classic.cs: When drawing ListViewItems,
9390         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
9391         or LargeIcon _and_ item is not focused (match .Net behaviour).
9392
9393 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
9394
9395         * Control.cs, Form.cs: Fix some obsolete method warnings.
9396
9397 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
9398
9399         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
9400         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
9401
9402 2007-05-04  Andreia Gaita  <avidigal@novell.com>
9403
9404         * ContainerControl.cs: Fix active_control attribution when going
9405         up the parent chain so that the first parent container gets the control
9406         and the rest of the parent containers get the child containers (skips
9407         non-containers). Fixes #80729
9408
9409 2007-05-04  Randolph Chung  <tausq@debian.org>
9410
9411         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
9412         [Fixes bug #81499]
9413
9414 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9415
9416         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
9417           takes a size parameter, since the CreateParam's size isn't true for
9418           minimized forms. Fixes #81518,
9419
9420 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9421
9422         * Form.cs: Add OnDeactivateInternal.
9423         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
9424
9425 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9426
9427         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
9428           accessing the parent. Fixes #81508.
9429
9430 2007-05-03  Chris Toshok  <toshok@ximian.com>
9431
9432         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
9433         2.0 block, pass listposition + 1 to ChangeRecordState when a row
9434         was added before the current listposition.  Fixes the
9435         TestInsertRowBeforeCurrent unit test.
9436
9437 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
9438
9439         * Application.cs: Add RaiseIdle.
9440         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9441         XplatUIX11.cs: Implement RaiseIdle.
9442
9443 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
9444         corcompare work: N - Z
9445         * NotifyIcon.cs
9446         * ProgressBar.cs
9447         * RadionButton.cs
9448         * ScrollableControl.cs
9449         * SplitContainer.cs
9450         * SplitterPanel.cs
9451         * StatusBar.cs
9452         * SystemInformation.cs
9453         * TabControl.cs
9454         * TableLayoutControlCollection.cs
9455         * TableLayoutPanel.cs
9456         * TabPage.cs
9457         * ToolBar.cs
9458         * ToolBarButton.cs
9459         * ToolStrip.cs
9460         * ToolStripComboBox.cs
9461         * ToolStripContainer.cs
9462         * ToolStripContentPanel.cs
9463         * ToolStripDropDown.cs
9464         * ToolStripDropDownItem.cs
9465         * ToolStripDropDownMenu.cs
9466         * ToolStripItem.cs
9467         * ToolStripItemCollection.cs
9468         * ToolStripMenuItem.cs
9469         * ToolStripPanel.cs
9470         * ToolStripSplitButton.cs
9471         * ToolTip.cs
9472         * TreeNode.cs
9473         * TreeNodeCollection.cs
9474         * TreeNodeMouseHoverEventArgs.cs
9475         * TreeView.cs
9476
9477 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
9478
9479         * ContextMenu.cs: Add public method Show with alignment property to 2.0
9480         stuff. Thanks aatdark for the patch. 
9481
9482 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
9483
9484         * GridItem.cs: Implement 2.0 Tag property.
9485
9486 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
9487
9488         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
9489         count instead of Nodes.Length.  [Fixes bug #81448]
9490
9491 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
9492
9493         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
9494         [Fixes bug #81506]
9495
9496 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
9497         corcompare work: A - M
9498         * BindingNavigator.cs
9499         * Button.cs
9500         * ButtonBase.cs
9501         * CheckBox.cs
9502         * Control.cs
9503         * FlowLayoutPanel.cs
9504         * Form.cs
9505         * Label.cs
9506         * LinkLabel.cs
9507         * ListView.cs
9508
9509 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
9510
9511         * Application.cs: Give toolstrips a chance to process mnemonics.
9512         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
9513         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
9514         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
9515
9516 2007-05-01  Jackson Harper  <jackson@ximian.com>
9517
9518         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
9519         wider area too.
9520         - Don't set the BoundsSpecified
9521
9522 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
9523
9524         * Application.cs: When using the toolstrip shortcut mechanism, allow the
9525         message to pass through to a regular control if it hosted by a toolstrip.
9526         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
9527         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
9528
9529 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
9530
9531         * TextRenderer.cs: Use the flags argument when using the MeasureString
9532         fallback algorithm.
9533
9534 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
9535
9536         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
9537         the MDI menu item.  [Fixes bug #81483]
9538
9539 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
9540
9541         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
9542         string. When setting Name to null, use zero-length string instead.
9543
9544 2007-04-29  Andreia Gaita  <avidigal@novell.com>
9545
9546         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
9547         DeselectTab). Implement missing 2.0 TabPageCollection methods
9548         (Add, ContainsKey, RemoveByKey, IndexOfKey)
9549
9550 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
9551
9552         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
9553
9554 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
9555
9556         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
9557         Fixes bug #81479. Include details of exception when LoadFile fails.
9558
9559 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
9560
9561         * DrawListViewSubItemEventArgs.cs: Added missing setter
9562
9563 2007-04-27  Andreia Gaita  <avidigal@novell.com>
9564
9565         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
9566         Hide methods (not complete). Implement missing 2.0 OnPopup event.
9567
9568 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9569
9570         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
9571         removed in ly last commit (it was breaking the Label edit feature).
9572
9573         * ThemeWin32Classic.cs: When drawing a ListViewItem use
9574         StringAlignment.Near for LineAlignment (match .Net).
9575
9576 2007-04-27  Andreia Gaita  <avidigal@novell.com>
9577
9578         * TabControl.cs: Change SetTab so it adds the tabpage to the list
9579         of controls if it isn't already there - was blowing up when doing
9580         tabcontrol.TabPages[i]=new TabPage(). 
9581         SetTab now does a replace by removing the page at the index. 
9582         Add a new InsertTab method that inserts a page in a given index 
9583         instead of replacing. 
9584         Implements TabPageCollection.Insert(int, TabPage).
9585
9586 2007-04-27  Chris Toshok  <toshok@ximian.com>
9587
9588         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
9589         internal handler that can be invoked from our subclasses.)  Also,
9590         add a comment to PushData about how we need to fix it.
9591
9592         * CurrencyManager.cs: tons of changes here.  trying to get things
9593         matching the behavior of .net wrt event orders (ItemChanged,
9594         CurrentChanged, PositionChanged.)  I've implemented a private .net
9595         symbol (ChangeRecordState) that appears in stack traces because
9596         it's actually easier to do this than to effective inline all its
9597         various behaviors at every call site.
9598
9599         * RelatedPropertyManager.cs: guard against an exception here by
9600         not using parent.Current if the position is set to -1 (if the
9601         parent datasource is cleared, for instance).
9602
9603         * Binding.cs: don't parse data in PushData (this might be wrong,
9604         but it jives with MS's behavior.)  Also, don't call PushData when
9605         we get a CurrentChanged event.
9606
9607 2007-04-27  Andreia Gaita  <avidigal@novell.com>
9608
9609         * WebBrowser.cs,
9610           WebBrowserBase.cs,
9611           WebBrowserSiteBase.cs,
9612           HtmlDocument.cs: Added stubbed out classes, no real implementations 
9613           yet.
9614
9615 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
9616
9617         * MainMenu.cs: In draw method without parameters call draw method with 
9618         PaintEvent, another one (just rect) adjust rectangle and we dont need it
9619         as Rect property is already adjusted. Fixes #80694.
9620
9621 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
9622
9623         * Application.cs: Need to handle keyboard menu deselection here.
9624         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
9625         navigation, allowing keyboard to work on X11.
9626         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
9627
9628 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
9629
9630         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
9631         menu bar. It fixes some drawing issues in menu bar.
9632
9633 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
9634
9635         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
9636         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
9637         when <alt> key is pressed.
9638
9639 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
9640
9641         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
9642         example just set visible to false and make this prevent from other problems.
9643         In SystrayAdd always remove pending expose. Fixes #81072.
9644
9645 2007-04-26  Marek Safar  <marek.safar@gmail.com>
9646
9647         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
9648         value is set.
9649
9650 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
9651
9652         * ListView.cs: Added three missing 2.0 events and corresponding
9653         EventHandlers. Added the OwnerDraw property.
9654         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
9655
9656 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
9657
9658         * DrawListViewItemEventArgs.cs
9659         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
9660
9661 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
9662
9663         * TextControl.cs: Fixed typo in constructor
9664
9665 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
9666
9667         * Application.cs: Create a shortcut path so that currently selected
9668         MenuStrips can intercept keyboard events without having focus.
9669         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
9670         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
9671         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
9672         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
9673         generate WM_SYSCOMMAND message in X11 for other platforms.
9674         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
9675         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
9676         * ToolStripSplitButton.cs: Add DefaultItem property.
9677         
9678 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
9679
9680         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
9681         fixes some menu draw problem on Windows with border diferent from default
9682         it also fixes #81403.
9683
9684 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9685
9686         * Form.cs: Refactor WndProc into separate methods, just like Control is
9687           doing it.
9688
9689 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9690
9691         * Control.cs: set_Text: move the call to the driver into a seperate
9692           virtual method so that Form can override it.
9693         * MaskedTextBox.cs: Corcompare fixes.
9694         * Form.cs: Override UpdateWindowText and only update the styles if the
9695           form has been shown (fixes #81405).
9696
9697 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
9698
9699         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
9700         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
9701         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
9702         the form lost focus or another control was clicked.
9703
9704 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
9705
9706         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
9707         fixed.
9708
9709 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9710
9711         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
9712           DrawListViewItemEventHandler.cs,
9713           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
9714           Added.
9715         * X11Structs.cs: More ToString implementation.
9716
9717 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
9718
9719         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
9720         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
9721
9722 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9723
9724         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
9725           handle.
9726         * FormCollection.cs: Don't add a form if it's already in the
9727           collection.
9728         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
9729           according to behaviour and MSDN. The ownerWin32 is the active
9730           window at the moment when we call ShowDialog, not the context's
9731           main form (the context's main form may open another form that opens
9732           a form with ShowDialog, the win32 owner is the second form). Add
9733           and remove forms to the Application.OpenForms in other places to
9734           better match MS behaviour. Add an IsActive property that raises
9735           On(de)Activated only if the active state has changed (we were
9736           raising OnDeactivated before OnActivated while creating forms).
9737         * Application.cs: Refactor Enabling/Disabling of windows for modal
9738           dialog loops out to separate methods, and restore the thread
9739           context when we quit the method. Fixes #81407.
9740
9741 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9742
9743         * ListView.cs: In ItemControl.HandleClicks, also fire 
9744         2.0 MouseClick or MouseDoubleClick events on the parent,
9745         not only the Click/DoubleClick events.
9746
9747 2007-04-24  Andreia Gaita  <avidigal@novell.com>
9748
9749         * TableLayoutSettings.cs: 
9750         - Added a GetControls method and a support structure to help the 
9751         TypeConverter to enumerate the controls for     serialization. 
9752         - Added a new serialization constructor. 
9753         - Added a isSerialized flag initialized to true on the 
9754         serialization constructor so that the TableLayoutPanel.LayoutSettings 
9755         setter does not throw the designed NotSupportedOperation exception
9756         when the object is built through deserialization.
9757         - Implemented GetObjectData
9758         
9759         * TableLayoutPanel.cs: Added check on LayoutSettings.
9760
9761 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9762
9763         * ListView.cs: Report Click and DoubleClick events to the parent
9764         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
9765         from breaking the click count state when using dialog forms (Control
9766         reports the clicks in a similar fashion). In the previous behaviour
9767         the last WM_LBUTTONUP message in a  double click was sent to the
9768         ListView's form, instead of the ListView, which was breaking the click
9769         count for it. Fixes #80387.
9770
9771 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
9772
9773         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
9774
9775 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
9776
9777         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
9778         us from created dropdowns for menu items that do not have subitems.
9779         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
9780         Check HasDropDownItems before calling DropDown so a dropdown will not be
9781         created if it isn't needed.
9782
9783 2007-04-24  Jackson Harper  <jackson@ximian.com>
9784
9785         * TreeView.cs: Set the first node to the selected node when we get
9786         focus if there is no selected node.
9787
9788 2007-04-24  Andreia Gaita  <avidigal@novell.com>
9789
9790         * MimeIcon.cs: remove using blocks so that image streams are
9791         not disposed of. Fixes #80151
9792
9793 2007-04-24  Jackson Harper  <jackson@ximian.com>
9794
9795         * TextBoxBase.cs: Fixup the height of textboxes when the control
9796         is created.
9797
9798 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
9799
9800         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
9801         for each ToolStripItem when the parent's RightToLeftChanged is called.
9802
9803 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9804
9805         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
9806           Fixes #80163.
9807         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
9808           property, so that the setter can be overriden too.
9809         * TextBox.cs: Change GetContextMenuInternal() to use
9810           ContextMenuInternal.
9811
9812 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9813
9814         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
9815           #81406.
9816
9817 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9818
9819         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
9820           #81406.
9821
9822 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9823
9824         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
9825           avoid duplicate work. Mostily skeleton code, it's not working at
9826           all yet.
9827
9828 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
9829
9830         * NotifyIcon.cs : stub for MouseClick event
9831         * Application.cs: stub for SetUnhandledExceptionMode
9832
9833 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
9834
9835         * BindingNavigator.cs : Initial (partial) implementation
9836
9837 2007-04-23  Jackson Harper  <jackson@ximian.com>
9838
9839         * TreeView.cs: Do not create the treeview's handle when setting
9840         the scroll position.
9841         - ExpandAll needs to compute the scrollbars so it knows which
9842         position to set the bar too.
9843         * TreeNode.cs: 
9844         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
9845
9846 2007-04-23  Jackson Harper  <jackson@ximian.com>
9847
9848         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
9849         key. Fixes #81408.
9850
9851 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
9852
9853         * ToolStripItem.cs: Make GetImageSize internal.
9854         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
9855         need to draw an item.  Fixes a reported issue where images on menus
9856         that were not 16x16 were drawing incorrectly.
9857
9858 2007-04-21  Miguel de Icaza  <miguel@novell.com>
9859
9860         * Padding.cs: Use the converter, fixes the resgen2 issue with
9861         XMLNotePad. 
9862
9863 2007-04-21  Jackson Harper  <jackson@ximian.com>
9864
9865         * TreeView.cs: Dont try to unhighlight the selected node if there
9866         isn't a selected node.
9867
9868 2007-04-21  Jackson Harper  <jackson@ximian.com>
9869
9870         * UpDownBase.cs:
9871         * TextBoxBase.cs:
9872         * ListView.cs:
9873         * ListBox.cs:
9874         * TreeView.cs: Use the InternalBorderStyle property to set the
9875         initial border style, this forces the client rectangle to be sized
9876         correctly.
9877
9878 2007-04-20  Jackson Harper  <jackson@ximian.com>
9879
9880         * TreeView.cs: Simplify scrolling to the last node after expanding
9881         all.
9882         - Fix some off by ones with setting the bottom.
9883
9884 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
9885
9886         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
9887         that.  We were incorrectly doing it the other way around.  Also,
9888         update ClientSize if we change the BorderStyle before the control
9889         is created.
9890
9891 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
9892
9893         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
9894         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
9895         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
9896         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
9897         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
9898         Caption to CaptionHeight.
9899         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
9900         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
9901         and FixedFrameBorderSize to return value from current XplatUI driver.
9902         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
9903         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
9904         and FixedFrameBorderSize using win32 API. Renamed Caption to
9905         CaptionHeight.
9906         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
9907         * SystemInformation.cs: Fixed typo in BorderSize.
9908
9909 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
9910
9911         * XplatUI.cs: Added MenuAccessKeysUnderlined.
9912         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
9913         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
9914         returning false.
9915         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
9916         value from XplatUI driver.
9917         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
9918         SystemParametersInfo.
9919         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
9920         override.
9921         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
9922         returning false.
9923
9924 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9925
9926         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
9927
9928 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9929
9930         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
9931
9932 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
9933
9934         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
9935         MenuStrips that contain ToolStripSeparators.
9936
9937 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9938
9939         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
9940           DefineStdCursorBitmap.
9941         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
9942           has been created off a standard cursor. This is used to get a
9943           bitmap of the standard cursor when Draw or DrawStretched is called
9944           in order to draw the cursor.
9945         * X11Structs.cs: Added XcursorImage and XcursorImages.
9946         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
9947           DefineStdCursorBitmap.
9948         * Cursors.cs: Update all relevant creations of Cursor to use the new
9949           internal constructor.
9950
9951 2007-04-19  Jackson Harper  <jackson@ximian.com>
9952
9953         * TextBox.cs: Move the has_been_focused into the base control, so
9954         some of the text adding methods can manipulate it (probably time
9955         for a better name for this flag too).
9956         - Call a new version of selectall that doesn't scroll
9957         * TextBoxBase.cs: When we append text, if the document is empty,
9958         don't scroll.  If the document has text already, we scroll to the
9959         end of the appended text.
9960         - When the text is changed, we reset the has_been_focused, so the
9961         next time the control gets focused, all the text is selected.
9962
9963 2007-04-19  Jackson Harper  <jackson@ximian.com>
9964
9965         * TextControl.cs: Move the margins to the document, add a method
9966         so the margin sizes can be updated.
9967         * TextBoxBase.cs: When the border style is changed, update the
9968         border sizes.
9969
9970 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
9971
9972         * Control.cs: Respect DefaultPadding.
9973         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
9974         padding into account.
9975         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
9976
9977 2007-04-19  Jackson Harper  <jackson@ximian.com>
9978
9979         * TextControl.cs: Oops, we need to use the ClientRect not the
9980         bounds here.
9981
9982 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9983
9984         * ListView.cs: In ItemControl.ItemsMouseDown, take into
9985         account the double clicks when CheckBoxes are used and
9986         the pointer is inside the checkbox. Fixes part of #81191.
9987
9988 2007-04-18  Jackson Harper  <jackson@ximian.com>
9989
9990         * TextControl.cs: Pressing the end key shouldn't move the caret
9991         past the line ending.
9992         * TextBoxBase.cs: We can still delete if we are in the line
9993         ending and the combine will just kill the existing line ending.
9994
9995 2007-04-18  Jackson Harper  <jackson@ximian.com>
9996
9997         * TextControl.cs: We can't move lines, then invalidate their
9998         bounds, we need to get the old bounds and combine that with the
9999         new bounds.
10000         * TextBoxBase.cs: Before combining two lines for a delete, we need
10001         to invalidate the area of the old line, since that will be moved
10002         in the combine operation.
10003
10004 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
10005
10006         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
10007         with transparent background. Fixes #80482.
10008
10009 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
10010
10011         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
10012         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
10013         [Fixes bug #81391]
10014
10015 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10016
10017         * CreateParams.cs: Add a couple of helper methods and do a less string
10018           concatenation in ToString.
10019         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
10020           overload that takes a Control parameter, since this method may be
10021           called before a control is assigned to the hwnd (from
10022           CreateWindow), and update CreateWindow to use the new overload. In
10023           GetMenuOrigin subtract the title bar from the y position if the
10024           form has a window manager (since we're painting it and not X).
10025         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
10026           CreateParams to calculate the origin (since border sizes may vary).
10027           In ScreenToMenu only subtract the title height if we actually have
10028           a title.
10029         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
10030           mdi children never have menus of themselves.
10031         * InternalWindowManager.cs: Implement menu handling like form does.
10032           Added GetMenuOrigin to calculate the menu origin, can't use the
10033           CreateParams from the form like normally since it's lying.
10034         * Hwnd.cs: Implement GetBorderSize better (in the sense more
10035           windows-like) and add Inflate and comparison operators to the
10036           Borders type. When calculating MenuOrigin and it's a form with a
10037           window manager, use the window manager to calculate it.
10038
10039 2007-04-17  Chris Toshok  <toshok@ximian.com>
10040
10041         * Control.cs (CreateControl): turns out in 2.0 we don't need this
10042         OnBindingContextChanged thing here.  It's only generated from
10043         ContainerControl.OnCreateControl.  Fixes a newly written unit test
10044         - BindingTest.BindingContextChangedTest4.
10045         
10046 2007-04-17  Jackson Harper  <jackson@ximian.com>
10047
10048         * ScrollBar.cs: When setting values, make sure the current
10049         position stays within the new values range.
10050
10051 2007-04-17  Chris Toshok  <toshok@ximian.com>
10052
10053         * Control.cs (CreateControl): talk about a bizarre corner case.
10054         Don't emit OnBindingContextChanged here if we're a parentless
10055         control (i.e. if we're a form.).  Fixes
10056         BindingTest.BindingContextChangedTest2.
10057
10058 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
10059
10060         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
10061         from win32. Fixes #81255.
10062
10063 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
10064
10065         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
10066         already present in CalculateButtonTextAndImageLayout.
10067
10068 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10069
10070         * XplatUIX11.cs: When setting min/max size for a window we need to
10071           translate the coordinates to x coordinates. Create an overload of
10072           SetWindowMinMax that takes a CreateParams handling this, and change
10073           SetWMStyles to call this function (can't use Control.FromHandle in
10074           the SetWindowMinMax to get the control/CreateParams from the handle
10075           because the handle might not have been assigned to the control
10076           yet). Fixes #81371.
10077
10078 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10079
10080         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
10081         if StateImageList is non-null and it has less than two items (match MS
10082         behaviour). Also, in HandleNavKeys handle the Space key, calling
10083         the new ToggleItemsCheckState method, which tries to change the
10084         checked state of the selected items. Fixes part of #81191.
10085
10086 2007-04-16  Jackson Harper  <jackson@ximian.com>
10087
10088         * RichTextBox.cs: namespace cleanup.
10089
10090 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
10091
10092         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
10093
10094 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
10095
10096         [Fixes #79447]
10097         * Control.cs: Call invalidate in set_Region.
10098
10099         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
10100         it dont works here.
10101
10102 2007-04-16  Jackson Harper  <jackson@ximian.com>
10103
10104         * TextBoxBase.cs: When enter is pressed, we need to update all
10105         lines below the current.
10106
10107 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
10108
10109         * MdiClient.cs: Implement implicit menu merging for MDI
10110         children.  When a child form is active, if it has a menustrip
10111         and the parent form has a MainMenuStrip, automatically merge
10112         the menus.
10113
10114 2007-04-15  Andreia Gaita  <avidigal@novell.com>
10115
10116         * TabControl.cs: Refactored sizing methods to not repeat
10117         code all over the place. Tab bounds are now calculated
10118         as if alignment is top and single line, and only when 
10119         setting the bounds are the positions adjusted according
10120         to alignment. Replaced hardcoded positions, spacings and
10121         paddings by getting the values the ThemeEngine. 
10122         Fixes #79619.
10123         
10124         * Theme.cs: Change TabControl properties and methods so
10125         that all start with TabControl*. Added more properties
10126         to help remove hardcoded values on tabcontrol.
10127         Add CPDrawBorder3D declaration so the Theming classes
10128         can access it.
10129         
10130         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
10131
10132         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
10133         on the Theming namespace, and call the appropriate methods here.
10134         Change CPDrawBorder3D to public.
10135
10136 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10137
10138         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
10139         the control after firing the OnMouseUp event, instead of sending
10140         the message before the mentioned event. This is so we can match the
10141         MS behaviour. Fixes part of #80385.
10142
10143 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
10144
10145         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
10146         RightToLeft property.
10147
10148 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
10149
10150         * ToolStrip.cs: Add properties and internal methods to support merging.
10151         * ToolStripItem.cs: Add MergeAction and MergeIndex.
10152         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
10153         not trigger reparenting or layouts.
10154         * ToolStripManager.cs: Add Merge and RevertMerge methods.
10155         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
10156         is hosting the overflow menu.
10157
10158 2007-04-13  Jackson Harper  <jackson@ximian.com>
10159
10160         * TextControl.cs: Set the line ending correctly for the first
10161         inserted line.
10162
10163 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
10164
10165         * Theme.cs: Update GetMethod to get the new definition for 
10166         KnownColors.Update (and fix theme color updates).
10167
10168 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
10169
10170         * MessageBox.cs: Fix some test and button position.
10171
10172 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10173
10174         * Form.cs: Consider the implicit controls in
10175         GetRealChildAtPoint. We need it since this method
10176         is called on Form when handling the some messages in
10177         WndProc, and need to consider those implicit ones too.
10178         Fixes #80385.
10179
10180 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
10181
10182         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
10183         if there are no ShortcutKeys set.
10184         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
10185         set, use it when painting.
10186
10187 2007-04-12  Jackson Harper  <jackson@ximian.com>
10188
10189         * TextControl.cs: Fix some off-by-one issues in line duplication
10190         and insertion in the undo manager. Also, overwrite the first tag
10191         of a line on insert, if it is just a zero lengthed tag. This
10192         prevents us from getting an extra stranded tag at the beginning of
10193         the first line.
10194
10195 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
10196
10197         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
10198         to calculated proper size including when handle was not created yet.
10199
10200 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10201
10202         * MdiWindowManager.cs: When moving a form, allow the form to be moved
10203           when the mouse is outside of it's parent's client rectangle. Fixes
10204           #79982 (take 3, part 2).
10205
10206 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10207
10208         * X11Structs.cs: Add a few ToString() overrides.
10209         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
10210           the window location in a window-manager independent way. Reworked
10211           FrameExtents, it now actually works. Reworked AddConfigureNotify
10212           and ReparentNotify handling to use GetTopLevelWindowLocation
10213           instead of the earlier, more hacky solution. Reworked SetWMStyles,
10214           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
10215           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
10216           for all other windows (fixes #81281 part 1), a toolwindow is hidden
10217           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
10218           and generally refactored to do as few calculations as possible
10219           inside the lock.
10220
10221 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
10222
10223         * Theme.cs: Change "reflective-contract" between MWF and SD to 
10224         minimize # of calls, avoid Color serialization and avoid updating 
10225         every "known colors" each time a single one is updated.
10226
10227 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
10228
10229         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
10230         when not readonly and the text is explicitly set. Code style updates.
10231         * DataGridTableStyle.cs: Removed extra line.
10232         * DataGrid.cs: Code style updates. Removed extra whitespace.
10233         * DataGridColumnStyle.cs: Code style updates. Removed extra 
10234         whitespace.
10235
10236 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10237
10238         * XplatUIX11.cs: Added comment that "fixes" #80021.
10239
10240 2007-04-09  Jackson Harper  <jackson@ximian.com>
10241
10242         * TextControl.cs: We don't need this -1 on the line count anymore.
10243
10244 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
10245
10246         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
10247         entered value to underlying type, and convert it back to a string to
10248         apply formatting. Modified GetFormattedValue to use TypeConverter
10249         if available.
10250
10251 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
10252
10253         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
10254         Use SubItems property when we want to ensure there's at least one
10255         subitem. Modified SubItems property to ensure there's always at least
10256         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
10257         the NRE's reported by MS.
10258
10259 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
10260
10261         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
10262         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
10263         Spaces to tabs. Removed extra tabs.
10264
10265 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
10266
10267         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
10268         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
10269
10270 2007-04-06  Jackson Harper  <jackson@ximian.com>
10271
10272         * TextBoxBase.cs: When a delete removes a line, recalculate all
10273         lines below that line (they need to get offsets setup correctly)
10274         and invalidate.
10275
10276 2007-04-05  Jackson Harper  <jackson@ximian.com>
10277
10278         * TextControl.cs: We need to invalidate across the width of the
10279         document when we are invalidating multiple lines.
10280         * TextBoxBase.cs: Don't delete into the line ending.
10281
10282 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10283
10284         * ListView.cs: Restore the check for the MouseHover event
10285         in ListView. It looks like the ListView fires more than one MouseHover
10286         event when HoverSelection is true  _only_ in weird-corner scenarios, but
10287         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
10288         event.
10289
10290 2007-04-05  Mike Kestner  <mkestner@novell.com>
10291
10292         * ListView.cs : raise MouseDown before updating selection.
10293         [Fixes #80373 tab 1&3]
10294
10295 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
10296
10297         * ToolStripRenderer.cs: Add static method to mirror image.
10298         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
10299         and RightToLeftAutoMirrorImage.
10300         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
10301
10302 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
10303
10304         * ToolStripSplitStackLayout.cs: Support Alignment property.
10305         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
10306
10307 2007-04-05  Jackson Harper  <jackson@ximian.com>
10308
10309         * TextControl.cs: Move around the line endings when crossing line
10310         boundaries.
10311         - When combining lines, strip the ending text off the first line.
10312
10313 2007-04-05  Jackson Harper  <jackson@ximian.com>
10314
10315         * TextControl.cs:
10316         * TextBoxBase.cs: Try to never move the cursor into the line
10317         ending.
10318         
10319 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
10320
10321         * ToolStripItem.cs: Make sure we aren't firing mouse events when
10322         the item is disabled.  Also add a few missing methods.
10323
10324 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10325
10326         * ListView.cs: We don't need the MouseEnter/MouseLeave check
10327         to fire just one MouseHover event when HoverSelection is true, since
10328         .Net does fire more than one MouseHover event in that scenario. Also,
10329         fix the selection in HoverSelection, by invoking UpdateMultiSelect
10330         if MultiSelect is true, instead of only setting ListViewItem.Selected.
10331         Finally, we need to reset the Hover logic in MouseMove, even when we
10332         don't have a selected item.
10333
10334 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
10335
10336         * ToolStrip.cs: Add several missing methods, properties, and events.
10337
10338 2007-04-04  Chris Toshok  <toshok@ximian.com>
10339
10340         * DataGridTextBoxColumn.cs: set the bounds of the text box to
10341         (0,0,0,0) in Commit, as MS does.
10342
10343         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
10344         make sure we set CurrentRow on a row header click *before* calling
10345         Select.  This moves the current cell (and the textbox) to the new
10346         row.  The call to Select then hides the textbox, giving us the
10347         correct behavior.  Fixes #80362.
10348
10349         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
10350         (ListChangedHandler): reorder the position/current changed events,
10351         and call UpdateIsBinding in the ItemAdded case.
10352
10353         * GridColumnStylesCollection.cs: add some columns events, one of
10354         which raises the CollectionChanged event.
10355
10356 2007-04-04  Jackson Harper  <jackson@ximian.com>
10357
10358         * TextControl.cs: When we delete multiple selection lines
10359         invalidate the selection area, don't need to do that for single
10360         lines because the final update view will handle it.
10361
10362 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
10363
10364         * Control.cs: When we CreateControl, we need to also create all of the
10365         control's children.  The child's OnLoad must also fire before the parent's
10366         OnLoad.  Fixes the toolbox size in PDN.
10367
10368 2007-04-04  Jackson Harper  <jackson@ximian.com>
10369
10370         * TextBoxBase.cs: When the user presses enter, insert a line
10371         ending into the text. (Maybe this would be a good spot for
10372         Environment.NewLine).
10373         * TextControl.cs: Remove undo manager hack, line endings get
10374         inserted properly now.
10375         
10376 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
10377
10378         * MenuAPI.cs: 
10379         - Remove unneeded parameters in UpdateCursor.
10380         - Fix UpdateCursor to check if menu is active.
10381         - Call UpdateCursor when menu deactivate my click.
10382         [Fixes remaining issues from #80410]
10383
10384 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
10385
10386         * Control.cs: GetRealChildAtPoint method added, it make an
10387         recursive child control search for the point. 
10388
10389         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
10390         menu.
10391
10392         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
10393
10394 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
10395
10396         * Form.cs: Fix mouse position when send back mouse event after closes
10397         menu.
10398
10399 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
10400
10401         * Form.cs: Simplify the BUTTONDOWN for active tracker.
10402
10403 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
10404
10405         * Control.cs: Fix an issue where if a user resized a control inside
10406         a sizing method like OnResize, we would overwrite their explicit
10407         value.  Also, only call DefaultSize once in the constructor instead
10408         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
10409         nothing actually changed.
10410
10411 2007-04-03  Jackson Harper  <jackson@ximian.com>
10412
10413         * TextControl.cs: Don't attempt to copy text for lines with no
10414         text in them (technically this shouldn't happen, but we aren't
10415         always inserting line endings when we should be).
10416
10417 2007-04-03  Jackson Harper  <jackson@ximian.com>
10418
10419         * TextBoxBase.cs: Calculate the scrollbars before calculating the
10420         document, because this sets some of the document size properties
10421         that are needed.
10422
10423 2007-04-03  Jackson Harper  <jackson@ximian.com>
10424
10425         * TextBoxBase.cs: We need to calculate maximums even if this is
10426         not a multiline control, because the maxs are used for scrolling.
10427         - Display the caret after doing a page up/down, we need to
10428         manually display it because a proper CaretMoved event isn't
10429         triggered (this is because of the way the math is done to
10430         determine how far to scroll).
10431
10432 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
10433
10434         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
10435         (ToolBar was relying on SetBoundsCore to default the values sent 
10436         base off of BoundsSpecified.)
10437
10438 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10439
10440         * DateTimePicker.cs: Change Text so that when a null value or empty
10441           string is assigned to the test we always raise ValueChanged and
10442           TextChanged (earlier implementation would only raise ValueChanged
10443           if the current date value was different from DateTime.Now).
10444
10445 2007-04-03  Andreia Gaita <avidigal@novell.com> 
10446
10447         * ButtonBase: Call update after invalidation, fixes #80194
10448
10449 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10450
10451         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
10452           #79335.
10453
10454 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10455
10456         * XplatUIX11.cs: SetWMStyles: If the control is a form with
10457           FormBorderStyle = None, don't give the window any decorations.
10458           Fixes #81276.
10459
10460 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10461
10462         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
10463         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
10464           to check for is a mix of several styles (such as WS_CAPTION for
10465           instance).
10466         * Control.cs: Don't paint an area bigger than the client area when
10467           painting the background colour. Add an internal GetCreateParams.
10468           Update calls to XplatUI.CalculateWindowRect due to API change.
10469         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
10470           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
10471           the size if it hasn't been handled by any windows. When creating
10472           and moving windows, X wants the location of the entire window, but
10473           the size of the client window, so add
10474           TranslateClientRectangleToXClientRectangle,
10475           TranslateWindowSizeToXWindowSIze and
10476           TranslatedXWindowSizeToWindowSize to cope with this, and call them
10477           before every window creation and move. Update CalculateWIndowRect
10478           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
10479           In AddConfigureNotify don't do anything if the hwnd is a zombie
10480           (fixes the BadWindow we were getting while running the tests),
10481           always calculate the offsets when it's a parentless window, not
10482           only when reparented, and translate the window size, since we're
10483           getting the client size of the whole window, excluding entire
10484           window.
10485         * Theme.cs: Added BorderSizableSize.
10486         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
10487           anymore. Update calls to XplatUI.CalculateWindowRect due to API
10488           chang
10489         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
10490           change. Fake the window styles here instead of in XplatUIWin32 so
10491           that all back-ends get the same window styles (and it's Form that's
10492           deciding when to use wm, not the Win32 backend anyways)
10493         * Hwnd.cs: Completely reworked GetWindowRectangle and
10494           GetClientRectangle - they are now passed a CreateParams and they
10495           only use Style and ExStyle to determine the rectangles (they should
10496           now work just like Win32AdjustWindowRectEx - though quite a few
10497           special cases are probably missing). They should also be 100%
10498           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
10499           == rect), and all numbers (borders, menu sizes) are taken from the
10500           current theme. Added a GetBorders helper function that will return
10501           the borders for any given CreateParams (including captions and
10502           menus), and GetBorderSize that returns the given border size only.
10503         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
10504           Hwnd.GetClientRectangle.
10505
10506 2007-04-02  Chris Toshok  <toshok@ximian.com>
10507
10508         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
10509         logic between the values we present to the user and the values
10510         which are stored in the column's property.  Also, don't call
10511         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
10512
10513 2007-04-02  Jackson Harper  <jackson@ximian.com>
10514
10515         * TextBoxBase.cs: Scroll faster!
10516
10517 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
10518
10519         * StatusStrip.cs: Layout fixes for PDN.
10520         * ToolStrip.cs: Set item's available to true, and placement to main when
10521         added.
10522         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
10523         changing in setter before doing any work, add InternalVisible.
10524         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
10525         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
10526         infinite loop.
10527
10528 2007-04-02  Jackson Harper  <jackson@ximian.com>
10529
10530         * TextBox.cs: LBUTTON does not make the textbox select all of it's
10531         text on focus.
10532
10533 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10534
10535         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
10536           Makes ToolStripComboBoxes show up again.
10537
10538 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10539
10540         * ListView.cs: Add a hover_pending field in ListView
10541         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
10542         cycle (we are resetting the MouseHover logic in XplatUI
10543         to handle HoverSelection). Fixes #80429.
10544
10545 2007-04-02  Jackson Harper  <jackson@ximian.com>
10546
10547         * TextControl.cs: Make sure the attributes get set on the last
10548         tag.
10549         - Still have to do the end tag if we have stepped all the ways to
10550         the end.
10551
10552 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
10553
10554         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
10555         on an internal libgdiplus call when the information is already 
10556         available via the public API.
10557
10558 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10559
10560         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
10561           control is removed from a control collecftion.
10562         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
10563           Fixes FormPropertyTest (failed on rare occasions).
10564         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
10565           of Win32SetParent (when changing from no parent to a parent it
10566           might add the new parent's location in screen coordinates to this
10567           window's location).
10568         * Form.cs: Rework ChangingParent once again, now the handle is
10569           recreated whenever a FormWindowManager is added or removed (that is
10570           whenever a normal form is parented or abandoned). Also change
10571           CreateParams so that all non-toplevel windows always get the
10572           specified sice (StartupPosition is never considered for
10573           non-TopLevel forms).
10574         * ContainerControl.cs: Add ChildControlRemoved, the container control
10575           needs to be notified when a control is removed from it's
10576           collection, in the case the removed control is the active control.
10577
10578 2007-04-02  Jackson Harper  <jackson@ximian.com>
10579
10580         * RichTextBox.cs: Use the new methods for setting the font and
10581         color, these methods set the specified attribute without
10582         overriding the other attributes.
10583
10584 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
10585
10586         * ToolStripPanel.cs: Fixes for better layouts in PDN.
10587
10588 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
10589
10590         * TextBox.cs: Added internal ChangeBackColor method to special-case
10591         Color.Empty. Added check for invalid ScrollBars value.
10592         * TextBoxBase.cs: Added internal ChangeBackColor method.
10593         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
10594         internal ChangeBackColor method to special-case Color.Empty. Added
10595         check for invalid ScrollBars value.
10596
10597 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
10598
10599         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
10600
10601 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
10602
10603         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
10604         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
10605         [Based on submitted patch from Olivier Duff.]
10606
10607 2007-03-30  Jackson Harper  <jackson@ximian.com>
10608
10609         * TextBox.cs: Only select all on initial focus if the user has not
10610         specified a selection area.
10611
10612 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
10613
10614         * UserControl.cs: Override CreateParams.
10615
10616 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10617
10618         [ Fixes #80995 ]
10619
10620         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
10621         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
10622           check for is a mix of several styles (such as WS_CAPTION for instance).
10623         * Control.cs: Don't paint an area bigger than the client area when painting
10624           the background colour. Add an internal GetCreateParams. Update calls to
10625           XplatUI.CalculateWindowRect due to API change.
10626         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
10627           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
10628           hasn't been handled by any windows. When creating and moving windows, X
10629           wants the location of the entire window, but the size of the client
10630           window, so add TranslateClientRectangleToXClientRectangle,
10631           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
10632           to cope with this, and call them before every window creation and move.
10633           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
10634           removing DeriveStyles). In AddConfigureNotify don't do anything if the
10635           hwnd is a zombie (fixes the BadWindow we were getting while running the
10636           tests), always calculate the offsets when it's a parentless window, not
10637           only when reparented, and translate the window size, since we're getting
10638           the client size of the whole window, excluding entire window.
10639         * Theme.cs: Added BorderSizableSize.
10640         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
10641           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
10642         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
10643           Fake the window styles here instead of in XplatUIWin32 so that all
10644           back-ends get the same window styles (and it's Form that's deciding when
10645           to use wm, not the Win32 backend anyways)
10646         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
10647           they are now passed a CreateParams and they only use Style and ExStyle
10648           to determine the rectangles (they should now work just like
10649           Win32AdjustWindowRectEx - though quite a few special cases are probably
10650           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
10651           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
10652           sizes) are taken from the current theme. Added a GetBorders helper
10653           function that will return the borders for any given CreateParams
10654           (including captions and menus), and GetBorderSize that returns the given
10655           border size only.
10656         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
10657           Hwnd.GetClientRectangle.
10658
10659 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10660
10661         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
10662           layout of the mdi children is handled by CreateParams. Fixes
10663           #79964,
10664
10665 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
10666
10667         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
10668         processed.
10669
10670         * Form.cs: When active tracker mouse down is not processed, send event 
10671         back to control inside mouse position. [Fixes #81227]
10672
10673 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
10674
10675         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
10676         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
10677         stealing focus from the active form on Windows.  (Control will be made
10678         visible in ShowWindow.)
10679
10680 2007-03-29  Mike Kestner  <mkestner@novell.com>
10681
10682         * ImageList.cs : add internal Changed event.
10683         * ListView.cs : hook up to StateImageList.Changed to perform
10684         invalidations when the the state icon list changes. [Fixes #81191]
10685
10686 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
10687
10688         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
10689         to prevent tooltips from stealing focus from the active form on Windows.
10690
10691 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
10692
10693         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
10694
10695         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
10696
10697 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
10698
10699         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
10700         balloons.
10701
10702 2007-03-29  Jackson Harper  <jackson@ximian.com>
10703
10704         * TextControl.cs: When deleting text from non multiline textboxes,
10705         we need to update the entire document, because line offsets will
10706         be shifting.
10707
10708 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
10709
10710         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
10711         added to theme, now we can create themes that uses diferent notify engines
10712         like notification-daemon from galago project or growl for Mac OS.
10713
10714 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
10715
10716         * NotifyIcon.cs: Prevent Balloon to show in task bar.
10717
10718 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
10719
10720         * XplatUIX11.cs: Prevent system to open more than one balloon.
10721
10722         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
10723         some compiler warning messages.
10724
10725 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
10726
10727         [Fixes #79149]
10728
10729         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
10730
10731         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
10732         implemented, this methods is used by NotifyIcon.BalloonWindow class.
10733
10734         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
10735         systems.
10736
10737 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10738
10739         * ListViewItem.cs: Forgot to make Invalidate internal.
10740
10741 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10742
10743         * ListView.cs: Add a InvalidateSelection method to
10744         invalidate methods which are currently selected, and call
10745         it when setting FullRowSelect and HideSelection, instead of
10746         calling Redraw.
10747
10748 2007-03-28  Chris Toshok  <toshok@ximian.com>
10749
10750         * XplatUIX11.cs (UnmapWindow): reindent this block.
10751
10752         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
10753         the selection_start if we're moving the selection (that is, not
10754         extending it). Fixes bug #80461.
10755
10756 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
10757
10758         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
10759         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
10760         create private ControlCollection.
10761
10762 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
10763
10764         * Control.cs: We need to call OnVisibleChanged for our implicit
10765         children as well as our normal children.  Fixes scrollbars in
10766         comboboxes not showing up.
10767
10768 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
10769
10770         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
10771         the check for IsHandleCreated first.  The check in CreateHandle is not
10772         good enough because CreateHandle can be overriden, and the override 
10773         should not be called if the handle is already created.
10774
10775 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
10776
10777         * ToolStrip.cs: Remove MonoTODO for tooltips.
10778         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
10779         * ToolStripContainer.cs: Add custom ControlCollection class.
10780         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
10781         * ToolStripDropDown.cs: Add some missing properties/methods.
10782         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
10783         * ToolStripItem.cs: Remove MonoTODO for tooltips.
10784         * ToolStripManager.cs: Add IsShortcutDefined.
10785         * ToolStripOverflow.cs: Override LayoutEngine.
10786         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
10787         * ToolStripSeparator.cs: Add ImageKey.
10788
10789 2007-03-28  Jackson Harper  <jackson@ximian.com>
10790
10791         * TextControl.cs: If a char delete removes a line ending, we need
10792         to update the ending style.
10793         - Make sure the line ending calcs get called.
10794
10795 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10796
10797         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
10798           it was making the new code not work. Fixed a typo in the new code
10799           as well. Fixes #79826.
10800
10801 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
10802
10803         * XplatUIWin32.cs:
10804         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
10805         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
10806         - SystrayBalloon method implemented.
10807         [Add support for notifyicon balloon on win32, #79149]
10808
10809 2007-03-27  Mike Kestner  <mkestner@novell.com>
10810
10811         * ThemeWin32Classic.cs : update StateImageList selection to mirror
10812         the ms behavior when only one image is added to the list.
10813         [Fixes #81191]
10814
10815 2007-03-27  Jackson Harper  <jackson@ximian.com>
10816
10817         * TextControl.cs: Improvements to non multiline line ending
10818         drawing/measuing.
10819
10820 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
10821
10822         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
10823
10824 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
10825
10826         * NotifyIcon.cs: 
10827         - Balloon message handling added.
10828         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
10829
10830         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
10831         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
10832         to SystrayBalloon to me like other Systray method, also a
10833         handle parameter added.
10834
10835 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10836
10837         * ListView.cs: Show scrollbars even when items.Count == 0
10838         but the columns Width is bigger than the ListView.Width.
10839         Also, when columns.Count == 0 set layout_wd and layout_ht
10840         to the ClientRectangle values, so we don't show any scrollbar
10841         in that case.
10842
10843 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
10844
10845         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
10846
10847 2007-03-27  Jackson Harper  <jackson@ximian.com>
10848
10849         * RichTextBox.cs: The RTF library decodes the text properly for us
10850         now.
10851
10852 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10853
10854         * ListView.cs: Display HeaderControl even when columns.Count == 0.
10855         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
10856         ListView header (HeaderControl), instead of Control.BackColor.
10857
10858 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
10859
10860         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
10861         Fixes tab control issues where controls would not show up because they
10862         never received their OnVisibleChanged call.
10863
10864 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
10865
10866         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
10867         BalloonTipShown).
10868
10869 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
10870
10871         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
10872         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
10873         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
10874         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
10875         the handle.  Fix WindowState by using the internal variable until we are 
10876         sure that we've been shown.
10877         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
10878         max or min.
10879         [Fixes bug #81198]
10880
10881 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10882
10883         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
10884           (at least borders). Fixes #79386 on Linux (with a small difference
10885           in behaviour: when trying to resize a caption-less window metacity
10886           shows the sysmenu. Resizing is still possible though).
10887         * XplatUIWin32.cs: When setting window styles send request an extra
10888           WM_NCCALCSIZE when it's a form without title (due to no text and no
10889           caption), since Win32 seems to calculate it wrong the first time we
10890           get the message, though the second time things work as they should.
10891         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
10892           newly reparented window might show up unparented. Update
10893           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
10894           there's no title text. Fixes #79386.
10895
10896 2007-03-27  Mike Kestner  <mkestner@novell.com>
10897
10898         * ListBox.cs : don't perform invalidations if the handle hasn't been
10899         created.  [Fixes #80753]
10900
10901 2007-03-27  Mike Kestner  <mkestner@novell.com>
10902
10903         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
10904         [Fixes #80428]
10905
10906 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
10907
10908         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
10909         needed to implement Balloon.
10910
10911 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10912
10913         * ListViewItem.cs: In the constructors that take
10914         an array of strings, don't use ListViewSubItemCollection.AddRange
10915         method to add items, since we need to have a different behaviour (in
10916         the constructors we add an item for each null string, opposed to
10917         the behaviour of AddRange, which adds nothing).
10918
10919 2007-03-26  Andreia Gaita  <avidigal@novell.com>
10920
10921         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
10922
10923 2007-03-26  Jackson Harper  <jackson@ximian.com>
10924
10925         * TextControl.cs: Draw and measure line endings when in non
10926         multiline mode.
10927         - When searching the text, count the end of the last line as a
10928         word boundary.
10929
10930 2007-03-26  Jackson Harper  <jackson@ximian.com>
10931
10932         * RichTextBox.cs: The selection_start and selection_end don't
10933         really track the correct tags for the selection. So we'll manually
10934         compute the correct tag here.
10935
10936 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10937
10938         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
10939           and Continuous styles. Fixes #79469.
10940
10941 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
10942
10943         * ToolStrip.cs: Implement Tooltips.
10944         * ToolStripItem.cs: Create internal method for determining tooltip.
10945
10946 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
10947
10948         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
10949
10950 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
10951
10952         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
10953         it prevents a problem thak keeps icon visible after application 
10954         closes on win32.
10955
10956 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
10957
10958         * NotifyIcon.cs: Balloon properties and methods created.
10959
10960         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
10961         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
10962
10963 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
10964
10965         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
10966
10967 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
10968
10969         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
10970         parameter indicates which aspects were explicit/user-set.
10971         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
10972
10973 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
10974
10975         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
10976         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
10977         SmallChange, and Value (2.0).
10978         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
10979
10980 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10981
10982         * ListView.cs: Always set item_control.Width in LayoutDetails
10983         if View is Details. Setting it later in CalculateScrollBars
10984         in a not-so-corner scenario (the sum of columns width is
10985         not bigger than the ListView width when handle is created, and then
10986         that sum gets bigger by increasing the width of the columns)
10987         causes a very weird recursion path (which shouldn't be happening,
10988         since header_control sets it in CalculateScrollBars too). This bug
10989         appeared after Chris' fixes for handle created issues, so probably
10990         it's related to some handle-creation time.
10991
10992 2007-03-23  Chris Toshok  <toshok@ximian.com>
10993
10994         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
10995         case where there's an add row, just so we don't end up in a case
10996         where it's not displayed (this happens when the row is partially
10997         obscured).  Fixes bug #79574.
10998
10999 2007-03-23  Jackson Harper  <jackson@ximian.com>
11000
11001         * TextControl.cs:
11002         * TextBoxBase.cs:
11003         * RichTextBox.cs: Preserve line endings in the lines text buffer,
11004         also added an enum that represents the line ending type. 
11005
11006 2007-03-23  Andreia Gaita  <avidigal@novell.com>
11007
11008         * NumericUpDown.cs: Fix logic so Text and Value properties are not
11009         messed with in every method call, but only from DownButton, 
11010         UpButton, UpdateEditText() and ValidateText. Fixes #80346
11011
11012 2007-03-23  Chris Toshok  <toshok@ximian.com>
11013
11014         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
11015         format objects if the format spec is "".  Fixes bug #80889.
11016
11017 2007-03-22  Miguel de Icaza  <miguel@novell.com>
11018
11019         * ToolStripPanel.cs (Join): added stubs to build PDN3
11020
11021         * Control.cs (AutoScrollOffset): Add.
11022
11023         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
11024         property, its only implemented for Win32, on X11 it defaults to
11025         some hardcoded value.
11026
11027         * ToolStripItem.cs (AllowDrop): Add property
11028
11029 2007-03-22  Mike Kestner  <mkestner@novell.com>
11030
11031         * ListView.cs : in FullRowSelect Details mode, only enable box
11032         selection if the user clicks over the "item" column outside of the
11033         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
11034
11035 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11036
11037         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
11038           handle is not created yet.
11039         * Form.cs: Select: Don't call CreateHandle if the handle is already
11040           created, avoids a stack overflow on Windows when we are recreating
11041           controls.
11042         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
11043           they are made visible, and override AfterTopMostControl to keep
11044           them on top when other controls are brought to front.
11045           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
11046           or force_*scroll_visible is true (old implementation always shows
11047           scrollbars when needed, no matter what auto_scroll was set to).
11048         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
11049           IsHandleCreated check.
11050
11051 2007-03-22  Andreia Gaita  <avidigal@novell.com>
11052
11053         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
11054         row or col separator.
11055         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
11056
11057 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
11058
11059         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
11060
11061 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
11062
11063         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
11064         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
11065         every time. Fixes #80410.
11066
11067 2007-03-22  Chris Toshok  <toshok@ximian.com>
11068
11069         * BindingSource.cs (AddNew): partially implement.
11070
11071         remove a couple of NotImplementedException's
11072         to get bug #81148 closed.
11073
11074 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
11075
11076         [Fixes #80380]
11077         
11078         * Control.cs:
11079         - UpdateCursor method added to update the screen cursor.
11080         - GetAvailableCursor method added to return cursor for enabled tree,
11081         it searches for cursor on control and it's parent's for enabled control.
11082         - Call UpdateCursor method on setter of Cursor property.
11083         - On setter of Enabled call UpdateCursor when it is false, we need to
11084         change cursor to normal (or to this parent cursor) because cursor 
11085         setting theres no effect to disabled controls.
11086         - Some minor source changes to follow the coding style guidelines.
11087
11088         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
11089         controls.
11090
11091 2007-03-22  Chris Toshok  <toshok@ximian.com>
11092
11093         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
11094         generates.
11095
11096 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11097
11098         * XplatUIX11.cs: Implement default locations for forms.
11099         * Form.cs: Completely rework startup location for forms. Fixes #79964.
11100         * Hwnd.cs: Add previous_child_startup_location (to track the current
11101           startup location for any child forms of the current form) and
11102           previous_main_startup_location (to track the startup location for
11103           the current toplevel form).
11104
11105 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
11106
11107         * Control.cs: Don't trigger a layout if an implicit control is added
11108         that isn't visible.  Also, don't notify the owner when an implicit control
11109         is added.  (Owners shouldn't even know about their implicit controls.)
11110
11111 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
11112
11113         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
11114         to save some re-layouts.
11115
11116 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
11117
11118         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
11119         [Fixes #81203]
11120
11121 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
11122
11123         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
11124         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
11125
11126 2007-03-21  Mike Kestner  <mkestner@novell.com>
11127
11128         * ListView.cs : disable selection update for non-left button clicks
11129         with mods and over selected items.  [Fixes #80524]
11130
11131 2007-03-20  Jackson Harper  <jackson@ximian.com>
11132
11133         * TextControl.cs:
11134         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
11135         \r\r\n, \n.
11136
11137 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11138
11139         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
11140           very probably a more complicated calculation there. Update the
11141           textbox' ForeColor and BackColor when the ComboBox' colors are
11142           changed. Change the border change in LayoutComboBox to only affect
11143           the textbox, not all the calculations there. Seems to fix most of
11144           #79436.
11145
11146 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11147
11148         * ComboBox.cs: Handle Home and End keys as well as all combinations of
11149           modifiers + navigation keys as input keys, enables advanced text
11150           selection in the combobox (like Shift+Left Arrow for instance).
11151           ComboTextBox now overrides Focused and returns whatever
11152           ComboBox.Focused returns, since it really should be focused
11153           whenever the ComboBox is. Fixes #80795. Also make the border around
11154           the text box one pixel bigger, as mentioned in #79436.
11155
11156 2007-03-20  Jackson Harper  <jackson@ximian.com>
11157
11158         * TreeView.cs: Don't offset the images, this was causing some
11159         artifacts when expanding/collapsing with images that were the
11160         exact height of the treenode.
11161
11162 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11163
11164         * TrackBar.cs: Query the theme for the correct value when the mouse
11165           moves and the thumb is pressed. 
11166         * Theme.cs: Added TrackBarValueFromMousePosition
11167         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
11168           implementation was updating the trackbar value when drawing, now
11169           the drawing methods only draw. Fixes #80900. Refactored the
11170           calculations out to TrackBarValueFromMousePosition and
11171           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
11172           according to the mouse position whenever it wants to. Changed the
11173           light coloured pen when drawing the thumb from ControlLight to
11174           ControlLightLight, because the ControlLight is the same colour as
11175           the background so the 3D effect is lost. 
11176
11177 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
11178
11179         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
11180         defined. Fixes #80784.
11181
11182 2007-03-20  Marek Habersack  <mhabersack@novell.com>
11183
11184         * ContextMenuStrip.cs: align with the change introduced in
11185         revision 74664.
11186
11187 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
11188
11189         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
11190         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
11191         in SetTopmost.
11192
11193 2007-03-19  Chris Toshok  <toshok@ximian.com>
11194
11195         * Control.cs (WmPaint): don't make use of the Handle property
11196         after an event is emitted, as the user could have closed the
11197         form/destroyed the control.  Store the Handle in a local variable
11198         and make use of that.  Fixes bug #80768.
11199
11200 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
11201
11202         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
11203         behavior in X11 environments.
11204
11205 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
11206
11207         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
11208         because on setter of topmost we dont call SetTopmost when handle is not
11209         created.
11210
11211 2007-03-20  Jackson Harper  <jackson@ximian.com>
11212
11213         * TextControl.cs: Need to use SelectionLength () not
11214         selection_length, since that var is reset to -1.
11215         - Draw the caret when we don't have focus.
11216         * TextBox.cs: The selectall actually doesn't occur until the first
11217         focus.
11218         * TextBoxBase.cs: Need to update the caret position after a
11219         selectall.
11220         
11221 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11222
11223         * ListView.cs: Enable scrolling when using Tile view.
11224
11225 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
11226
11227         [Fixes #80902]
11228
11229         * XplatUIDriver.cs: Abstract SetOwner method created.
11230
11231         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
11232         must be implemented and was masked as todo.
11233
11234         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
11235         GWL_HWNDPARENT.
11236
11237         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
11238         cheking for null owner to remove transient. The SetTopmost will be change
11239         on a decond step.
11240
11241         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
11242         SetTopmost. Now owned forms will work properly in win32 and X11.
11243
11244 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11245
11246         * MdiWindowManager.cs: Update function name.
11247         * Form.cs: After closing a form MdiParent is always null.
11248         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
11249           better what it should do: necessary book-keeping when the form is
11250           closed, it should not close the form itself.
11251
11252 2007-03-19  Andreia Gaita  <avidigal@novell.com>
11253
11254         * ListViewItem.cs: Fix back and fore color. The subitems only
11255         use their own colors if they are set, otherwise use the listview's
11256         colors. Don't set default colors on constructor for subitem.
11257         Fixes #79315.
11258
11259 2007-03-19  Mike Kestner  <mkestner@novell.com>
11260
11261         * ListView.cs : make box selection for Details views with 
11262         FullRowSelect conform to MS behavior when clicking in the "item" 
11263         column and clicking outside the defined columns.
11264         [Fixes case 5-6 of #80374]
11265
11266 2007-03-19  Chris Toshok  <toshok@ximian.com>
11267
11268         * ScrollableControl.cs: create the controls from within the ctor,
11269         but don't actually add them until our handle is created.  this
11270         fixes a NRE possibility jpobst found (if you override OnLayout in
11271         a subclass, it's called before your ctor).  Also, add a
11272         IsHandleCreated guard to UpdateSizeGripVisibility as well.
11273
11274 2007-03-19  Jackson Harper  <jackson@ximian.com>
11275
11276         * TextBox.cs: Reduce the amount of invalidation we do.
11277         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
11278         some of them are true by default on MS.
11279         - Add some functions to reduce the amount of invalidates we do.
11280         * TextControl.cs: Less invalidation.
11281
11282 2007-03-19  Chris Toshok  <toshok@ximian.com>
11283
11284         [ Fixes #81773, and *seems* to fix #81553 as well ]
11285
11286         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
11287         AccumulateDestroyedHandles.  We need to do it *after* we send
11288         WM_DESTROY, as the user's code can access Control.Handle in
11289         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
11290         move the WM_DESTROY/zombie handling to before the call to
11291         XDestroyWindow.  For some reason without this ordering
11292         FormTest.RecreateHandle hangs.  This ordering is semantically
11293         equivalent, however, as XDestroyWindow is async anyway.
11294
11295 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
11296
11297         * RichTextBox.cs: Reset backcolor_set after setting default.
11298
11299 2007-03-19  Chris Toshok  <toshok@ximian.com>
11300
11301         * ScrollableControl.cs: the scroll position should not effect the
11302         canvas size.  commit patch from georgegiolfan@yahoo.com, which
11303         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
11304         
11305 2007-03-19  Chris Toshok  <toshok@ximian.com>
11306
11307         * ScrollableControl.cs: clean this up a bit.  create the
11308         scrollbars in the ctor and just show/hide them as needed.  Also,
11309         make hscroll_visible/vscroll_visible internal to Recalculate, and
11310         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
11311         everywhere else.  This seems to fix the scrollbars appearing
11312         beneath the content for me (i have *no* idea why that is,
11313         however.)
11314
11315 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
11316
11317         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
11318         some redundacy for stuff in Anchor and Dock that base will take care of.
11319         [Fixes #80762]
11320
11321 2007-03-19  Mike Kestner  <mkestner@novell.com>
11322
11323         * ListView.cs : make box selection for Details views without 
11324         FullRowSelect dependent on the text bounds, not item bounds.
11325         * ListViewItem.cs : add an internal property to obtain the TextBounds
11326         in Details view.  [Fixes case 1-4 of #80374]
11327
11328 2007-03-19  Andreia Gaita  <avidigal@novell.com>
11329
11330         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
11331         we're < 2.0. #78448 && #80316
11332
11333 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
11334
11335         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
11336         have the same style available as the previously selected one.  Also,
11337         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
11338
11339 2007-03-19  Jackson Harper  <jackson@ximian.com>
11340
11341         * TextControl.cs: Add an alignment property that all new lines
11342         will be given.
11343         - Make sure to use the align shift when calculating the line's X
11344         position.
11345         * TextBox.cs: Set the alignment on the document as well as on all
11346         the document lines.
11347
11348 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11349
11350         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
11351           throw if setting the parent of an mdichild that already has an
11352           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
11353           AssemblyProductAttribute in the assembly, use the type's namespace (as
11354           MS seems to do). CreateControl: don't create the handle if the control
11355           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
11356           create handle if the control is not a form. Change FocusInternal to
11357           virtual so that it can be overriden by Form.
11358         * TextBox.cs: Update call to FocusInternal.
11359         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
11360           form is not a toplevel form when it's a mdi child, so update is_toplevel
11361           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
11362           hasn't been created. Show (IWin32Window): Don't allow this overload for
11363           toplevel windows. CenterToParent/CenterToScreen/Select: create the
11364           handle as MS does. SetVisibleCore: if called on a MdiChild and the
11365           parent isn't visible yet, save the visibility and restore it when the
11366           parent is made visible.
11367         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
11368           methods, since the visibility of the scrollbars can be changed from
11369           several places, not only from AutoScroll.
11370           [Fixes #81179]
11371
11372 2007-03-19  Jackson Harper  <jackson@ximian.com>
11373
11374         * RichTextBox.cs: Enable shortcuts by default.
11375         * TextBoxBase.cs: Add conditional shortcuts.  
11376
11377 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
11378
11379         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
11380
11381 2007-03-19  Chris Toshok  <toshok@ximian.com>
11382
11383         [ Fixes bug #80604]
11384         
11385         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
11386         swallow the message we're waiting on, instead of delivering it, as
11387         this is only used for the WM_SHOWWINDOW raised from
11388         MapWindow/UnmapWindow, and the message needs to be generated
11389         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
11390         before doing the Map/Unmap.  Also make sure that the Hwnd is still
11391         alive after the message has been handled.
11392
11393         *before* the window is shown.
11394
11395         * Control.cs (CreateControl): guard a few more things inside the
11396         if (!is_created) block, as we might end up being called again -
11397         yay .net.
11398         (WmShowWindow): call CreateControl if we're showing the control.
11399
11400 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11401
11402         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
11403           controls without a handle if they have any parent with a handle. In
11404           Dispose add a check whether the handle is created or not before
11405           calling BeginInvoke, this removes the need of the extra disposing
11406           parameter (which was bogus anyway since it didn't prevent the
11407           invoke from happening, it only skipped the check for an existing
11408           handle, meaning that the invoke would call on an inexistent
11409           handle).
11410
11411 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
11412
11413         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
11414         appears in taskbar.
11415
11416 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
11417
11418         * MessageBox.cs:
11419         - Fixed a problem that dont show help button for messages with 3 buttons.
11420         - Refactory button size and position calculations, now dont use fixed 
11421         values, also fixed button sizes (#80043) and form's border space.
11422         - AddButton method created, now all other AddButton methods call this one.
11423         - Some other source code cosmetic changes.
11424
11425 2007-03-18  Jackson Harper  <jackson@ximian.com>
11426
11427         * RichTextBox.cs: Don't do this all fonts must match check if
11428         there is only one char selected.
11429
11430 2007-03-18  Jackson Harper  <jackson@ximian.com>
11431
11432         * TreeView.cs: ScrollWindow works properly now, so we don't need
11433         to screw around with the scroll area.  This fixes some artifacts
11434         when expanding and collapsing.
11435
11436 2007-03-18  Jackson Harper  <jackson@ximian.com>
11437
11438         * TextBoxBase.cs: Allow updating the selection position when the
11439         cursor is outside the textarea, but we have a capture.
11440         * TextControl.cs: A special case for when the cursor is outside
11441         the bounds of the TB.
11442         
11443 2007-03-18  Jackson Harper  <jackson@ximian.com>
11444
11445         * TextBoxBase.cs: Remove image pasting code for now.  There is no
11446         way to get an image on the clipboard right now anyways.
11447         * TextControl.cs:
11448         * RichTextBox.cs: Use the new RTF Picture class for pictures.
11449
11450 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
11451
11452         * MessageBox.cs:
11453         - Set window properties in constructor intead of on CreateParams.
11454         - Remove topmost from Window ExStyle.
11455         - Set ShowInTaskbar to false.
11456         - Set form border to FixedDialog.
11457         - Some cosmetic changes and remove unneeded comments.
11458         - It fixes itens 2,3 and 4 of bug #80043.
11459
11460 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
11461
11462         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
11463         none was explicitly set. Fixes part of bug #79949.
11464
11465 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
11466
11467         * ToolStripComboBox.cs: Add AutoComplete*.
11468
11469 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
11470
11471         * ToolStripComboBox.cs: Add FlatStyle.
11472
11473 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
11474
11475         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
11476         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
11477
11478 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11479
11480         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
11481           CheckBox.cs, RadioButton.cs, BindingSource.cs,
11482           DataGridColumnStyle.cs: Remove warnings.
11483
11484 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11485
11486         * Menu.cs: MergeMenu: Check menu argument for null before looping over
11487           it.
11488         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
11489           visibility of mdi child forms. FormSizeChangedHandler: update the
11490           maximized size if size has changed while maximized.
11491         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
11492           creating the handle.
11493         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
11494           avoid creating the handle if not created.
11495         * XplatUI.cs: Update debug output.
11496         * XplatUIStructs.cs: Added ToString's for a couple of structs.
11497
11498 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
11499
11500         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
11501         ProcessCmdKey().
11502         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
11503         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
11504         Implement keyboard shortcuts.
11505
11506 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
11507
11508         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
11509         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
11510         ColorDialog and all derived classes.
11511
11512 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
11513
11514         [ Fixes bug #79828 ]
11515
11516         * ToolBar.cs:
11517         - Rename ToolBarButtonInfor to ToolBarItem.
11518         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
11519         - Maintain an array of ToolBarItem, used instead of ToolBarButton
11520         collection to be able add same button more than one time on a toolbar.
11521         - Refactory all properties and methods to use ToolBarItem. 
11522
11523         * ToolBarButton.cs: 
11524         - Remove all propeties and methods that is now in ToolBarItem.
11525         - Rectangle propery now gets the rectangle from first ToolBarItem to
11526         mimic win32 behavior.
11527         - Size calculation and layout methods also removed.
11528
11529         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
11530         ToolBarItem instead of ToolBarButton to right drawing buttons when
11531         same button/separator was added more than one time to ToolBar.
11532
11533         * ThemeNice.cs: Same as above. 
11534
11535 2007-03-15  Andreia Gaita  <avidigal@novell.com>
11536
11537         * XplatUIX11.cs: Fire extra MouseMove events right after
11538         MouseDown and MouseUp, emulating win32's <censored> behaviour
11539         for apps that rely on it.
11540
11541 2007-03-15  Jackson Harper  <jackson@ximian.com>
11542
11543         * TextControl.cs:
11544         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
11545         it is drawn on the controls client window and there is no NC
11546         area.
11547         - Set the background color to gray on 2.0 when we are readonly.
11548
11549 2007-03-15  Chris Toshok  <toshok@ximian.com>
11550
11551         [ Fixes bug #81144 ]
11552         
11553         * XplatUIX11.cs: implement VirtualScreen independently of
11554         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
11555         property.
11556
11557 2007-03-15  Chris Toshok  <toshok@ximian.com>
11558
11559         * Hwnd.cs: add an internal field for the cached_window_state.
11560
11561         * XplatUIX11.cs: cache the window state, invalidating the cache
11562         (and thus re-querying the X server) only when we see an update to
11563         the _NET_WM_STATE property.
11564
11565 2007-03-15  Chris Toshok  <toshok@ximian.com>
11566
11567         * BindingSource.cs: get a lot of the unit tests working.
11568
11569 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
11570
11571         * Control.cs: Modify UpdateStyles to store distances when bounds >=
11572         0 instead of just bounds > 0.  [Fixes bug #80912]
11573
11574 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
11575
11576         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
11577         and methods.
11578
11579 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
11580         
11581         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
11582         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
11583         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
11584         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
11585
11586 2007-03-15  Chris Toshok  <toshok@ximian.com>
11587
11588         [ Fixes #81101 ]
11589         
11590         * Control.cs: add Ivan's fix for 81101, with a slight modification
11591         - you can set control.Target to null.
11592
11593 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
11594
11595         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
11596         HideDropDown, use Hide instead to prevent an NRE.
11597         [Fixes bug #81147]
11598
11599 2007-03-14  Jackson Harper  <jackson@ximian.com>
11600
11601         * TextBoxBase.cs: Mess with the creation stuff a little. We need
11602         to calculate the document before the handle is created, in some
11603         cases. (Actually just one case).
11604
11605 2007-03-14  Jackson Harper  <jackson@ximian.com>
11606
11607         * TextBoxBase.cs: Need to display the caret after letting the base
11608         wndproc handle the focus methods, because the caret display
11609         methods check the focus state.
11610         - Try to display the caret after updating it's position with SelectWord.
11611         - Don't need to do an immediate update on this recalc, since there
11612         will be an invalidate anyways.
11613
11614 2007-03-14  Jackson Harper  <jackson@ximian.com>
11615
11616         * TreeView.cs: Some workarounds so that we can match event order a
11617         little better.
11618
11619 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
11620
11621         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
11622         #80803. Avoid NullReferenceException when Control does not have
11623         parent. Fixed different blinkstyle issues. Only subscribe to Tick
11624         event a single time. Only draw error icon when control is created and
11625         visible. Fixes failing unit tests.
11626
11627 2007-03-14  Andreia Gaita  <avidigal@novell.com>
11628
11629         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
11630         Selecting events. Fire Leave and Enter events when changing tabs.
11631
11632 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
11633
11634         * TreeView.cs: Add TreeViewNodeSorter.
11635         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
11636
11637 2007-03-14  Chris Toshok  <toshok@ximian.com>
11638
11639         * Form.cs: go ahead and remove the RecreateHandles that jpobst
11640         removed earlier and I had him add back it.  It turns out metacity
11641         *does* in fact handle the MOTIF_WM_HINTS property changing, it
11642         just doesn't redraw the window titlebar until you resize the
11643         window.  This also means we aren't recreating the entire window
11644         hierarchy on X when you change this property.  And it looks better
11645         on windows, too.
11646
11647 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11648
11649         * ListViewItem.cs:
11650         * ListView.cs: Collecting selection information
11651         is now done in SelectedIndexCollection rather than in
11652         SelectedListViewItemCollection. This is done so we can
11653         have the selection information code in one single place
11654         (virtual mode selection information entirely depends on
11655         SelectedIndexCollection).
11656
11657 2007-03-13  Miguel de Icaza  <miguel@novell.com>
11658
11659         * ErrorProvider.cs: Add stubs for ISupportInitialize
11660
11661 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11662
11663         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
11664         in the right order with the right values, from the Checked property, 
11665         just as MS does (instead of triggering them from ListView).
11666
11667         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
11668
11669 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11670
11671         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
11672         the correct handler in OnItemCheck method (ItemCheckEventHandler 
11673         instead of EventHandler). This used to throw an InvalidCastException.
11674
11675 2007-03-13  Jackson Harper  <jackson@ximian.com>
11676
11677         * TextBoxBase.cs: Calculate the document before the handle is
11678         created, so there isn't an extra invalidate called.
11679
11680 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
11681
11682         * Form.cs: Don't set owner in ShowDialog until we are sure
11683         that we aren't going to throw an exception.  [Fixes bug #80773]
11684
11685 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
11686
11687         * TreeView.cs: Make it compile.
11688
11689 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
11690
11691         * Control.cs: Another place we don't call SizeFromClientSize.
11692         * Form.cs: Another place we don't call SizeFromClientSize.
11693         [Fixes bug #81125]
11694
11695 2007-03-12  Jackson Harper  <jackson@ximian.com>
11696
11697         * TreeView.cs: Basically emulating some strangness here with
11698         exanding nodes and setting node positions when windows aren't
11699         created.
11700         - Also attempting to walk the node tree less than previously, and
11701         just use visible order calculations for determining offsets.
11702         - oops made scrolling backwards.
11703         * TreeNode.cs: We need to start nodes with a zero visible order,
11704         because the order calcs are based on the first nodes order.
11705
11706 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
11707
11708         * Form.cs: Don't exit the program if RecreateHandle is called on
11709         the main form.
11710
11711 2007-03-12  Chris Toshok  <toshok@ximian.com>
11712
11713         * XEventQueue.cs: remove the use of PostQuitState.
11714
11715         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
11716         WM_QUIT message in GetMessage, return false (and if we're in the
11717         nested WaitForHwndMessage, repost the WM_QUIT message).
11718
11719 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
11720
11721         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
11722         or the MaximizeBox properties.  [Part of bug #80640]
11723
11724 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
11725
11726         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
11727         no links.
11728
11729 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
11730
11731         * ToolStripItem.cs: Fix some tests I broke by checking Visible
11732         instead of visible.
11733
11734 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
11735
11736         * FileDialog.cs: Use text of File name combobox to determine what
11737         files the user selected. Added tokenizer to parse the file names.
11738         Fixes bug #81123.
11739
11740 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
11741
11742         * Control.cs: We can't call SizeFromClientSize in the constructor,
11743         but we still need to do the same work, so make an internal version.
11744         [Fixes bug #80621]
11745
11746 2007-03-12  Jackson Harper  <jackson@ximian.com>
11747
11748         * TreeView.cs:
11749         * TreeNode.cs:
11750         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
11751         IsExpanded.
11752
11753 2007-03-12  Jackson Harper  <jackson@ximian.com>
11754
11755         * TextBoxBase.cs: Now that the handles are being created a little
11756         later, we need to make sure that the document is recalculated when
11757         the handle is created.
11758
11759 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
11760
11761         * Theme.cs: GetLinkFont abstract method added.
11762         
11763         * LinkLabel.cs: 
11764         - Remove CalcTrimRectangle, no longer needed.
11765         - Factor also remove, position issues must be fixed in libgdiplus.
11766         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
11767         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
11768         care about font used to draw links.
11769         - Set TabStop to true when control is "Selectable", control is selectable
11770         when have one or more links. Fixes #80501 (test case is also added).
11771         - Set the LinkArea values after links change, LinkArea values must be
11772         based in first link position and size, a test case was created.
11773         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
11774         the attribute must be true LinkArea.Length > 0. The same was applied to
11775         TabStop.
11776         
11777         * ThemeWin32Classic.cs: 
11778         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
11779         in draw method.
11780         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
11781         color change.
11782         - Draw focus rectangle for every parts focused, including parts that 
11783         is on another line, its because regions returns various rectangles
11784         and not only one. Needed to mimic W32 look.
11785         - Uses Graphics.Clip to delimite region painted, it mean that now 
11786         complete text is passed to DrawString, with this we solve layout
11787         issues without create another text renderer.
11788         - Uses Region.Intersect to fix some flickers problems, now only needed
11789         parts will redrawed.
11790         - This changes fixes #79614 and some other unreported issues, on Linux 
11791         some layout problems still remain, the problem is under 
11792         MeasureCharacterRanges but it is an libgdiplus bug.
11793
11794 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
11795
11796         * TextBox.cs: Set for foreground color.
11797         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
11798         this is already done in Control.
11799
11800 2007-03-10  Jackson Harper  <jackson@ximian.com>
11801
11802         * TextBox.cs: Set the background color, but reset the
11803         backcolor_set flag which is just for the user setting the
11804         background color.
11805
11806 2007-03-09  Chris Toshok  <toshok@ximian.com>
11807
11808         * Control.cs: really remove the call to XplatUI.SetVisible from
11809         CreateHandle(), like I said I did when I merged the branch.
11810
11811         * BindingSource.cs: implement some more of this stuff.
11812
11813 2007-03-09  Jackson Harper  <jackson@ximian.com>
11814
11815         * TextBox.cs: Don't explicitly set our background colors.
11816         * TextControl.cs:
11817         * TextBoxBase.cs: Draw readonly text.
11818         - Need to invalidate when backcolor or readonly are changed.
11819         
11820 2007-03-09  Jackson Harper  <jackson@ximian.com>
11821
11822         * TextBoxBase.cs: Don't set the forecolor until the handle is
11823         created.
11824         - Do not raise OnPaint, and removed some old debug code.
11825
11826 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
11827
11828         * ScrollableControl.cs: Fix mouse wheel scrolling.
11829
11830 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
11831
11832         * Control.cs: Wire up MouseDoubleClick event.
11833
11834 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
11835
11836         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
11837         top or bottom.
11838         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
11839         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
11840         item is added.  This logic was moved to ToolStrip.OnItemAdded.
11841         [Fixes bug #81090]
11842
11843 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11844
11845         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
11846
11847 2007-03-08  Jackson Harper  <jackson@ximian.com>
11848
11849         * TreeView.cs: Show the correct image for selected node (this used
11850         to work, not sure how the code got deleted). Also implemented 2.0 feature
11851         SelectedImageKey.
11852
11853 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11854
11855         * ListView.cs:
11856         * ListViewItem.cs: Cache index in items when retrieving them
11857         in VirtualMode.
11858
11859 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
11860
11861         * ToolStripItem.cs: Don't return the explicit_size if we are using 
11862         AutoSize.  Fixes invalidation issue when user has explicitly set a
11863         size and has AutoSize = true.
11864
11865 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
11866
11867         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
11868
11869 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
11870
11871         * DataGridView.cs: Remove event handler from DataView when a
11872         DataTable is used as DataSource.
11873
11874 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
11875
11876         * Control.cs: Create internal setter for client_size to allow it to be
11877         set without triggering resizing code.
11878         * Form.cs: Calculate client_size in constructor, only change client_size
11879         in FormBorderStyle property if Handle has been created.
11880         [Fixes #80574, #80791]
11881
11882 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
11883
11884         * SystemInformation.cs: Add TerminalServerSession.
11885
11886 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
11887
11888         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
11889         TreeView code.
11890
11891 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
11892
11893         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
11894         Handle before we were supposed to.  Now checks ActivateOnShow property
11895         in Control.
11896         * Control.cs: Add internal ActivateOnShow property.
11897         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
11898         for ActivateOnShow.
11899         * Hwnd.cs Remove no longer needed no_activate field.
11900
11901 2007-03-07  Jackson Harper  <jackson@ximian.com>
11902
11903         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
11904         2.0 properties
11905         * DrawTreeNodeEventHandler.cs: Add
11906         * DrawTreeNodeEventArgs.cs: Correct default value.
11907         
11908 2007-03-07  Chris Toshok  <toshok@ximian.com>
11909
11910         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
11911         to be called before NativeWindow.WndProc.  Put the HwndCreating
11912         magic there to hook up our Hwnd's to handles.
11913
11914 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
11915
11916         * DataGridView.cs: Comment out debug code.
11917
11918 2007-03-07  Chris Toshok  <toshok@ximian.com>
11919
11920         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
11921         to make the rest of the world happy]
11922
11923         * Control.cs (CreateHandle): there's no need to call
11924         XplatUI.SetVisible here, it's effectively done by
11925         XplatUI.CreateWindow on X now, and always was on windows.
11926
11927         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
11928         shortcircuit out of the loop if we have a message loop running on
11929         this thread.
11930
11931         [Changelog from merge]
11932
11933         2007-03-05  Chris Toshok  <toshok@ximian.com>
11934
11935                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
11936                 causes handle creation.
11937
11938         2007-02-28  Chris Toshok  <toshok@ximian.com>
11939
11940                 * ApplicationContext.cs: Add a flag to make sure we only raise the
11941                 ThreadExit event once (ExitThreadCore can be indirectly called
11942                 from a few places.)  I don't like the additional flag, but it
11943                 makes the event ordering/count correct.
11944
11945                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
11946                 without locking the collection.  An enumerator doesn't give us any
11947                 protection from modification anyway.  Lock the thread hash and
11948                 replace the complicated enumerator loop with a foreach.
11949                 (Application.CloseForms): make internal so it can be called from
11950                 ApplicationContext.  This should probably be moved to MWFThread.
11951                 (Application.ExitThread): don't call MWFThread.Current.Exit()
11952                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
11953                 when the runloop exits (in response to WM_QUIT.)
11954                 (Application.RunLoop): add a comment (and check) for
11955                 context.MainForm being null after setting context.MainForm.Visible
11956                 = true.  This is because you're perfectly free to dispose of a
11957                 form in VisibilityChanged.  Chalk this up to another case where we
11958                 need to synchronously generate WM_ACTIVATE from Control.Show.
11959                 Also, add handling for WM_QUIT here so we'll exit the loop.
11960                 
11961                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
11962                 fact that we don't wait if we're only unmapping the whole_window
11963                 makes me a bit nervous, but it doesn't seem to cause any problems
11964                 yet.
11965
11966                 also, add a comment about the stupid, broken and wrong resetting
11967                 of PostQuitState to false in GetMessage().
11968
11969                 In PostQuitMessage, we need to add a WM_QUIT message to the
11970                 thread's queue.  We use the FosterParent to get the right
11971                 handle/hwnd/queue.
11972
11973                 Lastly, in SetVisible, we need to unmap both windows, since the
11974                 waiting only happens when we're unmapping the client window.  So
11975                 now, the *only* time we unmap just the whole_window is in the hack
11976                 for resizing a control to 0,0.
11977                 
11978         2007-02-21  Chris Toshok  <toshok@ximian.com>
11979
11980                 * Application.cs (CloseForms): rewrite this so that we don't
11981                 modify the list while we're traversing it.
11982
11983         2007-02-20  Chris Toshok  <toshok@ximian.com>
11984
11985                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
11986                 of OnHandleCreated.
11987                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
11988                 handle is created.  otherwise we'll create it here.
11989                 (VerticalScrollEvent): same here.
11990
11991                 * Application.cs (CloseForms): call Form.Dispose, don't post
11992                 WM_CLOSE_INTERNAL.
11993
11994                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
11995                 here. Application should Dispose() of the Form's.
11996
11997                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
11998                 WM_DESTROY as well.
11999                 (MapWindow,UnmapWindow): only actually do the waiting for
12000                 SHOWWINDOW if the control we're dealing with is a Form.
12001                 (CreateWindow): if the control isn't a form, SendMessage
12002                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
12003
12004                 * Control.cs (SetVisibleCore): always use is_visible here, not
12005                 value.  If we use value, we can end up re-setting something
12006                 visible if, for instance, you do Control.Hide() in a delegate
12007                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
12008
12009         2007-02-20  Chris Toshok  <toshok@ximian.com>
12010
12011                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
12012                 the message we need.  PeekMessage returning false should not be a
12013                 condition under which we exit the loop.
12014
12015         2007-02-15  Chris Toshok  <toshok@ximian.com>
12016
12017                 * Control.cs (Refresh): only refresh if we've got a handle and are
12018                 visible.
12019                 (CreateAccessibilityInstance): CreateControl() here.
12020                 (UpdateChildrenZOrder): complicate the code loop even more by
12021                 taking into account controls that haven't had their handle
12022                 created, and those that aren't visible.  But on the flip side,
12023                 simplify the code by splitting it into two loops.  one which
12024                 builds up the list of child controls we're interested in, and the
12025                 other that sets the z order of those children.
12026
12027         2007-02-14  Chris Toshok  <toshok@ximian.com>
12028
12029                 * Control.cs: Control.AccessibilityObject causes the control to be
12030                 created, not just the handle.
12031
12032         2007-02-14  Chris Toshok  <toshok@ximian.com>
12033
12034                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
12035                 problem on X where a window might have its handle created (and be
12036                 visible) while the window is unmapped.  calling XConfigureWindow
12037                 on an unmapped window is bad, and generates X errors.
12038
12039         2007-02-13  Chris Toshok  <toshok@ximian.com>
12040
12041                 * Control.cs (CreateHandle): don't loop over our children setting
12042                 their parent here.  do it when in WndProc when we're shown.
12043                 (UpdateChildrenZOrder): make this internal so we can call it from
12044                 ScrollableControl.
12045                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
12046                 creating its handle.  Also, remove the calls to PerformLayout from
12047                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
12048                 OnVisibleChanged only seems to be called directly here for the
12049                 toplevel control.  It's propagated down the window hierarchy by
12050                 calls to child.OnParentVisibleChanged.
12051                 (OnVisibleChanged): don't do layout here - it's done (oddly
12052                 enough, according to a glance at stack traces on ms.net..) in
12053                 ScrollableControl.
12054                 
12055                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
12056                 z order of our children before calling PerformLayout.
12057
12058         2007-02-12  Chris Toshok  <toshok@ximian.com>
12059
12060                 [big change, fixes #80020]
12061                 
12062                 * AccessibleObject.cs: we need to make owner internal again to fix
12063                 some of ControlAccessibleObject.
12064
12065                 * Control.cs: lots of changes here.  add support for WM_CREATE,
12066                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
12067                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
12068                 we create child controls.  leave the MonoTODO's for the
12069                 accessibility calls, but fix the exceptions so the tests pass.
12070
12071                 Add the InvalidOperationExceptions to Invoke methods, and remove a
12072                 couple of InvokeInternal methods we aren't using.
12073                 
12074                 Also, add a couple of CreateHandle calls in places where we know
12075                 the handles are being created but our code doesn't reference
12076                 .Handle.
12077
12078                 Make SetVisibleCore call OnVisibleChange if the handle isn't
12079                 created.  If the handle is created, we rely on XplatUI.SetVisible
12080                 generating the event synchronously.
12081                 
12082                 Lastly, make sure we don't use this.Handle inside CreateHandle,
12083                 because we can call back into client (and that code can dispose of
12084                 the control).
12085
12086                 * XplatUIStructs.cs: misc/cleanup.
12087
12088                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
12089                 although we don't populate the wParam properly.
12090                 (CreateWindow): generate WM_CREATE.
12091                 (MapWindow,UnmapWindow): make these calls synchronous, at great
12092                 performance expense (particularly in the unmap case), to match
12093                 win32 behavior.
12094
12095                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
12096                 to call it.
12097                 (set_MdiParent): don't recreate the handle unless it's been
12098                 created already.
12099                 
12100                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
12101                 it's created.
12102
12103                 * NativeWindow.cs: this is probably the weirdest part of the
12104                 patch.  We need a way to link up the window being created to the
12105                 WM_CREATE message.  Since we can only be creating one window at a
12106                 time on a given thread, we keep track of a per-thread reference so
12107                 we can dispatch it properly.  We also need to keep track of the
12108                 Hwnd currently being created so that the win32 backend doesn't
12109                 have problems.
12110                 
12111                 * XplatUIWin32.cs: a similar change to the one we made in
12112                 NativeWindow.cs.
12113
12114 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
12115
12116         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
12117         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
12118         to draw the menu shortcut string.
12119
12120 2007-03-07  Jackson Harper  <jackson@ximian.com>
12121
12122         * TreeNode.cs: Add the 2.0 collapse method.
12123
12124 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
12125
12126         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
12127
12128 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
12129
12130         * DataGridView.cs: Change DataSource will clear column and row
12131         lists. Call Invalidate() to reflect DataSource change.
12132
12133 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
12134
12135         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
12136         and a new row is added to it.
12137
12138 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
12139
12140         * DataGridView.cs: Add columns when DataSource is en empty list but
12141         is a System.Data.DataView (from a System.Data.DataTable).
12142
12143 2007-03-06  Andreia Gaita  <avidigal@novell.com>
12144
12145         * Label.cs: Implement AutoEllipsis (2.0)
12146
12147 2007-03-06  Jackson Harper  <jackson@ximian.com>
12148
12149         * TreeView.cs: Implement 2.0 TopNode setter property.
12150         - Use a local var instead of the skipped_nodes field for computing
12151         how many nodes to skip.  Otherwise we won't scroll because the
12152         valuechanged handler checks if skipped_nodes is equal to the new
12153         value.
12154         - Implement 2.0 Sort method.
12155         - Add useless 2.0 DoubleBuffer property
12156         - Implement 2.0 LineColors property.  Lets you change the color of
12157         the lines in the tree. Terribly useful for creating non cohesive
12158         desktops.
12159         - Implement 2.0 image key feature.
12160
12161 2007-03-06  Jackson Harper  <jackson@ximian.com>
12162
12163         * TreeView.cs: We can't get the bounds of the nodes before raising
12164         the AfterSelect event, because that event could change the node's
12165         bounds (scrolling, font change, etc).
12166
12167 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12168
12169         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
12170         * Form.cs: Don't recreate handle when creating FormWindowManager, just
12171           update window styles. In CreateParams us VisibleInternal instead of
12172           VIsible to get the actual visible flag set for this form.
12173         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
12174           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
12175           handle the case when the form is already maximized, in which case
12176           it should be restored. Fixes #81043.
12177
12178 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12179
12180         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
12181
12182 2007-03-05  Jackson Harper  <jackson@ximian.com>
12183
12184         * TreeViewHitTestInfo.cs: implement.
12185
12186 2007-03-05  Jackson Harper  <jackson@ximian.com>
12187
12188         * InternalWindowManager.cs: class status fix.
12189
12190 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12191
12192         * InternalWindowManager.cs: All windows that have a parent
12193         are confined to their parent when they're being moved.
12194         Fixes #80822.
12195
12196 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
12197
12198         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
12199         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
12200
12201 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12202
12203         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
12204           buttons invisible before deciding which ones should be visible
12205           (fixes minimize/maximize buttons showing up in toolwindows). Remove
12206           an unused variable.
12207         * InternalWindowManager.cs: Remove warning.
12208
12209 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12210
12211         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
12212         to throw an InvalidOperationException is virtual mode is being used.
12213
12214 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
12215
12216         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
12217         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
12218         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
12219         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
12220         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
12221         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
12222
12223 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12224
12225         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
12226           driver.KeyboardDelay from XplatUI.KeyboardDelay 
12227         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
12228           (patch by Sergey Volk)
12229
12230 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12231
12232         * ToolWindowManager.cs: Added, contains logic for
12233           tool windows.
12234         * CreateParams.cs: Add a few helper methods and an
12235           internal variable to know which control the CreateParams belongs
12236           to.
12237         * Control.cs: Call Form.ChangingParent when the
12238           parent is about to be changed.
12239         * XplatUIX11.cs: DeriveStyles (): Set
12240           caption_height for all windows that have captions and are children.
12241           Update to use ToolWindowManager instead of InternalWindowManager
12242           for ToolWindows.
12243         * XplatUIWin32.cs: Set fake window styles for all
12244           windows that have window managers.
12245         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
12246           now duplicated for mdi windows when they are
12247           maximized, first for the buttons the window itself has, then for
12248           the buttons that appear in the menu bar. Makes things a little
12249           easier). Updated UpdateWindowDecorations, SetWindowState and the
12250           mouse eventhandlers accordingly.
12251         * Form.cs: Add ChangingParent (), contains the
12252           logic of what should happen when the parent changes. In MdiParent
12253           don't set things that ChangingParent () is doing. When handling
12254           WM_CLOSE, we can close the form if there are any other modal forms
12255           and the current form is a descendent of the modal form.
12256         * InternalWindowManager.cs: A lot of refactoring,
12257           the title buttons are now extracted to a separate container class
12258           that takes care of all button code (clicks, tooltips, etc). Moved
12259           Iconic|Maximized|Normal Bounds properties to this class from
12260           MdiWindowManager, so that the window state logic can succeed for
12261           other than mdi wm's. Implemented general window state change logic.
12262           Moved CreateButtons to ThemeWin32Classic, since the theme might
12263           override which buttons are available when as well as the exact
12264           location.
12265         * FormWindowManager.cs: Added, contains logic for
12266           normal forms.
12267         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
12268           which buttons go where (and if they are at all visible). 
12269           Removed special handling of maximized windows, since they aren't special. 
12270           In DrawManagedWindowDecorations don't try to draw the text if it is
12271           empty.
12272         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
12273           use whatever the wm gives us.
12274
12275 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
12276
12277         * ButtonBase.cs: Add 2.0 properties.
12278         * Button.cs: Override Draw for 2.0.
12279         * Control.cs: Add Entered and Selected properties.
12280         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
12281         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
12282         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
12283         buttons.
12284         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
12285
12286 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
12287
12288         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
12289
12290 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
12291
12292         * XplatUIWin32.cs: Register a new class with Windows each time we get
12293         a new ClassStyle.  [Fixes bugs #79432, #80817]
12294         * Controls.cs: Set the correct ClassStyle in CreateParams.
12295         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
12296
12297 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
12298
12299         * ListView.cs: Add fireEvent argument to ReorderColumn since the
12300         ColumnReordered event must not be signaled when modifying DisplayIndex
12301         of a ColumnHeader. Added internal ReorderColumns method which takes
12302         care of drawing, and updating the internal DisplayIndex of the
12303         ColumnHeader. Added AddColumn method which is invoked from
12304         ColumnHeaderCollection when adding or inserting columns, and which
12305         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
12306         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
12307         Recalculated dispay indices after removing a ColumnHeader.
12308         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
12309         match MS. Allows last display index to be returned after ListView
12310         is disposed. Update actual location of ColumnHeader when DisplayIndex
12311         is modified.
12312
12313 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
12314
12315         * LinkLabel.cs: Improve CalcTrimRectangle.
12316         
12317         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
12318
12319 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
12320
12321         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
12322         get rectangle as a result value.
12323
12324 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
12325
12326         * LinkLabel.cs: Theres some diferences between rectangle return from 
12327         MeasureCharacterRanges and the area used for DrawString to fix this 
12328         CalcMeasurementFactor method was created, it calcules the diferences
12329         to be use later to adjust rectangle in draw operations. Fixes #80473.
12330         
12331         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
12332         to adjust draw rectangle.
12333
12334 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
12335
12336         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
12337         text and some other changes to reduce and optimize source code.
12338
12339 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
12340
12341         * RadioButton.cs: Implement 2.0 event.
12342         * RelatedImageListAttribute.cs: Implement new class.
12343
12344 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
12345
12346         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
12347
12348 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
12349
12350         * CheckBox.cs: Implement 2.0 functionality.
12351
12352 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12353
12354         * ListView.cs: Refactor Add and AddRange methods of
12355         ListViewItemCollection, to not update the ListView
12356         everytime an item is added in AddRange. Also move the update
12357         code to a new CollectionChanged method, and call it
12358         from other methods that need it as well (this should also fix some
12359         bugs when Sorting is used).
12360
12361 2007-02-27  Jackson Harper  <jackson@ximian.com>
12362
12363         * TextControl.cs: Try to never let the caret stay in a non-text
12364         tag.
12365         * TextBoxBase.cs: Update the caret.
12366
12367 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
12368
12369         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
12370         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
12371         delete POINT structure, duplicate of one in XplatUIStructs.
12372         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
12373
12374 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
12375
12376         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
12377         edit box since otherwise the Label would immediately be set (even if
12378         the user did not modify the label). In OnKeyDown set Handled to true
12379         if Return or Escape was pressed. In ColumnHeaderCollection unlink
12380         columns that are to be removed. In ListViewItemCollection unlink items
12381         that are to be removed.
12382
12383 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
12384
12385         * TextRenderer.cs: If we set a GDI clip region, we need to clear
12386         it when we are done.  [Fixes bug #80949]
12387
12388 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
12389
12390         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
12391
12392 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12393
12394         * ListView.cs: I forgot to commit the changes for ListView 
12395         in my previous patch.
12396
12397 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
12398
12399         * Clipboard.cs: Partially implement an overload of SetDataObject.
12400         * Form.cs: Implement ShowWithoutActivation.
12401         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
12402
12403 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12404
12405         This is a first set of changes to make the Virtual mode works,
12406         by avoiding the retrieval of ListViewItem instances until
12407         draw time.
12408
12409         * ListView.cs: Store item position in the ListView instead of the
12410         ListViewItem, this way we don't request the Bounds property of
12411         ListViewItem inside the ListView calculations, as well as cache the item
12412         size in item_size field. Store indexes instead of ListViewItem
12413         instances in the matrix used by icon view. Add a ItemMatrixLocation
12414         struct to hold the row and col info of the matrix info.
12415
12416         * ListViewItem.cs: Don't store the location anymore, and only cache
12417         the rectangles for GetBounds. Use the ListView.GetItemLocation
12418         method to retrieve the actual location.
12419
12420 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
12421
12422         * TextRenderer.cs: Add clipping support, thanks to George.
12423         [Fixes bug #80949]
12424
12425 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
12426
12427         * ListViewItem.cs: Cancel label edit when item is removed from 
12428         ListView.
12429         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
12430         event before the edit textbox is displayed.  Added CancelEdit method
12431         which is used end to editing while ignoring the value set by the
12432         user. In EndEdit, set focus to ListView to avoid losing focus to
12433         other controls. In ListViewItemCollection.Clear, cancel editing of
12434         any of the items.  In Remove, cancel editing of item being removed.
12435         Avoid udplicate code by modifing RemoveAt to invoke Remove.
12436
12437 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
12438
12439         * FileDialog.cs: Update FSEntry when move is successful. Fixes
12440         bug #80948.  
12441
12442 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
12443
12444         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
12445         compatible with non X11 systems. Fixes #80901.
12446
12447 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
12448
12449         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
12450         whether the item should be unselected and reselect. We do no want this
12451         when we're starting to edit the label. Do not fire the 
12452         SelectedIndexChanged event from ListView when its already been fired
12453         by modifying ListViewItem.Selected. Fixes bug #80943.
12454
12455 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
12456
12457         * TextRenderer.cs: Previos commit logic was backwards.
12458
12459 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
12460
12461         * TextRenderer.cs: Don't add padding on MeasureText if we were
12462         sent the NoPadding flag.
12463
12464 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
12465
12466         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
12467         after DrawButton. To prevent image overlaps button borders SetClip and 
12468         ResetClip added before and after draw image. Fixes #79129.
12469
12470 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
12471
12472         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
12473         window size, it fix problem when you run under win32 that theres
12474         Size diferent than ClientSize. Also fix controls size and positions
12475         to mimic Win32. Fixes #80837.
12476
12477 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
12478
12479         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
12480         menu area to fix some problems for non X11 systems. Fixes #80613.
12481
12482 2007-02-22  Jackson Harper  <jackson@ximian.com>
12483
12484         * TreeNode.cs: When a node is expanded, set its is_expanded flag
12485         even if it doesn't have any children.
12486
12487 2007-02-22  Jackson Harper  <jackson@ximian.com>
12488
12489         * TreeView.cs: Calculate the top node 'on the fly', this
12490         eliminates issues where you need to click on the tree before
12491         scrolling it to get the top node computed correctly.
12492         * TreeNodeCollection.cs: We don't need to mess with the top node
12493         anymore.
12494
12495 2007-02-22  Jackson Harper  <jackson@ximian.com>
12496
12497         * DataGridViewRow.cs: Fix typo so height can actually be set.
12498         Patch by Peter Grimm.
12499
12500 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
12501
12502         * FileDialog.cs: Fixed support for renaming files and directories.
12503         * ListView.cs: Do not lose focus when edit is canceled. Process
12504         Escape as regular key (to prevent closing of dialogs).
12505
12506 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
12507
12508         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
12509         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
12510
12511 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
12512
12513         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
12514         did not modify label.
12515         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
12516         modified the text. Reset Label when user presses Escape in edit mode.
12517         Move focus to ListView after having cancelled or finished editing the
12518         label.
12519
12520 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
12521
12522         * ComboBox.cs: Removed unnecessary initializations. Marked items field
12523         private. Clear textbox when Text is set to null and SelectedIndex is
12524         already -1.
12525         * FileDialog.cs: Removed unnecessary initializations. Removed 
12526         workarounds for ComboBox bugs that are now fixed. Modified
12527         DefaultExt, InitialDirectory and Title property to change null to
12528         zero-length string in getters. Avoid directly accessing fields.
12529
12530 2007-02-20  Jackson Harper  <jackson@ximian.com>
12531
12532         * TextControl.cs: Remove RecalAlignments call, that was some
12533         debugging leftovers.
12534         - Don't use the line indent when we shouldn't.
12535         * RichTextBox.cs: Add support for paragraph left indents.
12536
12537 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12538
12539         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
12540         Seems like the class status pages doesn't catch params differences.
12541
12542 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
12543
12544         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
12545
12546 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
12547
12548         * ComboBox.cs: Setting Text should have no effect if item text of
12549         selected item exactly matches value. First lookup text using
12550         case-sensitive comparison, and fallback to case-insensitive comparison.
12551         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
12552         allow startIndex to be last index. Changed ArgumentOutOfRangeException
12553         paramname to match MS. Restart from first item if string is not found
12554         after startIndex. Fixed paramname of ArgumentNullException that is
12555         thrown for null value in ObjectCollection.Contains.
12556
12557 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
12558
12559         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
12560
12561 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12562
12563         * ListControl.cs: In SelectedValue use value.Equals to compare for
12564         equality instead of ==, otherwise it will fail for strings.
12565         Fixes #80794.
12566
12567 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12568         
12569         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
12570         since the caret won't show up unless ShowSelection is true. 
12571         Fixes #80795.
12572
12573 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12574
12575         * Application.cs: When disabling all forms but the main form, do not
12576           disable any descendants of the main form (such as mdi children or
12577           other parented forms). Fixes #80822 on Windows.
12578         * Form.cs: If we have a parent, set the WS_CHILD style.
12579         * Control.cs: Update the window styles if the control whose parent has
12580           changed is a form (the WS_CHILD style has to be switched).
12581
12582 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
12583
12584         * XplatUIStructs.cs: MsgUIState structure added.
12585
12586 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
12587
12588         * FileDialog.cs: Removed need for separate fileName field. On 2.0
12589         profile, do not check filename(s) for illegal character if filename(s)
12590         were set non-interactively but always check on 1.0 profile. Fixed NRE
12591          in DefaultExt and only strip off first leading dot. Improve exception
12592         message when invalid Filter is set. Do not ignore InitialDirectory if
12593         it does no exist. Store specified Title, and if empty use default
12594         title (depending on type of dialog). Added an internal DialogTitle 
12595         property for retrieving dialog title. Fixed logic of displayed dir to
12596         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
12597         string as its buggy.
12598         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
12599         FileName is a zero-length string (it can never be null). Override 
12600         DialogTitle property to set default title of dialog box.
12601         * SaveFileDialog.cs: Override DialogTitle property to set default
12602         title of dialog box.
12603
12604 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
12605
12606         * FileDialog.cs: Modify default text of filename and filetype labels
12607         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
12608         after we've updated the SelectedIndex. Fixes part of bug #80887.
12609         * SaveFileDialog.cs: Set text of filetype label.
12610
12611 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12612
12613         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
12614         label field. Needed by latest Jackson's fixes for ListView.
12615
12616 2007-02-16  Andreia Gaita  <avidigal@novell.com>
12617
12618         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
12619         print preview images.
12620
12621 2007-02-16  Jackson Harper  <jackson@ximian.com>
12622
12623         * ListView.cs: Make AfterLabelEdit work correctly.
12624         * FileDialog.cs: After changing the name of the folder, we have to
12625         make sure that it is created, or that we pop up an error because
12626         it already exists.
12627
12628 2007-02-16  Jackson Harper  <jackson@ximian.com>
12629
12630         * X11Dnd.cs: Implement aliases on mime handlers, so things like
12631         System.String are mapped to text.
12632         - Handle dataobjects, getting all the possible formats out of them
12633         - We dont need the drag event args before we give feedback. This
12634         allows feedback cursors to be immediate before selections have
12635         been converted.
12636
12637 2007-02-16  Jackson Harper  <jackson@ximian.com>
12638
12639         * TextBoxBase.cs: Modified the method for inserting images to
12640         taking a line and position instead of tag and position.
12641         * RichTextBox.cs: Handle PngBlip data by inserting the png image
12642         into the RTF file.
12643         * TextControl.cs: Allow images to be inserted as the first tag of
12644         a line.
12645         - Fix some off by one issues when we assume the first tag is a
12646         text tag, not an image tag.
12647
12648 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12649
12650         * ListView.cs: Set focus to ListView when ItemControl gets a
12651         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
12652         Fixes part of #80467.
12653
12654 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12655
12656         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
12657           validate Text input (if null or empty string reset Value to default
12658           value). Fixes #80830.
12659
12660 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12661
12662         * ListView.cs: Set owner as null for columns and items when
12663         Dispose is invoked. Fixes #80607.
12664
12665 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
12666
12667         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
12668         showing DropDowns, don't show a Grip when doing Flow layout.
12669         [This fixes the toolbox in PDN 2.72.]
12670         * ToolStripItem.cs: Add Anchor property and some internal properties to
12671         reduces needed changes to FlowLayout.
12672         * ToolStripOverflow.cs: Remove unused variable.
12673         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
12674         use it in the layout calculations.
12675
12676 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
12677
12678         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
12679         reported in #79640.
12680         
12681         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
12682         size calculation.
12683
12684 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
12685
12686         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
12687         MeasureString format, it can make button very large in some cases, it is
12688         strange but is what win32 do.
12689
12690 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
12691
12692         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
12693         size calculation.
12694
12695         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
12696         rendering, the value is based on MenuAccessKeysUnderlined.
12697
12698 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
12699
12700         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
12701         for most themes.
12702         
12703         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
12704         
12705         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
12706         and use MenuAccessKeysUnderlined instead.
12707
12708 2007-02-13  Andreia Gaita  <avidigal@novell.com>
12709
12710         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
12711         A selected control would not get a Focus call if:
12712                 - the default active control of the container is the same as
12713                   the one that was selected
12714                 - we are switching from one container to another
12715         Under these conditions, the container being selected already has
12716         an active_control, which is the same as the one being activated, 
12717         so set_ActiveControl would always return and not send the Focus
12718         call. Fix to check if the currently active control of the container
12719         is actually focused.
12720
12721 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
12722
12723         * StatusStrip.cs: Implement the spring layout.
12724         * ToolStripControlHost.cs: Make sure the hosted control's visibility
12725         always matches the host.
12726         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
12727         and TextAfterImage.
12728
12729 2007-02-13  Andreia Gaita  <avidigal@novell.com>
12730
12731         * Control.cs: Code reorganization only.
12732           - Reorganize the WndProc cases so that each case has it's own handling method, 
12733           to help with the no-line-numbering stack traces.
12734           - Formatting changes (it's vstudio's fault, really :p)
12735
12736 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12737
12738         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
12739           Thread.CurrentUICulture to match DateTimePicker's (and MS)
12740           behaviour.
12741
12742 2007-02-12  Jackson Harper  <jackson@ximian.com>
12743
12744         * RichTextBox.cs:
12745         * TextBox.cs: By default we have a non multiline document
12746         - use the multiline property instead of the internal variable
12747         * TextBoxBase.cs: Treat multiline and non multiline the same in
12748         most places.
12749         - Use the documents multiline flag instead of tracking it ourself
12750         * TextControl.cs: Attempt at getting multiline to match MS
12751         behavior.  Lines now track an offset, which is either their X or Y
12752         offset depending on whether or not we are in multiline mode.
12753         - Update all the methods to understand that lines have an X value.
12754         - Fix crash in Undo::Duplicate when empty lines are deleted.
12755
12756 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
12757
12758         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
12759         code moved to properties PreferredHeight and PreferredWidth. It solve the
12760         all problems when preferred sizes must be recalculated. Fixes #80801.
12761
12762 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
12763
12764         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
12765         font height when compatible_text_rendering is false. Partially fix #80801.
12766
12767 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
12768
12769         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
12770
12771 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
12772
12773         * Form.cs: Improved exception messages in ShowDialog.
12774
12775 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
12776
12777         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
12778         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
12779         if not set. Fixes bug #80764. Avoid accessing current_settings field
12780         directly.
12781
12782 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
12783
12784         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
12785         false.
12786
12787         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
12788         public in 2.0 and for easy maintenance and dont break compatibility it is 
12789         internal in 1.1.
12790         
12791 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
12792
12793         * ToolStripItem.cs: Implement using images from ImageList.
12794
12795 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12796
12797         * DateTimePicker.cs: Change default date-formatting culture from
12798           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
12799           seems to be the way MS does it.
12800
12801 2007-02-08  Andreia Gaita  <avidigal@novell.com>
12802
12803         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
12804         (the 6 was cut off on the right side)
12805
12806 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
12807
12808         * Form.cs: Tell MenuStrips to close when the form is clicked.
12809         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
12810         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
12811         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
12812         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
12813         support for Overflow, where items that do not fit are automatically
12814         reparented to a drop down menu.
12815         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
12816         Also: fixes bug #80747.
12817
12818 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12819
12820         * ComboBox.cs: Remove warning (unused code).
12821         * ScrollableControl.cs: Remove warning for 1.1 profile.
12822
12823 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12824
12825         * Form.cs: Remove a warning.
12826
12827 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12828
12829         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
12830           'g' specifier, not documented anywhere, but seems to always show up
12831           as a single space (might have something to do with the DateTime 'g'
12832           specifier, which is the era format, but since DateTimePicker can't
12833           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
12834           won't crash if the format has an unmatched quote. Now shows
12835           single-character formats correctly. Fixes #80744.
12836
12837 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
12838
12839         * StatusStrip.cs: Stretch property needs to call base.Stretch,
12840         not this.Stretch to fix stack overflow. [Fixes bug #80760]
12841
12842 2007-02-07  Chris Toshok  <toshok@ximian.com>
12843
12844         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
12845         background color.  it overwrites the background image we've
12846         already painted.  Fixes #80599.
12847
12848 2007-02-07  Chris Toshok  <toshok@ximian.com>
12849
12850         * DataGrid.cs: return immediately from Edit() when there are no
12851         columns.  Fixes #80662.
12852
12853 2007-02-07  Chris Toshok  <toshok@ximian.com>
12854
12855         * MessageBox.cs: fix #80625.  don't always show the Help button in
12856         2.0.  use the displayHelpButton parameter to determine if we
12857         should show it. Also, make the internal show_help field private.
12858
12859 2007-02-07  Chris Toshok  <toshok@ximian.com>
12860
12861         * Control.cs (SetVisibleCore): check in the proposed patch for
12862         80604, and set is_visible before calling CreateControl.
12863
12864 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
12865
12866         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
12867         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
12868         on it.
12869
12870 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
12871
12872         * MenuAPI.cs: hotkey_active internal field added, it is required because
12873         we need to know when hotkeys must be draw, before this change a keystate
12874         Navigating was used but we can have menu in navigating state without
12875         hotkeys. Fixes #80694.
12876         
12877         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
12878
12879 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12880
12881         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
12882           corresponding events and methods to be internal for 1.1 profile and
12883           public for 2.0 profile (required by SizeGrip).
12884         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
12885           implicit control list). Don't set the size nor the location of the
12886           SizeGrip anymore as it's not needed.
12887         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
12888           draw directly on the captured control (fixes #80656). Removed
12889           ShowGrip (it wasn't used anywhere), redraw (always true), added
12890           GetDefaultSize and GetDefaultRectangle to calculate defaults.
12891         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
12892           be called from SizeGrip.
12893
12894 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12895
12896         * Timer.cs: Throw ArgumentException if Interval <= 0.
12897
12898 2007-02-05  Jackson Harper  <jackson@ximian.com>
12899
12900         * TreeView.cs: We need to check scrollbar visibility when window
12901         visibility is updated, because non visible trees don't ever add
12902         scrollbars.
12903         * Cursor.cs: We want the override cursor to be reset to NULL when
12904         we set current cursor to the default cursor.
12905
12906 2007-02-05  Jackson Harper  <jackson@ximian.com>
12907
12908         * TextControl.cs: Don't have crlfs when we are non multiline.
12909         - Consolidate the line position.
12910
12911 2007-02-05  Jackson Harper  <jackson@ximian.com>
12912
12913         * X11Keyboard.cs: BACK+CTRL gets a special char code.
12914
12915 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12916
12917         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
12918           handling LeaveNotify->NotifyUngrab in order to send
12919           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
12920           after calling XUngrabPointer, so we call WindowUngrabbed directly
12921           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
12922         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
12923           MouseCaptureChanged correctly. Also create handles if changing
12924           Capture (matches MS behaviour).
12925
12926 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12927
12928         * SizeGrip.cs: Make the last change 2.0 only.
12929
12930 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12931
12932         * SizeGrip.cs: If resizing and the capture is lost, revert any size
12933           changes to initial size (fixes #80597).
12934
12935 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12936
12937         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
12938
12939 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12940
12941         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
12942           background) and only allow dragging if enabled. This way the
12943           sizegrip can be used to fill the open square that otherwise would
12944           have been shown in the bottom right corner of ScrollableControl
12945           when ScrollableControl is not suppose to support sizing.
12946         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
12947           sizegrip is shown and enabled, and hook up with necessary events.
12948
12949 2007-02-01  Chris Toshok  <toshok@ximian.com>
12950
12951         * DataGridTextBoxColumn.cs: clean up the
12952         GetFormattedString/GetColumnValueAtRow combination of functions.
12953         Also fix UpdateUI, and the initial state of
12954         IsInEditOrNavigateMode.
12955
12956         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
12957         aren't supposed to scroll the textbox here, we're supposed to
12958         scroll the datagrid.
12959
12960 2007-02-01  Chris Toshok  <toshok@ximian.com>
12961
12962         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
12963         setting the position.
12964
12965 2007-02-01  Chris Toshok  <toshok@ximian.com>
12966
12967         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
12968         here, since the most recent focus fixes keep us from generating
12969         the Leave event when our textbox gets focus.
12970         (Edit): we should be passing null for the column style's
12971         instantText parameter.
12972         
12973 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
12974
12975         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
12976         raised.  Fixes menu text/icons not showing up in PDN.
12977
12978 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12979
12980         * Control.cs: Remove code in constructor that makes every
12981         control with WS_CHILD set have initial location -1, -1.
12982
12983 2007-01-31  Jackson Harper  <jackson@ximian.com>
12984
12985         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
12986         XplatUIX11.
12987         * XplatUIX11.cs: Give teh keyboard to teh dnd.
12988
12989 2007-01-31  Jackson Harper  <jackson@ximian.com>
12990
12991         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
12992         - Remove some debug code.
12993
12994 2007-01-31  Jackson Harper  <jackson@ximian.com>
12995
12996         * XplatUIX11.cs: If you set the override cursor during a grab, it
12997         should actually override the grab cursor.  This comes into play
12998         when you are setting custom cursors in a DND feedback method.
12999
13000 2007-01-31  Jackson Harper  <jackson@ximian.com>
13001
13002         * X11Dnd.cs: Add support for handling the QueryContinue and
13003         GiveFeedback events.
13004         - Cancel drag and drop actions when the escape key is clicked.
13005         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
13006         can handle the ESCAPE key.
13007         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
13008         done when dnd events are continued after the button is released.
13009         - Add a new helper method so that dnd can translate key events.
13010
13011 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
13012
13013         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
13014         make it more obvious what is happening.
13015
13016 2007-01-30  Jackson Harper  <jackson@ximian.com>
13017
13018         * XplatUIX11.cs: Don't break when handling button release in drag
13019         and drop operations. We need that BUTTONUP message to get through
13020         so capture is released.
13021         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
13022         this is handled automatically when the mouse is down.
13023
13024 2007-01-30  Jackson Harper  <jackson@ximian.com>
13025
13026         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
13027         is closed, so we need to make sure that we aren't changing the
13028         dialog result when the OK (Open or Save) button has been clicked
13029         and we are closing the window ourselves.  Note we don't need to
13030         worry about the cache being written in this case, because it was
13031         already done in the previous FilOk call.
13032
13033 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13034         
13035         * DateTimePicker.cs: Remove a warning.
13036         * ComboBox.cs: Remove a couple of warnings.
13037
13038 2007-01-29  Chris Toshok  <toshok@ximian.com>
13039
13040         * XplatUIX11.cs: don't crash, and remove the icon if the user has
13041         set one, if SetIcon is passed a null icon.
13042
13043 2007-01-29  Andreia Gaita  <avidigal@novell.com>
13044
13045         * TextBox.cs: Redraw when the password characters changes
13046         * TextControl.cs: Check if textbox has a password char and draw 
13047         a line of password chars instead of the text in the line. LineTag gets 
13048         an extra Draw() method which allows document.Draw to override the text 
13049         that will be drawn. Removes 1024 char limitation on length of passworded 
13050         lines.
13051
13052 2007-01-29  Jackson Harper  <jackson@ximian.com>
13053
13054         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
13055         single chars is not.
13056
13057 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
13058
13059         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
13060         one pixel.  Fix a StackOverflowException caused by an overload wrongly
13061         calling itself.
13062
13063 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
13064
13065         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
13066         also remove ProcessArrowKey and put the code inside ProcessKeys.
13067
13068 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
13069
13070         * PaddingConverter.cs: Added.
13071
13072 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13073         
13074         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
13075         ShowPanels is false (fixes #80600). Only draw up to 127 characters
13076         of text (fixes #80601). For panels clip the text to draw to the
13077         panel (fixes #80603).
13078
13079 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13080
13081         * ComboBox.cs: Fixed implementation of ResetText.
13082
13083 2007-01-25  Jackson Harper  <jackson@ximian.com>
13084
13085         * TextControl.cs: For the last char of a line we need to use the
13086         line size, not that chars width, since it won't actually be
13087         computed since the right side of a char is based on the start of
13088         the left side of the next char, and the next char does not exist.
13089
13090 2007-01-25  Chris Toshok  <toshok@ximian.com>
13091
13092         * Splitter.cs: fix the new unit tests, and reindent some switch
13093         statements.
13094
13095 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13096
13097         * ComboBox.cs: Implemented 2.0 methods and events.
13098         * TextBoxBase.cs: Added OnTextUpdate, so that
13099         ComboBox.ComboTextBox can inform ComboBox of it.
13100
13101 2007-01-25  Jackson Harper  <jackson@ximian.com>
13102
13103         * TextControl.cs: Respect ShowSelection when deciding whether or
13104         not to display the caret, this allows comboboxes to have carets
13105         when the combotextbox does not have focus.
13106
13107 2007-01-25  Jackson Harper  <jackson@ximian.com>
13108
13109         * TextControl.cs: Add a Suspend/Resume for updating, basically the
13110         same as the Suspend/Resume for recalc, except this will do actual
13111         Invalidates.
13112         - New Undo manager, works much like the MS version.
13113         - Implemented Redo
13114         * TextBoxBase.cs: The Cut operation is undoable.
13115
13116 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13117         
13118         * TextBoxBase.cs: Don't antialias text. Makes it look way better
13119         on Windows (no difference on Linux).    
13120
13121 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13122
13123         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
13124         we don't want to activate any windows. Fixes #79433.
13125
13126 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
13127
13128         - ButtonBase.cs: Fix capitalization of parameter: disposing.
13129         [Fixes bug #80609]
13130
13131 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
13132
13133         * FileDialog.cs:
13134         - Move to using System.ComponentModel.EventHandlerList
13135         - Replace Refresh with Invalidate
13136         - Clear the mime filecache on closing
13137         - Some other memory reducing work. After beeing closed FD now uses
13138           only about 300 KB for the fdo mime stuff plus the memory of the
13139           cached icons.
13140         * Mime.cs: Changed coding style and removed unnecessary commented
13141         code. Some more memory memory reducing work.
13142
13143 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13144
13145         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
13146         a few other missing 2.0 properties.
13147         * Theme.cs: Added DrawFlatStyleComboBox.
13148         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
13149
13150 2007-01-24  Chris Toshok  <toshok@ximian.com>
13151
13152         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
13153         wake_waiting flag, not just when there's data to be read.  if we
13154         don't, then future wakeup's won't reach us and we'll be doomed to
13155         wait for the entire 1 second timeout forever (unless there are X
13156         events to be had).
13157
13158 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
13159
13160         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
13161         until you pass Items.Count, not Items.Count - 1 like 1.1.
13162
13163 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
13164
13165         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
13166
13167 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
13168
13169         * ToolStripContainer.cs: The recent Dock fix exposed that I was
13170         adding the panels in the wrong order.
13171
13172 2007-01-24  Jackson Harper  <jackson@ximian.com>
13173
13174         * TextBoxBase.cs: When we move the caret we also need to move the
13175         selection, this fixes some random crashing after doing select
13176         text, unselect, delete a char, paste.
13177
13178 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13179
13180         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
13181
13182 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
13183
13184         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
13185         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
13186         * ToolBar.cs: Force redraw in BackgroundImageChanged.
13187
13188 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
13189
13190         * ToolBar.cs:
13191         - Implement support for vertical toolbars. Fixes #80539;
13192         - Call LayoutToolBar when resize, it fix some other problems in layout.
13193         - Rename requested_height to requested_size, as we can have width on it
13194         when toolbar is vertical.
13195         - Create a private property "Vertical" that uses Dock to verify when 
13196         toolbar is vertical or not.
13197         - Set ControlStyles when change Dock property.
13198         - Refactory in LayoutToolBar to have better variables names and to support
13199         vertical toolbars.
13200         - Fixes default value for ButtonSize when button count is equal zero, size
13201         must be (39, 36) test case writed.
13202
13203 2007-01-23  Chris Toshok  <toshok@ximian.com>
13204
13205         * Control.cs: fix the checks so that they work correctly for mdi
13206         parents/children.
13207
13208 2007-01-23  Chris Toshok  <toshok@ximian.com>
13209
13210         * Control.cs: ControlCollection seems to have super-secret
13211         abstraction breaking knowledge of Mdi containers.  allow MdiClient
13212         to add toplevel controls.
13213
13214 2007-01-23  Chris Toshok  <toshok@ximian.com>
13215
13216         * Control.cs: throw an ArgumentException if a toplevel control is
13217         added to our control collection from ControlCollection.Add, as
13218         well as from ControlCollection.IList.Add.  This fixes the
13219         ControlSetTopLevelTest.TestTopLevelAdd unit test.
13220
13221         Also, in ControlCollection.IList.Add, don't through an
13222         ArgumentNullException, throw an ArgumentException, when value ==
13223         null.  This matches MS.
13224
13225 2007-01-23  Chris Toshok  <toshok@ximian.com>
13226
13227         * BindingSource.cs: initial, incomplete, implementation of
13228         BindingSource.
13229
13230 2007-01-23  Jackson Harper  <jackson@ximian.com>
13231
13232         * TextControl.cs:
13233         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
13234         that I can fix a broken unit test (TextBoxTest::ClearUndo)
13235         
13236 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
13237
13238         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
13239
13240 2007-01-23  Andreia Gaita  <avidigal@novell.com>
13241
13242         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
13243         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
13244         IndexOfKey() for 2.0
13245
13246 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13247
13248         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
13249         to prevent it from changing z-order.
13250         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
13251         leave UI updates in MdiWindowManager.
13252         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
13253         1 sized (NC handling goes weird on Linux otherwise).
13254         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
13255         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
13256         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
13257         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
13258         and SetWindowState(s) to allow for changing the size of an activated child
13259         before activating it (reduces a lot of flicker).
13260
13261 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
13262
13263         * Form.cs: Changing FormBorderStyle has different semantics based
13264         on whether the Form is visible or not.  If not visible, don't change
13265         the Size.  But InvalidateNC needs to be called to force the window
13266         to pick up the changes and redraw itself.  [Fixes bug #80574]
13267
13268 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
13269
13270         [Moma work]
13271         * ContainerControl.cs: ProcessCmdKey.
13272         * ErrorProvider.cs: new constructor.
13273         * Form.cs: fix AutoValidateEvent compiler warning.
13274         * Label.cs: fix OnAutoSizeChanged compiler warning.
13275         * MenuStrip.cs: fix CanOverflow compiler warning.
13276         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
13277         * TextBox.cs: Dispose.
13278         * ToolStrip.cs: CanOverflow, re-enable double buffering.
13279         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
13280         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
13281         * ToolStripItem.cs: Overflow, RightToLeft properties.
13282
13283 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13284
13285         * Form.cs: Move the layout of the main form to MdiWindowManager.
13286         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
13287         do a layout of the main window to update MdiClient's client area to
13288         the right area. Fixes #80533. Remove the calculation of nc size, 
13289         it was just wrong and the correct one is the same as for 
13290         InternalWindowManager. 
13291
13292 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
13293
13294         * Control.cs: Setting Anchor or Dock needs to reset the other
13295         to its default.  [Fixes bug #80556]
13296
13297 2007-01-20  Chris Toshok  <toshok@ximian.com>
13298
13299         * CheckedListBox.cs: class status changes.
13300
13301         * ScrollableControl.cs: same.
13302
13303         * RichTextBox.cs: same.
13304
13305         * ContainerControl.cs: same.
13306
13307         * ListView.cs: same.
13308
13309         * NotifyIcon.cs: same.
13310
13311         * MenuStrip.cs: same.
13312
13313         * RadioButton.cs: same.
13314
13315         * CheckBox.cs: same.
13316
13317         * PrintPreviewDialog.cs: same.
13318
13319         * Form.cs: same.
13320
13321 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
13322
13323         * TreeNode.cs: Apply Alan's patch for Name property.
13324
13325 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13326         
13327         * Form.cs: Implemented SizeGripStyle.
13328         * SizeGrip.cs: Check for minimum and maximum size for the
13329         control being resized and only resize if size has actually
13330         changed.
13331
13332 2007-01-19  Chris Toshok  <toshok@ximian.com>
13333
13334         * DataGridColumnStyle.cs: stop setting _readonly in the
13335         PropertyDescriptor setter.  fixes a unit test failure.
13336
13337         also, rename ParentReadOnly to TableStyleReadOnly, and have it
13338         just consult our table style (if we have one).  We don't need to
13339         consult the datagrid readonly attribute because that's passed in
13340         as the _ro arg to Edit.  this simplifies things a little.
13341         
13342         * DataGrid.cs: use CurrentColumn instead of
13343         current_cell.ColumnNumber just to simplify some of the code.
13344
13345         switch the order of some things in the CurrentCell setter to keep
13346         the previous cell from getting a textbox again -
13347         EnsureCellVisibility causes scrolling to happen, which calls Edit.
13348         So we need to set the new cell before calling it.
13349         
13350         call Edit in OnEnter, as does Microsoft.
13351         
13352         also, make sure the current table style isn't the one we create
13353         initially when checking to see if it's different than the one
13354         we're setting it to in BindColumns (this fixes #80421).
13355
13356         * GridTableStylesCollection.cs: table styles can have "" for a
13357         mapping name.  part of the fix for #80421.
13358
13359         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
13360         Edit significantly.
13361
13362 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
13363
13364         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
13365         and less GDI object leaky-er.
13366
13367 2007-01-18  Andreia Gaita  <avidigal@novell.com>
13368
13369         * LinkLabel.cs: Add opaque control style
13370
13371 2007-01-18  Jackson Harper  <jackson@ximian.com>
13372
13373         * TextControl.cs: Calculate width properly.
13374         - Don't store the tag's X offset, this can be figured out very
13375         easily.
13376         - When getting the caret tag make sure to get the last empty tag.
13377
13378 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
13379
13380         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
13381         [Fixes bug #79959]
13382
13383         * Control.cs: Color.Empty shouldn't count for previous transparent
13384         redraw changes.
13385
13386 2007-01-18  Jackson Harper  <jackson@ximian.com>
13387
13388         * TextBox.cs:
13389         * RichTextBox.cs:
13390         * TextControl.cs: Starting to merge in some pieces of my older
13391         undo work.  Basically just some slight cleanup of the undo API.
13392
13393 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13394
13395         * TrackBar.cs: Fix signature of RightToLeftLayout.
13396         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
13397         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
13398         * Application.cs: Implemented UseWaitCursor.
13399
13400 2007-01-18  Jackson Harper  <jackson@ximian.com>
13401
13402         * TextControl.cs: We can't skip tags if any part of the tag is
13403         visible.
13404
13405 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
13406
13407         * ContainerControl.cs: Override OnLayout.
13408
13409 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
13410
13411         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
13412
13413         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
13414         everything else.
13415
13416 2007-01-18  Chris Toshok  <toshok@ximian.com>
13417
13418         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
13419         (leftover from the container_selected days, I'd wager).  fixes bug
13420         #80546.
13421
13422 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
13423
13424         * Control.cs: Apply patch from George to fix the new testcase on
13425         bug #80451.  We can't just check for Color.Transparent, we need 
13426         to check if the back color's alpha channel is < 255.
13427
13428 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
13429
13430         * Form.cs: Move setting show_icon = true to before the constructor
13431         so that the base constructor has that information when it calculates
13432         the form's size.  Was causing forms to be (6, 6) bigger than they
13433         were supposed to be.  Thanks for catching this Rolf!
13434
13435 2007-01-18  Jackson Harper  <jackson@ximian.com>
13436
13437         * TextControl.cs: When replacing a selection we need to invalidate
13438         from the initial selection start, because selection start is moved
13439         to the end of the replacement.
13440
13441 2007-01-18  Andreia Gaita  <avidigal@novell.com>
13442
13443         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
13444
13445 2007-01-18  Chris Toshok  <toshok@ximian.com>
13446
13447         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
13448         I just added.
13449
13450 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
13451
13452         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
13453         layout methods and properties from ToolBarButton must be available
13454         into ToolBarButtonInfo.
13455
13456 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
13457
13458         * Control.cs: If the control has a transparent background, we
13459         need to refresh it when it moves and when it's parent's background
13460         image changes.  [Fixes bug #80451]
13461
13462 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
13463
13464         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
13465
13466 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
13467
13468         * XplatUIWin32.cs: Implement proper double buffering for Windows.
13469         [Fixes bug #80447, and probably speeds up things as well]
13470
13471 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13472
13473         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
13474         * XplatUIWin32.cs: We need to recalculate NC size after changing 
13475         window style to toolwindow (otherwise the client rectangle will be
13476         3 pixels to small for some reason).
13477         * MdiWindowManager.cs: Revert NC size calculations to match how
13478         they are calculated only based on window styles (to match
13479         Win32AdjustWindowRectEx, since otherwise when setting size or 
13480         location, Control will call Win32AdjustWindowRectEx to update client 
13481         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
13482         calculate a different value of client size causing another paint 
13483         (and flickering))
13484         * InternalWindowManager.cs: When moving or resizing a window only
13485         update size or location if they actually changed.
13486         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
13487         (seems to match Windows behaviour better). Cleaned up 
13488         ManagedWindowDecorations to draw what's needed and nothing else
13489         (was drawing borders and lines where they shouldn't be)
13490         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
13491         (style = 0xFFFF) and takes into account caption height when 
13492         calculating window rectangle.   
13493
13494 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
13495
13496         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
13497         can be added to toolbar multiple times, we need to maintain a list of 
13498         button information for each positions.
13499
13500 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
13501
13502         * ToolBar.cs: Some small stetic changes.
13503
13504 2007-01-16  Jackson Harper  <jackson@ximian.com>
13505
13506         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
13507         that allow us to have nested recalc = false blocks.
13508         - Add paste support for images in the RichTextBox
13509         * RichTextBox.cs: flush the text after the color is changed, so
13510         the change takes effect.
13511         - Use SuspendRecalc
13512         - Some extra debugging info
13513         * TextControl.cs: Tags no longer track their length, it is just
13514         computed from the next tags length, this makes things a little
13515         simpler and reduces places that we have to track length changes.
13516         - Refactored the linetag class a little so we could make it
13517         a base class for different kinds of tags
13518         - Created a image tag, a tag that can have a single image inserted
13519         into it
13520         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
13521         that we can call suspend multiple times.
13522         - Add some debugging methods
13523
13524 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13525
13526         * MdiClient.cs: Add ActivatePreviousChild for 
13527         mdi child window navigation.
13528         * Form.cs: Use MdiClient.ActivateNextChild/
13529         ActivatePreviousChild instead of Form.SelectNextControl
13530         to select the next/previous child since 
13531         SelectNextControl doesn't do it in the same order
13532         as mdi children should do it.
13533
13534 2007-01-16  Chris Toshok  <toshok@ximian.com>
13535
13536         * Control.cs: remove container_selected field.
13537
13538 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13539
13540         * MdiClient.cs: Update main form's ActiveChild when
13541         updating keyboard focus for the mdi child.
13542
13543 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
13544
13545         * Control.cs: PreferredSize fix.
13546
13547         * Form.cs: Add several 2.0 events, properties, and methods.
13548
13549 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
13550
13551         * Form.cs: Provide meaningful message when MdiParent is assigned a
13552         Form that is not an MdiContainer.
13553
13554 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13555
13556         * MdiClient.cs: Update main form's ActiveChild when
13557         activating a mdi child.
13558
13559 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13560
13561         * MdiWindowManager.cs: Fix NRE when merging menus and main form
13562         doesn't have a menu.
13563
13564         * Form.cs: Request NCRecalc after creating a mdi child window.
13565         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
13566         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
13567         
13568         * MdiClient.cs: Add new method SendFocusToActiveChild that either
13569         sends keyboard focus to the active child, or to the MdiClient
13570         if there are no child forms.
13571         
13572 2007-01-15  Chris Toshok  <toshok@ximian.com>
13573
13574         * ListView.cs: drop the *Internal overrides, just do our work in
13575         ItemControl's WndProc instead.
13576
13577         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
13578         of the various controls, and forward the events properly (in the
13579         same manner as MS) from the textbox to the UpDown.  Also the
13580         ActiveControl of the UpDownBase gets set properly now.  Finally,
13581         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
13582
13583         * NumericUpDown.cs: set Text in the ctor.
13584
13585         * DomainUpDown.cs: call UpdateEditText in the ctor.
13586         
13587         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
13588         so even a Selectable = false textbox can be focused if you click
13589         in it.  Go figure.
13590
13591         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
13592         just add their handling in their respective WndProc's.  Also add
13593         an explicit FocusInternal method that doesn't consult CanFocus
13594         before calling Select(this).
13595
13596         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
13597         do our work in WndProc instead.
13598
13599         * TabControl.cs: same.
13600
13601         * ComboBox.cs: same.
13602
13603 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
13604
13605         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
13606         Fixes #80006.
13607
13608 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13609
13610         * ListViewItem.cs:
13611         * ThemeWin32Classic.cs: Don't draw the item text outside
13612         item bounds in Details view, as well as use trimming.
13613         Fixes bug #80376.
13614
13615 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
13616
13617         * Form.cs: Implement Form.ShowIcon.
13618         
13619         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
13620         null, which when combined with the DlgModalFrame window style removes
13621         the icon from the title bar.
13622
13623 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
13624
13625         * Control.cs: Call OnMouseClick after OnClick. (2.0)
13626
13627 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
13628
13629         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
13630         menu when mdi child windows theres a menu, uses insert to get icon
13631         at first position. Partially fix #80006.
13632
13633 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
13634
13635         * Clipboard.cs: Implement 2.0 methods.
13636
13637 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
13638
13639         * Menu.cs: Implement Insert method of MenuItemCollection class
13640         to fix MenuMerge.
13641
13642 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13643
13644         * ListView.cs: Implement 2.0 FindItemWithText method.
13645
13646 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
13647
13648         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
13649         to calculate menu bar size. Fixes #80290.
13650
13651 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
13652
13653         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
13654
13655 2007-01-11  Chris Toshok  <toshok@ximian.com>
13656
13657         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
13658         initial form.
13659
13660 2007-01-11  Chris Toshok  <toshok@ximian.com>
13661
13662         * LinkLabel.cs: make sure to call base.Select in our Select method
13663         if it turns out we're going to be selected (i.e. if we have a link
13664         that is going to receive focus).  That way our container's
13665         ActiveControl is updated properly.
13666
13667 2007-01-11  Chris Toshok  <toshok@ximian.com>
13668
13669         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
13670         they have 1 or more links.  this fixes the crash gert reported.
13671
13672 2007-01-11  Andreia Gaita  <avidigal@novell.com>
13673
13674         * ContainerControl.cs: Remove ContainerSelected flag, not needed
13675         anymore.
13676
13677         * Control.cs (Controls.Add): Check if control to be added to the collection
13678         is a top level control, and throw an ArgumentException if it is.
13679         Remove ContainerSelectedFlag, not needed anymore.
13680
13681         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
13682         top most control doesn't activate the form. This fixes a problem in the
13683         MessageBox, where the default button wouldn't get focus because the form
13684         was activated before being Loaded - when the Owner is set, SetTopMost is
13685         called, and it would activate it.
13686
13687 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
13688
13689         * Button.cs: When clicked and setting the parent form's DialogResult,
13690         use FindForm instead of Parent, since parent could be a container
13691         control and not the Form.  Fixes bug #80495.
13692
13693 2007-01-10  Chris Toshok  <toshok@ximian.com>
13694
13695         * Form.cs: move the call to SendControlFocus into the same
13696         is_loaded check.
13697
13698 2007-01-10  Chris Toshok  <toshok@ximian.com>
13699
13700         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
13701         It breaks in the face of the new ActiveControl stuff, and should
13702         be unnecessary.
13703
13704         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
13705         activecontrol's focus if it's not already set, after we set
13706         ActiveControl, but before we call OnActivated.  Re-fixes #79667
13707         after the previous focus/active control fixes regressed it.
13708
13709         * Control.cs: reindent some code.
13710         
13711 2007-01-10  Chris Toshok  <toshok@ximian.com>
13712
13713         * Splitter.cs: clearing some outstanding changes from my tree.
13714         Replace all accesses (not writes) to the internal dock_style field
13715         with the Dock property.
13716
13717 2007-01-10  Chris Toshok  <toshok@ximian.com>
13718
13719         * Control.cs: make FireEnter, FireLeave, FireValidating, and
13720         FireValidated virtual.
13721
13722         * Form.cs: override and don't chain up calls to FireEnter and
13723         FireLeave.
13724
13725 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13726
13727         * ListView.cs: Add more text padding space when using
13728         auto resize for columns (the previous value didn't work fine).
13729
13730         * ThemeWin32Classic.cs: Update text position inside columns,
13731         to match the appeareance of .Net.
13732
13733         * ColumnHeader.cs: When using auto resize, only the Width should
13734         depend on the sub items, not the Height. Also, set width after
13735         auto resizing (the value of Width should never remain as -1 or -2).
13736
13737 2007-01-10  Chris Toshok  <toshok@ximian.com>
13738
13739         * Application.cs: fix compilation errors when debug is enabled.
13740
13741 2007-01-10  Chris Toshok  <toshok@ximian.com>
13742
13743         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
13744         add some nice ascii art pictures and explanation of the process).
13745         (GetMostDeeplyNestedActiveControl): new utility function we need
13746         because our ActiveControl can refer to a child container with its
13747         own ActiveControl.
13748
13749         * Form.cs (OnActivated): remove the call to SelectActiveControl
13750         from here, since you can override this method and not chain up,
13751         and winforms still sets the active control.
13752         (OnCreateControl): also remove the unnecessary SelectActiveControl
13753         call from here.
13754         (WndProc): it's actually called from the WM_ACTIVATE block, just
13755         before calling OnActivated.
13756
13757         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
13758         inside the else.  the ActiveControl setter will end up setting
13759         focus on @control.  This keeps us from setting it again (and
13760         generating an extra LostFocus/GotFocus pair).
13761         (Select (bool, bool)): reindent.
13762
13763 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
13764
13765         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
13766         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
13767         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
13768         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
13769         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
13770         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
13771         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
13772         ToolStripTextBox.cs: Another wave of corcompare work.
13773
13774 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13775
13776         * ColumnHeader.cs: Implement 2.0 AutoResize method using
13777         the Width property.
13778
13779         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
13780         methods by callling Column.AutoResize method on columns.
13781
13782 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
13783
13784         * Control.cs: Provide proper implementations of PreferredSize
13785         and GetPreferredSize (2.0).
13786
13787 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
13788
13789         * Form.cs: Remove one character (!) to make my previous OnClosing
13790         stuff work for modal windows like MessageBox.
13791
13792 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13793
13794         * ListView.cs:
13795         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
13796         ListView.Columns to get the last displayed column. Fixes #80452.
13797
13798 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
13799
13800         * Label.cs, LinkLabel.cs: Source code identation fixes.
13801
13802 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
13803
13804         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
13805         we dont need to invalidate only borders because when we invalidate four
13806         border lines the invalidate's generates a complete redraw of button, 
13807         because it now invalidate a complete rect some other redraws operations
13808         are fixed. Fixes #80196.
13809         
13810         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
13811         Remove ToolBarInvalidateEntireButton as it is not used.
13812
13813 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
13814         
13815         * Form.cs: Make sure that both OnClosing and OnFormClosing are
13816         called for 2.0 profile.
13817         * CloseReason.cs: Make class internal for 1.1.
13818
13819 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
13820
13821         * ToolStripManager.cs: Implement FindToolStrip functionality.
13822         * ToolStrip.cs: Register and unregister with ToolStripManager.
13823
13824 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
13825
13826         * Control.cs: This was messy.  2.0 moves much of ControlCollection
13827         to ArrangedElementCollection.  Implemented this with as few #if's as 
13828         possible (which is still too many).
13829
13830 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
13831
13832         * Control.cs: Implement SizeFromClientSize() [2.0].
13833
13834 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
13835
13836         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
13837         use Theme.BorderSize to calculate area instead of static value 1, 
13838         by the way use new BorderStaticSize instead     Border3DSize when 
13839         border_static is true. Fixes #79537.
13840         
13841         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
13842         
13843         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
13844         it is not needed.
13845
13846 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
13847
13848         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
13849
13850 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
13851
13852         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
13853         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
13854         
13855         * Hwnd.cs: 
13856         - border_static field added, it will used to define when a control 
13857         theres 3D border but it must be static (thin).
13858         - In GetWindowRectangle use Theme.BorderSize to calculate area 
13859         instead of static value 1, by the way use new BorderStaticSize instead
13860         Border3DSize when border_static is true.
13861
13862         * XplatUIX11.cs, XplatUIOSX.cs: 
13863         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
13864         
13865         * Theme.cs: BorderStaticSize field added.
13866
13867 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
13868
13869         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
13870
13871 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
13872
13873         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
13874         mimic same behavior than win32 that set border only in CreateParams,
13875         it fix problems under CreateParams overrides. Fix #79442 and partial
13876         fix #79537.
13877         
13878         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
13879         of thi control you must call recreate handle. 
13880         
13881         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
13882         need to do anything as RecreateHangle will take care about borders.
13883
13884 2007-01-05  Mike Kestner  <mkestner@novell.com>
13885
13886         * ListView.cs: hack to eliminate Lost/Got focus notifications on
13887         cycles between the ItemControl and parent.  Fixes #80388.
13888
13889 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
13890
13891         * Control.cs: Lazy init layout engine. Do not directly use 
13892         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
13893
13894 2007-01-05  Chris Toshok  <toshok@ximian.com>
13895
13896         * DataGrid.cs: don't forceably rebind columns in SetDataSource
13897         unless our list manager has changed (i.e. unless we have reason to
13898         believe our columns have changed).  Fixes #80422.
13899         
13900         also, disable the call do BindColumns in
13901         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
13902         1.1 the event isn't raised in response to a column addition on a
13903         table.)
13904
13905 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
13906
13907         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
13908         that inheritors can not call it if they choose.  Fixes bug #80456.
13909
13910 2007-01-05  Andreia Gaita  <avidigal@novell.com>
13911
13912         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
13913         doesn't blow up with a null exception on marshalling.
13914         
13915 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
13916
13917         * Control.cs: Implement several 2.0 protected properties and methods.
13918         Ensure that all necessary events are being called when properties
13919         are set.
13920
13921 2007-01-05  Mike Kestner  <mkestner@novell.com>
13922
13923         * ListView.cs: implement PgUp/PgDn for Details view.  Also
13924         fixes First/LastVisibleIndex to use the item_control.ClientRect 
13925         instead of the parent control.  Fixes #80378.
13926
13927 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
13928
13929         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
13930           determine whether to use yard-pound or not (bug #78399).
13931
13932 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
13933
13934         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
13935         problems. So it is time to bring back the old popupbutton colors.
13936
13937 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13938
13939         * ColumnHeader.cs:
13940         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
13941         property by using the internal information of the
13942         columns order in ListView.
13943
13944 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
13945
13946         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
13947         Add 2.0 Tag properties.
13948
13949         * LinkArea.cs: Add 2.0 ToString method.
13950
13951 2007-01-03  Chris Toshok  <toshok@ximian.com>
13952
13953         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
13954         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
13955         when we're editing, which fixes #80047.
13956
13957 2007-01-03  Chris Toshok  <toshok@ximian.com>
13958
13959         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
13960         #80404.
13961
13962 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
13963
13964         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
13965         property and implementation.
13966
13967         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
13968         for MdiWindowListItem property.
13969
13970         * ToolStripDropDown.cs: Don't consider hidden menu items while
13971         laying out the menu.
13972
13973 2007-01-03  Andreia Gaita  <avidigal@novell.com>
13974
13975         * SendKeys.cs: window handle is not needed in win32, so just
13976         get the active window for X after parsing keys and don't use
13977         it when building the message; it is passed by parameter to the 
13978         Xplat method and used there to build the message instead. Also,
13979         wait for events to be processed on SendWait, as opposed to Send,
13980         which doesn't wait :) Playing with threads and Send() completely 
13981         hangs on ms.net, only SendWait() works.
13982         
13983         XplatUIX11.cs
13984         X11Display.cs: Check for valid window handle.
13985
13986 2007-01-03  Jackson Harper  <jackson@ximian.com>
13987
13988         * TextControl.cs: Need to prevent wrap calculations when replacing
13989         text (this was there before i removed it accidently).
13990         - Don't update the cursor during the positioning, just set it to
13991         selection_start at the end of the operaion.
13992
13993 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13994
13995         * Control.cs:
13996         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
13997         
13998 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13999
14000         * MonthCalendar.cs: Added Click and DoubleClick events again,
14001         but this time they only hide Control's Click and DoubleClick.
14002         
14003 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
14004
14005         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
14006         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
14007
14008 2007-01-02  Jackson Harper  <jackson@ximian.com>
14009
14010         * TextBoxBase.cs: We move the caret with the split now, so we
14011         don't need to explicitly move the caret after splitting.  This
14012         fixes the caret bumping down an extra line on Enter.
14013
14014 2007-01-02  Miguel de Icaza  <miguel@novell.com>
14015
14016         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
14017         2.72). 
14018
14019         * ScrollableControl.cs: Add Scroll event.
14020
14021 2007-01-02  Mike Kestner  <mkestner@novell.com>
14022
14023         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
14024         to fix all hdr height padding codepaths.  Fixes #80207.
14025
14026 2007-01-02  Chris Toshok  <toshok@ximian.com>
14027
14028         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
14029         setting it to the Control defaults anyway, and it being after the
14030         Dock set was screwing up layout.
14031         (set_Dock): don't short circuit out of setting base.Dock.  Also,
14032         no need to call UpdateStatusBar here, as it'll be re-layed out if
14033         it needs to be.
14034
14035 2007-01-02  Mike Kestner  <mkestner@novell.com>
14036
14037         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
14038         to header height for width == -1. Fixes the rest of #80207.
14039
14040 2007-01-02  Mike Kestner  <mkestner@novell.com>
14041
14042         * ListView.cs: rework the mouse event forwarding everaldo added
14043         to translate the coordinates to the parent control not
14044         raise the parent events until after we've done our work. Hover
14045         needs more work, in the case where HoverSelection is on, because
14046         the item control receives more than one MouseHover per Enter
14047         event, so we need to ensure only the "first" hover gets forwarded.
14048         Opening a minor bug for that.
14049
14050 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
14051
14052         * CheckedListBox.cs: Fixed SelectionMode to match MS.
14053         * ListControl.cs: Implemented AllowSelection property. Removed extra
14054         tabs.
14055         * ListBox.cs: Implemented AllowSelection property.
14056
14057 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
14058
14059         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
14060         SelectedItem, it prevent for errors when you must disable item
14061         before perform click. Fixes #80409.
14062
14063 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
14064
14065         * MenuAPI.cs: Prevent second level and beyond submenus to close
14066         until first level when move out side of popup.
14067         
14068 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
14069
14070         * MenuAPI.cs:
14071         - Down submenu positin in three pixels.
14072         - Closes sub menu when mouse leaves from menu. Fixes #80402.
14073
14074 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
14075
14076         * ThemeWin32Classic.cs:
14077         - Fix popup menu size adding one pixel on the top.
14078         - Down menu item border from two to one to mimic Win32.
14079         - Some source identation fixes. 
14080
14081 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
14082
14083         * ThemeWin32Classic.cs: Use float numbers to calculate size and
14084         position of menu arrows, it fix wrong arrow size.
14085
14086 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
14087
14088         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
14089         instead of line, it simplify draw operation and fix it using 3D
14090         borders to mimic Win32.
14091
14092 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
14093
14094         * StatusStrip.cs: Add implementation of the sizing grip.
14095
14096         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
14097         StatusStrip rendering.
14098
14099 2006-12-31  Chris Toshok  <toshok@ximian.com>
14100
14101         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
14102         override the layout style (anchor/dock) of the control.  assign to
14103         Dock instead.  Fixes bug #80416.
14104
14105         * ToolStrip.cs: same.
14106
14107 2006-12-31  Andreia Gaita  <avidigal@novell.com>
14108
14109         * ContainerControl.cs: Use ContainerSelected flag to check if 
14110         a Container is directly selected, or if Select is called on a 
14111         non-container. If a container is directly selected, focus events 
14112         should not be raised.
14113         Apply #80411 patch to throw exception on set_ActiveControl if 
14114         control is the same as the current one.
14115         
14116         * Control.cs: Use ContainerSelected flag (see above).
14117         Add invalidation check to raise event but not invalidate if 
14118         dimensions are 0.       
14119         Apply #80411 patch.
14120         
14121
14122 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
14123
14124         * MenuAPI.cs: After click, dont close popup menu when menu is
14125         ContextMenu. Fixes #80399.
14126
14127 2006-12-30  Chris Toshok  <toshok@ximian.com>
14128
14129         * ContainerControl.cs: make sure we throw the exception if the
14130         container control doesn't contain the control we're setting
14131         ActiveControl to.
14132
14133 2006-12-30  Chris Toshok  <toshok@ximian.com>
14134
14135         * Control.cs (SetTopLevel): fix the exception raised by
14136         SetTopLevel for child controls.
14137         (set_Anchor): call UpdateDistances when setting the anchor type.
14138         This fixes bug #80336.
14139
14140 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
14141
14142         * Theme.cs: For now, revert back to 8pt font.
14143
14144 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
14145
14146         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
14147         Fixes #80395.
14148
14149 2006-12-29  Chris Toshok  <toshok@ximian.com>
14150
14151         * Control.cs: reorder the code in OnResize to give the same event
14152         ordering as MS.
14153
14154 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14155
14156         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
14157         TileHorizontally and TileVertically.
14158         
14159 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
14160
14161         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
14162         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
14163         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
14164         Corrected copyright and email adress.
14165
14166 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
14167
14168         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
14169         of Exception in FullPath property if no TreeView is associated with
14170         the TreeNode.
14171
14172 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
14173
14174         * Theme.cs: Marked default_font as private, and initialize it in ctor
14175         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
14176         on 2.0 profile.
14177         * ThemeGtk.cs: Removed default_font intialization.
14178         * ThemeWin32Classic.cs: Removed default_font initialization.
14179
14180 2006-12-28  Chris Toshok  <toshok@ximian.com>
14181
14182         * Control.cs: fix a couple of place where we were creating handles
14183         more aggressively than we should be.  Fixes ControlRefresh unit
14184         tests.
14185
14186 2006-12-28  Chris Toshok  <toshok@ximian.com>
14187
14188         * Control.cs: contrary to what the comment said, Control.Dock does
14189         not supercede Control.Anchor - the last one you assign to decides
14190         the layout behavior.  so we need to keep track of which was the
14191         last set.  Also, fix some of the affected property arguments in
14192         PerformLayout calls, and remove an redundant parent.PerformLayout
14193         call in OnResized.
14194
14195         Add a VisibleInternal property, which returns is_visible.  We
14196         can/should get rid of all the usage of this field elsewhere.
14197
14198 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14199         
14200         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
14201         control style, not DoubleBuffer. Added UseDoubleBuffering property
14202         that indicates whether doublebuffering is enabled and supported.
14203         (comment from and code based on Gert Driesen's patch in #80324).
14204         Fixes #80324.
14205
14206 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14207         
14208         * Control.cs: Fixed a NRE.
14209
14210 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14211
14212         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
14213         for 2.0.
14214
14215 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14216
14217         * Control.cs: Rewrote double buffering, now a seperate
14218         class handles all the buffering, no Graphics is disposed of
14219         until the painting is finished (earlier implementation 
14220         would crash if the control was resized in the OnPaint, 
14221         since it would cause the double buffer to be recreated
14222         and the old one disposed), a separate Graphics is 
14223         created for every paint (MS behaviour and anyways the state
14224         of the Graphics would have to be saved and restored otherwise)
14225         
14226         * XplatUIDriver.cs: 
14227         * XplatUIX11.cs:
14228         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
14229         so that we can get the graphics for the back buffer without
14230         having to create a new one and remove the offscreen_dc parameter
14231         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
14232         
14233 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14234
14235         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
14236         Also make virtual all the key-related methods.
14237
14238         * ListViewItem.cs: Make virtual the key related methods for
14239         ListViewSubItemCollection.
14240
14241 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14242
14243         * ListView.cs:
14244         * ListViewItem.cs:
14245         * ThemeWin32Classic.cs:
14246         * Theme.cs: Initial support for Tile view in ListView,
14247         as well as the implementation of the required bits for it (Item
14248         and Subitem).
14249
14250 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
14251
14252         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
14253         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
14254         Provide useful exception messages.
14255
14256 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14257
14258         * TrackBar.cs: Remove a warning.
14259         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
14260         when used by DateTimePicker, fixes #80287. This also requires that 
14261         MonthCalendar implements it's own drawing for the yearly updown control,
14262         otherwise the Capture tracking would be too complicated. Removed the Click 
14263         and DoubleClick events (according to comments they were hiding the base class
14264         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
14265         raise these events, not that they cannot be raised. It is possible to raise 
14266         them by calling OnClick and OnDoubleClick). Added two internal fields in 
14267         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
14268         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
14269         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
14270         event, no longer needed.
14271         
14272 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
14273
14274         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
14275         true if new value differs from current value.
14276
14277 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
14278
14279         * Control.cs: ControlCollection.Count must be public. Fixed build of
14280         unit tests.
14281
14282 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
14283
14284         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
14285
14286 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
14287
14288         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
14289
14290 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
14291
14292         * Control.cs: Invalidates control including when Width and Height is 
14293         equal zero or is not visible, only Paint event must be care about 
14294         this. Fixes #79913.
14295
14296 2006-12-26  Chris Toshok  <toshok@ximian.com>
14297
14298         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
14299         more corcompare work.
14300
14301         * DataGridView.cs: fix compiler warning.
14302
14303         * ColumnHeader.cs: some corcompare work, and also take the
14304         opportunity to make the internal fields private.
14305
14306         * ListView.cs: fix the fallout from the above field change.
14307
14308 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
14309
14310         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
14311         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
14312         ToolStripTextBox.cs: Fixes to events and corcompare.
14313
14314 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
14315
14316         * ListView.cs: Call owner.OnMousexx event to propagate events from
14317         item to ListView. Fixes #80367.
14318
14319 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
14320
14321         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
14322         if value is less than one. ItemHeight should not be set to a value
14323         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
14324         Removed extra tabs.
14325
14326 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
14327
14328         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
14329         * ToolStripStatusLabel.cs: Add Spring for Moma.
14330
14331 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
14332
14333         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
14334         Fixed code formatting. Removed debug code.
14335         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
14336
14337 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
14338
14339         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
14340         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
14341         ArgumentOutOfRangeException if ColumnCount is negative. In 
14342         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
14343         less than 4 or higher than 32768.
14344         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
14345         Fixed FormatProvider to return CurrentCulture unless explicitly set.
14346         Fixed IsFormatProviderDefault to return true if FormatProvider has
14347         not been explicitly set.
14348
14349 2006-12-25  Chris Toshok  <toshok@ximian.com>
14350
14351         * Application.cs: add a couple of 2.0 events.
14352
14353 2006-12-25  Chris Toshok  <toshok@ximian.com>
14354
14355         * Control.cs: fix compiler warning.
14356
14357         * AxHost.cs: corcompare fixes.
14358
14359         * ApplicationContext.cs: corcompare fixes.
14360
14361 2006-12-25  Chris Toshok  <toshok@ximian.com>
14362
14363         * Control.cs: only update dist_right/dist_bottom if the
14364         width/height is > 0.  this fixes anchored controls being resized
14365         smaller until they disappear and then resized larger again.
14366
14367 2006-12-25  Chris Toshok  <toshok@ximian.com>
14368
14369         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
14370         since they're nothing more than X/Left and Y/Top, respectively.
14371
14372         Also, move back to a per-control Bitmap/Graphics for
14373         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
14374         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
14375         Height.
14376
14377 2006-12-25  Miguel de Icaza  <miguel@novell.com>
14378
14379         * MessageBox.cs: Implemented overload that takes a new "bool
14380         displayHelpButton" by adding a new internal field "show_help".
14381         When clicked this will raise the HelpRequested on the owner or the
14382         main form. 
14383
14384         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
14385         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
14386
14387         * ListView.cs: Add support ColumnWidthChanged and
14388         ColumnWidthChanging. 
14389
14390         Add support for ColumnReordered event.
14391         (ReorderColumn): Add NET_2_0 specific support for cancelling the
14392         reorder.
14393
14394         Very nice codebase!
14395
14396         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
14397
14398         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
14399
14400 2006-12-24  Chris Toshok  <toshok@ximian.com>
14401
14402         * GridTablesFactory.cs: 2.0 corcompare work.
14403
14404         * ToolStripContainer.cs: add "override" to
14405         ContextMenuStripChanged, and remove the local event object.
14406
14407         * ToolStripDropDown.cs: same with a couple properties.
14408
14409         * ToolStripPanel.cs: same with AutoSizeChanged event.
14410
14411         * TextBoxBase.cs: add "override" to AutoSizeChanged.
14412
14413         * Form.cs: add the remaining 2.0 events, and do some corcompare
14414         attribute work.
14415
14416         * DateTimePicker.cs: add "new" to padding.
14417
14418         * ButtonBase.cs: use Control's use_compatible_text_rendering.
14419
14420         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
14421
14422         * DataGridView.cs: PaddingChanged is overridden.
14423
14424 2006-12-24  Chris Toshok  <toshok@ximian.com>
14425
14426         * Control.cs: corecompare work here too.
14427
14428         * DataGridViewElement.cs, DataGridView.cs,
14429         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
14430         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
14431         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
14432         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
14433         work.
14434
14435 2006-12-24  Miguel de Icaza  <miguel@novell.com>
14436
14437         * Control.cs: Switched the error message on the console for a
14438         todo.  A review of the code will have to cope with this anyways
14439         (since its a large feature, it is in our radar) and it was
14440         producing too much output when running PDN.
14441
14442         * ToolStripComboBox.cs: Set the text when the SelectedIndex
14443         changes.  Applications depend on this (PDN 2.72)
14444
14445 2006-12-23  Chris Toshok  <toshok@ximian.com>
14446
14447         * TableLayoutSettings.cs: finish up the corcompare work for this
14448         class.
14449
14450 2006-12-23  Chris Toshok  <toshok@ximian.com>
14451
14452         * Control.cs: make SetImplicitBounds internal, do some futzing
14453         with LayoutEngine so that it's available in 1.1, and remove the
14454         entire duplicated code mess from PerformLayout.  Use
14455         System.Windows.Forms.Layout.DefaultLayout instead.
14456
14457         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
14458
14459 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
14460
14461         * Form.cs: Add MainMenuStrip property.
14462
14463 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
14464
14465         * Control.cs: Add ContextMenuStrip property and implementation.
14466         Fix ContextMenu implementation to show menu centered on control when
14467         activated using the keyboard instead of showing at screen (0,0).
14468
14469         * ToolStripDropDown.cs: Fix needed overload of Show ().
14470
14471 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
14472
14473         * Menu.cs: Name property added for 2.0 profile.
14474         
14475 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
14476
14477         * Menu.cs: Update information about FindMenuItem, method to be
14478         implemented soon.
14479
14480 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
14481
14482         * MenuAPI.cs: When deselect items deselect also selected subitems.
14483         
14484 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
14485
14486         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
14487         FindSubItemByCoord to found itens that is not active, also an
14488         cheking added to FindSubItemByCoord to search for items only 
14489         in visible popup windows. Fixes #80274.
14490
14491 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
14492
14493         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
14494         internal property, it be care about change ExStyle. 
14495
14496 2006-12-22  Andreia Gaita  <avidigal@novell.com>
14497
14498         * ContainerControl.cs: set activeControl for parent forms up the 
14499         tree when the new activecontrol is a container.
14500         When validating the active control, if it is a container, also
14501         raise up the validation for it's active control. Fixes #80280
14502         
14503         * Control.cs: Add internal property flag and check to prevent
14504         Focus events from getting raised when Select() is called for
14505         a ContainerControl. There are still too many focus events being
14506         raised at the moment though.
14507         Cleaned up the code a bit.
14508
14509 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14510
14511         * Control.cs: Added all missing 2.0 events.and
14512         fixed a couple of corcompare issues.
14513         * TrackBar.cs: Implemented missing 2.0 bits.
14514         * MonthCalendar.cs, 
14515         * DateTimePicker.cs, 
14516         * MdiClient.cs: Fixed some corcompare issues.
14517
14518 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
14519
14520         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
14521         SplitterPanel.cs: corecompare work.
14522
14523 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
14524
14525         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
14526         Clean up warnings for BackgroundImageChanged and PaddingChanged
14527         events now that they are implemented in Control.cs.
14528
14529 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
14530
14531         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
14532         
14533         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
14534         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
14535         of TableLayoutPanel and supporting cast.
14536
14537 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14538
14539         * XplatUIWin32.cs: 
14540         - GrabWindow now confines the mouse pointer to the confine window.
14541         - Added Win32ClipCursor and Win32GetClipCursor.
14542
14543         * Control.cs: 
14544         - Added CaptureWithConfine to be able to capture and confine 
14545         mouse pointer.
14546         
14547         * InternalWindowManager.cs: 
14548         - Call CaptureWithConfine instead of Capture if we're an
14549         MdiChild (fixes #79982).
14550
14551 2006-12-21  Chris Toshok  <toshok@ximian.com>
14552
14553         * DataGrid.cs: guard against the initial state of selection, where
14554         selection_start == -1.  make sure we only select from index >= 0.
14555         Fixes bug #80291.
14556
14557 2006-12-21  Chris Toshok  <toshok@ximian.com>
14558
14559         * Control.cs: we don't need to be so draconian with
14560         UpdateDistances, and we thusly don't need to call it before
14561         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
14562
14563 2006-12-21  Daniel Nauck  <dna@mono-project.de>
14564
14565         * ComboBox.cs,
14566         TextBox.cs: Implemented AutoComplete properties.
14567
14568 2006-12-20  Chris Toshok  <toshok@ximian.com>
14569
14570         * DataGridView*.cs: some corecompare work.
14571
14572 2006-12-20  Jackson Harper  <jackson@ximian.com>
14573
14574         * XplatUIX11.cs: We need to hide the caret when deleting it,
14575         otherwise you get carets left lying around everywhere.
14576         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
14577         prevents getting some weird half drawn caret tracers when
14578         scrolling.
14579         * TextControl.cs: Attempt to reduce the number of times we need to
14580         recreate the caret.
14581
14582 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
14583
14584         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
14585
14586 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14587
14588         * DateTimePicker.cs:
14589         - Implemented missing 2.0 bits.
14590         - Changed some default values to match MS.
14591         
14592 2006-12-20  Jackson Harper  <jackson@ximian.com>
14593
14594         * TextBoxBase.cs: When changing the font across the document we
14595         can't recalculate after changing each line, since that will cahnge
14596         the line count.
14597         - PreferredHeight is a little different than i thought.
14598         - When backspacing, move the caret before we do the actual char
14599         delete, because when that delete crosses a wrap boundary the
14600         positional information will change.
14601
14602 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14603
14604         * Control.cs: Added some missing 2.0 bits: 
14605         BackgroundImageLayout, BackgroundImageLayoutChanged, 
14606         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
14607         add IBindableComponent and IDropTarget implementation.
14608         
14609         * MonthCalendar.cs: 
14610         - Added all missing 2.0 features:
14611         BackgroundImageLayout, RightToLeftLayout, 
14612         OnHandleDestroyed, RightToLeftLayoutChanged, 
14613         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
14614         PaddingChanged.
14615         - Rewrote all the BoldDate code, it was completely broken.
14616         - Fixed all the tests (the tests can now be re-enabled, the
14617         problems were not with the tests, but with the control, it was
14618         mostly broken).
14619         
14620         * DateTimePicker.cs: Changed the location where the 
14621         MonthCalendar is shown.
14622         
14623 2006-12-19  Chris Toshok  <toshok@ximian.com>
14624
14625         * DataGridView.cs: add IDropTarget implementation.
14626
14627         * ToolStripPanel.cs: add IDropTarget implementation.
14628
14629 2006-12-19  Jackson Harper  <jackson@ximian.com>
14630
14631         * TextControl.cs: soft now means something different than what it
14632         used to mean, we want to move the caret regardless of whether or
14633         not this break was soft (would we really have wanted the caret
14634         to not move with the break in the old context?)
14635         * TreeView.cs: Make sure we factor in the vert scrollbar when
14636         calculating the horizontal scrollbar's maximum.
14637
14638 2006-12-19  Andreia Gaita  <avidigal@novell.org>
14639
14640         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
14641         check for keywords in alternate casing, close bug #80049.
14642
14643 2006-12-19  Chris Toshok  <toshok@ximian.com>
14644
14645         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
14646         methods (which all do nothing).
14647
14648         * IDropTarget.cs: add the 4 missing methods.
14649
14650 2006-12-19  Chris Toshok  <toshok@ximian.com>
14651
14652         * TableLayoutRowStyleCollection.cs: corcompare work.
14653         
14654         * TableLayoutSettings.cs: same.
14655
14656         * TableLayoutStyle.cs: same.
14657
14658         * TableLayoutColumnStyleCollection.cs: same.
14659
14660 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
14661
14662         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
14663         TableLayoutPanel I've had in my local tree for way too long.
14664
14665 2006-12-19  Miguel de Icaza  <miguel@novell.com>
14666
14667         * TableLayoutSettings.cs: Finish the public API (still needs all
14668         the logic to update on changes). 
14669
14670         * TableLayoutPanelCellPosition.cs: new file.
14671         
14672         * TableLayoutRowStyleCollection.cs,
14673         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
14674         TableLayoutSettings.cs: Track the final 2.0 table api.
14675
14676 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14677
14678         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
14679         and Image List 2.0 members for ColummnHeader.
14680         * ListView.cs: Add key-related 2.0 methods for
14681         ColumnHeaderCollection.
14682
14683 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
14684
14685         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
14686         ArgumentNullException if items argument is null. Ignore null item in
14687         arrays. Removed extra tabs.
14688
14689 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
14690
14691         * MonthCalendar.cs: Fixed InvalidCastException.
14692
14693 2006-12-19  Jackson Harper  <jackson@ximian.com>
14694
14695         * TextControl.cs: Don't increment the position here.
14696         - When calculating char positions only add in the line break size
14697         for hard line breaks.
14698
14699 2006-12-19  Andreia Gaita  <avidigal@novell.org>
14700
14701         * SendKeys.cs: Changed some things to match ms.net behaviour
14702         when parsing shifted capital letters.
14703         
14704         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
14705         Add window handle as parameter to SendInput. X11 needs the 
14706         window handle, and the handle being passed      to it in the keys 
14707         queue is the active control handle (which windows needs), not 
14708         the window handle.
14709         
14710         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
14711         to support SendKeys on X.       
14712         
14713         * X11Keyboard: Implement helper method to lookup a linux keycode
14714         given the virtual keycode. Added table of keycode-2-virtualkey
14715         values to support this.
14716
14717 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14718
14719         * ListView.cs: Add support for SelectedIndexCollection
14720         and SelectedItemCollection 2.0 methods. Implement support
14721         for ImageKey too.
14722         * ListViewItem.cs: Add support for ListViewSubItemCollection
14723         2.0 methods. Also, fix an incorrect behavior of AddRange method
14724         (it shouldn't call Clear).
14725         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
14726
14727 2006-12-19  Jackson Harper  <jackson@ximian.com>
14728
14729         * RichTextBox.cs: 
14730         * TextBoxBase.cs: New args for FormatText
14731         * TextControl.cs: Rewrote the main drawing method, this version
14732         feels a little easier to understand and debug to me.  Hopefully it
14733         does to others also
14734         - Fix FormatText to OR in the new formating values.  Added
14735         FormatSpecified param, basically this works in the same way as
14736         BoundsSpecified in Control.
14737         - Set the caret properties when the caret is positioned.
14738         - When wrapping text make sure that we calculate the width of the
14739         last character
14740         - when calculating alignments we might have wrapped down to the
14741         next line, so don't search for an individual tag, search for the
14742         end of the line
14743         - We need to invalidate the selection area when we replace the
14744         selection.
14745         
14746 2006-12-19  Daniel Nauck  <dna@mono-project.de>
14747
14748         * Application.cs: add Restart () 2.0 support
14749
14750 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
14751
14752         * MenuItem.cs: Invalidate menu item rectangle after change Enable
14753         property. Fixes #80268.
14754         
14755 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
14756
14757         * MenuAPI.cs: Dont trigger select event when closes top menu
14758         item. Fixes #80270.
14759
14760 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
14761
14762         * MenuAPI.cs: When you click on menuitem only trigger onselect
14763         event for top menu itens. Fixes #80271.
14764         
14765 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14766
14767         * MdiWindowManager.cs: Make IconicBounds depend on
14768         the bottom of MdiClient, not the top (fixes #80267)
14769         
14770 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14771
14772         * MdiClient.cs: Added missing 2.0 attribute
14773
14774 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14775
14776         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
14777         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
14778
14779 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
14780
14781         * MenuAPI.cs: Fix click when menuitem is not popup,
14782         this regression was caused by last commit (#80272).
14783
14784 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
14785
14786         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
14787         fire click event or close menu. Fixes #80272.
14788
14789 2006-12-17  Daniel Nauck  <dna@mono-project.de>
14790
14791         * ListViewHitTestInfo.cs: add
14792
14793 2006-12-17  Daniel Nauck  <dna@mono-project.de>
14794
14795         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
14796         * FlatButtonAppearance.cs: add
14797         * DockingAttribute.cs: add
14798
14799 2006-12-17  Chris Toshok  <toshok@ximian.com>
14800
14801         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
14802         and rebind our columns when it does - this way, if you make
14803         changes to the DataTable (or set the Table attribute on a DataView
14804         after setting it as the DataGrid's DataSource, the changes are
14805         made visible.)  Fixes bug #80107.
14806
14807 2006-12-17  Daniel Nauck  <dna@mono-project.de>
14808
14809         * ListViewGroup.cs: add internal Location property for layouting.
14810         * Theme.cs: add abstract ListViewGroupHeight function.
14811         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
14812
14813 2006-12-16  Andreia Gaita  <avidigal@novell.com>
14814
14815         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
14816         Added reset of selected index to 0 when adding first tab page.
14817         Fixes #80264
14818         
14819         * NumericUpDown.cs: Fix NET_2_0 check
14820
14821 2006-12-16  Daniel Nauck  <dna@mono-project.de>
14822
14823         * ListViewGroup.cs: fixed DefaultValueAttribute value
14824
14825 2006-12-16  Daniel Nauck  <dna@mono-project.de>
14826
14827         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
14828
14829 2006-12-15  Miguel de Icaza  <miguel@novell.com>
14830
14831         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
14832         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
14833         ScrollableControl.cs: Add a handful of methods that are
14834         overwritten in 2.0 
14835
14836 2006-12-15  Chris Toshok  <toshok@ximian.com>
14837
14838         * XplatUIWin32.cs: initial implementation of the Reversible
14839         drawing functions.  there are some problems.  DrawReversibleFrame
14840         doesn't seem to work at all for Dashed FrameStyle, and in the
14841         Thick case there are drawing errors at the corners (we probably
14842         need to bind Rectangle instead of doing moveto/lineto's.)
14843
14844 2006-12-16  Andreia Gaita  <avidigal@novell.com>
14845         
14846         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
14847         to send blocks of key messages. Send accumulates keys to send with Flush, 
14848         while SendWait sends all keys immediately.
14849                 
14850         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
14851         XplatUIX11.cs,  XplatUIX11-new.cs:
14852         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
14853         to Win32 SendInput.
14854         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
14855         
14856         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
14857         testing for ms.net on this class is very tricky, as the tests run too fast 
14858         to allow the hook to release, essentially freezing the keyboard and the 
14859         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
14860         category :p
14861
14862 2006-12-16  Daniel Nauck  <dna@mono-project.de>
14863
14864         * Padding.cs: fixed serialization compability to MS ("_var" field names),
14865                         added missing attributes.
14866  
14867 2006-12-15  Daniel Nauck  <dna@mono-project.de>
14868
14869         * ListViewGroup.cs: Added missing attributes.
14870         * ListViewGroupCollection.cs: Added missing attributes.
14871
14872 2006-12-15  Daniel Nauck  <dna@mono-project.de>
14873
14874         * ListViewItem.cs: fixed ListViewSubItem text property.
14875
14876 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14877         
14878         * Control.cs: Added missing 2.0 attributes
14879         
14880 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14881         
14882         * MdiClient.cs: Added missing 2.0 attribute.
14883         * MonthCalendar.cs: Added some missing 2.0 attributes 
14884         and properties.
14885         
14886 2006-12-15  Daniel Nauck  <dna@mono-project.de>
14887
14888         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
14889
14890 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
14891
14892         * MainMenu.cs: Add the new 2.0 constructor to help out people
14893         using the MainMenu in VS2005.
14894
14895 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14896         
14897         * MdiChildContext.cs: Removed it, no longer used.
14898         * MdiClient.cs: Added missing 2.0 attributes.
14899         
14900 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14901         
14902         * InternalWindowManager.cs: Fix a NullRef with previous 
14903         changes for toolwindows.
14904         
14905 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14906
14907         * Control.cs: 
14908         - Added AfterTopMostControl to allow for certain controls 
14909         to always stay on top when normal controls are brought to 
14910         front.
14911         
14912         * XplatUIWin32.cs: 
14913         - (DrawInversibleRectangle): Get window rectangle from Win32 
14914         in stead of from control, since Win32 doesn't calculate
14915         screen coords correctly from control's Location if it 
14916         have docked siblings.
14917         
14918         * MdiWindowManager.cs:
14919         - Correct the control menu popup location when clicked on
14920         the maximized form icon. (fixes #80223.1)
14921         - Don't show moving rectangle if mouse hasn't moved from
14922         the original clicked point.
14923         - Removed FormGotFocus handler (not used).
14924         - Calculate the control buttons location from the main
14925         window's size and not client size (fixes #79770).
14926         - Form is now closed when the form icon is double-clicked
14927         (fixes #79775). 
14928         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
14929         
14930         * InternalWindowManager.cs:
14931         - Moved some MDI-only methods to MdiWindowManager.
14932         - Removed unused properties and methods.
14933         - Unified method naming for methods handling wm messages.
14934         - Moved all message handling to seperate methods for
14935         each message.
14936         
14937         * ThemeWin32Classic.cs:
14938         - DrawManagedWindowDecorations now draws the title bar 
14939         with a gradient brush.
14940         - Add a CPDrawButtonInternal that allows us to specify
14941         light, normal and dark colors for the buttons (control 
14942         buttons for MDI children were drawn with the same light
14943         color as the background, therefore loosing the 3D effect).
14944         
14945         * SizeGrip.cs:
14946         - Add a CapturedControl property that is used to 
14947         determine the control to resize (defaults to parent). 
14948         Needed for MdiClient, since its SizeGrip's parent is
14949         MdiClient, but the control to resize is the main form.
14950         
14951         * MdiClient.cs:
14952         - Set SizeGrip's CapturedControl to the main form in order
14953         to resize the main form and not the MdiClient.
14954         - Override AfterTopMostControl to leave the scrollbars 
14955         always on top.
14956
14957 2006-12-15  Daniel Nauck  <dna@mono-project.de>
14958
14959         * ListView.cs: fixed ListViewItemCollection AddRange and
14960                         implemented ListViewItemCollection AddRange 2.0 support.
14961
14962 2006-12-15  Daniel Nauck  <dna@mono-project.de>
14963
14964         * ListViewGroup.cs: Add.
14965         * ListViewGroupCollection.cs: Add
14966         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
14967         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
14968                                 stub for ImageKey 2.0 support.
14969
14970 2006-12-14  Mike Kestner  <mkestner@novell.com>
14971
14972         * ListView.cs: add text padding to the autocalculation for columns
14973         of width -2.  Fixes #80207.
14974  
14975 2006-12-14  Mike Kestner  <mkestner@novell.com>
14976
14977         * ListView.cs: add some index guarding for partial row navigation 
14978         logic.  Fixes #80250.
14979
14980 2006-12-14  Mike Kestner  <mkestner@novell.com>
14981
14982         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
14983         are added or inserted to the collection.  Fixes #81099.
14984
14985 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
14986
14987         * MenuAPI.cs: Closes menu when right click out side of popup
14988         it fix problem in ContextMenu and MainMenu. Fixes #80252.
14989
14990 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14991
14992         * ListViewItem.cs: Fix dumb error.
14993
14994         * ListView.cs: Add Find and ContainsKey methods in 
14995         ListViewItemCollection, and also return true for IsReadOnly
14996         and IsFixedSize (changes for 2.0). 
14997
14998 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
14999
15000         * Control.cs: Allow Region to be set to null.
15001
15002 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15003
15004         * MdiWindowManager.cs: Remove unused (commented out) code.
15005         * Form.cs: When the MdiChild is maximized, the form needs 
15006         WM_NCMOUSELEAVE, so request it.
15007         * InternalWindowManager.cs: 
15008         - Added tooltips to control buttons.
15009         - Removed duplicated control button handling code.
15010         - Removed unused (commented out) code.
15011         
15012 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
15013
15014         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
15015         was used because we must set cursor without trigger ChangeCursor event
15016         and without change Cursor control property. Fixes #79963.
15017
15018 2006-12-12  Andreia Gaita  <avidigal@novell.com>
15019         
15020         * Control.cs: Check if Region setter value is null, and ignore
15021
15022 2006-12-12  Jackson Harper  <jackson@ximian.com>
15023
15024         * TextControl.cs: We were almost always drawing one more line then
15025         needed, since the GetLineByPixel will return the last line found
15026         at that pixel. In most cases though, we were invalidating up to
15027         the junction between two lines.
15028         - Improve debug code.
15029
15030 2006-12-12  Chris Toshok  <toshok@ximian.com>
15031
15032         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
15033         and FillReversibleRectangle.
15034
15035         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
15036         and FillReversibleRectangle.
15037
15038         * XplatUIWin32.cs: add stubs which do nothing for
15039         DrawReversibleFrame, DrawReversibleLine, and
15040         FillReversibleRectangle.
15041
15042         * XplatUIOSX.cs: add stubs which raise NIE for
15043         DrawReversibleFrame, DrawReversibleLine, and
15044         FillReversibleRectangle.
15045
15046         * XplatUIX11.cs: add working implementation for
15047         DrawReversibleFrame, DrawReversibleLine, and
15048         FillReversibleRectangle.
15049         
15050         * ControlPaint.cs: implement DrawReversibleFrame,
15051         DrawReversibleLine, and FillReversibleRectangle, by calling into
15052         the appropriate XplatUI method.
15053
15054 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15055
15056         * Form.cs: Make MdiClient have the focus even if it's
15057         not selectable, since it should receive WM_KEY* and WM_MOUSE 
15058         messages. Fixes #79907.
15059         
15060 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15061
15062         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
15063         queried after the window is created.
15064         
15065         * XplatUIX11.cs: Added SendParentNotify to implement 
15066         WM_PARENTNOTIFY logic. Fixes #79965.
15067         
15068         * Control.cs: Added MakeParam.
15069         
15070 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15071
15072         * MdiClient.cs: Resume Layout before setting window
15073         states (fixes #80201).
15074
15075 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15076
15077         * MenuAPI.cs: Deselect a menu item after performing
15078         the click (fixes #80197).
15079
15080 2006-12-11  Jackson Harper  <jackson@ximian.com>
15081
15082         * TextBoxBase.cs: We need to cap this value, since Maximum -
15083         ViewPortHeight can be less than zero.
15084         - Only do selection with the left mouse button.
15085         * TextBox.cs: Don't tell the world that we have a context menu.
15086         * Control.cs: New method so that we can control whether or not the
15087         context menu is visible outside MWF.
15088
15089 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
15090
15091         * ToolBarButton.cs: Fix text positon. 
15092
15093 2006-12-11  Miguel de Icaza  <miguel@novell.com>
15094
15095         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
15096
15097         * Control.cs (DoubleBuffered): Add implementation.
15098
15099         * Application.cs (OpenForms): Add.
15100
15101 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
15102
15103         * Form.cs: Use opacity instead of Opactiy to determine if we need
15104         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
15105
15106 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
15107
15108         * Control.cs: Fix NRE if Control.Site was set to null.
15109
15110 2006-12-11  Chris Toshok  <toshok@ximian.com>
15111
15112         * Control.cs: ControlCollection.Remove should return if the arg is
15113         null, and ControlCollection.SetChildIndex should raise a ANE.
15114
15115 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
15116
15117         * Control.cs: Verify value set for Dock property. Code formatting
15118         updates.
15119
15120 2006-12-11  Jackson Harper  <jackson@ximian.com>
15121
15122         * TextControl.cs: Draw the caret and the selection when a flag is
15123         set on the owner.
15124         * TextBoxBase.cs: We want to draw the caret and the selection for
15125         TextBox but not for TextBoxBase.
15126         - If the window is resized and scrolling is no longer needed (the
15127         whole doc is visible) set the scroll position to zero.
15128         - The default SelectWord (the one TextBox uses) should move the
15129         caret to the end of the word.
15130         - SelectAll moves the caret to the end of the selection.
15131         * TextBox.cs: We don't selectall on focus, we just do it when the
15132         control is created.
15133         
15134 2006-12-11  Mike Kestner  <mkestner@novell.com>
15135
15136         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
15137
15138 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15139
15140         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
15141         2.0 support.
15142         * ListViewItem.cs: Add Name 2.0 property.
15143
15144 2006-12-11  Andreia Gaita  <avidigal@novell.com>
15145
15146         * TabControl.cs: Set visibility on selected or default tab 
15147         when tabcontrol handle is created, so that it's contents
15148         actually show up (duh). Fixes #80193
15149         Don't redraw the control if there is no handle created, as
15150         the selected index might be completely invalid. Added some tests
15151         to check for this.
15152
15153 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
15154
15155         * ToolBar.cs: Uses maximun width and height of all buttons as 
15156         button rectangle when ButtonSize specified, it looks strange but
15157         is what happens in Win32. Fixes #80189.
15158
15159 2006-12-11  Jackson Harper  <jackson@ximian.com>
15160
15161         * TextControl.cs: Need to track undo levels ourself, since
15162         compound actions will mess them up.
15163
15164 2006-12-10  Andreia Gaita  <avidigal@novell.com>
15165
15166         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
15167         SelectedIndex value is changed (even if it's not valid).
15168         Reset SelectedIndex to 0 when the handle is created and if
15169         the current index is invalid.
15170         Fixes SelectdeIndex unit tests and #80128
15171
15172 2006-12-08  Chris Toshok  <toshok@ximian.com>
15173
15174         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
15175         calls EndEdit, it needs to be called before we set current_cell to
15176         its new value.  Otherwise, we end up committing the value in the
15177         textbox to the new cell as well.  Fixes bug #80160.
15178
15179 2006-12-08  Chris Toshok  <toshok@ximian.com>
15180
15181         * Form.cs (set_CancelButton): if the button's DialogResult is
15182         None, set it to Cancel.  Fixes bug 80180.
15183
15184 2006-12-08  Jackson Harper  <jackson@ximian.com>
15185
15186         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
15187         to watch ourselves when setting the canvas size and setting the
15188         scrollbar values.
15189
15190 2006-12-08  Chris Toshok  <toshok@ximian.com>
15191
15192         * DataGrid.cs: comment out the two MakeTransparent calls for the
15193         time being so people using trunk (and not 1.2.2) on windows can
15194         actually use the datagrid.  This deals with bug #80151.
15195
15196 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
15197
15198         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
15199         Graphics.DrawImage (image, int, int, int, int) overload instead
15200         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
15201         the dpi difference and was blurring images it drew.
15202         [Fixes bug #79960]
15203
15204 2006-12-08  Chris Toshok  <toshok@ximian.com>
15205
15206         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
15207         rowcnt is 0 (such as with an empty datasource), and make sure we
15208         initialize not_usedarea.Y to cells.Y, so we don't draw over the
15209         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
15210
15211 2006-12-08  Chris Toshok  <toshok@ximian.com>
15212
15213         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
15214         grid.
15215
15216 2006-12-08  Chris Toshok  <toshok@ximian.com>
15217
15218         [ Fixes bug #80167 ]
15219         
15220         * ThemeWin32Classic.cs: don't draw the image if the button's flat
15221         style is FlatStyle.System.
15222
15223         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
15224         ButtonBase.flat_style private, and switch uses of it to the public
15225         property.
15226         
15227 2006-12-08  Chris Toshok  <toshok@ximian.com>
15228
15229         [ Fixes bug #80121 ]
15230         
15231         * ThemeWin32Classic.cs: center the caption text in the datagrid
15232         when we draw it.
15233
15234         * DataGrid.cs: lessen the amount we add to the caption height from
15235         6 to 2.  6 was making it huge.
15236
15237 2006-12-08  Andreia Gaita  <avidigal@novell.com>
15238
15239         * UpDownBase: Handle MouseWheel call directly instead of capturing
15240         the inner textbox's OnMouseWheel. Fixes #80166
15241
15242 2006-12-08  Jackson Harper  <jackson@ximian.com>
15243
15244         * TextControl.cs: We need to invalidate the textbox when we empty
15245         it (how had this not been discovered before?)
15246
15247 2006-12-08  Jackson Harper  <jackson@ximian.com>
15248
15249         * TextBoxBase.cs: Reworked the mouse down code so I could get it
15250         to behave like MS, we now ignore the eventargs.Click and just
15251         track state ourself, which we were already doing anyways.
15252         - Constrain the double click handler to the double click size.
15253         
15254 2006-12-08  Chris Toshok  <toshok@ximian.com>
15255
15256         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
15257         direction if that scrollbar isn't shown.  fixes bug #80158.
15258
15259 2006-12-08  Andreia Gaita  <avidigal@novell.com>
15260
15261         * NumericUpDown.cs: Update value on getter. Fixes #79950
15262
15263 2006-12-08  Chris Toshok  <toshok@ximian.com>
15264
15265         * MenuItem.cs: add back in the event cloning code.  I didn't know
15266         how to do it in the face of the EventHandlerList work i'd done
15267         last week.  Fixes bug #80183.
15268
15269 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
15270
15271         * Control.cs: Add an invalidate to the BackgroundImage setter.
15272         [Fixes 80184]
15273
15274 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
15275
15276         * ToolStrip*: Add some small properties reported by MoMA, fix event
15277         firing and default properties based off of unit tests, and add some
15278         attributes based off of the class status page.
15279
15280 2006-12-07  Jackson Harper  <jackson@ximian.com>
15281
15282         * TextBoxBase.cs: Take HideSelection into account when determining
15283         whether or not to show the selection.
15284         * RichTextBox.cs: After inserting the RTF into the document move
15285         the cursor to the beginning of the document.
15286
15287 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
15288
15289         * Control.cs: Remove static ArrayList "controls" which maintained
15290         a reference to every control created.
15291         * Application.cs: Create a static FormCollection to maintain a reference
15292         to every form created.  Use it in places that formerly enumerated through
15293         the controls one looking for forms.
15294         * Form.cs: Add and remove self from above FormCollection.
15295
15296 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
15297
15298         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
15299           not libgdk (though it makes me wonder why I didn't have any
15300           problems)
15301
15302 2006-12-07  Chris Toshok  <toshok@ximian.com>
15303
15304         [ you had to know this was coming after that last commit...]
15305         
15306         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
15307         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
15308         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
15309         XCopyArea).
15310
15311 2006-12-07  Chris Toshok  <toshok@ximian.com>
15312
15313         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
15314         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
15315         all the behavior we need for double buffering.
15316
15317         * XplatUIDriver.cs: implement the 3 double buffer methods using a
15318         client side Bitmap, just like the old Control-based double buffer
15319         code did.  The methods are virtual, so each XplatUI driver
15320         subclass can replace the implementation to use a faster, platform
15321         specific approach.
15322
15323         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
15324         double buffer code, and clean things up a bit in the process.
15325
15326 2006-12-06  Chris Toshok  <toshok@ximian.com>
15327
15328         * Control.cs: reindent WndProc.
15329
15330 2006-12-06  Chris Toshok  <toshok@ximian.com>
15331
15332         [ I wanna be like BenM when I grow up ]
15333         
15334         * Hwnd.cs: create a single static Graphics object on the static
15335         Bitmap we create.  use this for our text measurements.
15336
15337         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
15338         This was causing us to allocate a backbuffer for every control,
15339         even when it wasn't flagged as double buffered.  Instead use the
15340         single graphics instance.  This might have implications for
15341         multithreaded applications.  If we run into problems we can switch
15342         to creating 1 Graphics per control, on the static Hwnd bitmap.
15343
15344         this change nets us a 7M savings in private dirty mappings when
15345         running FormsTest.exe.
15346
15347 2006-12-06  Chris Toshok  <toshok@ximian.com>
15348
15349         * ListView.cs: the BackgroundImage override is just to set
15350         attributes.  chain up to base.BackgroundImage.
15351
15352         * RichTextBox.cs: same.
15353
15354         * ToolBar.cs: same, but we need to also redraw the toolbar when it
15355         changes, so instead a handler for BackgroundImageChanged.
15356         
15357         * Control.cs: make background_image private.
15358
15359 2006-12-06  Chris Toshok  <toshok@ximian.com>
15360
15361         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
15362         sure we even need this assignment, but roll with it for now.
15363
15364         * Control.cs: make the cursor field private.
15365
15366 2006-12-06  Chris Toshok  <toshok@ximian.com>
15367
15368         * Form.cs: we don't need to explicitly set ImeMode to
15369         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
15370         behavior in the face of ImeMode.Inherit.
15371
15372         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
15373         change the ctor's assignment to use ImeMode instead of ime_mode.
15374
15375         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
15376         ImeModeInherit.  Only check for the parent's imemode (and return
15377         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
15378         This fixes the button unit test, which sets both ImeMode and
15379         DefaultImeMode to ImeMode.Disable.
15380
15381         also make the ime_mode field private.
15382
15383 2006-12-06  Chris Toshok  <toshok@ximian.com>
15384
15385         * Control.cs: make control_style private.
15386
15387         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
15388         setting the styles to true, then setting them to false instead of
15389         reverting to their previous values.
15390
15391         also, call SetStyle on the scrollbars instead of using
15392         control_style directly.
15393
15394 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
15395
15396         * FormCollection.cs: Implement. [2.0]
15397
15398 2006-12-06  Chris Toshok  <toshok@ximian.com>
15399
15400         * Control.cs: make tab_stop private.
15401
15402         * Label.cs: set TabStop, not tab_stop.  reformat some event
15403         add/remove methods to make them more compact.
15404
15405 2006-12-06  Chris Toshok  <toshok@ximian.com>
15406
15407         * RadioButton.cs: fix TabStop handling.
15408
15409 2006-12-06  Chris Toshok  <toshok@ximian.com>
15410
15411         * TextBox.cs: remove the explicit assignments to has_focus.
15412         Control does that.
15413
15414         * ButtonBase.cs: remove the assignment to has_focus.  Control will
15415         manage that.
15416         
15417 2006-12-06  Chris Toshok  <toshok@ximian.com>
15418
15419         * ButtonBase.cs: remove all uses of is_enabled from this code.
15420         it's always true when any of the code containing the checks is
15421         executed.
15422
15423 2006-12-06  Chris Toshok  <toshok@ximian.com>
15424
15425         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
15426         with different semantics (some are present in both 1.1 and 2.0
15427         profiles) so that we match MS's behavior in our unit tests.
15428
15429 2006-12-06  Jackson Harper  <jackson@ximian.com>
15430
15431         * TextControl.cs: Make this operation undoable.
15432         * TextBoxBase.cs: Factor the border width into the preferred
15433         height.
15434         - implement Modified as per the spec.
15435
15436 2006-12-06  Chris Toshok  <toshok@ximian.com>
15437
15438         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
15439
15440 2006-12-06  Chris Toshok  <toshok@ximian.com>
15441
15442         * Control.cs: make right_to_left and context_menu fields private.
15443
15444 2006-12-06  Chris Toshok  <toshok@ximian.com>
15445
15446         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
15447         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
15448         Control.child_controls private.  switch all uses over to
15449         Control.Controls.
15450
15451 2006-12-06  Chris Toshok  <toshok@ximian.com>
15452
15453         * System.Windows.Forms/GroupBox.cs,
15454         System.Windows.Forms/AccessibleObject.cs,
15455         System.Windows.Forms/ErrorProvider.cs,
15456         System.Windows.Forms/Control.cs,
15457         System.Windows.Forms/UpDownBase.cs,
15458         System.Windows.Forms/ScrollBar.cs,
15459         System.Windows.Forms/DateTimePicker.cs,
15460         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
15461         System.Windows.Forms/ToolTip.cs,
15462         System.Windows.Forms/RadioButton.cs,
15463         System.Windows.Forms/LinkLabel.cs,
15464         System.Windows.Forms/Splitter.cs,
15465         System.Windows.Forms/TextBoxBase.cs,
15466         System.Windows.Forms/ToolStripTextBox.cs,
15467         System.Windows.Forms/ContainerControl.cs,
15468         System.Windows.Forms/ThemeWin32Classic.cs,
15469         System.Windows.Forms/SizeGrip.cs,
15470         System.Windows.Forms/ToolStripDropDown.cs,
15471         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
15472         private.  switch all uses over to Control.Parent.
15473
15474 2006-12-06  Chris Toshok  <toshok@ximian.com>
15475
15476         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
15477         Control does this before calling emitting these events.
15478
15479         * TabControl.cs: same.
15480
15481         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
15482         Control.client_rect.
15483
15484         * ButtonBase.cs: use the ClientSize property instead of the
15485         client_size field.
15486
15487         * ScrollableControl.cs: same.
15488
15489         * Control.cs: another pass at making properties private.  also,
15490         move the initialization of tab_stop to the ctor.
15491
15492 2006-12-05  Andreia Gaita <avidigal@novell.com>
15493
15494         * TabControl.cs: Let the selected index be set freely if the 
15495         control handle is not yet created.
15496
15497 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
15498
15499         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
15500         internal until I can rewrite DefaultLayout.
15501         * ToolStrip.cs: Fix build error and some general cleaning.
15502         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
15503         Fix build errors caused by making some of Control's fields private.
15504
15505 2006-12-05  Jackson Harper  <jackson@ximian.com>
15506
15507         * TextControl.cs: Redo Insert a little so that it use IndexOf
15508         instead of Split, this prevents it from messing up on things like
15509         \n\n\n. Also more effecient since the split array doesn't need to
15510         be created.
15511         * TextBoxBase.cs: AppendText doesnt handle multiline and non
15512         multiline text differently, this is the first of many fixes that
15513         will make multiline/non-multiline the same thing as far as the
15514         TextBoxBase is concerned.
15515         - Don't split the text and insert lines, this can lose some line
15516         endings (like is the last line a soft or hard break). Instead use
15517         the new Insert.
15518         - Fix an off by one when combining all the lines in the Text
15519         getter.
15520         - Remove separate multiline handling from the Text getter/setter.
15521
15522 2006-12-05  Chris Toshok  <toshok@ximian.com>
15523
15524         * ButtonBase.cs: a few changes:
15525
15526         - don't reinitialize internal Control fields in the ctor when they
15527         have the same values as Control sets them.
15528
15529         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
15530         this before calling those methods.
15531
15532         - we don't need to call Refresh for anything.  use Invalidate
15533         instead.
15534
15535         - OnEnabledChanged doesn't need to redraw at all - Control.cs
15536         calls Refresh in its OnEnabledChanged.
15537         
15538         - several of the events we were registered for in the ctor to
15539         redraw ourselves already include calls to Invalidate in the
15540         property setters that raise the events.  remove the extra
15541         invalidation.
15542
15543         - reformat a switch statement that was 83274658 columns wide.
15544         
15545 2006-12-05  Mike Kestner  <mkestner@novell.com>
15546
15547         * ComboBox.cs: fix a unit test regression from a TextBox
15548         SelectionLength return of -1 when there's no selection.  
15549
15550 2006-12-05  Chris Toshok  <toshok@ximian.com>
15551
15552         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
15553         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
15554         cleaning up some of the internal Control fields being used by
15555         subclasses.
15556
15557 2006-12-05  Mike Kestner  <mkestner@novell.com>
15558
15559         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
15560         listbox after AddImplicit calls since it defaults to hidden. Add a 
15561         hack to preserve requested heights across DropDownStyle changes.
15562
15563 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
15564
15565         * PropertyGrid.cs: Hide FindFirstItem method from public API.
15566
15567 2006-12-05  Chris Toshok  <toshok@ximian.com>
15568
15569         * DataGridView.cs: fix compiler warnings.
15570
15571         * PrintControllerWithStatusDialog.cs: same.
15572
15573         * ToolBar.cs: same.
15574
15575         * FolderBrowserDialog.cs: same.
15576
15577         * Splitter.cs: same.
15578
15579         * DataGridViewComboBoxCell.cs: same.
15580
15581         * XplatUIWin32.cs: same.
15582
15583         * PictureBox.cs: same.
15584
15585         * Win32DnD.cs: same.
15586
15587         * PageSetupDialog.cs: same.
15588
15589         * FileDialog.cs: same.
15590
15591         * PrintDialog.cs: same.
15592
15593         * DataGridTextBoxColumn.cs: same.
15594
15595         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
15596
15597 2006-12-05  Chris Toshok  <toshok@ximian.com>
15598
15599         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
15600         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
15601         System.ComponentModel.EventHandlerList work.
15602
15603 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
15604
15605         * DrawTreeNodeEventArgs.cs: Added.
15606
15607 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15608         
15609         * InternalWindowManager.cs: Remove an unused field.
15610         
15611 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15612
15613         * InternalWindowManager.cs:
15614         - Save the point where the title bar is clicked.
15615         
15616         * MdiWindowManager.cs:
15617         - Only allow moving of the window as long as the 
15618         clicked point on the title bar does not get out of
15619         MdiClient's rectangle. Fixes #79982.
15620         
15621         * MdiClient.cs:
15622         - Added Horizontal/VerticalScrollbarVisible.
15623         - Simplified the scrollbar sizing algorithm.
15624         - Cache the difference in scrolled value in
15625         H/VBarValueChanged and move the calculation out
15626         of the for loop.
15627
15628 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15629
15630         * Control.cs: Make the Console.WriteLine in WndProc 
15631         write more info.
15632
15633 2006-12-05  Chris Toshok  <toshok@ximian.com>
15634
15635         * ToolStripManager.cs, ToolStripButton.cs,
15636         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
15637         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
15638         ToolStripSplitButton.cs, ToolStripSeparator.cs,
15639         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
15640         ToolStripProgressBar.cs, ToolStripContainer.cs,
15641         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
15642         to using System.ComponentModel.EventHandlerList.
15643
15644 2006-12-04  Chris Toshok  <toshok@ximian.com>
15645
15646         * LinkLabel.cs: fix up compiler warnings.
15647
15648         * TableLayoutSettings.cs: same.
15649
15650         * TreeView.cs: same.
15651
15652         * ToolBar.cs: same.
15653
15654         * TabControl.cs: same.
15655
15656         * RichTextBox.cs: same.
15657
15658         * ListViewItem.cs: same.
15659
15660         * PropertyGrid.cs: same.
15661
15662         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
15663
15664         * ToolTip.cs same.
15665
15666         * TextRenderer.cs: fix up compiler warnings.
15667
15668         * Label.cs: same.
15669
15670         * Form.cs: corcompare fixes.
15671
15672         * PictureBox.cs: fix up compiler warnings.
15673
15674         * ImageListStreamer.cs: same.
15675
15676         * TrackBar.cs: corcompare fix.
15677
15678         * Control.cs: fix up compiler warnings.
15679
15680         * SplitterPanel.cs: same.
15681
15682         * NumericTextBox.cs: same.
15683
15684         * ImageList.cs: same.
15685
15686         * StatusStrip.cs: same.
15687
15688         * ProgressBar.cs: corcompare fix.
15689
15690         * ToolStripButton.cs: fix up compiler warnings.
15691
15692         * ToolStripStatusLabel.cs: same.
15693
15694         * ToolStripSplitButton.cs: same.
15695
15696         * ToolStripSeparator.cs: same.
15697
15698         * ToolStripProgressBar.cs: same.
15699
15700         * ToolStripDropDownMenu.cs: same
15701
15702         * ToolStripDropDown.cs: same.
15703
15704         * ToolStripDropDownButton.cs: same.
15705
15706         * ToolStrip.cs: same.
15707
15708         * ToolStripControlHost.cs: same.
15709
15710         * ToolStripContentPanel.cs: same.
15711
15712         * ToolStripDropDown.cs: same.
15713
15714         * ToolStripContainer.cs: same.
15715
15716         * ToolStripPanel.cs: same, and add "new" where we need it to work
15717         with the new ArrangedElementCollection.
15718
15719         * ToolStripItemCollection.cs: add "new" where we need it to work
15720         with the new ArrangedElementCollection.
15721
15722 2006-12-04  Andreia Gaita <avidigal@novell.com>
15723
15724         * TabControl.cs: Fix default tab selection to after TabControl
15725         gets focus and not before. Fixes #80128
15726
15727 2006-12-04  Chris Toshok  <toshok@ximian.com>
15728
15729         * DataGridTableStyle.cs: remove the gross calling of
15730         datagrid.Refresh from here.  It's a broken idea and it doesn't
15731         work anyway.
15732
15733         * DataGrid.cs: instead, just register/unregister from the
15734         DataGridTableStyle events in CurrentTableStyle.  we play it
15735         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
15736         even though some would most likely not require it.  Fixes bug
15737         #80115 (and one portion of #80117 as a side effect).
15738
15739 2006-12-04  Chris Toshok  <toshok@ximian.com>
15740
15741         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
15742         so the textbox (if any) goes away.  Fixes bug #80117.
15743
15744 2006-12-04  Chris Toshok  <toshok@ximian.com>
15745
15746         * DataGridColumnStyle.cs: set the column's readonly property
15747         initially based on the property descriptor's IsReadOnly.  Fixes
15748         bug #80044.
15749
15750 2006-12-04  Chris Toshok  <toshok@ximian.com>
15751
15752         * ComboBox.cs: wrap the dropdown style changing work in
15753         SuspendLayout/ResumeLayout.  Fixes bug #79968.
15754
15755 2006-12-04  Jackson Harper  <jackson@ximian.com>
15756
15757         * TextBoxBase.cs: Fix off by one, since these are one-based.
15758         * TextBox.cs: Select all the text when we get focus.  The TextBox
15759         does this but the RTB does not.
15760
15761 2006-12-04  Chris Toshok  <toshok@ximian.com>
15762
15763         * DataGridTextBoxColumn.cs: remove some spew.
15764
15765         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
15766         but some part of me is saying "it shouldn't be here.."  At any
15767         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
15768         setting the value.
15769
15770 2006-12-04  Chris Toshok  <toshok@ximian.com>
15771
15772         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
15773         to reassign the propertydescriptor.
15774
15775 2006-12-04  Jackson Harper  <jackson@ximian.com>
15776
15777         * TextBoxBase.cs:
15778         * TextControl.cs: Remove some unused variables.  Maybe this will
15779         patch things up between mike and I.
15780         - don't split lines less then one char wide, if the viewport is
15781         that small text won't be visible anyways.
15782         
15783 2006-12-04  Jackson Harper  <jackson@ximian.com>
15784
15785         * TextBoxBase.cs: Default selection length is -1, need to do some
15786         more testing on windows to see when this is used for the property.
15787         - Redid the Lines [] property to that we properly remove soft line
15788         breaks
15789         - added support for preserving carriage returns
15790         -  CanUndo is not a variable like 'is undo enabled' it just returns
15791         true if there is undo operations available.
15792         - AppendText doesn't need to grab the last tag itself anymore,
15793         this happens automatically when we move the cursor.
15794         * TextControl.cs: Add CompoundActions to the undo class. This
15795         allows combining the other operations into one big option.  ie a
15796         paste will combine { delete old, insert new, move cursor }
15797         - Add InsertString undo operation
15798         - New method for deleting multiline text
15799         - Add carriage returns to lines. So we can preserve carriage
15800         returns when text is 'roundtripped'
15801
15802 2006-12-04  Chris Toshok  <toshok@ximian.com>
15803
15804         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
15805         minimum 0.  Fixes the scrollbar exception in bug #80136.
15806
15807 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15808
15809         * MdiClient.cs: 
15810         * MdiWindowManager: Removed unused fields and methods.
15811         
15812 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15813         
15814         * StatusBar.cs: Update all panels when a AutoSize=Contents
15815         panel needs updating.
15816         
15817         * StatusBarPanel.cs: Remove twidth and only use initialize.
15818         Fixes #80031.
15819                 
15820 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15821
15822         * Form.cs: When a form's MdiParent is set add it directly
15823         on top of the z-order in stead of relying on MdiClient's
15824         ActivateChild to do it. Fixes #80135.
15825         
15826         * MdiClient.cs: 
15827         - Remove original_order, mdi_child_list is already doing
15828         the same thing.
15829         - Create mdi_child_list on construction in
15830         stead of first use (avoids a few null checks).
15831
15832         * MenuItem.cs: Use an already existing list of mdi children
15833         to get the correct order of children and remove the other
15834         redundant list.
15835
15836 2006-12-04  Chris Toshok  <toshok@ximian.com>
15837
15838         * PropertyGridView.cs: cached_splitter_location is only used in
15839         !DOUBLEBUFFER code.
15840
15841         * PropertyGrid.cs: implement the ComComponentNameChanged event
15842         using Events, hoping that would fix the warning.  Looks like a
15843         compiler bug instead (#80144).
15844
15845         * PropertyManager.cs: remove unused method.
15846
15847 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
15848
15849         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
15850         include parentesis to fix expression evaluation. Fixes #79634.
15851
15852 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
15853         
15854         * MenuAPI.cs:
15855         - Changes to fix behavior in Menu control, some reported in #80097
15856         and other detected during behavior refactory like a select event
15857         problems.
15858         - Remove unneded "if's" conditions.
15859         - Created an internal to flag when popup is active in control, we need 
15860         it because in .NET you can have menu active but without popup active
15861         when you active menu using popup without visible items.
15862         - Mimic win32 behavior for Select and Popup events.  
15863         - Dont open popup menu when you dont have visible subitems.
15864         - Do nothing when click on disabled menu item.
15865         - Some small changes to follow the coding style guidelines.
15866         - Unselect menu only when another control gives focus. Fixes #80097.
15867         - Remove unused code.
15868         
15869         * MenuItem.cs: internal VisibleItems method to check if menu
15870         theres visible subitems, it will be usefull to fix some 
15871         behavior in Menu control.
15872         
15873 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
15874         
15875         * Timer.cs: Tag property for 2.0 profile.
15876         
15877 2006-12-01  Chris Toshok  <toshok@ximian.com>
15878
15879         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
15880         
15881         * Win32DnD.cs: comment out some unused fields.
15882
15883         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
15884         some unused properties/methods.
15885
15886         * XplatUIX11.cs: fix MousePosition so we override the base class's
15887         property instead of conflicting with it.
15888
15889         * PictureBox.cs: comment out some unused fields
15890
15891         * OSXStructs.cs: make some struct fields public.
15892
15893         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
15894         MousePosition so we override the base class's property instead of
15895         conflicting with it.
15896
15897         * X11Dnd.cs: comment out some unused fields
15898
15899         * X11DesktopColors.cs: fix some struct field visibility to quiet
15900         the compiler.
15901
15902         * X11Dnd.cs: remove some debug code.
15903
15904         * ThemeClearlooks.cs: comment out unused field.
15905
15906         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
15907
15908         * ThemeGtk.cs: comment out some unused pinvokes.
15909
15910         * Timer.cs: remove some unused fields.
15911
15912         * ThemeClearlooks.cs: comment out unused field.
15913
15914         * UpDownBase.cs: comment out unused field.
15915
15916         * DataObject.cs: comment out unused field.
15917
15918         * DataGridBoolColumn.cs: reomve unused field.
15919
15920         * DataGrid.cs: remove unused field.
15921
15922         * Cursor.cs: remove old ToBitmap code.
15923
15924         * ControlPaint.cs: remove unused method.
15925
15926         * ScrollBar.cs: remove unused fields.
15927
15928         * ComboBox.cs: remove unused field, and chain up to
15929         AccessibleObject ctor.
15930
15931         * ListBox.cs: remove unused field.
15932
15933         * ButtonBase.cs: wrap a couple fields in NET_2_0.
15934
15935         * GridEntry.cs: remove unused fields.
15936
15937         * Binding.cs: remove unused fields.
15938
15939         * AxHost.cs: remove unused method.
15940
15941         * ContainerControl.cs: remove unused field.
15942
15943         * ScrollableControl.cs: remove unused fields.
15944
15945 2006-12-01  Chris Toshok  <toshok@ximian.com>
15946
15947         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
15948         the Where/WhereString stuff.  it's easy enough to CWL
15949         Environment.StackTrace.
15950
15951         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
15952         unused private fields.
15953
15954 2006-12-01  Jackson Harper  <jackson@ximian.com>
15955
15956         * TextControl.cs: Do not update the view while inserting multiline
15957         text. If we update the view we might wrap lines, before entering
15958         the new lines, which causes the new line insertion calculations to
15959         be totally fubared.
15960         - Remove an old TODO
15961         - Make debug output a little nicer
15962         
15963 2006-12-01  Chris Toshok  <toshok@ximian.com>
15964
15965         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
15966
15967 2006-12-01  Chris Toshok  <toshok@ximian.com>
15968
15969         [ fix the majority of the CS0108 warnings we've been suppressing ]
15970         
15971         * TreeView.cs: mark BackgroundImageChanged as 'new'.
15972
15973         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
15974         to "LayoutToolBar" to quiet mcs.
15975         
15976         * TabControl.cs: mark our ControlCollection class as 'new'.
15977
15978         * TextBoxBase.cs: mark some events as 'new'.
15979
15980         * Splitter.cs: TabStop is 'new'.
15981
15982         * ControlBindingsCollection.cs: mark a few methods as new since
15983         they change the visibility from protected to public.
15984
15985         * RadioButton.cs: DoubleClick -> base class, and remove unused
15986         HaveDoubleClick.
15987
15988         * MonthCalendar.cs: ImeMode property -> base class, and mark many
15989         events as new.
15990
15991         * NumericUpDown.cs: TextChanged -> base class.
15992
15993         * CheckedListBox.cs: mark our ObjectCollection class as new to
15994         quiet mcs.
15995
15996         * FolderBrowserDialog.cs: make HelpRequest event new and have it
15997         muck with the base class.
15998
15999         * StatusBar.cs: fix some mcs warnings about Update being the same
16000         name as a base class method.
16001
16002         * RichTextBox.cs: mark some events as new, and make them do things
16003         to the base class impl.
16004
16005         * UserControl.cs: mark TextChanged as new, and have it manipulate
16006         base.TextChanged.
16007
16008         * UpDownBase.cs: mark some things new.
16009
16010         * CheckBox.cs: mark DoubleClick "new", and add some text about
16011         what we need to look at.
16012
16013         * Panel.cs: make the events "new", and manipulate the base
16014         version.  these are just here for attributes.
16015
16016         * AccessibleObject.cs: make owner private.
16017
16018         * Control.cs: deal with AccessibleObject.owner being private.
16019         cache our own copy if we need it.
16020
16021         * Button.cs: add "new" to the DoubleClickEvent.
16022
16023         * ListBox.cs: no need to track our own has_focus here.  let
16024         Control.has_focus do it for us.  Also some other work to clear up
16025         warnings about not overriding base class methods of the same name.
16026         
16027         * ComboBox.cs: clear up some warnings about not override base
16028         class methods of the same name.
16029
16030 2006-12-01  Chris Toshok  <toshok@ximian.com>
16031
16032         * Form.cs: flag a few things as "new" to quiet some of the mcs
16033         warnings.
16034
16035         * AxHost.cs: same.
16036
16037         * PrintPreviewDialog.cs: same.
16038
16039         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
16040         now DGV isn't so horrible on the class status page.  also, move
16041         all events to using System.ComponentModel.EventHandlerList.  my
16042         wrists hurt.
16043
16044 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16045
16046         * MdiWindowManager.cs:
16047         - Set form to active mdi child if shown,
16048         and update the active mdi child to the next 
16049         remaining child in the z-order if the form is hidden.
16050
16051         * Form.cs: 
16052         - Track if the form has been visible and if its 
16053         visibility is beeing changed, so that the MdiClient
16054         can properly decide the ActiveMdiChild. The MdiClient 
16055         cannot track this since the form can change visibility 
16056         before MdiClient is created.
16057
16058         * MdiClient.cs:
16059         - Don't activate anything of the parent form is changing
16060         its visibility.
16061         - Rework ActiveMdiChild to only return visible mdi 
16062         children and take into account several other corner 
16063         cases.
16064
16065 2006-12-01  Chris Toshok  <toshok@ximian.com>
16066
16067         * IBindableComponent.cs: new 2.0 interface.
16068
16069 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
16070
16071         * DataGrid.cs: Font for caption area is bold by default.
16072
16073 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
16074
16075         * Menu.cs: Tag property for 2.0.
16076         
16077 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
16078
16079         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
16080         
16081 2006-12-01  Chris Toshok  <toshok@ximian.com>
16082
16083         * TreeView.cs: doh, the Begin* events should be
16084         TreeViewCancelEventHandler.
16085
16086 2006-12-01  Chris Toshok  <toshok@ximian.com>
16087
16088         * Form.cs: Form.ControlCollection already stores off the
16089         form_owner field.  don't access the base class's internal "owner"
16090         field.
16091
16092         * Control.cs: make all the fields in Control.ControlCollection
16093         private.  there's no need for any internal fields here.
16094
16095 2006-12-01  Chris Toshok  <toshok@ximian.com>
16096
16097         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
16098         OnHandleCreated.  Fixes bug #80109.
16099
16100 2006-12-01  Chris Toshok  <toshok@ximian.com>
16101
16102         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
16103         SplitContainer.cs, Control.cs, StatusStrip.cs,
16104         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
16105         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
16106         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
16107         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
16108         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
16109         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
16110         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
16111         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
16112         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
16113         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
16114
16115         do most of the work to convert our code over to use
16116         System.ComponentModel.Component.Events for
16117         adding/removing/dispatching events.
16118
16119
16120 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
16121
16122         * DataGridView.cs: Fix an ArgumentNullException reported 
16123         twice today in IRC.
16124
16125 2006-11-30  Mike Kestner  <mkestner@novell.com>
16126
16127         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
16128         grabbed listbox.  Fixes #80036 and #80101.
16129
16130 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
16131
16132         * Message.cs: Changed ToString() to match MS.
16133         
16134 2006-11-30  Jackson Harper  <jackson@ximian.com>
16135
16136         * TextBoxBase.cs: You can still change the selected text on a read
16137         only textbox.
16138         * TextControl.cs: Lower magic number for wrap calculations. This
16139         lets text get closer to the right (far) edge.
16140
16141 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
16142
16143         * Control.cs: Tweak 2.0 layout properties.
16144         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
16145         * TextRenderer.cs: Add a new overload.
16146         * ToolStrip*: Huge amount of changes and new features.
16147
16148 2006-11-30  Mike Kestner  <mkestner@novell.com>
16149
16150         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
16151         scroll range correct.  Fixes #79994.
16152
16153 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
16154
16155         * MdiWindowManager.cs: Update main form's text when
16156         a form is closed. (fixes #80038)
16157         
16158 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
16159
16160         * ToolBar.cs:
16161         - Fix an regression in ButtonSize.
16162         - Get ImeMode default value change to "Disable".
16163         - Get ShowTooltips default value change to true, default value is 
16164         "false" but after make a test in .NET we get "true" result as default.
16165         
16166 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
16167
16168         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
16169
16170 2006-11-29  Chris Toshok  <toshok@ximian.com>
16171
16172         * XplatUIWin32.cs (GetWindowTransparency): check return value of
16173         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
16174         SetWindowTransparency hasn't been called.
16175
16176 2006-11-29  Chris Toshok  <toshok@ximian.com>
16177
16178         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
16179         if it's supported.
16180         (set_AllowTransparency): reorder things a little so that the
16181         WS_EX_LAYERED style is removed properly.
16182
16183 2006-11-29  Chris Toshok  <toshok@ximian.com>
16184
16185         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
16186         
16187         * Form.cs: only call the XplatUI transparency method (get/set) if
16188         SupportsTransparency says it's supported. Otherwise fallback to
16189         doing nothing (in the set case) or returning the instance field we
16190         cache (in the get case).
16191
16192         * XplatUIStructs.cs: add TransparencySupport flag enum.
16193         
16194         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
16195         change to SupportsTransparency.
16196
16197         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
16198         TransparencySupport.None from SupportsTransparency.
16199
16200         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
16201         TransparencySupport.Set from SupportsTransparency.
16202
16203         * XplatUIWin32.cs: implement GetWindowTransparency calling
16204         GetLayeredWindowAttributes, and implement SupportsTransparency by
16205         checking whether or not both
16206         GetWindowTransparency/SetWindowTransparency are available
16207         entrypoints.  We need to do this since SetWindowTransparency is
16208         available as of win2k, but GetWindowTransparency requires winxp.
16209         yay win32 api.
16210
16211         * XplatUI.cs: Add GetWindowTransparency, and change
16212         SupportsTransparency to allow for either/both Get/Set.
16213
16214 2006-11-29  Chris Toshok  <toshok@ximian.com>
16215
16216         * DataGrid.cs: keep from going into an infinite loop redrawing a
16217         datagrid that has no datasource.  Fixes bug #80033.
16218
16219 2006-11-29  Chris Toshok  <toshok@ximian.com>
16220
16221         * MenuItem.cs: fix the NRE when we assign text (and therefore call
16222         Invalidate) before the mainmenu has been assigned to a control.
16223
16224 2006-11-29  Chris Toshok  <toshok@ximian.com>
16225
16226         * DataGrid.cs: detect when we should be double the double click
16227         row/column autosize stuff, although that codepath has yet to be
16228         written.  part of the work for bug #79891.
16229
16230 2006-11-29  Chris Toshok  <toshok@ximian.com>
16231
16232         * Binding.cs (SetControl): fix unit test.
16233
16234 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16235
16236         * PageSetupDialog.cs: Validate the margins and set them in
16237         PageSettings. 
16238         * NumericTextBox.cs: New class to mimic the behavior of the
16239         textboxes used in the printing dialogs.
16240
16241 2006-11-29  Andreia Gaita  <avidigal@novell.com>
16242         
16243         * Form.cs: Revert previous change (remove call UpdateBounds
16244         from form constructor), because it messes with the handle creation
16245         order, and that one needs lots and lots of love.
16246         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
16247         for valid printer and throw InvalidPrinterException if document
16248         is set but printer not valid), adding a MonoTODO. Once 
16249         handle creation is done properly, we can put this back in.
16250
16251 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
16252
16253         * MenuItem.cs: Create a invalidate method for menu item, to be
16254         calling from set text, it make text changes to imadiate update
16255         on screen. Fixes #80013. 
16256         
16257 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
16258
16259         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
16260         fixes bug #80070 and some other problem on toolbar buttons
16261         layout.
16262
16263 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
16264
16265         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
16266         with dotted brush.      Fixes #79564
16267         
16268 2006-11-28  Andreia Gaita  <avidigal@novell.com>
16269
16270         * Form.cs: Removed call to UpdateBounds on Form
16271         constructor, it was causing a call to CreateHandle
16272         before it was supposed to.
16273         * PrintControllerWithStatusDialog: Applied patch
16274         by Chris Toshok to hide controller when there are
16275         no printers available.
16276         PrintDialog.cs: initialize printer settings to 
16277         null - correct DefaultValues test #5
16278         * PrintPreviewControl.cs: Move PrintController
16279         initialization to GeneratePreview
16280         * PrintPreviewDialog.cs: 
16281         - Remove Preview generation     from Document_set(). It is 
16282         called on OnPaint
16283         - Throw InvalidPrinterException on CreateHandle if
16284         a Document is set but there are no printers or 
16285         printer is not valid.
16286         * ThemeWin32Classic: don't paint PrintPreviewControl
16287         if there is nothing to paint    
16288
16289 2006-11-28  Miguel de Icaza  <miguel@novell.com>
16290
16291         * Form.cs: Add another popular method.
16292
16293         * TabPage.cs: ditto.
16294
16295 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16296
16297         * MenuItem.cs: Fixed a warning.
16298         * InternalWindowManager: Fixed a warning.
16299
16300 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16301
16302         * MenuItem.cs:
16303         - When cloning a menu also clone MdiList and clone the 
16304           window menu items properly (as the forms and menuitems
16305           are kept in an internal hashtable, these need updating 
16306           as well)
16307         - Rewrote the window menu code, menu items are added in the
16308           order the forms were added to their parent, and they are
16309           updated every time the window menu is shown (before the
16310           list was only generated once, in the current order of the
16311           forms, and would never be updated). A checkmark is shown
16312           next to the item corresponding to the active mdi child.
16313
16314 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16315
16316         * XplatUIStructs.cs: 
16317         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
16318         
16319         * XplatUIWin32.cs: 
16320         - Added TME_NONCLIENT to TMEFlags.
16321         - Handles WM_NCMOUSEMOVE in GetMessage to 
16322           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
16323
16324         * MdiWindowManager:
16325         - Now merges mdi child menu to parent menu when maximized.
16326         - Recalculate NC areas of both mdi child and mdi parent. 
16327           Fixes #79757 (4).
16328           on window state and size changes.Fixes #79844 (3).
16329         - Handle WM_NCCALCSIZE to properly calculate borders.
16330
16331         * Form.cs:
16332         - Add/remove to the mdi containers list of mdi children 
16333           in the order they are added.
16334         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
16335           to the maximized mdi child.
16336         
16337         * InternalWindowManager.cs:
16338         - Only execute a click on the control buttons on the mouse up,
16339           not on the mouse down. Show the state of the button 
16340           (was only showing Normal state, never Pressed state). The
16341           pressed button now follows the mouse (if you click the Close 
16342           button and move the mouse over the Maximize button, the 
16343           Maximize button will be shown as pressed). Since Win32 does
16344           not generate WM_NCLBUTTONUP if you release the button outside
16345           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
16346           it as a mouse up.
16347         
16348         * ThemeWin32Classic.cs:
16349         - Draw a missing border around mdi child forms. Fixes #79844 (2).
16350
16351         * MdiClient.cs:
16352         - Added a list of forms which contains the order the forms are
16353           added to the mdi parent.
16354         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
16355         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
16356         - If the active form changes set the scrollbars to the top
16357           of the Z order, otherwise the form could hide them.
16358         - Scrollbars are now sized according to ClientSize, not 
16359           to Size, and they take into account the other scrollbar
16360           to determine maximum.
16361         
16362 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
16363         
16364         * XplatUI.cs:
16365         * XplatUIDriver.cs:
16366         * XplatUIX11.cs:
16367         * XplatUIWin32.cs:
16368         * XplatUIOSX.cs:
16369         - Added RequestAdditionalWM_NCMessages for windows to 
16370           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
16371           Currently only implemented in XplatUIWin32.
16372
16373 2006-11-27  Chris Toshok  <toshok@ximian.com>
16374
16375         * Hwnd.cs: only add the hwnd to the windows hash in
16376         set_WholeWindow and set_ClientWindow if whole_window/client_window
16377         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
16378
16379 2006-11-27  Mike Kestner  <mkestner@novell.com>
16380
16381         * ComboBox.cs: remove redundant OnDropDown call.  It is called
16382         from the ComboListBox.ShowWindow code. Fixes #79969.
16383
16384 2006-11-27  Chris Toshok  <toshok@ximian.com>
16385
16386         * Hwnd.cs: remove the setters for ExposePending and
16387         NCExposePending - noone uses them.
16388
16389 2006-11-27  Jackson Harper  <jackson@ximian.com>
16390
16391         * TextControl.cs: new param for ReplaceSelection which determines
16392         whether we select the new selection, or set the cursor to the end
16393         of the new selection.
16394         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
16395         pasting, select the new text.
16396         * RichTextBox.cs: Use new param for ReplaceSelection.
16397
16398 2006-11-27  Jackson Harper  <jackson@ximian.com>
16399
16400         * TextBoxBase.cs: Set the selection to the caret after the caret
16401         is moved, otherwise they get out of sync.
16402
16403 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
16404
16405         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
16406         it fixes #80015
16407
16408 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
16409
16410         * ThemeWin32Classic.cs: 
16411         - Fix toolbar drop down arrow position.
16412         - Fix drop down appearance when ToolBar.Appearance is normal,
16413         it fixes #80018.
16414         
16415 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
16416
16417         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
16418         * Control.cs: Same.
16419         * UpDownBase.cs: Same.
16420         * ButtonBase.cs: Same.
16421         * ScrollBar.cs: Same.
16422         * TrackBar.cs: Same.
16423         * PictureBox.cs: Same.
16424         * UserControl.cs: Same.
16425         * Label.cs: Same.
16426         * ListControl.cs: Same.
16427         * TextBoxBase.cs: Same.
16428         * ListView.cs: Same.
16429         * RichTextBox.cs: Same.
16430         * TreeView.cs: Same.
16431
16432 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
16433
16434         * PrintDialog.cs:
16435         - Text label for where 
16436         - Text label comment was not shown
16437
16438 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
16439
16440         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
16441
16442 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
16443
16444         * InternalWindowManager.cs: 
16445         - Handle WM_PARENTNOTIFY to activate the form
16446         if any child control is clicked.
16447         - The form is only sizable if not minimized.
16448
16449         * MdiWindowManager.cs:
16450         - Save the IconicBounds if the form is moved.
16451         - Rework SetWindowState, now the window bounds 
16452         are stored only if the old window state is Normal.
16453         
16454         * MdiClient.cs:
16455         - In SetWindowStates store the old window state if 
16456         the window is maximized and restore window state if
16457         the window looses focus.
16458         - Don't handle any scrollbar value changes if 
16459         initializing the scroll bars. Fixes #79771.
16460         - Reworked ArrangeIconicWindows. Current algorithm
16461         tests bounds agains all other minimized windows, if
16462         any intersections create new bounds (going left to 
16463         right, bottom to top) and then test again. When 
16464         successful the bounds are saved and never computed
16465         again. Fixes #79774.
16466
16467 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
16468
16469         * InternalWindowManager.cs: Added HandleTitleBarUp.
16470
16471 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
16472
16473         * NumericUpDown.cs: In .NET 1.1, user entered text is still
16474         hexadecimal in ParseUserEdit.
16475
16476         
16477 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
16478
16479         * MdiWindowManager.cs: 
16480         - Handle a click on the form's icon to show the 
16481         system menu (when maximized). Fixes #79775.
16482         - Change the existing click handler for the form's
16483         icon when not maximized to show on MouseUp.
16484         Fixes #79776.
16485
16486         * Form.cs: In OnResize only layout the mdi child's
16487         parent if it actually has a parent. Might not if
16488         the window is closing.
16489
16490
16491 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
16492
16493         * MdiClient.cs: Ignore active MDI client for text of parent, if
16494         child has no text set.
16495
16496 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
16497
16498         * ToolBar.cs: Fixed ToString to match MS.
16499
16500 2006-11-22  Andreia Gaita  <avidigal@novell.com>
16501
16502         * NumericUpDown: 
16503         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
16504         update inner values on set. Fixes #79966.
16505         - Override OnLostFocus to update value on NET 2. Fixes #79950.
16506         - Fix hexadecimal parsing.
16507         
16508         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
16509         parent. Fixes #79957
16510
16511 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16512
16513         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
16514         the actual size has to be queried, since if height /
16515         width is negative Win32 changes it to 0. 
16516         Fixes #79999 on Windows.
16517         
16518         * XplatUIX11.cs: Set height / width to 0 if negative
16519         in SetWindowPos. Fixes #79999 on Linux.
16520         
16521 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
16522
16523         * ThemeWin32Classic.cs: Fix text redenring when button is
16524         pressed.
16525
16526 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
16527
16528         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
16529         and later navigate by mouse. Fixes #79528.
16530
16531 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
16532
16533         * ToolBar.cs: Set default value for TabStop to false in
16534         constructor, it fixes remaining behavior of bug #79863.
16535
16536 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16537
16538         * MdiWindowManager.cs:
16539         * InternalWindowManager.cs:
16540         - Moved a few methods specific to Mdi from 
16541         InternalWindowManager to MdiWindowManager.
16542         Fixes #79996.
16543         
16544 2006-11-21  Chris Toshok  <toshok@ximian.com>
16545
16546         * XplatUIOSX.cs: stub out InvalidateNC.
16547
16548         * XplatUIWin32.cs: implement InvalidateNC using the call I found
16549         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
16550
16551         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
16552
16553         * XplatUIDriver.cs: add InvalidateNC abstract method.
16554
16555         * XplatUI.cs: add InvalidateNC.
16556
16557 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
16558
16559         * ToolBar.cs: Invalidate complete button area when pressed status 
16560         was changed.
16561         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
16562         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
16563         by 1 when button is pressed.
16564
16565 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
16566
16567         * ToolButton.cs: Invalidate middle of DropDown button when
16568         ToolBar theres DropDownArrows.
16569         * ThemeWin32Classic.cs: Change position of DropDown arrow and
16570         fix DropDown drawing operations.
16571
16572 2006-11-20  Chris Toshok  <toshok@ximian.com>
16573
16574         * NativeWindow.cs: fix the formatting of functions ('{' on the
16575         following line), and enable the thread exception dialog.
16576
16577         * Application.cs: remove the duplicate exception catching from
16578         here.
16579
16580 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
16581
16582         * Toolbar.cs: Triggers button click event when click on icon
16583         of dropdown ToolBarButton. Fixes #79912.
16584         
16585 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16586
16587         * Theme.cs:
16588         * ThemeWin32Classic.cs:
16589         - Added a property WindowBorderFont to enable themeing
16590           of mdi child windows' Text.
16591           
16592 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16593
16594         * InternalWindowManager.cs:
16595         * Form.cs:
16596         * MdiClient.cs:
16597         * MdiWindowManager.cs: 
16598         - If mdi child is maximized, set mdi parent's
16599           text to "Parent - [Child]". Fixes #79770.
16600         - If there is any maximized mdi child windows, only the active 
16601           window (and any new windows) is maximized, the rest are normal.
16602         - On a WindowState change only save mdi child's window bounds 
16603           if the old window state was normal. Fixes #79774.
16604         - The scroll bars are now calculated on hopefully all
16605           necessary events. Fixed #79771 / #79844->6 / #79906.
16606         - MdiClient.SizeScrollBars() now takes into account docked 
16607           controls in the parent when calculating available space.
16608         - InternalWindowManager now always repaints the entire title
16609           area. Fixes #79844->1/4/5.
16610         - Added RequestNCRecalc on mdi child windowstate changes.
16611           Fixes #79772.
16612
16613 2006-11-20  Mike Kestner  <mkestner@novell.com>
16614
16615         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
16616         in the MouseUp handler of the listbox and move the return handling
16617         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
16618
16619 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
16620
16621         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
16622
16623 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
16624
16625         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
16626           working in 1.2.x anymore. So, updated.
16627
16628 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
16629
16630         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
16631         NumberGroupSeparator of current culture instead of assuming en-US.
16632         Fixed bug #79967.
16633
16634 2006-11-17  Mike Kestner  <mkestner@novell.com>
16635
16636         * Control.cs: Add the concept of implicit bounds setting so that
16637         dock/undock round trips preserve explicitly set size/locations.
16638         Fixes #79313.
16639
16640 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
16641
16642         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
16643           can't handle those filters. (Fixes bug #79961)
16644
16645 2006-11-17  Chris Toshok  <toshok@ximian.com>
16646
16647         [ fixes the exit/crashes associated with #79835.  it's clearly
16648         suboptimal though, we need to figure out a better way to solve
16649         this. ]
16650         
16651         * PrintPreviewControl.cs: deal with the new invalid printer
16652         exceptions.
16653
16654         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
16655         and return false (so CommonDialog.ShowDialog doesn't actually show
16656         the form.)
16657
16658         * PrintDialog.cs: enable/disable the Ok button depending on
16659         whether or not the printer is valid.
16660
16661         * CommonDialog.cs (ShowDialog): only actually show the form if
16662         RunDialog returns true.
16663
16664 2006-11-17  Jackson Harper  <jackson@ximian.com>
16665
16666         * TextControl.cs: When soft splitting a line, mark it as a soft
16667         split line. Also carry over the current line break to the next
16668         line.
16669
16670 2006-11-17  Chris Toshok  <toshok@ximian.com>
16671
16672         * XplatUIX11.cs: when scrolling a window with an invalid area, we
16673         only want to shift the part of the invalid area that overlaps the
16674         area we're scrolling.  we also don't want to clear the invalid
16675         area unless the invalid area was entirely contained within the
16676         scrolling area.
16677
16678 2006-11-16  Chris Toshok  <toshok@ximian.com>
16679
16680         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
16681         also make sure to free the memory returned by XGetWindowProperty
16682         in GetText().
16683
16684         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
16685
16686 2006-11-16  Chris Toshok  <toshok@ximian.com>
16687
16688         * XplatUI.cs: add a new super secret way to get at the totally
16689         unsupported X11 backend.
16690
16691 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
16692
16693         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
16694
16695 2006-11-16  Jackson Harper  <jackson@ximian.com>
16696
16697         * TreeView.cs: Allow more explicit setting of top node position
16698         for scrollbars. Slower algo, but more accurate.
16699         - CollapseAll should maintain the current top node.
16700         * TextBoxBase.cs: When positioning the caret, use the line, pos
16701         method, since the x, y method does not grab the correct tag, and
16702         the caret height never gets set correctly. (Maybe I should just do
16703         away with the caret having its own height, and always use the
16704         carets current tag for height).
16705
16706 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
16707
16708         [Fixes 79778, 79923]
16709
16710         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
16711         Parent to the FosterParent instead.
16712
16713 2006-11-16  Jackson Harper  <jackson@ximian.com>
16714
16715         * TreeView.cs: Need to recalc the topnode when we expand or
16716         collapse. The scrolling methods can't handle this on their own,
16717         since they use differences between the last scroll position, and
16718         those difference get completely messed up since we are expanding
16719         nodes.  This problem should probably be fixed in the scrolling
16720         methods, so they can figure out exactly where they are, but this
16721         will slow things down a little.
16722         * ThemeWin32Classic.cs: Special case for groupboxes with empty
16723         strings, makes nunit-gui look a lot nicer.
16724
16725 2006-11-16  Chris Toshok  <toshok@ximian.com>
16726
16727         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
16728         the broken multithreaded event handling we have in here.  File
16729         this entry under "Why we should move to the new X11 backend".
16730
16731         Any thread can make it into UpdateMessageQueue, which gets events
16732         from the X socket - some of which could belong to hwnds being
16733         managed by a different thread.  We can also have multiple threads
16734         in UpdateMessageQueue at the same time, with each one reading from
16735         the X socket.  This leads to many problems, with the following
16736         solutions:
16737
16738         We can't use hwnd.Queue.Enqueue anywhere in here and must use
16739         EnqueueLocked.
16740
16741         The MotionNotify compression we do can't work across threads
16742         (without locking the entire queue, perhaps) since we call
16743         hwnd.Queue.Peek, so we just punt and don't compress motion events
16744         unless the owning thread is the one which got the X event.
16745
16746         ConfigureNotify is another fun one, since it modifies the hwnd's
16747         bounds and then enqueues the event.  We add a lock to Hwnd which
16748         is held when setting configure_pending to true (and enqueuing the
16749         event).
16750
16751         There is a race wrt the wake socket.  we need to make sure that
16752         only 1 thread is waiting on that socket, or else a thread could
16753         sleep waiting for data that never comes.  It's difficult (but not
16754         impossible) to make happen, because it seems to require something
16755         like the following:
16756
16757             1. Thread 1 polls on wake_receive
16758         
16759             2. poll returns saying there's data to be read on
16760                wake_receive.
16761         
16762             3. Thread 2 polls on wake_receive and immediately returns
16763                saying there's data to be read.
16764
16765             4. Thread 2 reads the wakeup byte from wake_receive
16766
16767             5. Thread 1 attempts to read the wakeup byte from
16768                wake_receive.
16769
16770             6. Thread 2 exits (due to a form closing, perhaps).
16771
16772             7. Thread 1 blocks forever.
16773         
16774         Fun, eh?
16775
16776         Fixing the Expose handling isn't done yet, and the races inherent
16777         in that piece of code are responsible for the drawing mistakes you
16778         see when generating expose events in a MT app (like NPlot).  This
16779         one is the likely to be the hardest to bandaid, and it doesn't
16780         appear to cause anything but drawing problems.  The other issues
16781         caused apps to exit or hang.
16782
16783         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
16784         called from a different thread than the one that should be calling
16785         these functions.
16786
16787         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
16788
16789 2006-11-15  Chris Toshok  <toshok@ximian.com>
16790
16791         * Application.cs: null out the context's MainForm when we exit
16792         RunLoop.  Fixes a newly checked in unit test as well as the last
16793         ODE from bug #79933.
16794
16795 2006-11-15  Chris Toshok  <toshok@ximian.com>
16796
16797         * Form.cs (set_Owner): allow a null value so we can clear the
16798         form's owner.
16799         (Dispose): set all our owned_form's Owner properties to null, and
16800         clear the owned_forms collection.
16801         (WM_CLOSE): clean up this a little bit.. still not right though.
16802
16803         * ApplicationContext.cs: OnMainFormClosed should only call
16804         ExitThreadCore if the main form isn't recreating.  Fixes unit
16805         test.
16806
16807 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
16808
16809         [Fixes 78346]
16810
16811         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
16812
16813 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
16814
16815         [Fixes 79433]
16816
16817         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
16818         keep popup window types from stealing focus from the main form
16819         on Windows.
16820
16821         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
16822
16823         * MenuAPI.cs: Set above flag to true.
16824
16825 2006-11-15  Chris Toshok  <toshok@ximian.com>
16826
16827         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
16828         the button being released is not in wParam.
16829
16830 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
16831
16832         * Form.cs: Add the released button to MouseEventArgs.Button
16833         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
16834         on Win32.
16835
16836 2006-11-15  Chris Toshok  <toshok@ximian.com>
16837
16838         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
16839         GetText().  untested because it's unused in our implementation.
16840         Control.Text always caches the text, even if
16841         ControlStyles.CacheText is not set.
16842
16843         fixes bug #79939.
16844
16845 2006-11-15  Chris Toshok  <toshok@ximian.com>
16846
16847         [ fixes #79933 ]
16848         
16849         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
16850         message.  no hiding, no disposing.
16851
16852         in the WM_CLOSE handler, hide the form if it's modal.
16853
16854 2006-11-15  Chris Toshok  <toshok@ximian.com>
16855
16856         * XplatUIX11.cs: use AddExpose instead of sending a message.
16857         fixes textbox border drawing.
16858
16859 2006-11-15  Chris Toshok  <toshok@ximian.com>
16860
16861         * PropertyGridView.cs: keep from crashing on mouse move/down when
16862         the property grid is empty.
16863
16864 2006-11-14  Jackson Harper  <jackson@ximian.com>
16865
16866         * TextControl.cs: Make PageUp and PageDown more like the MS
16867         versions.
16868         * TextBoxBase.cs: When we set the text property position the
16869         cursor at the beginning of the document.
16870
16871 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16872
16873         * Form.cs: if a mdi child's WindowState has changed
16874         before it's creation, it would display wrong control
16875         buttons.
16876         
16877 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
16878
16879         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
16880           (Fixes bug #79927)
16881
16882 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16883
16884         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
16885         the window gets to paint its borders even if the window is
16886         getting smaller.
16887         
16888         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
16889         otherwise the old control buttons would still be painted 
16890         if the window gets bigger.
16891         
16892         * PaintEventArgs.cs: add an internal method so that the clip 
16893         rectangle can be changed.
16894         
16895 2006-11-13  Chris Toshok  <toshok@ximian.com>
16896
16897         [ fixes bug #79745 ]
16898         
16899         * NotifyIcon.cs: lots of cleanup.
16900
16901         * X11Structs.cs: add an enum for XEMBED messages.
16902
16903         * XplatUIX11.cs: reindent one of the giant switch statements, it
16904         was taking up an additional tab stop, and this file is already way
16905         too wide for my laptop's screen.
16906
16907         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
16908         we get it, resize the hwnd to the WMNormalHints max_width/height.
16909
16910 2006-11-13  Jackson Harper  <jackson@ximian.com>
16911
16912         * TextBoxBase.cs: Compute the value changes for the mouse wheel
16913         teh simple way.
16914
16915 2006-11-13  Chris Toshok  <toshok@ximian.com>
16916
16917         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
16918         #79898.  force a reference to the Region to stick around so the
16919         unmanaged object isn't collected (rendering our handle in the MSG
16920         stale).
16921
16922 2006-11-13  Chris Toshok  <toshok@ximian.com>
16923
16924         * XplatUIX11.cs: fix #79917 for window managers which support
16925
16926         using XStoreName on the raw utf8, and we need to convert to
16927         COMPOUND_TEXT if it's non-latin1.
16928
16929 2006-11-13  Chris Toshok  <toshok@ximian.com>
16930
16931         * Form.cs (set_DialogResult): we need to set closing to false if
16932         we're setting our result to None.  fixes bug #79908.
16933
16934 2006-11-13  Jackson Harper  <jackson@ximian.com>
16935
16936         * TextControl.cs: When formatting text, compute the adjusted tag
16937         lengths correctly, using FindTag for the end tag instead of trying
16938         to figure it out outselves.
16939         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
16940         the item, ItemHeight doesn't work, because trees with large
16941         imagelists use those for their height
16942         * TreeView.cs: ActualItemHeight factors in the image height
16943         - compute left edge of checkboxes correctly
16944         - when expanding/collapsing move the bottom down one pixel, so we
16945         aren't moving part of the node
16946
16947 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16948
16949         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
16950         stack in PaintEventStart so that it won't get disposed by the gc
16951         before reaching PaintEventEnd.
16952
16953 2006-11-13  Jackson Harper  <jackson@ximian.com>
16954
16955         * TextBoxBase.cs: Don't select the word if we are on a line with
16956         no text.
16957         - We don't need to position the caret on mouse up, since the mouse
16958         move handler should be doing this
16959         - When double clicking a blank line, the caret is advanced to the
16960         next line.
16961
16962 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
16963
16964         * TreeNodeCollection.cs: Avoid duplicating indexer code.
16965
16966 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
16967
16968         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
16969         Fixes part of bug #79910.
16970
16971 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
16972
16973         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
16974           (bug #79903). Some minor string updates to match ms.
16975
16976 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
16977
16978         * FileDialog.cs: Don't add an extension if the filename
16979           already ends with that extension.
16980
16981 2006-11-10  Jackson Harper  <jackson@ximian.com>
16982
16983         * TreeView.cs: Use the currently highlighted node for the
16984         BeforeSelect event.
16985         * TextBoxBase.cs: There is no need to expand selection on
16986         MouseMove.
16987         - CanUndo means 'is there any undo operations', not 'is undo
16988         allowed on this textcontrol. Fixed ClearUndo unit test.
16989
16990 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
16991
16992         * Button.cs: only perform click when button is Selectable (so as 
16993         not to activate default buttons when they're disabled)
16994         
16995         * Control.cs: Rewrite of the SelectNextControl and related 
16996         methods. HandleClick now selects next control if the current one
16997         is being disabled.
16998         
16999         * Form.cs: OnActivated selects next active control only if Load 
17000         has already occurred. If Load hasn't run, there's no point in 
17001         selecting here, Load might change the state of controls.
17002         
17003         * FocusTest.cs: Tests marked as working again for these fixes
17004
17005 2006-11-10  Chris Toshok  <toshok@ximian.com>
17006
17007         * XplatUIX11.cs: a couple of fixes.
17008
17009         - use XInternAtoms with almost all the atoms we need to register,
17010         instead of many, many calls to XInternAtom.  should help a bit on
17011         startup time, at the expense of making the code look a little
17012         worse.
17013
17014         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
17015         isn't reparented (which seems to be a clue that we're running fon
17016         compiz) and they have an Owner form.  This fixes the tool windows
17017         in paint.net when running under compiz.
17018
17019         - when setting the opacity of a window, support both the case
17020         where the window has been reparented and also when it hasn't been.
17021         Since compiz/beryl doesn't seem to reparent windows, and these are
17022         the only window managers which support translucency, I'm not sure
17023         why we need the hwnd.reparented case at all.. but leave it in.
17024         now we get translucent windows in paint.net under compiz/beryl.
17025
17026 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
17027
17028         * FileDialog.cs: Always return the value for FilterIndex that
17029           was set. Internally convert it to values that make sense.
17030
17031 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
17032         
17033         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
17034
17035 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
17036
17037         * Toolbar.cs: Change default value of DropDownArrows to true, the 
17038         signature still using false to make it compatible with MS but the 
17039         initial value is true. Fixes #79855.
17040
17041 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
17042
17043         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
17044           only available on Linux.
17045
17046 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
17047
17048         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
17049         reduce number of calls to redraw method during toolbar creation.
17050
17051 2006-11-09  Mike Kestner  <mkestner@novell.com>
17052
17053         * ListView.cs : raise SelectedIndexChanged when an item is selected
17054         programmatically via the Item.Selected property.  Gert's nice 
17055         ListViewSelectedIndexChanged test fixture now runs clean.
17056
17057 2006-11-09  Mike Kestner  <mkestner@novell.com>
17058
17059         * ListView.cs : raise SelectedIndexChanged when a selected item is
17060         removed from the item collection using Remove or RemoveAt.
17061
17062 2006-11-09  Mike Kestner  <mkestner@novell.com>
17063
17064         * ListView.cs : raise SelectedIndexChanged once per selected item
17065         for compat with MS.  Fixes #79849+.
17066
17067 2006-11-09  Chris Toshok  <toshok@ximian.com>
17068
17069         * TabControl.cs: initialize row_count to 0, and set it to 1 when
17070         we need to (if we have any tab pages).  Fixes unit test.
17071
17072 2006-11-09  Chris Toshok  <toshok@ximian.com>
17073
17074         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
17075         width is 0, not 3.  Fixes a unit test.
17076
17077 2006-11-09  Mike Kestner  <mkestner@novell.com>
17078
17079         * ListView.cs : use Implicit scrollbars so that focus isn't 
17080         stolen from the listview when they are clicked. Fixes #79850.
17081
17082 2006-11-09  Chris Toshok  <toshok@ximian.com>
17083
17084         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
17085         have a root item.  Fixes #79879.
17086
17087 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
17088
17089         * FileDialog.cs:
17090           - Fix ToString ()
17091           - An ArgumentException is now thrown if a wrong filter
17092             is applied (matches ms). The previous filter doesn't change
17093             anymore if an exception is thrown.
17094           - Changing the FileName property also affects FileNames
17095         * ColorDialog.cs: The length of the CustomColors array is always
17096           16. It doesn't matter if we use a smaller array or null to update
17097           or change the custom colors property.
17098         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
17099           for RootFolder if we get a undefined value.
17100
17101 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17102
17103         * StatusBarPanel.cs: 
17104         - Width is set to MinWidth if Width is smaller than
17105         MinWidth. Fixes #79842.
17106         - MinWidth now always overrides Width (MSDN says MinWidth
17107         is set to Width when AutoSize = None, but they do not 
17108         behave like that).
17109         - Style has now the the correct default value.
17110         
17111 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17112  
17113         * TrackBar.cs: 
17114         - The control is completely invalidated on 
17115         Got/LostFocus to draw the focus rectangle correctly.
17116         - When AutoSize then height is always 45 (width for 
17117         vertical controls).
17118         
17119         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
17120         on the mouse when moved and it doesn't move when grabbed
17121         until the mouse moves as well. Also fixed some wrong 
17122         calculations when clicking on the thumb (control thought
17123         click was outside of thumb and didn't grab it).
17124         Fixes some of the issues in #79718.
17125
17126 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
17127
17128         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
17129
17130 2006-11-08  Chris Toshok  <toshok@ximian.com>
17131
17132         * PropertyGridView.cs: only call ToggleValue if the item is not
17133         readonly.
17134
17135 2006-11-08  Jackson Harper  <jackson@ximian.com>
17136
17137         * TextBoxBase.cs: The RichTextBox and textbox have very different
17138         word selection methods.  Implement the textbox's simple word
17139         selection here, and let the RichTextBox override and provide it's
17140         own.
17141         - Don't do extra selection on mouseup
17142         * RichTextBox.cs: Use the documents word selection algorithm, I
17143         think ideally, this function will be pulled into the
17144         RichTextBox.cs code someday.
17145
17146 2006-11-08  Chris Toshok  <toshok@ximian.com>
17147
17148         * RootGridEntry.cs: new class to represent GridItemType.Root.
17149
17150         * CategoryGridEntry.cs: reformat, and add boilerplate.
17151         
17152         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
17153         returns the UI parent anyway, and we need special handling to
17154         implement the GetTarget method in the face of it.  Also, implement
17155         Select().
17156
17157         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
17158         a root grid item, and use that instead of PropertyGrid.grid_items.
17159         Also, make use of TypeConverters (and add limitted support for
17160         ICustomTypeDescriptors) when initially populating the grid.
17161         Arrays now show up more or less properly.
17162
17163 2006-11-08  Chris Toshok  <toshok@ximian.com>
17164
17165         * Application.cs: set the modal dialog to non modal after we close
17166         it.  Fixes bug #79866.
17167
17168 2006-11-08  Jackson Harper  <jackson@ximian.com>
17169
17170         * TextControl.cs: When combining lines carry over the line end
17171         style from the end line.
17172         - Invalidate the selected area when setting it, if it is visible.
17173         * TextBoxBase.cs: Only rich text box can do full line selects.
17174         - Make sure to set the cursor position when there is a click,
17175         otherwise two clicks in separate areas could cause a large chunk
17176         to be selected.
17177
17178 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
17179
17180         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
17181         Fixes #79863.
17182
17183 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
17184
17185         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
17186         time. Remove tooltips when ToolButton click events.  Fixes #79856.
17187
17188 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
17189
17190         * MenuAPI.cs: Ignore right click for menu actions and fixes
17191         menu border when clicked.  Fixes #79846.
17192
17193 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
17194
17195         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
17196         MouseState after create wParam for message, this fixes mouse button 
17197         equal none in mouse up events.
17198         
17199 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
17200
17201         * Control.cs : Focus() now calls Select to set the Container's
17202         Active Control and to give it focus. To avoid infinite recursion
17203         (because ActiveControl also calls Focus at one point), a check 
17204         is made in Focus with the help of a new internal variable
17205         is_focusing.
17206
17207 2006-11-07  Mike Kestner  <mkestner@novell.com>
17208
17209         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
17210         if there's a selection.  Fixes #79849.
17211
17212 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
17213
17214         * PropertyGrid.cs: Avoid fixed height of help description label.
17215         Fixes part of bug #79829.
17216
17217 2006-11-07  Chris Toshok  <toshok@ximian.com>
17218
17219         * XplatUIX11.cs: fix #79790 again, by using the
17220         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
17221
17222 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
17223
17224         * ToolBar.cs: Fix left click checking.
17225
17226 2006-11-07  Chris Toshok  <toshok@ximian.com>
17227
17228         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
17229
17230 2006-11-07  Chris Toshok  <toshok@ximian.com>
17231
17232         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
17233         PropertyManager unit tests.
17234
17235         * PropertyManager.cs: make property_name internal.
17236
17237 2006-11-07  Chris Toshok  <toshok@ximian.com>
17238
17239         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
17240         pass a unit test.  Also, don't set image_index to anything in
17241         response to setting the ImageList property.
17242
17243 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
17244
17245         * ToolBar.cs: Ignore click events when mouse button is not a
17246         left button, only accepts other button for dropdown menus.  
17247         Fixes #79854.
17248
17249 2006-11-07  Chris Toshok  <toshok@ximian.com>
17250
17251         * DataGrid.cs: make the back and parent row buttons a little less
17252         ugly.
17253
17254 2006-11-07  Jackson Harper  <jackson@ximian.com>
17255
17256         * TextBoxBase.cs: When converting to Text don't put line breaks in
17257         for soft line breaks.
17258         * TextControl.cs: There is an initial "fake" line in the document,
17259         this is now a soft break line, so that an extra line feed doesn't
17260         get added to the end of documents.
17261
17262 2006-11-07  Chris Toshok  <toshok@ximian.com>
17263
17264         [ fix bug #79778 ]
17265         
17266         * CurrencyManager.cs: if the list is readonly, don't bother
17267         checking if IBindingList.AllowNew is true.
17268
17269         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
17270         for non-DataRowView datasources..  or rather, make it not crash.
17271         (DataGridPaintRelationRow): make sure we limit the row painting to
17272         the area not covered by the row header, and make our cell width at
17273         least large enough to cover the relation area.  This allows grids
17274         that have relations but no rows to render correctly.
17275         (DataGridPaintRowContents): same type of changes here.
17276         (SetDataSource): move back to always calling
17277         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
17278         navigating back through relations.
17279         (HitTest): handle the case where we have no cells but have
17280         relations.  Right now we generate a hit in cell 0 of whatever the
17281         row is, not sure if this is strictly correct, but it works for our
17282         purposes.
17283         
17284         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
17285         bother doing anything.
17286
17287 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
17288
17289         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
17290         early version of StatusStrip.  Not responsible for eaten
17291         application or firstborn children.
17292
17293 2006-11-06  Chris Toshok  <toshok@ximian.com>
17294
17295         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
17296         call GetTabRect with a -1 index.  Fixes #79847.
17297
17298 2006-11-06  Jackson Harper  <jackson@ximian.com>
17299
17300         * TreeNodeCollection.cs: Update scrollbars after clearing.
17301
17302 2006-11-06  Chris Toshok  <toshok@ximian.com>
17303
17304         * NumericUpDown.cs: fix the ToString method for some unit test
17305         love.
17306
17307 2006-11-06  Chris Toshok  <toshok@ximian.com>
17308
17309         * PropertyGrid.cs:
17310         - set the initial SelectedGridItem if we can.
17311
17312         - Exclude non-mergable properties only if we're merging > 1
17313         object.  Merging 1 object isn't really merging, obviously.
17314
17315         - Handle PropertySort.NoSort just like Alphabetical, which is
17316         wrong of course, but at least gets things on the screen.
17317         
17318         * PropertyGridView.cs:
17319         - Add method "FindFirstItem" which finds the first property grid
17320         item, so we can select it by default.
17321
17322         - make use of GridEntry.CanResetValue.
17323
17324         - Don't call RedrawBelowItemOnExpansion here anymore, the
17325         individual GridEntry's will do that.
17326
17327         - Remove the ITypeDescriptorContextImpl internal class.
17328         
17329         * GridEntry.cs:
17330         - this class needs to implement ITypeDescriptorContext, as it's
17331         what MS's PropertyDescriptorGridEntry does, which means we can
17332         remove the ITypeDescriptorContextImpl internal class from
17333         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
17334
17335         - keep a reference to our PropertyGridView, and move the call to
17336         RedrawBelowItemOnExpansion here from PGV.  This means
17337         programmaticly setting Expanded actually does something visible.
17338
17339         - add a CanResetValue() function which takes into account our
17340         possibly multiple "selected_objects" in the merged case.  Shifting
17341         PropertyGridView to use this method fixes another unreported
17342         crasher found running the test for #79829.
17343
17344         - when Top or Bounds is updated, make sure the PropertyGridTextBox
17345         is updated to reflect this.
17346
17347         * CategoryGridEntry.cs: the ctor takes the PGV now.
17348         
17349 2006-11-06  Jackson Harper  <jackson@ximian.com>
17350
17351         * TextControl.cs: These are 1 based.
17352         * TextBoxBase.cs: When setting the selected text, don't change the
17353         selected text tags, this is done by ReplaceText, just position the
17354         cursor at the end of the new text.
17355
17356 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
17357
17358         * ListView.cs: Allow label edit only when, when LabelEdit is
17359           set to true.
17360
17361 2006-11-06  Jackson Harper  <jackson@ximian.com>
17362
17363         * TextControl.cs: If a suitable wrapping position isn't found,
17364         just wrap right in the middle of a word.
17365
17366 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
17367
17368         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
17369           bug #79820.
17370
17371 2006-11-06  Jackson Harper  <jackson@ximian.com>
17372
17373         * TreeView.cs: Can't use the VisibleCount property when setting
17374         scrollbar heights, because this doesn't take into account whether
17375         or not the horz scrollbar just came visible.
17376
17377 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
17378
17379         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
17380         activated.  Fixes #79369, #79832.
17381
17382 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
17383
17384         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
17385           had to remove support for links that point to a directory. FileInfo
17386           returns no usefull information (means, the directory they point to)
17387           for such links. Replaced some empty string ("") with String.Empty.
17388
17389 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
17390
17391         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
17392         NullReferenceException when attempting to remove node that is not in
17393         collection. Throw NullReferenceException when null is passed to 
17394         Remove. Allow first element of the collection to be removed. Fixes
17395         bug #79831.  In GetEnumerator ().Current return null if positioned 
17396         before the first element of the collection. In GetEnumerator ().Reset,
17397         position before first element of the collection.
17398
17399 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
17400
17401         * PropertyGrid.cs: To match MS, remove default title and description
17402         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
17403         buttons.
17404
17405 2006-11-04  Chris Toshok  <toshok@ximian.com>
17406
17407         * Theme.cs: add a Clamp method, just for kicks.
17408
17409         * ThemeWin32Classic.cs: clamp all color components to [0..255].
17410
17411 2006-11-04  Chris Toshok  <toshok@ximian.com>
17412
17413         * Form.cs: if the form isn't visible, Close() does nothing.
17414
17415 2006-11-03  Chris Toshok  <toshok@ximian.com>
17416
17417         * Form.cs (Close): if the form is modal, don't Dispose of it, only
17418         Hide it.
17419         (WndProc): don't Dispose after handling the WM_CLOSE message.
17420
17421         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
17422         them as such, instead of using casts from Control to Form.  Also,
17423         don't Dispose of the modal dialog when we fall out of the loop -
17424         Close() it instead.
17425
17426         fixes bug #79813.
17427
17428 2006-11-03  Chris Toshok  <toshok@ximian.com>
17429
17430         * Control.cs (Dispose): only go through the dispose thing if we're
17431         @disposing, and we haven't already been disposed.  Fixes bug
17432         #79814.
17433
17434         * Form.cs: no reason to call "base.Dispose()" here instead of
17435         "Dispose()".
17436
17437 2006-11-03  Mike Kestner  <mkestner@novell.com>
17438
17439         * ComboBox.cs : use ToString instead of casts in AddItem for
17440         sorting functionality.  Fixes #79812.
17441
17442 2006-11-03  Chris Toshok  <toshok@ximian.com>
17443
17444         * Application.cs: pave the way for actually using the thread
17445         exception dialog.  it's ifdefed out at the moment.
17446
17447 2006-11-03  Chris Toshok  <toshok@ximian.com>
17448
17449         * ThreadExceptionDialog.cs: until we get a better layout, actually
17450         hide the details textbox and label when we shouldn't see them.
17451
17452 2006-11-03  Jackson Harper  <jackson@ximian.com>
17453
17454         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
17455         multiline textboxes anymore.  This method also determines the
17456         width/height of a textboxes canvas area.
17457         - Sorta a revert of the last patch.  For multiline just position
17458         the controls, then bail.  This way the scrollbar width won't be
17459         altered.
17460
17461 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
17462
17463         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
17464         it dont need.  Fixes #79537.
17465
17466 2006-11-02  Jackson Harper  <jackson@ximian.com>
17467
17468         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
17469         send the status after firing the DndOver event.
17470
17471 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17472
17473         * TrackBar.cs: Now orientation only switches height / width if
17474         the control's handle is created (Win32 does it like this). Also 
17475         fixed a typo in ToString() for a test to pass, changed the 
17476         exception thrown in set_LargeChange and set_SmallChange to 
17477         match Win32 behaviour, and added TrackBar tests to the unit 
17478         tests.
17479
17480 2006-11-02  Chris Toshok  <toshok@ximian.com>
17481
17482         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
17483         not _NET_WM_STATE_NO_TASKBAR.
17484
17485 2006-11-02  Jackson Harper  <jackson@ximian.com>
17486
17487         * TextControl.cs: Increment count by one, since in the update view
17488         count - 1 is used.
17489
17490 2006-11-02  Jackson Harper  <jackson@ximian.com>
17491
17492         * TextBoxBase.cs: Use client rectangle not bounds for checking if
17493         the mouse is in the client rectangle (duh).
17494
17495 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17496         
17497         * TrackBar.cs: Fixed trackbar jumping around when clicking
17498         on it - the trackbar was not detecting correctly at which
17499         side of the thumb the click was done. (fixes #79718)
17500
17501 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
17502
17503         * ListBox.cs: scroll visible area when change SelectedIndex to
17504         a non visible area.  Fixes #79481.
17505
17506 2006-11-01  Jackson Harper  <jackson@ximian.com>
17507
17508         * TextControl.cs: When replacing the selection move the selection
17509         start/end/anchor to the end of the new text.
17510
17511 2006-11-01  Jackson Harper  <jackson@ximian.com>
17512
17513         * XplatUIWin32.cs: When setting the parent change the controls
17514         visibility to it's visibility flag, not to it's old parents
17515         visibility (.Visible walks the parent chain).
17516
17517 2006-11-01  Chris Toshok  <toshok@ximian.com>
17518
17519         * XplatUIX11.cs: revert the #79790 fix, as the simple.
17520         XSetTransientForHint fix breaks paint .net's tool windows.  more
17521         work needed for that one.
17522
17523 2006-11-01  Chris Toshok  <toshok@ximian.com>
17524
17525         * ScrollBar.cs: throw ArgumentException instead of Exception in
17526         LargeChange/SmallChange setters.  fixes unit tests.
17527
17528 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
17529
17530         * ContainerControl.cs: reverted rev.67183 (which was itself
17531         a reversion of rev.66853... eh).
17532         
17533         * Control.cs: Fixes Reflector hang by changing Focus() call
17534         to what it was before rev.66643 (calling Select() here sets 
17535         ActiveControl, which in some situations calls back Focus and 
17536         eventually does a stack overflow). Temp fix.    
17537         Changes to GetNextControl() to not look for children to select when
17538         parent cannot be selectable (so it looks for siblings instead)  
17539         
17540 2006-10-31  Mike Kestner  <mkestner@novell.com>
17541
17542         * CheckedListBox.cs : off by one error in returned index from
17543         ObjectCollection.Add.  Fixes #79758.
17544
17545 2006-10-31  Chris Toshok  <toshok@ximian.com>
17546
17547         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
17548         calls for the textbox/spinner, to keep from recursing to the point
17549         where we crash.  Fixes #79760.
17550
17551 2006-10-31  Chris Toshok  <toshok@ximian.com>
17552
17553         * ListControl.cs (set_SelectedValue): don't throw exceptions on
17554         null/"" value, just return.  matches ms's behavior and fixes some
17555         failing tests.
17556
17557 2006-10-31  Chris Toshok  <toshok@ximian.com>
17558
17559         * Control.cs (set_Capture): make a logic a little easier to
17560         follow.
17561
17562         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
17563         if it's being destroyed.  A necessary fix surely, but a bandaid
17564         also, to fix the stuck capture problem in bug #78413.
17565
17566 2006-10-31  Chris Toshok  <toshok@ximian.com>
17567
17568         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
17569         convention of clearing hwnd.ClientRect when we set the
17570         width/height (so it'll be recalculated by Hwnd).
17571
17572 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
17573
17574         * ContainerControl.cs: reversed Contains check from
17575         ActiveControl due to hanging problems. This fix
17576         partly regresses #79667 (button does not have
17577         initial focus), so this might be a symptom for 
17578         a larger parenting problem (set_ActiveControl
17579         is being called but the child control does
17580         not have the parent set yet?)   
17581         
17582 2006-10-31  Mike Kestner  <mkestner@novell.com>
17583
17584         * MenuAPI.cs : fix keynav when menu is click activated.
17585
17586 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
17587
17588         * ToolStrip*: Version 0.2.
17589
17590         * MenuStrip.cs: Version 0.1.
17591
17592         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
17593
17594 2006-10-30  Chris Toshok  <toshok@ximian.com>
17595
17596         [ fixes the oversized notify icon issue in bug #79745 ]
17597         
17598         * NotifyIcon.cs: scale the icon down to the size we're given by
17599         the XplatUI layer (this would be faster if we did it once instead
17600         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
17601         since it's never invoked.
17602
17603         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
17604         pixels high by default, so let's hardcode our systray icon to that
17605         size.  The SYSTEM_TRAY protocol should really have a way for
17606         client apps to query for the correct icon size.. but oh well.  A
17607         couple of patches to deal with the screwy client_window ==
17608         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
17609         instance, and also make sure we don't XSelectInput twice).
17610
17611 2006-10-30  Chris Toshok  <toshok@ximian.com>
17612
17613         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
17614         recreating forms.  Control recreation is the bane of my existence.
17615         Fix it in a way that keeps everyone happy.
17616
17617 2006-10-30  Chris Toshok  <toshok@ximian.com>
17618
17619         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
17620         just non-CHILD ones.  otherwise sometimes scrollbars end up with
17621         client_windows not being resized to the proper size (ReportBuilder
17622         shows this extremely well).
17623
17624 2006-10-30  Chris Toshok  <toshok@ximian.com>
17625
17626         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
17627         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
17628         showing up in the gnome taskbar.  Fixes bug #79790.
17629
17630 2006-10-30  Chris Toshok  <toshok@ximian.com>
17631
17632         * ApplicationContext.cs: guard against a NRE.
17633
17634         * Application.cs: null out the old MainForm for the context, so we
17635         don't try to use it again once it's disposed.  Fixes bug #79783.
17636
17637 2006-10-30  Chris Toshok  <toshok@ximian.com>
17638
17639         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
17640         BindingContext, set the data source directly, otherwise do the
17641         lazy approach - the actual ListManager will be created when we get
17642         a BindingContext. Fixes bug #79700.
17643
17644 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
17645
17646         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
17647           XplatUIX11.cs: Remove old 2 parameter SetVisible.
17648
17649         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
17650
17651 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
17652
17653         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
17654         of SetVisible that allows a window to be shown, but not activated.
17655         This is needed on Windows for MenuStrip, and can probably be used
17656         with MainMenu and ComboBox to fix the focus stealing issues on
17657         Windows.
17658
17659         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
17660
17661 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
17662
17663         * PictureBox.cs: Fix the output of the ToString method.
17664
17665 2006-10-29  Chris Toshok  <toshok@ximian.com>
17666
17667         * Control.cs (get_TopLevelControl): fix bug #79781.
17668
17669 2006-10-29  Chris Toshok  <toshok@ximian.com>
17670
17671         * ListControl.cs (set_DataSource): throw Exception here, not
17672         ArgumentException, to match MS behavior.
17673
17674 2006-10-29  Chris Toshok  <toshok@ximian.com>
17675
17676         * Form.cs: remove the try-catch's around calls to GetWindowState.
17677         We can just check the return value.
17678
17679         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
17680         Instead return -1.
17681
17682         * XplatUI.cs: Add note about additional return value for
17683         GetWindowState.
17684
17685 2006-10-29  Chris Toshok  <toshok@ximian.com>
17686
17687         * Control.cs (CreateHandle): when we create our handle, we also
17688         create the handles of our child controls.  Fixes one of the
17689         Control unit tests (CH11).
17690
17691 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
17692
17693         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
17694
17695 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
17696
17697         * ThemeClearlooks.cs: A little speedup.
17698
17699 2006-10-27  Chris Toshok  <toshok@ximian.com>
17700
17701         * Control.cs: implement Control.FromChildHandle in a way that
17702         matches the docs (and fixes the failed test.)
17703
17704 2006-10-27  Chris Toshok  <toshok@ximian.com>
17705
17706         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
17707         comments).
17708
17709         * DataGrid.cs: implement ResetForeColor such that the tests
17710         succeed.
17711         
17712 2006-10-27  Chris Toshok  <toshok@ximian.com>
17713
17714         * ToolBarButton.cs: setting text/tooltiptext to null results in it
17715         being set to "".  Fixes bug #79759.
17716
17717 2006-10-27  Jackson Harper  <jackson@ximian.com>
17718
17719         * TextControl.cs: We need to clear the entire selection area when
17720         setting the start, otherwise multiline selections are still
17721         visible.
17722
17723 2006-10-26  Chris Toshok  <toshok@ximian.com>
17724
17725         * PropertyGridView.cs: 
17726
17727         - ifdef all the code specific to the double
17728         buffer case, and provide some alternatives in the non-doublebuffer
17729         code, which makes heavy use of XplatUI.ScrollWindow to move things
17730         around without having to invalidate (and cause flicker).  There
17731         are still some drawing problems in the non-doublebuffered case, so
17732         DOUBLEBUFFER is defined by default.
17733
17734         - Fix the way dropdowns are handled.  now we explicitly watch for
17735         the events which might cause the dropdown to close, and break out
17736         of the nested event loop there.  This gets rid of all Capture
17737         code, at the expense of the Msg special casing.  Seems to work,
17738         though, and fixes bug #79743.
17739
17740 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
17741         * Control.cs: SetIsRecreating now recreates implicitly added
17742         child controls as well. Finally fixes #79629. The flag passed to 
17743         SetIsRecreating has also been removed since it wasn't used.
17744         
17745 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17746
17747         * PageSetupDialog.cs: Clean some code, fix some bits, 
17748         add some checks, and add a printer sub-dialog.
17749
17750 2006-10-26  Chris Toshok  <toshok@ximian.com>
17751
17752         * PropertyGrid.cs: make set_SelectedObject call
17753         set_SelectedObjects, and move the duplicate logic to the
17754         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
17755
17756         * PropertyGridView.cs: hide the textbox when we get a
17757         SelectedObjectsChanged event.
17758
17759         Fixes bug #79748.
17760
17761 2006-10-26  Chris Toshok  <toshok@ximian.com>
17762
17763         * PropertyGridView.cs: deal with the type converter not supporting
17764         GetStandardValues() or GetStandardValues() returning null, which
17765         is does in the default case.  Fixes #79742.
17766
17767 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
17768
17769         * CheckedListBox.cs: nunit no longer crashes when selecting 
17770         Project/Edit menu option
17771         
17772 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
17773
17774         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
17775         is no menu selected. fixes #79739
17776
17777 2006-10-25  Chris Toshok  <toshok@ximian.com>
17778
17779         * PropertyGridView.cs: factor out the splitter invalidation code
17780         into the SplitterPercent setter, and for kicks implement the
17781         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
17782         amount in either direction.
17783
17784 2006-10-25  Chris Toshok  <toshok@ximian.com>
17785
17786         * PropertyGridView.cs: do some cleanup of the brush used to draw
17787         text - read only fields should be grayed out.  not sure how to do
17788         this with the textbox, though.  but the textbox's should also be
17789         readonly now at least.  Also, hide/show the textbox when resizing
17790         the control.
17791         
17792         * CursorConverter.cs: use System.Reflection when getting the
17793         properties of Cursors, as TypeDescriptor.GetProperties isn't
17794         returning static properties.
17795
17796 2006-10-25  Chris Toshok  <toshok@ximian.com>
17797
17798         * PropertyGridView.cs: factor out the up/down handling, and reuse
17799         it for page up/down.  also add End/Home support.
17800
17801 2006-10-25  Chris Toshok  <toshok@ximian.com>
17802
17803         * PropertyGridView.cs:
17804
17805         - ensure the selected grid item is visible in the scrolled area,
17806         fixes bug #79572.
17807
17808         - fix Keys.Down handling when you're on the last item in the
17809         propertygrid.
17810
17811 2006-10-25  Mike Kestner  <mkestner@novell.com>
17812
17813         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
17814         clicks too.  Fixes #79725.
17815
17816 2006-10-24  Chris Toshok  <toshok@ximian.com>
17817
17818         * PropertyGrid.cs: use property.Converter instead of
17819         TypeDescriptor.GetConverter(property.PropertyType), so we catch
17820         TypeConverters declared on the property as well as on the
17821         PropertyType.  Fixes bug #79678.
17822
17823 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
17824
17825         * MimeIcon.cs, Mime.cs:
17826           Fallback to the default platform handler if no shared mime info
17827           stuff exists (fixes #79693).
17828
17829 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
17830         * ContainerControl.cs: Incorrect contains check in ActiveControl 
17831         from previous fix (duh).
17832
17833 2006-10-20  Chris Toshok  <toshok@ximian.com>
17834
17835         * PropertyGridView.cs: the dropdown should be MIN(number of items
17836         in list, 15).  Fixes #79551.
17837
17838 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
17839         Fixes #79384, #79394, #79652, #79667
17840         * Application.cs: 
17841         
17842         - Modal windows are now destroyed in the proper order for windows
17843         
17844         * ContainerControl.cs:
17845         
17846         - ActiveControl setter has more conditions on when to return:
17847                 - if we're reselecting the active control, but it actually
17848                 didn't have focus (window hidden or some such), it runs
17849                 - if the active control being selected doesn't actually 
17850                 exist in the container, it returns
17851         
17852         * Form.cs
17853         
17854         - The ShowDialog now gets the current form as the owner when
17855         invoking without parameters, and correctly activates the owner 
17856         when returning
17857         
17858         * MessageBox.cs
17859         
17860         - MessageBox now catches the Escape key to exit
17861
17862 2006-10-20  Chris Toshok  <toshok@ximian.com>
17863
17864         * PropertyGridView.cs: fix a number of issues (bug #78565, and
17865         most of bug #79676):
17866
17867         - you can navigate around the property grid with the arrow keys.
17868
17869         - the dropdown is sized properly when the pg has a vertical
17870         scrollbar.
17871
17872         - fix the indentation for subentries, and properly select the
17873         entire label rect.
17874
17875         - fix the gray bar's drawing (only draw it to the last element,
17876         not for the height of the control.  Also make sure we draw that
17877         last horizontal grid line.
17878
17879         - use the same mechanism the datagrid uses wrt the editing textbox
17880         when scrolling/resizing/etc.  Namely, we hide it first, do the
17881         operation, then show it again (if it's still visible).
17882         
17883         - aggressively remove a lot of unnecessary refreshes (and also
17884         calls to Invalidate(). call more limited variants, and only redraw
17885         what we need.)
17886         
17887         * PropertyGrid.cs:
17888
17889         - when we're populating the merged collection, fill in the UI
17890         parent with either the passed in item, or the category item we
17891         create.
17892
17893         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
17894
17895         * GridItem.cs: drop some fully qualified names.
17896         
17897         * GridEntry.cs: add a "UIParent", which is basically the parent
17898         treenode.
17899
17900         * GridItemCollection.cs: add an IndexOf method.
17901
17902 2006-10-20  Mike Kestner  <mkestner@novell.com>
17903
17904         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
17905         a working win32 NC invalidation mechanism, we can't invalidate
17906         menus.  [Fixes #79705]
17907
17908 2006-10-20  Mike Kestner  <mkestner@novell.com>
17909
17910         * ListBox.cs : don't update the VScrollbar if the list is empty,
17911         just hide it.  [Fixes #79692]
17912
17913 2006-10-20  Jackson Harper  <jackson@ximian.com>
17914
17915         * RichTextBox.cs: Handle some special chars better, and don't skip
17916         the entire group when we encounter a special char that we don't
17917         handle correctly.
17918
17919 2006-10-18  Chris Toshok  <toshok@ximian.com>
17920
17921         * PropertyGridView.cs: address a number of issues from bug #79676,
17922         mostly of the cosmetic variety.
17923
17924         - The highlight rectangle for indented items not extends all the
17925         way to the left.
17926
17927         - Indented items aren't indented so much.
17928
17929         - the dropdown is properly sized width-wise if the pg has a
17930         vertical scrollbar.
17931
17932 2006-10-18  Chris Toshok  <toshok@ximian.com>
17933
17934         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
17935         systray stuff is rather convoluted to begin with.
17936
17937         systray icons are a single window for some reason (that I haven't
17938         figured out yet), and for them, client_window == whole_window.
17939         Given the way the tests are structured elsewhere to determine
17940         which paints are pending (client vs. nc), that situation will
17941         always yield PAINT, not NCPAINT.  So, if we have a pending
17942         nc_expose and no pending expose, remove the hwnd from the paint
17943         queue, and also set nc_expose_pending to false, to keep us from
17944         blocking further expose's adding the hwnd to the paint queue.
17945
17946         phew.  like i said, a rather convoluted change.  Fixes the
17947         notifyicon repaint issues in bug #79645.
17948
17949 2006-10-18  Chris Toshok  <toshok@ximian.com>
17950
17951         * Form.cs: when getting the backcolor of the form, don't get
17952         base.BackColor, as this allows parents to influence the background
17953         color.  This breaks mdi forms.  Instead, if the background_color
17954         is empty, return the default.
17955
17956 2006-10-18  Chris Toshok  <toshok@ximian.com>
17957
17958         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
17959         to being private instead of internal static.
17960
17961         * Control.cs: remove all the stupid ParentWaitingOnRecreation
17962         crap, it wasn't working for more deeply nested controls anyway,
17963         and we already have the is_recreating flag - use that instead.
17964         Before calling DestroyHandle in RecreateHandle, recurse through
17965         the control tree setting it to true.  this returns the recreate
17966         code to much of its original simplicity, while now guaranteeing we
17967         actually recreate everything we're supposed to.  This change gets
17968         fyireporting actually showing mdi children.
17969
17970 2006-10-17  Chris Toshok  <toshok@ximian.com>
17971
17972         * Form.cs: remove some debug spew, and collapse some duplicate
17973         code at the end of SetClientSizeCore.
17974
17975         * XplatUIX11.cs: 
17976         - add some more debug spew here too wrt Destroy handling.
17977         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
17978         in Control's handling of WM_DESTROY.
17979         - Remove the handling of zombie window DestroyNotifies from the
17980         event loop - we don't need it.  Now the only DestroyNotifies we
17981         actually handle are ones generated by X.
17982         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
17983         match gtk's (functioning) handling of this. This keep metacity
17984         from leaving droppings in the form of wm borders with no window
17985         contents all over the place.
17986
17987         * Control.cs:
17988         - add a bunch of debug spew wrt control recreation.
17989         - fix a bug where we weren't tracking Visible properly on
17990         recreated hwnds.
17991         - fixed the WM_PAINT double buffer handling to support re-entrant
17992         calls (yes, i know it's gross, but it's happening to us).
17993
17994 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
17995         * ThemeWin32Classic.cs: changed drawing of selected days
17996         to make them look better.
17997
17998 2006-10-16  Chris Toshok  <toshok@ximian.com>
17999
18000         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
18001         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
18002
18003         * XplatUIX11.cs: move away from using hwnd.client_dc and
18004         hwnd.non_client_dc and on to a stack of dc's (and in window's
18005         case, PAINTSTRUCT's), so we can deal with nested Paint calls
18006         without puking or not disposing of Graphics objects.
18007
18008         * XplatUIOSX.cs: same.
18009
18010         * XplatUIWin32.cs: same.
18011
18012 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
18013
18014         * FileDialog.cs: Don't call on_directory_changed inside
18015           OnSelectedIndexChanged (it changes the SelectedIndex too).
18016           Instead move it to OnSelectionChangeCommitted.
18017
18018 2006-10-13  Chris Toshok  <toshok@ximian.com>
18019
18020         * XplatUIX11.cs: more Destroy work.  the current code does the
18021         following things, in order:
18022
18023         1. Enumerates all handles of all controls at or below the one
18024         being destroyed, in pre-order.  As it is doing this, it marks the
18025         handles as zombie and clears all references to them.
18026         
18027         2. calls XDestroyWindow on the window passed in.
18028
18029         3. SendMessage's WM_DESTROY to all he handles in the accumulated
18030         list.
18031
18032 2006-10-13  Chris Toshok  <toshok@ximian.com>
18033
18034         * XplatUIX11.cs: set hwnd.zombie to true before calling
18035         SendMessage (WM_DESTROY).  this keeps us from marking the new
18036         window a zombie, and also keeps us from calling sendmessage at
18037         all.
18038
18039 2006-10-13  Jackson Harper  <jackson@ximian.com>
18040
18041         * TextControl.cs: Do not show the caret and selection at the same
18042         time.  Reduces ugliness by 35%.
18043
18044 2006-10-13  Chris Toshok  <toshok@ximian.com>
18045
18046         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
18047         zombie after we do the recursive call, so we actually do call
18048         SendMessage on the children controls.
18049         (GetMessage): if we find a pending paint event for a zombie hwnd,
18050         remove the hwnd from the paint queue, or else it will always be
18051         there (and we'll effectively loop infinitely)
18052
18053 2006-10-13  Mike Kestner  <mkestner@novell.com>
18054
18055         * MenuItem.cs : add Selected format under keynav too.
18056         Fixes #79528.
18057
18058 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
18059
18060         * PropertyGrid.cs: Fixed some NRE's and small difference between our
18061         implementation and that of MS.
18062
18063 2006-10-13  Chris Toshok  <toshok@ximian.com>
18064
18065         * Control.cs (OnInvalidated) only futz with the invalid_region if
18066         the control is double buffered.  this fixes the apparent hang in
18067         the ListView unit tests.  Someone needs to make the
18068         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
18069
18070 2006-10-13  Chris Toshok  <toshok@ximian.com>
18071
18072         * PropertyGridView.cs:
18073
18074         - do a little refactoring so that only one place calls
18075         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
18076         else call that.  Also make it Refresh, since there are redraw bugs
18077         otherwise (we should take a look at that...)
18078
18079         - do a little more refactoring work to share the body of code
18080         involved with the drop down.  it was duplicated in the code
18081         dealing with the listbox handling and in the code dealing with the
18082         UITypeEditors.
18083
18084         - add a Capture to the dropdown form's control once it's
18085         displayed, and add a MouseDown handler that checks to make sure
18086         the position is inside the control.  If it's not, close the
18087         dropdown.  This fixes #78190.
18088
18089         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
18090         if the value is different than the initial value.
18091         
18092 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
18093
18094         * Control.cs: see #78650
18095         - Fixed GetNextControl for several cases:
18096                 - Changed FindFlatForward to return 
18097                 correct sibling control when more than one
18098                 control has same TabIndex as the currently 
18099                 focused one.
18100                 - Changed FindFlatBackward to loop children
18101                 from last to first and apply same logic as in
18102                 FindFlatForward
18103                 - Changed FindControlForward to search for
18104                 children when control is not a container
18105                 but has children, or search for siblings if
18106                 control is a container...
18107                 - Changed FindControlBackward   to continue
18108                 searching for child controls when hitting 
18109                 Panel-like parents
18110                 
18111         - Fixed Focus method to update ActiveControl
18112         (FocusTest.FocusSetsActive failure)
18113         
18114         * TabControl.cs:
18115         - Focus rectangle now refreshes when gaining
18116         or losing focus
18117         - Removed grab for Tab key on IsInputKey that 
18118         was keeping tab navigation from working (#78650)
18119
18120 2006-10-13  Chris Toshok  <toshok@ximian.com>
18121
18122         * PropertyGridView.cs:
18123         - Rewrite SetPropertyValue to loop over SelectedGridItem's
18124         SelectedObjects.
18125
18126         - Deal with GridItem.Value == null a few places.
18127
18128         * PropertyGrid.cs: 
18129         - replace the PopulateGridItemCollection with a pair of methods
18130         which compute the intersection of all the properties in the
18131         SelectedObjects array.  Fixes #79615.
18132
18133         - Throw ArgumentException from set_SelectedObjects if there's a
18134         null in the array.
18135
18136         - Add GetTarget method which can be used to traverse up the
18137         GridItem.Parent chain.  It depends on the assumption that
18138         selected_objects for different GridEntries are always in the same
18139         order (a safe assumption).  Use this method and loop over all the
18140         selected objects in the entry when calling RemoveValueChanged and
18141         AddValueChanged.
18142         
18143         * GridEntry.cs: Make this handle multiple selected objects.
18144         .Value returns null if not all the selected objects share the same
18145         value.
18146
18147 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
18148         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
18149           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
18150           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
18151           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
18152           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
18153         add additional functionality.
18154
18155 2006-10-12  Mike Kestner  <mkestner@novell.com>
18156
18157         * ErrorProvider.cs : new ToolTipWindow ctor sig.
18158         * HelpProvider.cs : new ToolTipWindow ctor sig.
18159         * ToolTip.cs : remove ToolTip param from Window sig since it is
18160         not used.
18161         * ToolBar.cs : add tooltip support.  Fixes #79565.
18162
18163 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
18164
18165         * ComboBox.cs: move the events in set_SelectedIndex to 
18166         after the call to HighlightIndex in order to avoid 
18167         possible recursion and subsequent problems with the call
18168         to HighlightIndex and include a range check in 
18169         set_HighlightIndex. Fixes #79588
18170         
18171 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
18172
18173         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
18174         to ui thread's settings instead of sunday. 
18175         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
18176
18177 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
18178
18179         * DateTimePicker.cs
18180         * MonthCalendar.cs
18181         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
18182         and implement missing functionality (selecting different parts 
18183         of the date and edit them individually with the keyboard).
18184         
18185 2006-10-11  Chris Toshok  <toshok@ximian.com>
18186
18187         * Control.cs (OnInvalidated): fix NRE relating to last change.
18188
18189 2006-10-11  Chris Toshok  <toshok@ximian.com>
18190
18191         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
18192         atoms in _NET_WM_STATE here if the window is maximized.  We need
18193         to do this because we're *replacing* the existing _NET_WM_STATE
18194         property, so those atoms will be lost otherwise, and any further
18195         call to GetWindowState will return Normal for a window which is
18196         actually maximized.  Fixes #79338.
18197
18198 2006-10-11  Jackson Harper  <jackson@ximian.com>
18199
18200         * TextControl.cs: Special case for setting selection end to
18201         selection start, we basically kill the anchor.
18202         - some todo comments.
18203
18204 2006-10-11  Chris Toshok  <toshok@ximian.com>
18205
18206         * Control.cs: switch to using an "invalid_region" to track which
18207         parts of the image buffer need updating.  This is more code than
18208         the simple fix from r66532.  That version just attempted to always
18209         fill the entire buffer on redraw, which turns out to be
18210         inefficient when invalidating small rectangles.  This version
18211         simply adds the invalid rectangle to the invalid region.  When we
18212         get any WM_PAINT message we see if it can be filled using the
18213         image buffer, and if it can't (if the paint event's clip rectangle
18214         is visible in the invalid region) we first fill the image buffer.
18215         So, the image buffer is still a cache, we just fill it lazily.
18216
18217         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
18218         need it any longer.
18219
18220 2006-10-11  Chris Toshok  <toshok@ximian.com>
18221
18222         * XplatUIX11.cs (SetWindowPos): we need to update both position as
18223         well as size after calling XMoveResizeWindow.  This keeps us from
18224         ignoring future SetWindowPos calls.  Fixes the disappearing
18225         DateTimePicker in the ToolBarDockExample from bug #72499.
18226
18227 2006-10-11  Chris Toshok  <toshok@ximian.com>
18228
18229         * TextBoxBase.cs: reorder things a bit when it comes to
18230         resizing-causing-recalculation.  we were recalculating the
18231         document when our position was changed, which shouldn't happen.
18232         We only care about size changes.  Clear up some more redundant
18233         recalculation calls while I'm at it.  This makes the toolbar dock
18234         example snappy when you're just dragging toolbars around (since it
18235         causes a relayout whenever you move one.)
18236
18237 2006-10-11  Chris Toshok  <toshok@ximian.com>
18238
18239         * ToolBarButton.cs (get_Rectangle): this only returns
18240         Rectangle.Empty if Visible == false, or Parent == null.
18241         Parent.Visible doesn't matter.
18242
18243 2006-10-10  Chris Toshok  <toshok@ximian.com>
18244
18245         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
18246         by .net 1.1, so switch to an internal method instead.
18247
18248 2006-10-10  Chris Toshok  <toshok@ximian.com>
18249
18250         * Control.cs (WM_PAINT): when a control is double buffered we draw
18251         initially to the ImageBuffer and then copy from there.  But when a
18252         parent control which has child controls is double buffered, the
18253         initial drawing doesn't encompass the entire ClientRectangle of
18254         the parent control, so we end up with uninitialized bits (this is
18255         easily seen by dragging the top toolbar in
18256         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
18257         manually set the ClipRectangle of the paint_event (only the one we
18258         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
18259         of the nastiness in bug #72499.
18260
18261         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
18262         which we use in Control.cs's WM_PAINT handling.
18263
18264 2006-10-10  Jackson Harper  <jackson@ximian.com>
18265
18266         * TextBoxBase.cs: Finish off the autoscrolling stuff.
18267
18268 2006-10-10  Chris Toshok  <toshok@ximian.com>
18269
18270         * Cursor.cs: Apply a slightly different patch to the one suggested
18271         in #79609.
18272
18273 2006-10-10  Jackson Harper  <jackson@ximian.com>
18274
18275         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
18276         not the parent form.
18277         * TextControl.cs: use difference in old line count vs new count to
18278         calculate how many lines were added, this takes into account soft
18279         line breaks properly.
18280
18281 2006-10-10  Chris Toshok  <toshok@ximian.com>
18282
18283         * LinkLabel.cs: don't call MeasureCharacterRanges against a
18284         rectangle located at 0,0 and the size of the text.  Use
18285         ClientRectangle instead.  This fixes rendering of non-left aligned
18286         link labels.
18287
18288 2006-10-10  Jackson Harper  <jackson@ximian.com>
18289
18290         * TextBoxBase.cs: When we set the selection start position the
18291         caret.
18292         * TextControl.cs: Need to update the caret when we decrement it to
18293         zero.
18294         - Make sure that the selection_visible flag gets reset to false if
18295         the selection isn't visible.  Before this you could get it set to
18296         visible by changing the selection start, then changing the end to
18297         equal the start.
18298
18299 2006-10-09  Jackson Harper  <jackson@ximian.com>
18300
18301         * TreeView.cs: Don't update scrollbars when we aren't visible.
18302         * TreeNodeCollection.cs: Only need to update scrollbars if being
18303         added to an expanded visible node or the root node.
18304
18305 2006-10-09  Chris Toshok  <toshok@ximian.com>
18306
18307         * XplatUIX11.cs (SendMessage): fix NRE.
18308
18309 2006-10-09  Jackson Harper  <jackson@ximian.com>
18310
18311         * TextBoxBase.cs: Implement horizontal autoscrolling.
18312         * TextControl.cs: Add a movement types that allows moving forward
18313         and backwards without wrapping.
18314
18315 2006-10-09  Mike Kestner  <mkestner@novell.com>
18316
18317         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
18318         with focus "expansion" of labels.  Fixes #79532 and then some.
18319         * ThemeWin32Classic.cs : add LineLimit to ListView label format
18320         when wrapping.
18321
18322 2006-10-09  Jackson Harper  <jackson@ximian.com>
18323
18324         * TextBoxBase.cs: Set the default max values to MaxValue since
18325         we use the scrollbar for autoscrolling and the default value is
18326         100.  If we don't do this the caret won't keep up with typing
18327         after about 18 characters.
18328         * TextControl.cs: Make sure the selection is offset by the
18329         viewport x.  This fixes selection when using auto scrolling.
18330
18331 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
18332         
18333         * Form.cs: The active control should be selected after the 
18334         OnLoad so that any child control initialization that affects
18335         the selection is done. Fixes #79406
18336
18337 2006-10-06  Chris Toshok  <toshok@ximian.com>
18338
18339         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
18340         to have no evil effects.
18341
18342         - Stop selecting StructureNotifyMask on non-toplevel windows.
18343
18344           The only way children should be resized is by using the SWF api,
18345           and we already send WM_WINDOWPOSCHANGED messages in those cases.
18346           Toplevel windows can be interacted with via the window manager,
18347           and so we keep the input mask there.
18348
18349           The other event StructureNotifyMask gives us (that we care
18350           about) is DestroyNotify.  The code is already structured such
18351           that it assumes we won't be getting a DestroyNotify event for
18352           the window we pass to XDestroyWindow (which is what
18353           StructureNotifyMask is supposed to guarantee.)  So, that code
18354           shouldn't be affected by this either.
18355
18356         - Stop selecting VisibilityChangeMask altogether.
18357
18358           We weren't doing anything with the resulting events anyway.
18359         
18360         This vastly reduces the number of X requests and events we see
18361         when resizing/laying out a large ui.
18362
18363 2006-10-06  Chris Toshok  <toshok@ximian.com>
18364
18365         * ScrollableControl.cs (DisplayRectangle): we need to take into
18366         account the DockPadding regardless of whether or not auto_scroll
18367         == true.  rework this slightly to this effect, and fix bug #79606,
18368         and part of #72499 (you can now see the drag handles and drag
18369         toolbars around).
18370
18371 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
18372
18373         * ListViewItem.cs: Collections of selected and checked items are now
18374         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
18375         we mark the collection "dirty".
18376         * ListView.cs: Marked collections readonly. Modified UpdateSelection
18377         to only clear SelectedItems when a new item is selected and MultiSelect
18378         is enabled. CheckedItems and SelectedItems now subscribe to Changed
18379         event of ListViewItemCollection, and mark its list dirty whenever
18380         that event is fire. This allows us to return selected/checked items 
18381         in the same order as they are in the Items collection. This matches
18382         the MS behavior.
18383
18384 2006-10-06  Chris Toshok  <toshok@ximian.com>
18385
18386         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
18387         right mouse clicks.  Fixes bug #79593.
18388
18389 2006-10-06  Chris Toshok  <toshok@ximian.com>
18390
18391         * Splitter.cs: doh, fix splitters that don't want to cancel the
18392         movement when you drag them.  Also, impose the limits on the
18393         values we send to the SplitterMovingEvent.  Fixes #79598.
18394
18395 2006-10-06  Jackson Harper  <jackson@ximian.com>
18396
18397         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
18398         since we use this for auto scrolling also.
18399
18400 2006-10-05  Chris Toshok  <toshok@ximian.com>
18401
18402         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
18403         beginning to think that most datagrid column types don't need this
18404         method.  Fixes bug #79392.
18405
18406 2006-10-05  Chris Toshok  <toshok@ximian.com>
18407
18408         * DataGrid.cs: move back to a more lazy scheme for creating the
18409         CurrencyManager, so we aren't updating it every time you set
18410         either DataSource or DataMember.  Also, don't call
18411         RecreateDataGridRows if the currency manager hasn't changed.
18412
18413 2006-10-05  Chris Toshok  <toshok@ximian.com>
18414
18415         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
18416         emitted, SelectedIndex should already be updated.  Fixes bug
18417         #78929.
18418
18419 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
18420
18421         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
18422           ToolStripTextBox.cs: Initial commit.
18423         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
18424
18425 2006-10-05  Jackson Harper  <jackson@ximian.com>
18426
18427         * TabControl.cs: We need to invalidate the tab control area when
18428         new ones are added (duh).
18429
18430 2006-10-03  Chris Toshok  <toshok@ximian.com>
18431
18432         * Form.cs (ProcessDialogKey): if the focused control is in this
18433         form and is a button, call its PerformClick method here.  Fixes
18434         #79534.
18435
18436 2006-10-04  Jackson Harper  <jackson@ximian.com>
18437
18438         * TabPage.cs: Ignore setting of Visible, and add an internal
18439         method for setting the controls visibility.  TabPage's Visible
18440         property is a little strange on MS, this seems to make us
18441         compatible, and fixes cases where people set all the tab pages to
18442         visible.
18443         * TabControl.cs: Use the new internal setting on tab pages
18444         visibility.
18445
18446 2006-10-03  Mike Kestner  <mkestner@novell.com>
18447
18448         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
18449
18450 2006-10-03  Mike Kestner  <mkestner@novell.com>
18451
18452         * ListView.cs : use is_visible instead of Visible to check if 
18453         scrollbars should be placed/sized.  Also some max_wrap_width
18454         love for LargeIcon view.  [Fixes #79533]
18455
18456 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
18457
18458         * TextControl.cs :
18459           Make set_TextAlign() do actually update the align. Fixed #78403.
18460
18461 2006-10-03  Chris Toshok  <toshok@ximian.com>
18462
18463         * DataGrid.cs: fix a crash when switching datasources if the
18464         vertical scrollbar is at someplace other than Value = 0.  Also,
18465         reduce the number of recalculation passes we do in SetDataSource
18466         from 2 to 1.
18467
18468 2006-10-03  Jackson Harper  <jackson@ximian.com>
18469
18470         * TextBoxBase.cs: Move the if value the same bail check up, we
18471         don't want to empty the document if it is already empty, this
18472         seems to severly mess up the caret.  TODO: I should probably fix
18473         the empty statement to update teh caret somehow.
18474
18475 2006-10-03  Chris Toshok  <toshok@ximian.com>
18476
18477         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
18478         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
18479         reflection, an internal row type, properties on said type, etc.)
18480         will work with our datagrid.  Fixes #79531.
18481
18482 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
18483
18484         * FileDialog.cs: Don't crash if a path is not accessible
18485           (System.UnauthorizedAccessException). Fixes #79569.
18486         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
18487           a ':' too. Return unknown icon for those paths/files.
18488
18489 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
18490
18491         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
18492         GetContainerControl returns null.
18493
18494 2006-10-02  Chris Toshok  <toshok@ximian.com>
18495
18496         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
18497         call to XGetWindowAttributes instead of "handle".  fixes an X
18498         error using notifyicon after the NotifyIconWindow to Form base
18499         class switch.
18500
18501 2006-10-02  Chris Toshok  <toshok@ximian.com>
18502
18503         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
18504         server grab and looping we need to do to get down to the most
18505         deeply nested child window.
18506         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
18507         QueryPointer again after the WarpPointer so we can generate a
18508         proper (fake) MotionNotify event to be enqueued in the destination
18509         window's queue.
18510         (GetCursorPos): call QueryPointer.
18511
18512         Fixes #79556.
18513
18514 2006-10-02  Jackson Harper  <jackson@ximian.com>
18515
18516         * NotifyIcon.cs: Derive the notify icon from a form, so things
18517         like FindForm work on it.
18518         - Swallow the WM_CONTEXTMENU message, since that is generated on
18519         mouse down, and context menu is a mouse up kinda guy.  I believe
18520         the correct fix here is probably to make the notify icon entirely
18521         NC area, but this seems to work fine for anyone not manipulating
18522         WndProc.
18523
18524 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
18525
18526         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
18527           ToolStripItemCollection.cs, ToolStripLabel.cs,
18528           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
18529           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
18530           Initial implementation.
18531         * TextRenderer.cs: Provide padding to MeasureText.
18532
18533 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
18534
18535         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
18536         of ButtonBaseAccessibleObject. Fix bug #79552.
18537
18538 2006-10-02  Jackson Harper  <jackson@ximian.com>
18539
18540         * MdiWindowManager.cs: When maximizing use the containers client
18541         rect, not it's bounds, so nc area is accounted correctly.
18542         - Use the parent form's size for the menu position, since the
18543         client isn't always the full form size.
18544
18545 2006-10-01  Chris Toshok  <toshok@ximian.com>
18546
18547         * ScrollableControl.cs: make sure neither right_edge or
18548         bottom_edge are < 0, since they're used as LargeChange for the
18549         horiz/vert scrollbars respectively.  Fixes #79539.
18550
18551 2006-10-01  Chris Toshok  <toshok@ximian.com>
18552
18553         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
18554         the xplatuix11 code can cause us to destroy/recreate our handle.
18555
18556         * XplatUIX11.cs
18557         (SystrayAdd):
18558         - this code can be invoked many times for the same Hwnd.  Make
18559           sure we only destroy the client window once (the first time this
18560           method is called).  This fixes bug #79544.
18561         - Remove the call to the improperly bound XSync.  why we had two
18562           bindings to this, I will never know, but this call resulted in
18563           events being discarded from the queue(!).
18564         - correct a misunderstanding of _XEMBED_INFO - the second atom is
18565           not our current state but the state we wish to be in.  So, 0 if
18566           we don't want to be mapped.  Change it to 1.
18567         (SystrayRemove): The XEMBED spec makes mention of the fact that
18568         gtk doesn't support the reparent of client windows away from the
18569         embedder.  Looking at gtksocket-x11.c seems to agree with this.
18570         The only avenue we have for removing systray icons is to destroy
18571         them.  We don't want the handle to go away for good, though, so
18572         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
18573         #79545.
18574         
18575 2006-10-01  Chris Toshok  <toshok@ximian.com>
18576
18577         * Form.cs (WndProc): inline the native_enabled variable usage into
18578         the cases in which it's used.  Fixes #79536.
18579
18580 2006-09-29  Mike Kestner  <mkestner@novell.com>
18581
18582         * ListView.cs : toggle the selection state for ctrl clicks in 
18583         multiselect mode. [Fixes #79417]
18584
18585 2006-09-29  Mike Kestner  <mkestner@novell.com>
18586
18587         * ListView.cs : kill CanMultiSelect and refactor the selection
18588         code to support multiselection in the absence of mod keys. Steal
18589         arrow/home/end keys by overriding InternalPreProcessMessage to
18590         restore regressed keynav behavior.
18591         [Fixes #79416]
18592
18593 2006-09-29  Jackson Harper  <jackson@ximian.com>
18594
18595         * MdiClient.cs: Repaint the titlebars when the active window is
18596         changed.
18597
18598 2006-09-29  Chris Toshok  <toshok@ximian.com>
18599
18600         * Application.cs: when entering a runloop with a modal, make sure
18601         the hwnd is enabled.  Fixes #79480.
18602
18603 2006-09-29  Chris Toshok  <toshok@ximian.com>
18604
18605         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
18606         when ListManager.CanAddRows == false, bump us back one.
18607
18608         * DataGridColumnStyle.cs (ParentReadOnly): remove the
18609         listmanager.CanAddRows check.  This makes ArrayLists uneditable
18610         using a datagrid, which is not right.
18611         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
18612         is an IEditable, but call property_descriptor.SetValue regardless.
18613         fixes #79435.
18614
18615 2006-09-29  Chris Toshok  <toshok@ximian.com>
18616
18617         * DataGridBoolColumn.cs: we need to test equality in the face of
18618         possible null values (as is the case with the default NullValue).
18619         This patch keeps us from crashing in that case.
18620
18621 2006-09-29  Jackson Harper  <jackson@ximian.com>
18622
18623         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
18624         here, since it will get called for every node collection in the
18625         tree. This is now done in the treeview once the sorting is
18626         finished.
18627         * TreeView.cs: Recalculate the visible order, and update the
18628         scrollbars after sorting, set the top nope to the root so that the
18629         recalc actually works.
18630
18631 2006-09-29  Chris Toshok  <toshok@ximian.com>
18632
18633         * LinkLabel.cs: more handling of the default link collection in
18634         the face of LinkArea manipulation.  The default link collection
18635         contains 1 element (start=0,length=-1).  If the user sets LinkArea
18636         to anything and the links collection is the default, clear it.
18637         Then only add the link if its nonempty.  Fixes #79518.
18638
18639 2006-09-29  Chris Toshok  <toshok@ximian.com>
18640
18641         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
18642         piece correctly when we hit a '\n'.  Fixes #79517.
18643
18644 2006-09-29  Chris Toshok  <toshok@ximian.com>
18645
18646         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
18647         change the binding of gdk_init_check to take two IntPtr's, and
18648         pass IntPtr.Zero for both of them.  Fixes #79520.
18649
18650 2006-09-29  Mike Kestner  <mkestner@novell.com>
18651
18652         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
18653         [Fixes #78779]
18654
18655 2006-09-28  Jackson Harper  <jackson@ximian.com>
18656
18657         * XplatUIX11.cs: When translating NC messages make sure we go from
18658         whole window to screen, not client window to screen.
18659         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
18660         method doesn't exist
18661         - Skip over controls that aren't forms when arranging.
18662
18663 2006-09-28  Jackson Harper  <jackson@ximian.com>
18664
18665         * XplatUIWin32.cs: Clip the rect to the parent window.
18666         * XplatUIStructs.cs: Add clipping modes struct.
18667         * InternalWindowManager.cs: New private method that factors title
18668         bar heights in when calculating the pos of an NC mouse message.
18669         - Use SendMessage to force a paint when the form's size is changed
18670         instead of painting the decorations immediately.
18671         - Don't let the NC button click messages get to DefWndProc,
18672         because they will attempt to handle windowing themself, and this
18673         messes up z-order (it will put them in front of the scrollbars).
18674         * XplatUIX11.cs: Make sure that we don't reset window managers if
18675         we already have one (ie the window is an MDI window).
18676
18677 2006-09-28  Chris Toshok  <toshok@ximian.com>
18678
18679         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
18680         menu code really needs going over.
18681
18682 2006-09-27  Chris Toshok  <toshok@ximian.com>
18683
18684         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
18685         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
18686         window is maximizable.  So, we need to make sure that even if we
18687         clear the border/wm frame of those functions, they're still
18688         available (basically, we remove the decoration without removing
18689         the function).  Half the fix for #79338.
18690
18691 2006-09-27  Chris Toshok  <toshok@ximian.com>
18692
18693         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
18694         Fixes bug #79515.
18695
18696 2006-09-27  Chris Toshok  <toshok@ximian.com>
18697
18698         * Splitter.cs: reorder things a bit so that we don't actually
18699         draw/move the splitter until after calling OnSplitterMoving.  This
18700         lets users cancel/disallow the movement by explicitly setting
18701         event.SplitX/SplitY.  Fixes #79372.
18702
18703 2006-09-27  Jackson Harper  <jackson@ximian.com>
18704
18705         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
18706         because it is most likely on a window being destroyed, and that
18707         will give us an X11 error.
18708
18709 2006-09-27  Chris Toshok  <toshok@ximian.com>
18710
18711         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
18712         the dropdown button now toggles between showing and hiding the
18713         dropdown.  Also, get rid of dropdown_form_showing and just use
18714         dropdown_form.Visible.  We still don't do a grab, but I'll leave
18715         that part to someone who has handled Capture-fu before.
18716
18717 2006-09-27  Chris Toshok  <toshok@ximian.com>
18718
18719         * DataGrid.cs: return false if alt isn't pressed when '0' is
18720         pressed.  this keeps the '0' key from being swallowed, and fixes
18721         bug #79350.
18722
18723 2006-09-27  Chris Toshok  <toshok@ximian.com>
18724
18725         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
18726         Calling Refresh (in response to a scrollbar event) screws up the
18727         scrollbar painting.  Fixes bug #78923.
18728
18729 2006-09-27  Chris Toshok  <toshok@ximian.com>
18730
18731         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
18732         then insert into hashtable" blocks threadsafe.
18733
18734 2006-09-27  Chris Toshok  <toshok@ximian.com>
18735
18736         * MessageBox.cs (CreateParams): the styles should be |'ed with our
18737         baseclass's, since otherwise the
18738         ControlBox/MinimizeBox/MaximizeBox assignments above have no
18739         effect.  This gets the close button back in messageboxes.
18740
18741 2006-09-27  Chris Toshok  <toshok@ximian.com>
18742
18743         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
18744         flag, not just != 0.  this makes flags that are actually multiple
18745         bits (like WS_CAPTION) work.  fixes bug #79508.
18746
18747 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
18748
18749         * PageSetupDialog.cs: add support for getting and settings the 
18750         paper size, source and orientation.
18751
18752 2006-09-26  Chris Toshok  <toshok@ximian.com>
18753
18754         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
18755         and caption == "", we need to remove the resize handles as well as
18756         the title bar.
18757
18758         * Control.cs (set_Text): turns out that setting Text on a form
18759         should change the WM styles on the window, since if ControlBox ==
18760         false, the only way to get a window border is to have a non-""
18761         Text property.  check winforms/forms/text.cs for an example.  so,
18762         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
18763         update both window styles and title.  This fixes a lot of dialogs
18764         (including the preferences dialog in MonoCalendar.)
18765
18766 2006-09-26  Chris Toshok  <toshok@ximian.com>
18767
18768         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
18769         control isn't a Form), call Win32ShowWindow to hide the window,
18770         but don't update the control Visible property.  When we reparent
18771         back to a parent control, call SetVisible in order for the
18772         window's visibility to be reinstated.
18773
18774         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
18775         the FosterParent.
18776
18777         * Control.cs (ControlCollection.Remove): remove that value.Hide()
18778         call for good, since it breaks MonoCalendar (and other things I'm
18779         sure.) Also, set all_controls to null *after* the owner calls,
18780         which end up regenerating it.
18781         (ChangeParent): allow new_parent to be == null, passing
18782         IntPtr.Zero down to XplatUI.
18783
18784         this fixes #79294 the right way.
18785
18786 2006-09-26  Mike Kestner  <mkestner@novell.com>
18787
18788         * GridEntry.cs : internal SetParent method.
18789         * PropertyGrid.cs : attach to property changed on the proper
18790         target if we have a hierarchical grid with subobjects. Setup
18791         GridItem.Parent for hierarchical items.
18792         * PropertyGridView.cs : Set value on the correct target for
18793         hierarchical grids. [Fixes #78903]
18794
18795 2006-09-26  Chris Toshok  <toshok@ximian.com>
18796
18797         * Control.cs (ChildNeedsRecreating): this should return true if
18798         either we're being recreated and the child is in our list, or our
18799         parent is waiting for our recreation.
18800
18801 2006-09-26  Chris Toshok  <toshok@ximian.com>
18802
18803         * Control.cs (ControlCollection.Remove): reinstate the
18804         value.Hide() call as suggested in bug #79294.
18805
18806 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
18807
18808         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
18809         coordinates (versus a relative move).
18810
18811 2006-09-26  Chris Toshok  <toshok@ximian.com>
18812
18813         * Control.cs: rework child recreation a little bit.  It turns out
18814         that we race between the DestroyNotify the WM_DESTROY message.  If
18815         the parent gets its DestroyNotify before the child gets the
18816         WM_DESTROY message, the child ends up not recreating (since the
18817         parent finishes its recreation on DestroyNotify, and the child
18818         checks ParentIsRecreating.)
18819
18820         So, instead we store off a list of all the child controls which
18821         need to be recreated when the parent control starts to recreate
18822         itself.  Then, when child controls get their WM_DESTROY message we
18823         check to see if they're in the parent's pending recreation list,
18824         and if so, we recreate.  This removes all dependency on ordering
18825         from the code and fixes the initial MonoCalendar upgrade dialog.
18826         
18827 2006-09-26  Jackson Harper  <jackson@ximian.com>
18828
18829         * TextControl.cs: Use the Line to get the length of the line,
18830         since soft line breaks can change the end line.
18831
18832 2006-09-26  Chris Toshok  <toshok@ximian.com>
18833
18834         * Control.cs (ControlCollection.AddImplicit): don't add the
18835         control again if it's already in one of our lists.  This keeps us
18836         from adding controls over and over again for comboboxes when their
18837         handle gets recreated (as the combobox adds implicit controls in
18838         OnHandleCreated).  Fixes the X11 errors in bug #79480.
18839
18840 2006-09-26  Jackson Harper  <jackson@ximian.com>
18841
18842         * TextControl.cs: When deleting characters make sure that any
18843         orphaned zero lengthed tags get deleted.
18844         - Fix ToString for zero lengthed tags.
18845
18846 2006-09-25  Jackson Harper  <jackson@ximian.com>
18847
18848         * TextControl.cs: When getting a tag at the location there can be
18849         multiple tags at the same spot, these are 0-lengthed tags that
18850         appear when extra formatting has been stuck in a location.  We
18851         need to pull out the last of these 0 lengthed tags.
18852
18853 2006-09-25  Jackson Harper  <jackson@ximian.com>
18854
18855         * TextControl.cs: Fix print out in debug method.
18856         * TextBoxBase.cs: When text is set bail if we are setting to the
18857         previous value.
18858         
18859 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
18860
18861         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
18862           It is now possible to change the selected index in a FontXXXListBox
18863           with the up and down arrow keys from the FontXXXTextBoxes.
18864           Also, send the FontXXXTextBox mouse wheel event to the corresponding
18865           FontXXXListBoxes to match ms.
18866
18867 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
18868
18869         * SystemInformation.cs: Return a clone of the theme's MenuFont because
18870         anyone can dispose it, anytime. All other properties returns enums, 
18871         structs or basic types so they don't need such tricks.
18872
18873 2006-09-22  Jackson Harper  <jackson@ximian.com>
18874
18875         * XplatUI.cs:
18876         * XplatUIWin32.cs:
18877         * Clipboard.cs:
18878         * DataFormats.cs:
18879         * XplatUIOSX.cs:
18880         * XplatUIDriver.cs: Update interface to add a primary selection
18881         flag, so the driver can use the primary selection buffer if
18882         needed.
18883         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
18884
18885         * RichTextBox.cs: We need to supply the data object to paste now
18886         (so we can choose to supply CLIPBOARD or PRIMARY).
18887         * TextBoxBase.cs: Supply data object to paste (see above).
18888         - Middle click uses the primary selection data object.
18889         
18890 2006-09-21  Chris Toshok  <toshok@ximian.com>
18891
18892         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
18893         of SetWMStyles.  It's still a rat's nest and is largely
18894         order-dependent which I dislike immensely.  This also fixes the X
18895         button disappearing from toplevel forms.
18896
18897 2006-09-21  Mike Kestner <mkestner@novell.com>
18898
18899         * ListBox.cs: move Jordi's click/dblclick raising code to the
18900         mouse up handler.
18901
18902 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
18903
18904         * ListBox.cs: Fixes 79450
18905
18906 2006-09-21  Mike Kestner <mkestner@novell.com>
18907
18908         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
18909         to deal with people updating the TreeNodeCollection after the tree
18910         is disposed.  "Fixes" 79330.
18911
18912 2006-09-20  Jackson Harper <jackson@ximian.com>
18913
18914         * TextControl.cs: Push the cursor record onto the undo stack
18915         before the delete action. This fixes 78651.
18916
18917 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
18918
18919         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
18920         CreateParams. Fixes 79329.
18921
18922 2006-09-19  Chris Toshok  <toshok@ximian.com>
18923
18924         * XplatUIX11.cs: a couple of blanket code massage passes to clean
18925         things up a bit.  First, get rid of the NetAtoms array (and the NA
18926         enum), and just embed the atoms as static fields.  Also, add a
18927         couple of functions (StyleSet and ExStyleSet) to clean up all the
18928         bitmask testing of styles.
18929
18930         * X11Structs.cs: remove the NA enum, not needed anymore.
18931         
18932 2006-09-19  Chris Toshok  <toshok@ximian.com>
18933
18934         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
18935         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
18936         added cleanup to get MessageBox titles appearing again, which were
18937         broken by my earlier fix for caption-less/ControlBox-less windows.
18938
18939 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
18940
18941         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
18942           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
18943           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
18944           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
18945           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
18946           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
18947           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
18948           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
18949           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
18950           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
18951           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
18952             Inital import.
18953         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
18954           ToolStripButton.cs: Stubs needed for above.
18955         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
18956
18957 2006-09-15  Chris Toshok  <toshok@ximian.com>
18958
18959         * XplatUIX11.cs:
18960         - make the MessageQueues hashtable Synchronized.
18961         
18962         - SendMessage: if the Hwnd is owned by a different thread, use the
18963         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
18964         thread.  Fixes bug #79201.
18965
18966 2006-09-15  Chris Toshok  <toshok@ximian.com>
18967
18968         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
18969         ControlBox == false, we disallow maximize/minimize/close.  If the
18970         form Caption is "" we also disallow move (and get rid of the Title
18971         decoration).  Unfortunately, regardless of how things are set,
18972         we're stuck with the Title and WM menu.
18973
18974 2006-09-15  Chris Toshok  <toshok@ximian.com>
18975
18976         * Application.cs: add locking around the static message_filters
18977         ArrayList, part of #79196.
18978
18979 2006-09-15  Chris Toshok  <toshok@ximian.com>
18980
18981         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
18982         Form.ControlBox == false, the window has no titlebar nor resize
18983         handles.  fixes bug #79368.
18984
18985 2006-09-15  Chris Toshok  <toshok@ximian.com>
18986
18987         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
18988         >= 0.  Fixes bug #79370.
18989
18990 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
18991         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
18992         * Control.cs:
18993             Add properties: LayoutEngine, Margin, DefaultMargin.
18994             Add method: GetPreferredSize.
18995             Move layout logic from PerformLayout to layout engines. 
18996
18997 2006-09-13  Chris Toshok  <toshok@ximian.com>
18998
18999         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
19000         fix for #79326 broke #78718, so this change addresses that.
19001
19002         - in SendWMDestroyMessages remove the call to
19003         CleanupCachedWindows, since we might be recreating the control and
19004         need to maintain the references to right Hwnd handles.  Also, set
19005         the zombie flag to true for each of the children in the hierarchy
19006         instead of calling hwnd.Dispose.  This will cause GetMessage to
19007         ignore all events for the window except for DestroyNotify.
19008
19009         - In GetMessage, ignore messages except for DestroyNotify for
19010         zombie hwnds.
19011         
19012         * Control.cs: revert the is_recreating fix from the last
19013         ChangeLog.  It's definitely "right", but it breaks switching from
19014         an MDI form to a non-MDI form.  Will need to revisit that.
19015
19016         * Hwnd.cs: add a zombie flag, which means "the
19017         client_window/whole_window handles are invalid, but we're waiting
19018         for the DestroyNotify event to come in for them".  Set the flag to
19019         false explicitly if setting WholeWindow/ClientWindow, and also
19020         when Disposing.
19021         
19022 2006-09-13  Chris Toshok  <toshok@ximian.com>
19023
19024         * XplatUIX11.cs: rework window destruction slightly.
19025
19026         - when destroying the windows associated with a control, we don't
19027         need 2 separate XDestroyWindow calls.  Just the one for the
19028         whole_window (or for client_window if whole_window is somehow
19029         IntPtr.Zero -- can this happen?) is enough.
19030
19031         - reworked SendWMDestroyMessages slightly, so we always dispose
19032         the child control hwnd's after sending the messages.
19033         
19034         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
19035         the two places it was used (one was even using hwnd.Handle and the
19036         other hwnd.client_window.  ugh), adding another call in
19037         SendWMDestroyMessages.  We need this new call because now the
19038         DestroyNotify events in the queue will be ignored for the child
19039         controls (as their hwnd's were disposed, and the window id's
19040         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
19041
19042         - this fixes bug #79326.
19043
19044 2006-09-13  Chris Toshok  <toshok@ximian.com>
19045
19046         * Control.cs: don't always set is_recreating to false at the end
19047         of RecreateHandle, since sometimes we're not done (and won't be
19048         until WndProc handles the WM_DESTROY message).  Also, set
19049         is_recreating to false in the WM_DESTROY handling code.  Part of
19050         the fix for bug #79326.
19051
19052 2006-09-13  Miguel de Icaza  <miguel@novell.com>
19053
19054         * X11DesktopColors.cs: Start the droppage of debugging messages.
19055
19056         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
19057
19058 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
19059
19060         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
19061
19062 2006-09-12  Chris Toshok  <toshok@ximian.com>
19063
19064         * DataGrid.cs (get_ListManager): if the list_manager is null, try
19065         to create it using SetDataSource.  Fixes bug #79151.
19066
19067 2006-09-11  Chris Toshok  <toshok@ximian.com>
19068
19069         * XEventQueue.cs: add a DispatchIdle property.
19070
19071         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
19072         either the queue is null, or the queue has DispatchIdle set to
19073         true.
19074         (DoEvents): set queue.DispatchIdle to false around the
19075         peek/translate/dispatch message loop in this method.  This keeps
19076         Application.Doevents from emitting idle events.  Part of the fix
19077         for #78823.
19078
19079 2006-09-11  Chris Toshok  <toshok@ximian.com>
19080
19081         * DataGrid.cs (set_DataSource): make this work for both the
19082         winforms/datagrid test and ReportBuilder.  It seems as though when
19083         we've created a ListManager (or maybe it's if we have a
19084         BindingContext?), when we set the DataSource it clears the
19085         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
19086         #79333.
19087
19088 2006-09-11  Chris Toshok  <toshok@ximian.com>
19089
19090         * XplatUIX11.cs: deal with queue being null, which happens in all
19091         the Clipboard functions.  Fixes one of the two problems mentioned
19092         in #78612.
19093
19094 2006-09-11  Chris Toshok  <toshok@ximian.com>
19095
19096         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
19097         button on various spots (including outside the menu) works closer
19098         to MS, and doesn't crash.  Fixes #79343.
19099
19100 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
19101
19102         * ListView.cs: Do not initialize item_sorter in init. To match MS,
19103         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
19104         and the internal comparer is set. When a new ListViewItemSorter is set,
19105         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
19106         was specified. No further processing is necessary if SortOrder is set
19107         to it's current value. If Sorting is modified to None, and View is
19108         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
19109         (either custom or our internal ItemComparer) to null, on 1.0 profile
19110         only set item_sorter to null if its our internal IComparer. If Sorting
19111         is modified to Ascending or Descending, then use our internal IComparer
19112         if none is set, and if the current IComparer is our internal one then:
19113         on 2.0 profile always replace it with one for new Sorting, and on 1.0
19114         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
19115         Enum.IsDefined to verify whether a valid View value is specified in
19116         its setter. Automatically sort listview items when listview is
19117         created. In Sort, do nothing if ListView is not yet created, or if
19118         no item_sorter is set (no Sorting was set, Sorting was explicitly set
19119         to None or ListViewItemSorter was set to null). Added Sort overload
19120         taking a bool to indicate whether the ListView should be redrawn when
19121         items are sorted (we use this in ListViewItemCollection to avoid double
19122         redraws). Modified our internal IComparer to take the sort order into
19123         account. In Add and AddRange methods of ListViewItemCollection, also
19124         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
19125         view), but use overload with noredraw option to avoid double redraw.
19126         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
19127         true when View is Tile, and do the same when attempting to set View to
19128         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
19129         for selected/checked indices, as it involves overhead when sorting is
19130         done while these collections are not used all that often. Instead
19131         we'll build the indices on demand. Modified IList implementation of
19132         CheckedIndexCollection to use public methods if object is int.
19133         Modified CheckedListViewItemCollection to hide checked items if
19134         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
19135         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
19136         IList implementation in SelectedIndexCollection to use public methods
19137         if object is int. Modified SelectedListViewItemCollection to hide
19138         selected items if listview is not yet created.
19139         * ListViewItem.cs: CheckedIndices list no longer needs to be
19140         maintained separately (see ListView changes). Also clone font, fixes
19141         test failure.
19142
19143 2006-09-11  Mike Kestner  <mkestner@novell.com>
19144
19145         * ComboBox.cs: if we are updating the contents of the currently
19146         selected index, refresh the control or the textbox selection.
19147         [Fixes #79066]
19148
19149 2006-09-11  Mike Kestner  <mkestner@novell.com>
19150
19151         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
19152         the 'specified' logic has been moved there.  This seems like a bug 
19153         in Control.cs, since our current SetBoundsCore completely ignores 
19154         the specified parameter.  Peter's commit seems to indicate that is 
19155         the way the MS control implementation works.  [Fixes #79325]
19156
19157 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
19158
19159         * XplatUI.cs: Set default_class_name to be composed
19160         of current domain id. This allows MWF to be loaded in multiple
19161         domains on Win32.
19162
19163 2006-09-09  Miguel de Icaza  <miguel@novell.com>
19164
19165         * X11Keyboard.cs: If we are unable to obtain the input method, do
19166         not call CreateXic to create the input context.   Should fix
19167         #78944/79276.
19168
19169 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
19170
19171         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
19172           Simplified gnome support by adding more pinvokes to get the
19173           icon for a file or mime type.
19174
19175 2006-09-08  Jackson Harper  <jackson@ximian.com>
19176
19177         * MenuAPI.cs: Deslect popup context menu items before closing the
19178         window, so that you don't see the previously selected item
19179         selected when you reopen the menu.
19180         * TextControl.cs: Update the cursor position even if we don't have
19181         focus.  This fixes typing in things like the ComboBox.  I'm not
19182         totally sure we should always set the visibility if we don't have
19183         focus, but couldn't find any corner cases where the cursor showed
19184         up when it shouldn't.
19185
19186 2006-09-08  Chris Toshok  <toshok@ximian.com>
19187
19188         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
19189         our arrays are length 256.  & 0xff before indexing.  Fixes the
19190         crash in bug #78077.
19191         
19192 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19193
19194         * ThemeWin32Classic.cs: 
19195         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
19196         is true. Handle that check box too.
19197
19198 2006-09-07  Chris Toshok  <toshok@ximian.com>
19199
19200         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
19201         79244.
19202
19203 2006-09-07  Chris Toshok  <toshok@ximian.com>
19204
19205         * Control.cs: in set_BackColor only do the work if
19206         background_color != value.
19207
19208         * XplatUIX11.cs: move the clearing of invalid areas (both client
19209         and nc) to the same block of code where we set (nc_)expose_pending
19210         to false.  That is, move it from PaintEventEnd to PaintEventStart,
19211         so things that cause invalidates from within OnPaint will trigger
19212         another call to OnPaint.  Fixes bug #79262.
19213
19214 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
19215
19216         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
19217         * FileDialog.cs: Fix typo
19218
19219 2006-09-07  Jackson Harper  <jackson@ximian.com>
19220
19221         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
19222         for tab pages if they have any.
19223
19224 2006-09-06  Mike Kestner  <mkestner@novell.com>
19225
19226         * Splitter.cs: use the "current" rect when finishing drag handle
19227         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
19228
19229 2006-09-06  Mike Kestner  <mkestner@novell.com>
19230
19231         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
19232         support offset splitters. [Fixes #79298]
19233
19234 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
19235
19236         * Mime.cs: Fixed a bug that could override the global mime type
19237           result.
19238
19239 2006-09-05  Jackson Harper  <jackson@ximian.com>
19240
19241         * TabControl.cs: Better calculation method for setting the slider
19242         pos. Prevents crashes on really wide tabs.
19243         - Draw Image on tab pages if an image list is used.
19244
19245 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19246
19247         * MonthCalendar.cs: When Font changes, the Size should be
19248         updated to fit the new font's space requirements.
19249
19250 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
19251
19252         * ListBox.cs: If the items are cleared with Items.Clear set
19253           top_index to 0.
19254
19255 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19256
19257         * MonthCalendar.cs: Handle arrow keys as input keys. Also
19258         fire DateChanged event instead of DateSelected event when
19259         the date was changed by keyboard interaction.
19260
19261 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19262
19263         * DateTimePicker.cs: Handle DateChanged for the associated
19264         month_calendar control, and set month_calendar.Font from 
19265         OnFontChanged method, as well as resize the height of the
19266         control when needed. Make PreferredHeight proportional.
19267
19268 2006-09-01  Chris Toshok  <toshok@ximian.com>
19269
19270         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
19271         properties.
19272
19273         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
19274
19275 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
19276
19277         * FileDialog.cs: Set ClientSize instead of window size, to allow space
19278           for decorations (Fixes #79219)
19279
19280 2006-09-01  Mike Kestner  <mkestner@novell.com>
19281
19282         * ComboBox.cs: first stab at sorting plus some selection handling
19283         fixes to bring us more in line with MS behavior.  Also switches back
19284         to index based selection.  Alternative patches for index-based 
19285         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
19286         and latency@gmx.de on bug 78848.  I assume they were similar to this
19287         code I've had simmering in my tree forever.
19288         [Fixes #78848]
19289
19290 2006-09-01  Chris Toshok  <toshok@ximian.com>
19291
19292         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
19293         when setting list position guard against ending up with a -1 index
19294         (the other part of the fix for #78812).  Should probably make sure
19295         we don't need the analogous fix in the ItemDeleted case.
19296
19297         * DataGrid.cs:
19298         - in SetDataSource, work around the fact that the way
19299         OnBindingContextChanged is invoked will cause us to re-enter this
19300         method.  I'll remove the hack once I investigate
19301         OnBindingContextChanged.
19302
19303         - fix the logic in set_DataSource and set_DataMember (basically
19304         what to do if the other of the two is null.)
19305         
19306         - in OnListManagerItemChanged, we need to take into account the
19307         edit row when deciding whether or not to call RecreateDataGridRows
19308         (part of the fix for #78812).
19309
19310 2006-09-01  Jackson Harper  <jackson@ximian.com>
19311
19312         * Splitter.cs: Don't do anything if there is no control to affect
19313         (prevents us from crashing in weird tet cases).
19314         * TreeView.cs: Bounding box for the mouse movement reverting
19315         focus/selection back to previously selected node.  This matches
19316         MS, and makes the tree a lot more useable.
19317         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
19318         use clipping so they are not drawn.  This fixes when the control
19319         is set to have a transparent background, or if it was over an
19320         image.
19321
19322 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
19323
19324         * MimeIcon.cs: Improved handling for reading default icons when
19325           using gnome (2.16 made it necessary). Check and read svg icons
19326           first, then 48x48 and then 32x32 icons.
19327
19328 2006-08-31  Chris Toshok  <toshok@ximian.com>
19329
19330         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
19331         visible.
19332
19333         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
19334         ProcessKeyPreview.  Fixes part of #77806.
19335
19336         * DataGrid.cs: big patch.
19337
19338         - revert the queueing up of DataSource/DataMember if inside
19339         BeginInit/EndInit calls.  That's not the way the datagrid achieves
19340         its delayed databinding.  Instead, call SetDataSource in
19341         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
19342         #78811.
19343
19344         - Also, it wasn't mentioned in #78811, but the test case exhibits
19345         behavior that was lacking in our datagrid implementation - Columns
19346         that have mapping names that don't exist in the datasource's
19347         properties aren't shown.  Yuck.  To fix this I added the bound
19348         field to the column style, and basically any calculation to figure
19349         out anything about columns uses a loop to find the bound columns.
19350         still need to investigate if I can cache an array of the bound
19351         columns or if the indices must be the same.
19352
19353         - When setting CurrentCell, we no longer abort if the cell being
19354         edited was in the add row.  This fixes the other part of #77806.
19355
19356         - The new code also fixes #78807.
19357         
19358         * ThemeWin32Classic.cs: perpetrate the same disgusting
19359         column.bound field hack, and only render bound fields.
19360
19361 2006-08-31  Chris Toshok  <toshok@ximian.com>
19362
19363         * DataGridColumnStyle.cs: add bound field.  this field is true if
19364         the datasource has a property corresponding to the mapping name.
19365
19366         * DataGridTableStyle.cs: set the bound field on the column styles
19367         depending on whether or not we have a column for that property.
19368
19369 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
19370
19371         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
19372           splitter control (fixes #79228)
19373
19374 2006-08-31  Chris Toshok  <toshok@ximian.com>
19375
19376         * DataGridColumnStyle.cs: we need to delay the assignment of
19377         property descriptor until the last possible moment due to the lazy
19378         databinding stuff in the datagrid.  Also, fix the exceptions
19379         thrown by CheckValidDataSource to match MS.
19380
19381 2006-08-31  Jackson Harper  <jackson@ximian.com>
19382
19383         * Form.cs: When activated select the active control, if there is
19384         no active control, we select the first control.
19385         * XplatUIX11.cs: If there is no focus control when we get a
19386         FocusIn event, find the toplevel form and activate it.  This
19387         occurs when you popup a window, it becomes the focus window, then
19388         you close that window, giving focus back to the main window.
19389
19390 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19391
19392         * MonthCalendar.cs: 
19393         * ThemeWin32Classic.cs: Cache Font in bold style, as well
19394         as StringFormat with Center alignments in MonthCalendar,
19395         instead of creating new ones when drawing the control. 
19396         Also, draw the month name in bold style.
19397
19398 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
19399
19400         * Control.cs:
19401           - PerformLayout(): It would seem MS performs the fill even if the 
19402             control is not visible (part of #79218 fix)
19403           - ResetBackColor(): Use the setter to reset the color, to allow
19404             overriders to catch the change.
19405         * Form.cs:
19406           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
19407           - CreateHandle(): dito (part of $79218 fix)
19408           - Don't set an icon if we have a dialog
19409         * ScrollableControl.cs:
19410           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
19411           - ScrollIntoView(): No need to scroll if control is already visible
19412             (resolves fixme and fixes #79218)
19413
19414 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19415
19416         * MonthCalendar.cs: Change proportions in SingleMonthSize
19417         to match the aspect of the original control.
19418
19419 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
19420
19421         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
19422           get updated when they get maximized.
19423
19424 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
19425
19426         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
19427
19428 2006-08-29  Chris Toshok  <toshok@ximian.com>
19429
19430         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
19431
19432 2006-08-29  Jackson Harper  <jackson@ximian.com>
19433
19434         * TreeView.cs: Need to track selected node and highlighted node,
19435         they aren't always the same thing, when the mouse is down on a
19436         node it is hilighted, but not selected yet.
19437         - Do the HideSelection stuff right
19438         - Need to focus on rbutton mouse down. And redraw selection when
19439         right click is mouse upped.
19440
19441 2006-08-29  Mike Kestner  <mkestner@novell.com>
19442
19443         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
19444         when SubItems.Count < Columns.Count.  [Fixes #79167]
19445
19446 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
19447
19448         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
19449
19450 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
19451
19452         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
19453           from X. Only send based on ConfigureNotify if we don't have the
19454           correct location in hwnd (if the window manager moved us)
19455
19456 2006-08-28  Mike Kestner  <mkestner@novell.com>
19457
19458         * ListView.cs: remove a TODO. 
19459         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
19460         [Fixes ListView part of #79166]
19461
19462 2006-08-28  Mike Kestner  <mkestner@novell.com>
19463
19464         * ListView.cs: move wheel handler to parent since it is focused
19465         instead of the item_control now.  [Fixes #79177]
19466
19467 2006-08-28  Mike Kestner  <mkestner@novell.com>
19468
19469         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
19470         when the control is focused. [Fixes #79171]
19471
19472 2006-08-28  Mike Kestner  <mkestner@novell.com>
19473
19474         * ListView.cs: size the item and header controls for empty and
19475         unscrollable views.
19476         * ThemeWin32Classic.cs: draw disabled backgrounds.
19477         [Fixes #79187]
19478
19479 2006-08-28  Chris Toshok  <toshok@ximian.com>
19480
19481         * Form.cs: remove unused "active_form" static field.
19482
19483         * Hwnd.cs: lock around accesses to static windows collection.
19484
19485         * Application.cs: lock threads in Exit ().
19486
19487 2006-08-28  Chris Toshok  <toshok@ximian.com>
19488
19489         * NativeWindow.cs: lock around accesses to window_collection.
19490         
19491 2006-08-28  Chris Toshok  <toshok@ximian.com>
19492
19493         * Control.cs: err, fix this the right way, by locking on controls
19494         when using it.  not by making it synchronized.
19495
19496 2006-08-28  Chris Toshok  <toshok@ximian.com>
19497
19498         * Control.cs: make the static "controls" field synchronized, as it
19499         gets updated from multiple threads.
19500
19501 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
19502
19503         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
19504           Prevent other threads from exiting when calling thread sets quit state.
19505         * XEventQueue.cs: Added PostQuitState property
19506
19507 2006-08-27  Chris Toshok  <toshok@ximian.com>
19508
19509         * AsyncMethodData.cs: add a slot for the window handle.
19510
19511         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
19512         window (the destination control's window, not the foster window).
19513
19514         * Control.cs (BeginInvokeInternal): store the window's handle in
19515         the AsyncMethodData.
19516         
19517
19518 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
19519
19520         * XplatUIX11.cs:
19521           - PostQuitMessage: Removed resetting S.D display handle, we might have
19522             another loop started after calling PostQuitMessage (Fixes #79119)
19523           - Created destructor to reset S.D handle
19524
19525 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
19526
19527         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
19528
19529 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
19530
19531         * TextControl.cs (Insert): Update the caret position even if we don't
19532           have a handle yet, just don't call the driver in that case.
19533         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
19534           to the end of the new selection text (Fixes #79184)
19535
19536 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
19537
19538         * Form.cs (Activate): Only activate if the handle is created)
19539         * Control.c:
19540           - Mark window as invisible when it's disposed
19541           - Check if window handle is created when setting window visible, 
19542             instead of relying just on the is_created variable
19543           - Check if object is disposed when creating the control (Fixes #79155)
19544
19545 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
19546
19547         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
19548           when allowing layout again. Otherwise we re-generate the anchoring 
19549           distance to the border again and actually alter what the user wanted
19550           This is ugly, it'd be better if we used DisplayRectangle instead of
19551           ClientRectangle for Control.UpdateDistances, but that causes us to
19552           have other problems (initial anchoring positons would be wrong)
19553           (Fixes #78835)
19554
19555 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
19556
19557         * Control.cs:
19558           - The size and location setters shouldn't go directly to 
19559             SetBoundsCore, but to SetBounds, which triggers layout on the
19560             parent, then calls SetBoundsCore. (Related to fix for #78835)
19561           - SetBounds: Moved actual location update code into this function
19562             from SetBoundsCore, to match MS. Added call to PerformLayout if
19563             we have a parent (to trigger resizing of anchored parents if the 
19564             child size has changed (see testcase for #78835) 
19565         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
19566           new control code
19567         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
19568
19569 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
19570
19571         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
19572           System.Drawing when a toplevel window gets closed; there might
19573           be other toplevel windows belonging to the same app (Fixes #78052)
19574
19575 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
19576
19577         * FileDialog.cs: After reading FileDialog settings from mwf_config
19578           use Desktop prefix only if a real folder doesn't exist anymore.
19579         * FontDialog.cs: Added char sets.
19580           It is now possible to select the font, size or style with the
19581           textboxes.
19582
19583 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
19584
19585         * PrintPreviewDialog.cs: Use assembly name constants.
19586
19587 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
19588
19589         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
19590           scrollbar from whacking it's buttons)
19591
19592 2006-08-24  Chris Toshok  <toshok@ximian.com>
19593
19594         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
19595         in this patch (aggregating setting Left/Top/Width/Height to
19596         setting Bounds on the scrollbars), but the crux of the fix is in
19597         Recalculate, where we scroll by the remaining scroll_position if
19598         we're hiding a scrollbar.  The 2*$5 reward in the comment is
19599         serious.
19600
19601 2006-08-24  Jackson Harper  <jackson@ximian.com>
19602
19603         * MdiClient.cs:
19604         * MdiWindowManager.cs: If the form is made a non-mdi window we
19605         need to remove the form closed event so that closing forms works
19606         correctly.
19607
19608 2006-08-24  Jackson Harper  <jackson@ximian.com>
19609
19610         * Control.cs: Make IsRecreating internal so that the driver can
19611         check it
19612         - Temporarily remove the Hide when controls are removed, its
19613         making a whole bunch of things not work because visibility isn't
19614         getting reset elsewhere correctly
19615         * Form.cs: Need to do a full handle recreation when the mdi parent
19616         is set.
19617         * XplatUIX11.cs: If we are recreating handles don't dispose the
19618         HWNDs.  What was happening is the handles were being recreated in
19619         SendWMDestroyMessages, but then flow continued on in that method
19620         and destroyed the new handles.
19621
19622 2006-08-23  Jackson Harper  <jackson@ximian.com>
19623
19624         * Form.cs: MdiClient is always at the back of the bus
19625         * Control.cs: When the order of items in the collection is changed
19626         we need to reset the all_controls array
19627         - do the same sorta setup thats done when adding a control when a
19628         control is set on the collection.
19629
19630 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
19631
19632         * TextBoxBase.cs (get_Text): Return an empty array if our document
19633           is empty (fixes #79052)
19634
19635 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
19636
19637         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
19638           on WM_SYSCHAR messages (fixes #79053)
19639
19640 2006-08-23  Chris Toshok  <toshok@ximian.com>
19641
19642         * DataGrid.cs: fix flickering when scrolling vertically.
19643
19644 2006-08-23  Chris Toshok  <toshok@ximian.com>
19645
19646         * DataGrid.cs (EndEdit): only invalidate the row header when we
19647         need to.
19648
19649 2006-08-23  Chris Toshok  <toshok@ximian.com>
19650
19651         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
19652         methods.  fixes the flicker when scrolling around.
19653
19654 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
19655
19656         * FileDialog.cs: Making sure the control is created before we get a 
19657           chance to use it with BeginInvoke (Fixes #79096)
19658
19659 2006-08-23  Chris Toshok  <toshok@ximian.com>
19660
19661         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
19662         width to use when painting the rows.
19663
19664 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
19665
19666         * TextBoxBase.cs:
19667           - Throw ArgumentException if a negative value is passed to SelectionLength
19668           - Update the selection end if start is moved. end needs to be always
19669             after start. (Fixes #79095)
19670           - Track selection length; MS keeps the selection length even if start
19671             is changed; reset on all other operations affection selection
19672
19673 2006-08-22  Jackson Harper  <jackson@ximian.com>
19674
19675         * TreeView.cs: Make sure both scrollbars get displayed and sized
19676         correctly when the other bar is visible.
19677         - Use the original clip rectangle for checking if the area between
19678         the two scrollbars is visible, not the viewport adjusted clipping
19679         rectangle.
19680
19681 2006-08-22  Jackson Harper  <jackson@ximian.com>
19682
19683         * Binding.cs: We don't use IsBinding because it requires the
19684         control to be created, which really shouldn't be necessary just to
19685         set a property on the control.
19686
19687 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19688
19689         * ComboBox.cs: Some CB.ObjectCollection methods must throw
19690         ArgumentNullReferenceException when the argument is null.
19691
19692 2006-08-21  Jackson Harper  <jackson@ximian.com>
19693
19694         * Timer.cs: Track the thread that the timer is started in (NOT
19695         CREATED), this way messages for it will only be triggered on its
19696         queue.
19697         * XEventQueue.cs: Track the timers here, this makes timers per
19698         thread, like MS.
19699         * XplatUIX11.cs: The timers are moved to the XEventQueue.
19700
19701 2006-08-19  Chris Toshok  <toshok@ximian.com>
19702
19703         * XplatUIX11.cs: after further communication with pdb, we get the
19704         best of both worlds.  SetZOrder working for un-Mapped windows, and
19705         no X errors for un-mapped windows.
19706
19707 2006-08-19  Chris Toshok  <toshok@ximian.com>
19708
19709         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
19710         as it was causing pdn toolbars to not have the correct stacking.
19711
19712 2006-08-18  Mike Kestner  <mkestner@novell.com> 
19713
19714         * ListView.cs : guard against negative ClientArea.Width in scrollbar
19715         calculation.  Not sure why control should ever be setting a negative
19716         width though.  Fixes #78931.
19717
19718 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19719
19720         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
19721         null items in ObjectCollection class.
19722         * ListBox.cs.: Likewise.
19723
19724 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
19725
19726         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
19727           as the base method in ThemeWin32Classic should work fine.
19728           Fixed bug #78607.
19729
19730 2006-08-18  Jackson Harper  <jackson@ximian.com>
19731
19732         * Binding.cs: When validating if the value entered doesn't convert
19733         properly reset to the old value.
19734         * RadioButton.cs: Don't fire click when we get focus.
19735
19736 2006-08-18  Jackson Harper  <jackson@ximian.com>
19737
19738         * FileDialog.cs: Paint the selection on the directory combobox the
19739         same way as on MS. 
19740
19741 2006-08-17  Jackson Harper  <jackson@ximian.com>
19742
19743         * ErrorProvider.cs: Don't allow the error control to be selected.
19744         * Control.cs: Don't send the SetFocus messages, the control
19745         activation will do this, and if we do it blindly here validation
19746         does not work.
19747
19748 2006-08-17  Jackson Harper  <jackson@ximian.com>
19749
19750         * Control.cs:
19751         * ContainerControl.cs: Make validation events fire in the correct
19752         order.  TODO: For some reason the first validation event is not
19753         getting fired.
19754
19755 2006-08-17  Mike Kestner  <mkestner@novell.com> 
19756
19757         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
19758
19759 2006-08-17  Mike Kestner  <mkestner@novell.com> 
19760
19761         * ComboBox.cs : implement scroll wheel support for popped-down
19762         state. Fixes #78945. 
19763
19764 2006-08-17  Jackson Harper  <jackson@ximian.com>
19765
19766         * TreeView.cs: Specify treeview actions (old patch that didn't get
19767         committed for some reason).
19768         - Don't let the mouse wheel scroll us too far.  Just want to make
19769         the bottom node visible, not scroll it all the ways to the top.
19770
19771 2006-08-17  Jackson Harper  <jackson@ximian.com>
19772
19773         * XplatUIX11.cs: Mouse wheel events go to the focused window.
19774
19775 2006-08-17  Mike Kestner  <mkestner@novell.com> 
19776
19777         * ComboBox.cs : don't do mouseover selection in simple mode.
19778
19779 2006-08-16  Jackson Harper  <jackson@ximian.com>
19780
19781         * Form.cs: Fire the closing events for all the mdi child windows
19782         when a window is closed.  If the cancel args are set to true, the
19783         main window still gets the event fired, but it doesn't not close.
19784         * MdiWindowManager.cs: Do this closing cleanup in a Closed
19785         handler, instead of when the button is clicked, so cancelling the
19786         close works correctly.
19787         * ComboBox.cs: Send the mouse down to the scrollbar.
19788
19789 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19790
19791         * ListBox.cs: When passing 'null' to SelectedItem,
19792         set SelectedIndex to -1, to unselect items. This is the
19793         observed behaviour in .Net.
19794
19795 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
19796
19797         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
19798           MS flags saying there won't be any. (fixes #78800)
19799         * Control.cs (HandleClick): Made virtual
19800
19801 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
19802
19803         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
19804           cultures. Fixed bug #78399.
19805
19806 2006-08-16  Jackson Harper  <jackson@ximian.com>
19807
19808         * Form.cs: Use the MdiClients MdiChildren property to access
19809         MdiChildren instead of creating the array from the child controls.
19810         * MdiClient.cs: Maintain a separate array of the mdi children, so
19811         that insertion order is maintained when the Z-order is changed.
19812
19813 2006-08-16  Mike Kestner  <mkestner@novell.com> 
19814
19815         * ListView.cs : add an ItemComparer and default to it for sorting.
19816         Fixes #79076, but sorting needs a complete overhaul to be compat with
19817         MS.
19818
19819 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
19820
19821         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
19822
19823 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
19824
19825         * Hwnd.cs (Mapped): Properly traverse the tree
19826
19827 2006-08-15  Chris Toshok  <toshok@ximian.com>
19828
19829         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
19830         pass manager.Current.GetType() to ParseData.  It has to be the
19831         property type.  So, hold off doing the ParseData until we're in
19832         SetPropertyValue where we know the type.  This fixes the crash in
19833         #78821 but the textbox is still empty.
19834
19835 2006-08-15  Chris Toshok  <toshok@ximian.com>
19836
19837         * DataGrid.cs:
19838         - when we're scrolling, only call Edit() again if the
19839         current cell is still unobscured. Fixes bug #78927.
19840         - when handling mousedown on a cell, ensure the cell is visible
19841         before calling Edit.
19842         - remove the properties from DataGridRow, and remove the
19843         DataGridParentRow class altogether.
19844         
19845
19846 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
19847
19848         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
19849           fire OnTextChanged by ourselves. There's no point calling base,
19850           we don't set the base value anywhere else. Fixes #78773.
19851
19852 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19853
19854         * ListBox.cs: Call CollectionChanged when modifying
19855         an item from Items indexer, to update the actual items
19856         in the list box.
19857
19858 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19859
19860         * PrintDialog.cs: Small fixes for focus and a pair of checks,
19861         to match .Net behaviour.
19862
19863 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
19864
19865         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
19866
19867 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
19868
19869         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
19870
19871 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
19872
19873         * MessageBox.cs: Prevent potential NRE exception.
19874         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
19875
19876 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
19877
19878         * MessageBox.cs: Calculate the owner of a messagebox, also make
19879           it topmost. Fixes #78753
19880
19881 2006-08-14  Chris Toshok  <toshok@ximian.com>
19882
19883         * XplatUIX11.cs: A couple of fixes so that metacity will let us
19884         programmatically move windows.  first, set the PPosition hint as
19885         well as the USPosition hint.  Second include some code from pdb
19886         that sets the window type to NORMAL when we set the transient for
19887         hint.  This is because, in the absence of a window type, metacity
19888         thinks any window with TransientFor set is a dialog, and refuses
19889         to let us move it programmatically.  fascists.
19890
19891 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
19892
19893         * XplatUIX11.cs: When setting normal hints, take into consideration
19894           an different hints previously set so we don't delete them (fixes #78866)
19895
19896 2006-08-12  Chris Toshok  <toshok@ximian.com>
19897
19898         * ToolBarButton.cs: make Layout return a boolean, if something to
19899         do with the button's layout changed.
19900
19901         * ToolBar.cs:
19902         - add another parameter to Redraw, @force, which all existing
19903           calls set to true.
19904         - make the Layout function return a boolean which is true if the
19905           layout has actually changed.  Redraw now uses this (and @force)
19906           to determine when to invalidate.  At present the only place
19907           where @force can be false is the call from OnResize, when
19908           background_image == null.  So, resizing a toolbar when the
19909           layout doesn't change results in no drawing.
19910
19911 2006-08-12  Chris Toshok  <toshok@ximian.com>
19912
19913         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
19914         the VScrollBar and HScrollbar reversed.  oops.
19915
19916         * DataGrid.cs: fix the logic that assigns sizes to the implicit
19917         scrollbars.  we were assigning them twice (once in
19918         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
19919         therefore causing two scrollbar resizes (and redraws?) to happen
19920         per grid resize.
19921
19922 2006-08-12  Chris Toshok  <toshok@ximian.com>
19923
19924         * ToolBarButton.cs: redraw the entire button if the theme tells us
19925         to.
19926
19927         * Theme.cs: add ToolBarInvalidateEntireButton.
19928
19929         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
19930         buttons, just the border.
19931
19932         * ThemeNice.cs: redraw the entire toolbar button since we need to
19933         draw the highlight image.
19934
19935         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
19936         we need to redraw the entire button (not just the border).
19937
19938 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
19939
19940         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
19941           for vertical bars. Fixes the mismatches shown by #78513
19942
19943 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
19944
19945         * FileDialog.cs: If a saved/remembered path doesn't exist
19946           anymore, fall back to "Desktop".
19947
19948 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
19949
19950         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
19951           parent. It's apparently legal to not have one
19952         * XplatUIX11.cs:
19953           - SetZOrder: Don't try to set Z-Order on an unmapped window
19954           - CreateWindow: 0,0 are legal coordinates for a window. don't move
19955             it unless the coordinates are negative
19956
19957 2006-08-10  Mike Kestner  <mkestner@novell.com>
19958
19959         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
19960         when setting to null per msdn docs.  Fixes #78854.
19961
19962 2006-08-10  Chris Toshok  <toshok@ximian.com>
19963
19964         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
19965         flickering by setting a clip rectangle on the Graphics when we
19966         need to redraw just a particular menuitem.  Also, rename "OnClick"
19967         to "OnMouseDown" to reflect what it actually is.
19968         
19969         * Form.cs: track the OnMouseDown change.
19970
19971 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
19972
19973         * CommonDialog.cs: Properly inherit the CreateParams from the form
19974           and only change what we need. Fixes #78865
19975
19976 2006-08-10  Chris Toshok  <toshok@ximian.com>
19977
19978         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
19979         flickering in flat mode (and most of the flickering in general) by
19980         only invalidating the button border (and not the entire rectangle)
19981         when the state changes.  A couple of cases still flicker:
19982         ToggleButtons, and the dropdown arrow case when the user mouse
19983         ups.
19984
19985 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
19986
19987         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
19988           for german keyboards. Numlock state shouldn't affect the behaviour
19989           of the Del key. Fixes bug #78291.
19990
19991 2006-08-10  Chris Toshok  <toshok@ximian.com>
19992
19993         * ListControl.cs: remove the items.Clear line from BindDataItems,
19994         as this is the first thing done by both subclasses in their
19995         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
19996         passed -1, refresh the list.  This gets databinding working when
19997         the datasource is set on the list before the datasource is
19998         populated (as in wf-apps/ReportBuilder.)
19999
20000         * ComboBox.cs: remove the argument to BindDataItems.  This call
20001         should really go away, and be initiated by the ListControl code.
20002
20003         * ListBox.cs: same.
20004
20005 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
20006
20007         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
20008           if no data is in the document when the control is displayed
20009
20010 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
20011
20012         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
20013           yes (fixes #78806)
20014         * TextControl.cs: 
20015           - PositionCaret: Allow positioning of caret but don't call methods 
20016             requiring a handle if the window isn't created yet
20017           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
20018           - owner_HandleCreated: Don't position the caret, just update it's 
20019             location. User might have already set a different position
20020
20021 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
20022
20023         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
20024           windows. Screws up the returned coordinates for child windows. 
20025           Fixes #78825. I'm hoping this doesn't break something, since the
20026           code was explicitly put in 8 months ago, but no bug was attached.
20027           Menus still seem to work properly.
20028
20029 2006-08-08  Chris Toshok  <toshok@ximian.com>
20030
20031         * DataGrid.cs: make BeginInit/EndInit actually do what they're
20032         supposed to do - delay data binding until the EndInit call.  Also,
20033         make the table style collection's CollectionChangeAction.Refresh
20034         work properly.
20035
20036         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
20037         (with action = Refresh) when a consituent table's MappingName is
20038         changed.
20039
20040 2006-08-08  Chris Toshok  <toshok@ximian.com>
20041
20042         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
20043         Invalidate, since changing the text can change the size of the all
20044         toolbar buttons.
20045
20046 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
20047
20048         * Form.cs (AddOwnedForm): Still need to add the form to our listif
20049           we don't have it yet
20050
20051 2006-08-08  Chris Toshok  <toshok@ximian.com>
20052
20053         * PrintControllerWithStatusDialog.cs: don't .Close() the status
20054         dialog, as this causes X errors later on, since we actually
20055         destroy the window.  Instead, .Hide() it.
20056
20057 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
20058
20059         * ComboBox.cs: Added focus reflection for popup window
20060         * XplatUIX11.cs: 
20061           - Removed transient setting for non-app windows for now, not sure it
20062             was needed
20063           - Fixed logic checking if we have captions when deciding 
20064             override_redirect, WS_CAPTION is two bits and a 0 check was not
20065             sufficient
20066           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
20067             complicated
20068         * Form.cs: 
20069           - AddOwnedForm: Don't just add the form to the list, call the property
20070             to ensure the driver is informed about the ownership as well
20071           - CreateHandle: Set the TopMost status in the driver if we have an owner
20072         * XplatUI.cs: Fixed debug statement
20073
20074 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
20075         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
20076           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
20077           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
20078           TrackBarRenderer.cs: Make constructor private.
20079         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
20080         * ProfessionalColorTable.cs: Make properties virtual.
20081
20082 2006-08-06  Duncan Mak  <duncan@novell.com>
20083
20084         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
20085         is not changing.
20086
20087 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
20088         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
20089           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
20090           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
20091           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
20092           Initial import of new 2.0 classes.
20093
20094 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
20095         * Application.cs: Add 2.0 VisualStyles properties.
20096
20097 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
20098         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
20099           XplatUIX11.cs: Create property to allow access to existing private
20100           variable "themes_enabled"
20101
20102 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20103
20104         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
20105         file size, as otherwise our class libraries fail using windows. Fixes
20106         bug #78759.
20107
20108 2006-08-04  Jackson Harper  <jackson@ximian.com>
20109
20110         * Form.cs:
20111         * XplatUIX11.cs: Move the toolwindow window manager creation into
20112         the X11 driver, this way on win32 we can let windows create/handle
20113         the toolwindows.
20114
20115 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20116
20117         * PrintDialog.cs: Remove some redundant checks, add some others,
20118         clean some code, and move the focus to the text boxes when the
20119         values are incorrect.
20120
20121 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
20122
20123         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
20124
20125 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
20126
20127         * NumericUpDown.cs: Setting the Minimum and Maximum is now
20128           handled correctly. Fixes bug #79001.
20129
20130 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20131
20132         * PrintDialog.cs: The "Copies" numeric up down must have
20133         set the Minimum property to 1; only if the value is bigger
20134         than 1, activate "Collate" check box. This is the behaviour of .Net.
20135         Also modify the Document elements only if it is not null.
20136
20137 2006-08-03  Jackson Harper  <jackson@ximian.com>
20138
20139         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
20140         length. (We have a larger array then actual node count).
20141                 
20142 2006-08-03  Jackson Harper  <jackson@ximian.com>
20143
20144         * ComboBox.cs: Don't show selection by default.
20145         - The SelectAll isn't needed here, since the focus code should do
20146         that
20147         - DDL style lists to manual selection drawing, so when they
20148         get/lose focus they have to invalidate.
20149
20150 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
20151
20152         * TextBoxBase.cs: Don't always show all selections by default.
20153
20154 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
20155         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
20156           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
20157           Fixed various typos.
20158
20159 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
20160
20161         * Control.cs: Removing the controls in a ControlCollection with
20162           Clear now hides the controls as expected. Fixes bug #78804. 
20163
20164 2006-08-03  Jackson Harper  <jackson@ximian.com>
20165
20166         * Control.cs: Revert previous focus patch, it breaks reflector.
20167
20168 2006-08-03  Jackson Harper  <jackson@ximian.com>
20169
20170         * ComboBox.cs: Cleanup selection and focus with the combobox.
20171         This also eliminates some duplicated keyboard code, since now
20172         everything is handled by the main class.
20173         - Make list selection work on mouse up instead of down, to match
20174         MS.
20175
20176 2006-08-02  Jackson Harper  <jackson@ximian.com>
20177
20178         * Control.cs: Setting focus needs to go through the whole
20179         selection mechanism.
20180
20181 2006-08-02  Chris Toshok  <toshok@ximian.com>
20182
20183         * PrintPreviewDialog.cs: change MinimumSize to use
20184         base.MinimumSize so it works.
20185
20186 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
20187
20188         * TextControl.cs:
20189           - UpdateCaret: Added sanity check in case caret isn't defined yet
20190           - Line.Delete: Now updating selection and caret markers if we're
20191             transfering a node (Properly fixes #78323)
20192           - SetSelectionEnd: Added sanity check
20193         * TextBoxBase.cs: Removed broken attempt to fix #78323
20194
20195 2006-08-01  Chris Toshok  <toshok@ximian.com>
20196
20197         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
20198         Close() call is handled in Form, not here.
20199
20200 2006-08-01  Chris Toshok  <toshok@ximian.com>
20201
20202         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
20203         layout/rendering.
20204
20205         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
20206         for sizes < 100% zoom.  The code now aggressively attempts to keep
20207         from calling document.Print (), and tries not to use the scaling
20208         g.DrawImage whenever possible (it still does if you scale to >
20209         100%, since usually that involves huge images).
20210
20211         * PrintPreviewControl.cs: hook up the close button.
20212
20213 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
20214         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
20215           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
20216           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
20217           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
20218           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
20219           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
20220           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
20221           Removed [Serializable] for 2.0 Event Handlers.
20222
20223 2006-07-31  Jackson Harper  <jackson@ximian.com>
20224
20225         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
20226         * TextControl.cs: Uncomment out the body of this method.
20227
20228 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
20229
20230         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
20231           standard cursors.
20232
20233 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
20234
20235         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
20236           that embed TextBox and need selections visible even if textbox is not
20237           focused to enforce that behaviour.
20238         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
20239           selection drawing
20240
20241 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
20242
20243         * TextControl.cs:
20244           - Added new SetSelectionStart/SetSelectionEnd overloads
20245           - Fixed viewport width assignment to be accurate
20246           - Adjusted alignment line shift calculations to allow cursor on right
20247             aligned lines to be always visible at the right border (like MS)
20248         * TextBoxBase.cs:
20249           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
20250           - TextBoxBase_SizeChanged: recalculating canvas on size changes
20251           - CalculateScrollBars: Use ViewPort size instead of window size, to
20252             properly consider space occupied by the border and scrollbars 
20253             (Fixes #78661)
20254           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
20255             calculations; no longer leaves artifacts
20256           - CaretMoved: Adjusted window scrolling to match MS and fixed several
20257             calculation bugs (Still missing right/center align calculations)
20258
20259 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
20260
20261         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
20262           use of both scroll rect and clip rect, as they do the same.
20263
20264 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
20265
20266         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
20267           in the event handler (fixes #78912)
20268
20269 2006-07-31  Chris Toshok  <toshok@ximian.com>
20270
20271         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
20272         grid.ListManager.Count, since grid.ListManager might be null.
20273         This of course begs the question "why are we drawing rows for a
20274         grid with no list manager (and therefor no rows)?"  Fixes the
20275         crash in bug #78929.
20276
20277 2006-07-31  Chris Toshok  <toshok@ximian.com>
20278
20279         * RelatedPropertyManager.cs: Don't always chain up to the parent
20280         ctor.  instead, call SetDataSource if the parent's position is !=
20281         -1.  Fixes the crash in #78822.
20282
20283 2006-07-31  Chris Toshok  <toshok@ximian.com>
20284
20285         * DataGrid.cs (get_ListManager): use field instead of property
20286         accessors for datasource and datamember.
20287         (RowsCount): make internal again.
20288         (OnMouseDown): end edits before resizing columns/rows.
20289         (OnMouseUp): restart edits after resizing columns/rows.
20290
20291 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
20292
20293         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
20294           This fixes the situation where the last set cursor is displayed
20295           whenever the mouse is over scrollbars.
20296
20297 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20298
20299         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
20300         Document properties, as well as initial values.
20301
20302 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
20303
20304         * XplatUIWin32.cs (SetBorderStyle): Setting both border
20305           and ClientEdge results in a 3-pixel border, which is
20306           wrong.
20307
20308 2006-07-28  Jackson Harper  <jackson@ximian.com>
20309
20310         * TreeNodeCollection.cs: Fix the clear method.
20311         - Fix the Shrink also
20312
20313 2006-07-27  Jackson Harper  <jackson@ximian.com>
20314
20315         * TreeView.cs: Make sure the visible order is computed when we
20316         attempt to size the scrollbars (for trees that mess with the
20317         scrolling when they shouldn't.
20318         - Make sure to give the scrollbars valid values.
20319
20320 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
20321
20322         * XplatUIX11.cs: Move motion compression code to where it
20323           has less performance impact
20324
20325 2006-07-26  Jackson Harper  <jackson@ximian.com>
20326
20327         * UpDownBase.cs: When the control is selected make the child
20328         controls non selectable, so that a click on them won't do a
20329         focus/unfocus cycle.
20330         - Don't give focus to the text box when the spinner is selected.
20331         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
20332
20333 2006-07-26  Chris Toshok  <toshok@ximian.com>
20334
20335         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
20336         satisfied with this solution.  If the bitmaps are small, we should
20337         just cache them in the PrintPreviewDialog and draw them here.
20338         Also, the layout is broken for the 2-up and 3-up cases.
20339
20340         * Theme.cs: add PrintPReviewControlPaint.
20341
20342         * PrintPreviewDialog.cs: first pass implementation.
20343
20344         * PrintPreviewControl.cs: first pass implementation.  No
20345         scrollbars yet.
20346
20347         * PrintDialog.cs: only validate fields if that particular portion
20348         of the UI is enabled.  Also, set the document's controller to a
20349         PrintControllerWithStatusDialog wrapping the document's print
20350         controller.
20351
20352         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
20353         bring up a SaveFileDialog (i hope we don't want to match the
20354         behavior of the crappy windows file entry) and set the
20355         PrinterSettings.PrintFileName accordingly.
20356
20357 2006-07-26  Jackson Harper  <jackson@ximian.com>
20358
20359         * ContainerControl.cs: Add a field that disables auto selecting
20360         the next control in a container when the container is activated.
20361         * UpDownBase.cs: Don't select the text box when the up down is
20362         selected.
20363
20364 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
20365
20366         * XEventQueue.cs: Added methods for peeking (used for compression
20367           of successive events)
20368         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
20369           mouse move events (fixes #78732)
20370
20371 2006-07-25  Jackson Harper  <jackson@ximian.com>
20372
20373         * UpDownBase.cs: Use an internal class for the textbox so that we
20374         can control focus.  the updown control should always have focus,
20375         if either the text area or the buttons are clicked.
20376         - Send the key messages to the textbox, since it never actually
20377         has focus
20378         - Activate and decativate the textbox caret.
20379
20380 2006-07-24  Jackson Harper  <jackson@ximian.com>
20381
20382         * Control.cs: Use the directed select when selecting a control,
20383         this way the container controls override will get called and the
20384         whole ActiveControl chain will get triggered.  TODO: probably need
20385         to make sure this gets done everywhere instead of the old
20386         Select(Control).
20387         * ContainerControl.cs: Implement the directed Select method to
20388         find and activate the correct child control.    
20389         
20390 2006-07-22  Mike Kestner  <mkestner@novell.com>
20391
20392         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
20393         menu handling code so that clicks without a grab work too.
20394         [Fixes #78914]
20395
20396 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
20397
20398         * FileDialog.cs: Enable the BackButton when dirstack has one element.
20399           Added some small optimizations.
20400
20401 2006-07-21  Matt Hargett  <matt@use.net>
20402
20403         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
20404
20405 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
20406
20407         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
20408           tests pass and match MS in some strange border cases.
20409
20410 2006-07-21  Chris Toshok  <toshok@ximian.com>
20411
20412         * ThemeWin32Classic.cs: handle drawing of the relation links and
20413         parent row buttons.
20414
20415         * Theme.cs: change args to DataGridPaintParentRow.
20416
20417         * DataGrid.cs: Don't use controls for the relation links and
20418         parent buttons, so we have to handle all their interactions in
20419         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
20420         when we're navigating through child tables, so we can reinstate
20421         selection, expanded state, current cell, etc.
20422
20423 2006-07-20  Chris Toshok  <toshok@ximian.com>
20424
20425         * ToolBar.cs: When we redraw a button, for whatever reason,
20426         there's no reason to redraw the entire toolbar.  Also, don't call
20427         Control.Refresh from within Redraw, as it's much heavier than
20428         Invalidate (which is really what we want).
20429
20430 2006-07-20  Chris Toshok  <toshok@ximian.com>
20431
20432         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
20433         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
20434         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
20435         traces from within a debug IBindingList datasource
20436         (in mono/winforms/datagrid) for *days*, I've finally gotten things
20437         to work in a similar fashion.
20438
20439 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20440
20441         * ListBox.cs: Don't call Sort () when setting 
20442         the Sorted property to false (avoid an unnecessary sort).
20443
20444 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20445
20446         * ListControl.cs: DataSource should throw an ArgumentException
20447         instead of a normal exception when the argument is not of the 
20448         correct type.
20449
20450 2006-07-20  Mike Kestner  <mkestner@novell.com>
20451
20452         * Control.cs: add InternalPreProcessMessage to allow us to steal
20453         key events before MWF gets its paws on them.  Adapted from a
20454         suggestion by eno.
20455         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
20456         up/down/left/right navigation. Override the new internal control
20457         method to steal the events since they never make it to WndProc.
20458         * ToolBarButton.cs: don't worry about pushed when setting hilight
20459         since the drawing code prefers pushed to hilight. Invalidate on 
20460         Hilight changes. Fixes #78547 and #78525.
20461
20462 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
20463
20464         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
20465           the canvas size. Fixes #78868
20466
20467 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
20468
20469         * Splitter.cs: Track requested split position until first layout
20470           is performed. Fixes #78871
20471
20472 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
20473
20474         * Application.cs: Removed code that forces 1.x for the version
20475           number if the version started with 0. Not sure why that code was
20476           there and I couldn't find any bugs that indicated we needed it.
20477           Fixes #78869
20478
20479 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
20480
20481         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
20482           ResetDefaults(), just write some output to the console until it's
20483           implemented. Fixes bug #78907 for now. Eliminated two warnings.
20484
20485 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
20486
20487         * PropertyGridView.cs: set StartPosition of drop down forms
20488         so they appear in correct initial spot.  Fixes #78190.
20489
20490 2006-07-19  Mike Kestner  <mkestner@novell.com>
20491
20492         * ThemeWin32Classic.cs: use parent background color when drawing
20493         flat toolbars.  Restructure the conditionals to make sure non-flat
20494         non-Divider toolbars are filled too.  Fixes #78837.
20495
20496 2006-07-19  Mike Kestner  <mkestner@novell.com>
20497
20498         * ListBox.cs: Sort on collection changes even if the handle
20499         isn't created yet.  Fixes #78813.
20500
20501 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20502
20503         * ListControl.cs: DisplayMember should never be null,
20504         and now we assign String.Empty when null is passed to it (this
20505         is the .Net way).
20506
20507 2006-07-17  Mike Kestner  <mkestner@novell.com>
20508
20509         * ListViewItem.cs: restructure Font and subitem Font handling 
20510         to hold a specific font and refer back to owner on null.
20511         Fixes #78761.
20512
20513 2006-07-17  Mike Kestner  <mkestner@novell.com>
20514
20515         * ToolBar.cs: bandaid for side-effect of previous patch which was
20516         discarding explicit heights for non-AutoSize toolbars.  Need to
20517         extend my format tester to deal with AutoSize=false. Fixes #78864.
20518
20519 2006-07-15  Jackson Harper  <jackson@ximian.com>
20520
20521         * LabelEditTextBox.cs:
20522         * TreeView.cs: Use a new LabelEdit class for node editing, this
20523         class automatically 'closes' itself when it gets the enter key or
20524         loses focus.
20525         - Use the client rectangle when setting the trees scrollbars, so
20526         border style is taken into account.
20527         
20528 2006-07-14  Jackson Harper  <jackson@ximian.com>
20529
20530         * TreeNode.cs:
20531         * TreeView.cs: Make the editing work similar to MSs, firing the
20532         events correctly and ending edits correctly.
20533
20534 2006-07-14  Mike Kestner  <mkestner@novell.com>
20535
20536         * ToolBarButton.cs:
20537         * ToolBar.cs: layout restructuring and redraw enhancements to support
20538         formatting changes gracefully, like setting TextAlign, ImageList, 
20539         ButtonSize, and Appearance.  Handles explicit button sizing quirks
20540         of the MS controls.  Things like flat toolbars ignoring button size
20541         but becoming constant sized at the largest button's size.  Normal
20542         toolbars with an image set cannot be shrunk smaller than the image,
20543         but text can be clipped/ignored.
20544         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
20545         is zero.  Seems like DrawString should be smart enough to not put
20546         anything on screen though. Also trim labels and ellipsize at the char
20547         boundary, not word.
20548         Fixes #78711 and #78483.
20549
20550 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
20551
20552         * FolderBrowserDialog.cs: Disable "New Folder" button and
20553           "New Folder" contextmenu menuitem if a folder like "My Computer"
20554           is selected.
20555
20556 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
20557
20558         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
20559         * FolderBrowserDialog.cs:
20560           - Use MWFConfig to store and read size and position settings
20561           - Added code to create a new folder (button or context menu).
20562             Use TreeView labeledit to change the name of the new folder.
20563
20564 2006-07-14  Jackson Harper  <jackson@ximian.com>
20565
20566         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
20567         when the tree is scrolled we end editing.
20568
20569 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
20570
20571         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
20572           Down arrows
20573
20574 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
20575
20576         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
20577         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
20578         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
20579         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
20580         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
20581         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
20582         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
20583         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
20584         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
20585         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
20586         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
20587         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
20588         ListViewItemSelectionChangedEventHandler.cs,
20589         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
20590         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
20591         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
20592         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
20593         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
20594         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
20595         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
20596         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
20597         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
20598         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
20599         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
20600         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
20601         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
20602         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
20603         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
20604         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
20605         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
20606         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
20607         WebBrowserNavigatingEventHandler.cs, 
20608         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
20609
20610 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
20611
20612         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
20613         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
20614         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
20615         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
20616         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
20617         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
20618         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
20619         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
20620         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
20621         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
20622         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
20623         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
20624         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
20625         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
20626         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
20627         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
20628         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
20629         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
20630         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
20631         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
20632         ListViewItemStates.cs, MaskFormat.cs: Added
20633
20634 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
20635
20636         * PropertyGridView.cs: Fix keyboard navigation of drop down.
20637         Patch from eno for bug 78558.
20638         
20639 2006-07-13  Jackson Harper  <jackson@ximian.com>
20640
20641         * TreeView.cs: When an edit is finished make sure that the
20642         selected node is visible.
20643         - When setting the top/bottom use the scrollbars is_visible, so
20644         everything will be set correctly even if the tree isn't visible
20645         yet.
20646
20647 2006-07-13  Jackson Harper  <jackson@ximian.com>
20648
20649         * ComboBox.cs: Revert the item->index part of my previous patch.
20650         * TreeView.cs: Use LostFocus instead of Leave for detecting when
20651         the edit box has lost focus (duh).
20652         - Just make the edit box not visible when we get return, that will
20653         take the focus, which will call EndEdit
20654         * TreeNode.cs When we start editing, notify the treeview.
20655
20656 2006-07-12  Jackson Harper  <jackson@ximian.com>
20657
20658         * ComboBox.cs: Clear out old items before setting the item list.
20659         This prevents databound controls from having their items added
20660         twice.
20661         - Switch the combobox to use indices whereever possible instead of
20662         using Item's.  This allows usto navigate through lists that have
20663         more then one item with the same string value (ie a, b, b, a).
20664         - Scroll the listboxes scrollbar when a non visible item is
20665         highlighted
20666         - Allow keypress to cycle through all the possible values. For
20667         example if you have b1, b2, b3 and hold down the B key all the
20668         values will be cycled through.
20669         
20670 2006-07-12  Jackson Harper  <jackson@ximian.com>
20671
20672         * TextBoxBase.cs:
20673         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
20674         this using the internal methods.
20675         * Control.cs: Add OnGotFocusInternal.  A new method that allows
20676         controls to "override" OnGotFocus and change focus behavior if
20677         needed.
20678         - Same thing for LostFocus
20679         * ComboBox.cs: Pass off focus to the text control properly.
20680
20681 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
20682
20683         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
20684         * FolderBrowserDialog.cs: Almost a complete rewrite.
20685           - Better support for Environment.Specialfolders
20686           - Added support for MWFVFS
20687           - Made setting SelectedPath work
20688
20689 2006-07-12  Jackson Harper  <jackson@ximian.com>
20690
20691         * Control.cs: Optimze getting all the controls.
20692
20693 2006-07-11  Jackson Harper  <jackson@ximian.com>
20694
20695         * ContainerControl.cs: Override SETFOCUS in the container control,
20696         so that it is not selected on mouse click.
20697
20698 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
20699
20700         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
20701           Hopefully we will have a better way once all of focus is complete.
20702
20703 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
20704
20705         * ThemeWin32Classic.cs: Commented out some debug code and fixed
20706           a compile error with csc.
20707
20708 2006-07-11  Jackson Harper  <jackson@ximian.com>
20709
20710         * Control.cs: When hiding a control only select the next control
20711         if the current control was focused.
20712         - Don't handle enter/leave when setting/killing focus, this is
20713         done by the container control.
20714         - Remove is_selected, it's not needed anymore.
20715         - Add utility methods for selecting a child control, and for
20716         firing the Enter/Leave events.
20717         * ContainerControl.cs: When a control is activated fire the
20718         enter/leave events.
20719         - Don't wrap when processing the tab key, so that focus can be
20720         moved outside of the container.
20721         - Use the correct active control
20722
20723 2006-07-11  Jackson Harper  <jackson@ximian.com>
20724
20725         * ComboBox.cs: Remove some debug code that was blinding me.
20726         * UpDownBase.cs: These controls actually aren't implicit, they are
20727         visible to the user.
20728
20729 2006-07-10  Chris Toshok  <toshok@ximian.com>
20730
20731         * DataGrid.cs: move back to the is_adding boolean field.  god i
20732         hate this is_editing/is_adding/is_changing stuff.
20733
20734 2006-07-10  Chris Toshok  <toshok@ximian.com>
20735
20736         * DataGridTableStyle.cs: just check if the property type is bool.
20737         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
20738         Don't use CanRenderType.
20739
20740         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
20741         if our text == NullText.  Remove CanRenderType.
20742
20743         * DataGridBoolColumn.cs: nuke CanRenderType.
20744
20745         * DataGrid.cs: reenable some code to end the current edit inside
20746         of set_CurrentCell.  This fixes the other 1.1.16 regression.
20747         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
20748         Also, remove the visible_row_count arg from CalcRowHeaders, since
20749         we don't need to worry about the actual height of the area.
20750
20751 2006-07-10  Chris Toshok  <toshok@ximian.com>
20752
20753         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
20754         mode, just return.
20755
20756         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
20757         the real sense of the IsInEditOrNavigateMode property (true =
20758         navigate, false = edit).  Also, update OnKeyPress to reflect this.
20759
20760         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
20761         column style exists, we still need to set its property descriptor
20762         to match up with our list manager.
20763
20764 2006-07-10  Chris Toshok  <toshok@ximian.com>
20765
20766         * ThemeWin32Classic.cs: implement the new row/header painting
20767         approach.  The parent row painting will likely go away and
20768         replaced with label controls, but the rest seems to work ok (and
20769         efficiently).
20770
20771         * Theme.cs: change the way we draw datagrid rows.  we don't draw
20772         the row headers as a block now.  Instead we draw them in the
20773         normal draw-row loop.  Add some calls for drawing parent rows and
20774         relation rows.
20775
20776         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
20777         a default table style.  Set the defaults from ThemeEngine.Current,
20778         not SystemColors.  Fix lots of misc issues with property setters.
20779
20780         * DataGrid.cs: move loads of style information out of this class
20781         as it's being duplicated with DataGridTableStyle.  keep track of a
20782         special DataGridTableStyle for the properties we used to mirror
20783         here.  Switch all the style properties to access this table style
20784         instead of instance fields of this class.  Also add a internal
20785         class to represent parent rows (more needs to be stored here, like
20786         the selection state from the parent table, as well as the
20787         expansion state.)  Also, for datasources with relations, do the
20788         right thing for collapse/expand, and add support for the
20789         navigation/parent row buttons.
20790
20791         Lastly, fix the crash in the 1.1.16 build.
20792
20793         * GridTableStylesCollection.cs: make the explicit interface
20794         implementations call the class's methods as opposed to duplicating
20795         them.
20796
20797         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
20798         0 so the text doesn't jump around when we move the cursor.
20799
20800 2006-07-10  Jackson Harper  <jackson@ximian.com>
20801
20802         * TextBoxBase.cs:
20803         * ListBox.cs: Match MS's ToString (this makes debugging focus
20804         stuff infinitely easier).
20805
20806 2006-07-10  Jackson Harper  <jackson@ximian.com>
20807
20808         * Control.cs (SelectNextControl): When checking the control's
20809         parent use this instead of ctrl.parent so that null can be passed
20810         to SelectNextControl. (I have unit tests for this).
20811         - Remove unused var.
20812
20813 2006-07-10  Chris Toshok  <toshok@ximian.com>
20814
20815         * CurrencyManager.cs: correct one regression, the removal of the
20816         finalType field.  Also, add a MonoTODO on CanAddRows, implement
20817         Refresh() correctly, and fix some event emission in
20818         ListChangedHandler.
20819
20820 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
20821
20822         * FileDialog.cs: Don't use brackets for new folders if they exist
20823           under *nix. Instead use -(number of existing folders +1).
20824
20825 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
20826
20827         * FileDialog.cs:
20828           - Fixed really nasty bug #78771
20829           - Don't block the whole GUI when reading directories with a lot of
20830             entries. Use an other thread instead and call BeginInvoke to
20831             update the ListView in MWFFileView
20832
20833 2006-07-07  Chris Toshok  <toshok@ximian.com>
20834
20835         * Control.cs (Dispose): release any Capture when disposing.
20836
20837 2006-07-07  Chris Toshok  <toshok@ximian.com>
20838
20839         * LinkLabel.cs (Select): if we chain up to the parent, set
20840         focused_index to -1 so we'll search for the first available link
20841         the next time the user tabs into us.  Also, if the direction is
20842         backward and focused_index == -1, start the search from the last
20843         element.
20844
20845 2006-07-07  Chris Toshok  <toshok@ximian.com>
20846
20847         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
20848         is beyond the end of the text, don't do anything.
20849         (CreateLinkPieces): set our ControlStyles.Selectable based on
20850         whether or not we have any links.
20851         (Link.Invalidate): use a loop instead of foreach.
20852         (Link.set_Start): null out owner.sorted_links so it'll be
20853         recreated by CreateLinkPieces.
20854
20855 2006-07-06  Chris Toshok  <toshok@ximian.com>
20856
20857         * LinkLabel.cs: revert the SetStyle change.
20858
20859 2006-07-06  Chris Toshok  <toshok@ximian.com>
20860
20861         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
20862         (OnEnableChanged): s/Refresh/Invalidate
20863         (OnGotFocus): if we have a focused index already, refocus it (so
20864         if we mouse out/in to the window it'll focus the right link).
20865         (OnKeyDown): move the tab handling out of here.
20866         (OnLostFocus): don't set focused_index to -1, so we can refocus it
20867         when we lose focus.
20868         (OnMouseDown): don't Capture here - Control handles it.  Also,
20869         focus the active link.
20870         (OnMouseUp): don't deal with Capture.
20871         (OnPaintBackgroundInternal): remove.
20872         (OnTextAlignChanged): CreateLinkPieces before calling the
20873         superclass's method.
20874         (OnTextChanged): call CreateLinkPieces before calling superclass's
20875         method.
20876         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
20877         move around.
20878         (Select): implement this, moving the selection between different
20879         links, and call parent.SelectNextControl if we don't have another
20880         link to focus in the given direction.
20881         (CreateLinkPieces): call Invalidate instead of Refresh.
20882         
20883 2006-07-06  Chris Toshok  <toshok@ximian.com>
20884
20885         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
20886         new LinkLabel internals.
20887
20888         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
20889         over pieces looking for active/focused/etc links.  also, deal with
20890         runs of text (and links) with embedded \n's in them, and use
20891         MeasureCharacterRanges instead of MeasureString to figure out the
20892         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
20893         two-step.
20894
20895 2006-07-04  Jackson Harper  <jackson@ximian.com>
20896
20897         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
20898         XKB or key auto repeat, do it manually.  Without key auto repeat,
20899         when a key is held down we get key press, key release, key press,
20900         key release, ... with auto repeat we get key press, key press, key
20901         press ..., and then a release when the key is actually released.
20902
20903 2006-07-03  Jackson Harper  <jackson@ximian.com>
20904
20905         * TabControl.cs:
20906         * ThemeWin32Classic.cs: Tabs do not obey normal background color
20907         rules, they are always control color regardless of the background
20908         color.
20909
20910 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
20911
20912         * FileDialog.cs: Added internal class MWFConfig.
20913           Removed Registry support and replaced it with support for the new
20914           MWFConfig class. See MWFConfig comments for more information.
20915
20916 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
20917
20918         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
20919           rectangle. Added some patches from eno from bug #78490 and fixed
20920           the arrow position for small up and down CPDrawScrollButtons.
20921
20922 2006-06-30  Jackson Harper  <jackson@ximian.com>
20923
20924         * InternalWindowManager.cs: Remove some debug code.
20925         * Form.cs: When an MdiParent is set to null, the window is
20926         "detatched" and becomes a normal window.
20927         * MdiClient.cs: Don't bring the new child form to the front until
20928         it is activated (setting it as active does this), this makes the
20929         previously active forms titlebar get redrawn as inactive.
20930
20931 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
20932
20933         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
20934           with later controls
20935
20936 2006-06-29  Mike Kestner  <mkestner@novell.com>
20937
20938         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
20939         arrow in keynav state.  Fixes #78682.
20940
20941 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
20942
20943         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
20944           order (fixes #78393)
20945
20946 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
20947
20948         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
20949           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
20950           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
20951           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
20952           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
20953           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
20954           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
20955           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
20956           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
20957           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
20958           enumerations (FlagsAttribute, SerializableAttribute, added/removed
20959           values)
20960
20961 2006-06-28  Mike Kestner  <mkestner@novell.com>
20962
20963         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
20964
20965 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
20966
20967         * PropertyGrid.cs,
20968           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
20969           item lines from other area (It also makes BackColor consistent and
20970           compatible with .NET). Fixed bug #78564.
20971
20972 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
20973
20974         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
20975         Patch from Eno for #78555.
20976
20977 2006-06-27  Chris Toshok  <toshok@ximian.com>
20978
20979         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
20980
20981         * DataGridColumnStyle.cs: same.
20982
20983         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
20984         
20985         * DataGridDrawingLogic.cs: nuke.
20986
20987 2006-06-27  Chris Toshok  <toshok@ximian.com>
20988
20989         * DataGridTableStyle.cs: clean up the constructors, and build the
20990         list of child relations for this table.  I have no idea if this is
20991         where we should be doing it (it probably isn't), but since we're
20992         already iterating over the properties..
20993
20994         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
20995         struct and array for keeping track of row information, similar to
20996         what's shown in a hack on
20997         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
20998
20999         * Theme.cs: be consistent about the naming of DataGrid methods,
21000         prefering ColumnWidths and RowHeights over columnsWidths and
21001         RowsHeights.
21002
21003         * ThemeWin32Classic.cs: same, and also add support for variable
21004         sized rows (and the +/- expansion icons for related rows).
21005
21006 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
21007
21008         * TextBoxBase.cs: Applied Eno's patch from #78660
21009
21010 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
21011
21012         * Form.cs (ScaleCore): We don't want to scale our form if it's
21013           state is minimized or maximized, but we still need to scale our
21014           child windows. Also, added try/finally block to ensure layout
21015           gets reset (Fixes #78697)
21016
21017 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
21018
21019         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
21020
21021 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
21022
21023         * Form.cs: Fixed c+p error and added check to resize form if minimum
21024           size is bigger than current size (Fixes #78709)
21025
21026 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
21027
21028         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
21029
21030 2006-06-26  Mike Kestner  <mkestner@novell.com>
21031
21032         * ComboBox.cs: only do Keypress handling in the combo when there  
21033         are items in the collection. Fixes #78710.
21034
21035 2006-06-26  Chris Toshok  <toshok@ximian.com>
21036
21037         * Binding.cs: make this work bi-directionally.  also, clear up
21038         other mixups between Push/Pull Data (e.g. we're supposed to pull
21039         data when validating).
21040
21041         * BindingManagerBase.cs: trim some fully qualified collection
21042         types.
21043
21044         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
21045
21046 2006-06-23  Chris Toshok  <toshok@ximian.com>
21047
21048         * PropertyManager.cs: It appears (according to the unit tests)
21049         that PropertyManager doesn't use
21050         PropertyDescriptor.AddValueChanged to track propery value changes
21051         in its datasource, but uses the same scheme as Binding, where it
21052         looks for a <Property>Changed event and binds to it.
21053
21054         Also, according to the docs, IsSuspended always returns false for
21055         a property manager with a non-null datasource.
21056
21057 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
21058
21059         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
21060           need to update the actual DialogResult. (Fixes #78613)
21061
21062 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
21063
21064         * Form.cs (ShowDialog): Release any captures before running the
21065           new message pump (fixes #78680)
21066
21067 2006-06-22  Mike Kestner  <mkestner@novell.com>
21068
21069         * ListView.cs: Layout column widths properly in details mode even 
21070         if HeaderStyle.None is set.  Fixes #78691.
21071
21072 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
21073
21074         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
21075
21076 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
21077
21078         * Control.cs (ContainsFocus): Using new driver method to get focused
21079           window, instead of trying to use internal tracking var, which can
21080           recursion issues (Fixes #78685)
21081         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
21082           XplatUIWin32.cs: Added GetFocus method to return focused window
21083
21084 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21085
21086         * ColorDialog.cs: when the mouse button is pressed inside the color
21087         matrix, don't let the cursor move out of it until the button is
21088         released, which is the behavior on windows. Changed 'colours' by
21089         'colors' to use the same word consistently.
21090
21091 2006-06-21  Chris Toshok  <toshok@ximian.com>
21092
21093         * DataGrid.cs: add in some basic navigation stuff (navigating to a
21094         child relation and back, using a stack).  Also, remove
21095         GetDataSource and the code that calls it - it's not needed.  Also,
21096         track CurrencyManager.ListName's removal.
21097
21098 2006-06-21  Chris Toshok  <toshok@ximian.com>
21099
21100         * CurrencyManager.cs: push some of the original type checking from
21101         BindingContext.CreateBindingManager to here, and remove some of
21102         the finalType stuff.  Need more tests to make sure I've got the
21103         ListName part right, and we might need more in SetDataSource.
21104
21105         * PropertyManager.cs: add a ctor that takes just the datasource,
21106         and no property name.  Make SetDataSource work with a null
21107         property_name, and make Current return the data_source if the
21108         property descriptor is null.  this makes 'string foo = "hi";
21109         BindingContext[foo].Current' return "hi" as it should.
21110
21111         * RelatedCurrencyManager.cs: make this code more generic - there's
21112         no reason the parent manager has to be CurrencyManager, and
21113         there's no reason to pass the DataRelation.  It suffices to use a
21114         BindingManagerBase and PropetyDescriptor.
21115
21116         * RelatedPropertyManager.cs: make a similar change here.
21117         
21118         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
21119         flower I knew it could be.
21120
21121 2006-06-20  Chris Toshok  <toshok@ximian.com>
21122
21123         * PropertyManager.cs: the PropertyChangedHandler is invoked when
21124         data in the source has changed and we need to update the control,
21125         so s/PullData/PushData.
21126
21127         * CurrencyManager.cs: Refresh is meant to update the control from
21128         data in the datasource.  So, s/PullData/PushData.
21129
21130         * BindingContext.cs: add more ugliness (we weren't handling the
21131         case where data_source = DataTable and data_member = column_name).
21132
21133         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
21134         from the perspective of the datasource.  PullData pulls from the
21135         control, PushData pushes to the control.
21136
21137 2006-06-20  Chris Toshok  <toshok@ximian.com>
21138
21139         * BindingContext.cs: rewrite the CreateBindingManager code to
21140         handle navigation paths more or less properly.  This could
21141         definitely stand some more work, in particular to push the
21142         recursion up to the toplevel.  But that relies on fixes in other
21143         places (System.Data comes to mind).
21144
21145         Also, move to a flat hashtable (and encode the twolevel nature of
21146         the dictionary into the hash key).  This lets us implement the
21147         IEnumerable.GetEnumerator method.
21148
21149         * RelatedCurrencyManager.cs: new class.  Update our view based on
21150         our relation and our parent CurrencyManager's position.
21151
21152         * CurrencyManager.cs: split out some logic from the ctor into
21153         SetView, so it can be called from the new RelatedCurrencyManager
21154         subclass.
21155
21156         * RelatedPropertyManager.cs: new class.  Update our datasource
21157         based on the position of our parent CurrencyManager.
21158
21159         * PropertyManager.cs: split out some logic from the ctor into
21160         SetDataSource, so it can be called from the new RelatedDataSource
21161         subclass.  Also, make the Current getter return the value
21162         of the PropertyDescriptor, not the data_source.
21163
21164         * Binding.cs: no need to duplicate the string splitting code here.
21165
21166 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
21167
21168         * Control.cs:
21169           - set_Enabled: OnEnabledChanged is not called if the inherited state 
21170             of the control is not altered, even though  we might be changing the
21171             internal state of the control (#78458)
21172           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
21173             OnEnabledChanged, to allow easy altering of any child window state
21174           - OnEnabledChanged: Added code to enable/disable driver window state
21175           - OnParentEnabledChanged: Instead of firing the event, call 
21176             OnEnabledChanged, which will fire the event and also a) set driver
21177             window state and pass the enabled state to any grandchildren (#78458)
21178
21179 2006-06-19  Jackson Harper  <jackson@ximian.com>
21180
21181         * InternalWindowManager.cs: We don't set the cursor explicitly
21182         thats done via the response to NCHITTESTs.
21183         - Don't need to adjust for titlebar heights anymore, the
21184         coordinates are coming in the correct coordinates now (see peters
21185         last patch).
21186
21187
21188 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
21189
21190         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
21191           being translated relative to whole window, instead of client window.
21192           That caused broken offsets on mouseclick (and caused gas for our
21193           InternalWindowManager)
21194
21195 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
21196
21197         * TextControl.cs:
21198           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
21199           - Undo(): Added replay of cursor move on DeleteChars action; added
21200             calling Undo() again if a recorded cursor move is invalid (to
21201             ensure that some action is performed on Undo)
21202         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
21203
21204 2006-06-16  Jackson Harper  <jackson@ximian.com>
21205
21206         * MdiClient.cs: Instead of just sizing maximized windows when
21207         there is a resize we also have to adjust the Y of minimized
21208         windows, so they stay pinned to the bottom of the mdi container.
21209         - Eliminate separate tracking of the active control, we can just
21210         get this from the controls collection.
21211         - Paint the decorations for the newly activated titlebar so we get
21212         a pretty blue bar.
21213         * InternalWindowManager.cs:
21214         * ThemeWin32Classic.cs: Minimized windows get all three buttons
21215         even if they are a tool window.
21216         
21217 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
21218
21219         * TextControl.cs (Undo): Handle non-existent cursor locations in the
21220           undo buffer, these can happen when text was deleted and the cursor
21221           was recorded first. Since we will also have a recorded cursor
21222           after the delete this is not an issue. (Fixes #78651)
21223
21224 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
21225
21226         * AccessibleObject.cs: Remove dependence on Control.is_selected;
21227           instead properly track control states internally (allows us to
21228           remove is_selected from Control)
21229
21230 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21231
21232         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
21233         whose width is not a multiple of 8.
21234
21235 2006-06-13  Jackson Harper  <jackson@ximian.com>
21236
21237         * MdiClient.cs:  Only maximize the next child if the current one
21238         is maximized.
21239
21240 2006-06-13  Chris Toshok  <toshok@ximian.com>
21241
21242         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
21243         modified.  Also, guard against grid or grid_drawing being null in
21244         Invalidate.
21245
21246         * DataGrid.cs: Reformat tons of getters/setters.  In the
21247         DataMember setter, just call SetNewDataSource instead of
21248         duplicating some of its functionality.  In SetNewDataSource, don't
21249         check ListManager for null, since the property getter creates the
21250         object if needed.
21251
21252         * DataGridTableStyle.cs: don't set TableStyle or call
21253         SetDataGridInternal on the column here, it's done in
21254         GridColumnStylesCollection.Add.
21255
21256         * GridColumnStylesCollection.cs: fix all the explicit interface
21257         implementations to just call our methods.  Nuke AddInternal() and
21258         move the body of it to Add().  Also, add a call to
21259         column.SetDataGridInternal to Add().
21260
21261         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
21262         base()+duplicate code.  Also, use the Format property instead of
21263         format to generate an Invalidate ala MS.  Lastly, create the
21264         textbox here, unconditionally.
21265         (set_Format): call Invalidate.
21266         (get_TextBox): no need to call EnsureTextBox.
21267         (Commit): remove the message box.
21268         (Edit) remove the call to EnsureTextBox.
21269         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
21270         (EnterNullValue): no need to check textbox for null.
21271         (HideEditBox): no need to check textbox for null.
21272         (SetDataGridInColumn): add the textbox to the grid's controls.
21273         (EnsureTextBox): nuke.
21274         
21275 2006-06-13  Jackson Harper  <jackson@ximian.com>
21276
21277         * MdiWindowManager.cs: Hook up to the maximized menus paint event
21278         and redraw the buttons when needed. Unhook when the window is
21279         unmaximized.
21280         * MainMenu.cs: Add an internal Paint event, the mdi window manager
21281         needs this so that it can redraw its buttons when the menu is
21282         repainted.
21283         * InternalWindowManager.cs:
21284         * Form.cs: The method order has changed for DrawMaximizedButtons,
21285         so that it can be a PaintEventHandler.
21286         
21287 2006-06-13  Jackson Harper  <jackson@ximian.com>
21288
21289         * MdiClient.cs: When we close a maximized mdi window, the next mdi
21290         window is activated and maximized, even if it wasn't before.
21291         - When  a new window is activated repaint the decorations of the
21292         old one, so that it no longer has the Active "look" (the blue
21293         titlebar).
21294         * InternalWindowManager.cs: Open up CreateButtons to base classes
21295         so they can recreate the buttons on state changes.
21296         - If a window is maximized give it all three buttons
21297         * MdiWindowManager.cs: Create the titlebar buttons when the state
21298         is changed, this is needed because a toolwindow will not have all
21299         three buttons until it is maximized.
21300
21301 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
21302
21303         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
21304           Fixed bug #78609.
21305
21306 2006-06-12  Jackson Harper  <jackson@ximian.com>
21307
21308         * KeysConverter.cs: Make sure we handle the Ctrl special case
21309         if its the only key.
21310         
21311 2006-06-12  Jackson Harper  <jackson@ximian.com>
21312
21313         * Theme.cs: Add a method to get the size of a managed window
21314         toolbar button.
21315         * InternalWindowManager.cs: Remove the ButtonSize property, this
21316         should be retrieved from the theme.
21317         * MdiWindowManager.cs: Get the button size from the theme
21318         * ThemeWin32Classic.cs: Make the method to get the managed window
21319         titlebar button size public.
21320         - Handle the different button sizes of maximized toolwindows
21321         (should match any maximized window).
21322         - Get the titlebar height from the theme, not the WM (which gets
21323         it from the theme).
21324
21325 2006-06-12  Jackson Harper  <jackson@ximian.com>
21326
21327         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
21328         event down to the mdi window manager.
21329         - Expose some extra stuff to base classes
21330         - Make sure to end the Capture on an NC Mouse up, so that we can
21331         get double clicks properly, and the sizing doens't stick.
21332         - When doing PointToClient contain it in the workable desktop
21333         area, this prevents windows from changing size when the cursor is
21334         pulled outside of the working area while sizing.
21335         * MdiWindowManager.cs: When we get a double click maximize the
21336         window.
21337         - Reset the cursor after handling mode changes.
21338
21339 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
21340
21341         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
21342           current desktop, instead of just assuming a 0, 0 origin. This
21343           is needed for our internal window manager, to know the top
21344           margin of the desktop
21345
21346 2006-06-12  Chris Toshok  <toshok@ximian.com>
21347
21348         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
21349         we need this to get rid of the selected background in the bool
21350         column.
21351         (CancelEditing): move the ConcedeFocus call to above the Abort
21352         call.  Also, set is_changing to false and invalidate the row
21353         header if we were changing before.
21354         (ProcessKeyPreviewInternal): remove, since noone outside this
21355         class calls it anymore.  Roll the code into ProcessKeyPreview.
21356         (EndEdit): remove the internal version.
21357         (InvalidateCurrentRowHeader): make private.
21358
21359         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
21360         Keys.Escape handling (and with it the last call to
21361         DataGrid.EndEdit from outside the class.)
21362
21363
21364 2006-06-12  Chris Toshok  <toshok@ximian.com>
21365
21366         * DataGridTextBox.cs (.ctor): isedit defaults to false.
21367         (OnKeyPress): set isedit to true.
21368         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
21369         already handled by the grid.
21370
21371         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
21372         right.  ugh.
21373         (set_DataSource): SetDataSource always returns true, so stop
21374         putting it in an if statement.
21375         (EndEdit): get rid of some {}'s
21376         (ProcessGridKey): return true in case Keys.Escape.
21377         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
21378         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
21379         PositionChanged, stopped connecting to CurrentChanged.
21380         (GetDataSource): simplify this a bunch.
21381         (SetDataSource): change return type from bool to void.
21382         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
21383         to this, and make sure we don't set ListManager.Position inside
21384         set_CurrentCell.
21385         (OnListManagerItemChanged): if we're passed an actual index,
21386         redraw that row.
21387
21388         * CurrencyManager.cs (set_Position): don't call PullData here.
21389
21390 2006-06-09  Jackson Harper  <jackson@ximian.com>
21391
21392         * TreeNode.cs:  Recalculate the visible order before doing the
21393         Expand/Collapse Below calls, because those calls generate an
21394         expose.
21395         - Reduce calls to the TreeView property, which is mildly expensive
21396         by using a local var.
21397         * Form.cs: Layout the MDI child windows when creating the parent
21398         form.
21399         - Don't use the internal constructor anymore
21400         * MdiClient.cs: use the parent form width/height (if available)
21401         when laying out the child windows, we do this because the
21402         mdiclient isn't docked yet when the initial layout is done.
21403         - Don't need an internal constructor anymore.
21404
21405 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21406
21407         * FileDialog.cs: handle access errors when trying to create a folder
21408         or changing to a directory. No need to initialize out parameters.
21409
21410 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
21411
21412         * FileDialog.cs: Append a number when creating a new folder if the
21413           folder already exists (use parenthesis instead of square brackets)
21414
21415 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
21416
21417         * FileDialog.cs:
21418           - Disabled registry support for windows and added better registry
21419             error checking for other systems (need to investigate why it
21420             works perfectly on my system)
21421           - If a folder already exist show an error MessageBox instead of
21422             trying to create an indexed name.
21423           - Fixed a non intentional typo.
21424
21425 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21426
21427         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
21428
21429 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
21430
21431         * FileDialog.cs: When creating a new folder don't crash if the
21432           folder already exists.
21433
21434 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
21435
21436         * FileDialog.cs: Allmost a complete rewrite.
21437           - added a "virtual" file system that handles the differences
21438             between unix and windows file systems (especially the directory
21439             structure). Moved most of the directory and file handling code
21440             into the vfs.
21441             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
21442             UnixFileSystem and FSEntry.
21443           - Recently used folder/directory, size, location and used file names
21444             (file name ComboBox) are now stored in the registry and get read
21445             before the dialog shows up (fixes part 6 of bug #78446).
21446           - Creation of new folders/directories is now possible (context menu
21447             or ToolBar). Added TextEntryDialog for this that fills in the gap
21448             until ListView.LabelEdit works.
21449           - Fixed cursor handling (bug #78527) and focus handling for
21450             PopupButtonPanel
21451           - Various "Search in" ComboBox enhancements. The content of the
21452             dropdown listbox now almost matches ms.
21453           - Changed the behaviour when the user switches to SpecialFolder
21454             Recent to show the ListView in View.Details.
21455           - Beside using the ToolBar to change the View property of the
21456             file ListView it is now possible to use the context menu too.
21457
21458 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
21459
21460         * ComboBox.cs: Don't create a new ObjectCollection when an item
21461           gets inserted. Just insert the item in the existing object_items
21462           ArrayList.
21463
21464 2006-06-08  Jackson Harper  <jackson@ximian.com>
21465
21466         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
21467         that the treeview and root node checks are done also, this fixes a
21468         regression i caused in the unit tests.
21469
21470 2006-06-07  Wade Berrier <wberrier@novell.com> 
21471
21472         * RichTextBox.cs: More ISO8859-1 -> unicode
21473
21474 2006-06-07  Mike Kestner  <mkestner@novell.com>
21475
21476         * ComboBox.cs : use items to hold highlight/selection so that
21477         collection insertions don't require synchronization.
21478
21479 2006-06-07  Jackson Harper  <jackson@ximian.com>
21480
21481         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
21482         routine.  We now always keep the sized edge at the cursor instead
21483         of computing movement and adjusting rects.  There is one buglet
21484         with this method though when the cursor is moved over area that
21485         the window can not expand too (such as the toolbars on the desktop).
21486
21487 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21488
21489         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
21490         here. Fixes crash on startup in AlbumSurfer.
21491
21492 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
21493
21494         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
21495           values
21496
21497 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21498
21499         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
21500         statement to avoid calling XNextEvent which will block if another thread
21501         took the event that we were expecting. Fixes bug #78605.
21502
21503 2006-06-07  Mike Kestner  <mkestner@novell.com>
21504
21505         * ListView.cs : isolated checkbox clicking from the selection logic.
21506         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
21507
21508 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21509
21510         * Form.cs: Check that the value passed to Form.DialogResult
21511         is a valid enum value.
21512
21513 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21514
21515         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
21516         Computer'. Clicking it in the network view goes to 'My Computer'.
21517         Added CIFS filesystem type. Display the mount point of filesystems.
21518         Avoid duplicate mount points (happens for me with CIFS);
21519
21520 2006-06-06  Jackson Harper  <jackson@ximian.com>
21521
21522         * InternalWindowManager.cs: Draw the maximized windows buttons
21523         when resizing.
21524
21525 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21526
21527         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
21528         all other dialogs. Fixes bug #78585.
21529
21530 2006-06-06  Mike Kestner  <mkestner@novell.com>
21531
21532         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
21533         Only invalidate checkbox on checkstate changes to avoid flicker.
21534         * ListBox.cs : avoid unselect/select when clicking selected item.
21535         avoid reselection flicker for already multiselected items.
21536         Fixes #78382.
21537
21538 2006-06-06  Jackson Harper  <jackson@ximian.com>
21539
21540         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
21541         the parent form so that the menu is removed if needed.
21542
21543 2006-06-06  Mike Kestner  <mkestner@novell.com>
21544
21545         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
21546         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
21547
21548 2006-06-06  Mike Kestner  <mkestner@novell.com>
21549
21550         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
21551
21552
21553 2006-06-06  Jackson Harper  <jackson@ximian.com>
21554
21555         * Control.cs: Use the property (instead of the field) to get the
21556         default cursor so it is instantiated correctly.
21557         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
21558         resizes so we need to manually repaint the window decorations here.
21559         - Set the titlebar button locations as soon as they are created,
21560         otherwise they are not set correctly on win32.
21561         
21562 2006-06-06  Chris Toshok  <toshok@ximian.com>
21563
21564         * CurrencyManager.cs (set_Position): call PullData before
21565         OnCurrentChanged.
21566         (AddNew): after calling IBindingList.AddNew, update our
21567         listposition, and call OnCurrentChanged/OnPositionChanged (without
21568         calling PullData).
21569         (OnCurrentChanged): remove the call to PullData from here.
21570         (OnItemChanged): remove the call to PushData from here.
21571         (OnPositionChanged): change the test from == null to != null to
21572         match the other methods.
21573         (ListChangedHandler): the grossest part of the patch.  Implement
21574         this such that it passes the unit tests in CurrencyManagerTest and
21575         the output more or less matches that of MS's implementation.
21576  
21577 2006-06-06  Mike Kestner  <mkestner@novell.com>
21578
21579         * ListView.cs : only update check state on single click.
21580         * ThemeWin32Classic.cs : fix focus drawing for details view without
21581         fullrowselect.  Fixes #78454.
21582         * XplatUIX11.cs : fix for double click emission.
21583
21584 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
21585
21586         * PropertyGridView.cs : Applied Atsushi's patch to fix
21587         font dialog bug  (#78197).
21588
21589 2006-06-05  Jackson Harper  <jackson@ximian.com>
21590
21591         * TreeNode.cs: Compute the next node for expanding/collapsing
21592         correctly. We now factor in nodes without a NextNode
21593         correctly. (Fixes somes cases in nunit-gui).
21594         * InternalWindowManager.cs: Set the bounds when updating the
21595         virtual position of a tool window.
21596         
21597 2006-06-05  Chris Toshok  <toshok@ximian.com>
21598
21599         * DataGrid.cs: rename cached_currencymgr to list_manager.
21600         (set_CurrentCell): move SetCurrentCell code here, and clean it up
21601         some.
21602         (CurrentRow, CurrentColumn): single accessors so we can make the
21603         cursor movement code a lot easier to understand.
21604         (CurrentRowIndex): implement this in terms of CurrentRow.
21605         (BeginEdit): clean this up a bit.
21606         (CancelEditing): sort out the is_editing/is_changing/is_adding
21607         stuff a little.
21608         (EndEdit): minor changes.
21609         (OnKeyDown): add a comment about a (most likely) unnecessary
21610         check.
21611         (OnMouseDown): cancel editing when we click on a row header.  And
21612         use the CurrentRow setter, not CurrentCell.
21613         (ProcessDialogKey): directly call ProcessGridKey.
21614         (UpdateSelectionAfterCursorMove): factor out this common block of
21615         code (it's used everywhere that we move the cursor by updating row
21616         or column).
21617         (ProcessGridKey): pretty substantial overhaul.  Use the
21618         CurrentRow/CurrentColumn properties to make the code a lot more
21619         readable.  Only use the CurrentCell property when we have to
21620         modify both row and column at once.  Tab behavior is still broken,
21621         and Delete is untested.
21622         (Select): if we have no selected rows, set selection_start to
21623         @row.
21624         (EditCurrentCell): rename EditCell this.  It was only ever invoked
21625         with CurrentCell as the arg, so drop the arg and rename it.
21626
21627         * DataGridColumnStyle.cs: clean up the constructors a little, and
21628         drop CommonConstructor().
21629
21630         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
21631         actually get notified when the user hits it.
21632         (ProcessKeyMessage): *substantially* simplify this method.
21633         There's no reason (that I can see) for the textbox to be making
21634         calls into the datagrid at all.  Remove all of them but the ones
21635         for Enter handling.  those will take some more work.
21636
21637         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
21638         calling HideEditBox.
21639         (HideEditBox): if we have an active textbox, render it invisible
21640         without causing a re-layout of the datagrid.
21641
21642 2006-06-05  Mike Kestner  <mkestner@novell.com>
21643
21644         * ListView.cs : fix NRE crasher when focuseditem is cleared by
21645         collection changes by resetting it to Items[0].  Fixes #78587.
21646
21647 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21648
21649         * MessageBox.cs: if the height of the text is larger than the icon_size,
21650         use that. Fixes bug #78575.
21651
21652 2006-06-05  Jackson Harper  <jackson@ximian.com>
21653
21654         * TreeView.cs: Fix line drawing when scrolling.  To do this each
21655         node is basically responsible for drawing its entire horizontal
21656         area.  When drawing a node it draws its parent node lines if
21657         needed.
21658         - Adjust the clip area to the viewport rectangle
21659         - Fix Left/Right key handling to match MS. (It expand/collapses
21660         and moves to parents/first child but does not move selection to
21661         sibling nodes).
21662         - Fix SetTop to work with new bound calculation code
21663         - When scrollbars are no longer needed we need to reset scrolling
21664         vars and recalculate the visible order so the redraw is correct
21665         * TreeNode.cs: We can't expand/collapse nodes with no children.
21666
21667 2006-06-03  John Luke  <john.luke@gmail.com> 
21668
21669         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
21670         so the colors work without dev packages
21671         
21672 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
21673
21674         * Control.cs 
21675           - Select: Implemented to just use activate. Seems to match MS 
21676             behaviour closest. Documented to only do actual control walking 
21677             based on it's parameters if in a container control so I moved 
21678             the code there.
21679           - Removed selection check logic from our internal Select() method
21680         * ContainerControl.cs:
21681           - Select: Moved selection logic from Control here, since MS documents
21682             that containers obey the bool arguments. No longer calling base
21683
21684 2006-06-02  Jackson Harper  <jackson@ximian.com>
21685
21686         * TreeView.cs: If the selected node isn't changed when we get
21687         focus update the previously selected node so that we see the
21688         selection box.
21689
21690 2006-06-02  Mike Kestner  <mkestner@novell.com>
21691
21692         * ComboBox.cs: restructure grab and general mouse event handling.
21693         Make the composite control raise mouse events like it was a single
21694         control for leaves/enters/motion/up/down events.  fix dropdown list
21695         coordinate mangling and refactor it into the scrollbar subclass to
21696         reduce code duplication.  Fixes #78282 #78361 and #78457.
21697
21698 2006-06-02  Mike Kestner  <mkestner@novell.com>
21699
21700         * ScrollBar.cs: remove Capture setting/clearing, as it happens
21701         automatically in the Control.WndProc.
21702
21703 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21704
21705         * FileDialog.cs: fix crash when running SharpChess, which sets the
21706         FilterIndex to 2 with only one Filter.
21707
21708 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21709
21710         * ToolBar.cs: add SizeSpecified property.
21711         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
21712         try to figure out our real size, otherwise fallback to what the
21713         container says.
21714
21715 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
21716
21717         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
21718         * Control.cs (WndProc): MS always calls the DefWndProc to pass
21719           up the event
21720
21721 2006-06-01  Mike Kestner  <mkestner@novell.com>
21722
21723         * ListView.cs: revamp the focus management in ListView.  It still
21724         causes churn of LostFocus/GotFocus emissions on clicks, but it's
21725         better than not handling focus at all.  Will revisit when pdb feels
21726         the general focus handling is solid.  Fixes #78526.
21727
21728 2006-06-01  Jackson Harper  <jackson@ximian.com>
21729
21730         * TreeView.cs: Set the default border style in the constructor.
21731         - Move painting to use OnPaintInternal instead of capturing
21732         WM_PAINT, this is the correct way of doing things
21733         - UpdateBelow shouldn't invalidate the scrollbar area
21734         - Cap the top on update below in case the node was above the top
21735         of the viewport rectangle.
21736         - ExpandBelow and Collapse below need to obey Begin/End Update.
21737         * TreeNode.cs: Make is_expanded internal so the treenode
21738         collection can change it without firing the whole event chain.
21739         * TreeNodeCollection.cs: When clearing all the child nodes make
21740         sure to recalc the visible order.
21741         - Improve algo for remove the top node
21742
21743 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
21744
21745         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
21746           SendMessage directly calling window procedures, which in turn might
21747           call SetFocus()
21748
21749 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
21750
21751         * Control.cs: Don't handle WM_SETFOCUS if the same window already
21752           has focus (works around X11 sending a FocusIn after our SetFocus)
21753         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
21754
21755 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
21756
21757         * Mime.cs: Fix for the NET_2_0 build.
21758           NameValueCollection needs StringComparer now.
21759
21760 2006-05-31  Chris Toshok  <toshok@ximian.com>
21761
21762         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
21763         return (via an out parameter) the starting X of the column.
21764         (UpdateVisibleColumn): track change to FromPixelToColumn.
21765         (HitTest): add a ColumnResize case here.
21766         (DrawResizeLine): new function, probably poorly named.
21767
21768         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
21769         only need to keep one reference.
21770         (set_ListManager): same.
21771         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
21772         Also, add support for HitTestType.ColumnResize.
21773         (OnMouseMove): add column resize behavior here, and change the
21774         cursor to the correct one as we move around the datagrid.
21775         (OnMouseUp): terminate the column resize if we're resizing.
21776         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
21777         for the current cell.
21778         (ConnectListManagerEvents): use cached_currencymgr.
21779         (DisconnectListManagerEvents): fill this in, using
21780         cached_currencymgr.
21781         (SetCurrentCell): remove cached_currencymgr_events handling.
21782         (SetDataMember): only call DisconnectListManagerEvents if
21783         cached_currencymgr is != null.
21784         (SetDataSource): same.
21785         (OnListManagerCurrentChanged): cached_currencymgr_events ->
21786         cached_currencymgr.
21787
21788 2006-05-31  Jackson Harper  <jackson@ximian.com>
21789
21790         * BindingManagerBase.cs: Remove somedebug code that creeped into
21791         SVN.
21792         * TreeNode.cs: We get the indent level dynamically right now, so
21793         don't track it as a member.
21794         * TreeNodeCollection.cs: Make sure all nodes added to the list
21795         have parents, treeviews/topnodes setup properly.
21796         - Don't attempt to track indent level.
21797
21798 2006-05-30  Jackson Harper  <jackson@ximian.com>
21799
21800         * BindingContext.cs: Create the currency manager tables here.
21801         This allows us to more easily create null tables (when bad data
21802         members are used), and more easily create related currency
21803         managers.
21804         * CurrencyManager.cs: All the table creation stuff is done by the
21805         binding context now.
21806         - Current should throw an exception if listposition is -1.
21807         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
21808         been bound yet.
21809
21810 2006-05-30  Mike Kestner  <mkestner@novell.com>
21811
21812         * ListView.cs: allow reexpansion of zero-width column headers.
21813         Fixes #78528.
21814
21815 2006-05-28  Chris Toshok  <toshok@ximian.com>
21816
21817         * CurrencyManager.cs (get_Current): after the late binding
21818         listposition = -1 fix, we need to guard against it here and return
21819         null, otherwise we raise an exception (which is swallowed
21820         elsewhere, and breaks datagrid databinding.)
21821
21822 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
21823
21824         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
21825           than WM_SYSKEY, don't throw if get something unexpected (#78507)
21826
21827 2006-05-26  Jackson Harper  <jackson@ximian.com>
21828
21829         * ControlPaint.cs:
21830         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
21831         values, it's faster and it's all we care about (we don't care if
21832         the names aren't equal).
21833         * KeyboardLayouts.cs: Eliminate some dead code.
21834         - Lazy init things
21835         * X11Keyboard.cs: Lazy init keyboard detection.
21836         - Cleanup access modifiers a little.
21837
21838 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
21839
21840         * XplatUIX11.cs: Once again, attempting to get layout just right.
21841
21842 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
21843
21844         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
21845           the sizes of each link section, that will result in sizes that
21846           match DrawString's layout (Fixes #78391)
21847
21848 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
21849
21850         * FileDialog.cs: If AddExtension property is true autocomplete the
21851           extensions in SaveFileDialog correctly. Fixes bug #78453.
21852           Set MyNetwork and MyComputer to "C:\" for windows. This should
21853           fix part 8 of bug #78446 for now.
21854
21855 2006-05-26  Chris Toshok  <toshok@ximian.com>
21856
21857         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
21858         invalidate the current row header if we need to, but presumably
21859         we'll invalidate the row corrsponding to the bounds or
21860         editingControl.
21861         (GridHScrolled): switch back to this method, as it's part of the
21862         public api.  *sigh*.
21863         (GridVScrolled): same.
21864         (OnMouseWheel): hack up something that more or less works.  Call
21865         GridHScrolled/GridVScrolled directly, instead of duplicating much
21866         of their code here.
21867         (EnsureCellVisibility): reinstate a bunch of this code, since we
21868         can't just set the scrollbar Value and expect to do all the work
21869         in the ValueChanged handler.  Also, Call Update() after scrolling
21870         in one direction so the other XplatX11.ScrollWindow call has the
21871         proper stuff in the proper places.
21872         (EditCell): set is_editing to true before calling .Edit.
21873
21874         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
21875         don't bother comparing first.
21876         (OnKeyPress): call grid.ColumnStartedEditing before calling
21877         base.OnKeyPress.  this will set is_changing and invalidate the row
21878         header if necessary.
21879         (ProcessKeyMessage): for WM_CHAR messages, call
21880         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
21881         and WM_KEYDOWN.
21882         
21883         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
21884         it's done in the DataGrid.
21885         (NextState): call grid.ColumnStartedEditing, which takes care of
21886         invalidating the row header (and setting is_changing).
21887
21888         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
21889         here.  it's done in the DataGrid.
21890
21891 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21892
21893         * Control.cs: allow changing the cursor when the mouse position is
21894         out of bounds but Capture is set.
21895         * LinkLabel.cs: handle the case when the mouse button is pressed on the
21896         linklabel but released somewhere else.
21897
21898 2006-05-25  Jackson Harper  <jackson@ximian.com>
21899
21900         * TreeView.cs: When we get focus if there is no selected node make
21901         it the top node
21902         - Remove some uneeded setup code from Draw.
21903         * TreeNodeCollection.cs: If the tree doesn't have a top node when
21904         a new node is inserted make the new node the top.
21905         * XplatUIX11.cs:
21906         * Timer.cs: Use Utc time so that no local time zone stuff needs to
21907         be used (should be faster).
21908         
21909 2006-05-25  Chris Toshok  <toshok@ximian.com>
21910
21911         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
21912         problem with the last commit.
21913
21914 2006-05-25  Chris Toshok  <toshok@ximian.com>
21915
21916         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
21917         need the invalidate call here, while scrolling right-to-left via
21918         the left arrow key (i.e. moving the editing cell while scrolling).
21919
21920         * DataGrid.cs (.ctor): remove the initialization of
21921         ctrl_pressed/shift_pressed.  We no longer track them using key
21922         up/down handlers, but by using Control.ModifierKeys.  Also, switch
21923         to using ValueChanged handlers on the scrollbars instead of
21924         Scrolled event handlers.  This simplifies a bunch of the scrolling
21925         code.
21926         (GridHValueChanged): rename from GridHScrolled, and change it to
21927         work with the new event args.
21928         (GridVValueChanged): same.
21929         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
21930         (OnMouseWheel): actually scroll the datagrid.  Don't change the
21931         selected cell.
21932         (ProcessGridKey): correct all the keyboard navigation stuff I
21933         could find.  Ctrl up/down/left/right/home/end work now.
21934         (EnsureCellVisibility): correct method name spelling.  Also,
21935         simplify this a touch by not explicitly calling the
21936         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
21937         scrollbar value.
21938         (OnKeyUpDG): no need for this method now.
21939         
21940 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21941
21942         * LinkLabel.cs: display the OverrideCursor when hovering the label.
21943         Fixes bug #78392.
21944
21945 2006-05-25  Chris Toshok  <toshok@ximian.com>
21946
21947         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
21948         r61019.
21949
21950 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
21951
21952         * Application.cs: Moved setting of is_modal and closing to before
21953           we create the control, to allow the event handlers called as a
21954           result of creation affect closing. Also removed Gonzalo's previous
21955           change to setting DialogResult, the behaviour has been moved to 
21956           Form.ShowDialog()
21957         * Form.cs: 
21958           - ShowDialog(): Removed explicit creation of the form, let RunLoop
21959             handle it instead
21960           - ShowDialog(): If no dialog result is set, we need to return Cancel
21961           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
21962             the close is cancelled
21963
21964 2006-05-25  Jackson Harper  <jackson@ximian.com>
21965
21966         * StatusBar.cs: We only need to update the sizes of the other
21967         panels when we have auto size contents.  Also we are only updating
21968         the contents of the panel, not the borders, so compensate for the
21969         border width (TODO: get this width from the theme somehow).
21970         * TreeView.cs: Scrollable is true by default
21971         - Use invalidate instead of refresh where needed
21972         - Factor the scrollable value into scrollbar updating
21973         - Update the scrollbars if the Scrollable property is altered
21974         - Update the selected node if its ImageIndex is changed
21975         - Handle null nodes in UpdateNode (mainly so we don't have to
21976         check if selected is null when updating it
21977         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
21978         are factored into the visible count
21979         - Use VisibleCount for clarity in the code
21980         - When the font is changed we need to recurse through all the
21981         nodes and invalidate their sizes
21982         
21983 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21984
21985         * Application.cs: set the DialogResult to fixed when the main form is
21986         hidden or destroyed while being modal.
21987
21988 2006-05-25  Miguel de Icaza  <miguel@novell.com>
21989
21990         * Theme.cs: Use Tangoified messagebox icons. 
21991
21992         (GetSizedResourceImage): Also cope with width = 0 and do not
21993         trigger a warning in that case (0 means "give me your icon from
21994         the resouce, no special size needed).
21995
21996 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
21997
21998         * Application.cs: Leave runloop if the the main modal form is 
21999           hidden (fixes #78484)
22000
22001 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
22002
22003         * BindingContext.cs : reject null datasource in Contains() and
22004           Item[].
22005         * CurrencyManager.cs : check data_member validity when data_source
22006           is dataset. When it is late binding, the initial position is -1.
22007
22008 2006-05-24  Jackson Harper  <jackson@ximian.com>
22009
22010         * TreeNodeCollection.cs: Dont't recalculate the visible order on
22011         inserted nodes that aren't visible.  This changes the
22012         max_visible_order which confuses scrollbar settings.
22013         - Use the enumerator to get the prev node instead of duplicating
22014         code.
22015         * TreeView.cs: Use new method for setting scrollbar values
22016         - Don't set the bounds every time the scrollbar is updated
22017         - When updating below the root node use an invalidate instead of a
22018         refresh to prevent the child controls (scrollbars) from being
22019         refreshed. (UpdateBelow still needs to be reworked anyways).
22020         - Reenable SetBottom now that visible orders are set correctly,
22021         added some debug code incase we ever get bad values there again.
22022         - Set the scrollbar max to 2 less then the max value, this
22023         compensates for the max value being one above the node count, and
22024         for scrollbars adding one extra "notch".
22025         - When drawing image nodes if there is an imagelist we draw the
22026         first image in the list if the supplied image index is out of the
22027         image list's bounds.
22028         
22029 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
22030
22031         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
22032           we receive a size change from the WM (Fixes #78503)
22033
22034 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
22035
22036         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
22037           rectangle (Fixes #78501)
22038
22039 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
22040
22041         * ButtonBase.cs: 
22042           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
22043             as a bitfield.
22044           - Fixed MouseMove to no longer switch pressed state unless the left
22045             mouse button is pressed. Atsushi provided the original patch (#78485)
22046           
22047 2006-05-24  Jackson Harper  <jackson@ximian.com>
22048
22049         * ScrollBar.cs: New internal methods that allow us to change a
22050         couple values on the scrollbar (the most common case is maximum
22051         and large change) without getting multiple invalidates.
22052
22053 2006-05-24  Chris Toshok  <toshok@ximian.com>
22054
22055         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
22056         (Edit): save off the original state in oldState, and set
22057         grid.is_editing to true.
22058         (OnKeyDown): abort editing if escape is pressed.  also, call
22059         NextState if space is pressed.
22060         (OnMouseDown): call NextState.
22061         (NextState): factor out shared code from OnKeyDown and OnMouseDown
22062         here.  Also, only invalidate the row header once (on the initial
22063         is_changing switch) to save on redraws.
22064
22065 2006-05-24  Chris Toshok  <toshok@ximian.com>
22066
22067         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
22068         if the value in the cell is different than it was before.  This
22069         keeps us from triggering a layout when we move around a datarid
22070         with a highlighted cell.
22071         (Edit): suspend layout when creating/positining the text box, and
22072         resume passing false so we don't ever actually re-layout.
22073         (ReleaseHostedControl): same.
22074         (EnsureTextBox): reformat slightly, and set WordWrap to false.
22075
22076         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
22077         control-key sequences should go to the datagrid - remove that
22078         lock.  Also, modify the conditions under which we move between
22079         cells when moving the cursor within a cell, and remove the "this"
22080         and "base" from field accesses.  We weren't even consistent, given
22081         they all were in the base class.
22082
22083 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
22084
22085         * Binding.cs : (.ctor)
22086           An obvious NRE fix for BindingTest.CtorNullTest().
22087
22088 2006-05-23  Chris Toshok  <toshok@ximian.com>
22089
22090         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
22091         them between lines.  This fixes some quirks editing cells in the
22092         datagrid.
22093
22094 2006-05-23  Jackson Harper  <jackson@ximian.com>
22095
22096         * TreeView.cs: Use begin/end update when doing expand/collapse all
22097         so that we don't get flicker on the scrollbar.
22098
22099 2006-05-23  Jackson Harper  <jackson@ximian.com>
22100
22101         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
22102         treenode calculations to be independant of the painting code. To
22103         do this nodes track a visible order which is calculated by the
22104         treeview.
22105         - Call new methods for expanding/collapsing nodes.  These methods
22106         use scrollwindow so we don't have to update everything below the
22107         node.
22108         * TreeView.cs: Refactored drawing and scrolling code.  We don't
22109         need to update nodes when drawing anymore or calculate scrollbar
22110         stuff.
22111         - Added new methods for expanding/collapsing nodes. These methods
22112         use ScrollWindow so as to not have to redraw all the nodes below.
22113         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
22114         we add/remove nodes or sort.
22115         - Handle removing the selected and the top node properly.
22116
22117 2006-05-23  Chris Toshok  <toshok@ximian.com>
22118
22119         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
22120         maybe this should actually happen in the datagrid code?
22121         (EndEdit): no need to invalidate anything, given that
22122         ReleaseHostedControl causes the datagrid to relayout, which
22123         invalidates everything anyway.
22124
22125         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
22126         in SetCurrentCell).
22127         (set_SelectionBackColor): call InvalidateSelection instead of
22128         Refresh.
22129         (set_SelectionForeColor): same.
22130         (BeginEdit): Flesh this out a bit.
22131         (CancelEditing): only do any of this if we're editing/adding.
22132         (EndEdit): same.
22133         (OnMouseDown): there's no need to cancel editing here, it's done
22134         in SetCurrentCell.
22135         (SetCurrentCell): only invalidate the current row header if it's a
22136         different row than the new one.
22137         (ShiftSelection): fix this to work like MS does.
22138         (ResetSelection): factor out the invalidation of selected_rows to
22139         InvalidateSelection.
22140         (SetDataSource): cancel any editing that's going on.
22141
22142         * DataGridColumnStyle.cs
22143         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
22144         call the non-interface version.
22145
22146         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
22147         header rectangle with the clip rectangle so we don't redraw the
22148         entire header for just a small area.  Gets rid of the last flicker
22149         when horizontally scrolling.
22150         (DataGridPaintRow): same.
22151
22152 2006-05-23  Mike Kestner  <mkestner@novell.com>
22153
22154         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
22155         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
22156         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
22157         Critical bug report.
22158
22159 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
22160
22161         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
22162           and this fixes #78493
22163
22164 2006-05-23  Miguel de Icaza  <miguel@novell.com>
22165
22166         * Theme.cs (GetSizedResourceImage): Scale images if the proper
22167         size is not found.  
22168         
22169         * FileDialog.cs: Do not change the background for the side bar as
22170         it wont work nicely with the theme, and also reduces the artifacts
22171         in rendering the icons (which I want to fix too).
22172
22173         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
22174         resources, not resgen resources. 
22175
22176         (PlatformDefaultHandler): Pull images using the new API.
22177
22178 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
22179
22180         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
22181           a reference to the hwnd and will not remove it unless there are
22182           no pending exposures (fixes #78341)
22183         * XplatUI.cs: Improved debug
22184
22185 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
22186
22187         * MenuAPI.cs : don't handle OnClick event when it was not the left
22188           button. Fixed bug #78487.
22189
22190 2006-05-23  Mike Kestner  <mkestner@novell.com>
22191
22192         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
22193         prefer submenus to the top menu for item lookup, to avoid popping down
22194         top-row items.
22195
22196 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
22197
22198         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
22199           Graphics.FillRectangle as the visual results are really bad (even
22200           on win). We now draw perfect arrows (and perfect shadows when the
22201           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
22202           Pen.DashPattern to draw the dots of each line.
22203
22204 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
22205
22206         * FileDialog.cs: Update the filename combobox when navigating through
22207           the ListView with the cursor keys. Fixes part 7 of bug #78446.
22208
22209 2006-05-22  Mike Kestner  <mkestner@novell.com>
22210
22211         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
22212         Fixes #78463.
22213
22214 2006-05-22  Mike Kestner  <mkestner@novell.com>
22215
22216         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
22217         requests. Fix a misspelled parameter and a copy paste exception error
22218         in Select.
22219
22220 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
22221
22222         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
22223           to get the same width/height (5/13) on X11 as the default font has on
22224           win32. This means that our DefaultFont emSize is smaller than the 
22225           the MS SWF equivalent (even thought the width/height stays the same)
22226
22227 2006-05-20  Jackson Harper  <jackson@ximian.com>
22228
22229         * MdiClient.cs:
22230         * MdiWindowManager.cs:
22231         * InternalWindowManager.cs: Make sure to use the border width from
22232         the theme.
22233
22234 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
22235
22236         * PrintDialog.cs: Implements printer details
22237
22238 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
22239
22240         * FileDialog.cs: Added focus handling for PopupButtonPanel.
22241           Fixes part 1 and 2 of bug #78446
22242
22243 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
22244
22245         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
22246           instead of sticking to the first ever calculated value
22247
22248 2006-05-19  Mike Kestner  <mkestner@novell.com>
22249
22250         * ComboBox.cs: fix mouse motion selection to use MousePosition and
22251         PointToClient, since Capture is set. Fixes #78344.
22252
22253 2006-05-19  Mike Kestner  <mkestner@novell.com>
22254
22255         * ListView.cs: match MS behavior in Details view where items are not
22256         drawn if Columns.Count == 0. 
22257         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
22258         Use a separate pen to draw the check, since changing the width affects
22259         the box as well.  Fixes #78454.
22260
22261 2006-05-18  Miguel de Icaza  <miguel@novell.com>
22262
22263         * ListView.cs: ArgumentOutOfRangeException, single versions of the
22264         exception should throw the name of the invalid argument.
22265
22266         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
22267         there are no files listed. 
22268
22269 2006-05-18  Jackson Harper  <jackson@ximian.com>
22270
22271         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
22272         up.
22273
22274 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
22275
22276         * Control.cs: Brought back our old UpdateZOrder method as a private
22277           function and switched our calls from UpdateZOrder to the new one.
22278           This fixes the Paint.Net canvas disappearing bug.
22279
22280 2006-05-18  Jackson Harper  <jackson@ximian.com>
22281
22282         * Theme.cs:
22283         * ThemeWin32Classic.cs:
22284         * InternalWindowManager.cs: Move the drawing into the theme,
22285         expose everything the theme should need from the window manager.
22286
22287 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
22288
22289         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
22290           from the call to NativeWindow to avoid walking up the parent chain
22291           further than needed (speeds up setting cursors and avoids setting
22292           the wrong cursor if a parent has another cursor defined)
22293         * Cursor.cs: When loading an icon as cursor, MS uses the center of
22294           the icon as hotspot, not what's contained as hotspot in the icon
22295           file. This fixes the perceived drawing offset seen with Paint.Net
22296         
22297 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
22298
22299         * XplatUIX11.cs: 
22300           - Store the calculated rectangle in Hwnd object and use it when 
22301             setting the client size
22302           - Force Toolwindows to always be type Dock, to ensure they're on top
22303
22304 2006-05-18  Mike Kestner  <mkestner@novell.com>
22305
22306         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
22307         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
22308         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
22309         Substantial refactoring to remove confusing nested classes. Coding
22310         standard and Get+Set->property refactorings.  Shift to index based
22311         highlighting in ComboListBox instead of constantly using IndexOf and
22312         Items[]. Add invalidations on resize for DropDownList to fix ugliness
22313         in FileDialog growth.  Draw borders manually since Simple mode needs
22314         to look like two independent controls.  Make listbox border
22315         conditional to DropDownStyle.  Improved OwnerDraw support.
22316
22317 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
22318
22319         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
22320         Don't set the disposed graphics to null, so we can throw the "right"
22321         exception if the graphics is reused later (added a flag to avoid 
22322         double disposing). Some behaviours are different under 2.0 and are
22323         filled under bug #78448.
22324
22325 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
22326
22327         * Control.cs: When double-buffering is enabled, we need to reset
22328           our graphics context between paint calls. Otherwise, any 
22329           transformations and other alterations on the context will 
22330           become cumulative (#77734)
22331
22332 2006-05-18  Mike Kestner  <mkestner@novell.com>
22333
22334         * ListView.cs: do focused item selection like MS on clicks. 
22335         Rework focus handling for ItemControl so LostFocus invalidates as
22336         well.
22337         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
22338         the ListView ItemControl has focus.
22339
22340 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
22341
22342         * XplatUIX11.cs: If client_window ends up being width or height zero
22343           due to border settings, move it off window inside whole_window (#78433)
22344
22345 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
22346
22347         * Mime.cs: Shrink the mime file cache correctly.
22348
22349 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
22350
22351         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
22352
22353 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
22354
22355         * XplatUIX11.cs (AddExpose): More sanity checks
22356
22357 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
22358
22359         * XplatUIX11.cs:
22360           - AddExpose: Don't add expose ranges outside the size of our
22361             window
22362           - Cast opacity values to Int32 to avoid crashes with certain
22363             values
22364           - Added disabled code paths that protect against illegal cross-
22365             thread painting (Developers.exe)
22366
22367 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
22368
22369         * ProgressBar.cs: Invalidate the control when it's resized
22370           since block size is based on control size. (#78388)
22371
22372 2006-05-16  Miguel de Icaza  <miguel@novell.com>
22373
22374         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
22375         of setting the incoming argument to the "reset" value, we set the
22376         this.datamember to string.empty (before we were invalidating the
22377         incoming data).   
22378
22379         Fixes 78420
22380
22381 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
22382
22383         * Form.cs: Only apply transparency settings after the form
22384           is created. (Fixes #77800)
22385
22386 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
22387
22388         * ApplicationContext.cs: Grab the HandleDestroyed event so
22389           we know when to fire OnMainFormClosed 
22390
22391 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
22392
22393         * Application.cs: Introduced sub-class to allow tracking of
22394           threads and centralized triggering of the event mess for
22395           ThreadExit, AppExit, etc..  (#76156)
22396
22397 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
22398
22399         * MimeIcon.cs:
22400           - Do not return a null icon index value for a mime subclass.
22401             Instead try the main mime type class too.
22402           - Seems that some newer distributions don't have a link to some
22403             gnome default icons anymore. So check the default gnome dir too.
22404           
22405
22406 2006-05-16  Jackson Harper  <jackson@ximian.com>
22407
22408         * MdiClient.cs: Don't paint the parent background image if we have
22409         our own background image.
22410
22411 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
22412
22413         * Control.cs:
22414           - PerformLayout: Do not shrink space filled by DockStyle.Fill
22415             controls, all filled controls are supposed to overlap (#78080)
22416           - UpdateZOrder is supposed to update the control's z-order in the
22417             parent's z-order chain. Fixed to behave like that
22418           - BringToFront: Removed obsolete code
22419           - SendToBack: Simplyfied
22420           - SetChildIndex: Trigger layout calculations when Z-order changes
22421             since layout is done by z-order
22422
22423 2006-05-16  Chris Toshok  <toshok@ximian.com>
22424
22425         [ fixes bug #78410 ]
22426         * DataGrid.cs (set_AlternatingBackColor): use
22427         grid_drawing.InvalidateCells instead of Refresh().
22428         (set_BackColor): call grid_drawing.InvalidateCells.
22429         (set_BackgroundColor): use Invalidate instead of Refresh.
22430
22431         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
22432         invalidate the cell area.
22433
22434 2006-05-15  Chris Toshok  <toshok@ximian.com>
22435
22436         [ fixes bug #78011 ]
22437         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
22438         on to DataGridPaintRow.
22439         (DataGridPaintRow): take a clip argument, and only draw the cells
22440         which intersect it.  same with the not_usedarea.
22441
22442         * Theme.cs (DataGridPaintRow) add @clip parameter.
22443
22444         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
22445         XplatUI.ScrollWindow.
22446         (ScrollToRow): same.
22447
22448         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
22449         with last column which was causing a gray swath to appear with the
22450         XplatUI.ScrollWindow code.
22451
22452 2006-05-15  Chris Toshok  <toshok@ximian.com>
22453
22454         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
22455         use XplatUI.ScrollWindow.
22456         (VerticalScrollEvent): use XplatUI.ScrollWindow.
22457
22458 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
22459
22460         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
22461
22462 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
22463
22464         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
22465           file since there are no equivalent X11 cursors
22466
22467 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
22468
22469         * MonthCalendar.cs : DateTimePicker should reflect selected date
22470           on mouse*up*, not mouse*down*. Fixed originally reported part of
22471           bug #76474.
22472
22473 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
22474
22475         * TabControl.cs : When argument index is equal or more than tab
22476           count, just ignore. Fixed bug #78395.
22477
22478 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
22479
22480         * Control.cs: Dispose all child controls when control is diposed (#78394)
22481
22482 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
22483
22484         * ColorDialog.cs: Finally it is possible to select the color with
22485           the text boxes
22486
22487 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
22488
22489         * PrintDialog.cs: Fix typo
22490
22491 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
22492
22493         * PrintDialog.cs: PrintDialog is not resizable
22494         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
22495           color. Made some ToolBar drawing methods protected virtual.
22496
22497 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
22498
22499         * PrintDialog.cs: Implementation of the PrintDialog
22500
22501 2006-05-12  Chris Toshok  <toshok@ximian.com>
22502
22503         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
22504         thumb, instead use MoveThumb.  This has the side effect of making
22505         most of the other thumb moving machinery use MoveThumb as well.
22506         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
22507         need to actually invalidate the rectangle where the new thumb will
22508         go.
22509         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
22510         We force an Update() after, so it's not as fast as it could be,
22511         but at least there's zero flicker and no droppings.
22512         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
22513         (UpdateThumbPos): add another argument (dirty), which says whether
22514         or not to calculate/add dirty regions which we later invalidate.
22515         For cases where we know we're going to use MoveThumb, we pass
22516         false for this.  Otherwise, pass true.
22517
22518 2006-05-12  Jackson Harper  <jackson@ximian.com>
22519
22520         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
22521         the status bar.
22522         
22523 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
22524
22525         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
22526           and GetClipRegion methods and UserClipWontExposeParent property.
22527         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
22528           overriding UserClipWontExposeParent property, setting to false, since
22529           Win32 handles the required expose messages to draw our clipped parent
22530           areas internally
22531         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
22532           PaintEventStart to set the user clip region if set.
22533         * Control.cs: 
22534           - Now internally tracking the Region for the control since we need to
22535             store it if the handle is not yet created and only set it when it
22536             becomes created. Before setting the region forced handle creation
22537           - Added code to draw the parents underneath a user-clipped region
22538         * Hwnd.cs: Added UserClip property
22539
22540 2006-05-12  Chris Toshok  <toshok@ximian.com>
22541
22542         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
22543         (set_Maximum): same.
22544         (set_Minimum): same.
22545         (set_SmallChange): same.
22546         (OnMouseUpSB): remove the call to refresh when releasing the
22547         thumb.  We shouldn't need it.
22548         
22549 2006-05-12  Miguel de Icaza  <miguel@novell.com>
22550
22551         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
22552         AutoSize set to None, we do not need to relayout everything, we
22553         just need to invalidate the current region.
22554
22555         (Draw): Do not draw the entire ClientArea, just redraw the
22556         clip area being passed.
22557
22558         * MdiClient.cs: Make MdiClient constructor with the Form argument
22559         internal. 
22560
22561 2006-05-12  Jackson Harper  <jackson@ximian.com>
22562
22563         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
22564         parents background image,  but strangely not their own.
22565         - (DrawStatusBarPanel): Take into account horizontal alignment
22566         when drawing the strings and icons.
22567
22568 2006-05-12  Mike Kestner  <mkestner@novell.com>
22569
22570         * ListBox.cs: avoid invalidations for focus when the collection is
22571         empty. 
22572
22573 2006-05-12  Chris Toshok  <toshok@ximian.com>
22574
22575         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
22576         invalidate the entire thumb area.  Call InvalidateDirty which
22577         limits the redraw to the thumb itself and surrounding pixels.
22578
22579         * XplatUIX11.cs (ScrollWindow): optimize copying.
22580         
22581 2006-05-12  Chris Toshok  <toshok@ximian.com>
22582
22583         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
22584         Figure out the positioning/layout in a single pass instead of
22585         multiple recursive invocations.  Speeds up the initial display of
22586         the data grid.  Also, make many things private that were
22587         originally public but unused outside this class.
22588
22589 2006-05-11  Jackson Harper  <jackson@ximian.com>
22590
22591         * MdiClient.cs: Improved layout code.
22592
22593 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
22594
22595         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
22596           not SelectedObject.
22597
22598 2006-05-11  Chris Toshok  <toshok@ximian.com>
22599
22600         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
22601         union of that will always be {0,0,width,height}.
22602
22603 2006-05-11  Jackson Harper  <jackson@ximian.com>
22604
22605         * Form.cs: Match MS's DefaultSize for forms (they must have
22606         changed the size in sp2).
22607
22608 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
22609
22610         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
22611
22612 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
22613
22614         * TextControl.cs : Fixed bug #78109. This incorrect position
22615           comparison caused crash on automatic line split.
22616         * TextBoxBase.cs : reduce duplicate code.
22617
22618 2006-05-10  Jackson Harper  <jackson@ximian.com>
22619
22620         * MdiClient.cs: Active form is only sent to the back when using
22621         the Next form functionality, when a form is clicked the current
22622         active shouldn't be sent to the back.
22623         - Layout the mdi windows when the container is first made visible.
22624         * Form.cs: Give the MdiClient a ref to the containing form when we
22625         create it.
22626         
22627 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
22628
22629         * LinkLabel.cs : link_font could be uninitialized, so populate one
22630           before actual use. Fixed bug #78340.
22631
22632 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
22633
22634         * XplatUIX11.cs : clipboard format native value is IntPtr.
22635           Fixed bug #78283.
22636
22637 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
22638
22639         * Control.cs: 
22640           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
22641             which is passed up the parent chain by DefWndProc
22642           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
22643             to DefWndProc (#77956)
22644         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
22645
22646 2006-05-10  Jackson Harper  <jackson@ximian.com>
22647
22648         * MdiClient.cs: We need to remove the controls from the mdi
22649         collection, when we close the window.
22650         * MdiWindowManager.cs: Special handling of closing mdi windows.
22651         * InternalWindowManager.cs: Make the close method virtual so the
22652         mdi window manager can handle it specially.
22653
22654 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
22655
22656         * DataGrid.cs:
22657           - Recalculate grid when the data source has changed
22658           - Matches styles provided by user from all data sources types
22659         * DataGridTableStyle.cs: For columns that provided by the user set the
22660         with the preferred value is there was unassigned.
22661         * CurrencyManager.cs: throw OnItemChanged event
22662
22663 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
22664
22665         * PictureBox.cs: Don't animate until handle is created. Start animation
22666           when handle is created.
22667
22668 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
22669
22670         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
22671           current codebase.
22672         * XEventQueue.cs: We don't need to provide the extra info
22673
22674 2006-05-10  Jackson Harper  <jackson@ximian.com>
22675
22676         * MdiClient.cs: If the mdi clients parent form has a background
22677         image set, we draw that background image for the mdi area's
22678         background.
22679
22680 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
22681
22682         * TextBoxBase.cs: Set IBeam cursor (#78347)
22683
22684 2006-05-10  Mike Kestner  <mkestner@novell.com>
22685
22686         * ToolBar.cs: fix some text padding issues with ButtonSize
22687         calculation. Update the default size to match MS documentation.
22688         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
22689         button size. Fixes #78296.
22690
22691 2006-05-10  Mike Kestner  <mkestner@novell.com>
22692
22693         * ListBox.cs: use is_visible for scrollbar positioning in case the
22694         control isn't on screen yet.  Fix off by one with Right vs Width
22695         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
22696         
22697 2006-05-10  Jackson Harper  <jackson@ximian.com>
22698
22699         * X11Dnd.cs: Drop to a control with another control on top of it.
22700         * ToolBar.cs: Work on a copy of the buttons list, so that it can
22701         be modified in click handlers. TODO: Look for similar problems in
22702         other controls.
22703
22704 2006-05-09  Jackson Harper  <jackson@ximian.com>
22705
22706         * Form.cs: Window managers need the old window state when setting
22707         window state now.
22708         * InternalWindowManager.cs: Allow the base mdi window manager to
22709         handle more of the MDI only stuff (like maximize buttons).
22710         * MdiWindowManager.cs: Fix some snafus in changing the window
22711         state.  Add all the menu functionality, for both popup and
22712         maximized menus.
22713         * MdiClient.cs: When a new form is selected the currently
22714         activated form is sent to the back, this matches MS.
22715         - Implement a new method to activate the next mdi child window.
22716
22717 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
22718
22719         * Control.cs: 
22720           - Added new InternalCapture method to allow controls to prevent
22721             the capture behaviour on the click handlers
22722           - Switched to use InternalCapture
22723         * ComboBox.cs:
22724           - Using InternalCapture to prevent mouse captures from being released
22725             on mouse button release (Fixes #78100)
22726         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
22727           returns Form borders if a caption is present. (Fixes #78310)
22728
22729 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
22730
22731         * TreeNode.cs: Changed serialization .ctor to not require every field
22732           to be present. (#78265)
22733         * OwnerDrawPropertyBag.cs: Added serialization .ctor
22734
22735 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
22736
22737         * MimeIcon.cs: for is faster than foreach for strings.
22738
22739 2006-05-05  Mike Kestner  <mkestner@novell.com>
22740
22741         * CheckedListBox.cs: update check handling code to not use selected.
22742         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
22743         behavior for visual feedback, motion response, shift/ctrl handling,
22744         and properly deal with all 4 selection modes. Updates to bounds
22745         handling logic.  Add scroll wheel support. [Fixes #77842]
22746
22747 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
22748
22749         * ListView.cs:
22750           - Moved adding of Implicit controls into .ctor. That way, subsequent
22751             creation of the controls will not cause them to think they are 
22752             toplevel windows (fixes #78200 header problem)
22753           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
22754           - Switched visibility setting of header control to use internal field
22755             to avoid triggering handle creation
22756           - Now checking if handle is created before causing a refresh when items
22757             are added (This makes us now match handle creation time with MS)
22758         * Splitter.cs: Removed loading of private splitter cursor, switched to
22759           Cursors version now that that is loading the right ones
22760         * Cursors.cs: Load proper splitter cursors from resources
22761         * Cursor.cs: Added second method of loading resource cursors for the 
22762           VS.Net users amongst us
22763
22764 2006-05-05  Mike Kestner  <mkestner@novell.com>
22765
22766         * ListView.cs: give header_control a minimum size based on the
22767         ListView size.
22768
22769 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
22770
22771         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
22772           window seems to do that with metacity, so set that type. (#78120)
22773
22774 2006-05-05  Mike Kestner  <mkestner@novell.com>
22775
22776         * ListViewItem.cs: fix Details mode checkbox layout bug.
22777         * ThemeWin32Classic.cs: draw a ListView column header for unused space
22778         at the end of the header, if it exists. [Fixes for #78200]
22779
22780 2006-05-04  Jackson Harper  <jackson@ximian.com>
22781
22782         * MdiClient.cs: Add a helper property to get the container form.
22783         * MdiWindowManager.cs: We have to make sure to use the menu origin
22784         when drawing the icons and buttons, this fixes maximized window
22785         icons/buttons on win32.
22786         * InternalWindowManager.cs: Reset the restore captions when a
22787         window goes from Maximized to Minimized and vice versa. Move the
22788         DrawMaximizedButtons into the MdiWindowManager source, tool
22789         windows can't be maximized. NOTE: This could use a little
22790         refactoring if time ever permits.
22791         
22792 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
22793
22794         * TextBox.cs: Add MWFCategoryAttributes
22795         * TextBoxBase.cs: Add MWFCategoryAttributes
22796         * Form.cs: Add MWFCategoryAttributes
22797
22798 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
22799
22800         * Control.cs: Add MWFCategoryAttributes
22801         * ScrollableControl.cs: Add MWFCategoryAttributes
22802
22803 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
22804
22805         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
22806           Divider is true. Fix a little glitch in PropertyToolBar
22807           drawing code
22808
22809 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
22810
22811         * Control.cs:
22812           - Dispose: Call base.Dispose, this causes the disposed event
22813             to be fired (and probably other, more important stuff)
22814           - SetVisibleCore: Set is_visible to true after creating the
22815             window so that the window still gets created invisible (if
22816             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
22817             to generate a WM_ACTIVE message
22818         * Form.cs: Call Dispose when we want to destroy the window, instead of
22819           just destroying the handle (Dispose will do that for us)
22820         * XplatUIX11.cs:
22821           - RootWindow also needs a queue, so we can properly process the
22822             property change events from RootWindow (like Activate)
22823           - Generatic synthetic WM_ACTIVE message when the active window is
22824             being destroyed
22825
22826 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
22827
22828         * LinkLabel.cs: Trigger a recalc of our label dimensions when
22829           bounds are changed
22830
22831 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
22832
22833         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
22834           for determining width and height (image might not be assigned if
22835           we're drawing an imagelist)
22836
22837 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
22838
22839         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
22840         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
22841           height from system
22842         * Theme.cs: No longer returns hardcoded menu height, instead calls
22843           new driver method
22844         * Form.cs (OnLoad): Scaling happens before triggering Load events 
22845           on MS (# 78257)
22846
22847 2006-05-01  Mike Kestner  <mkestner@novell.com>
22848
22849         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
22850
22851 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
22852
22853         * TextBoxBase.cs: Removed Fixme
22854         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
22855
22856 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
22857
22858         * XplatUIX11.cs:
22859           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
22860             the rectangle relative to the parent, considering borders. We
22861             don't really want that.
22862           - ScrollWindow: Fixed warning to be more understandable
22863         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
22864           scrollbars and scroll only the visible area
22865         * RichTextBox.cs: Removed debug output
22866
22867 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
22868
22869         * NumericUpDown.cs (Text): Just use base
22870         * UpDownBase.cs: Ensure txtView is created before using it
22871
22872 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
22873
22874         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
22875           casting to IntPtr to avoid 64bit overflow errors
22876
22877 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
22878
22879         * Control.cs:
22880           - AllowDrop: Don't force handle creation.
22881           - CreateHandle: Added call to tell driver if we're allowed to drop
22882
22883 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
22884
22885         * FileDialog.cs: Remember the last directory not only for the
22886           current instance but also for new FileDialog instances.
22887
22888 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
22889         
22890         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
22891           broke sending async messages
22892
22893 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
22894
22895         * XplatUIX11.cs:
22896           - ScrollWindow: Fixed method. We finally generate expose events again
22897             for scrolled areas. This was causing 'garbage' when scrolling
22898             textbox and other controls that used ScrollWindow
22899           - Switched from using the regular queue for paint events to the MS 
22900             model of 'generating' paint events when the queue is empty.
22901             We use the new XQueueEvent.Paint subclass to store which windows
22902             need painting.
22903           - AddExpose now takes the x/y/width/height of the exposed area
22904             and inserts the window into the paint queue if not already there
22905           - InvalidateWholeWindow: Switched to use new AddExpose method
22906           - UpdateMessageQueue: Added which queue to monitor for paint events
22907           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
22908             the unlikely case nothing above handles it. We reset the expose
22909             pending states to get them off the queue.
22910           - GetMessage: Now pulls a paint event if no other events are in the
22911             queue
22912           - Invalidate: Switched to new AddExpose method
22913           - PeekMessage: Updated to understand pending paint events
22914           - UpdateWindow: Fixed logic bug. We were only updating if the window
22915             didn't need updating. Also switched to sending WM_PAINT directly,
22916             like MS does.
22917         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
22918           and random access Remove(). The random access is needed to handle
22919           UpdateWindow() where a WM_PAINT is sent directly without accessing
22920           the queue.
22921         * ScrollBar.cs: Added Update() calls to cause immediate updates to
22922           allow for better feedback when scrolling. Scrollbars are small and
22923           the immediate update should make it 'feel' more responsive without
22924           slowing things down. ScrollBar still needs it's invaliate logic
22925           updated to not always invalidate the whole bar on certain changes.
22926
22927 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22928
22929         * Control.cs:
22930         (BackColor): if the control does not support a transparent background,
22931         return the default backcolor when the parent backcolor is transparent.
22932
22933 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
22934
22935         * Application.cs: Updated to new StartLoop/GetMessage API
22936         * RichTextBox.cs: Provide some output on RTF parsing errors
22937         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
22938           new queue_id argument to GetMessage and PeekMessage to allow faster
22939           handling of per-thread queues in drivers.
22940         * Hwnd.cs: Added Queue tracking and property
22941         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
22942         * XEventQueue.cs: Added thread trackingA
22943         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
22944         * XplatUIX11.cs:
22945           - Implemented new per-thread queue
22946           - GetMessage: Fixed return/break behaviour on several cases. We were
22947             returning stale messages in some cases, instead of just processing
22948             the next message
22949
22950 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
22951
22952         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
22953
22954 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
22955
22956         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
22957           fixed off-by-one comparisons between Width/Height and Right/Bottom.
22958
22959 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
22960
22961         * PropertyGridView.cs: Fix drop down width.
22962
22963 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
22964
22965         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
22966           a mess in DrawToolBar, so I removed one of them.
22967
22968 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
22969
22970         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
22971           needed (clip). Otherwise we get artifacts.
22972
22973 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
22974
22975         * FixedSizeTextBox.cs: Added constructor to allow specifying which
22976           dimension is fixed
22977         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
22978           and switched FixedSizeTextBox to only be fixed vertical (#78116)
22979         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
22980           if it matches the scale base font (avoids unneeded scaling)
22981
22982 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
22983
22984         * X11DesktopColors.cs: One gtk_init_check should be enough
22985
22986 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
22987
22988         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
22989           match MS behaviour
22990
22991 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
22992
22993         * TextBoxBase.cs: 
22994           - Generate OnTextChanged for Backspace even if we're only deleting
22995             the current selection
22996           - When setting the Text property, only select all text if the
22997             control does not have focus when it is being set. Otherwise
22998             just place the cursor at the beginning of the control
22999
23000 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
23001
23002         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
23003           Added a little helper to draw PropertyGrid ToolBar with a different
23004           border and a different BackColor.
23005         * PropertyGrid.cs: Some background parts didn't get painted with the
23006           correct background color. Added a class that helps us to draw the
23007           correct border for PropertyGridView and a class that helps us to
23008           draw ToolBars with a different backcolor
23009         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
23010
23011 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
23012
23013         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
23014         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
23015
23016 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
23017
23018         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
23019           into the palette entries. Also, since we're working on a copy
23020           we needed to copy the palette back onto the bitmap.
23021         * Cursor.cs: Same fix as XplatUIWin32.cs.
23022
23023 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
23024
23025         * ImageListStreamer.cs: Need to read the var (or we're off)
23026
23027 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
23028
23029         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
23030           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
23031           TextBoxBase.cs: Unused var fixes
23032         * AxHost.cs: Small 2.0 fix
23033         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
23034           as it seems that is what at least Metacity expects. This will make
23035           icons show up on 64bit platforms. We still have some 64bit size
23036           issues, though, since the startup app window size still won't match.
23037
23038 2006-04-25  Mike Kestner  <mkestner@novell.com>
23039
23040         * *.cs: cleanup newly reported exception var unused warnings.
23041
23042 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
23043
23044         * ThemeWin32Classic.cs: Button image alignment now matches exactly
23045           ms
23046
23047 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
23048
23049         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
23050           image. The image position is always the same, no matter if the
23051           button is pressed or not.
23052
23053 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
23054
23055         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
23056           selection and set the correct filename for SaveFileDialog.
23057           Patch by Emery Conrad.
23058
23059 2006-04-24  Mike Kestner  <mkestner@novell.com>
23060
23061         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
23062         check for item.X outside the ClientRect instead of item.Y. Fixes
23063         #78151.
23064
23065 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23066
23067         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
23068         trust that value blindly and do some sanity check. Fixes bug #77814.
23069
23070 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23071
23072         * ImageListStreamer.cs: save the mask as a 1bpp image.
23073
23074 2006-04-21  Mike Kestner  <mkestner@novell.com>
23075
23076         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
23077         pass Checked and Indeterminate to the Theme Engine. Improve
23078         encapsulation with ListBox.
23079         * ListBox.cs: Keep a StringFormat instead of calculating it every item
23080         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
23081         nested types.  Move all CheckState functionality to CheckedListBox.
23082         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
23083         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
23084         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
23085         single base list. Fix scrollbar sizing and placement to mirror MS.
23086         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
23087         used.
23088         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
23089         for CheckedListBox by using new DrawItemState info.  Center the
23090         checkboxes on the items. Use new StringFormat property.
23091
23092 2006-04-18  Jackson Harper  <jackson@ximian.com>
23093
23094         * Form.cs: MdiChildren don't do default locations the same way as
23095         regular forms.  This prevents a crash when trying to position the
23096         mdi windows.
23097
23098 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
23099
23100         * PropertyGridTextBox.cs: Formatting, copyright
23101         * PropertiesTab.cs: Formatting
23102         * PropertyGrid.cs: Formatting
23103         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
23104           click toggling of values
23105           
23106 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
23107
23108         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
23109         * Control.cs (.ctor): verify_thread_handle is static, don't reset
23110           every time a control is created
23111         * Application.cs: Removed obsolete EnableRTLMirroring method
23112
23113 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
23114
23115         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
23116         SelectedIndex to -1. Fixes bug #78121.
23117
23118 2006-04-17  Jackson Harper  <jackson@ximian.com>
23119
23120         * Binding.cs: Handle null values for Current and BindingContext.
23121         This occurs when binding is a little delayed.
23122         * CurrencyManager.cs: return null for Current when there are no
23123         items in the list.
23124         - Hookup to the listchanged event on the DataView and update
23125         bindings when the list is changed.  This fixes late binding of
23126         controls.
23127
23128 2006-04-17  Jackson Harper  <jackson@ximian.com>
23129
23130         * X11Dnd.cs:
23131         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
23132         Ringenbach.
23133
23134 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
23135
23136         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
23137           place
23138         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
23139           with the correct ButtonState
23140
23141 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
23142
23143         * XplatUIX11.cs: Improved distinguishing between window types to
23144           tell the WM a type closer to what the app wants (Fixes #78107)
23145
23146 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
23147
23148         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
23149           GrabHandle
23150
23151 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
23152
23153         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
23154           drawing code to reflect the size grip changes
23155
23156 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23157
23158         * ImageListStreamer.cs: fix handling of the mask that follows the main
23159         bitmap when deserializing and serialize it properly. The generated mask
23160         should better be a 1bpp image, but I'll do that later.
23161
23162 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
23163
23164         * FileDialog.cs: Show something in the DirComboBox on *nix if the
23165           path doesn't fit into some of our Current.Places
23166
23167 2006-04-13  Jackson Harper  <jackson@ximian.com>
23168
23169         * ComboBox.cs: Use borders instead of drawing our own decorations,
23170         try to obey correct rules for heights.
23171         * Theme.cs:
23172         * ThemeNice.cs:
23173         * ThemeClearLooks.cs:
23174         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
23175         this is now handled by borders.
23176         - Remove unused DrawListBoxDecorationSize method.
23177         
23178 2006-04-13  Mike Kestner  <mkestner@novell.com>
23179
23180         * MenuAPI.cs: null guarding for the disbled click check fixes crash
23181         reported by Alex.
23182
23183 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
23184
23185         * ThemeWin32Classic.cs: 
23186           - Fixed CPDrawStringDisabled
23187           - Corrected drawing of disabled menu items
23188           - Fixed drawing of disabled radio buttons (bug #78095)
23189           - Draw check in a disabled CheckBox with color ControlDark 
23190
23191 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
23192
23193         * Form.cs: Use the provided width when calculating the menu size;
23194           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
23195           and ClientSize.Width won't be updated yet
23196         * Application.cs: Use Visible instead of Show() to make form visible,
23197           this way we create the handle later and menusize is considered
23198
23199 2006-04-12  Mike Kestner  <mkestner@novell.com>
23200
23201         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
23202         reporting.
23203
23204 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
23205
23206         * TextBox.cs: Implemented context menu
23207
23208 2006-04-12  Mike Kestner  <mkestner@novell.com>
23209
23210         * ListView.cs: implement box selection. fixes #77838.
23211         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
23212
23213 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
23214
23215         * XplatUIX11.cs: Added setting of window type when transient window
23216           is created (metacity would move it otherwise)
23217         * X11Structs.cs: Added WINDOW_TYPE atoms
23218         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
23219           background (the control is Opaque but still wants transparent
23220           backgrounds)
23221
23222 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
23223
23224         * Control.cs: Added OnPaintBackgroundInternal to allow controls
23225           that set Opaque but don't mean it (like all ButtonBase-derived
23226           controls) to still draw their background
23227         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
23228           the background
23229
23230 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
23231
23232         * Control.cs (PaintControlBackground): Set the graphics object
23233           on our PaintEvent to null to prevent it from being disposed
23234           when the PaintEvent gets disposed
23235
23236 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
23237
23238         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
23239         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
23240
23241 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
23242
23243         * Control.cs: 
23244           - Added transparency check to BackColor property. Transparent
23245             backgrounds are only allowed if the control styles permit it
23246           - Added recursive painting of parent control background and
23247             foreground if a control with a transparent backcolor is drawn
23248             (Thanks to Tim Ringenback for providing his 'hack' as a base
23249              for this patch) Fixes #77985 and #78026.
23250           - Added Opaque style check before calling OnPaintBackground, no
23251             need to draw the background if the control is opaque
23252           - Removed ControlAccessibleObject owner variable (inherited from
23253             base, no need to define again)
23254           - Added some documentation links explaining the drawing events
23255             and styles
23256
23257 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
23258
23259         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
23260           that the affected control is the located at the left border of our
23261           parent (Fixes #77936)
23262
23263 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
23264
23265         * TextBoxBase.cs: When rendering disabled or readonly controls,
23266           draw the background with 'Control' instead of 'Window' color as
23267           long as the user hasn't specifically set a color
23268
23269 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
23270
23271         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
23272           since that won't be updated if the user types text (only if it's
23273           programatically set)
23274
23275 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
23276
23277         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
23278           layout changes do to app-triggered resizes will have the proper
23279           display rectangle for layout
23280
23281 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
23282
23283         * ThemeWin32Classic.cs:
23284           - Make use of the SystemBrushes and SystemPens wherever possible
23285           - Corrected some highlight colors
23286           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
23287             drawing
23288         * Theme.cs: Added Empty field to CPColor struct
23289
23290 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
23291
23292         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
23293           is displayed when calculating the display rectangle. Thanks to Mike
23294           for teaching me the err of my ways.
23295
23296 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
23297
23298         * ScrollableControl.cs:
23299           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
23300             (instead of 0,0) and we now return the real width/height instead of
23301             just the clientrectangle, adjusted for padding. The rectangle is
23302             now cached and created by the new CalculateDisplayRectangle method.
23303           - Created new CalculateDisplayRectange method, which basically does
23304             what get_DisplayRectangle() did originally, but now using the 
23305             right edge instead of DisplayRectangle to determine the size of
23306             our scrollbars
23307           - get_Canvas(): Fixed it to properly calculate canvas for 
23308             right/bottom controls which seem to be placed to the right/bottom
23309             of any controls that have a fixed location
23310           - Removed TODO that's taken care of
23311           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
23312             and SetDisplayRectLocation according to new MSDN2 docs
23313           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
23314             event when that is called, this is added for compatibility
23315           - ScrollControlIntoView(): Implemented.
23316           - Switched scrollbars to be implicit, they shouldn't be selectable
23317         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
23318           call it when the active control is set/changed
23319         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
23320         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
23321           implicit_control variable (used for native Win32 message generation)
23322         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
23323           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
23324         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
23325         * XplatUIStructs.cs: Added ScrollBarCommands enum
23326
23327 2006-04-10  Jackson Harper  <jackson@ximian.com>
23328
23329         * ButtonBase.cs:
23330         * CheckedListBox.cs:
23331         * ComboBox.cs:
23332         * DataGrid.cs:
23333         * DataGridView.cs:
23334         * Form.cs:
23335         * GroupBox.cs:
23336         * ListBox.cs:
23337         * PrintPreviewControl.cs:
23338         * ProgressBar.cs:
23339         * PropertyGrid.cs:
23340         * Splitter.cs:
23341         * StatusBar.cs:
23342         * TrackBar.cs:
23343         * UpDownBase.cs: Fixup base event overrides.
23344         
23345 2006-04-06  Mike Kestner  <mkestner@novell.com>
23346
23347         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
23348         all user-initiated value changes to min <= value <= max-thumbsz+1.
23349         (set_Value): check for vert/horiz when calculating new thumb position.
23350         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
23351         like MS does.
23352         (OnMouseMoveSB): refactor the thumb dragging code and refine
23353         invalidation logic to reduce flicker.
23354         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
23355         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
23356         (UpdateThumbPosition): small code readability cleanup
23357
23358 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
23359
23360         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
23361           different
23362
23363 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
23364
23365         * ThemeNice.cs: Use a better graphics effect when a button is pressed
23366
23367 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
23368
23369         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
23370         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
23371           This dramatically reduces the number of Pen.Dispose calls. 
23372           Where possible call ResPool methods only once instead of calling it
23373           over and over again (for example for the same color).
23374
23375 2006-04-06  Mike Kestner  <mkestner@novell.com>
23376
23377         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
23378         Also remove an unused private field on the collection. Fixes #77972.
23379
23380 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
23381
23382         * ThemeNice.cs: Added ToolBar drawing code
23383
23384 2006-04-06  Mike Kestner  <mkestner@novell.com>
23385
23386         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
23387         I'm assuming that means we need to look up the toplevel for the
23388         provided control. Fixes the crash trace in #77911 but exposes another
23389         crash in some strange reflection usage in NDocGui.
23390
23391 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
23392
23393         * ThemeNice.cs: Gave it a little silver touch and added Images
23394           method
23395         * FontDialog.cs: FontDialog is not resizable
23396         * FileDialg.cs: Added SizeGripStyle.Show
23397
23398 2006-04-05  Jackson Harper  <jackson@ximian.com>
23399
23400         * KeyboardLayouts.cs: Remove warning.
23401
23402 2006-04-05  Jackson Harper  <jackson@ximian.com>
23403
23404         * Control.cs: Enable OnPaintInternal so we can use it for drawing
23405         all of our controls instead of Paint +=.
23406         * ListBox.cs:
23407         * ListView.cs:
23408         * MenuAPI.cs:
23409         * MessageBox.cs:
23410         * NotifyIcon.cs:
23411         * ProgressBar.cs:
23412         * ScrollBar.cs:
23413         * Splitter.cs:
23414         * StatusBar.cs:
23415         * TabControl.cs:
23416         * TextBoxBase.cs:
23417         * ToolBar.cs:
23418         * TrackBar.cs:
23419         * UpDownBase.cs:
23420         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
23421         use OnPaintInternal. Remove Width/Height and Visible checks in
23422         paint handler, this is done at a higher level now.
23423         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
23424         * PaintEventArgs.cs: Add a handled flag so controls that don't
23425         want anymore painting after OnPaintInternal can make sure OnPaint
23426         isn't called.
23427
23428 2006-04-05  Mike Kestner  <mkestner@novell.com>
23429
23430         * Form.cs: fix the menu WndProc hacks to respect the native enabled
23431         state of the form, so that we don't process events when Modal dialogs
23432         are up. Fixes #77922.
23433
23434 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
23435
23436         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
23437           checking is done.
23438
23439 2006-04-05  Mike Kestner  <mkestner@novell.com>
23440
23441         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
23442
23443 2006-04-05  Mike Kestner  <mkestner@novell.com>
23444
23445         * ListView.cs (HeaderMouseMove): null guarding for the over column
23446         when setting up the drag_to_index.  Fixes #78015.
23447
23448 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
23449
23450         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
23451           in the taskbar. Transient windows seem to accomplish that.
23452
23453 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
23454
23455         * Form.cs:
23456           - Re-enabled CreateParams.X/Y code for FormStartPosition
23457           - Added code for manual placement when creating the Control
23458           - Incomplete patch to treat MDI forms differently when
23459             setting the ClientSizeCore. (Still need to figure out handling
23460             x/y coords there)
23461         * XplatUIX11.cs:
23462           - When we're explicitly setting the X/Y position of a non-Child
23463             window, let the WM know. Metacity really wants this.
23464
23465 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
23466
23467         * ThemeNice.cs: Added CPDrawButton
23468
23469 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
23470
23471         * ThemeNice.cs: Changed the color for focused buttons and activated
23472           the arrows for small scroll buttons.
23473
23474 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
23475
23476         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
23477           anymore. Changed some method modifiers to protected (virtual)
23478         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
23479           changes
23480         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
23481           Updated drawing of menus, buttons and progressbars; added
23482           CPDrawBorder3D 
23483
23484 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23485
23486         * ImageListStreamer.cs: implemented serialization/deserialization
23487         of the images.
23488
23489 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
23490
23491         * ThemeWin32Classic.cs:
23492           - Removed all the DrawFrameControl stuff; CPDrawButton,
23493             CPDrawCheckBox and CPDrawRadioButton are now handled directly
23494             inside the methods
23495           - Updated and corrected the drawing code of CPDrawButton,
23496             CPDrawCheckBox and CPDrawRadioButton to better match ms
23497           - Updated theme checkbox and radiobutton code to use the CP*
23498             methods
23499
23500 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
23501
23502         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
23503           bug is fixed
23504
23505 2006-03-31  Jackson Harper  <jackson@ximian.com>
23506
23507         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
23508         sometimes.
23509         * UpDownBase.cs: Don't CreateGraphics manually, use a
23510         Refresh. Ideally we would invalidate the correct areas here.
23511
23512 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
23513
23514         * XplatUIX11.cs: 
23515           - We now track the mapping state of windows. If a window (or 
23516             one of it's parents) is not mapped we no longer permit
23517             WM_PAINT messages to be generated since we'd otherwise get 
23518             lots of BadMatch X errors. Jackson did all the work figuring
23519             out the problem.
23520           - Destroying the caret if the window it's contained in is 
23521             destroyed. Can't use regular DestroyCaret method since it
23522             might fall into a drawing function (trying to remove the
23523             caret) and with that generate new BadMatch errors. Again,
23524             Jackson tracked this down.
23525           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
23526             make sure we send the messages to all windows. (The old code
23527             would send the WM_DESTROY to the window, and then all child
23528             windows would be 'gone' because the WM_DESTROY handle lookup
23529             would no longer find the destroyed window)
23530         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
23531         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
23532
23533 2006-03-31  Jackson Harper  <jackson@ximian.com>
23534
23535         * ScrollableControl.cs: Dont recalc if we are not visible.
23536
23537 2006-03-31  Mike Kestner  <mkestner@novell.com>
23538
23539         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
23540         the visibility branch.
23541
23542 2006-03-31  Jackson Harper  <jackson@ximian.com>
23543
23544         * ScrollBar.cs: Cap values when incrementing/decrementing.
23545
23546 2006-03-31  Mike Kestner  <mkestner@novell.com>
23547
23548         * MenuAPI.cs: setup menu.tracker for popup/context menus.
23549         * ToolTip.cs: guard against timer expirations with no active control.
23550         Not sure why it happened.
23551
23552 2006-03-31  Mike Kestner  <mkestner@novell.com>
23553
23554         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
23555         text.
23556         * ToolTip.cs: Position the tooltip based on where the cursor is at
23557         popup time, not at MouseEnter time.  Add a Down state so that we don't
23558         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
23559         positioning offset. Lookup DisplaySize at positioning time, since it
23560         can theoretically change during invocation.
23561         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
23562         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
23563
23564 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
23565
23566         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
23567           Fixes behaviour when the Text property of the box is String.Empty
23568
23569 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
23570
23571         * XplatUIX11.cs: Only send mouseleave for our client windows, not
23572           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
23573           a window)
23574
23575 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
23576
23577         * FileDialog.cs: Visual enhancement for the popup buttons in 
23578           PopupButtonPanel
23579
23580 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
23581
23582         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
23583           code
23584
23585 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
23586
23587         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
23588           highlighted menu items to match ms
23589
23590 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
23591
23592         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
23593
23594 2006-03-30  Mike Kestner  <mkestner@novell.com>
23595
23596         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
23597         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
23598         go active to account for HotLight to Selected transition.
23599         * MenuItem.cs: add internal Selected prop. Fill out the Status
23600         property by calculating it from item info. Add HotLight,
23601         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
23602
23603 2006-03-30  Mike Kestner  <mkestner@novell.com>
23604
23605         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
23606
23607 2006-03-29  Jackson Harper  <jackson@ximian.com>
23608
23609         * Form.cs: Implement TODO.
23610
23611 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
23612
23613         * PrintPreviewDialog.cs: Implemented missing methods and events; still
23614           missing proper dialog setup in the constructor
23615
23616 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
23617
23618         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
23619         * Control.cs:
23620           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
23621           - Fixed ResetBindings and removed TODO
23622           - Added check for cross-thread calls to get_Handle()
23623           - Added Marshaller attribute for set_Font to satisfy class status
23624         * FontDialog.cs: Removed TODOs that seemed implemented
23625         * UpDownBase.cs: Removed unneeded TODO and Fixme
23626         * MessageBox.cs: Implemented support for Default button and removed TODO
23627         * FileDialog.cs: Removed obsolete TODO
23628         * DomainUpDown.cs: Removed obsolete TODO
23629         * ButtonBase.cs: Removed obsolete TODO
23630         * XplatUIWin32.cs: Removed obsolete TODO
23631         * Form.cs:
23632           - Removed obsolete TODO
23633           - Calling CheckAcceptButton when the acceptbutton is changed to allow
23634             internal status updates
23635           - Making sure the active control is selected when the control is created
23636         * CurrencyManager.cs: Removed obsolete TODO
23637
23638 2006-03-29  Mike Kestner  <mkestner@novell.com>
23639
23640         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
23641         of PrintPreviewDialog and RichTextBox.
23642
23643 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
23644
23645         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
23646           DarkDark, Light and LightLight colors for a specific color
23647         * ThemeWin32Classic.cs:
23648           - Use Button drawing code to draw RadioButtons and CheckBoxes with
23649             Appearance = Button 
23650           - Make use of the new ResPool helper CPColor
23651           - Draw ProgressBar and StatusBar with correct 3D borders
23652
23653 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
23654
23655         * ColorDialog.cs: Return selected color. Fixes bug #77940.
23656
23657 2006-03-28  Mike Kestner  <mkestner@novell.com>
23658
23659         * ListView.cs: fix Icon layout to plan for scrollbar widths when
23660         calculating col/row counts.
23661
23662 2006-03-28  Mike Kestner  <mkestner@novell.com>
23663
23664         * ColumnHeader.cs:
23665         * ListView.cs:
23666         * ListViewItem.cs:
23667         * Menu.cs: 
23668         switch to explicit interface method implementation for some methods
23669         corcompare identifies as inconsistent with MS.
23670
23671 2006-03-28  Mike Kestner  <mkestner@novell.com>
23672
23673         * MainMenu.cs: 
23674         * Menu.cs:
23675         add a few missing methods from the class status output.
23676
23677 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
23678
23679         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
23680           correct.
23681
23682 2006-03-28  Mike Kestner  <mkestner@novell.com>
23683
23684         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
23685
23686 2006-03-27  Mike Kestner  <mkestner@novell.com>
23687
23688         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
23689         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
23690
23691 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
23692
23693         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
23694
23695 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
23696
23697         * ThemeWin32Classic.cs:
23698           - GroupBox: Inserted a little gap between the text and the lines
23699             on the right side
23700           - Made the code in CPDrawBorder3D more readable
23701           - Corrected the drawing location of the up and down arrows in 
23702             CPDrawScrollButton
23703
23704 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
23705
23706         * ControlPaint.cs: Corrected line widths in DrawBorder for
23707           ButtonBorderStyle Inset and Outset
23708
23709 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
23710
23711         * ThemeWin32Classic.cs:
23712           - Rewrote the totally broken CPDrawBorder3D method. That was
23713             one of the main problems for the terrific ThemeWin32Classic
23714             look
23715           - Updated and corrected Button drawing
23716           - Correct the dimensions of the SizeGrip to match ms ones
23717           - Removed a small drawing glitch in DrawComboBoxEditDecorations
23718         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
23719           Border3DStyle.Sunken to match ms.
23720
23721 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
23722
23723         * ThemeWin32Classic.cs: First small part of the "de-uglify
23724           ThemeWin32Classic" effort, SizeGrip
23725
23726 2006-03-24  Jackson Harper  <jackson@ximian.com>
23727
23728         * XplatUIX11.cs: Give a max idle time of one second, this matches
23729         MS and forces an Idle event every second when there are no other
23730         events in the queue.
23731
23732 2006-03-24  Mike Kestner  <mkestner@novell.com>
23733
23734         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
23735         * ListView.Item.cs: fix layout issues with null image lists and images
23736         smaller than checkbox size.
23737         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
23738         mode like MS does.  It's weird, but consistent.  ;-)
23739         Fixes #77890.
23740
23741 2006-03-24  Mike Kestner  <mkestner@novell.com>
23742
23743         * ListView.cs: Scroll wheel support for the item control.  Fixes
23744         #77839.
23745
23746 2006-03-23  Jackson Harper  <jackson@ximian.com>
23747
23748         * ScrollableControl.cs: Special case negative sized areas, not
23749         zero.
23750         * MonthCalendar.cs: Save the rect of the clicked date so we can
23751         use it for invalidation.
23752         - Try to cut down on the number of invalidates
23753         - Invalidate the rect the mouse is over and was over when moving
23754         the mouse, so we get the focus box following the cursor.
23755
23756 2006-03-23  Mike Kestner  <mkestner@novell.com>
23757
23758         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
23759         focus rectangle drawing. Fixes #77835.
23760
23761 2006-03-23  Mike Kestner  <mkestner@novell.com>
23762
23763         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
23764         the if and else if and reverting back to the original == check on the
23765         None conditional.
23766
23767 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
23768
23769         * FontDialog.cs: Update the example panel if the selected index of
23770           the fontListBox changes.
23771
23772 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
23773
23774         * FileDialog.cs: Make FileDialog remember which directory it was in
23775           last in the same execution.
23776
23777 2006-03-22  Mike Kestner  <mkestner@novell.com>
23778
23779         * FileDialog.cs: make the DropDownMenu on the toolbar display
23780         RadioChecks since they are mutually exclusive and that's what MS does.
23781
23782 2006-03-22  Mike Kestner  <mkestner@novell.com>
23783
23784         * Theme.cs: add Color param to CPDrawMenuGlyph.
23785         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
23786         checks and radio marks and arrows are visible on highlighted items.
23787         * ControlPaint.cs: update to use new Theme signature.
23788
23789 2006-03-22  Mike Kestner  <mkestner@novell.com>
23790
23791         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
23792         is active. Fixes #77870.
23793
23794 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
23795
23796         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
23797           to be focused/selected after startup
23798
23799 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
23800
23801         * ColorDialog.cs: 
23802           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
23803             CustomColors and ShowHelp properties
23804           - Some internal rewrites to get better results when using the
23805             ColorMatrix
23806
23807 2006-03-22  Mike Kestner  <mkestner@novell.com>
23808
23809         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
23810         HoverSelection.  Fixes #77836.
23811
23812 2006-03-22  Mike Kestner  <mkestner@novell.com>
23813
23814         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
23815         ToggleButtons.  (De)Sensitize the Back button around a stack count of
23816         1, not 0.  Update ButtonSize based on a pixel count of the win32
23817         control.  Adjust the toolbar size/location for new button size.
23818
23819 2006-03-22  Jackson Harper  <jackson@ximian.com>
23820
23821         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
23822         true.
23823         * ScrollBar.cs: When doing increments and decrements we need to
23824         set the Value property so that ValueChanged gets raised. A
23825         possible optimization here would be to make an internal SetValue
23826         that doesn't invalidate immediately.
23827         * ToolTip.cs: Tooltips get added to their container (when
23828         supplied) so they get disposed when the container is disposed.
23829         - Don't create tooltips for String.Empty. This prevents all these
23830         little 2-3 pixel windows from showing up when running nunit-gui
23831         and driving me mad.
23832         * Form.cs: Don't set topmost when setting the owner if the handles
23833         haven't been created yet.  The topmost set will happen when the
23834         handles are created.
23835
23836 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
23837
23838         * XplatUIX11.cs:
23839           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
23840           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
23841             visible (to allow them to recalculate their sizes)
23842
23843 2006-03-21  Mike Kestner  <mkestner@novell.com>
23844
23845         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
23846         methods. Removed a ton of redundant code.  Still not really happy with
23847         the border rendering, but I think that's mainly because of the
23848         ControlDarkDark being black instead of a dark grey. Depending on how 
23849         close we want to be, we might want to revisit those color choices.
23850         Among the new features added during the refactor were DropDownArrow
23851         pressed rendering, Disabled image rendering.  Proper flat appearance
23852         boundary rendering.  Removed the Divider and Wrapping dividers since I
23853         can't figure out any combination of themes and conditions to make the
23854         MS control draw a horizontal line on a toolbar despite what the
23855         Divider property docs indicate.
23856         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
23857         conditions and incorrect layout.  Updated to coding standard.
23858         * ToolBarButton.cs: refactored layout and positioning code from
23859         ToolBar to here.  Invalidate wherever possible instead of forcing
23860         redraws of the whole toolbar. 
23861         (Known remaining issues: explicit ButtonSize smaller than provided
23862         images.)
23863
23864 2006-03-21  Mike Kestner  <mkestner@novell.com>
23865
23866         * ContextMenu.cs (Show): use the position parameter instead of just
23867         showing at the MousePosition.
23868
23869 2006-03-21  Jackson Harper  <jackson@ximian.com>
23870
23871         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
23872         control handle this.
23873         * TreeNodeCollection.cs: If we are clearing the root node we need
23874         to reset top_node so calcs can still happen.
23875         * ThemeWin32Classic.cs: This is a Flags so we need to check
23876         properly.
23877         
23878 2006-03-21  Jackson Harper  <jackson@ximian.com>
23879
23880         * DataGrid.cs: Create columns when the binding context has been
23881         changed.
23882         * X11Structs.cs: Keysyms are uints.
23883         - Add size to fix build.
23884
23885 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
23886
23887         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
23888           XplatUIOSX.cs: 
23889           - Added ResetMouseHover method to allow controls to retrigger
23890             hovering if they need it more than once
23891           - Implemented MouseHoverTime and MouseHoverSize properties
23892         * Timer.cs: Start() must reset the interval
23893         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
23894           properties
23895
23896 2006-03-21  Jackson Harper  <jackson@ximian.com>
23897
23898         * X11Keyboard.cs: improved layout detection. Move the nonchar
23899         tables into this file.
23900         * KeyboardLayouts.cs: Move the tables into resource files.
23901
23902 2006-03-21  Mike Kestner  <mkestner@novell.com>
23903
23904         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
23905
23906 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
23907
23908         * Mime.cs: Various speed optimizations. Looking up mime types
23909           is now 2 times faster than before
23910
23911 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
23912
23913         * CreateParams.cs: Added internal menu field
23914         * Control.cs: 
23915           - Switched call order for UpdateBounds; now we always call
23916             the one that also takes ClientSize, and we're calculating the 
23917             client size via driver method in the others. The previous
23918             method of tracking client size by difference wasn't working
23919             for forms where even the starting client size wouldn't match
23920             the overall form size (due to borders) (Part of fix for #77729)
23921           - CreateParams(): Do not use parent.Handle unless the handle is
23922             already created. Causes havoc with Nexxia and throws off our
23923             creation of controls
23924         * XplatUIX11.cs:
23925           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
23926           - Switched handling of ConfigureNotify over to new PerformNCCalc 
23927             method (consolidates code)
23928           - Changed RequestNCRecalc to use new PerformNCCalc method
23929           - Added calls to RequestNCRecalc when menus and borders are changed
23930             to allow app to set NC size. (Part of fix for #77729) This matches
23931             when MS send a WM_NCRECALC on Win32 windows.
23932           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
23933             (Part of fix for #77729). This matches what MS does, they also
23934             send that message when the form is made visible.
23935           - XException.GetMessage: Improved usability of X errors by including
23936             a translation of the window into Hwnd and Control class
23937           - Improved debug info for window creation, reparenting and destruction
23938           - Created helper method WindowIsMapped() [Currently not used]
23939         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
23940         * Form.cs:
23941           - CreateParams: Now setting our menu on the new internal menu field
23942           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
23943             avoid calculating the same property twice
23944         * Hwnd.cs:
23945           - Improved usability of ToString() for debugging purposes
23946           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
23947             determine the height of the menu, instead of just the font. This
23948             required to also create a graphics context and to keep a bmp 
23949             around (for performance reasons)
23950
23951 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
23952
23953         * MenuAPI.cs: Added OnMouseUp method
23954         * Form.cs:
23955           - Now remembering the requested client size, avoids size errors
23956           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
23957             instead of base if the menu is active. This is required due to
23958             control now capturing and releasing on down/up and it would
23959             prematurely release our menu capture
23960
23961 2006-03-17  Jackson Harper  <jackson@ximian.com>
23962
23963         * KeyboardLayouts.cs: Add the czech layouts.
23964
23965 2006-03-16  Jackson Harper  <jackson@ximian.com>
23966
23967         * Control.cs: Use the viewport space when sizing not the controls
23968         client size, so things like ScrollableControl that effect the
23969         viewport size (when scrollbars are added) are computed correctly.
23970         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
23971         of ManagerEntrys.
23972         - Handle creating BindingManagers for null data sources.
23973         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
23974         source, otherwise when rows are added they are added to the 'fake'
23975         datasource and we will crash when trying to set the position in
23976         those rows.
23977         - Use Implicit scrollbars on the datagrid so they arent
23978         selectable.
23979         
23980 2006-03-16  Jackson Harper  <jackson@ximian.com>
23981
23982         * Binding.cs:
23983         * InternalWindowManager.cs:
23984         * MdiWindowManager.cs:
23985         * X11Keyboard.cs: I really want Mike to love me again (fix
23986         compiler warnings).
23987
23988 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
23989
23990         * DataGrid.cs:
23991           - OnMouseDown: Switch to editing mode when clicking on the cell
23992                          even if we're clicking on the cell that's currently 
23993                          selected
23994           - ProcessGridKey: Left/Right now wrap like MS.Net does
23995           - ProcessGridKey: Tab now knows to add a new row when tab is
23996                             pressed in the cell of the last column of the 
23997                             last row
23998           - ProcessGridKey: Enter now adds another row  if pressed in the last
23999                             row and selectes the new row, same column cell
24000           - ProcessGridKey: Home/End navigate columns, not rows, like 
24001                             originally implemented
24002           - Broke ProcessKeyPreview code out into an extra Internal method
24003             so it can be called from the edit code
24004         * DataGridTextBox.cs (ProcessKeyMessage):
24005           - Switched to accept Tab keypresses
24006           - Added F2 handling to allow jumping to the end of the edited cell
24007           - Added logic to allow moving caret left/right inside edited cell
24008             and making the edited cell jump when the caret hits cell borders
24009           - Tab and Enter are now passed to the datagrid after being handled
24010         * TextBoxBase.cs:
24011           - Removed capture code now that Control handles it
24012           - set_SelectionStart now ensures caret is visible
24013
24014 2006-03-16  Jackson Harper  <jackson@ximian.com>
24015
24016         * TrackBar.cs: Debackwards the increment/decrement for handling
24017         mouse clicks on the bar with vertical trackbars.
24018         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
24019         bottom to match MS.
24020
24021 2006-03-16  Mike Kestner  <mkestner@novell.com>
24022
24023         * ListView.cs: make shift/ctrl keyboard and mouse selection 
24024         consistent with the MS control. Fix a bug in
24025         SelectedListViewItemCollection.Clear that was pissing me off for the
24026         better part of a day because the collection was being altered
24027         underneath us as we walked the list.
24028
24029 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
24030
24031         * Control.cs: Not sure how we could miss this so long, but it seems
24032           that MS.Net has Capture set all the way from before calling 
24033           OnMouseDown through sending the mouse events until after
24034           OnMouseUp. This will fix DataGrid's selection being set to end
24035           at the location of the MouseUp.
24036
24037 2006-03-15  Jackson Harper  <jackson@ximian.com>
24038
24039         * BindingContext.cs: Check the binding after its added so that it
24040           can initialize the binding managers and hookup to events.
24041         * Binding.cs: Data members seem to sometimes include rows/cols in
24042           the format Row.Column we now take this into account.
24043           - Hookup to the position changed event so we can update the
24044           control when the position has changed in the data set.
24045         * CurrencyManager.cs: Take into account the row/col naming
24046           convention when creating dataset tables.
24047         * BindingContext.cs: Using a newer better way of storing
24048           datasource/datamember pairs.  Hopefully this better matches MS for
24049           looking up binding managers.
24050
24051
24052 2006-03-15  Jackson Harper  <jackson@ximian.com>
24053
24054         * BindingContext.cs: The currency manager needs the data member
24055         name, if the member is a data set we use the name to find the
24056         correct table.
24057         * CurrencyManager.cs: When creating the list prefer an IList over
24058         an IListSource.
24059         - Attempt to create a DataTable from a DataSet (TODO: might need
24060         some better error checking here, although MS doesn't seem to have much)
24061         - If we have a DataTable create a view and use it as our list.
24062
24063 2006-03-15  Mike Kestner  <mkestner@novell.com>
24064
24065         * ListView.cs: keep a matrix of the icon mode layout to facilitate
24066         keyboard navigation. Support Up/Down/Left/Right selection correctly
24067         for all 4 View modes.
24068         * ListViewItem.cs: add internal row/col fields for icon layouts.
24069
24070 2006-03-15  Jackson Harper  <jackson@ximian.com>
24071
24072         * TabControl.cs: Redraw the tabs when we resize so their newly
24073         calculated sizes are drawn on screen.
24074         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
24075         composite characters.
24076         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
24077         - filter events so that composite characters can be created
24078         patches by peter
24079         * X11Structs.cs: Add XIMProperties enum.
24080
24081 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
24082
24083         * Control.cs (BringToFront, SendToBack): Don't use window or handle
24084           unless it's created
24085
24086 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
24087
24088         * Control.cs (PerformLayout): We don't need to consider visiblity
24089           for anchoring, only for docking. This fixes 'whacky' alignment
24090           in listbox and other controls that use implicit scrollbars after
24091           the previous PerformLayout patch
24092         * ListBox.cs: Switched to use implicit scrollbars
24093           
24094 2006-03-14  Mike Kestner  <mkestner@novell.com>
24095
24096         * ToolBar.cs: 
24097         * VScrollBar.cs:
24098         - chain up the "new event" overrides to base and use
24099         OnEvent to raise them.  Part of fix for bug #76509.
24100
24101 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
24102
24103         * FileDialog.cs: Do not select an item in the parent directory
24104           on backspace
24105
24106 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
24107
24108         * Control.cs (PerformLayout): It would seem that we considered
24109           invisible windows for our layout. Not quite the right thing
24110           to do. Now we don't any longer, thereby fixing bug #76889.
24111
24112 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
24113
24114         * Control.cs (CanFocus): I goofed. A control can have focus 
24115           even though it's not selectable. Made it match MS docs.
24116
24117 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
24118
24119         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
24120           center by default (fixes #76895)
24121         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
24122           all uses of Border3DSides.All with the explicit ORd together
24123           Left|Right|Top|Bottom because I assume that nobody was aware 
24124           that All also implies a center fill. Most places I checked had
24125           a fill right above.
24126         * ProgressBarStyle.cs: Added
24127
24128 2006-03-13  Mike Kestner  <mkestner@novell.com>
24129
24130         * ListView.cs: fix breakage in drag shadow header positioning 
24131         from Peter's csc compilation fix.
24132
24133 2006-03-13  Mike Kestner  <mkestner@novell.com>
24134
24135         * ListView.cs: fix NRE produced by backspacing twice in a focused
24136         FileDialog.
24137
24138 2006-03-13  Mike Kestner  <mkestner@novell.com>
24139
24140         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
24141
24142 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
24143
24144         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
24145           be changed
24146         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
24147           the allowed size before making programmatic size changes
24148
24149 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
24150
24151         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
24152           set, metacity is broken and will still use the emty sizes in 
24153           the struct. (Fix for #77089)
24154
24155 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
24156
24157         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
24158           WindowExStyles and marked both enums as Flags
24159         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
24160           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
24161           to match WindowStyles split
24162         * XplatUIX11.cs:
24163           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
24164           - Updated to match WindowStyles split
24165         * XplatUIWin32.cs:
24166           - Fixed FosterParent creation, was using ExStyle on the Style field
24167             (This should help with Popup focus issues)
24168           - Updated to match WindowStyles split
24169
24170 2006-03-13  Jackson Harper  <jackson@ximian.com>
24171
24172         * MdiWindowManager.cs: Use the system menu height. Fixes some
24173         strange sizing issues.
24174
24175 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
24176
24177         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
24178         * TextBoxBase.cs:
24179           - Scroll to caret after inserting text (#77672)
24180           - Make scroll range one pixel higher, fixes off-by-one error (and
24181             makes underlines visible on the last line)
24182
24183 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
24184
24185         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
24186           the keyboard state from being stuck with keys in 'pressed' state when
24187           focus is switched away via keyboard
24188         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
24189           reset the keyboard if no X11 KeyUp events are expected to come
24190         * X11Structs.cs: Switched type of Visible to bool to match driver
24191
24192 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
24193
24194         * TextControl.cs:
24195           - Switched caret to be just 1 pixel wide, matches MS and looks less
24196             clunky
24197           - Moved caret display 1 pixel down from the top of the control
24198             to improve view
24199           - InsertCharAtCharet: Update the selection start if moving the caret
24200             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
24201           - No longer always creating the caret when the caret methods are
24202             called. Only the actual ShowCaret/HideCaret will do that now
24203           - Only setting caret visible if the owner control has focus
24204           - UpdateView: Added invalidation-shortcut logic for center and right 
24205             aligned text. Previously we'd update all according to the left
24206             logic which caused drawing errors. Also fixed height of invalidated
24207             areas, now properly invalidating the whole area (was off-by-one)
24208           - owner_HandleCreated: Always generate the document when the
24209             handle is created; this ensures that 
24210         * TextBoxBase.cs:
24211           - Fixed situation where caret would disappear under the right
24212             window border, also improved scrolling behaviour on left-
24213             aligned textboxes
24214           - Fixed right-aligned textboxes to have a border to the
24215             right instead of the caret being under the right border
24216         * XplatUIX11.cs:
24217           - Switched from 'nested' to simple visible/not visible tracking 
24218             for caret (part of fix for #77671)
24219           - No longer passing through translated FocusIn/FocusOut messages
24220             since we were notifying too often and the wrong windows. Instead
24221             we just notify our focussed window of receiving or loosing focus
24222         * XplatUIWin32.cs: Switched from 'nested' show/hide 
24223           counting for caret to simple visible yes/no behaviour (part of 
24224           fix for #77671)
24225
24226 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
24227
24228         * Mime.cs: Remove debug code...
24229
24230 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
24231
24232         * MimeGenerated.cs: Removed
24233         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
24234           and subclasses) from /usr/(local/)share/mime and
24235           $HOME/.local/share/mime.
24236
24237 2006-03-10  Jackson Harper  <jackson@ximian.com>
24238
24239         * MdiWindowManager.cs: Recalc the NC area when a window is
24240         maximized/restored so that the menu area is drawn on forms that
24241         don't have a menu.
24242
24243 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
24244
24245         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
24246           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
24247           us to force a WM_NCCALCRESIZE message being sent. This is needed
24248           for MDI maximizing.
24249
24250 2006-03-10  Jackson Harper  <jackson@ximian.com>
24251
24252         * Form.cs: We need to use the ActiveMenu when calculating menu
24253         height.
24254         - Fix nullref when the window manager hasn't been created yet.
24255         * Control.cs: Fix nullref when we try to bring a control to the
24256         front that has no parent.
24257         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
24258         height.
24259         - Add a dummy item to the maximized menu so it always has the
24260         correct height. Otherwise when there are no menus we don't get our
24261         icon and buttons.
24262         
24263
24264 2006-03-10  Jackson Harper  <jackson@ximian.com>
24265
24266         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
24267         stuff.
24268         * Form.cs: Make the window_state internal so the window managers
24269         can track it.
24270         - When an MDI child is maximized let its window manager create the
24271         main menu (so it can add its icon).
24272         - Notify the window managers of state changes
24273         - Let the window manager paint its buttons and handle button
24274         clicks on the menu when it is maximized.
24275         * InternalWindowManager.cs: Move the prev_bounds into the mdi
24276         window manager, since tool windows don't use it, only mdi windows.
24277         - Tell the main form that we don't want it to handle NCPAINT
24278         itself to avoid extra painting.
24279         - Handle clicks on a maximized windows menu.
24280         - Handle window state changes
24281         - Handle minimize/maximize clicks correctly by setting the window state.
24282         * MdiWindowManager.cs: Add an icon menu that (the menu you get
24283         when clicking on the forms icon).
24284         - New method to create a forms maximized menu. This is its normal
24285         menu + an icon.
24286         - Handle window state changes.
24287         - Handle sizing of maximized windows.  Maximized windows are just
24288         drawn bigger then the parent visible area. All controls are still
24289         there, they are just outside the visible area (this matches windows).
24290         * MdiClient.cs: No scrollbars when a child window is maximized.
24291         - Let the children windows figure out how big they should be when
24292         sizing maximized windows.
24293         - Implement a version of ArrangeIconicWindows somewhat similar to
24294         Windows version.  There are some little differences, but I don't
24295         think any app will rely on the layout of minimized mdi windows.
24296
24297 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
24298
24299         * Padding.cs: Several fixes to allow compiling with csc 2.0
24300
24301 2006-03-09  Jackson Harper  <jackson@ximian.com>
24302
24303         * Menu.cs:
24304         * MenuItem.cs: Cheap hack so we can add items to the list without
24305         the events being raised.  This allows adding mdi items during
24306         drawing. TODO: Should probably find a better time to add the items.
24307
24308 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
24309
24310         * ThemeWin32Classic.cs:
24311           - CheckBox_DrawText: Added logic to not wrap if not enough space
24312             is available (Fix for bug #77727)
24313           - RadioButton_DrawText: Added logic not to wrap if not enough
24314             space is available (Fix for bug #77727). Also removed some
24315             duplicate code, DrawString always drawing the regular text
24316             before hitting the if statement.
24317
24318 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
24319
24320         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
24321
24322 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
24323
24324         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
24325         * ContainerControl.cs: Partial implementation of some 2.0 scaling
24326           methods. Moved the new 2.0 properties into alphabetical order with
24327           other properties and added MonoTODO tags
24328
24329 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
24330
24331         * AutoScaleMode.cs: Added. Fix build.
24332
24333 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
24334
24335         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
24336           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
24337           and was requiring premature handle creation for calls from above
24338         * Form.cs, Control.cs: Removed handle arguments from calls to
24339           CalculateClientRect()
24340
24341 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
24342
24343         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
24344           drag_column.column_rect is MarshalByRef and can't be used that way
24345
24346 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
24347
24348         * AxHost.cs: Added deserialization constructor for 
24349           AxHost+State (fixes 77743)
24350
24351 2006-03-09  Mike Kestner  <mkestner@novell.com>
24352
24353         * ListView.cs: 
24354         - Added column drag reordering for details view.
24355         - fixed behavior when mouse is dragged off column and
24356         AllowColumnReorder is false.
24357         * ColumnHeader.cs: clone the format too in Clone.
24358         * Theme.cs: add DrawListViewHeaderDragDetails method.
24359         * ThemeWin32Classic.cs:
24360         - impl new method for drawing drag column shadows and targets.
24361         - support column offset for details mode in DrawListViewItem.
24362
24363 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
24364
24365         * TextControl.cs: Reset the char_count when the document is cleared
24366           (Fixes bug reported on mono-winforms mailing list)
24367
24368 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
24369
24370         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
24371           of calling base we simply process the key ourselves, since both
24372           DefWindowProc and the handled method would set m.Result. 
24373           (Fixes #77732)
24374
24375 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
24376
24377         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
24378           method also moves the window; instead implemented a copy of
24379           Control.ScaleCore (Part of fix for #77456)
24380         * TextBoxBase.cs: 
24381           - Created new CreateGraphicsInternal method to allow providing
24382             a graphics context when no handle is created without triggering
24383             handle creation. (Part of fix for #77456)
24384           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
24385         * TextControl.cs: 
24386           - Switched Constructor to require TextBoxBase instead of Control (to
24387             allow uncast access to CreateGraphicsInternal)
24388           - Safeguarded use of owner.Handle property. No longer accessing it
24389             unless the handle is already created.
24390           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
24391           - Now triggering a recalc when owning control becomes visible
24392         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
24393           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
24394           premature handle creation (Part of fix for #77456)
24395         * Control.cs:
24396           - We now only destroy our double-buffering buffers when the
24397             control is resized or disposed, but not when visibility
24398             changes. (The code even re-created them twice every time)
24399           - Now requiring a redraw of the buffer on visibility changes
24400             (fixes bug 77654 part 2)
24401           - Not passing OnParentVisibleChanged up unless the control
24402             is visible
24403           - CanFocus: Fixed to match MS documentation
24404           - Focus: Fixed to return actual focus state and to check if
24405             setting focus is legal before setting it
24406
24407 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
24408
24409         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
24410           when to draw focus rectangle by looking at parent focus and
24411           selected state instead. This fixes TabPages on Linux sometimes
24412           having none or multiple focus rectangles.
24413         * XplatUIX11.cs (SetFocus): 
24414           - Don't set the focus if the same window already has focus
24415           - Use SendMessage instead of PostMessage (like it's Win32
24416             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
24417             to match MS behaviour
24418         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
24419           are not selectable.
24420
24421 2006-03-07  Jackson Harper  <jackson@ximian.com>
24422
24423         * PictureBox.cs: Revert line I accidently committed last week.
24424
24425 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
24426
24427         * Control.cs: 
24428           - Added new IsRecreating and ParentIsRecreating properties to
24429             allow testing if RecreateHandle has been called on ourselves
24430             or one of our parents
24431           - WndProc(WM_DESTROY): If our control handle is being recreated
24432             we immediately need to create the handle when receiving the
24433             destroy, that way our child windows find a valid parent handle
24434             when they themselves are being recreated upon WM_DESTROY receipt
24435             (fix for bug #77654 part 1)
24436         * XplatUIX11.cs:
24437           - DestroyWindow: WM_DESTROY must be sent to our own window before
24438             notifying any child windows. MS documents that child windows
24439             are still valid when WM_DESTROY is received. (Control now relies on
24440             this behaviour)
24441           - Added some fine-grain debug options
24442
24443 2006-03-06  Jackson Harper  <jackson@ximian.com>
24444
24445         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
24446         box and base calculations off this.
24447         * MdiChildContext.cs:
24448         * MdiWindowManager.cs: Don't need to ensure scrollbars here
24449         anymore.
24450         
24451 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
24452
24453         * Splitter.cs: In situations where the affected control is added
24454           to the parent's control list after the splitter, we would not
24455           populate affected. Now we try populating it on mousedown, if
24456           it's not already set, and force it to be re-set whenever our
24457           parent changes.
24458
24459 2006-03-03  Matt Hargett  <matt@use.net>
24460
24461         * Control.cs: implement Control.Padding
24462         * Padding.cs: -Padding.All returns -1 when constructing with the
24463         implicit default ctor
24464         -Padding.ToString() matches MS.NET
24465         * ContainerControl.cs: implement
24466         ContainerControl.AutoScaleDimensions
24467         * ListControl.cs: implement ListControl.FormattingEnabled
24468         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
24469         * ButtonBase.cs:
24470         * TabPage.cs: Implement UseVisualStyleBackColor.
24471         * PictureBox.cs: Implement PictureBox.InitialImage.
24472
24473 2006-03-03  Mike Kestner  <mkestner@novell.com>
24474
24475         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
24476         event declarations to proxy to base event.
24477         * ListViewItem.cs: update to use ItemControl.
24478         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
24479         * ThemeWin32Classic.cs: update to new ListView theme API and fix
24480         column header label rendering for 0 width columns.
24481
24482 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
24483
24484         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
24485           that causes the control to be created. Fixes #77476.
24486
24487 2006-03-02  Jackson Harper  <jackson@ximian.com>
24488
24489         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
24490         expose_pending.
24491
24492 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
24493
24494         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
24495           passed in for the EventArgs (fixes #77690)
24496
24497 2006-03-01  Jackson Harper  <jackson@ximian.com>
24498
24499         * ScrollBar.cs: Refresh afterbeing resized.
24500
24501 2006-02-28  Mike Kestner  <mkestner@novell.com>
24502
24503         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
24504         Clean up a tracker compile warning.
24505         * MenuItem.cs: add internal PerformPopup method.
24506         [Fixes #77457]
24507
24508 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
24509
24510         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
24511           implicit expose) when the text is set to null
24512
24513 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
24514
24515         * RichTextBox.cs (FlushText): When newline is true, we always
24516           need to split the line, even if no text is on it and we may
24517           never eat newlines. (Fixes #77669)
24518
24519 2006-02-28  Mike Kestner  <mkestner@novell.com>
24520
24521         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
24522         and set Selected instead.
24523         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
24524         collections.
24525
24526 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
24527
24528         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
24529
24530 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
24531
24532         * FontDialog.cs:
24533           - Got rid of the panel. All controls are now directly added to
24534             the dialog form
24535           - It is now possible to set a font with the Font property
24536           - MinSize and MaxSize property do now what they should
24537           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
24538           - Searching and selecting a font with the font textbox works now,
24539             the same applies to the style and size textbox
24540           - Draw the correct 3D border in the example panel
24541           - Fixed a little mem leak (unused fonts didn't get disposed)
24542           - Many other internal updates/rewrites...
24543           - Fix typo
24544
24545 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
24546
24547         * TextControl.cs: 
24548           - InsertRTFFromStream: Added 'number of characters inserted' argument
24549           - set_SelectedRTF: Now using the number of characters to calculate
24550             the new location for the selection and cursor (x/y cannot be used
24551             due to potentially already wrapped text)
24552
24553 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
24554
24555         * TextControl.cs: Added property and implemented means to allow 
24556           disabling recalculation of a document (can be used to speed up
24557           multiple inserts and is needed to make RTF inserts predictable, see
24558           bug #77659)
24559         * RichTextBox.cs: Using the new NoRecalc property of Document to
24560           keep x/y insert locations predictable. Also makes it faster inserting
24561           large chunks of RTF
24562
24563 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
24564
24565         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
24566           it's easier for a child control to handle the other messages without
24567           having to duplicate the special functionality
24568         * TextBoxBase.cs
24569           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
24570             code to handle processing the key ourselves, in order to get 
24571             access to the result of KeyEventArgs.Handled. We now only call 
24572             ProcessKey if they key hasn't been handled already. Fixes #77526.
24573           - set_Text: If null or empty string is given, just clear the 
24574             document. Fixes part of #77526
24575
24576 2006-02-27  Jackson Harper  <jackson@ximian.com>
24577
24578         * SizeGrip.cs: Paint the background color before painting the grip
24579         so things look right.
24580         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
24581
24582 2006-02-27  Mike Kestner  <mkestner@novell.com>
24583
24584         * ListView.cs:
24585           - Restructure layout and invalidation model to remove a ton of
24586           flicker from the control and speed up performance in general.
24587           - Add manual column resize, flickers like crazy, but I already have
24588           some ideas on how I'll fix that. (#76822)
24589           - Merge the three Icon-based views into a single layout method.
24590           - Move item selection interaction logic from the item since 
24591           interaction with the collections is more appropriate to the view.
24592           - Deselection on non-item clicks.
24593         * ListViewItem.cs:
24594           - Encapsulate most of the layout. Add some internal props to trigger
24595           layout.  Move to a model where Items invalidate themselves instead
24596           of just invalidating the whole control every time something changes.
24597           - Invalidate on Text/Caption changes.
24598           - switch to an offset based layout model to avoid having to absolute
24599           position every element on item moves.
24600           - correct checkbox layout to conform to MS layout.
24601         * ThemeWin32Classic.cs:
24602           - refactor some column header drawing code.
24603           - fix string justification for column headers (#76821)
24604           - make SmallIcon labels top justified for compat with MS impl.
24605         * ThemeClearlooks.cs:
24606           - adjust to new ListViewItem internal checkbox bounds api.
24607
24608 2006-02-27  Jackson Harper  <jackson@ximian.com>
24609
24610         * Control.cs:  Change where implicit controls fall in the zorder.
24611         They are now on top of all children.
24612         - Synced AddImplicit code with Add
24613         - Removed unused enumerator.
24614         * SizeGrip.cs: Remove the TODO as its been TODONE.
24615
24616 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
24617
24618         * TextControl.cs(Insert): Combine the last lines unless the insertion
24619           string ends with \n\n, otherwise we leave one line too many (Fixes
24620           something I noticed with the testapp for #77526; the bug itself was
24621           already fixed in the previous checkin)
24622
24623 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
24624
24625         * RichTextBox.cs:
24626           - SelectionColor and SelectionFont methods no longer set absolute
24627             styles. Instead, the keep font or color respectively (This 
24628             resolves a long-standing FIXME in the code)
24629           - When flushing RTF text, the insert code now considers text trailing
24630             behind the insertion point (Fixes the bug where when replacing
24631             the selected text via SelectedRTF the remainder of the line behind 
24632             the selection would stay on the first insertion line)
24633         * TextBoxBase.cs:
24634           - AppendText now updates the selection points after inserting text
24635           - AppendText now ensures that the last tag (sometimes 0-length) of
24636             the document is used for the style information (Fixes part of 
24637             bug #77220)
24638         * TextControl.cs:
24639           - Created new FontDefiniton class to allow describing partial style
24640             changes
24641           - StreamLine() now takes a lines argument, to allow it to decide
24642             whether an encountered zero-length tag is the last in the document
24643             (which must be kept to not loose the font/color contained in it,
24644             for later appends)
24645           - Created Combine() and Split() methods for Marker structs, to 
24646             support marker updates due to reformatted documents (soft line
24647             wraps)
24648           - Implemented Document.CaretTag setter
24649           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
24650             of the last line (Not the cause, but also exposed by bug #77220)
24651           - Added LineTag argument to InsertString method, to allow callers
24652             to force a certain tag to be used (required to force use of the
24653             trailing zero-length tag of a document)
24654           - Now updating markers in Combine(), to avoid stale tag markers
24655           - Added some method descriptions to aid maintenance
24656           - Implemented new FormatText concept, allowing additive/subtractive
24657             formatting by only specifying the components that are to be 
24658             changed. This was needed for resolving the RTB.SelectedColor/
24659             RTB.SelectedFont fixmes
24660           - Added Break() support method to allow breaking up linetags (used
24661             for partial formatting)
24662           - Added GenerateTextFormat() method. It is used for partial 
24663             formatting and allows to generate a full font/color from given
24664             attributes and an existing tag.
24665
24666 2006-02-26  Jackson Harper  <jackson@ximian.com>
24667
24668         * XplatUIX11.cs:  Use the correct caption height.
24669         - Translate hittest coordinates to screen coords to match MS.
24670         * XplatUIWin32.cs: When we create MDI windows we need to reset
24671         some of the style flags, so we get a nice blank window, and can
24672         draw all the decorations ourselves.
24673         - Set a clipping rectangle on the non client paint event, the
24674         window manager drawing code needs one.
24675         * Form.cs: The window manager needs to know when the window state
24676         has been updated.
24677         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
24678         don't need to factor in border and title sizes in these
24679         methods. TODO: Remove the args and fix the call points.
24680         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
24681         properly.
24682         - Let the driver set the cursors.
24683         - Improve active window handling
24684         - Correct sizes for title bars and buttons.
24685         - Match MS drawing better
24686         * MdiWindowManager.cs: We don't need to handle border style
24687         updates specially anymore.
24688         - Check for scrollbars when windows are done moving
24689         - Handle Active properly.
24690         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
24691         correctly. I am spewing the exception though, so we don't hide the
24692         bugs.
24693         
24694 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
24695
24696         * DataGridViewRowPostPaintEventArgs.cs,
24697           DataGridViewCellPaintingEventArgs.cs,
24698           DataGridViewRowCollection.cs,
24699           DataGridViewRowPrePaintEventArgs.cs,
24700           DataGridViewCell.cs: Clear a few warnings and implement a few
24701           exceptions that should be thrown.
24702
24703 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
24704
24705         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
24706           'inheriting' our parent's (non-default) cursor. (Part of
24707            the fix for #77479)
24708
24709 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
24710
24711         * XplatUIX11.cs: Fixed cast to make csc happy
24712
24713 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
24714
24715         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
24716           it's for the client area (part of fix for #77479 and needed
24717           for MDI window cursor handling)
24718         * XplatUIX11.cs
24719           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
24720             the appropriate default cursors and also passing the message
24721             up the parent chain 
24722           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
24723             for non-client areas
24724
24725 2006-02-15  Jackson Harper  <jackson@ximian.com>
24726
24727         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
24728         is a real MDI window
24729
24730 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
24731
24732         * X11DesktopColors.cs: Instead of checking the desktop session
24733           string for "KDE" check if it starts with "KDE"
24734
24735 2006-02-10  Jackson Harper  <jackson@ximian.com>
24736
24737         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
24738         systems).
24739
24740 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
24741
24742         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
24743           errors
24744         * ColorDialog.cs:
24745           - Got rid of the panel. All controls are now directly added to
24746             the dialog form
24747           - Changed to mono coding style
24748
24749 2006-02-10  Jackson Harper  <jackson@ximian.com>
24750
24751         * InternalWindowManager.cs: We don't need the set visibility to
24752         false hack anymore now that peter has written beautiful shutdown
24753         code.
24754
24755 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
24756
24757         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
24758           where already explicitly destroyed
24759
24760 2006-02-10  Jackson Harper  <jackson@ximian.com>
24761
24762         * MdiClient.cs: Handle the case where windows are too high or to
24763         the left and we need scrollbars.
24764
24765 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
24766
24767         * MimeIcon.cs: Added some icons
24768         * FileDialog.cs:
24769           - Fixed bug #77477
24770           - Got rid of the panel. All controls are now directly added to
24771             the dialog form
24772           - Changed to mono coding style
24773           - On Linux "My Computer" and "My Network" will now show some
24774             more usefull information. A new class, MasterMount, gathers
24775             this information from /proc/mount. Updated MWFFileView to make
24776             use of this information
24777           - Fixed a bug that caused FileDialog to crash when
24778             ".recently_used" file had a zero size
24779           - FilterIndex does now what it should
24780           - Some Refactoring
24781         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
24782             FileDialog changes
24783
24784 2006-02-09  Jackson Harper  <jackson@ximian.com>
24785
24786         * ComboBox.cs: Don't touch if null.
24787
24788 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
24789
24790         * Cursor.cs: 64bit safeness fix
24791         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
24792
24793 2006-02-09  Jackson Harper  <jackson@ximian.com>
24794
24795         * Form.cs: If a form is made into an MDI form update the styles so
24796         all the props can get set correctly.
24797         - Kill the mdi_container when we dont need it anymore.
24798         * InternalWindowManager.cs: Add missing NOT
24799
24800 2006-02-08  Jackson Harper  <jackson@ximian.com>
24801
24802         * InternalWindowManager.cs: Respek clipping when drawing MDi
24803         decorations.
24804
24805 2006-02-08  Jackson Harper  <jackson@ximian.com>
24806
24807         * Hwnd.cs: Add bits to track non client expose events.
24808         * XplatUIX11.cs: Track non client expose events on the hwnd. This
24809         gives us a proper invalid rect and will allow for some nice
24810         optimizations with NC client drawing
24811         - MDI windows are children windows, so move their style handling
24812         into the child window block.
24813         * InternalWindowManager.cs: Remove a state reset that was
24814         getting invoked at the wrong time. Fixes managed windows getting
24815         into a 'stuck' captured state.
24816
24817 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
24818
24819         * TextControl.cs (Document.ctor): Now initializing 
24820           selection_anchor. Fixes #77493
24821
24822 2006-02-07  Jackson Harper  <jackson@ximian.com>
24823
24824         * TrackBar.cs: The increment/decrements were backwards.
24825
24826 2006-02-07  Mike Kestner  <mkestner@novell.com>
24827
24828         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
24829         to the instance itself.
24830
24831 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
24832
24833         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
24834           on ulongs and pointers, the size differs between 32bit and 64bit
24835           systems. 
24836
24837 2006-02-07  Mike Kestner  <mkestner@novell.com>
24838
24839         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
24840         for 64 bit platforms to work around a metacity bug. 
24841
24842 2006-02-07  Jackson Harper  <jackson@ximian.com>
24843
24844         * TrackBar.cs: Process the input keys we need, and hookup to
24845         KeyDown instead of using WndProc, so we get key messages.
24846
24847 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
24848
24849         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
24850           machine we're on. 
24851         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
24852           we need to translate the XdndVersion atoms array before sending it
24853
24854 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
24855
24856         * XplatUIX11.cs: 
24857           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
24858             number of bits for the property, not the number of bytes. The
24859             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
24860             but would not crash since it specified 8 bits instead of 4 bits)
24861           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
24862             defined as XID -> long in the C headers)
24863           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
24864             references since those are now IntPtr to begin with
24865           - Switched all Atom.XXX 'int' casts to IntPtr casts
24866           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
24867           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
24868           - Added XChangeActivePointerGrab DllImport (for X11DnD)
24869         * X11Structs.cs:
24870           - Changed 'int' type for Atoms in XEvent structures to IntPtr
24871           - Changed atom in HoverStruct to be IntPtr
24872         * X11DnD.cs:
24873           - Removed local DllImports, switched code to use those from XplatUIX11
24874           - Removed/fixed casts related to the switch of Atom to be a IntPtr
24875
24876 2006-02-06  Mike Kestner  <mkestner@novell.com>
24877
24878         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
24879         method signatures in the import region.  There may still be some
24880         lingering struct marshaling issues, as I didn't drill down into those.
24881         Yet.
24882
24883 2006-02-06  Jackson Harper  <jackson@ximian.com>
24884
24885         * ComboBox.cs: Dont manually set the top_item, this is computed
24886         when the scrollbar position is set.
24887
24888 2006-02-06  Mike Kestner  <mkestner@novell.com>
24889
24890         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
24891         startup crashes on amd64.  There's other fixes needed.  All pinvoke
24892         usage of Atom needs to be mapped to IntPtr for example.  And there are
24893         likely other int/long issues to be addressed.
24894
24895 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
24896
24897         * FileDialog.cs: One more...
24898
24899 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
24900
24901         * FileDialog.cs: Next try
24902
24903 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
24904
24905         * FileDialog.cs: First part of fix for #77464
24906
24907 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
24908
24909         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
24910           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
24911           AcceptButton border drawing.
24912
24913 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
24914
24915         * Form.cs: Moved positioning of form after auto scaling is applied,
24916           otherwise it would possibly use wrong form size.
24917
24918 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
24919
24920         * Control.cs (RecreateHandle): No need to re-create any child
24921           controls, the child windows will get destroyed automatically by
24922           the windowing system or driver, and re-created when the handle
24923           is being accessed the first time. Fixes #77456
24924         * Form.cs: No longer setting the form to closing if the handle is 
24925           being recreated. This seems like the right thing to do, don't
24926           have a bug or testcase for this, though.
24927
24928 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
24929
24930         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
24931           controls to avoid unwanted side effects
24932
24933 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
24934
24935         * Control.cs: 
24936           - ScaleCore needs to scale the bounds, not the ClientSize of the 
24937             control. Fixes #77416.
24938           - DefaultSize is 0,0 for control
24939         * TextBoxBase.cs: 
24940           - DefaultSize is 100, 20
24941           - SetBoundsCore: Now enforcing the height, no matter if the provided
24942             height is more or less than the preferred one, as long as AutoSize
24943             is on
24944         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
24945
24946 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
24947
24948         * Control.cs:
24949           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
24950             call unless both performLayout is true *and* we have a pending
24951             layout change
24952           - ResumeLayout: MS does not completely nest Suspend and Resume,
24953             they bottom out at 0, fixed our code to match that.
24954           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
24955             SetBoundsCore, we were updating even when we shouldn't. This fixes
24956             swf-anchors mis-anchoring when resizing the app fast and lots.
24957           - UpdateDistances: Now only setting the left and top distance if 
24958             we have a parent and are not suspended, this is based on
24959             a suggestion by Don Edvaldson in bug #77355.
24960           - OnVisibleChanged: Fixed logic when to create the control. We may
24961             not create the control if we have no parent or if it's not visible;
24962             switched to using Visible property instead of is_visible field 
24963             since the property also considers parent states. This fixes a bug
24964             when starting Paint.Net
24965
24966 2006-02-02  Jackson Harper  <jackson@ximian.com>
24967
24968         * Form.cs: If the forms handle hasn't been created yet don't call
24969         into xplatui to make it top most, just set the topmost flag on the
24970         form in CreateParams
24971         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
24972
24973 2006-02-01  Jackson Harper  <jackson@ximian.com>
24974
24975         * ScrollableControl.cs: Refactored the Recalculate method a
24976         little, this wasn't handling all the variants of bottom and right
24977         bars needed to be added and added/removed based on their
24978         counterparts being added/removed (which changes the drawable
24979         size). Also we special case client widths and heights of 0 and
24980         don't add the scrollbar for those.
24981
24982 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
24983
24984         * XplatUIX11.cs: 
24985           - Added method to get AbsoluteGeometry(); currently unused, but might
24986             be used in the future, if we try again to figure out toplevel
24987             coordinates with some more crappy window managers
24988           - Added FrameExtents() method to retrieve the WM set decoration size
24989           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
24990             to deal with at least KDE, FVWM and metacity (Fixes #77092)
24991         * Hwnd.cs: 
24992           - Added whacky_wm tracking var for metacity
24993           - Added logic to have default menu height if the actual menu height
24994             has not yet been calculated (part of fix for #77426)
24995         * Form.cs: Keep track whether client size has been set and re-set 
24996           it if a menu is added/removed afterwards (Fixes #77426)
24997
24998 2006-01-31  Jackson Harper  <jackson@ximian.com>
24999
25000         * Control.cs: When a new Site is set on the component attempt to
25001         pull the AmbientProperties from it.
25002
25003 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
25004
25005         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
25006           in the background of the owning form. Fixes #77332
25007
25008 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
25009
25010         * MimeIcon.cs: Fix for #77409
25011
25012 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
25013
25014         * XplatUIX11GTK.cs: Initial import
25015
25016 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
25017
25018         * FixedSizeTextBox: fixes class signature
25019
25020 2006-01-30  Jackson Harper  <jackson@ximian.com>
25021
25022         * FixedSizeTextBox.cs: New internal class that represents a
25023         textBox that will not be scaled.
25024         * TreeView.cs:
25025         * ComboBox.cs:
25026         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
25027         standard TextBox.
25028                 
25029 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
25030
25031         * XplatUIX11.cs: Retrieve default screen number instead of
25032           assuming 0. Attempted fix for #77318
25033
25034 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
25035
25036         * XplatUIWin32.cs: 
25037           - GetWindowPos: When a window is parented by FosterParent, use 
25038             the desktop instead of FosterParent as the base to get coordinates
25039           - CreateWindow: Don't make FosterParent the parent window for Popups
25040             if we don't want a taskbar entry, Popups automatically don't get one
25041         * Hwnd.cs: Need to call remove to actually remove the key from the
25042           hash table
25043
25044 2006-01-30  Mike Kestner  <mkestner@novell.com>
25045
25046         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
25047
25048 2006-01-30  Jackson Harper  <jackson@ximian.com>
25049
25050         * TreeView.cs:
25051         * TreeNode.cs: Raise events no matter how the treenode is
25052         checked. Patch by Don Edvalson.
25053
25054 2006-01-30  Jackson Harper  <jackson@ximian.com>
25055
25056         * TreeNode.cs: Signature fix.
25057
25058 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
25059
25060         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
25061
25062 2006-01-20  Mike Kestner  <mkestner@novell.com>
25063
25064         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
25065         event forwarding when menus are active.
25066         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
25067         Most of the patch is pdb's with a little rework.
25068
25069 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
25070
25071         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
25072           Removed GetMenuDC and ReleaseMenuDC methods; replaced
25073           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
25074         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
25075         * InternalWindowManager.cs: Added use of PaintEventStart/End to
25076           handling of WM_NCPAINT message, now passing the PaintEventArgs to
25077           the PaintWindowDecorations method
25078         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
25079         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
25080         * MenuAPI.cs: Made tracker window invisible
25081         * XplatUIWin32.cs:
25082           - Removed GetMenuDC and ReleaseMenuDC methods
25083           - Implemented the client=false path for PaintEventStart and
25084             PaintEventEnd
25085
25086 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
25087
25088         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
25089         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
25090           styles
25091         * Form.cs: 
25092           - MaximizeBox, MinimizeBox: Recreate the handle when setting
25093             the style
25094           - CreateParams: Reworked the styles to match MS look'n'feel,
25095             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
25096             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
25097
25098 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
25099
25100         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
25101           window is not mapped, since otherwise every form that's being 
25102           created is considered minimized, which is wrong.
25103         * Form.cs: Catching the exception and returning our internal value
25104           instead
25105
25106 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
25107
25108         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
25109           SetWindowMinMax() to have means to tell the driver about the minimum,
25110           maximum and maximized state window sizes. (Part of the fix for #76485)
25111         * Form.cs:
25112           - Implemented tracking of minimum and maximum window size, now calling
25113             new SetWindowMinMax() driver method to tell the driver (Part of the
25114             fix for #76485)
25115           - Finished handling of WM_GETMINMAXINFO method, now setting all values
25116             (Completes fix for #76485)
25117           - Calling new SetWindowMinMax driver method when the handle for a 
25118             form is created, to make sure the driver knows about it even if
25119             the values have been set before the window was created
25120           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
25121             to avoid messing up our anchoring calculations (partial fix
25122             for #77355)
25123         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
25124         * XplatUIX11.cs:
25125           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
25126           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
25127             (and presumably other freedesktop.org compliant WMs). Left the
25128             assumption unmapped=minimized, needed for SetVisible to work.
25129           - Now setting the window state when creating windows
25130           - Fixed SetVisible to consider/set the window state when mapping
25131             a Form. We cannot set the state before it's mapped, and we cannot
25132             use Form.WindowState once it's mapped (since it would ask the
25133             driver and get 'normal'. Therefore, we grab the state before
25134             mapping, map, and then set state.
25135           - Implmemented SetWindowMinMax method; Metacity does not seem to
25136             honor the ZoomHints, though.
25137         * XplatUIWin32.cs:
25138           - Removed MINMAXINFO (moved to XplatUIStructs)
25139           - Added SetWindowMinMax stub (on Win32 the only way to set that
25140             information is in response to the WM_GETMINMAXINFO message, which
25141             is handled in Form.cs)
25142           - Added logic to SetVisible to set the proper window state when a 
25143             form is made visible (fixes #75720)
25144
25145 2006-01-26  Jackson Harper  <jackson@ximian.com>
25146
25147         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
25148         same way we handle them with Invoke.
25149
25150 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
25151
25152         * Form.cs:
25153           - Added tracking of window state so CreateParams can return
25154             the appropriate style
25155           - Moved setting of WS_CAPTION style in CreateParams to allow
25156             styles without caption
25157         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
25158           control if the TextBox property is accessed. Fixes #77345
25159         * Control.cs:
25160           - get_Created: now uses is_disposed and is_created to determine
25161             return value (suggested by Jackson)
25162           - CreateHandle: No longer exits if the handle is being recreated
25163           - RecreateHandle: If the handle is not yet created call the 
25164             appropriate method to create either control or handle. If the
25165             control is already created CreateHandle will simply exit instead
25166             of just creating the handle
25167         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
25168           now SendMessage WM_DESTROY directly to the control when DestroyWindow
25169           is called.
25170         * XplatUIX11.cs: 
25171           - When DestroyWindow is called, instead of waiting for the 
25172             DestroyNotification from X11, we directly post it to the WndProc
25173             and immediately dispose the hwnd object.
25174             Same applies to DestroyChildWindows, and this obsoletes the
25175             expose_pending tracking. Contrary to Win32 behaviour we destroy our
25176             child windows before our own, to avoid X11 errors.
25177           - Removed the direct sending of WM_PAINT on UpdateWindow
25178         * XplatUIWin32.cs:
25179           - Reworked DoEvents and GetMessage to allow access to internal queue
25180             even when trying non-blocking access to the queue.  Fixes #77335. 
25181             Based on a patch suggestion by Don Edvalson. The new private
25182             GetMessage can now also be used as a backend for a PeekMessage
25183             frontend version.
25184         * XplatUI.cs: Improved debug output for CreateWindow
25185
25186 2006-01-25  Jackson Harper  <jackson@ximian.com>
25187
25188         * Help.cs: Allow param to be null. Patch by Don Edvalson.
25189
25190 2006-01-24  Jackson Harper  <jackson@ximian.com>
25191
25192         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
25193         when we have a MaxDropItems lower then the selected index.
25194
25195 2006-01-24  Jackson Harper  <jackson@ximian.com>
25196
25197         * Control.cs: Don't allow selection of non visible controls, allow
25198         selection of controls without parents.
25199
25200 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
25201
25202         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
25203         * DataGridDrawingLogic.cs: Add editing row only when is necessary
25204
25205 2006-01-23  Jackson Harper  <jackson@ximian.com>
25206
25207         * UpDownBase.cs: Make the textbox handle all the selection and
25208         tabbing. This fixes tabing to updown controls.
25209
25210 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
25211
25212         * TextBoxBase.cs: fixes exception thown the object was null
25213
25214 2006-01-23  Jackson Harper  <jackson@ximian.com>
25215
25216         * ButtonBase.cs: Just use the base CreateParams. They set
25217         visibility and enabled correctly.
25218         * ComboBox.cs:
25219         * TrackBar.cs:
25220         * MonthCalendar.cs: Lets let the base set as much of the
25221         createparams as possible so we don't have duplicate code all over
25222         the place.
25223
25224 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
25225
25226         * ThemeGtk.cs: Added TrackBar and some experimental code to
25227           get double buffering back
25228
25229 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
25230
25231         * DataGrid.cs: Allows row number set internally higher than the last
25232         when creating a new row. Restores the editing functionality.
25233
25234 2006-01-20  Mike Kestner  <mkestner@novell.com>
25235
25236         * MimeIcon.cs: delay Image creation until the icons are accessed
25237         instead of creating 190 scaled images on GnomeHandler startup.
25238
25239 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
25240
25241         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
25242           first call base before processing the event. Fixes #77279
25243
25244 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
25245
25246         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
25247           that the stride for the GDI bitmap would match the stride of
25248           a DIB or a Cursor.
25249
25250 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
25251
25252         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
25253
25254 2006-01-19  Jackson Harper  <jackson@ximian.com>
25255
25256         * ComboBox.cs: Hookup the text controls keydown event so we get
25257         those when the text control has the focus.
25258
25259 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
25260
25261         * Label.cs: Now using the base events instead of defining new ones;
25262           this allows us to just call the base properties without having to
25263           duplicate all base property logic 
25264
25265 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
25266
25267         * Label.cs: A label by default is not a tabstop (Fixes one of our
25268           failing nunit tests)
25269
25270 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
25271
25272         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
25273         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
25274
25275 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
25276
25277         * Cursor.cs: Reimplemented creating cursor bitmaps without using
25278           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
25279           This fixes #77218
25280         * XplatUIWin32.cs: 
25281           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
25282             constructor creates images that can't be saved. Part of the fix
25283             for #76103
25284           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
25285           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
25286             bug fix for handling window state in forms properly)
25287
25288 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
25289
25290         * ThemeGtk.cs: Simplify ScrollBar drawing
25291
25292 2006-01-18  Jackson Harper  <jackson@ximian.com>
25293
25294         * Splitter.cs: Set the default dock style for the splitter control
25295         in the constructor.
25296
25297 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
25298
25299         * ThemeGtk.cs: Corrected StateType and ShadowType for
25300           gtk_paint_box
25301
25302 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
25303
25304         * Control.cs: Make use of Theme.DoubleBufferingSupported
25305         * ThemeGtk.cs:
25306           - Added drawing for flat style buttons
25307           - Added ScrollBar drawing
25308
25309 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
25310
25311         * ThemeClearlooks.cs: Removed some unneeded code.
25312         * ThemeGtk.cs: First part of ThemeGtk enhancements.
25313
25314 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
25315
25316         * LinkLabel.cs: We need to update the hover drawing when
25317           leaving the control as well.
25318
25319 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
25320
25321         * DataGrid.cs: Clicking on non empty areas in the columns
25322            area was giving an exception
25323
25324 2006-01-17  Jackson Harper  <jackson@ximian.com>
25325
25326         * ThemeWin32Classic.cs:
25327         * ListView.cs: Do not draw/clip the headers when the header style
25328         is None.
25329
25330 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
25331
25332         * DataGrid.cs: Fixes 77260
25333         
25334 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
25335
25336         * DataGrid.cs: Clicking on a column on a empty grid was giving
25337           an exception
25338
25339 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
25340
25341         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
25342           or any keypress will crash the grid.
25343
25344 2006-01-17  Mike Kestner  <mkestner@novell.com>
25345
25346         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
25347         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
25348         invisible/previously-visible items.
25349         [Fixes #76909]
25350
25351 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
25352
25353         * ThemeClearlooks.cs:
25354         - Added CL_Draw_Button method; now other theme controls that are 
25355           not derived from button or do not have a button can draw buttons
25356           too
25357         - Updated ComboBox drawing
25358         - Beautified RadioButton drawing
25359         - Corrected drawing of bottom and left tabs
25360         - Beautified DateTimePicker and MonthCalendar
25361         - Added CPDrawButton and CPDrawRadioButton
25362
25363 2006-01-16  Jackson Harper  <jackson@ximian.com>
25364
25365         * ComboBox.cs: Set the initial value of the scrollbar to the
25366         current index. Reduce the numbers of refreshs and IndexOfs called.
25367
25368 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
25369
25370         * FileDialog.cs: When the file listview is focused hitting the
25371           backspace key moves the fileview to the parent directory
25372
25373 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
25374
25375         * Form.cs: 
25376           - Added RecreateHandle call when changing taskbar visibility to 
25377             trigger reparenting in Win32 driver (Fixes #75719)
25378           - If a window has minimize or maximize buttons, it cannot have
25379             a help button
25380         * XplatUIWin32.cs:
25381           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
25382             the toplevel form with FosterParent (A toolwindow not on the
25383             taskbar) (Fixes #75719)
25384           - Made FosterParent a toolwindow
25385
25386 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
25387
25388         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
25389
25390 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
25391
25392         * ToolTip.cs: If SetToolTip is called from a control and the mouse
25393           is currently over that control, make sure that tooltip_window.Text
25394           gets updated
25395
25396 2006-01-13  Mike Kestner  <mkestner@novell.com>
25397
25398         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
25399
25400 2006-01-13  Jackson Harper  <jackson@ximian.com>
25401
25402         * TreeView.cs: On MS GetNodeAt never actually factors in the X
25403         value passed.  Also redraw the selected node when we recieve
25404         focus, so tabbing between trees works correctly.
25405
25406 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
25407
25408         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
25409           ~/.gconf/%gconf-tree.xml, so use
25410           .gconf/desktop/gnome/interface/%gconf.xml
25411
25412 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
25413
25414         * TextControl.cs: Draw text in gray if control is disabled
25415
25416 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
25417
25418         * TreeView.cs: Draw the focus rectangle outside the highlight, to
25419           make sure it's always visible. Fixes #76680.
25420
25421 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
25422
25423         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
25424
25425 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
25426
25427         * PageSetupDialog.cs: Added.
25428         * PrintDialog.cs: Attributes.
25429         * PrintPreviewControl.cs: Updates.
25430         * PrintPreviewDialog.cs: Updates.
25431         
25432 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
25433
25434         * Control.cs: Undid my selection check fix, since it's not needed
25435         * TextBoxBase.cs:
25436           - Now considering the presence of hscroll/vscroll when sizing
25437             vscroll/hscroll respectively. Fixed bug #77077
25438           - Added Left/Up/Down/Right to IsInputKey list to prevent
25439             ContainerControl from stealing them. This fixes what I broke
25440             with my last checkin.
25441
25442 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
25443
25444         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
25445           I finally understand how the property can be set without a setter :-)
25446
25447 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
25448
25449         * Application.cs:
25450           - Switched RunLoop to use static Message.Create to create a 
25451             Message object
25452           - Added PreProcessMessage call in runloop for keyboard events; this
25453             is part of the fix for #77219, I overlooked this originally in the
25454             MSDN doc for PreProcessMessage
25455         * Control.cs:
25456           - Removed call to PreProcessMessage from handling of keyboard 
25457             messages; it's supposed to be done in the message pump
25458           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
25459             per MSDN documentation.
25460           - IsInputChar: All chars are input chars by default; removed the 
25461             parent calling chain, MS does not document that
25462           - PreProcessMessage: If IsInputChar is true, we want to return false
25463             to allow dispatching of the message
25464           - When selecting the next control, now also check that we're not
25465             selecting ourselves again and therefore return a false positive.
25466         * TextBoxBase.cs:
25467           - Tried to match return values for IsInputKey and ProcessDialogKey
25468             to what MS returns; moved processing of our special keys outside
25469             ProcessDialogKey since MS does not seem to return true on those.
25470           - Moved code that previously was in ProcessDialogKey into new private
25471             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
25472           - Reworked handling of WM_CHAR to not have to duplicate code from
25473             Control.cs anymore, instead we simply call down to base.
25474            
25475 2006-01-12  Jackson Harper  <jackson@ximian.com>
25476
25477         * ComboBox.cs: We always need to refresh the text area when
25478         EndUpdate is called. Fixes the combobox in the file dialog.
25479         * Control.cs: Don't create the creator_thread until the controls
25480         handle is created.  Also in InvokeRequired we check if the
25481         creator_thread is null. This gives the effect of InvokeRequired
25482         returning true if the controls handle is not created yet, and
25483         matches MS.
25484
25485 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
25486
25487         * XplatUI.cs:
25488           - Added StartLoop() driver method. This is used to allow drivers to
25489             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
25490             loop for a particular thread
25491           - Added EndLoop() driver method. This is called once the message
25492             pump for the thread is shut down
25493           - Added SupportsTransparency method to allow the driver to indicate
25494             opacity support for windows
25495         * Form.cs:
25496           - Removed TODO attribute, completed AllowTransparency property
25497           - Added documented logic to Opacity
25498         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
25499           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
25500           versions of CompatibleTextRendering
25501         * X11Structs.cs: Added opacity atom to our atom enumeration
25502         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
25503           of a form might be set before it's reparented by the WM, and we need
25504           the opacity value without calling up to Form)
25505         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
25506           SupportsTransparency() driver methods
25507         * Application.cs: Now calling StartLoop and EndLoop driver methods
25508         * XplatUIX11.cs:
25509           - Added opacity atom registration
25510           - Added StartLoop()/EndLoop() methods. They're empty right now but
25511             will need to get implemented when we switch to a per-thread queue
25512           - Implemented SupportsTransparency() method
25513           - Implemented SetWindowTransparency() method
25514           - Added support for setting the opacity value when a window is
25515             reparented (since the opacity needs to be set on the WM frame)
25516         * XplatUIOSX.cs, XplatUIWin32.cs:
25517           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
25518
25519 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
25520
25521         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
25522
25523 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
25524
25525         * FileDialog.cs: Added ToolTip for MWFFileView
25526         * MimeIcon.cs: Rewrote GnomeHandler.
25527           - Get currently used gnome icon theme from
25528             ($HOME)/.gconf/%gconf-tree.xml
25529           - Make use of inherited icon themes
25530           - Support SVG icon themes like Tango via librsvg
25531
25532 2006-01-12  Miguel de Icaza  <miguel@novell.com>
25533
25534         Revert's Jackson's revert which broke 2.0 builds.   Fix both
25535         builds. 
25536         
25537         * Application.cs: Move the use_compatible_text_rendering outside
25538         the NET_2_0 define.  If we ever need to use the
25539         use_compatible_text_rendering on the individual controls they will
25540         access the variable from the common shared code paths.
25541
25542 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
25543
25544         * XplatUI.cs:
25545           - Added more granular debug options
25546           - Added method to print both window text and id
25547           - Switched debug output to use new Window() debug method
25548           - Added IsEnabled() driver method
25549           - Added EnableWindow() driver method
25550         * Form.cs:
25551           - Removed end_modal; no longer needed, new loop handles termination
25552             via 'closing' variable
25553           - If form is modal, setting DialogResult will now initiate loop
25554             termination via 'closing' variable
25555           - Added support for is_enabled/WS_DISABLED to CreateParams
25556           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
25557             does all the work
25558           - Removed code that's now in RunLoop from ShowDialog()
25559           - Added various documented sanity checks to ShowDialog()
25560           - Added handling of WM_DESTROY message; we set 'closing' on getting
25561             the message to indicate the message pump to terminate
25562           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
25563             send by the Application.ExitThread method. (We send the message
25564             to destroy the window after all other events have been
25565             processed through the queue, instead of destroying the handle 
25566             directly)
25567           - Moved code from Close() method to WM_CLOSE handler; added logic
25568             to only send close-related events if the form is not displayed
25569             modal
25570         * Splitter.cs (..ctor): Fixed typo in resource name
25571         * Control.cs:
25572           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
25573             brush now
25574           - set_Cursor: Now only setting calling into XplatUI if the handle for
25575             the control is already created; this avoids implict handle creation
25576             or crashes if it's not created
25577           - set_Enabled: Now setting the enabled state via the new driver method
25578             instead of just tracking it
25579           - CreateParams: Added logic to set WS_DISABLED based on enabled state
25580           - CreateControl: Reordered event firing and method calls to more
25581             closely fire events in the order MS does. Now setting the
25582             enabled state in the driver when creating the control.
25583           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
25584             match MS order
25585         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
25586           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
25587         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
25588         * Hwnd.cs:
25589           - Added tracking of window enabled state (get_Enabled/set_Enabled)
25590           - Added EnabledHwnd property to easily allow a driver to find the
25591             handle of the first enabled window in the parent chain (this is
25592             used by drivers to pass up input events of disabled windows)
25593         * XplatUIDriver.cs: Added IsEnabled() method
25594         * Application.cs:
25595           - Removed crude and obsolete exiting tracking variable
25596           - Removed internal ModalRun(); replaced by RunLoop()
25597           - Implemented private CloseForms() method to allow closing all 
25598             windows owned by a particular (or all) threads
25599           - Exit() now properly closes all windows without forcing the message
25600             pump to quit
25601           - Removed obsolete InternalExit() method
25602           - Changed Run() methods to use new RunLoop() message pump
25603           - Implemented new RunLoop() method for both modal and non-modal forms
25604         * CommonDialog.cs:
25605           - get_CreateParams: Added setting of WS_DISABLED
25606           - Simplified ShowDialog(); now all the work is done in RunLoop(),
25607             invoked via Form.ShowDialog()
25608         * NativeWindow.cs: We don't remove the window from the collection when
25609           the handle is destroyed; there might still be messages for it in the
25610           queue (mainly the resulting WM_DESTROY); instead it will be removed
25611           when Control calls InvalidateHandle in the WM_DESTROY handler
25612         * XplatUIX11.cs:
25613           - CreateWindow: Added logic to handle the WS_DISABLED window style
25614           - EnableWindow: Implemented based on Hwnd.Enabled
25615           - GetMessage: Reset PostQuitState so the method can be called again
25616           - Implemented support for disabled windows (passing messages to the
25617             first enabled parent) in handling all input messages
25618           - Added optimizations for handling Expose events
25619           - Implemeted new driver method IsEnabled()
25620           - Now always resetting paint pending tracking vars when we start paint
25621           - Re-implemented UpdateWindow via just sending a WM_PAINT message
25622         * XplatUIOSX.cs: Added IsEnabled method stub
25623         * XplatUIWin32.cs: Implemented new IsEnabled() method
25624
25625 2006-01-11  Jackson Harper  <jackson@ximian.com>
25626
25627         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
25628         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
25629         variables a little.
25630         * ColorDialog.cs: Clear out the old form before adding the new
25631         panel.  
25632
25633 2006-01-11  Jackson Harper  <jackson@ximian.com>
25634
25635         * X11Dnd.cs: Make sure to add all the text formats when adding
25636         strings to the data object.
25637         * TreeNodeCollection.cs: When adding to a sorted tree we need to
25638         do some redrawing too.  Also change the UpdateNode to an
25639         UpdateBelow so the newly added node gets painted.
25640         
25641 2006-01-11  Miguel de Icaza  <miguel@novell.com>
25642
25643         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
25644         LinkLabel.cs, PropertyGrid.cs: Implement the
25645         UseCompatibleTextRendering property for 2.x
25646
25647         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
25648
25649 2006-01-11  Jackson Harper  <jackson@ximian.com>
25650
25651         * TreeView.cs: Use the property for setting the selected node so
25652         the correct events get raised.
25653         * TreeNode.cs: Update the tree when the fore/back colours of a
25654         node are set.
25655
25656 2006-01-10  Jackson Harper  <jackson@ximian.com>
25657
25658         * TreeView.cs: Allow setting SelectedNode to null.
25659
25660 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25661
25662         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
25663
25664 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25665
25666         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
25667
25668 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25669
25670         * PrintDialog.cs: Added attributes and set default property values.
25671
25672 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25673
25674         * PrintControllerWithStatusDialog.cs: 
25675         Added PrintControllerWithStatusDialog.
25676
25677 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25678
25679         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
25680         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
25681
25682 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25683
25684         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
25685
25686 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
25687
25688         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
25689         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
25690
25691 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
25692
25693         * MimeIcon.cs: Added internal class SVGUtil.
25694
25695 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
25696
25697         * FileDialog.cs: Don't crash if there are two files with the
25698           same name but different locations.
25699
25700 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
25701
25702         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
25703         dates across multiple month grids. Used to not highlight entire 
25704         month, but does now.
25705         
25706 2006-01-06  Jackson Harper  <jackson@ximian.com>
25707
25708         * MonthCalendar.cs: Removed DoEvents call to prevent a running
25709         message loop. Change timer intervals to numbers that seem more
25710         natural.
25711
25712 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
25713
25714         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
25715           object for location info since screen object is now implemented.
25716
25717 2006-01-05  Jackson Harper  <jackson@ximian.com>
25718
25719         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
25720         * AsyncMethodResult.cs: We no longer use a WeakReference for the
25721         AsyncMethodResult, this is because we ALWAYS want the
25722         ManualResetEvent to get set.
25723         * Control.cs: When disposing use an async invoke to call shutdown
25724         code, so that thigns don't block on the finalizer thread.  Also
25725         check if we even have a message loop before trying to send
25726         messages, if we don't then don't bother sending messages.
25727         - No more weak references for async methods
25728         * XplatUIDriver.cs: No more weak references for async methods.
25729
25730 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
25731
25732         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
25733           returns two FontFamily with the same name
25734
25735 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
25736
25737         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
25738           drawing disabled text. Instead using the ColorGrayText color
25739
25740 2006-01-04  Jackson Harper  <jackson@ximian.com>
25741
25742         * TreeNode.cs: redraw the node when its image index is changed.
25743
25744 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
25745
25746         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
25747           time I checked there are no others like it.
25748
25749 2006-01-04  Jackson Harper  <jackson@ximian.com>
25750
25751         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
25752         this gives the behavoir I was looking for.
25753         * Control.cs: Special case Invoking EventHandlers, this matches MS
25754         and fixes part of bug #76326.
25755
25756 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
25757
25758         * ThemeClearlooks.cs, FileDialog.cs:
25759           - Reflect the latest Theme class changes
25760           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
25761             with DateTime
25762             
25763 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
25764
25765         * Theme.cs: Cache UI resource images and resize them if needed
25766
25767 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
25768
25769         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
25770           is called. This fixes the crash in Nexxia when setting the font
25771           attributes in the chat. [However, RTF needs a look-over to make sure
25772           that all SelectionXXX methods handle the special case that selection
25773           is empty and therefore the change must be applied to all text starting
25774           at the cursor/selection start]
25775
25776 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
25777
25778         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
25779           XplatUIOSX.cs: Added SendMessage and PostMessage methods
25780         * X11Keyboard.cs: Switched to new way of calling PostMessage
25781
25782 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
25783
25784         * Theme.cs: Added theme interface for images to allow the theme to
25785           control what images are used for things like FileDialog, MessageBox
25786           icons, etc.
25787         * MessageBox.cs: Now uses the new Theme icon/image interfaces
25788
25789 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
25790
25791         * FileDialog.cs:
25792           - Removed some dead code
25793           - Opening a recently used file does work now
25794           - Small UI enhancements
25795           - Refactoring
25796
25797 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
25798
25799         * FileDialog.cs: Forgot too add __MonoCS__
25800
25801 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
25802
25803         * FileDialog.cs: We are able to read recently used files now let's
25804           go on and write them.
25805
25806 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
25807
25808         * FileDialog.cs: Breathe some life into "last open"/"recently used"
25809           button
25810         * MimeIcon.cs: Do a check for the top level media type also
25811
25812 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
25813
25814         * ThemeClearlooks.cs:
25815           - Added CPDrawStringDisabled
25816           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
25817             some chars if the text doesn't fit into text_rect
25818           - DrawListViewItem: If View = View.LargeIcon center the image;
25819             rewrote the drawing of ListViewItem.Text if View = 
25820             View.LargeIcon
25821
25822 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
25823
25824         * MimeIcon.cs: Use default KDE icon theme if there is no
25825           "48x48" directory for the current icon theme, fixes #77114
25826         * Mime.cs: Disable not working and actually not used code. 
25827         * ThemeWin32Classic.cs:
25828           - Replace "new SolidBrush" in GetControlBackBrush and
25829             GetControlForeBrush with ResPool.GetSolidBrush
25830           - Changed DrawListViewItem from private to protected virtual
25831         * FileDialog.cs:
25832           - Added form.MaximizeBox = true
25833           - Don't throw an exception if there is a broken symbolic link
25834
25835 2005-12-23  Jackson Harper  <jackson@ximian.com>
25836
25837         * TabControl.cs: Give the panels focus, keyboard navigation is
25838         fixed so this works correctly now.
25839         - We need these key events also.
25840         * ToolBar.cs: Remove some of the poor mans double buffering.
25841         
25842 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
25843
25844         * ComboBox.cs: The internal TextBox now returns the focus.
25845
25846 2005-12-23  Jackson Harper  <jackson@ximian.com>
25847
25848         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
25849
25850 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
25851
25852         * Control.cs: Removed debug code
25853         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
25854           implicit children
25855
25856 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
25857
25858         * Control.cs: When creating the control, update the Z-order after
25859           all it's children are created, too. (Fixes nexxia not showing
25860           picturebox bug)
25861
25862 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
25863
25864         * Control.cs: Do not update the anchoring distances if layout is
25865           suspended, instead do it once layout is resumed
25866
25867 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
25868
25869         * Control.cs: 
25870           - After many hours of debugging, for both Jackson and
25871             myself, it turns out that it helps to set the parent of a control
25872             if you want to actually see it onscreen. In the spirit of that
25873             discovery, we're now setting the parent of the control and
25874             it's children when the control's handle is created. This fix
25875             will make Lutz Roeder's Reflector run happily. 
25876           - now just creating the handle instead of the whole control when
25877             getting a graphics context for the control.
25878
25879 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
25880
25881         * ScrollableControl.cs: When calculating the canvas, don't consider
25882           the scrollbar widths. Instead, predict if horizontal scrollbar
25883           will affect canvas when deciding on vertical display and vice versa.
25884
25885 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
25886
25887         * RichTextBox.cs: Set default RTF font for documents that don't
25888           have a font table (Fixes #77076)
25889
25890 2005-12-22  Jackson Harper  <jackson@ximian.com>
25891
25892         * TextBoxBase.cs: It's difficult to do, but you can have an empty
25893         clipboard. This prevents a NullRef in that case.
25894         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
25895         clipboard. PRIMARY is for the currently selected text only. (We
25896         should implement PRIMARY at some point.
25897
25898 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
25899
25900         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
25901           a Unicode function with a structure that was defined in Ansi way.
25902           This fixes #76942.
25903
25904 2005-12-21  Jackson Harper  <jackson@ximian.com>
25905
25906         * StatusBar.cs: Statusbar handles its fore/back colours on it's
25907         on. Because thats how it rolls. (and this avoids it using ambient
25908         colours).
25909         * ThemeWin32Classic.cs: Use the proper back color for filling.
25910         * Menu.cs: Use the system menu bar color for drawing menu
25911         bars. Using the window back color will bring ambient colours into
25912         the picture.
25913
25914 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
25915
25916         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
25917           Bitmaps were created and not disposed.
25918
25919 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
25920
25921         * Control.cs (CreateControl): Don't do anything if the control is
25922           already created, otherwise we'd fire the OnCreated event more than
25923           once
25924
25925 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
25926
25927         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
25928           will always match. Instead return -1. Fixes #76464.
25929
25930 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
25931
25932         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
25933           neither the beginning nor the end of the line (Fixes bug #76479)
25934
25935 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
25936
25937         * Control.cs:
25938           - ControlNativeWindow.ControlFromHandle(): Now handling situation
25939             where handle is invalid
25940           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
25941             instead of slower linear search
25942         * NativeWindow.cs: Don't remove the window from the hashtable until
25943           after the driver has destroyed it (since the driver might use
25944           Control.FromHandle to lookup the control object
25945         * Hwnd.cs: Added DestroyPending property to track if a window is 
25946           already destroyed as far as the driver is concerned and only hasn't
25947           yet notified the control
25948         * XplatUIX11.cs:
25949           - Activate(): Check if the window is still valid before using the 
25950             handle
25951           - Implemented DestroyChildWindow() method to mark child windows as
25952             destroyed when a window is destroyed. This prevents situations 
25953             where we might call an X method based on queued events for a
25954             window that already has been destroyed but we haven't yet pulled
25955             the destroy method from the queue.
25956           - Added a call to the new DestroyChildWindow() method to the drivers
25957             DestroyWindow code. Also now marking the destroyed window itself
25958             as pending
25959
25960 2005-12-20  Jackson Harper  <jackson@ximian.com>
25961
25962         * StatusBar.cs:
25963         * StatusBarPanel.cs: Don't calculate panel sizes on draw
25964         anymore. Just do them when needed, also track the rects of panels
25965         so that we can optimize refreshing more in the future.
25966
25967 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
25968
25969         * ColorDialog.cs: Fixed focus drawing in small color controls
25970
25971 2005-12-19  Jackson Harper  <jackson@ximian.com>
25972
25973         * InternalWindowManager.cs:
25974         * MdiWindowManager.cs: Cleanup some coordinate system changes so
25975         moving windows works properly.
25976
25977 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
25978
25979         * Control.cs: 
25980           - Removed call to InitLayout() from SetBoundsCore(); doc says
25981             it's only called when a control is added to a container
25982           - Split InitLayout logic, moved to separate UpdateDistances() method
25983             since we need to perform those calculations more often than just
25984             when adding the control to a container. (Needed to fix #77022)
25985           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
25986           - Reduced the OnBindingContextChanged events count, don't send them
25987             unless the control is created, we still aren't totally matching
25988             MS, but I can't quite figure out some of their rules
25989
25990 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
25991
25992         * ThemeClearlooks.cs: Corrected distance between ProgressBar
25993           stripes
25994
25995 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
25996
25997         * ThemeClearlooks.cs:
25998           - Updated ProgressBar drawing
25999           - Corrected drawing of ScrollBars and scroll buttons
26000           - Some temporary fixes for minor pixel artefacts
26001
26002 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
26003
26004         * Control.cs:
26005           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
26006             cause events to be sent in the same order as MS does.
26007           - Added ChangeParent() method to trigger various OnXXXChanged events
26008             that need to be fired when a parent changes (This is a reworking
26009             of the patch from r54254, with the X11 errors fixed)
26010           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
26011             since on MS we get OnLayoutChanged events when calling Clear()
26012           - Changed Enabled property to consider parent state as well, if a
26013             parent is not enabled, the control will not be either
26014           - Changed Parent property to simply call Controls.Add() since that
26015             now does all the work required, this way we avoid code duplication
26016           - Threw in a few OnBindingsContextChanged calls to try and match
26017             when MS sends them. We seem to send a few too many, though.
26018           - Added call to CreateControl when adding the control to a parent.
26019             We were never calling CreateControl. Still needs some work, in
26020             some places we treat HandleCreated and ControlCreated as equal, 
26021             which is wrong
26022           - Removed obsolete commented out code from UpdateZOrder()
26023
26024 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
26025
26026         * ThemeClearlooks.cs: Updated TrackBar drawing.
26027
26028 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
26029
26030         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
26031
26032 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
26033
26034         * FileDialog.cs: Add the Help button and the open readonly
26035           checkbox only if needed
26036
26037 2005-12-16  Jackson Harper  <jackson@ximian.com>
26038
26039         * Control.cs: Make sure we have an active menu before trying to
26040         process commands on it. Prevents menu-less forms from crashing
26041         when Alt is pressed.
26042         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
26043         Dieter Bremes.
26044         * RichTextBox.cs: Expand statement to help out gmcs and fix the
26045         2.0 build.
26046
26047 2005-12-16  Jackson Harper  <jackson@ximian.com>
26048
26049         * InternalWindowManager.cs: Don't translate tool windows screen
26050         coordinates. This fixes windows 'bouncing' around when being moved.
26051
26052 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
26053
26054         * TextBoxBase.cs:
26055           - MaxLength now treats 2^31-1 equal to unlimited length (this is
26056             not quite MS compatible, MS uses that number only for single line
26057             and 2^32-1 for multi-line, but I figure it won't hurt keeping
26058             the limit at 2GB)
26059           - Now enforcing the MaxLength limit when entering characters
26060           - Added argument to internal Paste() method to track if it's called
26061             from programatically or via keyboard, since keyboard driven pastes
26062             need to enforce max-length
26063           - Added logic to Paste to only paste as many chars as MaxLength 
26064             allows
26065         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
26066         * TextControl.cs:
26067           - Added Length property to return number of characters in document
26068           - Added private CharCount property which only tracks actual chars
26069             in the document (no linefeeds) and fires event when CharCount
26070             changes
26071           - Added tracking of character count to all methods that alter it
26072           - Added LengthChanged event to allow applications to subscribe
26073             to any changes to the document
26074
26075 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
26076
26077         * TextBox.cs: 
26078           - Removed local password_char field (moved to TextBoxBase)
26079           - Now setting the document's password var when password is
26080             set
26081         * TextBoxBase.cs:
26082           - Added password_char field (needed here so MultiLine can
26083             access it)
26084           - Added logic to MultiLine property setter to set the document's
26085             variable when password display is allowed
26086           - Removed debug code and made some debug code conditional
26087         * TextControl.cs:
26088           - Added RecalculatePasswordLine() method to handle special password
26089             char only lines
26090           - Added PasswordChar property, also added related tracking vars
26091           - Draw() method now uses local text var for grabbing text to draw,
26092             this var is set to line.text unless we're doing password display,
26093             then it is set to the pre-generated all-password-chars line
26094           - Added calling RecalculatePasswordLine() method for password lines
26095
26096 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
26097
26098         * Hwnd.cs: 
26099           - Added Reparented property to allow tracking of Window Manager
26100             reparenting actions (which affect X/Y calculations of toplevel 
26101             windows)
26102           - Made ToString() print window handles in hex
26103         * XplatUIX11.cs:
26104           - AddConfigureNotify(): Now uses reparented state off Hwnd to
26105             determine if X/Y needs offsetting
26106           - AddConfigureNotify(): Fixed offset calculations
26107           - Now adds ReparentNotify messages into the queue
26108           - Now processes ReparentNotify messages and causes a 
26109             WM_WINDOWPOSCHANGED message to be sent upstream if a window
26110             is reparented (as most likely it's X/Y coordinates are changed
26111             due to that)
26112
26113 2005-12-14  Jackson Harper  <jackson@ximian.com>
26114
26115         * XplatUIX11.cs: Tool windows still need to respek focus.
26116
26117 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
26118
26119         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
26120           have a working release
26121
26122 2005-12-13  Jackson Harper  <jackson@ximian.com>
26123
26124         * Form.cs: Update styles after setting the border style regardless
26125         of whether or not the window is using a window manager.
26126
26127 2005-12-13  Jackson Harper  <jackson@ximian.com>
26128
26129         * Form.cs: We now hook into an internal window manager instead of just an
26130         MDI subsystem, this is so we can have properly behaving tool windows.
26131         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
26132         * InternalWindowManager.cs: New internal class that acts as a
26133         window manager for tool windows and as a base for mdi windows.
26134         * MdiWindowManager.cs: New class that acts as a window manager for
26135         mdi windows.
26136
26137 2005-12-12  Jackson Harper  <jackson@ximian.com>
26138
26139         * Control.cs: Updates so we match behavoir for for implicit
26140         controls. Fixes explosions in MDI.
26141
26142 2005-12-12  Jackson Harper  <jackson@ximian.com>
26143
26144         * Control.cs: Implement Invalidate (Region).
26145
26146 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
26147
26148         * Control.cs: 
26149           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
26150             the same events as MS does. MS fires events for each property 
26151             except, for unknown reasons, Cursor, when the control is reparented. 
26152             I can't seem to totally match add/remove since MS also fires some 
26153             VisibleChanged events, which makes no sense. Consolidated the
26154             parenting code into a separate method so it can be called from
26155             both Add and Remove. set_Parent no longer needs any special logic
26156             as it calls the parent's add method which implicitly fires
26157             all events
26158           - Removed some obsolete code and debug output
26159           - Enabled state is inherited from parents, if this is enabled
26160
26161 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
26162
26163         * Form.cs: Removed commented out code
26164
26165 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
26166
26167         * Control.cs:
26168           - Added internal version of Invoke, with additional argument 
26169             indicating if we're calling it from a Dispose() handler. That
26170             way we can avoid BeginInvoke throwing an exception if we're
26171             calling for an already destroyed window.
26172           - Added a dispose argument to BeginInvokeInternal, and made the
26173             check if a valid window handle chain exists conditional on
26174             it not being a dispose call
26175           - Removed code in DestroyHandle to destroy our children. Since we
26176             now handle the WM_DESTROY message we will catch all our children
26177             being destroyed.
26178           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
26179         * Form.cs:
26180           - Added a field to track the application context of the form.
26181           - No need to set closing variable as response to WM_CLOSE, instead
26182             we destroy the window. We also call PostQuitMessage if the form
26183             has an application context (which makes it the main app form,
26184             which, when closed terminates the app)
26185         * XplatUI.cs:
26186           - Dropped Exit() method, it's naming was confusing
26187           - Added PostQuitMessage() which causes GetMessage to return false
26188             once the message queue is empty
26189         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
26190           PostQuitMessage()
26191         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
26192           no longer a valid XplatUI method, but left it in since it's used
26193           internally. Added empty PostQuitMessage() method.
26194         * MenuAPI.cs: Replaced call to Exit() with call to
26195           PostQuitMessage, even though this is probably no longer needed.
26196         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
26197         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
26198         * Application.cs:
26199           - Replaced call to XplatUI.Exit() with PostQuitMessage()
26200           - Removed old debug code that would call XplatUI for exception
26201             display, enabled standard exception handling (Still not enabled
26202             though, until NativeWindow's ExternalExceptionHandler define
26203             is removed
26204         * NativeWindow.cs:
26205           - Added internal method to allow control to update NativeWindow
26206             after a window has been destroyed
26207           - Added handling of already destroyed windows when calling i
26208             DestroyWindow
26209           - Added removal of handle from list on ReleaseHandle
26210         * XplatUIX11.cs:
26211           - Dropped GetMessageResult var and related code
26212           - Added PostQuitState to field to track if PostQuitMessage has been
26213             called
26214           - Dropped Exit() method
26215           - Added PostQuitMessage() method
26216           - GetMessage now will return false if PostQuitState is set and no
26217             more messages are in the queue.
26218           - Expose handler will no longer generate WM_PAINT messages if we are
26219             in PostQuitState since it's very likely any windows have already
26220             been destroyed, and since Hwnd won't get updated until we have
26221             processed the DestroyNotify we'd be causing X errors.
26222         
26223 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
26224
26225         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
26226           Thanks to Mike for pointing out the err of my ways.
26227
26228 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
26229
26230         * Control.cs(PreProcessMessage): Moved menu handling back, but
26231           after all other key handling, to match MS (who handles Menu in
26232           DefWndProc)
26233         * Menu.cs (WndProc): Removed my brainfart
26234
26235 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
26236
26237         * Control.cs(PreProcessMessage): Removed special menu handling 
26238         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
26239
26240 2005-12-07  Mike Kestner  <mkestner@novell.com>
26241
26242         * Control.cs : special case SYSKEYUP so that we can adjust keynav
26243         state according in tracker.
26244         * Menu.cs : promote tracker field to base class and provide a tracker
26245         lookup capability.  Add/Remove shortcuts dynamically if the top menu
26246         has a tracker. Unparent items that are removed from the collection.
26247         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
26248         * Theme*.cs: add always_show_hotkeys field to support configurability
26249         of mnemonic display.  win32 doesn't show mnemonics until Alt is
26250         pressed.
26251
26252 2005-12-07  Jackson Harper  <jackson@ximian.com>
26253
26254         * MdiChildContext.cs: Use Control.ResetCursor.
26255         * Control.cs: ResetCursor needs to set the property so that the
26256         correct XplatUI call gets made.
26257
26258 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
26259
26260         * Control.cs: More fixes to make our key events match MS. We
26261           were not setting the modifier state on KeyData, and we were
26262           not generating any events when Alt was pressed with a key
26263           since handling of WM_SYSxxx was missing for the OnKey methods.
26264
26265 2005-12-07  Jackson Harper  <jackson@ximian.com>
26266
26267         * MdiChildContext.cs: reenable the sizing code.
26268         - When the mouse leaves a window reset its cursor.
26269
26270 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
26271
26272         * ThemeClearlooks.cs: Reflect latest Hwnd changes
26273
26274 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
26275
26276         * Hwnd.cs: Now using the theme 3d bordersize to calculate
26277           widths of Fixed3D borders
26278
26279 2005-12-07  Jackson Harper  <jackson@ximian.com>
26280
26281         * MdiClient.cs: Fix warnings. Earn Mike's love.
26282
26283 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
26284
26285         * ThemeClearlooks.cs:
26286           - Adjusted mouse over button color
26287           - Added first parts of CheckBox drawing
26288           - Added correct color for selected text background
26289           - Fixed ComboBox drawing
26290           - Added CPDrawBorder3D and CPDrawBorder
26291
26292 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
26293
26294         * XplatUIX11.cs: Added call to XBell for AudibleAlert
26295
26296 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
26297
26298         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26299           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
26300           alert users via sound. We could add an enum arg with different
26301           types of alerts in the future
26302
26303 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
26304
26305         * Control.cs: Fix behaviour problems pointed out by Mike
26306
26307 2005-12-05  Mike Kestner  <mkestner@novell.com>
26308
26309         * StatusBarPanel.cs: add Invalidate method and hook it into all the
26310         prop setters.  Calls parent.Refresh for now, but could be maybe be
26311         optimized with an internal method on StatusBar at some point.
26312         [Fixes #76513]
26313
26314 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
26315
26316         * RichTextBox.cs: Implemented get_SelectionColor
26317
26318 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
26319
26320         * ThemeClearlooks.cs:
26321           - Removed dead code
26322           - Draw black button border only if button is Form.AcceptButton
26323           - Draw correct button color for pressed RadioButton if the mouse 
26324             has entered the button
26325           - Updated ProgressBar drawing!
26326           - Updated CPDrawSizeGrip drawing
26327           - Updated StatusBarPanel drawing
26328
26329 2005-12-05  Mike Kestner  <mkestner@novell.com>
26330
26331         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
26332         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
26333
26334 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
26335
26336         * ThemeClearlooks.cs: Initial check-in, activate with
26337           export MONO_THEME=clearlooks
26338         * ThemeEngine.cs: Added ThemeClearlooks
26339
26340 2005-12-03  Mike Kestner  <mkestner@novell.com>
26341
26342         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
26343         [Fixes #76897]
26344
26345 2005-12-02  Jackson Harper  <jackson@ximian.com>
26346
26347         * Form.cs: If the child form has no menu the default main menu is
26348         used as the active menu.
26349
26350 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
26351
26352         * ListBox.cs: Check if any items exist before trying to resolve 
26353           coordinates into items
26354
26355 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
26356
26357         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
26358           as the second color for the background hatch
26359
26360 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
26361
26362         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
26363         * RichTextBox.cs: FormatText position arguments are 1-based, now making
26364           sure that what we pass to FormatText is always 1-based. Fixes #76885
26365
26366 2005-11-29  Miguel de Icaza  <miguel@novell.com>
26367
26368         * NumericUpDown.cs (EndInit): When we are done initializing,
26369         reflect any updates on the UI.
26370
26371 2005-12-02  Jackson Harper  <jackson@ximian.com>
26372
26373         * ImplicitHScrollBar.cs:
26374         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
26375         their container controls.
26376         * TreeView.cs: Use the new implicit scrollbars.
26377
26378 2005-12-02  Jackson Harper  <jackson@ximian.com>
26379
26380         * TreeView.cs: Make top_node internal so the TreeNodeCollections
26381         can play with it.
26382         * TreeNodeCollection.cs: If we remove the topnode we need to
26383         update topnode to the next node in line.
26384         - When clearing nodes go through the same process as removing
26385         them, so they get depareneted and checked if they are top node.
26386
26387 2005-12-01  Jackson Harper  <jackson@ximian.com>
26388
26389         * TreeView.cs: When imagelists are used the image area is
26390         selectable as well as the text.
26391         - If there are no selected nodes select the first one.
26392         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
26393         so don't do it more then we need to.
26394
26395 2005-12-01  Jackson Harper  <jackson@ximian.com>
26396
26397         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
26398         that arrows can be scaled.
26399
26400 2005-12-01  Jackson Harper  <jackson@ximian.com>
26401
26402         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
26403         fail. Patch by Dieter Bremes
26404
26405 2005-11-30  Jackson Harper  <jackson@ximian.com>
26406
26407         * Form.cs: Property is 2.0 only
26408         * PrintDialog.cs: Signature fix.
26409
26410 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
26411
26412         * TextControl.cs: 
26413           - No longer artificially moves text 2 pixels down (now that we have
26414             borders this is no longer needed)
26415           - Added calcs for left, hanging and right indent
26416
26417 2005-11-23  Mike Kestner  <mkestner@novell.com>
26418
26419         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
26420
26421 2005-11-30  Jackson Harper  <jackson@ximian.com>
26422
26423         * MdiChildContext.cs: Set the cloned menus forms, as these don't
26424         get cloned as part of CloneMenu ().
26425         * Menu.cs: Make sure the parent of the items get set correctly
26426         when they are added.  And the owners are notified of the changes.
26427         * Form.cs: Create an ActiveMenu property, so that when MDI is used
26428         we can change the menu being displayed/handled by the form without
26429         changing the menu assosciated with the form.
26430         - Don't let Mdi children draw/handle menus.
26431         
26432 2005-11-30  Jackson Harper  <jackson@ximian.com>
26433
26434         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
26435         a MenuChanged event. Just to make the API a little more
26436         consistent.
26437         * MainMenu.cs:
26438         * MenuItem.cs: Use the new OnMenuChanged
26439         * MdiChildContext.cs: Handle menu merging.
26440         * Form.cs: Implement MergedMenu.
26441         
26442 2005-11-30  Jackson Harper  <jackson@ximian.com>
26443
26444         * Menu.cs: We were misusing Add. Add goes behind the specified
26445         index according to the docs, and does not replace the specified
26446         index. So I added an Insert method.
26447
26448 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
26449
26450         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
26451           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
26452           is for Jackson
26453         * RichTextBox.cs: Added calls to base for DnD events
26454
26455 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
26456
26457         * TextControl.cs:
26458           - Fixed drag-selection related crash; style fixes
26459           - Implemented undo class
26460             o Implemented method to capture document state for specified
26461               range in document tree
26462             o Implemented method to restore captured document state
26463             o Implemented cursor tracking
26464             o Implemented basic undo stack
26465           - Added undo cursor tracking to methods altering cursor location
26466           - Added undo tracking to selection deletion (still missing
26467             other text-altering hookups)
26468         * RichTextBox.cs:
26469           - Added SelectionLength property
26470           - Implemented CanPaste()
26471           - Implemented Paste()
26472           - Added missing protected methods
26473           - Fixed RTF->Document conversion; now uses font index 0 and color 
26474             index 0 as the default font for the parsed text
26475           - Fixed RTF<->Document font size translation
26476           - Fixed RTF generation, now properly handles cross-tag boundaries
26477             for single line selection
26478           - No longer always appends blank line to generated RTF
26479           - Removed TODOs
26480           - Added missing attributes
26481           - Hooked up undo-related methods
26482         * TextBoxBase.cs:
26483           - Implemented Copy()
26484           - Implemented Paste()
26485           - Implemented Cut()
26486           - Fixed caret mis-behaviour on backspace across line-boundaries
26487
26488 2005-11-29  Jackson Harper  <jackson@ximian.com>
26489
26490         * MdiClient.cs: Add a method for activating mdi children. Very
26491         basic right now. I imagine someday it might need more girth.
26492         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
26493         children windows names are added to the menu item.
26494         * ThemeWin32Classic.cs: Draw the arrow if the item is an
26495         mdilist. This happens regardless of whether or not there are any
26496         mdi windows to see in the list, and according to my tests happens
26497         before the items are even added. Also happens if there isn't even
26498         an mdi client to get windows from.
26499
26500 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
26501
26502         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
26503         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
26504
26505 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
26506
26507         * DataGridTableStyle.cs:
26508           - Create always the styles for the missing columns even if they are
26509             provided by the user (not default table style)
26510         * DataGrid.cs:
26511           - Fixes bug 76770
26512           - Fixes SetDataBinding (always re-attach source)
26513           - Fixes SetNewDataSource (only clear styles if they are not for 
26514             this source)
26515          -  Expands OnTableStylesCollectionChanged to handle style refresh 
26516             and remove properly
26517
26518 2005-11-29  Jackson Harper  <jackson@ximian.com>
26519
26520         * FileDialog.cs: Implement missing bits, remove some dead
26521         code.
26522         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
26523         creation of the panel so that the options set on the dialog are
26524         seen when the panel is created.
26525         * TreeView.cs: raise a click when items are clicked.
26526         
26527 2005-11-29  Jackson Harper  <jackson@ximian.com>
26528
26529         * MdiClient.cs: Pass some signature methods through to base.
26530
26531 2005-11-28  Jackson Harper  <jackson@ximian.com>
26532
26533         * ListView.cs: Raise the click event when items are clicked.
26534
26535 2005-11-28  Jackson Harper  <jackson@ximian.com>
26536
26537         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
26538         a nullref.
26539
26540 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
26541
26542         * ThemeNice.cs: - Removed 1 pixel bitmaps
26543           - Use SmoothingMode.AntiAlias where it makes sense
26544             (ScrollButton arrow for example)
26545           - Enhanced Button focus drawing
26546           - Fixed ComboBox drawing (no artefacts anymore, focus
26547             rectangle is back again, reduced size of ComboButton, etc.)
26548           - Fixed RadioButton focus drawing for Appearence.Button
26549           - Slight ScrollButton redesign
26550           - Some LinearGradientBrush size fixes
26551           - GroupBoxes have now rounded edges
26552           - Fixed StatusBar drawing
26553
26554 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
26555
26556         * ThemeNice.cs: - Remove dead code
26557           - use correct background colors for menus, etc.
26558           - Fake pixel drawing with 1 pixel bitmaps
26559
26560 2005-11-24  Jackson Harper  <jackson@ximian.com>
26561
26562         * MdiClient.cs: Size the scrollbars when resizing the window.
26563         - Resize the maximized windows when the client is resized
26564         * Form.cs: Make the child context available
26565         
26566 2005-11-23  Jackson Harper  <jackson@ximian.com>
26567
26568         * MdiChildContext.cs: Don't size windows if they are maximized.
26569
26570 2005-11-23  Mike Kestner  <mkestner@novell.com>
26571
26572         * ContextMenu.cs: use MenuTracker.
26573         * Control.cs: remove menu handle usage.
26574         * Form.cs: remove menu handle usage.
26575         * Hwnd.cs: remove menu handle usage.
26576         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
26577         motion and clicks to the new Tracker handlers.
26578         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
26579         and handle usage.
26580         * MenuAPI.cs: refactored to combine popup and menubar event handling.
26581         Killed the MENU and MENUITEM data types and associated collections
26582         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
26583         MenuTracker class that exposes the leftovers from the old MenuAPI
26584         static methods. Restructured Capture handling so that only one grab is
26585         done for the entire menu hierarchy instead of handing off grabs to
26586         submenus. Tracker now has an invisible control to Capture when active.
26587         * MenuItem.cs: add sizing accessors, kill Create
26588         and handle usage.
26589         * Theme.cs: remove menu handle and MENU(ITEM) usage.
26590         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
26591         MENU(ITEM). remove menu handle usage, use Menu directly.
26592         * XplatUIDriver.cs: remove menu handle usage.
26593         * XplatUIOSX.cs: remove menu handle usage.
26594         * XplatUIWin32.cs: remove menu handle usage.
26595         * XplatUIX11.cs: remove menu handle usage.
26596
26597 2005-11-22  Jackson Harper  <jackson@ximian.com>
26598
26599         * Hwnd.cs: Don't compute the menu size for
26600         DefaultClientRectangle.
26601         - Reenable menu sizes being computed for GetClienRectangle.
26602         * Form.cs: Remove comment of trechery
26603         
26604 2005-11-22  Jackson Harper  <jackson@ximian.com>
26605
26606         * Hwnd.cs: The adjustments for the menu bar are made when it is
26607         attached to the form.
26608
26609 2005-11-19  Jackson Harper  <jackson@ximian.com>
26610
26611         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
26612         (just like on windows).
26613
26614 2005-11-19  Jackson Harper  <jackson@ximian.com>
26615
26616         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
26617         use real buttons anymore because they are in non client area. The
26618         one TODO here is that I need to somehow invalidate a section of
26619         the non client area.
26620
26621 2005-11-18  Jackson Harper  <jackson@ximian.com>
26622
26623         * Control.cs: Put the enum check back in now that MDI doesnt have
26624         to use this to set border styles.
26625         * Form.cs: Only set mdi child windows borders if the handle has
26626         been created.
26627         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
26628         this directly on to the driver.
26629         - Get the move start position before adjusting for the titlebar
26630         height, this fixes the windows "skipping" when they are first
26631         moved.
26632
26633 2005-11-18  Jackson Harper  <jackson@ximian.com>
26634
26635         * XplatUIX11.cs: Just compute the mdi borders separately as they
26636         don't totally match up with normal form borders.
26637
26638 2005-11-18  Jackson Harper  <jackson@ximian.com>
26639
26640         * Control.cs: Set WS_ styles for borders, so that the driver does
26641         not have to retrieve the control instance to figure out what kind
26642         of borders it should have.
26643         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
26644         driver can know its an mdi child easily.
26645         * XplatUIX11.cs: Get the border styles and whether the window is
26646         MDI from the Styles and ExStyles params instead of having to get a
26647         control. This prevents a chicken and egg problem.       
26648
26649 2005-11-18  Jackson Harper  <jackson@ximian.com>
26650
26651         * MdiClient.cs: Fix typo so scrollbars show up correctly.
26652
26653 2005-11-18  Jackson Harper  <jackson@ximian.com>
26654
26655         * MdiClient.cs: Calculate when to add and remove scrollbars
26656         correctly.
26657         * MdiChildContext.cs: Adjust the y position to take the titlebar
26658         into account.
26659         - No height for FormBorderStyle.None
26660
26661 2005-11-18  Jackson Harper  <jackson@ximian.com>
26662
26663         * Control.cs: Allow non enum values to be used for
26664         InternalBorderStyle.  MDI does this to set a special border style.
26665         - New utility methods for converting points to/from client coords
26666         - Add the newly created control to the Controls collection before
26667         updating its style. This way UpdateStyle can walk the control
26668         heirarchy to find the control if needed.
26669         so I don't need to create a new Point object all the time.
26670         * Form.cs: Let MDI windows handle their border styles.
26671         - Set styles on MDI windows so the correct title style is derived.
26672         * MdiChildContext.cs: Move all the painting and window handling
26673         into the non client area.
26674         - Use correct sizing and put correct buttons on frames based on
26675         the FormBorderStyle.
26676         - Notify the mdi client about scrolling
26677         - Need to handle the buttons ourselves now, because they are all
26678         in non client areas and we can't add controls there.
26679         * MdiClient.cs: Halfway to scrolling, this implementation is
26680         somewhat broken though, we need to check to make sure other
26681         windows aren't causing scrolling before removing the bars. Also
26682         the bars need to be drawn on top, maybe I can switch implicit
26683         controls to be on top.
26684         * Hwnd.cs: caption_height and tool_caption_height are now
26685         properties of an hwnd, this way they can be set by the driver
26686         based on the type of window they are.  In X11 the window manager
26687         handles the decorations so caption_height is zero unless its an
26688         MDI window.
26689         - Add 3 pixel borders for MDI windows (0xFFFF).
26690         - Get rid of some code duplication, have DefaultClientRectanle
26691         just call GetClientRectangle.
26692         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
26693         Hwnd now.
26694         - Set border styles differently for mdi windows.
26695         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
26696         Hwnd now.
26697         
26698 2005-11-15  Mike Kestner  <mkestner@novell.com>
26699
26700         * Menu.cs: when adding an item to the collection, if item is already 
26701         parented, remove it from the parent.
26702
26703 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
26704
26705         * X11DesktopColors.cs: Added KDE support
26706
26707 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
26708
26709         * XplatUIWin32.cs: 
26710           - Clipboard methods now can translate Rtf format
26711           - No longer removes clipboard contents whenever a new format is added
26712             to allow placing multiple formats on the clipboard
26713         * Clipboard.cs: Clipboard now supports getting a IDataObject and
26714           will place all formats contained in it onto the clipboard. Also
26715           now cleans the clipboard before placing a new object onto it
26716         * RichTextBox.cs:
26717           - Implemented set_Rtf
26718           - Implemented set_SelectedRtf
26719           - Created InsertRTFFromStream() method to allow single code base
26720             for all properties and methods that insert RTF into document
26721           - Removed debug output
26722         * TextControl.cs:
26723           - Fixed Delete(int) to fix up line numbers
26724           - Fixed ReplaceSelection to combine start and end line
26725           - Fixed serious DeleteChars bug that would leave the document tree
26726             broken
26727           - Improved DumpTree with several logic checks to detect broken
26728             document trees
26729           - Removed debug lines
26730           - Fixed Caret.WordForward/WordBack moving code, now always also 
26731             updates caret.tag (fixes crash when word-selecting across tag
26732             boundaries via keyboard)
26733           - Added Insert() method for inserting multiline text into documents
26734           - Fixed DeleteChars() calculation errors that would cause a broken
26735             tag chain with multiple tag lines
26736           - DeleteChars() no longer crashes on multi-tag lines if not all tags
26737           - Split() no longer moves caret if split is at caret location
26738           - ReplaceSelection() now updates the cursor and re-displays it
26739           - ReplaceSelection() now uses new Insert() method to avoid code
26740             duplication
26741           - FormatText() can now handle formatting partial lines
26742         * TextBoxBase.cs:
26743           - Append now uses new TextControl.Insert() method (this avoids 
26744             duplicate code)
26745           - Implemented Ctrl-X (Cut) (
26746           - Implemented Ctrl-C (Copy)
26747           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
26748             regeneration when pasting text; roundtripping Copy&Paste within
26749             edit control still fails due to some calculation bugs in GenerateRTF)
26750           - The Delete key will now remove the current selection if it is visible
26751         * TextBox.cs: Removed debug lines
26752         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
26753           driver to be initialized and can't therefore be done via a static ctor)
26754
26755 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
26756
26757         * TextControl.cs: Added backend code for finding char arrays and strings
26758         * TextBoxBase.cs:
26759           - Added mouse wheel scroll support
26760           - Added support for VScroll and HScroll events
26761         * RichTextBox.cs:
26762           - Implemented all seven Find() variants
26763           - Implemented GetCharFromPosition()
26764           - Implemented GetCharIndexFromPosition()
26765           - Implemented GetLineFromIndex()
26766           - Implemented GetPositionFromCharIndex();
26767           - Implemented SaveFile for PlainText and UnicodeText
26768           - Fixed set_Font, now setting a new font applies that font to
26769             the whole document
26770           - Implemented generic Document to RTF converter
26771           - Implemented SaveFile for RichText format (still missing unicode
26772             conversion for non-ansi chars)
26773           - Implemented get_Rtf
26774           - Implemented get_SelectedRtf
26775
26776 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
26777
26778         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
26779           to allow any captures to be released before triggering OnClick. This
26780           way a click handler may capture the mouse without interference.
26781         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
26782           This way we send them even though X may not allow a grab (if the window
26783           isn't visible, for example)
26784
26785 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
26786
26787         * DataGridViewRowEventArgs.cs: DataGridView implementation
26788         * DataGridViewElement.cs: DataGridView implementation
26789         * DataGridViewComboBoxCell.cs: DataGridView implementation
26790         * DataGridViewDataErrorContexts.cs: DataGridView implementation
26791         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
26792         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
26793         * ImageLayout.cs: DataGridView implementation
26794         * DataGridViewComboBoxColumn.cs: DataGridView implementation
26795         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
26796         * DataGridViewSelectionMode.cs: DataGridView implementation
26797         * IDataGridViewEditingControl.cs: DataGridView implementation
26798         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
26799         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
26800         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
26801         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
26802         * DataGridViewColumnSortMode.cs: DataGridView implementation
26803         * DataGridView.cs: DataGridView implementation
26804         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
26805         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
26806         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
26807         * Padding.cs: DataGridView implementation
26808         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
26809         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
26810         * DataGridViewRowEventHandler.cs: DataGridView implementation
26811         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
26812         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
26813         * DataGridViewButtonCell.cs: DataGridView implementation
26814         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
26815         * DataGridViewEditMode.cs: DataGridView implementation
26816         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
26817         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
26818         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
26819         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
26820         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
26821         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
26822         * DataGridViewCellEventHandler.cs: DataGridView implementation
26823         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
26824         * DataGridViewCellStyleConverter.cs: DataGridView implementation
26825         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
26826         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
26827         * DataGridViewColumnEventArgs.cs: DataGridView implementation
26828         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
26829         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
26830         * QuestionEventArgs.cs: DataGridView implementation
26831         * IDataGridViewEditingCell.cs: DataGridView implementation
26832         * DataGridViewTriState.cs: DataGridView implementation
26833         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
26834         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
26835         * DataGridViewColumnCollection.cs: DataGridView implementation
26836         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
26837         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
26838         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
26839         * DataGridViewColumn.cs: DataGridView implementation
26840         * DataGridViewCellBorderStyle.cs: DataGridView implementation
26841         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
26842         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
26843         * DataGridViewRow.cs: DataGridView implementation
26844         * DataGridViewImageCellLayout.cs: DataGridView implementation
26845         * DataGridViewImageCell.cs: DataGridView implementation
26846         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
26847         * DataGridViewCheckBoxCell.cs: DataGridView implementation
26848         * DataGridViewHeaderCell.cs: DataGridView implementation
26849         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
26850         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
26851         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
26852         * DataGridViewTextBoxColumn.cs: DataGridView implementation
26853         * QuestionEventHandler.cs: DataGridView implementation
26854         * DataGridViewCellStyleScopes.cs: DataGridView implementation
26855         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
26856         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
26857         * DataGridViewCell.cs: DataGridView implementation
26858         * DataGridViewCellEventArgs.cs: DataGridView implementation
26859         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
26860         * DataGridViewCellStyle.cs: DataGridView implementation
26861         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
26862         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
26863         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
26864         * TextFormatFlags.cs: DataGridView implementation
26865         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
26866         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
26867         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
26868         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
26869         * DataGridViewButtonColumn.cs: DataGridView implementation
26870         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
26871         * HandledMouseEventArgs.cs: DataGridView implementation
26872         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
26873         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
26874         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
26875         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
26876         * DataGridViewRowCollection.cs: DataGridView implementation
26877         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
26878         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
26879         * DataGridViewHitTestType.cs: DataGridView implementation
26880         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
26881         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
26882         * DataGridViewColumnEventHandler.cs: DataGridView implementation
26883         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
26884         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
26885         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
26886         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
26887         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
26888         * DataGridViewContentAlignment.cs: DataGridView implementation
26889         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
26890         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
26891         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
26892         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
26893         * DataGridViewPaintParts.cs: DataGridView implementation
26894         * DataGridViewCellCollection.cs: DataGridView implementation
26895         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
26896         * DataGridViewImageColumn.cs: DataGridView implementation
26897         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
26898         * DataGridViewElementStates.cs: DataGridView implementation
26899         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
26900         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
26901         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
26902         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
26903         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
26904         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
26905         * DataGridViewRowHeaderCell.cs: DataGridView implementation
26906         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
26907         * DataGridViewTextBoxCell.cs: DataGridView implementation
26908         * DataGridViewBand.cs: DataGridView implementation
26909         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
26910         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
26911         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
26912         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
26913         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
26914         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
26915         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
26916         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
26917         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
26918         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
26919         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
26920
26921 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
26922
26923         * ThemeWin32Classic.cs: 
26924           - Draw the outside focus rectangle around buttons
26925           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
26926             doesn't use end caps for every dash of a line anymore. This
26927             workaround ignores the forecolor.
26928
26929 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
26930
26931         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
26932           endian safe.
26933
26934 2005-11-07  Jackson Harper  <jackson@ximian.com>
26935
26936         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
26937
26938 2005-11-07  Jackson Harper  <jackson@ximian.com>
26939
26940         * ScrollableControl.cs: Calculate the maximum and change vars
26941         (more) correctly so that scrollbars appear as a sensible size.
26942
26943 2005-11-04  Jackson Harper  <jackson@ximian.com>
26944
26945         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
26946         collection.
26947         * TreeView.cs: When the tree is sorted null out the top_node so
26948         that it is recalculated.
26949         - Use dotted lines instead of dashed lines to match MS better.
26950
26951 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
26952
26953         * ListView.cs: 
26954           - Implements key search for items. Useful when browsing files with FileDialog
26955           - When changing view mode or when clear the items reset scrollbar positions
26956
26957 2005-11-04  Jackson Harper  <jackson@ximian.com>
26958
26959         * CurrencyManager.cs: Implement the MetaDataChanged event, the
26960         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
26961         as to what the method may do as there is no real way of creating a
26962         derived CurrencyManager and calling the method. 
26963
26964 2005-11-03  Jackson Harper  <jackson@ximian.com>
26965
26966         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
26967         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
26968         method which seems to just be used internally to refresh the tabs.
26969
26970 2005-11-03  Jackson Harper  <jackson@ximian.com>
26971
26972         * TabControl.cs: Implement the remove method. Fix some broken
26973         comments.
26974
26975 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
26976
26977         * DateTimePicker.cs:
26978           - Added missing DateTimePickerAccessibleObject class
26979           - Added missing events
26980           - Added OnFontChanged method
26981         * Form.cs: Added missing attributes
26982         * TreeView.cs: Added missing attributes
26983
26984 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
26985
26986         * GridItemCollection.cs: Fix signatures
26987
26988 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
26989
26990         * XplatUI.cs: Updated build rev/date
26991         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
26992           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
26993         * Application.cs: Trigger context-specific ExitThread events
26994
26995 2005-11-03  Jackson Harper  <jackson@ximian.com>
26996
26997         * Menu.cs:
26998         * MainMenu.cs:
26999         * GridTableStylesCollection.cs:
27000         * Timer.cs:
27001         * TabPage.cs:
27002         * HelpProvider.cs:
27003         * StatusBar.cs:
27004         * MonthCalendar.cs: Signature fixes
27005
27006 2005-11-03  Jackson Harper  <jackson@ximian.com>
27007
27008         * TreeNodeCollection.cs: Remove should not be virtual.
27009         * TreeView.cs: Implement the last of the missing methods.
27010
27011 2005-11-03  Jackson Harper  <jackson@ximian.com>
27012
27013         * TreeNodeConverter.cs: Implement to get off my class-status back.
27014
27015 2005-11-03  Jackson Harper  <jackson@ximian.com>
27016
27017         * TreeView.cs: Hookup the bits for drag and drop.
27018         * TreeNode.cs: Don't cache the tree_view or index anymore, now
27019         that nodes can be moved from tree to tree easily this just causes
27020         all sorts of problems.
27021         * TreeNodeCollection: Don't need to give treenodes an index and
27022         treeview anymore when they are added, these are computed on the
27023         fly. Also make sure to remove a node before its added.
27024
27025 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
27026
27027         * TextControl.cs:
27028           - Added CaretSelection enum
27029           - Added comparison methods to Marker struct, makes selection code
27030             more readable
27031           - Added SelectionStart and SelectionEnd as 'moveable' location for
27032             the CaretDirection enum and handler
27033           - Added selection_prev variable to track optimized invalidation for
27034             word and line selection
27035           - Added SelectionVisible property (returns true if there is a valid 
27036             selection)
27037           - Switched CaretHasFocus to only display the caret if there is no
27038             visible selection
27039           - Avoiding StringBuilder.ToString to retrieve a single char, instead
27040             using the direct character index; should be much faster
27041           - Added various conditional debug statements
27042           - Fixed invalidation calculation for selection ranges
27043           - Added ExpandSelection() method to support word and line selection
27044           - Switched SetSelectionToCaret to use new Marker compare overloads
27045           - Added central IsWordSeparator() method to determine word 
27046             separators/whitespace and FindWordSeparator() to streamline common
27047             usage of IsWordSeparator()
27048         * TextBoxBase.cs:
27049           - Removed unneeded grabbed variable, it was just mirroring
27050             Control.Capture
27051           - No longer firing OnTextChanged event when Text setter is called,
27052             since the base will fire the event for us
27053           - Added handling of Ctrl-Up/Down selection
27054           - Added handling of Shift-Cursorkey selection
27055           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
27056             words
27057           - Added handling of Shift and Ctrl-Shift-Home/End selection
27058           - Removed some debug output
27059           - Added handling for single/double/tripple-click to place caret/
27060             select word/select line respectively (Fixes bug #76031)
27061           - Added support for drag expansion of word/line selection
27062         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
27063           current selection
27064
27065 2005-11-02  Jackson Harper  <jackson@ximian.com>
27066
27067         * X11Dnd.cs: If the drag is going to and from a MWF window just
27068         copy the data instead of sending it out through the X Selection
27069         mechanism.
27070
27071 2005-11-02  Jackson Harper  <jackson@ximian.com>
27072
27073         * X11Dnd.cs:
27074         * XplatUIX11.cs: When in a drag we don't want motion notify
27075         messages to get passed on to the other controls. This prevents
27076         mouse move messages from showing up in the drag source.
27077
27078 2005-11-02  Jackson Harper  <jackson@ximian.com>
27079
27080         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
27081         the correct button is release to end a drag.
27082         * XplatUIX11.cs: Make the button state internal so the drag system
27083         can access it.  Dragging needs to know about all button releases,
27084         not just left button.
27085
27086 2005-11-02  Miguel de Icaza  <miguel@novell.com>
27087
27088         * Form.cs (Icon): If the icon is null, reset the icon to the
27089         default value. 
27090
27091         * Cursor.cs: When writing the AND-mask bitmap do not include the
27092         number of colors, but hardcode those to two (black and white),
27093         fixes the loading of color cursors (Paint Dot Net).
27094
27095         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
27096         turn off autoscaling.
27097
27098         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
27099
27100 2005-11-02  Jackson Harper  <jackson@ximian.com>
27101
27102         * X11Dnd.cs: Make sure to send a status message if the pointer
27103         enters a control that can not accept a drop, otherwise the cursor
27104         isn't updated correctly. Also tried to compress the lines of code
27105         a bit.
27106
27107 2005-11-02  Jackson Harper  <jackson@ximian.com>
27108
27109         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
27110         set actions correctly.  This isn't perfect as XDND and win32 have
27111         some differences on how you allow actions. I'll clear this up by
27112         adding a path for drag from MWF to MWF windows.
27113         * XplatUIX11.cs: Hook into the dnd system.
27114
27115 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
27116
27117         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
27118         previously shown but they are no longer need it. Very obvious when 
27119         browsing files with FileDialog.
27120
27121 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
27122
27123         * Control.cs: We always need to call OnPaintBackground. We pretty much
27124           ignore AllPaintingInWmPaint and always do the painting there, whether 
27125           it's set or not, since we always ignore the WM_ERASEBKGND message 
27126           (which we don't generate on X11). This fixes #76616.
27127         * Panel.cs: Removed unneeded background painting. This happens properly
27128           in Control.cs already
27129
27130 2005-10-31  Mike Kestner  <mkestner@novell.com>
27131
27132         * Menu.cs: Add items to collection before setting their index.
27133         * MenuItem.cs : add range checking with ArgumentException like MS.
27134         [Fixes #76510]
27135
27136 2005-10-31  Jackson Harper  <jackson@ximian.com>
27137
27138         * ListBox.cs: Invalidate if the area is visible at all not just
27139         contained in the visible rect. Fixes unselection of semi visible
27140         items.
27141
27142 2005-10-31  Jackson Harper  <jackson@ximian.com>
27143
27144         * Control.cs: Consistently name the dnd methods. Make them
27145         internal so we can override them to match some MS behavoir
27146         internally.
27147         * Win32DnD.cs: Use the new consistent names.
27148
27149 2005-10-31  Jackson Harper  <jackson@ximian.com>
27150
27151         * TreeView.cs: Don't draw the selected node when we lose focus.
27152
27153 2005-10-31  Jackson Harper  <jackson@ximian.com>
27154
27155         * X11Dnd.cs: We still need to reset the state even though a full
27156         reset isn't being done, otherwise status's still get sent all over
27157         the place.
27158
27159 2005-10-31  Jackson Harper  <jackson@ximian.com>
27160
27161         * Control.cs: Make the dnd_aware flag internal so the dnd
27162         subsystem can check it. Catch exceptions thrown in dnd handlers to
27163         match MS behavoir.
27164         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
27165         * X11Dnd.cs: Handle null data in the converters. Set the XDND
27166         version when sending a XdndEnter. Use the control/hwnd dnd_aware
27167         flags to reduce the number of dnd enters/status's sent.
27168
27169 2005-10-31  Jackson Harper  <jackson@ximian.com>
27170
27171         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
27172
27173 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
27174
27175         * PictureBox.cs: Fixes 76512
27176
27177 2005-10-28  Jackson Harper  <jackson@ximian.com>
27178
27179         * X11Dnd.cs: Early implementation to support winforms being a drag
27180         source for data on X11. Also restructured the converters so they
27181         can go both ways now.
27182         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
27183         
27184 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
27185
27186         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
27187           clipboard requests
27188
27189 2005-10-27  Jackson Harper  <jackson@ximian.com>
27190
27191         * TreeNode.cs: Implement serialization so my DnD examples will work.
27192
27193 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
27194
27195         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
27196           TreeView.cs: Don't dispose objects that are not owned.
27197           
27198 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
27199
27200         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
27201           should retrieve the current cursor and report that, but XplatUI
27202           doesn't (yet) have an interface for that (and I'm not sure I even
27203           can, on X11)
27204         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
27205           until any message loop processing is done (and the WM_SETCURSOR
27206           replaces the cursor to the proper one)
27207         * XplatUIX11.cs: 
27208           - Fixed override behaviour, we can't set the cursor globally on X11, 
27209             just for our windows.
27210           - Invalidating the System.Drawing X11 display handle when we are
27211             shutting down
27212         * Control.cs: Fix to make csc happy
27213
27214 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
27215
27216         * TextBoxBase.cs: 
27217           - get_Text: Add last line (without trailing newline) to returned
27218             value (Fixes 76212)
27219           - get_TextLength: Count last line in returned length
27220           - ToString: Call Text property instead of duplicating code
27221
27222 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
27223
27224         * ImageList.cs: Dispose ImageAttributes objects.
27225
27226 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
27227
27228         * ImageList.cs: Use attribute constructors with less arguments where
27229           possible.
27230
27231 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
27232
27233         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
27234           Use typeof instead of strings when assembly is referenced. Added
27235           some more comments.
27236
27237 2005-10-21  Jackson Harper  <jackson@ximian.com>
27238
27239         * ListView.cs: Raise a double click event. Also tried to somewhat
27240         fix when the selectedindexchanged event is raised. Its still
27241         broken though.
27242
27243 2005-10-21  Jackson Harper  <jackson@ximian.com>
27244
27245         * TreeView.cs: New method to invalidate the plus minus area of a
27246         node without invalidating the whole node (maybe this can be used
27247         in some more places).
27248         * TreeNodeCollection.cs: When adding to an empty node we need to
27249         invalidate its plus minus area so the little block shows up.
27250         
27251 2005-10-21  Jackson Harper  <jackson@ximian.com>
27252
27253         * TreeView.cs: Make sure that when we invalidate a node the bounds
27254         are big enough to cover the selected box and the focus
27255         rectangle. Use a different colour for the lines connecting nodes
27256         so they show up with all themes.
27257
27258 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
27259
27260         * NativeWindow.cs: Don't call anything that could call into the driver,
27261           we might be on a different thread.
27262
27263 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
27264
27265         * Control.cs(Dispose): Since Dispose might run on a different thread,
27266           make sure that we call methods that could call into the driver via
27267           invoke, to avoid thread issues
27268
27269 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
27270
27271         * XplatUI.cs: Removed finalizer
27272         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
27273           not allowing to be called on the finalizer thread.
27274
27275 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
27276
27277         * ImageList.cs:
27278           - Reverted r51889 and r51891.
27279           - Added ImageListItem class that stores unmodified image items and image
27280             properties required to create list images until handle is created.
27281           - Added AddItem and moved image creation logic to AddItemInternal.
27282           - Added CreateHandle method that creates images based on unmodified items.
27283           - Added DestroyHandle that changes state to store unmodified items.
27284           - Add and AddStrip methods no more create handle.
27285           - ReduceColorDepth has no return value.
27286           - Dispose destroys handle.
27287           - Modified other methods to reflect the above changes.
27288           - Implemented key support.
27289           - Added profile 2.0 members and attributes.
27290           - Added private Reset and ShouldSerialize methods that provide the same
27291             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
27292             them as they are private.
27293           - Added some more comments about implementation details.
27294
27295 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
27296
27297         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
27298
27299 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
27300
27301         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
27302
27303 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
27304
27305         * DataGridDrawingLogic.cs: Fixes column hit calcultation
27306         * DataGridColumnStyle.cs: Remove debug message
27307
27308 2005-10-20  Jackson Harper  <jackson@ximian.com>
27309
27310         * TreeView.cs: We can always get input keys regardless of whether
27311         or not editing is enabled. They are used for navigation.
27312
27313 2005-10-20  Jackson Harper  <jackson@ximian.com>
27314
27315         * TreeNode.cs: Use the viewport rect for determining if a node
27316         needs to be moved for visibility. Don't use Begin/End edit. This
27317         calls a full refresh when its done.
27318         * TreeView.cs: New SetBottom works correctly.  Make the viewport
27319         rect property internal so the treenodes can see it. When clicking
27320         on a node we need to ensure that its visible because it might just
27321         be partly visible when clicked.
27322
27323 2005-10-20  Jackson Harper  <jackson@ximian.com>
27324
27325         * TreeNodeCollection.cs: Remove debug code.
27326
27327 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
27328
27329         * Datagrid.cs: Implements column sorting in Datagrid
27330         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
27331
27332 2005-10-20  Jackson Harper  <jackson@ximian.com>
27333
27334         * TreeNodeCollection.cs: Remove items properly. Update the correct
27335         area after removing them.
27336
27337 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
27338
27339         * Datagrid.cs: Should not call base.OnPaintBackground
27340
27341 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
27342
27343         * XplatUIX11.cs (GetMessage):
27344           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
27345             window instead of client window
27346           - Now properly calculates NC_xBUTTONUP message coordinates
27347           - ScreenToMenu now properly calculates it's coordinates of whole 
27348             window, since menus are in the whole window, not in the client
27349             window
27350           - Added WholeToScreen coordinate translation method
27351
27352 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
27353
27354         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
27355           want to return a message, loop back to the beginning of the function
27356           and grab the next real message to process instead.
27357
27358 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
27359
27360         * Splitter.cs: Properly set limits if no filler control is used
27361
27362 2005-10-19  Jackson Harper  <jackson@ximian.com>
27363
27364         * ColorDialog.cs: Don't show the help button if it is not enabled
27365         instead of disabling it (this is what MS does). Don't create the
27366         panel until the dialog is run, otherwise the vars (such as
27367         ShowHelp) are not set yet.
27368
27369 2005-10-19  Jackson Harper  <jackson@ximian.com>
27370
27371         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
27372         are reduced when adding nodes.
27373         * TreeNode.cs:
27374         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
27375         tree.
27376         
27377 2005-10-19  Jackson Harper  <jackson@ximian.com>
27378
27379         * FolderBrowserDialog.cs: End editing our treeview so the window
27380         actually gets refreshed.
27381
27382 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
27383
27384         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
27385           Obsoleted handling of WM_ERASEBKGND, now always draws our background
27386           inside of WM_PAINT
27387
27388 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
27389
27390         * MenuAPI.cs: Returns after Hidding window
27391         * XplatUIX11.cs: Added TODO found while debugging menu issues
27392
27393 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
27394
27395         * XplatUIX11.cs: Do not re-map the whole window when it's size
27396           becomes non-zero unless it's supposed to be actually visible
27397
27398 2005-10-18  Jackson Harper  <jackson@ximian.com>
27399
27400         * TreeView.cs: We don't need to keep a count anymore.
27401         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
27402         use the Grow method.
27403
27404 2005-10-18  Jackson Harper  <jackson@ximian.com>
27405
27406         * TreeNodeCollection.cs: Insert is not supported on arrays, so
27407         implement it manually here.
27408
27409 2005-10-18  Jackson Harper  <jackson@ximian.com>
27410
27411         * ImageList.cs: Dont kill the list when the colour depth is
27412         changed, just change the colour depth of all the images.
27413         - Same goes for setting the image size. Just resize them all
27414         instead of killing the list softly.
27415
27416 2005-10-18  Jackson Harper  <jackson@ximian.com>
27417
27418         * Control.cs: Don't invalidate empty rectangles.
27419
27420 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
27421
27422         * ListViewItem.cs:
27423           - Adds checked item to the Checked/Item lists (where empty before)
27424           - Do not add items to the Selected lists if they are already present
27425         * ListView.cs:
27426           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
27427           - When deleting items make sure that we delete them for the Selected
27428           and Checked list also.
27429
27430 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
27431
27432         * Label.cs: Dispose objects no longer used
27433         * ThemeWin32Classic.cs: Dispose objects no longer used
27434
27435 2005-10-18  Jackson Harper  <jackson@ximian.com>
27436
27437         * TabControl.cs: Don't refresh the whole control when the tabs are
27438         scrolled, we just need to refresh the tab area.
27439
27440 2005-10-17  Jackson Harper  <jackson@ximian.com>
27441
27442         * XplatUIX11.cs: Compress code a little bit. Only calculate the
27443         after handle when we need it.
27444
27445 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
27446
27447         * Control.cs: When the parent size changes, recalculate anchor 
27448           positions. Partial fix for #76462
27449
27450 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
27451
27452         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
27453           drawn. Fixes #76462
27454
27455 2005-10-17  Jackson Harper  <jackson@ximian.com>
27456
27457         * MonthCalendar.cs: Don't create the numeric up down until our
27458         handle is created. Otherwise our handle is created in the
27459         constructor and we don't know if we are a WS_CHILD or WS_POPUP
27460         yet.
27461
27462 2005-10-17  Jackson Harper  <jackson@ximian.com>
27463
27464         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
27465         correctly.
27466
27467 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
27468         * TreeNode.cs : small logical fix (was using local var instead of field)
27469         
27470 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
27471
27472         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
27473
27474 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
27475
27476         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
27477
27478 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
27479
27480         * Control.cs: 
27481           - Re-implemented anchoring code. My first version was really broken.
27482             This fixes bug #76033. Unlike the previous implementation we will
27483             no longer have round errors since all numbers are calculated from
27484             scratch every time. Removed various anchor-related obsolete vars.
27485           - InitLayout no longer causes layout event firing and layout to be 
27486             performed
27487
27488 2005-10-16  Jackson Harper  <jackson@ximian.com>
27489
27490         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
27491         which was broken).
27492
27493 2005-10-16  Jackson Harper  <jackson@ximian.com>
27494
27495         * TabControl.cs: Remove debug code.
27496
27497 2005-10-16  Jackson Harper  <jackson@ximian.com>
27498
27499         * XEventQueue.cs: Increase the default queue size (very simple
27500         apps needed to grow the queue).
27501         * Hwnd.cs: No finalizer so we don't need to suppress
27502         finalization. Compute the invalid area manually so a new rectangle
27503         does not newto be created.
27504         * ScrollableControl.cs: Don't set any params (otherwise visibility
27505         isn't set correctly).
27506         * MdiChildContext.cs: New constructor takes the mdi parent so it
27507         doesn't have to be computed and avoids a crash on windows. Draw
27508         the window icon properly, and allow the text to be seen.
27509         * Form.cs: Use new MdiChildContext constructor. Make sure the
27510         child context isn't null in wndproc.
27511         * TabControl.cs: Don't set focus, this is muddling keyboard
27512         behavoir. Expand the tab rows when a window size increase will
27513         allow extra tabs to be seen. Don't allow tabs smaller than the
27514         width of a window to be scrolled out of view.
27515         * TreeNode.cs:
27516         * TreeView.cs: Use measure string to calculate a nodes width, the
27517         width is cached and only updated when the text or the font is
27518         changed. Don't check for expand/collapse clicks on the first level
27519         nodes if root lines are disabled.
27520         
27521 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
27522
27523         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
27524
27525 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
27526
27527         * DataGridBoolColumn.cs: fixes warning
27528
27529 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
27530
27531         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
27532         to match more to match more precisely the MS Net behavior
27533
27534 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
27535
27536         * Hwnd.cs: Added field to track if window is mapped
27537         * XplatUIX11.cs: 
27538           - Unmap windows if they become 0-size, re-map when 
27539             they are >0 again; fixes #76035
27540           - Re-set our error handler after initializing X11Desktop
27541             to override any error handlers Gtk or whatever was called
27542             may have set.
27543
27544 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
27545
27546         * CheckedListBox.cs: Removed unused vars
27547         * ListView.cs: Fixed signatures
27548         * RichTextBox.cs: Removed unused vars
27549         * TextBoxBase.cs: Removed unused vars
27550         * XplatUIWin32.cs: Removed unused vars
27551         * XplatUIX11.cs: Removed unused vars
27552         * XplatUI.cs: Updated version and date to latest published
27553
27554 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
27555
27556         * Cursor.cs: Added private .ctor to work around a bug in
27557           resourceset (Thanks to Geoff Norton for the help on this)
27558         * SplitterEventArgs.cs: Made fields accessible so we don't
27559           waste boatloads of objects and can reuse the same one
27560           in Splitter
27561         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
27562           any captions and borders when generating screen coordinates
27563         * Splitter.cs: Reimplemented control, now fully complete, uses
27564           rubberband drawing, supports and obeys all properties, has
27565           proper cursors
27566
27567 2005-10-13  Miguel de Icaza  <miguel@novell.com>
27568
27569         * Form.cs (Form): Setup default values for autoscale and
27570         autoscale_base_size;  Make these instance variables, not static
27571         variables. 
27572
27573         (OnLoad): on the first load, adjust the size of the form.
27574
27575 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
27576
27577         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
27578           width argument to DrawReversibleRectangle()
27579         * XplatUIWin32.cs, XplatUIX11.cs: 
27580           - Implemented width for DrawReversibleRectangle()
27581           - Added logic to DrawReversibleRectangle that recognizes a zero
27582             width or height and only draws a line in that situation
27583         
27584 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
27585
27586         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
27587         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
27588         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
27589           method (it uses our FosterParent window to get a graphics context)
27590
27591 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
27592
27593         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
27594           and SetWindowBackground methods
27595         * Control.cs:
27596           - Setting proper ControlStyles
27597           - We no longer call XplatUI.SetWindowBackground and XplatUI.
27598             EraseWindowBackground, instead we draw the window background
27599             ourselves in PaintControlBackground. This behaviour is
27600             required to match MS, where, when OnPaintBackground is not
27601             called, the background is not drawn.
27602           - Removed unneeded Refresh() in set_Text
27603         * Hwnd.cs: Dropped the ErasePending support. No longer needed
27604         * XplatUIX11.cs:
27605           - Created DeriveStyles method to translate from CreateParams to
27606             FormBorderStyle and TitleStyle, also handles BorderStyle (which
27607             matches FormBorderStyle enum values)
27608           - Consolidated SetHwndStyles and CalculateWindowRect border/title
27609             style calculations into single DeriveStyles method
27610           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
27611             from redrawing the whole window on any resize or expose.
27612           - Fixed CreateWindow usage of SetWindowValuemask. Before not
27613             all styles were applied to our whole/client window appropriately
27614           - Removed EraseWindowBackground() and SetWindowBackground() methods
27615           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
27616             no longer clear/redraw the background through X
27617           - Removed handling of erase_pending bit, we have no use for it (or
27618             so it seems)
27619         * XplatUIOSX.cs:
27620           - Removed generation and handling of WM_ERASEBKGND message
27621           - Removed EraseWindowBackground() and SetWindowBackground() methods
27622           - Removed handling of hwnd.ErasePending flag
27623         * XplatUIWin32.cs:
27624           - Removed EraseWindowBackground() and SetWindowBackground() methods
27625           - We no longer call EraseWindowBackground on PaintEventStart, we 
27626             ignore the fErase flag, erasing is handled in Control in the
27627             background handler
27628         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
27629           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
27630           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
27631           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
27632           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
27633           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
27634           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
27635
27636 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
27637
27638         * PropertyGrids.cs: Get sub properties
27639         * PropertyGridView.cs: Fix drawing code
27640
27641 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
27642
27643         * ListBox.cs: Fixes 76383
27644
27645 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
27646
27647         * DataGridTextBoxColumn.cs: Sets location and size before attachment
27648         * ThemeWin32Classic.cs: Fixes border drawing and calculations
27649         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
27650
27651
27652 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
27653
27654         * ComboBox.cs: Fixes border drawing
27655
27656 2005-10-10  Miguel de Icaza  <miguel@novell.com>
27657
27658         * MimeIcon.cs: Ignore errors if the file can not be read.
27659
27660 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
27661
27662         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
27663          - Fixed border calculations
27664          - Fixed horizontal scrolling in single column listboxes
27665          - Fixed drawing issues
27666
27667 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
27668
27669         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
27670           FormBorderStyle enum
27671         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
27672           code to determine FormBorderStyles from CreateParams
27673         * Form.cs:
27674           - Fixed bug where we'd set the wrong window styles if we were
27675             not creating an MDI window
27676           - Added call to XplatUI.SetBorderStyle when form borders are set
27677         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
27678         * Hwnd.cs:
27679           - Removed obsolete edge style
27680           - Switched from BorderStyle to FormBorderStyle
27681         
27682 2005-10-10  Jackson Harper  <jackson@ximian.com>
27683
27684         * Form.cs: Use the property to get the window handle instead of
27685         accessing it directly. Prevents a null reference exception.
27686
27687 2005-10-10  Jackson Harper  <jackson@ximian.com>
27688
27689         * TreeView.cs: Don't adjust the rect given to DrawString now that
27690         our libgdiplus draws correctly.
27691
27692 2005-10-08  Jackson Harper  <jackson@ximian.com>
27693
27694         * TreeView.cs: Don't try to find the clicked on node if there are
27695         no nodes in the tree.
27696
27697 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
27698
27699         * RichTextBox.cs:
27700
27701           restore
27702
27703 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
27704
27705         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
27706           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
27707           ErrorProvider.cs:
27708           Use ResPool for brushes and dispose System.Drawing objects that
27709           are not used anymore.
27710
27711 2005-10-07  Jackson Harper  <jackson@ximian.com>
27712
27713         * MdiChildContext.cs: Use the new borders instead of drawing them
27714         ourselves.
27715
27716 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
27717
27718         * Calling UpdateBounds after changing the window's BorderStyle 
27719         since the style can change the ClientSize
27720
27721 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
27722
27723         * Control.cs: Made PaintControlBackground virtual
27724         * Panel.cs: Overriding PaintControlBackground instead of using paint
27725           event; paint event method was interfering with 'real' users of the
27726           event.
27727
27728 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
27729
27730         * ThemeWin32Classic.cs: remove border drawing since it is handled
27731         by the base control class now and was causing double border drawing.
27732
27733 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
27734
27735         * Panel.cs: Redraw our background on paint. Not a pretty solution,
27736           but it does seem to match MS behaviour. This fixes bug #75324
27737
27738 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
27739
27740         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
27741           somewhat hackish looking
27742
27743 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
27744
27745         * TextBoxBase.cs:
27746           - We now accept Enter even if AcceptEnter is false, if the containing
27747             form does not have an AcceptButton configured (fixes bug #76355)
27748           - Calculations are now fixed to no longer use Width/Height, but
27749             ClientSize.Width/Height, since we now support borders (this was
27750             a result of fixing borders and therefore bug #76166)
27751           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
27752             true (fixes bug #76354)
27753         
27754 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
27755
27756         * Control.cs: 
27757           - Defaulting BorderStyle and setting it in XplatUI when our window 
27758             is created
27759           - Added enum check to InternalBorderStyle setter
27760         * XplatUIX11.cs: 
27761           - Added drawing of window borders
27762           - Now properly calculates WM decorations offset for toplevel 
27763             windows (fixes bug #74763)
27764         * XplatUIWin32.cs: 
27765           - Implemented BorderStyles for windows (we're letting win32 draw 
27766             the border for us)
27767           - Fixed the signature for SetWindowLong
27768         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
27769           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
27770           setting borders
27771         * UpDownBase.cs: Remove drawing of borders, this is handled by
27772           the driver, outside the client area
27773         * ListView.cs: Removed bogus border calculations. The control should
27774           be oblivious to borders, since those are not part of the client
27775           area. 
27776         * X11DesktopColors.cs: Commented out (currently) unneeded variables
27777         * ThemeWin32Classic.cs: Removed border calculations from ListView 
27778           drawing code
27779
27780 2005-10-06  Jackson Harper  <jackson@ximian.com>
27781
27782         * MdiChildContext.cs: Clear out the old virtual position remove
27783         all the unneeded calls to CreateGraphics.
27784
27785 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
27786
27787         * TextControl.cs: Use proper color for highlighted text; fixes #76350
27788
27789 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
27790
27791         * Form.cs: 
27792           - Added loading and setting of our new default icon
27793           - Only set icon if window is already created
27794
27795 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
27796
27797         * Label.cs:
27798           - Do not explicitly set the foreground and background colors, to
27799             allow inheriting from parents (fixes #76302)
27800           - Use Control's InternalBorderStyle property to deal with borders
27801
27802 2005-10-06  Jackson Harper  <jackson@ximian.com>
27803
27804         * MdiChildContext.cs: Use the new xplatui function to draw a
27805         reversible rect.
27806
27807 2005-10-06  Jackson Harper  <jackson@ximian.com>
27808
27809         * Form.cs: Add the parent before creating the child context cause
27810         we need the parent when setting up the child.
27811
27812 2005-10-06  Jackson Harper  <jackson@ximian.com>
27813
27814         * FolderBrowserDialog.cs: redo the tree population code so a
27815         second thread isn't used. Should be a lot faster and more stable
27816         now.
27817
27818 2005-10-05  Jackson Harper  <jackson@ximian.com>
27819
27820         * TreeView.cs: There are no expand/collapse boxes if the node has
27821         no children.
27822
27823 2005-10-05  Jackson Harper  <jackson@ximian.com>
27824
27825         * X11DesktopColors.cs: Get menu colours for the gtk theme.
27826
27827 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
27828
27829         * FileDialog.cs: Fix InitialDirectory
27830
27831 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
27832
27833         * ComboBox.cs:
27834                 - Fixes changing between styles
27835                 - Fixes simple mode
27836                 - Fixes last item crashing when navigating with keyboard
27837
27838 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
27839
27840         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
27841
27842 2005-10-05  Jackson Harper  <jackson@ximian.com>
27843
27844         * TreeView.cs: If updating the root node do a full refresh.
27845         * TreeNode.cs: The root node should be expanded by default. Also
27846         added a utility prop to tell if we are the root node.
27847         * TreeNodeCollection.cs: Only refresh if the node we are being
27848         added to is expanded. Also added a comment on a potential
27849         optimization.
27850         
27851 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
27852
27853         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
27854           in dispose method. Fixes #76330
27855
27856 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
27857
27858         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
27859
27860                 - Implements vertical and horizontal scrolling using XplatUI
27861                 - Fixes keyboard navagation
27862                 - Fixes EnsureVisible
27863                 - Drawing fixes
27864                 - Handles and draws focus properly
27865
27866
27867 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
27868
27869         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
27870           Create handle. NET_2_0: Destroy handle when value is null.
27871
27872 2005-10-03  Jackson Harper  <jackson@ximian.com>
27873
27874         * ScrollBar.cs: My last scrollbar patch was broken. This is a
27875         revert and a new patch to prevent the thumb from refreshing so
27876         much.
27877
27878 2005-10-02  Jackson Harper  <jackson@ximian.com>
27879
27880         * ScrollBar.cs: Don't update position if it hasn't actually
27881         changed. This occurs when you hold down the increment/decrement
27882         buttons and the thumb gets to the max/min.
27883
27884 2005-10-01  Jackson Harper  <jackson@ximian.com>
27885
27886         * Form.cs:
27887         * MdiChildContext.cs:
27888         * MdiClient.cs: Implement ActiveMdiChild in Form.
27889
27890 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
27891
27892         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
27893
27894 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
27895
27896         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
27897           be found
27898
27899 2005-09-30  Jackson Harper  <jackson@ximian.com>
27900
27901         * ListBox.cs: Don't do a full refresh unless some data has
27902         actually changed.
27903
27904 2005-09-30  Jackson Harper  <jackson@ximian.com>
27905
27906         * TreeView.cs: Make sure that the checkboxes size is factored in
27907         even when not visible.
27908
27909 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
27910
27911         * FileDialog.cs: Fix Jordi's build break
27912
27913 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
27914
27915         * FileDialog.cs: 
27916                 - Use standard the Windows colours for the combobox as espected
27917                 - Dispose objects that use resouces when no longer need them
27918
27919 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
27920
27921         * X11DesktopColors.cs: Initial incomplete implementation
27922         * XplatUIX11.cs: Added call to initialize X11DesktopColors
27923
27924 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
27925
27926         * Theme.cs: 
27927           - Switched Theme color names to match the names defined in 
27928             System.Drawing.KnownColors. Life's hard enough, no need to make 
27929             it harder.
27930           - Added setters to all theme color properties so themes can set
27931             their color schemes. The setters also propagate the color changes
27932             to System.Drawing.KnownColors via reflection
27933         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
27934           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
27935           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
27936           use the new, more logical theme color names
27937         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
27938           post-NT colors
27939         * ThemeWin32Classic.cs:
27940           - Removed code to set the old classic Windows colors. Instead it
27941             now relies on the colors returned by System.Drawing.KnownColors
27942             which will be either modern static colors (Unix) or colors
27943             read from the user's configuration (Win32)
27944           - Updated to use the new, more logical theme color names
27945           - Switched DataGrid drawing code to use only Theme colors instead of
27946             a mix of System.Drawing.KnownColors and Theme colors
27947           - DrawFrameControl(): Removed code that fills the button area, the
27948             fill would overwrite any previous fill done by a control. This
27949             fixes bug #75338 
27950           - Added DrawReversibleRectangle() stub
27951         * ScrollableControl.cs: Set visible state to false when scrollbars
27952           are removed (pdn fix)
27953         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
27954           DrawReversibleRectangle() method to allow drawing primitive 
27955           'rubber bands'
27956         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
27957
27958 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
27959
27960         * ImageList.cs: Add(Icon): Create handle.
27961
27962 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
27963
27964         * ListView.cs:
27965         * ThemeWin32Classic.cs:
27966                 - Fixes detail mode
27967                 - Sets clippings
27968                 - Issues with drawing
27969
27970 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
27971
27972         * ImageList.cs: Moved RecreateHandle back to ImageList as event
27973           source has to be the ImageList.
27974
27975 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
27976
27977         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
27978
27979 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
27980
27981         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
27982
27983 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
27984
27985         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
27986
27987 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
27988         * GridItem.cs: Fixed TODOs
27989         * GridItemCollection.cs: Added ICollection interface
27990
27991 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
27992
27993         * ImageList.cs: Resize icons when needed.
27994
27995 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
27996
27997         * ListViewItem.cs
27998                 - Fixes GetBounds and returns on screen rects
27999         * ListView.cs:
28000                 - Fixes vertical and horzintal scrolling of items
28001         * ThemeWin32Classic.cs:
28002                 - Fixes drawing
28003                 
28004 2005-09-29  Raja R Harinath  <harinath@gmail.com>
28005
28006         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
28007
28008 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
28009
28010         * ImageList.cs: Added comments about handle creation. Moved Handle,
28011           HandleCreated and OnRecreateHandle implementations to ImageCollection.
28012           Handle is created in Add methods.
28013
28014 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
28015          
28016         * DataGridDrawingLogic.cs: 
28017                 - Takes rows into account on Colum calculations
28018                 - Returns the column when clickig
28019         * DataGrid.cs:
28020                 - Fixes default HitTestInfo values
28021                 - Fixes HitTestInfo.ToString
28022                 - Fixes ResetBackColor          
28023         
28024 2005-09-28  Jackson Harper  <jackson@ximian.com>
28025
28026         * MdiChildContext.cs: Obey rules for fixed sized windows (no
28027         sizing or cursor changes). Also added some temp code to draw the
28028         titlebars text (Makes dev a little easier).
28029
28030 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
28031
28032         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
28033
28034 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
28035          
28036         * ListBox.cs: Fixes bug 76253
28037
28038 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
28039
28040         * ImageList.cs: Added comments about the current implementation. Added
28041           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
28042           Format32bppArgb to preserve transparency and can use Graphics.FromImage
28043           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
28044           with Bitmap.LockBits for better performance. Revised the whole file to
28045           match MS.NET behaviour and provide better performance. Non-public
28046           interface members are calling public members even when they throw
28047           NotSupportedException for better maintainability. Moved ColorDepth,
28048           ImageSize, ImageStream and TransparentColor implementations to
28049           ImageCollection for better performance as these properties are not used
28050           by ImageList.
28051         * ImageListStreamer.cs: Added a new internal constructor that takes an
28052           ImageList.ImageCollection and serializes Images based on
28053           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
28054           match ImageList property name.
28055
28056 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
28057
28058         * ListBox.cs: Fixes IndexFromPoint for last item
28059
28060 2005-09-27  Jackson Harper  <jackson@ximian.com>
28061
28062         * Form.cs: Set the position of new mdi children correctly.
28063
28064 2005-09-27  Jackson Harper  <jackson@ximian.com>
28065
28066         * MdiClient.cs: New mdi children need to be added to the back of
28067         the controls collection so the zorder is set correctly. Also add a
28068         count of all the child windows that have been created.
28069
28070 2005-09-27  Jackson Harper  <jackson@ximian.com>
28071
28072         * Form.cs (CreateParams): Setup MDI forms correctly.
28073
28074 2005-09-27  Jackson Harper  <jackson@ximian.com>
28075
28076         * MdiChildContext.cs:
28077         * MonthCalendar.cs:
28078         * UpDownBase.cs:
28079         * ListBox.cs:
28080         * ListView.cs:
28081         * TextBoxBase.cs:
28082         * TreeView.cs:
28083         * ScrollableControl.cs:
28084         * ComboBox.cs: Add implicit controls using the new implict control
28085         functionality in ControlCollection. Also try to block multiple
28086         control add in a suspend/resume layout to save some cycles.
28087         
28088 2005-09-27  Jackson Harper  <jackson@ximian.com>
28089
28090         * Control.cs: Add functionality to the controls collection to add
28091         'implicit controls' these are controls that are created by the
28092         containing control but should not be exposed to the user. Such as
28093         scrollbars in the treeview.
28094         * Form.cs: The list var of the ControlsCollection is no longer
28095         available because of the potential of implicit controls getting
28096         ignored by someone accessing the list directly.
28097
28098 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
28099
28100         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
28101           loose it's parent. (Fixed bug introduced in r49103 when we added
28102           setting the child parent to null on Remove)
28103
28104 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
28105
28106         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
28107         * Splitter.cs: Added missing attributes for BorderStyle property.
28108         * TextBoxBase.cs: Marked Calculate* methods internal.
28109         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
28110         MS.NET.
28111
28112 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
28113          
28114         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
28115
28116 2005-09-25  Jackson Harper  <jackson@ximian.com>
28117
28118         * TreeView.cs: Update the node bounds correctly regardless of
28119         whether the node is visible.
28120
28121 2005-09-25  Jackson Harper  <jackson@ximian.com>
28122
28123         * ImageList.cs: Don't dispose the image after it is added to the
28124         image list. Only reformat images that need to be resized.
28125
28126 2005-09-25  Jackson Harper  <jackson@ximian.com>
28127
28128         * ImageList.cs: Don't set the format when changing the image.
28129
28130 2005-09-25  Jackson Harper  <jackson@ximian.com>
28131
28132         * TreeView.cs: We can't just assume the node has a font. Use the
28133         treeviews font if no node font is available.
28134
28135 2005-09-25  Jackson Harper  <jackson@ximian.com>
28136
28137         * TreeView.cs: Allow the scrollbars to be reset with negative
28138         values.
28139         - Don't add scrollbars to negative sized windows.
28140
28141 2005-09-23  Jackson Harper  <jackson@ximian.com>
28142
28143         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
28144         old Mono.Posix. Also remove some stray code that shouldn't have
28145         been committed.
28146
28147 2005-09-23  Jackson Harper  <jackson@ximian.com>
28148
28149         * TreeView.cs: Attempt at proper sizing of the horizontal
28150         scrollbar. Also don't resize the scrollbars unless they are
28151         visible.
28152
28153 2005-09-23  Jackson Harper  <jackson@ximian.com>
28154
28155         * TreeView.cs: We don't need to expand the invalid area when the
28156         selection changes, as this is all drawn in the node's bounding
28157         box. The area needs to be expanded (previous typo was contracting
28158         it) when the focus rect moves.
28159
28160 2005-09-23  Jackson Harper  <jackson@ximian.com>
28161
28162         * TreeView.cs: Display the selection box under the correct
28163         circumstances. We were rendering white text with no selection box
28164         before.
28165
28166 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
28167
28168         * TextControl.cs(Split): Now updates selection start/end if it points 
28169           into a line that's being split. Fixes a FIXME and bug #75258
28170
28171 2005-09-23  Jackson Harper  <jackson@ximian.com>
28172
28173         * Binding.cs:
28174         * ListControl.cs: Don't use the path when retrieving binding
28175         managers from the binding context. My bat sense tells me that the
28176         path is only used on insertion.
28177
28178 2005-09-22  Jackson Harper  <jackson@ximian.com>
28179
28180         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
28181
28182 2005-09-22  Jackson Harper  <jackson@ximian.com>
28183
28184         * Splitter.cs: There are special cursors used for splitting.
28185         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
28186
28187 2005-09-22  Jackson Harper  <jackson@ximian.com>
28188
28189         * Splitter.cs: Change the cursor appropriately when the splitter
28190         is moused over, so the user actually knows there is a splitter
28191         there.
28192
28193 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
28194
28195        * Label.cs : Fix ToString method to give same output as MS.NET
28196
28197 2005-09-22  Jackson Harper  <jackson@ximian.com>
28198
28199         * TreeView.cs: Create the scrollbars when the handle is created
28200         and add them right away, just make them invisble. Also account for
28201         the window being shrunk vertically to the point that the vert
28202         scrollbar needs to be added.
28203         - Remove some 0.5 adjustments to get around anti aliasing issues.
28204         
28205 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
28206          
28207         * MainMenu.cs: Fixes default value
28208         * MenuItem.cs: Fixes default value
28209
28210 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
28211
28212         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
28213
28214 2005-09-21  Jackson Harper  <jackson@ximian.com>
28215
28216         * Control.cs: Don't try to set the border style on the window if
28217         it hasn't been created. When the window is created the border
28218         style will be used.
28219
28220 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
28221
28222         * Control.cs (Update): Don't call XplatUI if we don't have a
28223           window handle yet
28224
28225 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
28226
28227         * ContainerControl.cs: Instead of throwing an exception, print
28228           a one-time warning about Validate not being implemented
28229         * XplatUIWin32.cs: Removed debug output
28230
28231 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
28232
28233         * Control.cs: Only set XplatUI background if we expect the windowing
28234           system to handle the background. This stops controls that draw their
28235           own background from flickering
28236
28237         * XplatUIX11.cs: Support custom visuals and colormaps for window 
28238           creation. This allows, amongst other things, using MWF X11 windows 
28239           with OpenGL.
28240
28241 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
28242
28243         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
28244           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
28245           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
28246           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
28247           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
28248           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
28249           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
28250           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
28251           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
28252           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
28253           GridColumnStylesCollection.cs, 
28254           IDataGridColumnStyleEditingNotificationService.cs,
28255           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
28256           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
28257           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
28258           TreeNodeCollection.cs, AmbientProperties.cs, 
28259           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
28260           DataObject.cs, ErrorProvider.cs, Splitter.cs,
28261           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
28262           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
28263           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
28264           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
28265           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
28266           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
28267           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
28268           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
28269           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
28270           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
28271           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
28272           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
28273           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
28274           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
28275           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
28276           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
28277           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
28278           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
28279           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
28280           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
28281           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
28282           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
28283           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
28284           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
28285           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
28286           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
28287           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
28288           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
28289           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
28290           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
28291           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
28292           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
28293           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
28294           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
28295           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
28296
28297 2005-09-21  Jackson Harper  <jackson@ximian.com>
28298
28299         * TreeNode.cs: Call Before/After Expand not Collapse when
28300         expanding.
28301
28302 2005-09-20  Jackson Harper  <jackson@ximian.com>
28303         
28304         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
28305
28306 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
28307          
28308         * ListViewItem.cs:
28309                 - Fixes bug 76120
28310                 - Fixes proper storing of subitems
28311                 - Fixes not updated items
28312
28313 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
28314
28315         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
28316           things if our window handle isn't created yet. Also disabled 
28317           debug for TextBoxBase
28318
28319 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
28320
28321         * MenuAPI.cs: Remove filtering of events to allow menu usage
28322
28323 2005-09-20  Miguel de Icaza  <miguel@novell.com>
28324
28325         * Cursor.cs: Allow null to be passed to Cursor.Current.
28326
28327 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
28328
28329         * ThemeWin32Classic.cs:
28330           - Change some private methods/fields to protected virtual so that 
28331             they can be accessed and overriden in derived classes
28332           - First refactoring of some methods. Derived themes now don't 
28333             need to duplicate the complete code from ThemeWin32Classic
28334         * ThemeNice.cs:
28335           - Added nice StatusBar
28336           - Derive from ThemeWin32Classic and not Theme
28337           - Removed duplicate ThemeWin32Classic code
28338
28339 2005-09-20  Miguel de Icaza  <miguel@novell.com>
28340
28341         * Control.cs (ControlCollection.Add): If the value null is passed
28342         the control is ignored. 
28343
28344         Optimize this loop.
28345
28346 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
28347
28348         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
28349           PostQuitMessage state.
28350         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
28351
28352 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
28353
28354         * Application.cs: Our constructor will never get called, move 
28355           initialization to fields; fixes bug #75933
28356
28357 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
28358
28359         * FileDialog.cs :
28360                 - Allow files to be selected properly using file name
28361                 combo box.
28362                 - Add ability to change diretory (absolute / relative)
28363                 using file name combo box.
28364
28365 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
28366          
28367         * ListBox.cs: 
28368                 - Fixes Multicolumn listboxes item wrong calculations
28369                 - Allows to click when only one item is in the listbox
28370                 - Fixes crash when no items using keyboard navigation
28371
28372 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
28373
28374         * ComboBox.cs: Reverted almost everything from the latest patch which
28375           broke ComboBox
28376
28377 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
28378         
28379         * ToolTip.cs:
28380                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
28381         * ComboBox.cs:
28382                 - When DropDownStyle is Simple, it does not show scrollbar 
28383                 to the last item of the list.
28384                 - When DropDownStyle is Simple, it crashed when the list was 
28385                 scrolled down with the down cursor key.
28386                 - Fixed a bug that when DropDownStyle is DropDownList, the 
28387                 selected item was not shown.
28388                 - The position of the selected item was not preserved when 
28389                 the next dropdown happened.
28390         * ThemeWin32Classic.cs:
28391                 - Items were wrapped at the right end.
28392         * CheckedListBox.cs:
28393                 - Fixed Add method
28394         * ListBox.cs:
28395                 - Items should be fully shown.
28396                 - When resizing and vertical scrollbar disappeared, the item 
28397                 of index 0 should be on the top of the list.
28398                 - GetItemRectangle should consider the size of ver. scrollbar
28399         * StatusBar.cs:
28400                 - SizingGrip area should not be allocated when it is not 
28401                 displayed.
28402                 - Now it reflects MinWidth of the containing panel and 
28403                 fixed a crash that happens when its width becomes so small.
28404
28405 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
28406
28407         * CheckedListBox.cs: Fixes bug 76028
28408         * ListBox.cs: Fixes bug 76028
28409
28410 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
28411
28412         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
28413         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
28414
28415 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
28416
28417         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
28418
28419 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
28420
28421         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
28422
28423 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
28424
28425         * IRootGridEntry.cs: Added
28426         * PropertyGridCommands.cs: Added
28427         * PropertiesTab.cs: Added missing methods and property
28428         * PropertyGridView.cs: Made class internal
28429         * PropertyGridTextBox.cs: Made class internal
28430
28431 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
28432
28433         * MimeIcon.cs: Try to check some other environment variables
28434           if "DESKTOP_SESSION" returns "default"
28435
28436 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
28437
28438         * ThemeNice.cs: Corrected background colors (e.g. menus)
28439         * ColorDialog.cs: Use correct background colors for controls
28440
28441 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
28442
28443         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
28444
28445 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
28446
28447         * RichTextBox.cs: Added initial implementation
28448         * lang.cs: Removed. Was accidentally checked in long time ago
28449         * TODO: Removed. Contents were obsolete
28450
28451 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
28452                                                                                 
28453         * PropertiesTab.cs : Added
28454
28455 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
28456                                                                                 
28457         * PropertyGrid.cs : Update
28458         * PropertyGridView.cs : Update
28459         * System.Windows.Forms.resx : Added images and strings
28460
28461 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
28462
28463         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
28464  
28465 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
28466
28467         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
28468           a busy loop right after the Ungrab the X11 display is otherwise 
28469           blocked
28470
28471 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
28472
28473         * ThemeWin32Classic.cs: Optimise the use of clipping
28474
28475 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
28476
28477         * DataGrid.cs: fixes recursion bug
28478
28479 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
28480
28481         * ThemeNice.cs: 
28482           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
28483           - Cleanup
28484
28485 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
28486
28487         * ThemeNice.cs: Draw nice ProgressBars
28488
28489 2005-09-01  Miguel de Icaza  <miguel@novell.com>
28490
28491         * VScrollBar.cs: Another buglet found by Aaron's tool. 
28492
28493         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
28494         bug finder.
28495
28496 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
28497
28498         * ThemeNice.cs:
28499           - Added nicer menu drawing
28500           - Updated DrawTab
28501           - some refactoring
28502
28503 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
28504
28505         * CreateParams.cs (ToString): Made output match MS
28506         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
28507             handle is already created (to avoid forcing window creation)
28508         * XplatUIX11.cs: Set window text to caption after creating window,
28509           in case Text was set before window was created
28510         * Form.cs: Use this.Text instead of a static string as caption
28511
28512 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
28513
28514         * NotifyIcon.cs: Don't set the window to visible; this screws
28515           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
28516           OnPaint without a bitmap)
28517         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
28518           happen very often anyway; we could add the check to the WM_PAINT 
28519           event generation code
28520
28521 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
28522
28523         * NotifyIcon.cs: Fill the icon area with a background color, to 
28524           avoid 'residue' when transparent icons are drawn
28525         * XplatUIX11.cs:
28526           - Handle whole_window == client_window when destroying windows
28527           - SystrayAdd(): Set client_window to whole_window value to
28528             get mouse and other events passed to NotifyIcon
28529
28530 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
28531
28532         * Form.cs: Set proper default for Opacity property
28533         * NotifyIcon.cs:
28534           - ShowSystray(): Don't bother creating telling the OS
28535             about the systray item if no icon is provided
28536           - Now handles WM_NCPAINT message to deal with whole/client window
28537             split
28538           - Create window as visible to not get caught by Expose optimization
28539         * Hwnd.cs: Removed debug message
28540         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
28541           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
28542             PaintEventStart/End to use new client argument
28543         * TextBoxBase.cs:
28544           - Commented out debug messages
28545           - Switched PaintEventStart/End to use new client argument
28546         * XplatUI.cs: Added client window bool to PaintEventStart()/
28547           PaintEventEnd() calls, to support drawing in non-client areas
28548         * XplatUIDriver.cs: 
28549           - Added client window bool to PaintEventStart()/PaintEventEnd() 
28550             calls, to support drawing in non-client areas
28551           - Added conditional compile to allow using MWF BeginInvoke 
28552             on MS runtime
28553         * XplatUIX11.cs:
28554           - Added some conditional debug output
28555           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
28556             whole/client window split
28557           - Implemented handling of client argument to PaintEventStart()/End()
28558         * Control.cs:
28559           - Throw exception if BeginInvoke() is called and the window handle
28560             or one of the window's parent handles is not created
28561           - Added conditional compile to allow using MWF BeginInvoke on
28562             MS runtime
28563           - get_Parent(): Only sets parent if handle is created. This avoids
28564             forcing window handle creation when parent is set.
28565           - Now fires Layout and Parent changed events in proper order
28566           - Switched to use Handle instead of window.Handle for Z-Order setting,
28567             the get_Parent() patch above causes us to possibly get null for 'window'
28568           - Implemented handling of client argument to PaintEventStart()/End()
28569           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
28570             default handling)
28571           - Now sends a Refresh() to all child windows when Refresh() is called
28572
28573 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
28574
28575         * Form.cs: Added (non-functional) Opacity property
28576         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
28577
28578 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
28579         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
28580           use export MONO_THEME=nice to activate it.
28581           Currently supported controls:
28582           - Button
28583           - ComboBox
28584           - ScrollBar
28585           - TabControl (TabAlignment.Top only, other will follow)
28586         * ThemeEngine.cs: Add theme nice
28587         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
28588           if enabled
28589
28590 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
28591
28592         * Splitter.cs: Resize docked control and its neighbor.
28593
28594 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
28595         -- Making Windows with Menus layout correctly --
28596         * Form.cs : The first leg of the fix
28597                 Menu setter - adjust Client Size as needed to make space for the menu
28598                 SetClientSizeCore - doesn't call base version to be able to pass the 
28599                         menu handle to XplatUI.CalculateWindowRect
28600         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
28601         * XplatUIX11.cs: The critical second leg of the fix
28602                 GetWindowPos needs to use a recalculated client_rect
28603                 so that resizing the window doesn't break layout of child controls. 
28604                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
28605                 Lots of \t\n killed
28606
28607 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
28608
28609         * Label.cs: Now properly recalculates width and height on Font and Text
28610           changes if AutoSize is set
28611
28612 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
28613         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
28614
28615 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
28616
28617         * ImageList.cs: Makes ToString method compatible with MS
28618
28619 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
28620
28621         * MenuAPI.cs: fixes bug 75716
28622
28623 2005-08-11 Umadevi S <sumadevi@novell.com>
28624         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
28625
28626 2005-08-11 Umadevi S <sumadevi@novell.com>
28627         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
28628
28629 2005-08-10  Umadevi S <sumadevi@novell.com>
28630         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
28631
28632 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
28633
28634         * Menu.cs: fixes bug 75700
28635         * MenuAPI.cs: fixes navigation issues
28636
28637 2005-08-09  Umadevi S <sumadevi@novell.com>
28638         * CheckedListBox.cs - simple fix for GetItemChecked.
28639
28640 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
28641
28642         * ComboBox.cs: Serveral fixes
28643         * ListBox.cs: Serveral fixes
28644
28645 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
28646
28647         * ComboBox.cs: Fixes FindString methods and GetItemHeight
28648         * ListBox.cs: Fixes FindString methods
28649
28650 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
28651
28652         * DataGrid.cs: fixes bugs exposed by new tests
28653
28654 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
28655
28656         * Mime.cs: Compile Mono assembly references only if compiling
28657           with Mono (Allows to build with VS.Net again)
28658
28659 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
28660
28661         * Control.cs (PaintControlBackground): Draw background image
28662         corrrectly.
28663         (CheckForIllegalCrossThreadCalls): Stubbed.
28664         
28665         * Form.cs (OnCreateControl): Center when should be centered.
28666         
28667         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
28668
28669 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
28670
28671         * Binding.cs: Binding to properties should be case unsensitive
28672
28673 2005-07-18 vlindos@nucleusys.com
28674
28675         * DataGrid.cs: fixes setmember order
28676
28677 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
28678
28679         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
28680         * FileDialog.cs: FileDialog is now resizable and uses the new
28681           MimeIconEngine
28682
28683 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
28684
28685         * DataGridTextBoxColumn.cs: default value
28686         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
28687         * GridTableStylesCollection.cs: fixes checking MappingName
28688         * DataGridDrawingLogic.cs: fixes drawing logic issues
28689         * DataSourceHelper.cs: rewritten to make compatible with more data sources
28690         * DataGrid.cs: fixes    
28691
28692 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
28693
28694         * MimeGenerated.cs: Use case sensitive comparer for
28695           NameValueCollections
28696
28697 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
28698
28699         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
28700         * ThemeWin32Classic.cs: bug fixes, code refactoring
28701         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
28702         * DataGrid.cs: bug fixes, code refactoring
28703         * DataGridTextBox.cs: bug fixes, code refactoring
28704         * DataGridColumnStyle.cs:  bug fixes, code refactoring
28705         * Theme.cs:  bug fixes, code refactoring
28706
28707 2005-07-01  Peter Bartok  <pbartok@novell.com> 
28708
28709         * TextControl.cs: Quick fix for the reported crash on ColorDialog
28710           and other text box usage
28711
28712 2005-07-01  Jackson Harper  <jackson@ximian.com>
28713
28714         * TabControl.cs: Make sure the bottom of the tab covers the pages
28715         border.
28716
28717 2005-06-30  Peter Bartok  <pbartok@novell.com> 
28718
28719         * Form.cs (ShowDialog): Assign owner of the dialog
28720         * TextBoxBase.cs: Always refresh caret size when deleting, caret
28721           might have been moved to a tag with different height
28722
28723 2005-06-30  Jackson Harper  <jackson@ximian.com>
28724
28725         * Form.cs: Don't create an infinite loop when setting focus
28726         * MenuItem.cs: Don't dirty the parents if we don't have any
28727
28728 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
28729
28730         * LibSupport.cs: Rename
28731
28732 2005-06-29  Peter Bartok  <pbartok@novell.com>
28733
28734         * TextBoxBase.cs: Re-align caret after deleting a character
28735         * TextControl.cs:
28736           - DeleteChars(): Ensure that tag covers the provided position
28737           - StreamLine(): Drop reference for dropped tag
28738
28739 2005-06-29  Peter Bartok  <pbartok@novell.com> 
28740
28741         * TextControl.cs: 
28742           - Selections now work properly, anchoring at the initial location
28743             and properly extending in either direction (SetSelectionToCaret(),
28744             SetSelectionStart() and SetSelectionEnd())
28745           - No longer redraws the whole control on selection change, now
28746             calculates delta between previous and new selection and only
28747             invalidates/redraws that area
28748           - Fixed FindPos() math off-by-one errors
28749           - Changed DeleteChars() to verify the provided tag covers the
28750             provided position, selections may have a tag that doesn't cover
28751             the position if the selection is at a tag border
28752           - Fixed off-by-one errors in DeleteChars()
28753           - Added missing streamlining check in DeleteChars() to remove
28754             zero-length tags
28755           - Implemented Invalidate() method, now properly calculates exposures
28756             between two given lines/positions
28757           - Implemented SetSelection()
28758           - Obsoleted and removed FixupSelection()
28759           - Improved RecalculateDocument() logic, removing code duplication
28760
28761 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28762
28763         * LibSupport.cs: changes to match different input/output arguments.
28764
28765 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28766
28767         * LibSupport.cs: added libsupport.so init routine.
28768
28769 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
28770         
28771         * ControlBindingsCollection.cs
28772                 - Throws an exception on null datasource when adding
28773                 - Checks for duplicated bindings when adding
28774
28775 2005-06-28  Jackson Harper  <jackson@ximian.com>
28776
28777         * TreeView.cs (OnKeyDown): Support left and right properly
28778         (navigates as well as expanding and collapsing.
28779         - Add support for Multiply, this expands all the selected nodes
28780         children.
28781         - Fix some tabbing.
28782
28783 2005-06-28  Jackson Harper  <jackson@ximian.com>
28784
28785         * TreeView.cs: Implement keyboard navigation, currently supports,
28786         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
28787         support for toggling checkboxes with the space bar.
28788
28789 2005-06-28  Jackson Harper  <jackson@ximian.com>
28790
28791         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
28792         tree.
28793
28794 2005-06-28  Jackson Harper  <jackson@ximian.com>
28795
28796         * TreeView.cs: Add missing event.
28797
28798 2005-06-27  Peter Bartok  <pbartok@novell.com> 
28799
28800         * TextControl.cs:
28801           - Made line ending size configurable (now allows for counting 
28802             lineendings as \n or \r\n)
28803           - Added margin to viewport to keep caret visible on right side
28804           - Fixed translation routines for line/pos to documentpos to consider
28805             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
28806           - Fixed some line-endings to be unix style
28807           - Fixed Document.FormatText to perform it's calculations 1-based
28808           - Added descriptions for a few methods that might otherwise get 
28809             used wrong
28810           - Added NOTE section with some basic conventions to remember at 
28811             the top of the file
28812           - Major fixup for RichTextBox selection drawing:
28813             * Fixed crashes when multiple tags on a single line were selected
28814             * fixed selection box drawing not overlaying text
28815             * fixed bogus offset calculation for tags not starting at index 1
28816             * Switched behaviour from using multiple Substrings of a 
28817               StringBuilder.ToString() to using multiple 
28818               StringBuilder.ToString(start, length) statements, hoping this is
28819               faster (kept original version commented out in the code, in case
28820               original version was faster)
28821         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
28822           alignment != Left
28823         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
28824           call it as well
28825
28826 2005-06-27  Jackson Harper  <jackson@ximian.com>
28827
28828         * TabControl.cs: Move to the left and right with the arrow
28829         keys. These keys don't cycle beyond first and last like
28830         tab. Refresh all the tabs when scrolling them to the left or
28831         right.
28832
28833 2005-06-27  Jackson Harper  <jackson@ximian.com>
28834
28835         * TabControl.cs:
28836           - ToString: Added method
28837           - CreateParams: Remove TODO and comment
28838           - OnKeyDown: Cycle through bounds properly.
28839           - SelectedIndex: Scroll to the right or left if we need to
28840           display the newly selected tab.
28841
28842 2005-06-23  Jackson Harper  <jackson@ximian.com>
28843
28844         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
28845         set.
28846
28847 2005-06-23  Jackson Harper  <jackson@ximian.com>
28848
28849         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
28850         CTRL-SHIFT-TAB, and HOME, END are there any others?
28851
28852 2005-06-23  Jackson Harper  <jackson@ximian.com>
28853
28854         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
28855
28856 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
28857         
28858         * DataGridTextBoxColumn.cs: fixes and enhancements
28859         * ThemeWin32Classic.cs: fixes and enhancements
28860         * DataGridBoolColumn.cs:  fixes and enhancements
28861         * DataGridDrawingLogic.cs:  fixes and enhancements
28862         * CurrencyManager.cs: fixes and enhancements
28863         * DataGrid.cs: fixes and enhancements
28864         * DataGridColumnStyle.cs:  fixes and enhancements
28865
28866 2005-06-22  Jackson Harper  <jackson@ximian.com>
28867
28868         * TabControl.cs: Add some missing methods that just call into the
28869         base. Make the TabPageCollection's IList interface behave in the
28870         same manner as the MS implementation.
28871
28872 2005-06-22  Peter Bartok  <pbartok@novell.com> 
28873
28874         * TextControl.cs: Added sanity check
28875         * TextBoxBase.cs: 
28876           - Fixed wrapping behaviour, don't set wrap on single line controls
28877             (this fixes the breakage of colordialog introduced in an earlier
28878              checkin)
28879           - Added rudimentary support for autoscrolling right-aligned controls
28880             (still needs fixing, also, center alignment scroll is missing)
28881
28882 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
28883         
28884         * ScrollBar.cs: Fixes thumbpos on Maximum values
28885
28886 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
28887         
28888         * PropertyGridView.cs: Pass context information to UITypeEditors 
28889
28890 2005-06-21  Peter Bartok  <pbartok@novell.com> 
28891
28892         * TextBoxBase.cs:
28893           - Now calling PositionCaret with absolute space coordinates
28894           - Enabled vertical scrolling
28895           - Better tracking of scrollbar changes, tied into WidthChange
28896             event
28897           - Improved cursor tracking
28898           - Removed debug output
28899         * TextControl.cs:
28900           - PositionCaret coordinates are now works in absolute space, not 
28901             the canvas
28902           - Improved tracking of document size
28903           - Added events for width and height changes
28904
28905 2005-06-21  Peter Bartok  <pbartok@novell.com>
28906
28907         * Form.cs: Set focus to active control when form is activated
28908         * TextControl.cs: 
28909           - Added word-wrap functionality to RecalculateLine() 
28910           - Added some short function descriptions for VS.Net to aid in
28911             writing dependent controls
28912           - Added Caret property, returning the current coords of the caret
28913           - Added ViewPortWidth and ViewPortHeight properties
28914           - Added Wrap property
28915           - Added CaretMoved event
28916           - Removed some old debug code
28917           - Split() can now create soft splits
28918           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
28919           - Added method to format existing text
28920           - Fixed size/alignment calculations to use viewport
28921           - RecalculateDocument now can handle changing line-numbers while
28922             calculating lines
28923
28924         * TextBox.cs:
28925           - Added some wrap logic, we don't wrap if alignment is not left
28926           - Added casts for scrollbar var, base class switched types to
28927             also support RichTextBoxA
28928           - Implemented handling of scrollbar visibility flags
28929
28930         * TextBoxBase.cs:
28931           - Switched scrollbars type to RichTextBoxScrollBars to support
28932             RichTextBox
28933           - Added tracking of canvas width/height
28934           - Switched scrollbars to be not selectable (to keep focus on text)
28935           - Added central CalculateDocument() method to handle all redraw
28936             requirements
28937           - Added ReadOnly support
28938           - Added WordWrap support
28939           - Fixed handling of Enter key (we now treat it as a DialogKey)
28940           - Fixed caret positioning when h or v scroll is not zero
28941           - Fixed placing/generation of vertical scrollbar
28942           - Added CalculateScrollBars() method to allow updating scrollbar
28943             limits and visibility
28944           - Fixed handling of horizontal scroll
28945           - Added handling of vertical scroll
28946           - Implemented auto-'jump' when caret moves to close to a left or
28947             right border and there is text to be scrolled into view (currently
28948             there's the potential for a stack overflow, until a bug in
28949             scrollbar is fixed)
28950
28951 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
28952         
28953         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
28954
28955 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
28956
28957         * Mime.cs:
28958         - added inodes.
28959         - return application/x-zerosize for files with size zero
28960           (if no extension pattern matches).
28961         - check matches collection for strings too.
28962         - return only the first mime type if the name value
28963           collection has more than one mime type.
28964
28965 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
28966         
28967         * PropertyGrid.cs: Cleaned up some TODOs
28968         * PropertyGridView.cs: Added support for UITypeEditors
28969
28970 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
28971         
28972         * DataGrid.cs: clears cached value
28973
28974 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
28975
28976         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
28977         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
28978         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
28979         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
28980         
28981 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
28982
28983         * ThemeWin32Classic.cs: fixes colour
28984
28985 2005-06-15  Peter Bartok  <pbartok@novell.com>
28986
28987         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
28988         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
28989         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
28990         * Control.cs: Added some MWFCategory and MWFDescription attributes
28991         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
28992
28993 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
28994
28995         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
28996         usage
28997
28998 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
28999
29000         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
29001         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
29002         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
29003         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
29004         * DataGrid.cs: default datagrid settings for Default Styles, fixes
29005         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
29006
29007 2005-06-13  Jackson Harper  <jackson@ximian.com>
29008
29009         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
29010         isn't printed when the user enables dropping. (X11 does accept
29011         drops).
29012         
29013 2005-06-13  Jackson Harper  <jackson@ximian.com>
29014
29015         * TreeView.cs: Remove some TODOS.
29016
29017 2005-06-13  Jackson Harper  <jackson@ximian.com>
29018
29019         * Form.cs: Hook into the mdi framework.
29020         * MdiClient.cs: Use the base control collections add method so
29021         parents get setup correctly. Set the default back colour and dock
29022         style.
29023         * MdiChildContext.cs: New class, this bad actor handles an
29024         instance of an MDI window. Right now there is only basic
29025         support. You can drag, close, and resize windows. Minimize and
29026         Maximize are partially implemented.
29027
29028 2005-06-13  Jackson Harper  <jackson@ximian.com>
29029
29030         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
29031         freaky when both vals are negative. NOTE: There are probably other
29032         places in XplatUIX11 that this needs to be done.
29033
29034 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
29035
29036         * DataGrid.cs: implement missing methods, move KeyboardNavigation
29037         * DataGridColumnStyle.cs: fixes signature
29038
29039 2005-06-12  Jackson Harper  <jackson@ximian.com>
29040
29041         * XplatUIX11.cs: Use sizing cursors similar to the ones on
29042         windows.
29043
29044 2005-06-11  Jackson Harper  <jackson@ximian.com>
29045
29046         * StatusBarPanel.cs: Signature cleanups. Implement
29047         BeginInit/EndInit.
29048
29049 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
29050
29051         * DataGridTextBoxColumn.cs: Honors aligment
29052         * GridColumnStylesCollection.cs: Contains is case unsensitive
29053         * GridTableStylesCollection.cs: several fixes
29054         * DataGridTableStyle.cs: default column creation
29055         * DataGridDrawingLogic.cs: fixes
29056         * CurrencyManager.cs: ListName property
29057         * DataGrid.cs: multiple styles support
29058         * DataGridColumnStyle.cs: fixes
29059         
29060
29061 2005-06-10  Peter Bartok  <pbartok@novell.com>
29062
29063         * Control.cs(Select): Moved SetFocus call to avoid potential
29064           loops if controls change the active control when getting focus
29065         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
29066           the up/down buttons
29067
29068 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
29069
29070         * ImageListConverter.cs: Implemented
29071
29072 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
29073
29074         * MonthCalendar.cs: Wired in NumericUpDown control for year
29075
29076 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
29077
29078         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
29079           DoubleClick events, since they are not meant to be fired.
29080
29081 2005-06-09  Peter Bartok  <pbartok@novell.com>
29082
29083         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
29084           Jonathan's standalone controls into MWF, implemented missing
29085           events, attributes and methods; added xxxAccessible classes
29086         * AccessibleObject.cs: Made fields internal so other classes
29087           can change them if needed
29088
29089 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
29090
29091         * UpDownBase.cs: Complete implementation
29092         * NumericUpDown.cs: Complete implementation
29093         * DomainUpDown.cs: Complete implementation
29094
29095 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
29096
29097         * DataGridTextBoxColumn.cs: drawing fixes
29098         * DataGridCell.cs: fixes ToString method to match MSNet
29099         * DataGridTableStyle.cs: fixes
29100         * DataGridBoolColumn.cs: fixes, drawing
29101         * DataGridDrawingLogic.cs: fixes, new methods
29102         * DataGridTextBox.cs: Keyboard and fixes
29103         * DataGrid.cs:
29104                 - Keyboard navigation
29105                 - Scrolling fixes
29106                 - Row selection (single, multiple, deletion, etc)
29107                 - Lots of fixes
29108         
29109 2005-06-07  Jackson Harper  <jackson@ximian.com>
29110
29111         * ThemeWin32Classic.cs: Clear the background area when drawing
29112         buttons.
29113
29114 2005-06-06  Peter Bartok  <pbartok@novell.com>
29115
29116         * ImageListStreamer.cs: Fixed signature for GetData
29117         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
29118         * ComboBox.cs:
29119           - Added missing ChildAccessibleObject class
29120           - Added missing OnXXXFocus overrides, switched to using those
29121             instead of the event handler
29122         * Control.cs:
29123           - Added Parent property for ControlAccessibleObject
29124           - Fixed signatures
29125           - Fixed attributes
29126           - Added ResetBindings()
29127         * ListBindingConverter.cs: Implemented some methods
29128         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
29129         * ImageList.cs: Implemented basic handle scheme, removed TODOs
29130         * ContainerControl.cs: Fixed signature, now subscribing to the
29131           ControlRemoved event instead of overriding the handler, LAMESPEC
29132         * CurrencyManager.cs: Added missing attribute
29133         * MonthCalendar.cs: Added missing properties
29134
29135 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
29136
29137         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
29138         
29139 2005-06-06  Gaurav Vaish and Ankit Jain
29140
29141         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
29142         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
29143         
29144 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
29145
29146         * Control.cs: fixes CreateParams Width / Height.
29147
29148 2005-06-05  Peter Bartok  <pbartok@novell.com>
29149
29150         * Win32DnD.cs: Removed compilation warnings
29151
29152 2005-06-05  Peter Bartok  <pbartok@novell.com>
29153
29154         * Control.cs (CreateParams): Since we don't know if one of the
29155           properties we use is overridden, lets make sure if we fail accessing
29156           we continue with a backup plan
29157
29158 2005-06-05  Peter Bartok  <pbartok@novell.com>
29159
29160         * Win32DnD.cs:
29161           - Removed debug output
29162           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
29163             struct
29164           - Plugged resource leak
29165         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
29166           MS size
29167
29168 2005-06-05  Peter Bartok  <pbartok@novell.com>
29169
29170         * XplatUIWin32.cs: Removed DnD code
29171         * Win32DnD.cs: Implemented drop source and drop target functionality
29172
29173 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
29174
29175         * UpDownBase.cs: remove duplicate addition of event, enable some code
29176         that was commented out.
29177         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
29178         Validate input when a key is pressed. It works fine now for every
29179         combination of Hexadecimal. Only missing some drawing love when sharing
29180         space with other controls.
29181
29182 2005-06-04  Peter Bartok  <pbartok@novell.com>
29183
29184         * Control.cs:
29185           - We need to pass a window for DragDrop, so enable callback events
29186           - Added DnD callback events when being a DragSource
29187         * XplatUI.cs (StartDrag): Added window handle argument
29188         * XplatUIDriver.cs (StartDrag): Added window handle argument
29189         * QueryContinueDragEventArgs: Made fields internally accessible so
29190           drivers can set them
29191         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
29192           can set them
29193
29194 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
29195
29196         * DataGridTextBoxColumn.cs: column text editing
29197         * DataGridTableStyle.cs: Respect columns styles created by the user
29198         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
29199         * DataGridBoolColumn.cs: bool column editing
29200         * DataGrid.cs: fixes to scrolling, properties, etc
29201         * DataGridTextBox.cs: handle keyboard
29202         * DataGridColumnStyle.cs: fixes
29203
29204 2005-06-02  Jackson Harper  <jackson@ximian.com>
29205
29206         * ImageListStreamer.cs: Somewhat broken implementation of
29207         GetObjectData. The RLE needs some work to match MS properly.
29208
29209 2005-06-02  Jackson Harper  <jackson@ximian.com>
29210
29211         * X11Dnd.cs: Attempting to keep at least one file in MWF
29212         monostyled.
29213
29214 2005-06-02  Peter Bartok  <pbartok@novell.com>
29215
29216         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
29217           that way
29218
29219 2005-06-02  Peter Bartok  <pbartok@novell.com>
29220
29221         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
29222         * XplatUI.cs: Added DoDragDrop() method
29223         * XplatUIDriver.cs: Added DoDragDrop() method
29224
29225 2005-06-02  Jackson Harper  <jackson@ximian.com>
29226
29227         * Splitter.cs: Implement BorderStyle.
29228
29229 2005-06-02  Jackson Harper  <jackson@ximian.com>
29230
29231         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
29232         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
29233         X11 using XDND.
29234
29235 2005-06-02  Peter Bartok  <pbartok@novell.com>
29236
29237         * DataObject.cs:
29238           - Added Data setter
29239           - Fixed broken insertion code for SetData, now also
29240             overwrites any existing entry of the same format name
29241         * Hwnd.cs: Added list of pointers that automatically gets
29242           freed when the window is disposed
29243         * XplatUI.cs: Call driver initialization method when loading
29244           a driver
29245         * Control.cs:
29246           - OnDragLeave takes EventArgs, not DragEventArgs
29247           - Added setting of WS_EX_ACCEPTFILES style when dropping is
29248             supported
29249           - Forces style update when drop state changes
29250         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
29251           not perfect since we cannot (yet) call the IDataObject.GetData()
29252           method, we keep getting 0x80004005 error, dunno why)
29253
29254 2005-06-02  Peter Bartok  <pbartok@novell.com>
29255
29256         * DragEventArgs.cs: Make fields internal so we can cache the
29257           object and re-set the fields from XplatUI
29258
29259 2005-06-02  Jackson Harper  <jackson@ximian.com>
29260
29261         * Control.cs: Add some internal methods so the DnD subsystem can
29262         raise DnD events. Also call into the driver when AllowDrop is set.
29263         * XplatUI.cs:
29264         * XplatUIDriver.cs: New method for setting whether or not a window
29265         is allowed to accept drag and drop messages.
29266                 
29267 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
29268         
29269         * ScrollBar.cs: Make sure that values sent in Scroll events
29270         are always between Maximum and Minimum.
29271
29272 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
29273
29274         * Menu.cs: Call MenuChanged when menuitem visibility has been
29275         changed.
29276         * MenuItem.cs: Rebuild menu when item is (not) visible.
29277         * MainMenu.cs: MainMenu has special MenuChanged.
29278         * Theme.cs: Caption and FrameBorderSize are not fixed.
29279         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
29280         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
29281         * XplatUIX11.cs,
29282         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
29283         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
29284
29285 2005-05-30  Jackson Harper  <jackson@ximian.com>
29286
29287         * DataFormat.cs: We can't statically initialize this stuff because
29288         it calls into the xplatui and could create a loop. So we lazy init
29289         it.
29290
29291 2005-05-28  Jackson Harper  <jackson@ximian.com>
29292
29293         * Control.cs: Proper implementation of Product(Name/Version).
29294
29295 2005-05-27  Jackson Harper  <jackson@ximian.com>
29296
29297         * DataObject.cs: Dont crash if no data is found.
29298
29299 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
29300         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
29301                 as per status page, guessing it should be set to true
29302
29303 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
29304
29305         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
29306         * DataGridTableStyle.cs: set proper formatting text, def header text
29307         * ThemeWin32Classic.cs: new themable paramaters
29308         * DataGridBoolColumn.cs: paint check box, get data, fixes
29309         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
29310         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
29311         * DataGridColumnStyle.cs: fixes
29312         * Theme.cs: new themable paramaters
29313                 
29314 2005-05-26  Peter Bartok  <pbartok@novell.com>
29315
29316         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
29317
29318 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29319         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
29320
29321 2005-05-24  Peter Bartok  <pbartok@novell.com>
29322
29323         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
29324           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
29325           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
29326           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
29327           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
29328           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
29329           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
29330           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
29331           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
29332           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
29333           missing attributes, etc
29334         * DataGridPreferredColumnWidthTypeConverter.cs: Added
29335
29336 2005-05-24  Peter Bartok  <pbartok@novell.com>
29337
29338         * Help.cs: Added, implemented trivial functions, throws up MessageBox
29339           when user tries to get help
29340         * DataObject.cs, DataFormats.cs, LinkArea.cs,
29341           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
29342           to suppress warnings
29343         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
29344           avoid unreachable code warning
29345
29346 2005-05-20  Peter Bartok  <pbartok@novell.com>
29347
29348         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
29349
29350 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
29351
29352         * DataGridTextBoxColumn.cs: Basic painting methods
29353         * DataGridTableStyle.cs: Set table style in the column
29354         * ThemeWin32Classic.cs: Use Theme for colors
29355         * DataGridDrawingLogic.cs: Implement more drawing
29356         * DataGrid.cs: drawing, theming, enhacements, fixes
29357         * DataGridColumnStyle.cs: fixes, drawing
29358         * Theme.cs: theming for Datagrid
29359
29360 2005-05-20  Peter Bartok  <pbartok@novell.com>
29361
29362         * Cursor.cs: Implemented GetObjectData() method
29363
29364 2005-05-20  Peter Bartok  <pbartok@novell.com>
29365
29366         * Cursors.cs: Added setting of cursor name
29367         * Cursor.cs:
29368           - Implemented constructors
29369           - Implemented Draw and DrawStretched
29370           - Implemented Current property
29371           - Implemented == and != operators
29372           - Implemented Dispose()
29373           - Implemented ToString
29374           - Added missing attributes
29375         * XplatUIX11.cs:
29376           - Added missing reset for OverrideCursor when DoEvents is called
29377           - Fixed creation of cursor, logic was wrong
29378         * XplatUIWin32.cs:
29379           - Added missing reset for OverrideCursor when DoEvents is called
29380           - Fixed creation of cursor, bit arrays were swapped
29381         * Clipboard.cs: Removed obsolete MonoTODO attribute
29382
29383 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
29384
29385         * ComboBox.cs: fixes OnSelectedItemChanged
29386         * ControlBindingsCollection.cs: fixes item range check
29387
29388 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
29389
29390         * UpDownBase.cs:
29391                 - Calc preferred height properly
29392                 - Implement missing properties
29393                 
29394         * NumericUpDown.cs: Implement missing events
29395
29396 2005-05-19  Jackson Harper  <jackson@ximian.com>
29397
29398         * TabControl.cs: New method that resizes the tab pages before
29399         redrawing them. This as needed as the control is double buffered
29400         and sizing will not be recalculated unless ResizeTabPages is
29401         called.
29402         * TabPage.cs: Set base.Text instead of Text in the constructor so
29403         that UpdateOwner does not get called. Use the new Redraw method of
29404         TabControl instead of Refresh so the sizing is recalculated.
29405         * ThemeWin32Classic.cs: Draw the text for button tabs.
29406
29407 2005-05-19  Jackson Harper  <jackson@ximian.com>
29408
29409         * Control.cs: Paint control background images. Fix typo where
29410         PaintControlBackground was not getting called correctly.
29411
29412 2005-05-19  Peter Bartok  <pbartok@novell.com>
29413
29414         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
29415           I can investigate, apparently I broke FileDialog
29416
29417 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
29418
29419         * AxHost.cs: Some simple properties.
29420         * Control.cs: window must be accessible after ctor.
29421         * Form.cs: Added TransparencyKey property.
29422         * TextBoxBase.cs: Implemented Clear. Text property can be null.
29423         * XplatUIWin32.cs: SetBorderStyle implemented.
29424
29425 2005-05-18  Peter Bartok  <pbartok@novell.com>
29426
29427         * DataObject.cs: Entries are not global but particular to the
29428           DataObject, now it behaves that way
29429         * XplatUIWin32.cs: Implemented Clipboard methods
29430         * Clipboard.cs: Implemented
29431         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
29432         * XplatUIOSX.cs: Updated to final clipboard prototypes
29433         * XplatUIX11.cs: Implemented Clipboard methods
29434         * XplatUIDriver.cs: Updated to final clipboard prototypes
29435         * XplatUIStructs.cs:
29436           - Added BITMAPINFOHEADER struct
29437           - Added ClipboardFormats enum
29438         * X11Structs.cs:
29439           - Added ClipboardStruct
29440           - Added Atom enum items for clipboard types
29441           - Fixed atom types for Selection event structures
29442         * DataFormats.cs:
29443           - Added internal properties and methods for drivers to enumerate
29444             all known formats
29445           - Switched initialization method to allow drivers to assign their
29446             own IDs even for the MS predefined clipboard IDs
29447         * XplatUI.cs: Updated to final clipboard interface
29448
29449 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29450         * PropertyGridView.cs: Fixed compiler warnings.
29451
29452 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29453         * PropertyGrid.cs: Added some event calls
29454         * PropertyGridView.cs: Change drawing code to use double buffering
29455         * PropertyGridTextBox.cs: Changed Text property name
29456         * GridItem.cs: Added Bounds property.
29457         * GridEntry.cs: Added Bounds property.
29458
29459 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
29460
29461         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
29462         since GetType() may not return the correct type if the object is
29463         a remoting proxy.
29464
29465 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
29466
29467         * TreeNodeCollection.cs: fixes get/set item ranges
29468         
29469 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
29470
29471         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
29472                 
29473 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
29474
29475         * ComboBox.cs: Fix item range comparation
29476         * ListView.cs: Fix item range comparation
29477
29478 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
29479
29480         * FontDialog.cs:
29481           - Clear example panel when OnPaint is called
29482           - Better solution for displaying the example panel text
29483           - Select default indexes in the ListBoxes
29484
29485 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
29486
29487         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
29488
29489 2005-05-11  Peter Bartok  <pbartok@novell.com>
29490
29491         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
29492         * SelectionRangeConverter.cs: Implemented
29493         * PropertyGrid.cs: Fixed attribute value
29494         * Control.cs:
29495           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
29496           - Added Sebastien Pouliot's CAS Stack Propagation fixes
29497         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
29498           that's common to all drivers. First methods to go there are
29499           Sebastien Pouliot's CAS Stack Propagation helper methods
29500         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
29501           Sebastien Pouliot for CAS Stack Propagation
29502
29503 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
29504
29505         * OSXStructs.cs:
29506           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
29507
29508 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
29509
29510         * DataGridTextBoxColumn.cs: fixed some members
29511         * GridColumnStylesCollection.cs: indexed column is case insensitive
29512         * DataGridTableStyle.cs: fixes
29513         * ThemeWin32Classic.cs: add new theme parameter
29514         * Theme.cs: add new theme parameter
29515         * DataGridDrawingLogic.cs: Datagrid's drawing logic
29516         * DataGrid.cs: fixes, new internal properties, etc.
29517         * DataGridColumnStyle.cs: allows to set grid value
29518         *
29519
29520 2005-05-10  Peter Bartok  <pbartok@novell.com>
29521
29522         * AccessibleObject.cs:
29523           - Removed MonoTODO attribute on help, method is correct
29524           - Fixed Bounds property
29525         * AxHost.cs: Moved MonoTODO
29526         * ButtonBase.cs: Now setting AccessibleObject properties
29527         * RadioButton.cs: Setting proper AccessibleObject role
29528         * CheckBox.cs: Setting proper AccessibleObject role
29529         * ControlBindingsCollection.cs: Added properties, methods and attributes
29530         * DataFormats.cs: Fixed awkward internal API, and changed to enable
29531           userdefined DataFormats.Format items as well
29532         * ListControl.cs: Removed data_member from the public eye
29533         * OpenFileDialog.cs:
29534           - Made class sealed
29535           - Added missing attributes
29536         * SaveFileDialog.cs: Added missing attributes
29537         * ImageListStreamer.cs: Fixed code that caused warnings
29538         * LinkLabel.cs: Removed unreachable code
29539         * TreeView.cs: Fixed code that caused warnings
29540         * PropertyGridView.cs: Fixed code that caused warnings
29541         * GridColumnStylesCollection.cs: Added missing attributes
29542         * GridTableStylesCollection: Added missing attribute
29543         * PropertyManager: Added .ctor
29544         * SecurityIDType: Added
29545         * DataObject.cs: Implemented class
29546         * LinkArea.cs: Added missing attribute
29547
29548 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
29549
29550         * RadioButton.cs: call base method to allow to fire OnClick event
29551         * UpDownBase.cs: OnMouseUp call base method
29552         * CheckedListBox.cs: call base method before returning
29553         * TrackBar.cs: call base method before returning
29554         
29555
29556 2005-05-10  Peter Bartok  <pbartok@novell.com>
29557
29558         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
29559           for messages
29560
29561 2005-05-10  Peter Bartok  <pbartok@novell.com>
29562
29563         * DataFormats.cs: Implemented
29564         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
29565           XplatUIX11.cs: Added Clipboard APIs
29566         * XplatUIWin32.cs: Implemented Clipboard APIs
29567         * FolderBrowserDialog.cs: Added missing event, attributes
29568
29569 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
29570
29571         * CheckBox.cs: call base method to allow to fire OnClick event
29572
29573 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
29574
29575         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
29576
29577 2005-05-06  Peter Bartok  <pbartok@novell.com>
29578
29579         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
29580         * Screen.cs: Implemented
29581         * HelpNavigator.cs: Added
29582         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
29583           property
29584         * HelpProvider.cs: Implemented all we can do until we have a CHM
29585           help library (which means that "What's This" does work now)
29586
29587 2005-05-06  Jackson Harper  <jackson@ximian.com>
29588
29589         * XplatUIX11.cs: Fix waking up the main loop.
29590                 
29591 2005-05-05  Peter Bartok  <pbartok@novell.com>
29592
29593         * XplatUI.cs: Updated revision
29594         * Form.cs: Removed enless loop
29595         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
29596         * Label.cs (OnPaint): Added call to base.OnPaint()
29597         * ToolTip.cs: Made ToolTipWindow reusable for other controls
29598         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
29599         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
29600         * AxHost.cs: Added
29601         * ButtonBase.cs: Moved base.OnPaint() call to end of method
29602         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
29603           to ToolTip.ToolTipWindow for drawing and size methods; this allows
29604           reuse of ToolTipWindow by other controls
29605         * SizeGrip.cs: Moved base.OnPaint() call to end of method
29606         * XplatUIX11.cs: Now clipping drawing area (experimental)
29607         * PictureBox.cs: Moved base.OnPaint() call to end of method
29608         * Theme.cs: Fixed ToolTip abstracts to match new format
29609         * ErrorProvider.cs: Implemented
29610
29611 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
29612
29613         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
29614         * LinkLabel.cs:
29615                 - Adds cursors
29616                 - Handles focus
29617                 - Implements LinkBehavior
29618                 - Fixes many issues
29619
29620 2005-05-03  Jackson Harper  <jackson@ximian.com>
29621
29622         * ListView.cs: Calculate the scrollbar positioning on resize and
29623         paint, so they get put in the correct place.
29624
29625 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
29626
29627         * ColorDialogs.cs: The small color panels are now handled by
29628           SmallColorControl. This fixes drawing of the focus rectangle
29629           and adds a 3D border.
29630
29631 2005-05-03  Peter Bartok  <pbartok@novell.com>
29632
29633         * Control.cs: Modified version of Jonathan Chamber's fix for
29634           double-buffering
29635
29636 2005-05-03  Jackson Harper  <jackson@ximian.com>
29637
29638         * ListView.cs: Remove redraw variable. Control now handles whether
29639         or not a redraw needs to be done, and will only raise the paint
29640         event if redrawing is needed.
29641
29642 2005-05-03  Jackson Harper  <jackson@ximian.com>
29643
29644         * Splitter.cs: No decorations for the splitter form. Cache the
29645         hatch brush.
29646
29647 2005-05-03  Jackson Harper  <jackson@ximian.com>
29648
29649         * TreeView.cs: Use dashed lines to connect nodes. Use the
29650         ControlPaint method for drawing the focus rect instead of doing
29651         that in treeview.
29652
29653 2005-05-02  Peter Bartok  <pbartok@novell.com>
29654
29655         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
29656
29657 2005-04-29  Jackson Harper  <jackson@ximian.com>
29658
29659         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
29660         entire image buffer. Just clear the clipping rectangle.
29661
29662 2005-04-29  Jackson Harper  <jackson@ximian.com>
29663
29664         * ThemeWin32Classic.cs: Don't draw list view items that are
29665         outside the clipping rectangle.
29666
29667 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
29668
29669         * ListBox.cs: added horizontal item scroll
29670
29671 2005-04-29  Jackson Harper  <jackson@ximian.com>
29672
29673         * ThemeWin32Classic.cs: Remove some old debug code that was
29674         causing flicker with the new double buffering code.
29675
29676 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
29677
29678         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
29679         behave like combobox and comboboxlist (still not sure if this is
29680         correct though).
29681
29682 2005-04-28  Jackson Harper  <jackson@ximian.com>
29683
29684         * ThemeWin32Classic.cs: Don't fill the middle of progress
29685         bars. This fills areas outside of the clip bounds that don't need
29686         to be filled.
29687
29688 2005-04-28  Jackson Harper  <jackson@ximian.com>
29689
29690         * Control.cs: Don't expose functionality to touch the image buffers.
29691         * ProgressBar.cs:
29692         * ListView.cs: We do not need to (and no longer can) manipulate
29693         the image buffers directly. All of this is handled by Control.
29694
29695 2005-04-28  Peter Bartok  <pbartok@novell.com>
29696
29697         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
29698           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
29699           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
29700
29701 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
29702
29703         * Combobox:
29704                 - Adjust control's height for non-simple comboboxes (bug fix)
29705                 - Remove dead code
29706         * MenuAPI.cs: remove unused var
29707         * ScrollBar.cs: remove unsed var
29708                  
29709         * ListBox.cs: unselect items when clearing
29710
29711 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
29712
29713         * ListControl.cs: honors OnPositionChanged and default Selected Item
29714         * ListBox.cs: unselect items when clearing
29715
29716 2005-04-27  Jackson Harper  <jackson@ximian.com>
29717
29718         * X11Keyboard.cs: Initialize a default keyboard and give a warning
29719         if a "correct" keyboard is not found. This will make us not crash,
29720         but might give some users bad keyboard layouts...seems to be the
29721         same thing rewind does.
29722
29723 2005-04-27  Jackson Harper  <jackson@ximian.com>
29724
29725         * BindingManagerBase.cs: Attach the current/position changed
29726         handlers to their respective events.
29727
29728 2005-04-27  Jackson Harper  <jackson@ximian.com>
29729
29730         * Control.cs: Make sure that the first WM_PAINT does a full draw,
29731         not just a blit.
29732         * ThemeWin32Classic.cs: Don't fill the background for picture
29733         boxes. This could overright user drawing.
29734         * ComboBox.cs: Just fill the clipping rect not the entire client
29735         rect when drawing the background. This prevents pieces of the
29736         image buffer from getting overwritten and is theoretically faster.
29737
29738 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
29739
29740         * ComboBox.cs: Databinding support fixes, fire missing events
29741         * ListControl.cs: implement missing methods and properties, fixes
29742         * ThemeWin32Classic.cs: Databiding support on Drawing
29743         * CheckedListBox.cs: Databinding support fixes, fire missing events
29744         * ListBox.cs: Databinding support fixes, fire missing events
29745         
29746 2005-04-25  Peter Bartok  <pbartok@novell.com>
29747
29748         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
29749
29750 2005-04-25  Jackson Harper  <jackson@ximian.com>
29751
29752         * TreeView.cs: Use the horizontal scrollbars height not width when
29753         determining how much of the client area is available.
29754
29755 2005-04-25  Jackson Harper  <jackson@ximian.com>
29756
29757         * Control.cs: Double buffering is handled differently now. As per
29758         the spec, the extra buffer is created in the WM_PAINT message and
29759         passed down to the control's drawing code.
29760         * GroupBox.cs:
29761         * Label.cs:
29762         * CheckBox.cs:
29763         * ProgressBar.cs:
29764         * RadioButton.cs:
29765         * ColorDialog.cs:
29766         * ComboBox.cs:
29767         * PropertyGridView.cs:
29768         * UpDownBase.cs:
29769         * MessageBox.cs:
29770         * MenuAPI.cs:
29771         * ListView.cs:
29772         * ButtonBase.cs:
29773         * SizeGrip.cs:
29774         * ScrollBar.cs:
29775         * ListBox.cs:
29776         * TrackBar.cs:
29777         * ToolBar.cs:
29778         * PictureBox.cs:
29779         * DateTimePicker.cs:
29780         * StatusBar.cs:
29781         * TreeView.cs: Update to new double buffering system.
29782         * MonthCalendar.cs: Uncomment block, as Capture is now
29783         working. Update to new double buffering
29784         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
29785         * PaintEventArgs.cs: New internal method allows us to set the
29786         graphics object. This is used for double buffering.
29787         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
29788         rectangle. The internal paint_area var has been removed from
29789         StatusBar. The clipping rect should be used instead.
29790         * Theme.cs: Give the PictureBox drawing method a clipping rect.
29791         * TabPage.cs: The RefreshTabs method was removed, so just call the
29792         tab controls Refresh method now.
29793         * TabControl.cs: Update to new double buffering. Make sure the
29794         handle is created before sizing the tab pages, otherwise we will
29795         get stuck in a loop.
29796
29797 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
29798
29799         * LinkLabel.cs: Fix typo, bug #74719; patch
29800           from Borja Sanchez Zamorano
29801
29802 2005-04-22  Jackson Harper  <jackson@ximian.com>
29803
29804         * TreeNode.cs: Implement Handle stuff.
29805         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
29806
29807 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
29808
29809         * DataGridTextBoxColumn.cs: call base constructors, fixes
29810         * GridColumnStylesCollection.cs: missing events, methods, and functionality
29811         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
29812         * DataGridTableStyle.cs: implements create default column styles
29813         * DataGridBoolColumn.cs: which types can handle
29814         * DataGrid.cs: missing methods, fixes, new functionality
29815         * DataGridColumnStyle.cs: fixes
29816
29817 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
29818         * FolderBrowserDialog.cs:
29819         - Use a thread to fill the TreeView
29820         - Adjusted some sizes
29821
29822 2005-04-19  Peter Bartok  <pbartok@novell.com>
29823
29824         * LinkLabel.cs: (Re-)create the pieces when setting the Text
29825           property. Fixes #74360.
29826
29827 2005-04-19  Jackson Harper  <jackson@ximian.com>
29828
29829         * XEventQueue.cs: Lock when getting the lockqueue size.
29830         * PictureBox.cs: Call base OnPaint
29831         
29832 2005-04-19  Peter Bartok  <pbartok@novell.com>
29833
29834         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
29835           messages were no longer being processed (this broke BeginInvoke)
29836
29837           
29838 2005-04-18  Jackson Harper  <jackson@ximian.com>
29839
29840         * TreeView.cs: buglet that caused node images to get drawn
29841         regardless of whether or not they were in the clipping rectangle.
29842
29843 2005-04-18  Jackson Harper  <jackson@ximian.com>
29844
29845         * CurrencyManager.cs: There are four rules for GetItemProperties:
29846         - If the type is an array use the element type of the array
29847         - If the type is a typed list, use the type
29848         - If the list contains an Item property that is not an object, use
29849         that property
29850         - use the first element of the list if there are any elements in
29851         the list.
29852         
29853 2005-04-17  Jackson Harper  <jackson@ximian.oom>
29854
29855         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
29856         click. This handles offsets for scrolling properly and reduces
29857         memory. Also fixed GetNode to not offset now that TopNode works
29858         properly.
29859         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
29860         
29861 2005-04-17  Jackson Harper  <jackson@ximian.com>
29862
29863         * CursorConverter.cs: Initial implementation.
29864
29865 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
29866
29867         * ListControl.cs: work towards complex data binding support on ListControl
29868         * CurrencyManager.cs: work towards complex data binding support on ListControl
29869         * ListBox.cs: work towards complex data binding support on ListControl
29870
29871
29872 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
29873
29874         * GridTableStylesCollection.cs: fixes name and constructor
29875         * DataGridTableStyle.cs: fixes
29876         * DataGridBoolColumn.cs: fixes names and constructors
29877         * DataGrid.cs: define methods and properties. Some init implementations
29878         * DataGridCell.cs: define methods and properties. Some init implementations
29879         * GridTablesFactory.cs: Define methods and properties
29880
29881 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
29882
29883         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
29884         graphics port changes.  We still want the coordinates in global screen
29885         coordinates.
29886
29887 2005-04-14  Jackson Harper  <jackson@ximian.com>
29888
29889         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
29890         check plus minus or checkbox clicks unless those features are enabled.
29891
29892 2005-04-14  Jackson Harper  <jackson@ximian.com>
29893
29894         * TreeView.cs: Add methods for setting the top and bottom visible
29895         nodes. TreeNode::EnsureVisible uses these methods.
29896         * TreeNode.cs: Implement EnsureVisible
29897
29898 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
29899
29900         * Form.cs: Pospone menu assignation if the window has not been created yet
29901         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
29902         size and position
29903
29904 2005-04-12  Jackson Harper  <jackson@ximian.com>
29905
29906         * TreeView.cs: Set the TopNode properly when scrolling
29907         occurs. This has the added benifit of reducing the amount of
29908         walking that needs to be done when drawing. Also removed an old
29909         misleading TODO.
29910         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
29911         
29912 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
29913
29914         * Timer.cs: fixes interval setting when the timer is already enabled
29915         
29916 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
29917
29918         * FolderBrowserDialog.cs: First approach
29919
29920 2005-04-09  Peter Bartok  <pbartok@novell.com>
29921
29922         * FolderBrowserDialog: Added
29923
29924 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
29925
29926         * LinkLabel.cs: move drawing code into the theme
29927         * ThemeWin32Classic.cs: drawing code and painting background bugfix
29928         * Theme.cs: define DrawLinkLabel method
29929
29930 2005-04-05  Jackson Harper  <jackson@ximian.com>
29931
29932         * BindingContext.cs: Use weak references so these bad actors don't
29933         stay alive longer then they need to.
29934
29935 2005-04-05  Jackson Harper  <jackson@ximian.com>
29936
29937         * ListControl.cs: Basic implementation of complex databinding.
29938         * ComboBox.cs:
29939         * ListBox.cs: Add calls to ListControl databinding methods.
29940
29941 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
29942
29943         * FileDialog.cs:
29944           - Don't change PopupButtonState to Normal when the
29945             PopupButton gets pressed several times.
29946           - Renamed ButtonPanel to PopupButtonPanel
29947
29948 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
29949
29950         * ColorDialog.cs: Use cached objects instead of creating them
29951         * LinkLabel.cs: Use cached objects instead of creating them
29952         * Splitter.cs: Use cached objects instead of creating them
29953         * FontDialog.cs: Use cached objects instead of creating them
29954         * PropertyGridView.cs: Use cached objects instead of creating them
29955         * MessageBox.cs: Use cached objects instead of creating them
29956         * FileDialog.cs: Use cached objects instead of creating them
29957         * ThemeWin32Classic.cs: Use cached objects instead of creating them
29958         * TreeView.cs: Use cached objects instead of creating them
29959         
29960 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
29961
29962         * Control.cs: use Equals to compare the font since no == op
29963         * ScrollBar.cs: use Equals to compare the font since no == op
29964
29965 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
29966
29967         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
29968
29969 2005-04-01  Jackson Harper  <jackson@ximian.com>
29970
29971         * Binding.cs: Implement IsBinding.
29972         * BindingManagerBase.cs:
29973         * PropertyManager.cs:
29974         * CurrencyManager.cs: Add IsSuspended property.
29975
29976 2005-04-01  Jackson Harper  <jackson@ximian.com>
29977
29978         * Binding.cs: Had some IsAssignableFrom calls backwards.
29979
29980 2005-04-01  Jackson Harper  <jackson@ximian.com>
29981
29982         * Binding.cs: Handle null data members when pulling data.
29983         * PropertyManager.cs: Handle the data member being a property that
29984         does not exist.
29985
29986 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
29987
29988         * DataGridTextBoxColumn.cs: fixes signature
29989         * DataGrid.cs: calls right constructor
29990
29991 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
29992
29993         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
29994         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
29995         * GridTableStylesCollection.cs: implements GridTableStylesCollection
29996         * DataGridTableStyle.cs: implements DataGridTableStyle
29997         * DataGridBoolColumn.cs: implements DataGridBoolColumn
29998         * DataGridTextBox.cs: implements DataGridTextBox
29999         * DataGridColumnStyle.cs: implements DataGridColumnStyle
30000
30001 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
30002
30003         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
30004
30005 2005-03-29  Peter Bartok  <pbartok@novell.com>
30006
30007         * Application.cs:
30008           - Properly implemented CompanyName property
30009           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
30010             returns a path that includes CompanyName, ProductName and
30011             Version (fixes bug #70330)
30012
30013 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
30014
30015         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
30016           fixes bug #72588.
30017
30018 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
30019
30020         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
30021         
30022           - Added ReadOnly CheckBox
30023           - Further refactoring: moved some code from Open-/SaveFileDialog
30024             to FileDialog
30025
30026 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
30027
30028         * OpenFileDialog.cs: Fixed CheckFileExists
30029         * FileDialog.cs:
30030           Moved FileView and DirComboBox outside FileDialog class.
30031           They can now be used outside FileDialog
30032
30033 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
30034
30035         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
30036         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
30037
30038 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
30039
30040         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
30041           - Added missing CreatePrompt property in SaveDialog
30042           - Overall SaveDialog handling should be better now
30043           - Added non standard ShowHiddenFiles property
30044           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
30045           - Added InitialDirectory and RestoreDirectory support
30046
30047 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
30048
30049         * FileDialog.cs: Made dirComboBox usable
30050
30051 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
30052
30053         * FileDialog.cs: Added Filter support (case sensitiv)
30054
30055 2005-03-24  Jackson Harper  <jackson@ximian.com>
30056
30057         * TabControl.cs: Need a couple more pixels for the lines.
30058
30059 2005-03-23  Jackson Harper  <jackson@ximian.com>
30060
30061         * TabControl.cs: Give the tab page focus when it is selected.
30062
30063 2005-03-23  Jackson Harper  <jackson@ximian.com>
30064
30065         * TabControl.cs: Account for the drawing of tabs borders when
30066         invalidating. If the slider was clicked dont do click detection on
30067         the tabs.
30068
30069 2005-03-23  Jackson Harper  <jackson@ximian.com>
30070
30071         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
30072
30073 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
30074
30075         * CategoryGridEntry.cs: Added
30076         * GridItem.cs: Added helper properties
30077         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
30078         * GridEntry.cs: Updated code for collection
30079         * PropertyGrid.cs: Cleaned up some formatting
30080         * PropertyGridView.cs: Added drop down functionality for enums.
30081         * GridItemCollection.cs: Added enumerator logic
30082         * PropertyGridEntry.cs: Added
30083
30084 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
30085
30086         * FileDialog.cs:
30087           - Removed unnecessary commented code
30088           - Fixed handling for entering the filename manually in the combobox
30089
30090 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
30091
30092         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
30093
30094 2005-03-18  Peter Bartok  <pbartok@novell.com>
30095
30096         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
30097           them being touching the border
30098
30099 2005-03-18  Peter Bartok  <pbartok@novell.com>
30100
30101         * TextControl.cs: Quick hack to center text better
30102
30103 2005-03-18  Peter Bartok  <pbartok@novell.com>
30104
30105         * ControlPaint.cs:
30106           - Don't throw NotImplemented exceptions, just print a notice once
30107             instead (requested by Miguel). This makes running existing SWF
30108             apps a bit easier
30109         * Control.cs:
30110           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
30111           - Added context menu trigger on right click
30112         * Panel.cs: Trigger invalidate on resize
30113         * StatusBar.cs:
30114           - Removed old double-buffer drawing
30115           - Added ResizeRedraw style to force proper update of statusbar
30116         * ListView.cs:
30117           - Removed debug output
30118         * ThemeWin32Classic.cs:
30119           - Fixed drawing of status bar, now draws Text property if there
30120             are no defined panels
30121
30122 2005-03-18  Jackson Harper  <jackson@ximian.com>
30123
30124         * ImageList.cs: When the image stream is set pull all the images
30125         from it.
30126         * ImageListStreamer.cs: Implement reading image list streams.
30127
30128 2005-03-18  Peter Bartok  <pbartok@novell.com>
30129
30130         * ThemeWin32Classic.cs (DrawPictureBox):
30131           - Fixed calculations for centered drawing
30132           - Fixed drawing for normal mode, not scaling the image on normal
30133
30134 2005-03-18  Peter Bartok  <pbartok@novell.com>
30135
30136         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
30137           textbox
30138         * FileDialog.cs:
30139           - Made Open/Save button the accept button for FileDialog
30140           - Tied the cancel button to the IButtonControl cancel button
30141           - Save/Open now properly builds the pathname
30142           - Now handles user-entered text
30143           - Preventing crash on right-click if no item is selected
30144           - Fixed Text property, now uses contents of textbox
30145           - Fixed SelectedText property, now just returns the text part that
30146             is selected in the text box
30147
30148 2005-03-18  Jackson Harper  <jackson@ximian.com>
30149
30150         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
30151         rect, make sure to de-adjust the interior rect after drawing the
30152         tab text.
30153
30154 2005-03-18  Peter Bartok  <pbartok@novell.com>
30155
30156         * MenuAPI.cs: Remove menu *before* executing selected action to
30157           prevent the menu from 'hanging around'
30158           
30159 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
30160
30161         * XplatUIOSX.cs: Implemented WorkingArea property
30162
30163 2005-03-17  Peter Bartok  <pbartok@novell.com>
30164
30165         * XplatUIX11.cs: Fixed menu coord calculations
30166         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
30167           for calculating offsets
30168
30169 2005-03-17  Peter Bartok  <pbartok@novell.com>
30170
30171         * Hwnd.cs: Do not consider menu presence for default client
30172           rectangle location/size
30173         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
30174           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
30175           translation functions
30176         * FileDialog.cs: Fixed (what I presume is a) typo
30177
30178 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
30179
30180         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
30181           X access (avoids X-Async errors)
30182
30183 2005-03-16  Jackson Harper  <jackson@ximian.com>
30184
30185         * TabControl.cs: Raise the SelectedIndexChanged event.
30186
30187 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
30188
30189         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
30190           - Removed vertical ToolBar and replaced it with a custom panel
30191             (desktop and home button already work)
30192           - Added Help button (some controls get resized or relocated then)
30193           - Draw correct text depending on Open or Save.
30194           - Fixed some typos...
30195
30196 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
30197
30198         * ScrollBar.cs:
30199           - Only change Maximum and Minimum when need it (bug fix)
30200
30201 2005-03-15  Peter Bartok  <pbartok@novell.com>
30202
30203         * Form.cs: Use Handle for icon, to trigger creation if
30204           the window does not yet exist
30205         * Control.cs:
30206           - CanSelect: Slight performance improvement
30207           - Focus(): Preventing possible recursion
30208           - Invalidate(): Removed ControlStyle based clear flag setting
30209           - WM_PAINT: fixed logic for calling OnPaintBackground
30210           - WM_ERASEBKGND: Fixed logic, added call to new driver method
30211             EraseWindowBackground if the control doesn't paint background
30212         * XplatUIWin32.cs:
30213           - Moved EraseWindowBackground() method to internal methods
30214           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
30215             is sent via SendMessage on BeginPaint call on Win32
30216         * XplatUIX11.cs:
30217           - Added EraseWindowBackground() method
30218           - No longer sends WM_ERASEBKGND on .Expose, but on call to
30219             PaintEventStart, which more closely matches Win32 behaviour
30220           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
30221           - Fixed SetFocus() to properly deal with client and whole windows
30222         * Hwnd.cs: Added ErasePending property
30223         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
30224         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
30225
30226 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
30227
30228         * XplatUIOSX.cs:
30229           - Fix hard loop when timers exist.
30230           - Fix bugs with middle and right click for 3 button mice.
30231
30232 2005-03-11  Peter Bartok  <pbartok@novell.com>
30233
30234         * XplatUIX11.cs:
30235           - get_WorkingArea: Need to call X directly, GetWindowPos only
30236             returns cached data now
30237           - Added sanity check to GetWindowPos hwnd usage
30238
30239 2005-03-11  Jackson Harper  <jackson@ximian.com>
30240
30241         * BindingManagerBase.cs: This method isn't used anymore as
30242         PullData now updates the data in the control.
30243
30244 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
30245
30246         * Form.cs: fixes menu drawing on X11
30247         * MenuAPI.cs:  fixes menu drawing on X11
30248
30249 2005-03-11  Peter Bartok  <pbartok@novell.com>
30250
30251         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
30252           from Jonathan Gilbert; should fix bug #73606
30253         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
30254           in Screen coordinates. Thanks, Jordi.
30255         * Form.cs: Added missing attribute
30256
30257 2005-03-11  Peter Bartok  <pbartok@novell.com>
30258
30259         * Form.cs:
30260           - Rudimentary Mdi support
30261           - Removed outdated FormParent code
30262           - Implemented lots of missing properties and methods, still missing
30263             transparency support
30264           - Added missing attributes
30265           - Implemented support for MaximumBounds
30266           - Added firing of various events
30267         * XplatUI.cs: Added SetIcon() method
30268         * XplatUIDriver.cs: Added SetIcon() abstract
30269         * XplatUIOSX.cs: Stubbed out SetIcon() method
30270         * XplatUIX11.cs:
30271           - Implemented SetIcon() support
30272           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
30273           - Switched to unix line endings
30274         * XplatUIWin32.cs:
30275           - Made POINT internal so for can access it as part of MINMAX
30276           - Implemented SetIcon() support
30277           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
30278             native Mdi support again, might have to go managed)
30279         * Control.cs: Now fires the StyleChanged event
30280         * MdiClient.cs: Added; still mostly empty
30281
30282 2005-03-10  Peter Bartok  <pbartok@novell.com>
30283
30284         * SaveFileDialog.cs: Added emtpy file
30285
30286 2005-03-08  Peter Bartok  <pbartok@novell.com>
30287
30288         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
30289           in turn triggers OnCreateContro) when creating a handle for the
30290           first time.
30291         * TextControl.cs: Fixed endless loop in certain cases when
30292           replacing the current selection
30293
30294 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
30295
30296         * ScrollBar.cs:
30297           - Honors NewValue changes in Scroll events allowing apps to change it
30298           - Adds First and Last Scroll events
30299           - Fixes Thumb events
30300
30301 2005-03-07  Peter Bartok  <pbartok@novell.com>
30302
30303         * Hwnd.cs: Added DefaultClientRectangle property
30304         * XplatUI.cs: Now using the X11 driver Where() method, which provides
30305           more detailed debug information
30306         * XplatUIX11.cs:
30307           - Fixed size-change feedback loop, where we would pull an old size
30308             off the queue and mistakenly change our window's size to an
30309             earlier value
30310           - Now compressing ConfigureNotify events, to reduce looping and
30311             redraw issues
30312         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
30313           is called
30314
30315 2005-03-07  Jackson Harper  <jackson@ximian.com>
30316
30317         * Binding.cs: Push data pushes from data -> property. Check if the
30318         property is readonly when attempting to set it.
30319
30320 2005-03-07  Jackson Harper  <jackson@ximian.com>
30321
30322         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
30323         instead of IsSubclassOf. Pulling data now sets the value on the
30324         control.
30325         * PropertyManager.cs:
30326         * CurrencyManager.cs: Just need to pull data when updating now,
30327         because PullData will set the value on the control.
30328
30329 2005-03-04  Jackson Harper  <jackson@ximian.com>
30330
30331         * Binding.cs: Implement data type parsing and converting on pulled
30332         data. TODO: Are there more ways the data can be converted?
30333
30334 2005-03-04  Jackson Harper  <jackson@ximian.com>
30335
30336         * Binding.cs: Support <Property>IsNull checks. Also bind to the
30337         controls Validating method so we can repull the data when the
30338         control loses focus.
30339
30340 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
30341
30342         * ColumnHeader.cs:
30343           - Fixes null string format
30344           
30345         * ListView.cs:
30346           - Adds enum type checks
30347           - Fixes redrawing and recalc need after changing some properties
30348           - Fixes on focus_item set after the event
30349           - Fixes adding columns after the control has been created
30350           
30351         * ThemeWin32Classic.cs:
30352           - Fixes CheckBox focus rectangle
30353           - Fixes ColumnHeader drawing
30354
30355
30356 2005-03-03  Jackson Harper  <jackson@ximian.com>
30357
30358         * Binding.cs: Bind to <Property>Changed events so we can detect
30359         when properties are changed and update the data.
30360
30361 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
30362
30363         * ImageList.cs:
30364           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
30365           - Fixes ImageList constructor with ImageList container
30366           - Fixes image scaling (wrong parameters at DrawImage)
30367
30368 2005-02-02  Jackson Harper  <jackson@ximian.com>
30369
30370         * Binding.cs: Make property searches case-insensitive. Eliminate
30371         some duplicated code.
30372
30373 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
30374
30375         * ComboBox.cs:
30376                 - Handle focus event
30377                 - Fix scrollbar events
30378                 - Discard highlighted item if remove it
30379                 - Fixes SelectedItem with strings
30380
30381 2005-03-01  Peter Bartok  <pbartok@novell.com>
30382
30383         * Control.cs:
30384           - Fixed Visible property, now follows (once again) parent chain
30385             to return false if any control in the chain is visible=false
30386           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
30387           - Fixed several places where is_visible instead of Visible was used
30388           - Implemented FIXME related to focus selection when setting focused
30389             control to be invisible
30390
30391         * XplatUIWin32.cs: Now using proper method to find out if window is
30392           visible. Thanks to Jordi for pointing it out
30393
30394 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
30395
30396         * ComboBox.cs: show/hide scrollbar instead of creating it
30397
30398 2005-02-27  Jackson Harper  <jackson@ximian.com>
30399
30400         * CurrencyManager.cs: Add PositionChanged stuff.
30401
30402 2005-02-27  Peter Bartok  <pbartok@novell.com>
30403
30404         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
30405         * XplatUIOSX.cs: Added GetMenuOrigin() stub
30406         * XplatUIWin32.cs: Implemented GetMenuOrigin()
30407         * XplatUIX11.cs:
30408           - Implemented GetMenuDC()
30409           - Implemented GetMenuOrigin()
30410           - Implemented ReleaseMenuDC()
30411           - Implemented generation of WM_NCPAINT message
30412           - Implemented generation and handling of WM_NCCALCSIZE message
30413         * Form.cs: Added debug helper message for Jordi's menu work
30414         * Hwnd.cs:
30415           - Modified ClientRect property; added setter, fixed getter to handle
30416             setting of ClientRect
30417           - Added MenuOrigin property
30418
30419 2005-02-26  Peter Bartok  <pbartok@novell.com>
30420
30421         * XplatUIX11.cs:
30422           - Destroys the caret if a window that's being destroyed contains it
30423           - Ignores expose events coming from the X11 queue for windows that
30424             already are destroyed
30425           - Now uses the proper variable for handling DestroyNotify, before we
30426             marked the wrong window as destroyed
30427           - Improved/added some debug output
30428
30429 2005-02-26  Peter Bartok  <pbartok@novell.com>
30430
30431         * X11Keyboard.cs: Fixes to work on 64bit systems
30432
30433 2005-02-26  Peter Bartok  <pbartok@novell.com>
30434
30435         * Control.cs:
30436           - Now calling OnHandleDestroyed from DestroyHandle()
30437             instead of Dispose()
30438           - Removed bogus call to controls.Remove() from DestroyHandle()
30439
30440 2005-02-26  Peter Bartok  <pbartok@novell.com>
30441
30442         * Control.cs: Properly destroy child windows when our handle is
30443           destroyed
30444
30445 2005-02-25  Peter Bartok  <pbartok@novell.com>
30446
30447         * XplatUI.cs:
30448           - Added 'DriverDebug' define to allow tracing XplatUI API calls
30449           - Alphabetized Static Methods and Subclasses
30450
30451         * XplatUIX11.cs:
30452           - Added XException class to allow custom handling of X11 exceptions
30453           - Created custom X11 error handler, tied into XException class
30454           - Added support for MONO_XEXCEPTIONS env var to allow the user
30455             to either throw an exception on X errors or continue running
30456             after displaying the error
30457           - Added handling of DestroyNotify message
30458           - Added handler for CreateNotify message (still disabled)
30459           - Improved (tried to at least) Where method to provide file and lineno
30460         * X11Structs.cs:
30461           - Added XErrorHandler delegate
30462           - Added XRequest enumeration (to suppor translation of errors)
30463
30464 2005-02-25  Jackson Harper  <jackson@ximian.com>
30465
30466         * PropertyManager.cs: Implement editing features
30467         * CurrencyManager.cs:
30468         * Binding.cs: First attempt at UpdateIsBinding
30469         * BindingManagerBase.cs: Call UpdateIsBinding before
30470         pushing/pulling data.
30471
30472 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
30473
30474         * MenuAPI.cs: Respect disabled items
30475         * ThemeWin32Classic.cs
30476                 - Caches ImageAttributes creation for DrawImageDisabled
30477                 - Fixes vertical menu line drawing
30478                 - Draws disabled arrows in disable menu items
30479
30480 2005-02-24  Peter Bartok  <pbartok@novell.com>
30481
30482         * Hwnd.cs:
30483           - Added UserData property to allow associating arbitrary objects
30484             with the handle
30485           - Fixed leak; now removing Hwnd references from static windows array
30486         * XplatUIWin32.cs:
30487           - Fixed Graphics leak in PaintEventEnd
30488           - Removed usage of HandleData, switched over to Hwnd class
30489         * HandleData.cs: Removed, obsoleted by Hwnd.cs
30490
30491 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
30492
30493         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
30494         * ScrollBar.cs: Fixes bug
30495         * TrackBar.cs: removes death code, clipping, mimize refreshes,
30496          keyboard navigation enhancements
30497
30498 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
30499
30500         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
30501         * GroupBox.cs: Add control styles
30502         * Label.cs: Add control styles
30503         * UpDownBase.cs: Add control styles
30504         * ListBox.cs: Add control styles
30505         * XplatUIWin32.cs: Fixes wrong parameter order
30506
30507
30508 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
30509
30510         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
30511
30512 2005-02-23  Jackson Harper  <jackson@ximian.com>
30513
30514         * PropertyManager.cs: Implement property binding. This doesn't
30515         seem to work yet though as (I think) there are some bugs in
30516         System.ComponentModel.PropertyDescriptor.
30517         * BindingContext.cs: Use new PropertyManager constructor.
30518
30519 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
30520
30521         * ProgressBar.cs: use clip region in ProgressBar
30522         * ThemeWin32Classic.cs: use clip region in ProgressBar
30523
30524 2004-02-22  Jackson Harper  <jackson@ximian.com>
30525
30526         * BindingsCollection.cs: Remove some debug code.
30527
30528 2005-02-22  Jackson Harper  <jackson@ximian.com>
30529
30530         * BindingContext.cs:
30531         * ControlBindingsCollection.cs:
30532         * CurrencyManager.cs:
30533         * Binding.cs:
30534         * BindingManagerBase.cs: Initial implementation
30535         * BindingsCollection.cs: Add an internal contains method that the
30536         BindingManagerBase uses to ensure bindings aren't added twice to
30537         the collection.
30538         * PropertyManager.cs: Stubbed out.
30539         * Control.cs:
30540         * ContainerControl.cs: Hook up databinding
30541         
30542 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
30543
30544         * XplatUIOSX.cs:
30545           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
30546           Fixed Invalidate/Update chain.
30547           Fixed tons of other minor bugs (this is almost a complete rewrite).
30548
30549 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
30550
30551         * ComboBox.cs: do subcontrol creation when the control is created
30552
30553 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
30554
30555         * Label.cs: fixes image drawing (image and imagelist)
30556         * ThemeWin32Classic.cs: cache brushes
30557         
30558 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
30559
30560         * Form.cs: Move menu drawing code to Theme class
30561         * ComboBox.cs: Move ComboBox drawing code to Theme class
30562         * MenuItem.cs: Move menu drawing code to Theme class
30563         * MenuAPI.cs: Move menu drawing code to Theme class
30564         * ThemeWin32Classic.cs: New methods
30565         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
30566         * ListBox.cs: Move Listbox drawing code to Theme class
30567         * Theme.cs: New methods
30568
30569 2005-02-20  Peter Bartok  <pbartok@novell.com>
30570
30571         * Control.cs:
30572           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
30573             only process mnemonics on those)
30574           - Fixed event sequence for key handling; first calling
30575             ProcessKeyEventArgs now
30576         * TextBoxBase.cs:
30577           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
30578             for processing non-character keys
30579           - Fixed WM_CHAR to generate proper event sequence before processing
30580         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
30581           generation
30582
30583 2005-02-19  Peter Bartok  <pbartok@novell.com>
30584
30585         * UserControl.cs: Added TextChanged event; added attributes
30586         * SizeGrip.cs: Implemented resizing and optional display of grip
30587         * Form.cs: Fixed attribute
30588         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
30589           Changed meaning of ScrollWindow bool argument; instead of the
30590           clear attribute (which will be true usually anyway), it gives the
30591           option of moving child controls as well.
30592         * XplatUIX11.cs:
30593           - Changed to match new ScrollWindow argument
30594           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
30595             now handles the implicit parent window a WM puts around us
30596         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
30597           to work)
30598         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
30599         * TreeView.cs: Adjusted to new ScrollWindow arguments
30600
30601 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
30602
30603         * Form.cs: Menu integration with non-client area
30604         * MenuItem.cs: Menu integration with non-client area
30605         * MenuAPI.cs: Menu integration with non-client area
30606
30607 2005-02-18  Peter Bartok  <pbartok@novell.com>
30608
30609         * MethodInvoker.cs: Added
30610         * MdiLayout.cs: Added
30611         * SendKeys.cs: Started implementation
30612         * ErrorIconAlignment.cs: Added
30613
30614 2005-02-18  Peter Bartok  <pbartok@novell.com>
30615
30616         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
30617         * Form.cs: Added handling for Menu-related Non-client messages
30618
30619 2005-02-17  Peter Bartok  <pbartok@novell.com>
30620
30621         * UpDownBase.cs: Fixed typo, compilation errors
30622         * DomainUpDown.cs: Fixed attribute value
30623
30624 2005-02-16  Miguel de Icaza  <miguel@novell.com>
30625
30626         * UpDownBase.cs: Attach entry events.
30627         Propagate events.
30628         Add ForeColor property, Focused, InterceptArrowKeys (interception
30629         does not work yet).
30630
30631 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
30632
30633         * Form.cs:
30634                 - Redraw non client are on Setmenu
30635                 - Calc proper menu starting point
30636
30637 2005-02-17  Peter Bartok  <pbartok@novell.com>
30638
30639         * Application.cs: Fixed message_filter check
30640
30641 2005-02-17  Peter Bartok  <pbartok@novell.com>
30642
30643         * Application.cs: Now calls registered message filters
30644         * DockStyle.cs: Fixed attribute
30645         * Form.cs: Fixed attribute
30646         * Menu.cs: Fixed attribute
30647         * ToolTip.cs: Fixed attribute
30648         * TreeNode.cs: Added missing attributes and arranged in regions
30649         * PropertyGrid.cs: Fixed signatures
30650         * TreeNodeCollection.cs: Added attributes
30651         * Splitter.cs: Added missing attributes; arranged into regions
30652         * TabPage.cs: Added missing attributes; arranged into regions
30653         * TextBoxBase.cs: Added missing attributes
30654         * TextBox.cs: Added missing attributes
30655         * ArrangeDirection.cs: Added missing attributes
30656         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
30657         * ToolBarButton.cs: Fixed attributes
30658         * AnchorStyles.cs: Fixed attribute
30659         * TrackBar.cs: Fixed attributes
30660         * TabControl.cs: Added missing attributes and arranged into regions
30661         * ToolBar.cs: Fixed attribute
30662         * StatusBar.cs: Fixed signature, organized into regions and added
30663           attributes
30664         * StatusBarPanel.cs: Fixed attributes
30665         * ContentsResizedEventArgs.cs: Implemented
30666         * ContentsResizedEventHandler.cs: Implemented
30667         * DateBoldEventArgs.cs: Implemented
30668         * DateBoldEventHandler.cs: Implemented
30669         * UpDownEventArgs.cs: Implemented
30670         * UpDownEventHandler.cs: Implemented
30671         
30672 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
30673
30674         * Form.cs: first Menu NC refactoring
30675         * MenuAPI.cs: first Menu NC refactoring
30676         
30677 2005-02-16  Peter Bartok  <pbartok@novell.com>
30678
30679         * ImeMode.cs: Added missing attributes
30680         * Menu.cs: Fixed attribute
30681         * GroupBox.cs: Fixed attribute
30682         * Label.cs: Fixed attribute
30683         * ColorDialog.cs (RunDialog): Removed TODO attribute
30684         * ComboBox.cs: Fixed attributes
30685         * ListControl.cs: Added missing attributes
30686         * PropertyGrid.cs: Fixed attributes
30687         * Control.cs: Fixed attributes
30688         * ListViewItem.cs: Added TypeConverter attribute
30689         * NotifyIcon.cs: Fixed attributes
30690         * ListView.cs: Fixed attributes
30691         * ButtonBase.cs: Fixed attribute
30692         * ImageList.cs: Added missing attributes
30693         * ContainerControl.cs: Fixed signature
30694         * CheckedListBox.cs: Fixed attribute; added missing attributes
30695         * Panel.cs: Fixed attributes
30696         * PropertyTabChangedEventArgs.cs: Added missing attribute
30697         * PropertyValueChangedEventArgs.cs: Added missing attribute
30698         * Binding.cs: Fixed attribute
30699         * ListViewItemConverter: Implemented ListViewSubItemConverter class
30700         * ListBox.cs: Fixed attribute; added missing attributes;
30701         * ScrollableControl.cs: Added missing attributes
30702         * PictureBox.cs: Added missing attributes; implemented missing property
30703         * DateTimePicker.cs: Added missing attributes
30704         * Theme.cs (ToolWindowCaptionHeight): Fixed type
30705         * MonthCalendar.cs: Fixed attributes
30706         * StatusBarPanel.cs: Added missing attributes
30707         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
30708
30709 2005-02-16  Peter Bartok  <pbartok@novell.com>
30710
30711         * TextBoxBase.cs: The previous method to enforce height yet remember
30712           the requested high was less than ideal, this is an attempt to do
30713           it better.
30714         * Control.cs: Added comment about possible problem
30715         * Copyright: Updated format
30716         * GridItemType.cs: Fixed swapped values
30717
30718 2005-02-15  Jackson Harper  <jackson@ximian.com>
30719
30720         * BaseCollection.cs: Use property so we never access an
30721         uninitialized list. Also initialize the list in the property.
30722
30723 2005-02-15  Peter Bartok  <pbartok@novell.com>
30724
30725         * GroupBox.cs (ProcessMnemonic): Implemented
30726         * Label.cs (ProcessMnemonic): Implemented
30727         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
30728           hotkeys
30729
30730 2005-02-15  Peter Bartok  <pbartok@novell.com>
30731
30732         * RadioButton.cs (ProcessMnemonic): Implemented
30733         * CheckBox.cs (ProcessMnemonic): Implemented
30734         * Control.cs:
30735           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
30736             handling
30737           - Added internal method to allow calling ProcessMnemonic from other
30738             controls
30739         * ContainerControl.cs:
30740           - Started support for handling validation chain handling
30741           - Implemented ProcessMnemonic support
30742           - Added Select() call to Active, to make sure the active control
30743             receives focus
30744         * Form.cs: Setting toplevel flag for Forms (this was lost in the
30745           FormParent rewrite)
30746         * ThemeWin32Classic.cs:
30747           - DrawCheckBox(): Fixed stringformat to show hotkeys
30748           - DrawRadioButton(): Fixed stringformat to show hotkeys
30749         * CommonDialog.cs: Removed WndProc override, not needed
30750
30751 2005-02-14  Peter Bartok  <pbartok@novell.com>
30752
30753         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
30754           missed those in the rewrite
30755
30756 2005-02-14  Miguel de Icaza  <miguel@novell.com>
30757
30758         * NumericUpDown.cs (Increment, ToString): Add.
30759         (DecimalPlaces): implement.
30760         
30761         Add attributes.
30762         
30763         * UpDownBase.cs: Add the designer attributes.
30764
30765 2005-02-13  Peter Bartok  <pbartok@novell.com>
30766
30767         * Panel.cs: Removed border_style, now in Control
30768         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
30769           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
30770
30771 2005-02-13  Peter Bartok  <pbartok@novell.com>
30772
30773         * MouseButtons.cs: Added missing attributes
30774         * XplatUIStructs.cs: Added enumeration for title styles
30775         * LeftRightAlignment.cs: Added missing attributes
30776         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
30777           it compatible with Graphics.FromHwnd()
30778         * SelectedGridItemChangedEventArgs.cs: Fixed property type
30779         * Keys.cs: Added missing attributes
30780         * SelectionRange.cs: Added missing attributes
30781         * SelectionRangeConverter.cs: Added
30782         * XplatUI.cs:
30783           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
30784             ReleaseMenuDC methods
30785           - Renamed ReleaseWindow to UngrabWindow
30786           - Added proper startup notice to allow version identification
30787         * Form.cs:
30788           - Added missing attributes
30789           - Removed FormParent concept
30790         * Label.cs: Removed border_style field, now in Control
30791         * RadioButton.cs: Now properly selects RadioButton when focus is
30792           received
30793         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
30794         * Control.cs:
30795           - Added missing attributes
30796           - Added borderstyle handling
30797           - Removed FormParent concept support
30798           - Fixed calls to XplatUI to match changed APIs
30799           - Fixed bug that would case us to use disposed Graphics objects
30800           - Removed unneeded internal methods
30801           - PerformLayout(): Fixed to handle DockStyle.Fill properly
30802           - SelectNextControl(): Fixed to properly check common parents
30803         * TextBoxBase.cs: Removed border_style field (now in Control)
30804         * MessageBox.cs:
30805           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
30806             fixed calculations for form size
30807           - Added support for localized strings and icons
30808           - Improved form size calculations, added border
30809         * ListView.cs: Removed border_style field (now in Control)
30810         * X11Structs.cs: Moved several structs from X11 driver here
30811         * X11Keyboard.cs: Changed debug message
30812         * Application.cs: Removed FormParent concept support
30813         * CommonDialog.cs:
30814           - Resetting end_modal flag
30815           - Removed FormParent concept support
30816         * NativeWindow.cs: Removed FormParent concept support
30817         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
30818           Client area and Non-Client whole window to allow support for WM_NC
30819           messages
30820         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
30821           prevent using it until it supports Hwnd as per Geoff Norton's request
30822         * ToolBar.cs: Fixed drawing, was not doing proper drawing
30823         * PictureBox.cs: Removed border_style field, now in Control
30824         * XplatUIWin32.cs: Added new driver methods
30825
30826 2005-02-12  Peter Bartok  <pbartok@novell.com>
30827
30828         * OpacityConverter.cs: Implemented
30829         * Hwnd.cs: Internal class to support drivers that need to emulate
30830           client area/non-client area window behaviour
30831
30832 2005-02-11  Peter Bartok  <pbartok@novell.com>
30833
30834         * KeysConverter.cs: Implemented
30835
30836 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
30837
30838         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
30839         * LinkLabel: Added missing attributes
30840         * MainMenu.cs: fixes ToString
30841         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
30842         * ListBox.cs: fixes event position
30843         * TrackBar.cs: adds missing attributes and events
30844         
30845 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
30846
30847         * MenuItem.cs: Use SystemInformation and bug fixes
30848         * MenuAPI.cs: Use SystemInformation and bug fixes
30849
30850 2005-02-09  Jackson Harper  <jackson@ximian.com>
30851
30852         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
30853         their keystate otherwise things like VK_MENU get stuck "on".
30854
30855 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
30856
30857         * ListBox.cs: Fixes AddRange bug
30858         
30859 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
30860
30861         * ProgressBar.cs
30862                 - Add missing attributes
30863                 - Add missing method
30864                 
30865         * CheckedListBox.cs: Added missing attributes
30866                 - Add missing attributes
30867                 - Remove extra method
30868         
30869         * ComboBox.cs: Added missing attributes
30870         * VScrollBar.cs: Added missing attributes
30871         * ScrollBar.cs:  Added missing attributes
30872         * ListBox.cs: Fixes signature, add missing consts
30873         * LinkArea.cs:   Added missing attributes
30874         
30875
30876 2005-02-08  Peter Bartok  <pbartok@novell.com>
30877
30878         * Menu.cs: Added missing attributes
30879         * MainMenu.cs: Added missing attributes
30880         * GroupBox.cs: Added missing attributes
30881         * Label.cs: Added missing attributes
30882         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
30883         * ColorDialog.cs:
30884           - Added Instance and Options properties
30885           - Added missing attributes
30886         * Cursor.cs: Made Serializable
30887         * NotifyIcon: Added missing attributes
30888         * MenuItem.cs: Added missing attributes
30889         * TextBoxBase.cs: Implemented AppendText() and Select() methods
30890         * Panel.cs: Added Missing attributes
30891         * MonthCalendar.cs: Fixed CreateParams
30892
30893 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
30894         
30895         * LinkLabel.cs:
30896                 - Fixes signature
30897                 - Fixes issues with links
30898                 - Adds the class attributes
30899
30900 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
30901         
30902         * ComboBox.cs:
30903                 - Fixes button when no items available in dropdown
30904                 - Fixes repainting problems
30905                 - Adds the class attributes
30906                 
30907 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
30908
30909         * XplatUIOSX.cs: Detect the menu bar and title bar height from
30910         the current theme.  Cache these on startup.
30911
30912 2005-02-07  Jackson Harper  <jackson@ximian.com>
30913
30914         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
30915         the scrollbar buttons when they are depressed.
30916
30917 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
30918
30919         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
30920         Get the display size from the main displayid.  We currently dont
30921         support multiple display configurations.
30922
30923 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
30924
30925         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
30926
30927 2005-02-07  Miguel de Icaza  <miguel@novell.com>
30928
30929         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
30930
30931 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
30932
30933         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
30934
30935 2005-02-04  Jackson Harper  <jackson@ximian.com>
30936
30937         * ThemeWin32Classic.cs: Respect the clipping rect when
30938         drawing. Only fill the intersection of clips and rects so there
30939         isn't a lot of large fills.
30940         * ScrollBar.cs: Pass the correct clipping rect to the theme
30941         engine. Remove some debug code.
30942
30943 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
30944         
30945         * DateTimePicker.cs:
30946                 - Fixed crash on DateTime.Parse, use Constructor instead
30947
30948 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
30949         
30950         * MenuItem.cs:
30951         * MenuAPI.cs:
30952                 - Owner draw support (MeasureItem and DrawItem)
30953
30954 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
30955         
30956         *  Menu.cs:
30957                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
30958                 - Fixes MenuItems.Add range
30959         * MenuItem.cs:
30960                 - MergeMenu and Clone and CloneMenu functions
30961
30962 2005-02-03  Jackson Harper  <jackson@ximian.com>
30963
30964         * ScrollBar.cs: Make abstract
30965         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
30966         is abstract.
30967
30968 2005-02-03  Jackson Harper  <jackson@ximian.com>
30969
30970         * ScrollBar.cs: First part of my scrollbar fixups. This removes
30971         all the unneeded refreshes and uses invalidates with properly
30972         computed rects.
30973
30974 2005-02-03  Peter Bartok  <pbartok@novell.com>
30975
30976         * ComponentModel.cs: Added
30977         * IDataGridEditingService.cs: Added
30978         * Timer.cs: Added missing attributes
30979         * ToolTip.cs: Added missing attributes
30980
30981 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
30982
30983         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
30984
30985 2005-02-03  Peter Bartok  <pbartok@novell.com>
30986
30987         * ListBox.cs: Added missing attributes
30988
30989 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
30990         
30991         * ListBox.cs:
30992                 - Fixes font height after font change
30993                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
30994                 
30995 2005-02-02  Peter Bartok  <pbartok@novell.com>
30996
30997         * HandleData.cs: Introduced static methods to allow class
30998           to be more self-contained and track it's own HandleData objects
30999         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
31000           HandleData to use new static methods
31001
31002 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
31003
31004         * Combobox.cs:
31005                 - Fixes default size and PreferredHeight
31006                 - Missing events
31007                 - ObjectCollection.Insert implementation
31008                 
31009         * ListControl.cs
31010                 - Fixes signature
31011         * ListBox.cs:
31012                 - Several fixes
31013                 - ObjectCollection.Insert implementation
31014                 - No selection after clean
31015                 - Small fixes
31016
31017 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
31018
31019         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
31020
31021 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
31022
31023         * Combobox.cs:
31024                 - Caches ItemHeight calculation for OwnerDrawVariable
31025                 - Handles dropdown properly
31026                 - Fixes several minor bugs
31027
31028 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
31029
31030         * ListBox.cs:
31031                 - Fixes 71946 and 71950
31032                 - Fixes changing Multicolumn on the fly
31033                 - Fixes keyboard navigation on Multicolumn listboxes
31034
31035 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
31036         
31037         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
31038         crash reporter log.
31039
31040 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
31041
31042         * XplatUIOSX.cs: Allow applications to actually exit.
31043
31044 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
31045
31046         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
31047         their parent at creation time rather than lazily later.  Fixes a major
31048         regression we were experiencing.
31049
31050 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
31051
31052         * ThemeWin32Classic.cs: more date time picker painting fixes
31053         * DateTimePicker.cs: more monthcalendar drop down fixes
31054         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
31055
31056 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
31057
31058         * ScrollBar.cs:
31059                 - When moving the thumb going outside the control should stop the moving
31060                 - Adds the firing of missing events
31061                 - Fixes no button show if Size is not specified
31062                 - End / Home keys for keyboard navigation
31063
31064 2005-01-30  Peter Bartok  <pbartok@novell.com>
31065
31066         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
31067           sanity check to prevent theoretical loop
31068         * XplatUIWin32.cs (SetVisible): Removed debug output
31069         * XplatUIX11.cs (SystrayChange): Added sanity check
31070         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
31071         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
31072           behaviour, valid until the X11 client window rewrite is done
31073         * TextBox.cs (ctor): Setting proper default foreground and background
31074           colors
31075
31076 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
31077
31078         * Theme: Added DrawDateTimePicker to interface
31079         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
31080         * DateTimePicker.cs: Created (still needs keys and painting code)
31081         * DateTimePickerFormat.cs: added
31082         * MonthCalendar.cs: fixed CreateParams for popup window mode
31083           
31084 2005-01-29  Peter Bartok  <pbartok@novell.com>
31085
31086         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
31087           this should also the calculations for ligher/darker
31088         * Theme.cs: Fixed defaults for ScrollBar widths/heights
31089
31090 2005-01-29  Peter Bartok  <pbartok@novell.com>
31091
31092         * ArrangeDirection.cs: Added
31093         * ArrangeStartingPositon.cs: Added
31094         * SystemInformation.cs: Implemented
31095         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
31096           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
31097           used by SystemInformation class
31098         * X11Strucs.cs: Added XSizeHints structure
31099         * MenuAPI.cs:
31100           - Fixed CreateParams to make sure the menu window is always visible
31101           - TrackPopupMenu: Added check to make sure we don't draw the
31102             menu offscreen
31103
31104 2005-01-29  Peter Bartok  <pbartok@novell.com>
31105
31106         * HandleData.cs: Added method for altering invalid area
31107         * TextBoxBase.cs: Implemented TextLength
31108
31109 2005-01-28  Peter Bartok  <pbartok@novell.com>
31110
31111         * XplatUIX11.cs: Improvement over last patch, not sending
31112           the WM_PAINT directly anymore, instead we scroll any pending
31113           exposed areas and let the system pick out the WM_PAINT later
31114
31115 2005-01-28  Peter Bartok  <pbartok@novell.com>
31116
31117         * SWF.csproj: Deleted, no longer used. Instead,
31118           Managed.Windows.Forms/SWF.csproj should be used
31119         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
31120           directly, to avoid a potential race condition with the next
31121           scroll
31122
31123 2005-01-28  Peter Bartok  <pbartok@novell.com>
31124
31125         * XplatUI.cs: Made class internal
31126
31127 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
31128
31129         * CheckedListBox.cs:
31130                 - Draw focus
31131                 - Fixed Drawing
31132                 - Missing methods and events
31133
31134 2005-01-27  Peter Bartok  <pbartok@novell.com>
31135
31136         * Application.cs (Run): Don't use form if we don't have one
31137
31138 2005-01-27  Peter Bartok  <pbartok@novell.com>
31139
31140         * TextBoxBase.cs (get_Lines): Fixed index off by one error
31141
31142 2005-01-27  Peter Bartok  <pbartok@novell.com>
31143
31144         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
31145         * GridItem.cs: Added; Patch by Jonathan S. Chambers
31146         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
31147         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
31148         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
31149         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
31150         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31151         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
31152         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31153         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31154         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31155         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
31156
31157 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
31158
31159         * Combobox.cs:
31160                 - Draw focus on Simple Combobox
31161                 - Fixes drawing issues
31162                 - fixes 71834
31163
31164 2005-01-27  Peter Bartok  <pbartok@novell.com>
31165
31166         * Form.cs:
31167           - Place window in default location, instead of hardcoded 0/0
31168           - Send initial LocationChanged event
31169         * Control.cs:
31170           - UpdateBounds after creation to find out where the WM placed us
31171           - Make sure that if the ParentForm changes location the Form
31172             is notified
31173         * XplatUIX11.cs: XGetGeometry will not return the coords relative
31174             to the root, but to whatever the WM placed around us.
31175             Translate to root coordinates before returning toplevel
31176             coordinates
31177         * XplatUIWin32.cs: Removed debug output
31178         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
31179           flag to GetWindowPos, to allow translation of coordinates on X11
31180
31181 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
31182
31183         * ListBox.cs: connect LostFocus Event
31184
31185 2005-01-27  Peter Bartok  <pbartok@novell.com>
31186
31187         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
31188           XplatUIX11.cs: Extended the Systray API
31189         * Form.cs: Removed debug output
31190         * Application.cs: Fixed focus assignment, always need to call
31191           XplatUI.Activate() since Form.Activate() has rules that may
31192           prevent activation
31193         * NotifyIcon.cs: Should be complete now
31194         * ToolTip.cs: Worked around possible timer bug
31195
31196 2005-01-27  Jackson Harper  <jackson@ximian.com>
31197
31198         * TabControl.cs:
31199         - Only invalidate the effected tabs when the
31200         selected index changes. This reduces drawing and gets rid of some
31201         flicker.
31202         - Only refresh if the tabs need to be shifted, otherwise only
31203         invalidate the slider button.
31204         - On windows the tabs are not filled to right if the slider is
31205         visible.
31206         
31207 2005-01-27  Jackson Harper  <jackson@ximian.com>
31208
31209         * TabControl.cs: Only refresh on mouseup if we are showing the
31210         slider. Also only invalidate the button whose state has changed.
31211
31212 2005-01-26  Peter Bartok  <pbartok@novell.com>
31213
31214         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
31215         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
31216           and SystrayRemove() methods
31217         * XplatUIOSX.cs: Stubbed Systray methods
31218         * XplatUIX11.cs:
31219           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
31220             methods
31221           - Fixed broken XChangeProperty calls (marshalling messed up things)
31222         * X11Structs.cs: Added enums and structs required for Size hinting
31223         * NotifyIcon.cs: Added & implemented
31224
31225 2005-01-26  Jackson Harper  <jackson@ximian.com>
31226
31227         * TabControl.cs: Space vertically layed out tabs properly.
31228
31229 2005-01-26  Peter Bartok  <pbartok@novell.com>
31230
31231         * Form.cs (CreateClientParams): Always set the location to 0,0
31232           since we're a child window.
31233
31234         * Control.cs (SetVisibleCore): Always explicitly setting the location
31235           of a toplevel window, apparently X11 doesn't like to move windows
31236           while they're not mapped.
31237
31238 2005-01-26  Jackson Harper  <jackson@ximian.com>
31239
31240         * TabControl.cs: Implement FillToRight size mode with vertically
31241         rendered tabs.
31242
31243 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
31244
31245         * ControlPaint.cs, ThemeWin32Classic.cs
31246                 - Fixes DrawFocusRectangle
31247
31248 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
31249
31250         * MenuAPI.cs:
31251                 - MenuBar tracking only starts when item is first clicked
31252                 - Fixes menu hidding for multiple subitems
31253                 - Unselect item in MenuBar when item Executed
31254                 - Fixes bug 71495
31255
31256 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
31257
31258         * ListControl.cs:
31259                 - IsInputKey for ListBox
31260         * ListBox.cs:
31261                 - Focus item
31262                 - Shift and Control item selection
31263                 - Implement SelectionMode.MultiExtended
31264                 - Fixes RightToLeft
31265         * ComboBox.cs:
31266                 - IsInputKey implemented
31267                 - Do not generate OnTextChangedEdit on internal txt changes
31268                 
31269 2005-01-23  Peter Bartok  <pbartok@novell.com>
31270
31271         * AccessibleObject.cs: Partially implemented Select()
31272         * MonthCalendar.cs: Added missing attributes and events
31273         * Form.cs: Fixed CreateParams behaviour, now controls derived from
31274           form can properly override CreateParams.
31275         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
31276           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
31277           Control performs Invalidate & Update
31278         * NativeWindow (CreateHandle): Added special handling for Form
31279           and Form.FormParent classes to allow overriding of From.CreateParams
31280         * Control.cs:
31281           - ControlNativeWindow: Renamed 'control' variable to more intuitive
31282             name 'owner'
31283           - ControlNativeWindow: Added Owner property
31284           - Removed usage of Refresh() on property changes, changed into
31285             Invalidate(), we need to wait until the queue is processed for
31286             updates, direct calls might cause problems if not all vars for
31287             Paint are initialized
31288           - Added call to UpdateStyles() when creating the window, to set any
31289             styles that CreateWindow might have ignored.
31290           - Added support for Form CreateParent overrides to UpdateStyles()
31291         * MessageBox.cs: Removed no longer needed FormParent override stuff,
31292           CreateParams are now properly overridable
31293         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
31294           CreateParams are now properly overridable
31295
31296 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
31297
31298         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
31299         OnTextBoxChanged.
31300
31301         Capture LostFocus and OnTextBoxChanged.  The later introduces a
31302         recursive invocation that I have not figured out yet.
31303
31304         Reset the timer when not using (it was accumulating).
31305
31306
31307         (OnTextBoxChanged): Set UserEdit to true here to track whether the
31308         user has made changes that require validation.
31309
31310         Reset changing to avoid loops.
31311
31312 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
31313
31314         * NumericUpDown.cs: Display value at startup.
31315
31316         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
31317         ValidateEditText.
31318
31319         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
31320         filled in.  Added some basic parsing of text.
31321
31322         Still missing the OnXXX method overrides, and figuring out the
31323         events that must be emitted.
31324
31325         * UpDownBase.cs: Handle UserEdit on the Text property.
31326         
31327 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
31328
31329         * ComboBox.cs:
31330           - Fixes IntegralHeight
31331           - ToString method
31332
31333 2005-01-21  Jackson Harper  <jackson@ximian.com>
31334
31335         * TabControl.cs: Set the SelectedIndex property when SelectedTab
31336         is set so that the page visibility is updated and the tabs are
31337         sized correctly.
31338
31339 2005-01-21  Jackson Harper  <jackson@ximian.com>
31340
31341         * TabControl.cs: Use cliping rectangle for blitting. Give the
31342         theme the clipping rect so we can do clipping while
31343         drawing. Remove some debug code.
31344
31345 2005-01-21  Jackson Harper  <jackson@ximian.com>
31346
31347         * TabPage.cs: Add a new method so tab pages can force the tab
31348         control to recalculate the tab page sizes.
31349         * TabControl.cs: UpdateOwner needs to make the tab control recalc
31350         sizes.
31351
31352 2005-01-20  Jackson Harper  <jackson@ximian.com>
31353
31354         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
31355
31356 2005-01-20  Jackson Harper  <jackson@ximian.com>
31357
31358         * TreeView.cs: Set the bounds for nodes properly. They were
31359         getting screwed up when checkboxes were not enabled, but images
31360         were.
31361
31362 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
31363
31364         * ListBox.cs:
31365                 - Owner draw support
31366                 - Fixes
31367                 
31368 2005-01-20  Jackson Harper  <jackson@ximian.com>
31369
31370         * XplatUIStructs.cs: More misc keys
31371         * X11Keyboard.cs: Ignore some control keys.
31372
31373 2005-01-20  Jackson Harper  <jackson@ximian.com>
31374
31375         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
31376         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
31377
31378 2005-01-19  Peter Bartok  <pbartok@novell.com>
31379
31380         * Control.cs: Un-selecting the control when it is loosing focus
31381
31382 2005-01-19  Jackson Harper  <jackson@ximian.com>
31383
31384         * TreeView.cs: Hook up to the text controls leave event so we can
31385         end editing when the users clicks outside the text box.
31386         
31387 2005-01-19  Jackson Harper  <jackson@ximian.com>
31388
31389         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
31390         get set in the conversion array.
31391
31392 2005-01-19  Peter Bartok  <pbartok@novell.com>
31393
31394         * Application.cs (ModalRun): Added a call to CreateControl to ensure
31395           focus is properly set
31396         * Button.cs:
31397           - Added missing attributes
31398           - removed styles, those are already set in the base class
31399         * ButtonBase.cs:
31400           - Added missing attributes
31401           - Added clip window styles
31402         * CheckBox.cs: Added missing attributes
31403         * CommonDialog.cs:
31404           - FormParentWindow.CreateParams: Added required clip styles
31405         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
31406           also filters modifier keys
31407         * MessageBox.cs:
31408           - Added assignment of Accept and Cancel button to enable Enter
31409             and Esc keys in MessageBox dialogs
31410           - FormParentWindow.CreateParams: Added required clip styles
31411         * RadioButton.cs: Added missing attributes
31412         * TextControl.cs: No longer draws selection if control does not
31413           have focus
31414         * TextBoxBase.cs:
31415           - Now draws simple rectangle around test area to make it obvious
31416             there's a control. This is a hack until we properly support borders
31417           - A few simple fixes to support selections better, now erases selected
31418             text when typing, and resets selection when using movement keys
31419
31420 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
31421
31422         * UpDownBase.cs: Added some new properties.
31423
31424         * DomainUpDown.cs: Implement a lot to get my test working.
31425
31426 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
31427
31428         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
31429
31430 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
31431
31432         * OSXStructs (WindowAttributes): Fixed csc complaints
31433
31434 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
31435
31436         * XplayUIOSX.cs:
31437           OSXStructs.cs: Initial refactor to move enums and consts into
31438           OSXStructs and use them in the driver for greater readability.
31439
31440 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
31441
31442         * XplatUIOSX.cs: Initial support for Standard Cursors.
31443         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
31444
31445 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
31446
31447         * ComboBox.cs: ability to change style when the ctrl is already
31448         created, missing methods and events, bug fixes, signature fixes
31449
31450 2005-01-19  Peter Bartok  <pbartok@novell.com>
31451
31452         * Cursors.cs (ctor): Added ctor to fix signature
31453
31454 2005-01-18  Peter Bartok  <pbartok@novell.com>
31455
31456         * Button.cs: Implemented DoubleClick event
31457         * ButtonBase.cs:
31458           - Fixed keyboard handling to behave like MS, where the press of
31459             Spacebar is equivalent to a mousedown, and the key release is
31460             equivalent to mouseup. Now a spacebar push will give the same
31461             visual feedback like a mouse click.
31462           - Added missing attributes
31463           - Added ImeModeChanged event
31464           - Added support for generating DoubleClick event for derived classes
31465         * CheckBox.cs:
31466           - Implemented DoubleClick event
31467           - Added missing attributes
31468         * CommonDialog.cs: Added missing attribute
31469         * ContextMenu.cs: Added missing attributes
31470         * RadioButton.cs:
31471           - AutoChecked buttons do not allow to be unselected when clicked
31472             (otherwise we might end up with no selected buttons in a group)
31473           - Added missing attributes
31474           - Implemented DoubleClickEvent
31475         * ThreadExceptionDialog.cs: Enabled TextBox code
31476
31477 2005-01-18  Peter Bartok  <pbartok@novell.com>
31478
31479         * Form.cs: Removed debug output
31480         * Button.cs: Added support for DoubleClick method
31481
31482 2005-01-18  Peter Bartok  <pbartok@novell.com>
31483
31484         * Form.cs:
31485           - Added method to parent window that allows triggering size
31486             calculations when a menu is added/removed
31487           - set_Menu: Cleaned up mess from early days of Form and Control,
31488             now properly triggers a recalc when a menu is added/removed
31489           - Added case to select form itself as focused form if no child
31490             controls exist
31491           - Added PerformLayout call when showing dialog, to ensure properly
31492             placed controls
31493         * Control.cs:
31494           - Select(): Made internal so Form can access it
31495           - Focus(): Only call Xplat layer if required (avoids loop), and sets
31496             status
31497         * Application.cs (Run): Removed hack and calls PerformLayout instead
31498           to trigger calculation when Form becomes visible
31499
31500 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
31501
31502         * ComboBox.cs: fixes for ownerdraw
31503
31504 2005-01-18  Peter Bartok  <pbartok@novell.com>
31505
31506         * TextControl.cs:
31507           - Sentinel is no longer static, each Document gets it's own, this
31508             avoids locking or alternatively overwrite problems when more
31509             than one text control is used simultaneously.
31510           - Switched to use Hilight and HilightText brushes for text selection
31511
31512         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
31513
31514 2005-01-18  Peter Bartok  <pbartok@novell.com>
31515
31516         * Control.cs:
31517           - Hooked up the following events:
31518                 o ControlAdded
31519                 o ControlRemoved
31520                 o HandleDestroyed
31521                 o ImeModeChanged
31522                 o ParentChanged
31523                 o TabStopChanged
31524                 o Invalidated
31525                 o SystemColorsChanged
31526                 o ParentFontChanged
31527                 o Move
31528           - Removed debug output
31529           - Added a call to the current theme's ResetDefaults when a color change
31530             is detected
31531         * Form.cs: Now setting the proper ImeMode
31532         * Theme.cs: Defined a method to force recreation of cached resources
31533           and rereading of system defaults (ResetDefaults())
31534         * ThemeWin32Classic.cs: Added ResetDefaults() stub
31535
31536 2005-01-17  Peter Bartok  <pbartok@novell.com>
31537
31538         * Control.cs: Added missing attributes
31539
31540 2005-01-17  Jackson Harper  <jackson@ximian.com>
31541
31542         * TreeNode.cs: Implement editing. Add missing properties selected
31543         and visible.
31544         * TreeView.cs: Implement node editing. Also some fixes to use
31545         Invalidate (invalid area) instead of Refresh when selecting.
31546
31547 2005-01-17  Peter Bartok  <pbartok@novell.com>
31548
31549         * Control.cs:
31550           - Implemented InvokeGotFocus() method
31551           - Implemented InvokeLostFocus() method
31552           - Implemented InvokePaint() method
31553           - Implemented InvokePaintBackground() method
31554           - Implemented InvokeClick() method
31555           - Implemented FindForm() method
31556           - Implemented RectangleToClient() method
31557           - Implemented ClientToRectangle() method
31558           - Implemented ResetBackColor() method
31559           - Implemented ResetCursor() method
31560           - Implemented ResetFont() method
31561           - Implemented ResteForeColor() method
31562           - Implemented ResetImeMode() method
31563           - Implemented ResetLeftToRight() method
31564           - Implemented ResetText() method
31565           - Implemented Scale() methods
31566           - Implemented ScaleCore() method
31567           - Implemented Update() method
31568           - Removed unused variables
31569           - Stubbed AccessibilityNotifyClients and
31570             ControlAccessibleObject.NotifyClients() methods (dunno what to do
31571             with those yet)
31572           - Now setting proper default for RightToLeft property
31573           - Fixed bug in SetClientSizeCore that would cause windows to get
31574             really big
31575           - Now sending Click/DoubleClick events
31576           - Now selecting controls when left mouse button is clicked on
31577             selectable control
31578         * AccessibleEvents.cs: Added
31579         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
31580         * XplatUIOSX.cs: Stubbed UpdateWindow() method
31581         * XplatUIWin32.cs: Implemented UpdateWindow() method
31582         * XplatUIX11.cs: Implemented UpdateWindow() method
31583         * Form.cs: Removed stray semicolon causing CS0162 warning
31584         * ThemeWin32Classic.cs: Fixed unused variable warnings
31585         * ScrollableControl.cs: Now calls base method for ScaleCore
31586         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
31587           style to avoid interference with internal click handler (which is
31588           different than standard Control click handling)
31589         * RadioButton.cs:
31590           - Now unchecks all sibling radio buttons when control is
31591             selected (Fixes #68756)
31592           - Removed internal tabstop variable, using the one inherited from
31593             Control
31594
31595 2005-01-17  Jackson Harper  <jackson@ximian.com>
31596
31597         * NavigateEventArgs.cs: Fix base type.
31598         * LinkLabel.cs: Sig fix
31599         
31600 2005-01-17  Jackson Harper  <jackson@ximian.com>
31601
31602         * TreeView.cs: Only invalidate the effected nodes bounds when
31603         selecting nodes.
31604
31605 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
31606
31607         * XplatUIWin32.cs: fixes Win32 marshaling
31608         * XplatUIX11.cs: fixes method signature
31609
31610 2005-01-17  Peter Bartok  <pbartok@novell.com>
31611
31612         * XplatUIX11.cs: Clean up resources when we no longer need them
31613
31614 2005-01-17  Peter Bartok  <pbartok@novell.com>
31615
31616         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
31617           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
31618           and DestroyCursor() methods.
31619         * Cursor.cs: Partially implemented, now supports standard cursors;
31620           still contains some debug code
31621         * Cursors.cs: Implemented class
31622         * Control.cs:
31623           - WndProc(): Added handling of WM_SETCURSOR message, setting the
31624             appropriate cursor
31625           - Implemented Cursor property
31626           - Replaced break; with return; more straightforwar and possibly
31627             faster
31628           - Now properly setting the result for WM_HELP
31629         * X11Structs.cs: Added CursorFontShape enum
31630         * XplatUIStructs.cs:
31631           - Added StdCursor enum (to support DefineStdCursor() method)
31632           - Added HitTest enum (to support sending WM_SETCURSOR message)
31633         * XplatUIX11.cs:
31634           - Now sends the WM_SETCURSOR message
31635           - Implemented new cursor methods
31636         * XplatUIOSX.cs: Stubbed new cursor methods
31637         * XplatUIWin32.cs:
31638           - Implemented new cursor methods
31639           - Added GetSystemMetrics function and associated enumeration
31640
31641 2005-01-15  Peter Bartok  <pbartok@novell.com>
31642
31643         * Control.cs:
31644           - WndProc(): Now handles EnableNotifyMessage
31645           - SelectNextControl(): Fixed bug where if no child or sibling
31646             controls exist we looped endlessly
31647
31648 2005-01-14  Jackson Harper  <jackson@ximian.com>
31649
31650         * TreeView.cs: Recalculate the tab pages when a new one is added
31651         so that the proper bounding rects are created.
31652
31653 2005-01-14  Jackson Harper  <jackson@ximian.com>
31654
31655         * TreeView.cs: Draw a gray box instead of a grip in the lower
31656         right hand corner when there are both horizontal and vertical
31657         scroll bars.
31658
31659 2005-01-14  Jackson Harper  <jackson@ximian.com>
31660
31661         * Control.cs: When erasing backgrounds use FromHwnd instead of
31662         FromHdc when there is a NULL wparam. This occurs on the X driver.
31663         * XplatUIX11.cs: Set the wparam to NULL.
31664
31665 2005-01-13  Jackson Harper  <jackson@ximian.com>
31666
31667         * PictureBox.cs: Implement missing methods (except ToString, need
31668         to test that on windows) and events. When visibility is changed we
31669         need to redraw the image because the buffers are killed. When size
31670         is changed refresh if the sizemode needs it.
31671
31672 2005-01-13  Peter Bartok  <pbartok@novell.com>
31673
31674         * Control.cs (SelectNextControl): Was using wrong method to select
31675           a control
31676
31677 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
31678
31679         * ComboBox.cs: fixes dropstyle
31680
31681 2005-01-13  Peter Bartok  <pbartok@novell.com>
31682
31683         * Form.cs:
31684           - Implemented Select() override
31685           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
31686           - Now sets keyboard focus on startup
31687         * Control.cs (SelectNextControl): Now properly handles directed=true
31688         * TextBoxBase.cs:
31689           - WndProc: Now passes tab key on to base if AcceptTabChar=false
31690           - Added (really bad) focus rectangle (mostly for testing)
31691         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
31692           to enforce redraw on focus changes
31693         * ContainerControl.cs:
31694           - Fixed detection of Shift-Tab key presses
31695           - Fixed traversal with arrow keys
31696         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
31697           gonna keep this or if it's complete yet
31698         
31699 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
31700
31701         * ComboBox.cs: missing properties, fixes
31702
31703 2005-01-13  Peter Bartok  <pbartok@novell.com>
31704
31705         * Panel.cs (ctor): Setting Selectable window style to off
31706         * Splitter.cs (ctor): Setting Selectable window style to off
31707         * GroupBox.cs (ctor): Setting Selectable window style to off
31708         * Label.cs (ctor): Setting Selectable window style to off
31709
31710 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
31711
31712         * UpDownBase.cs (InitTimer): If the timer has been already
31713         created, enable it.
31714
31715         Use a TextBox instead of a Label.
31716
31717 2005-01-12  Jackson Harper  <jackson@ximian.com>
31718
31719         * TreeView.cs: Refresh the tree after sorting the nodes. Always
31720         draw the connecting node lines (when ShowLines is true).
31721         * TreeNode.cs: The nodes index can now be updated. This is used
31722         when a node collection is sorted.
31723         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
31724         insert or an existing unsorted node collection can be sorted.
31725         
31726 2005-01-12  Peter Bartok  <pbartok@novell.com>
31727
31728         * ContainerControl.cs: Implemented ProcessDialogKeys()
31729
31730 2005-01-12  Peter Bartok  <pbartok@novell.com>
31731
31732         * Control.cs:
31733           - Implemented SelectNextControl() method
31734           - Several focus related bug fixes
31735           - Fixed Docking calculations to match MS documentation and
31736             behaviour
31737
31738 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
31739
31740         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
31741         bug fixes
31742
31743 2005-01-12  Peter Bartok  <pbartok@novell.com>
31744
31745         * Control.cs:
31746           - Fixed broken Contains() method
31747           - Implemented GetNextControl() method. Finally. This is the pre-
31748             requisite for focus handling.
31749
31750 2005-01-12  Peter Bartok  <pbartok@novell.com>
31751
31752         * OSXStrucs.cs: Added
31753
31754 2005-01-12  Peter Bartok  <pbartok@novell.com>
31755
31756         * XplatUIWin32.cs:
31757           - Removed PeekMessageFlags
31758           - Implemented SetWindowStyle() method
31759         * XplatUIStructs.cs: Added PeekMessageFlags
31760         * X11Structs: Added missing border_width field to XWindowChanges struct
31761         * XplatUIX11.cs:
31762           - PeekMessage: Now throws exception if flags which are not yet
31763             supported are passed
31764           - Implemented SetWindowStyle() method
31765           - Fixed SetZOrder to handle AfterHwnd properly
31766         * XplatUI.cs: Added SetWindowStyle() method
31767         * XplatUIDriver.cs: Added SetWindowStyle() abstract
31768         * Control.cs:
31769           - Implemented UpdateStyles() method
31770           - Implemented UpdateZOrder() method
31771         * XplatUIOSX.cs: Added SetWindowStyle() stub
31772
31773 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
31774
31775         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
31776         button mouse).
31777
31778
31779 2005-01-11  Jackson Harper  <jackson@ximian.com>
31780
31781         * TreeView.cs: Still need to draw lines to siblings even if out of
31782         the current node is out of the clip.
31783
31784 2005-01-11  Jackson Harper  <jackson@ximian.com>
31785
31786         * TreeView.cs: When setting the hbar/vbar/grip position use
31787         SetBounds so that perform layout is only called once. Also suspend
31788         and resume layout so layout is only done once for all controls.
31789         - Removed some debug fluff
31790         * SizeGrip.cs: Call base implmentation in overriding methods.
31791         - When visibility is changed the drawing buffers are killed so we
31792         need to redraw.
31793
31794 2005-01-11  Jackson Harper  <jackson@ximian.com>
31795
31796         * TreeView.cs: Calculate the open node count while drawing. This
31797         saves us an entire tree traversal for every paint operation. Use
31798         a member var for the open node count so less vars are passed around.
31799
31800 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
31801
31802         * MonthCalendar.cs:
31803         - fixed selection to use mousemove, not mouse polling on timer
31804         * ThemeWin32Classic.cs
31805         - removed redundant unused variable "no_more_content"
31806         
31807 2005-01-11  Peter Bartok  <pbartok@novell.com>
31808
31809         * XplatUIX11.cs (DoEvents): Needs to return when no more events
31810           are pending, so it now calls PeekMessage instead of GetMessage;
31811           implemented a incomplete version of PeekMessage
31812         
31813 2005-01-11  Peter Bartok  <pbartok@novell.com>
31814
31815         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
31816           I18n issues
31817         * TextBoxBase.cs: Added sending of TextChanged event
31818
31819 2005-01-10  Jackson Harper  <jackson@ximian.com>
31820
31821         * TreeView.cs: Try not to draw outside the clipping rectangle on
31822         each node element.
31823
31824 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
31825
31826         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
31827
31828 2005-01-10  Jackson Harper  <jackson@ximian.com>
31829
31830         * TreeView.cs:
31831         - Implement fast scrolling. Now only the newly
31832         exposed nodes are drawn and the old image is moved using the
31833         XplatUI::ScrollWindow method.
31834         - Factor in height of nodes when calculating whether or not the
31835         node is in the clipping rect.
31836
31837 2005-01-10  Jackson Harper  <jackson@ximian.com>
31838
31839         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
31840
31841 2005-01-10  Peter Bartok  <pbartok@novell.com>
31842
31843         * Application.cs: Added temporary hack to resolve all our resize
31844           required issues on startup. This will get fixed properly at
31845           some point in the future
31846
31847 2005-01-10  Jackson Harper  <jackson@ximian.com>
31848
31849         * SizeGrip.cs: New internal class that is used as a sizing
31850         grip control...hence the name.
31851
31852 2005-01-10  Peter Bartok  <pbartok@novell.com>
31853
31854         * Control.cs: Implemented proper TabIndex handling, now assigning
31855           a tabindex when a control is added to a container
31856         * GroupBox.cs (ctor): Now sets the Container style bit, required
31857           for Control.GetNextControl()
31858
31859 2005-01-09  Jackson Harper  <jackson@ximian.com>
31860
31861         * TextBoxBase.cs: Clear window when scrolling (fixes build).
31862
31863 2005-01-09  Peter Bartok <pbartok@novell.com>
31864
31865         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
31866           XplatUIX11.cs: Added ability to control ScrollWindow expose and
31867           an overload for ScrollWindow to allow only scrolling a rectangle
31868
31869 2005-01-09  Peter Bartok <pbartok@novell.com>
31870
31871         * Form.cs:
31872           - Implemented SetDesktopBounds method
31873           - Implemented SetDesktopLocation method
31874
31875 2005-01-08  Jackson Harper  <jackson@ximian.com>
31876
31877         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
31878         the node count has changed, this removes to VScroll::Refresh calls
31879         when drawing.
31880
31881 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
31882
31883         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
31884
31885 2005-01-07  Jackson Harper  <jackson@ximian.com>
31886
31887         * TreeNode.cs: Just update the single node when it is
31888         checked. Don't refresh after toggling, the Expand/Collapse already
31889         handles this.
31890         * TreeView.cs: Respect clipping a little more when drawing. Try
31891         not to redraw things that don't need to be redrawn. Just hide the
31892         scrollbars when they are no longer needed instead of removing
31893         them, so they don't have to be created again and again.
31894         
31895 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
31896
31897         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
31898         coordinates to window space to place the caret properly, FIXED.
31899         Implement GetWindowState & SetWindowState
31900
31901 2005-01-06  Peter Bartok <pbartok@novell.com>
31902
31903         * Form.cs:
31904           - Implemented ClientSize property
31905           - Implemented DesktopBounds property
31906           - Implemented DesktopLocation property
31907           - Implemented IsRestrictedWindow property
31908           - Implemented Size property
31909           - Implemented TopLevel property
31910           - Implemented FormWindowState property
31911         * Control.cs:
31912           - Implemented GetTopLevel() method
31913           - Implemented SetTopLevel() method
31914         * X11Structs.cs (Atom):
31915           - Added AnyPropertyType definition
31916           - Added MapState definiton and updated XWindowAttribute struct
31917         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
31918         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
31919         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
31920         * XplatUIWin32.cs:
31921           - Implemented GetWindowState() and SetWindowState() methods
31922           - Fixed Win32GetWindowLong return type
31923         * XplatUIX11.cs:
31924           - Introduced central function for sending NET_WM messages
31925           - Implemented GetWindowState() and SetWindowState() methods
31926         * TextBoxBase.cs (set_Lines):
31927           - Now uses Foreground color for text added via Text property (Duh!)
31928           - Added code to remember programmatically requested size (fixes
31929             behaviour when Multiline is set after Size)
31930           - Added AutoSize logic
31931
31932 2005-01-06  Jackson Harper  <jackson@ximian.com>
31933
31934         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
31935
31936 2005-01-06  Jackson Harper  <jackson@ximian.com>
31937
31938         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
31939         set to less then 0.
31940
31941 2005-01-06  Jackson Harper  <jackson@ximian.com>
31942
31943         * ScrollableControl.cs: Lazy init the scrollbars.
31944         
31945 2005-01-06  Jackson Harper  <jackson@ximian.com>
31946
31947         * Theme.cs: Speed up getting pens and solid brushes, by using
31948         their ARGB as a hash instead of tostring and not calling Contains.
31949
31950 2005-01-06  Peter Bartok <pbartok@novell.com>
31951
31952         * Form.cs:
31953           - Implemented OnActivated and OnDeactivate event trigger
31954           - Implemented Activate() method
31955           - Fixed ShowDialog() to activate the form that was active before
31956             the dialog was shown
31957         * XplatUIX11.cs:
31958           - Added global active_window var that tracks the currently active
31959             X11 window
31960           - Now always grabs Property changes from the root window to always
31961             catch changes on the active window property
31962           - Added code to PropertyNotify handler to send Active/Inactive
31963             messages when state changes. This puts X11 and Win32 en par on
31964             WM_ACTIVATE notifications (except for double notifications when
31965             the user clicks away from our modal window to another one of our
31966             windows)
31967
31968 2005-01-05  Jackson Harper  <jackson@ximian.com>
31969
31970         * ImageList.cs: Implment ctor
31971
31972 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
31973
31974         * XplatUIOSX.cs: Implement Activate/SetTopmost
31975
31976 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
31977
31978         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
31979
31980 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
31981
31982         * XplatUIOSX.cs: Implement GetActive/SetFocus.
31983
31984 2005-01-05  Peter Bartok <pbartok@novell.com>
31985
31986         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
31987           XplatUIOSX.cs: Added GetActive method to return the currently
31988           active window for the application (or null, if none is active)
31989         * Form.cs:
31990           - Implemented ActiveForm
31991           - Commented out owner assignment for modal dialogs (causes problems
31992             on Win32, since the owner will be disabled)
31993           - Reworked some Active/Focus handling (still incomplete)
31994         * CommonDialog.cs: Commented out owner assignment for modal dialogs
31995           (causes problems on Win32, since the owner will be disabled)
31996         * IWin32Window: Added ComVisible attribute
31997
31998 2005-01-05  Peter Bartok <pbartok@novell.com>
31999
32000         * ToolTip.cs (WndProc): Enable setting focus now that we have the
32001           required XplatUI functions.
32002
32003 2005-01-05  Peter Bartok <pbartok@novell.com>
32004
32005         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
32006           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
32007           to implement focus and activation handling; still incomplete and
32008           with debug output
32009
32010 2005-01-04  Peter Bartok <pbartok@novell.com>
32011
32012         * TextBoxBase.cs: Changed access level for Document property to
32013           match switch to internal for TextControl
32014
32015 2005-01-04  Peter Bartok <pbartok@novell.com>
32016
32017         * AccessibleObject: Added ComVisible attribute
32018
32019 2005-01-04  Jackson Harper  <jackson@ximian.com>
32020
32021         * X11Keyboard.cs: Remove unneeded var.
32022
32023 2005-01-04  Jackson Harper  <jackson@ximian.com>
32024
32025         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
32026         but PAINT.
32027         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
32028         ClientMessage. This makes apps exit cleanly (more often).
32029         
32030 2005-01-04  Jackson Harper  <jackson@ximian.com>
32031
32032         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
32033         handling focus, return correct colors and fonts,
32034         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
32035         handle selection, horizontal scrolling, and mouse interaction.
32036
32037 2005-01-04  Peter Bartok <pbartok@novell.com>
32038
32039         * ICommandExecutor.cs: Added
32040         * IDataGridColumnStyleEditingNotificationService.cs: Added
32041         * IFeatureSupport.cs: Added
32042         * IFileReaderService.cs: Added
32043         * IDataObject.cs: Added ComVisible attribute
32044         * AmbientProperties.cs: Added
32045         * BaseCollection.cs: Added missing attributes
32046         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
32047         * BaseCollection.cs: Added missing attributes
32048         * Binding.cs: Added TypeConverter attribute
32049         * BindingContext.cs: Added DefaultEvent attribute
32050         * BindingsCollection.cs: Added DefaultEvent attribute
32051         * Button.cs: Added DefaultValue attribute
32052         * DragEventArgs.cs: Added ComVisible attribute
32053         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
32054         * KeyEventArgs.cs: Added ComVisible attribute
32055         * KeyPressEventArgs.cs: Added ComVisible attribute
32056         * MouseEventArgs.cs: Added ComVisible attribute
32057         * NavigateEventArgs.cs: Added
32058         * NavigateEventHandler.cs: Added
32059         * FeatureSupport.cs: Added
32060         * OSFeature.cs: Added
32061         * Theme.cs: Added abstract Version property to support OSFeature
32062         * ThemeWin32Classic.cs: Added Version property to
32063           support OSFeature.Themes
32064         * ProgressBar.cs: Removed OnPaintBackground override, not required since
32065           the proper styles to avoid background drawing are set, also doesn't
32066           match MS signature
32067         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
32068         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
32069         * ScrollEventArgs.cs: Added ComVisible attribute
32070         * SplitterEventArgs.cs: Added ComVisible attribute
32071         * AccessibleSelection.cs: Added Flags attribute
32072         * Appearance.cs: Added ComVisible attribute
32073         * Border3DSide.cs: Added ComVisible attribute
32074         * Border3DStyle.cs: Added ComVisible attribute
32075         * BorderStyle.cs: Added ComVisible attribute
32076         * DragAction.cs: Added ComVisible attribute
32077         * ErrorBlinkStyle.cs: Added
32078         * ScrollEventType.cs: Added ComVisible attribute
32079         * AnchorStyles.cs: Added Editor attribute
32080         * DockStyle.cs: Added Editor attribute
32081         * HorizontalAlignment.cs: Added ComVisible attribute
32082         * HelpEventArgs.cs: Added ComVisible attribute
32083         * PaintEventArgs.cs: Added IDisposable
32084
32085 2005-01-04  Peter Bartok <pbartok@novell.com>
32086
32087         * TextControl.cs: Switched Line, LineTag and Document classes to
32088           internal
32089
32090 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
32091
32092         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
32093         Simple mode, fixes, IntegralHeight, etc.
32094
32095 2005-01-04  Peter Bartok <pbartok@novell.com>
32096
32097         * TextBoxBase.cs: Using proper font variable now
32098
32099 2005-01-04  Peter Bartok <pbartok@novell.com>
32100
32101         * Form.cs (ShowDialog): Set parent to owner, if provided
32102         * GroupBox.cs: Removed unused vars
32103         * TextControl.cs:
32104           - Added GetHashCode() for Document and LineTag classes
32105           - Removed unused variables
32106           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
32107             to allow translation between continuous char position and line/pos
32108         * CheckBox.cs: Removed vars that are provided by base class
32109         * RadioButton.cs: Removed vars that are provided by base class, added
32110           new keyword where required
32111         * LinkLabel.cs: Added new keyword where required
32112         * Control.cs (WndProc): Removed unused variable
32113         * TextBoxBase.cs:
32114           - Finished SelectionLength property
32115           - Implemented SelectionStart property
32116           - Implemented Text property
32117           - Removed unused vars
32118         * MessageBox.cs: Added new keyword where required
32119         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
32120           WndProc signature
32121         * MenuAPI.cs: Added new keyword where required
32122         * ButtonBase.cs: Removed vars that are provided by base class, added
32123           new keyword where required
32124         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
32125           argument to double, to allow compiling with csc 2.0 (Atsushi ran
32126           into this)
32127         * Application.cs (Run): Now triggers the ThreadExit event
32128         * CommonDialog.cs: Added new keyword where required; now properly sets
32129           parent (owner) for dialog
32130         * XplatUIX11.cs: Commented out unused vars
32131         * StatusBar.cs: Fixed signature for Text property
32132         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
32133
32134 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
32135
32136         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
32137         TrackBar.cs, MonthCalendar.cs: remove unused vars
32138
32139 2005-01-03  Jackson Harper  <jackson@ximian.com>
32140
32141         * ThemeWin32Classic.cs:
32142         * X11Keyboard.cs: Remove unused vars.
32143
32144 2005-01-03  Peter Bartok  <pbartok@novell.com>
32145
32146         * TextBox.cs:
32147           - set_Text: Tied into TextControl
32148           - set_TextAlignment: Tied into TextControl
32149         * TextControl.cs:
32150           - Added alignment properties and implemented alignment handling
32151             and drawing (still has a bug, not generating proper expose events)
32152           - Added new Line() constructor to allow passing the line alignment
32153           - Fixed selection setting, properly handling end<start now
32154           - Added aligment considerations to RecalculateDocument()
32155         * TextBoxBase.cs:
32156           - Now properly enforces control height for single line controls
32157           - Added support for CharacterCasing
32158           - Added IsInputKey override
32159           - Fixed Keys.Enter logic
32160           - Added SetBoundsCore override
32161           - Fixed mouse selection handling
32162
32163 2005-01-03  Jackson Harper  <jackson@ximian.com>
32164
32165         * TreeView.cs:
32166           - Collapse and uncheck all nodes when CheckBoxes is disabled.
32167           - Checkboxes are always aligned to the bottom of the node,
32168           regardless of item height.
32169           - Use the node bounds to draw the text so we can center it when
32170           the item height is greater then the font height.
32171           - Node::Bounds are only the text part of the node.
32172         * TreeNode.cs: New method to combine collapsing and unchecking all
32173           nodes recursively.
32174
32175 2005-01-02  Jackson Harper  <jackson@ximian.com>
32176
32177         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
32178         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
32179         tree when a check is changed. TODO: Only refresh the checked node.
32180
32181 2004-12-30  Jackson Harper  <jackson@ximian.com>
32182
32183         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
32184         * TreeNode.cs: When collapsing make sure to never collapse the
32185         root node.
32186
32187 2004-12-29  Jackson Harper  <jackson@ximian.com>
32188
32189         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
32190         
32191 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
32192
32193         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
32194
32195 2004-12-28  Peter Bartok  <pbartok@novell.com>
32196
32197         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
32198           not yet assigned
32199
32200 2004-12-28  Peter Bartok  <pbartok@novell.com>
32201
32202         * Control.cs (WndProc): Added WM_HELP handler, now generates
32203           HelpRequested event
32204         * Form.cs: Added HelpButton property and required support code
32205         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
32206
32207 2004-12-28  Peter Bartok  <pbartok@novell.com>
32208
32209         * CommonDialog.cs:
32210           - Made DialogForm.owner variable internal
32211           - Added check to ensure owner form is set before setting
32212             owner properties in CreateParams
32213
32214 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
32215
32216         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
32217           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
32218           GetCursorPos.  Fix major visibility issues.  Rework the windowing
32219           system to support borderless/titleless windows (implements menus).
32220           Fix GetWindowPos.  Implement initial background color support for
32221           views.
32222
32223 2004-12-28  Peter Bartok  <pbartok@novell.com>
32224
32225         * Form.cs (get_CreateParams): Make sure we have an owner before using
32226           the owner variable. Implement proper default if no owner exists
32227
32228 2004-12-28  Peter Bartok  <pbartok@novell.com>
32229
32230         * In preparation for making Managed.Windows.Forms the default build target
32231           for System.Windows.Forms, the following stubbed files were added.
32232           Dialogs are currently being implemented by contributors and are only
32233           short-term place holders.
32234         * ColorDialog.cs: Initial check-in (minmal stub)
32235         * DataGrid.cs: Initial check-in (minimal stub)
32236         * DataGridLineStyle.cs: Initial check-in (minimal stub)
32237         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
32238         * DataGridTableStyle.cs: Initial check-in (minimal stub)
32239         * FontDialog.cs: Initial check-in (minimal stub)
32240         * FileDialog.cs: Initial check-in (minimal stub)
32241         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
32242         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
32243         * OpenFileDialog: Initial check-in (minimal stub)
32244         * IComponentEditorPageSite.cs: Initial check-in
32245         * Splitter.cs: Initial check-in (for Jackson)
32246         * SplitterEventArgs.cs: Initial check-in (for Jackson)
32247         * SplitterEventHandler.cs: Initial check-in (for Jackson)
32248         * TextBox.cs: Initial check-in; still needs some wiring to
32249           TextControl backend
32250         * Form.cs: Implemented ControlBox property
32251         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
32252         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
32253         * TextControl.cs: Added selection functionality; added todo header
32254         * TextBoxBase.cs:
32255           - Implemented Lines property
32256           - Implemented TextHeight property
32257           - Implemented SelectedText property
32258           - Implemented SelectionLength property
32259           - Implemented SelectAll method
32260           - Implemented ToString method
32261           - Removed and cleaned up some debug code
32262           - Implemented (still buggy) mouse text selection
32263
32264 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
32265
32266         * ComboBox.cs: Complete DropDownList implementation, fixes.
32267
32268 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
32269
32270         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
32271         * ComboBoxStyle.cs: ComboBoxStyle enum
32272         * ComboBox.cs: Initial work on ComboBox control
32273
32274 2004-12-21  Peter Bartok  <pbartok@novell.com>
32275
32276         * Control.cs (ctor, CreateParams): Moved setting of is_visible
32277           forward so that anything that creates a window gets the default,
32278           also no longer uses Visible property in CreateParams to avoid
32279           walking up the parent chain and possibly get the wrong visible
32280           status. Fixed IsVisible to no longer walk up to the parent.
32281
32282 2004-12-21  Peter Bartok  <pbartok@novell.com>
32283
32284         * Form.cs (ShowDialog): Unset modality for the proper window
32285  
32286 2004-12-20  Peter Bartok  <pbartok@novell.com>
32287
32288         * CommonDialog.cs: Initial check-in
32289
32290 2004-12-20  Peter Bartok  <pbartok@novell.com>
32291
32292         * Control.cs (Visible): Now uses the parent window instead of the
32293           client area window for the property
32294
32295         * Form.cs
32296           - ShowDialog(): Now uses the proper window for modality
32297           - The default visibility state for the form parent is now false. This
32298             will prevent the user from seeing all the changes to the form and
32299             its controls before the application hits Application.Run()
32300           - Removed some stale commented out code
32301
32302         * NativeWindow.cs:
32303           - Added FindWindow() method to have a method to check for existence
32304             of a window handle
32305           - Added ability to override default exception handling (for example
32306             when debugging with VS.Net; to do this the ExternalExceptionHandler
32307             define must be set
32308           - Removed some useless debug output
32309
32310         * XplatUIX11.cs:
32311           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
32312             not working as expected
32313           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
32314             property to allow switching back to the modal window if focus is
32315             given to another one of our windows (Application Modal)
32316           - Now only sets override_redirect if we create a window
32317             without WS_CAPTION
32318           - Moved EventMask selection before mapping of newly created window
32319             so we can catch the map event as well
32320           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
32321           - Added various Atom related DllImports
32322           - Implemented Exit() method
32323           - .ctor() : No longer shows window if WS_VISIBLE is not defined
32324             in the CreateParams
32325
32326         * MessageBox.cs: Now properly deals with the FormParent window by
32327           providing an override the FormParent CreateParams property to
32328           set as POPUP instead of OVERLAPPED window.
32329
32330 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
32331
32332         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
32333         Minor code cleanup.
32334
32335 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
32336         
32337         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
32338
32339 2004-12-18  Peter Bartok  <pbartok@novell.com>
32340
32341         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
32342           implementing SetModal() method
32343
32344 2004-12-18  Peter Bartok  <pbartok@novell.com>
32345
32346         * X11Structs.cs (XGCValues): Fixed type of function element
32347         * XplatUI.cs: Added ScrollWindow() method
32348         * XplatUIDriver.cs: Added ScrollWindow() abstract
32349         * XplatUIWin32.cs: Implemented ScrollWindow() method
32350         * XplatUIX11.cs: Implemented ScrollWindow() method
32351         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
32352
32353 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
32354
32355         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
32356         Some more keyboard support (INCOMPLETE)
32357
32358 2004-12-17  Peter Bartok  <pbartok@novell.com>
32359
32360         * TextControl.cs:
32361         - Added color attribute to line tags.
32362         - Added color argument to all functions dealing with tags
32363         - Added color argument support to various functions
32364         - Fixed miss-calculation of baseline/shift in certain circumstances
32365
32366         * TextBoxBase.cs: Added new color option to test code
32367
32368 2004-12-17  Jackson Harper  <jackson@ximian.com>
32369
32370         * TreeNode.cs:
32371         * MonthCalendar.cs: Signature fixes
32372
32373 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
32374
32375         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
32376         keyboard event moved it.  Create a new graphics context for each paint resolves this
32377
32378 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
32379
32380         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
32381         Make caret exist and go blink blink.  Initial keyboard support.
32382         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
32383         works.
32384
32385 2004-12-17  Jackson Harper  <jackson@ximian.com>
32386
32387         * XplatUIStructs.cs: Updated set of virtual keycodes.
32388         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
32389
32390 2004-12-17  Jackson Harper  <jackson@ximian.com>
32391
32392         * XplatUIX11.cs: Prune old keyboard code.
32393
32394 2004-12-17  Jackson Harper  <jackson@ximian.com>
32395
32396         * XplatUIX11.cs: When generating mouse wparams get the modifier
32397         keys from the ModifierKeys property.
32398
32399 2004-12-17  Jackson Harper  <jackson@ximian.com>
32400
32401         * X11Keyboard.cs: Send up/down input when generating
32402         messages. Remove some unused vars.
32403
32404 2004-12-17  Jackson Harper  <jackson@ximian.com>
32405
32406         * TabControl.cs:
32407         * TreeView.cs: get rid of warnings.
32408
32409 2004-12-17  Jackson Harper  <jackson@ximian.com>
32410
32411         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
32412
32413 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
32414
32415         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
32416           CheckedListBox.cs: Implementation
32417
32418 2004-12-17  Peter Bartok  <pbartok@novell.com>
32419
32420         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
32421
32422 2004-12-16  Peter Bartok  <pbartok@novell.com>
32423
32424         * TextControl.cs:
32425           - InsertCharAtCaret(): Fixed start pos fixup
32426           - CaretLine_get: No longer derives the line from the tag, the tag
32427             could be stale if lines in the document have been added or deleted
32428           - RebalanceAfterDelete(): Fixed bug in balancing code
32429           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
32430           - Line.Streamline(): Now can also elminate leading empty tags
32431           - DumpTree(): Added a few more tests and prevented exception on
32432             uninitialized data
32433           - Added Debug section for Combining lines
32434           - Delete(): Now copies all remaining properties of a line
32435           
32436         * TextBoxBase.cs:
32437           - Left mousebutton now sets the caret (and middle button still acts
32438             as formatting tester, which must go away soon)
32439           - Added Debug section for Deleting/Combining lines
32440           - Fixed calculations for UpdateView after Combining lines
32441
32442 2004-12-16  Peter Bartok  <pbartok@novell.com>
32443
32444         * TextControl.cs: Now properly aligns text on a baseline, using the
32445           new XplatUI.GetFontMetrics() method. Simplified several calculations
32446         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
32447           defined
32448
32449 2004-12-16  Peter Bartok  <pbartok@novell.com>
32450
32451         * XplatUI.cs: Added GetFontMetrics() method
32452         * XplatUIDriver.cs: Added GetFontMetrics() abstract
32453         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
32454           into libgdiplus, our private GetFontMetrics function
32455         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
32456         * XplatUIWin32.cs: Implemented GetFontMetrics() method
32457
32458 2004-12-16  Jackson Harper  <jackson@ximain.com>
32459
32460         * XplatUIStruct.cs: Add enum for dead keys
32461         * X11Keyboard.cs: Map and unmap dead keys.
32462
32463 2004-12-16  Jackson Harper  <jackson@ximian.com>
32464
32465         * X11Keyboard.cs: Detect and use the num lock mask.
32466
32467 2004-12-16  Peter Bartok  <pbartok@novell.com>
32468
32469         * Control.cs (CreateGraphics): Added check to make sure the
32470           handle of the window exists before calling Graphics.FromHwnd()
32471
32472 2004-12-16  Peter Bartok  <pbartok@novell.com>
32473
32474         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
32475           contains a lot of code that's not supposed to be there for the
32476           real thing, but required for developing/testing the textbox
32477           backend.
32478
32479 2004-12-16  Peter Bartok  <pbartok@novell.com>
32480
32481         * TextControl.cs:
32482         - Fixed Streamline method
32483         - Added FindTag method to Line
32484         - Added DumpTree method for debugging
32485         - Added DecrementLines() method for deleting lines
32486         - Fixed UpdateView to update the cursor to end-of-line on single-line
32487           updates
32488         - Added PositionCaret() method
32489         - Fixed MoveCaret(LineDown) to move into the last line, too
32490         - Added InsertChar overload
32491         - Fixed InsertChar tag offset calculations
32492         - Added DeleteChar() method
32493         - Added Combine() method for folding lines
32494         - Fixed Delete() method, no longer allocates wasted Line object and
32495           now copies all properties when swapping nodes
32496         - Delete() method now updates document line counter
32497
32498 2004-12-15  Jackson Harper  <jackson@ximian.com>
32499
32500         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
32501         * X11Keyboard.cs: Expose the currently selected modifier keys
32502         through a property.
32503
32504 2004-12-15  Peter Bartok  <pbartok@novell.com>
32505
32506         * TextControl.cs: Initial check-in. Still incomplete
32507
32508 2004-12-15  Jackson Harper  <jackson@ximian.com>
32509
32510         * TreeNode.cs:
32511         * TreeView.cs: Fix build on csc (second time today ;-))
32512
32513 2004-12-15  Jackson Harper  <jackson@ximian.com>
32514
32515         * TreeView.cs: Store the treenodes plus/minus box bounds when it
32516         is calculated and use this for click testing.
32517         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
32518
32519 2004-12-15  Jackson Harper  <jackson@ximian.com>
32520
32521         * TreeView.cs: Pass the nodes image index to the image list when
32522         drawing that image.
32523
32524 2004-12-15  Jackson Harper  <jackson@ximian.com>
32525
32526         * X11Keyboard.cs: Set messages hwnd.
32527         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
32528         post_message calls.
32529
32530 2004-12-15  Jackson Harper  <jackson@ximian.com>
32531
32532         * X11Keyboard.cs: Fix to compile with csc.
32533         
32534 2004-12-15  Jackson Harper  <jackson@ximian.com>
32535
32536         * X11Structs.cs: Add key mask values
32537         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
32538         * X11Keyboard.cs: New file - Extrapolates and interpolates key
32539         down/up foo into WM_CHAR foo
32540         * KeyboardLayouts.cs: Common keyboard layouts
32541         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
32542         post messages into the main queue.
32543
32544 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
32545
32546         * Button.cs: implement ProcessMnemonic
32547         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
32548           brushes everytime
32549         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
32550         * ButtonBase.cs: Show HotkeyPrefix (not the &)
32551
32552 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
32553         
32554         * MonthCalendar.cs: Implemented click-hold for next/previous month
32555           and date selection
32556           
32557 2004-12-11  Peter Bartok  <pbartok@novell.com>
32558
32559         * X11Structs.cs:
32560           - Added XKeyboardState (moved from XplatUIX11.cs)
32561           - Added XCreateGC related enums and structures
32562           - Added GXFunction for XSetFunction
32563
32564         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
32565
32566         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
32567           CaretVisible() calls
32568
32569         * ToolTip.cs: Added code to prevent stealing focus from app windows
32570
32571         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
32572           DestroyCaret, SetCaretPos and CaretVisible)
32573
32574         * XplatUIX11.cs:
32575           - Added implementation for caret functions
32576           - Moved hover variables into a struct, to make it a bit easier
32577             on the eyes and to debug
32578           - Removed XKeyboardState (moved to XplatUIX11.cs)
32579           - Moved Keyboard properties into the properties region
32580
32581         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
32582           call to get a graphics context for our control
32583
32584         * XplatUIOSX.cs: Added empty overrides for the new caret functions
32585
32586         * TreeView.cs: Fixed bug. No matter what color was set it would always
32587           return SystemColors.Window
32588
32589         * XplatUIWin32.cs: Implemented caret overrides
32590
32591 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
32592
32593         * ListBox.cs: fire events, implement missing methods and properties,
32594         sorting.
32595
32596 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
32597
32598         * MonthCalendar.cs: invalidation bug fixing
32599         * ThemeWin32Classic.cs: paint fixing
32600
32601 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
32602
32603         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
32604         prepare the CGContextRef there now.
32605
32606 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
32607
32608         * MonthCalendar.cs:
32609           - optimisationL only invalidate areas that have changed
32610         * ThemeWin32Classic.cs:
32611           - only paint parts that intersect with clip_area
32612
32613 2004-12-09  Peter Bartok  <pbartok@novell.com>
32614
32615         * Application.cs: Undid changes from r37004 which cause problems
32616         on X11
32617
32618 2004-12-09  Ravindra  <rkumar@novell.com>
32619
32620         * ToolBar.cs: Added support for displaying ContextMenu
32621         attached to a button on ToolBar.
32622         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
32623         property.
32624
32625 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
32626
32627         * Label.cs: autosize works in text change and removes unnecessary
32628         invalidate
32629
32630 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
32631
32632         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
32633         remove warnings
32634
32635 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
32636
32637         * XplatUIOSX.cs: Added mouse move/click/grab support
32638         Remove some debugging WriteLines not needed anymore.
32639         Add window resizing/positioning.
32640         Fix visibility on reparenting.
32641
32642 2004-12-08  Peter Bartok  <pbartok@novell.com>
32643
32644         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
32645
32646 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
32647
32648         * XplatUIOSX.cs: Initial checkin
32649         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
32650
32651 2004-12-03  Ravindra <rkumar@novell.com>
32652
32653         * ListView.cs: Added some keybindings and fixed scrolling.
32654         ScrollBars listen to ValueChanged event instead of Scroll
32655         Event. This would let us take care of all changes being
32656         done in the scrollbars' values programmatically or manually.
32657         * ListView.cs (CanMultiselect): Added a check for shift key.
32658         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
32659         * ListViewItem.cs (Clone): Fixed. We need to make a copy
32660         of ListViewSubItemCollection as well.
32661
32662 2004-12-06  Peter Bartok <pbartok@novell.com>
32663
32664         * Control.cs (Parent): Added check and exception to prevent
32665         circular parenting
32666
32667 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
32668
32669         * ListBox.cs: implemented clipping, selection single and multiple,
32670         bug fixing
32671
32672 2004-12-03  Ravindra <rkumar@novell.com>
32673
32674         * ListView.cs (ListView_KeyDown):
32675         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
32676         when CTRL key is pressed.
32677         * ListViewItem.cs (Selected): Fixed setting the property.
32678
32679 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
32680
32681         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
32682
32683         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
32684         MinimizeBox, ShowInTaskbar, TopMost properties.
32685
32686         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
32687         will be implemented).
32688
32689 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
32690
32691         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
32692
32693         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
32694         tests.
32695         
32696         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
32697         
32698         * TreeView.cs: BackColor is Colors.Window.
32699
32700 2004-12-01  Jackson Harper  <jackson@ximian.com>
32701
32702         * TreeView.cs: When resizing the tree if the user is making it
32703         smaller we don't get expose events, so we need to handle adding
32704         the horizontal scrollbar in the size changed handler as well as
32705         the expose handler.
32706
32707 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
32708
32709         * DrawItemState.cs: fixes wrong enum values
32710
32711 2004-12-01  Jackson Harper  <jackson@ximian.com>
32712
32713         * TreeView.cs: Resize the hbar as well as the vbar on resize.
32714
32715 2004-12-01  Jackson Harper  <jackson@ximian.com>
32716
32717         * NodeLabelEditEventArgs.cs:
32718         * NodeLabelEditEventHandler.cs:
32719         * OpenTreeNodeEnumerator.cs:
32720         * TreeNode.cs:
32721         * TreeNodeCollection.cs:
32722         * TreeView.cs:
32723         * TreeViewAction.cs:
32724         * TreeViewCancelEventArgs.cs:
32725         * TreeViewCancelEventHandler.cs:
32726         * TreeViewEventArgs.cs:
32727         * TreeViewEventHandler.cs: Initial implementation.
32728
32729 2004-12-01  Ravindra <rkumar@novell.com>
32730
32731         * ListView.cs (CalculateListView): Fixed scrolling related
32732         calculations. Also, removed some debug statements from other
32733         places.
32734         * ListViewItem.cs: Changed access to 'selected' instance variable
32735         from private to internal.
32736         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
32737
32738 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
32739
32740         * ThemeWin32Classic.cs: remove cache of brush and pens for
32741         specific controls and use the global system, fixes scrollbutton
32742         bugs (for small sizes, disabled, etc)
32743         
32744         * ScrollBar.cs: does not show the thumb for very small controls
32745         (as MS) and allow smaller buttons that the regular size
32746
32747 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
32748
32749         * UpDownBase.cs: Add abstract methods for the interface.
32750         Add new virtual methods (need to be hooked up to TextEntry when it
32751         exists).
32752         Add override methods for most features.
32753         Computes the size, forces the height of the text entry.
32754
32755         * NumericUpDown.cs: Put here the current testing code.
32756
32757         * Set eol-style property on all files that do not have mixed line
32758         endings, to minimize the future problems.  There are still a few
32759         files with mixed endings, and someone should choose whether they
32760         want to move it or not.
32761
32762 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
32763
32764         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
32765         System.Colors
32766         
32767 2004-11-30  Ravindra <rkumar@novell.com>
32768
32769         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
32770         drawing and replaced use of SystemColors by theme colors.
32771         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
32772         * ListView.cs (ListViewItemCollection.Add): Throw exception when
32773         same ListViewItem is being added more than once.
32774
32775 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
32776
32777         * MonthCalendar.cs:
32778           - ControlStyles love to make the control not flicker
32779           
32780 2004-11-30  Peter Bartok  <pbartok@novell.com>
32781
32782         * CharacterCasing.cs: Added
32783
32784 2004-11-29  Peter Bartok  <pbartok@novell.com>
32785
32786         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
32787           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
32788           I am removing these files as they conflict with already completed
32789           work. While it is fantastic to get contributions to MWF, I
32790           respectfully ask that everyone please coordinate their contributions
32791           through mono-winforms-list or #mono-winforms at this time. We're
32792           explicitly avoiding stubbing and don't want controls that don't have
32793           their basic functionality implemented in svn. Please also see
32794           http://www.mono-project.com/contributing/winforms.html
32795
32796
32797 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
32798
32799         * Application.cs (ModalRun): Don't hang after exit.
32800
32801         * Theme.cs: New TreeViewDefaultSize property.
32802
32803         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
32804         with less hardcoded SystemColors constant.
32805         Implemented TreeViewDefaultSize.
32806
32807         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
32808         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
32809
32810
32811 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
32812
32813         * MonthCalendar.cs:
32814           - Fix NextMonthDate and PrevMonthDate click moving calendar
32815
32816 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
32817
32818         * MonthCalendar.cs:
32819           - Fix usage of ScrollChange Property when scrolling months
32820
32821 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
32822
32823         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
32824          - Fixes menu destroying
32825          - Support adding and removing items on already created menus
32826
32827 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
32828
32829         * MonthCalendar.cs:
32830           - Re-worked all bolded dates handling to match win32
32831         * ThemeWin32Classic.cs:
32832           - Fixed rendering with bolded dates
32833
32834 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
32835
32836         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
32837         - Horizontal scroolbar
32838         - Multicolumn
32839         - Fixes
32840
32841
32842 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
32843
32844         * MonthCalendar.cs:
32845           - Fix Usage of MaxSelectionCount from SelectionRange
32846           - Fixed Shift + Cursor Selection
32847           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
32848           - Fixed normal cursor selection to be compat with win32
32849           - Fixed Shift + Mouse Click selection
32850
32851 2004-11-24  Peter Bartok <pbartok@novell.com>
32852
32853         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
32854         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
32855         * XplatUIX11.cs:
32856           - CreatedKeyBoardMsg now updates keystate with Alt key
32857           - Added workaround for timer crash to CheckTimers, Jackson will
32858             develop a proper fix and check in later
32859           - Implemented DispatchMessage
32860           - Removed calling the native window proc from GetMessage (call
32861             now moved to DispatchMessage)
32862
32863         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
32864           the keydata (Fixes bug #69831)
32865
32866         * XplatUIWin32.cs:
32867           - (DispatchMessage): Switched to return IntPtr
32868           - Added DllImport for SetFocus
32869
32870 2004-11-24  Ravindra <rkumar@novell.com>
32871
32872         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
32873         background drawing.
32874         * ListViewItem.cs: Fixed various properties, calculations
32875         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
32876         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
32877         and some internal properties. Fixed MouseDown handler and Paint
32878         method.
32879
32880 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
32881
32882         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
32883
32884 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
32885
32886         * ContainerControl.cs: correct accidental check in of local changes
32887
32888 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
32889
32890         * ThemeWin32Classic.cs:
32891                 - Fixed Drawing Last month in grid (sometimes not showing)
32892         * MonthCalendar.cs:
32893                 - Fixed title width calculation bug (makeing title small)
32894
32895 2004-11-23  Peter Bartok <pbartok@novell.com>
32896
32897         * XplatUIX11.cs:
32898           - Added generation of WM_MOUSEHOVER event
32899           - Added missing assignment of async_method atom
32900           - Fixed WM_ERASEBKGND; now only redraws the exposed area
32901
32902 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
32903
32904         * ThemeWin32Classic.cs:
32905                 - Fixed Drawing of today circle when showtodaycircle not set
32906                 - fixed drawing of first and last month in the grid (gay dates)
32907         * MonthCalendar.cs:
32908                 - Fixed Drawing of today circle
32909                 - Fixed drawing of grady dates
32910                 - Fixed HitTest for today link when ShowToday set to false
32911                 - Fixed DefaultSize to obey ShowToday
32912
32913 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
32914
32915         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
32916         * System.Windows.Forms/Theme.cs
32917         * MonthCalendar.cs: added for MonthCalendar
32918         * SelectionRange.cs: added for MonthCalendar
32919         * Day.cs: added for MonthCalendar: added for MonthCalendar
32920         * DateRangeEventArgs.cs: added for MonthCalendar
32921         * DateRangeEventHandler.cs: added for MonthCalendar
32922
32923 2004-11-22  Ravindra <rkumar@novell.com>
32924
32925         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
32926         property.
32927
32928 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
32929
32930         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
32931         event handler.
32932         
32933         * NumericUpDown.cs: Added new implementation.
32934         * UpDownBase.cs: Added new implementation.
32935
32936         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
32937         implementations.
32938         
32939         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
32940         implementations.
32941
32942         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
32943         methods.
32944
32945 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
32946
32947         * Timer.cs  (Dispose): Should call the base dispose when
32948         overriding.
32949
32950 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
32951
32952         * ScrollBar.cs: updates thumb position when max, min or increment
32953         is changed
32954
32955 2004-11-21  Ravindra <rkumar@novell.com>
32956
32957         * ListView.cs: Implemented item selection, activation and
32958         column header style. Fixed properties to do a redraw, if
32959         required. Added support for MouseHover, DoubleClick, KeyDown
32960         and KeyUp event handling and some minor fixes.
32961         * ListViewItem.cs: Fixed constructor.
32962         * ThemeWin32Classic.cs: Improved drawing for ListView.
32963
32964 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
32965
32966         * ThemeWin32Classic.cs: initial listbox drawing code
32967         * DrawMode.cs: new enumerator
32968         * ListControl.cs: stubbed class
32969         * ListBox.cs: initial implementation
32970         * Theme.cs: new methods definitions
32971         * SelectionMode.cs: new enumerator
32972
32973 2004-11-17  Peter Bartok  <pbartok@novell.com>
32974
32975         * XplatUIWin32.cs: Added double-click events to the class style
32976         * Control.cs (WndProc):
32977           - Added handling of click-count to MouseDown/ MouseUp events.
32978           - Added handling of middle and right mouse buttons
32979           - Removed old debug code
32980
32981 2004-11-17  Jackson Harper  <jackson@ximian.com>
32982
32983         * XplatUIX11.cs: Use the new Mono.Unix namespace.
32984
32985 2004-11-17  Ravindra <rkumar@novell.com>
32986
32987         * ListView.cs: Added event handling for MouseMove/Up/Down.
32988         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
32989         * ThemeWin32Classic.cs: We need to clear the graphics context and
32990         draw column header in a proper state.
32991
32992
32993 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
32994
32995         *  Menu.cs: fixes signature
32996
32997 2004-11-16  Peter Bartok  <pbartok@novell.com>
32998
32999         * XplatUIX11.cs (GetMessage): Implemented generation of
33000           double click mouse messages
33001
33002 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
33003
33004         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
33005         not by menu
33006
33007 2004-11-11  Peter Bartok  <pbartok@novell.com>
33008
33009         * HandleData.cs: Added Visible property
33010         * XplatUIX11.cs (IsVisible): Now uses Visible property from
33011           HandleData
33012         * XplatUIX11.cs: Removed old debug leftovers
33013         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
33014         * Control.cs (WndProc): Removed old debug leftovers,
33015           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
33016           needed WM_SIZE handling
33017
33018 2004-11-11  Jackson Harper  <jackson@ximian.com>
33019
33020         * OwnerDrawPropertyBag.cs:
33021         * TreeViewImageIndexConverter.cs: Initial implementation
33022
33023 2004-11-10  Jackson Harper  <jackson@ximian.com>
33024
33025         * ThemeWin32Classic.cs:
33026         * TabControl.cs: instead of moving tabs by the slider pos just
33027         start drawing at the tab that is offset by the slider. This way
33028         scrolling always moves by exactly one tab.
33029
33030 2004-11-10  Jackson Harper  <jackson@ximian.com>
33031
33032         * TabControl.cs: You can only scroll left when the slider has
33033         already ben moved right.
33034         
33035 2004-11-10  Jackson Harper  <jackson@ximian.com>
33036
33037         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
33038         the clip area.
33039         
33040 2004-11-10  Jackson Harper  <jackson@ximian.com>
33041
33042         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
33043         clip area.
33044         
33045 2004-11-09  Jackson Harper  <jackson@ximian.com>
33046
33047         * TabControl.cs (CalcXPos): New helper method so we can determine
33048         the proper place to start drawing vertical tabs.
33049         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
33050         
33051 2004-11-09  Jackson Harper  <jackson@ximian.com>
33052
33053         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
33054         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
33055         and Bottom, left and right are illegal values for this and
33056         multiline is enabled when the alignment is set to left or right.
33057         (DrawTab): Each alignment block should draw the text itself now
33058         because Left requires special love. Also add rendering for Left
33059         aligned tabs.
33060         
33061 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
33062
33063         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
33064         does not destroy the windows, removes debugging messages
33065
33066 2004-11-09  jba  <jba-mono@optusnet.com.au>
33067
33068         * ThemeWin32Classic.cs
33069         (DrawButtonBase): Fix verticle text rect clipping in windows
33070         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
33071         rendering and incorrect text rect clipping
33072         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
33073         rendering and incorrect text rect clipping
33074         
33075 2004-11-08  Jackson Harper  <jackson@ximian.com>
33076
33077         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
33078         bottom when they are bottom aligned so the bottoms of the tabs get
33079         displayed.
33080         * TabControl.cs (DropRow): Move rows up instead of down when the
33081         tab control is bottom aligned.
33082
33083 2004-11-08 13:59  pbartok
33084
33085         * XplatUIX11.cs:
33086           - Added handling for various window styles
33087           - Added handling for popup windows
33088           - Added SetTopmost handling
33089
33090 2004-11-08 13:55  pbartok
33091
33092         * XplatUIWin32.cs:
33093           - Added argument to SetTopmost method
33094           - Fixed broken ClientToScreen function
33095
33096 2004-11-08 13:53  pbartok
33097
33098         * XplatUIStructs.cs:
33099           - Added missing WS_EX styles
33100
33101 2004-11-08 13:53  pbartok
33102
33103         * XplatUI.cs, XplatUIDriver.cs:
33104           - Added argument to SetTopmost
33105
33106 2004-11-08 13:52  pbartok
33107
33108         * X11Structs.cs:
33109           - Added XSetWindowAttributes structure
33110           - Improved XWindowAttributes structure
33111           - Added SetWindowValuemask enum
33112           - Added window creation arguments enum
33113           - Added gravity enum
33114           - Added Motif hints structure
33115           - Added various Motif flags and enums
33116           - Added PropertyMode enum for property functions
33117
33118 2004-11-08 13:50  pbartok
33119
33120         * Form.cs:
33121           - Fixed arguments for updated SetTopmost method
33122
33123 2004-11-08 13:49  pbartok
33124
33125         * ToolTip.cs:
33126           - Fixed arguments for updated SetTopmost function
33127           - Fixed usage of PointToClient
33128
33129 2004-11-08 13:44  pbartok
33130
33131         * MenuAPI.cs:
33132           - Added Clipping of children and siblings
33133
33134 2004-11-08 13:41  pbartok
33135
33136         * MainMenu.cs:
33137           - Removed SetMenuBarWindow call. We do this in Form.cs
33138
33139 2004-11-08 13:40  jackson
33140
33141         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
33142           scrolling jimmi in the correct location with bottom aligned tabs
33143
33144 2004-11-08 13:36  pbartok
33145
33146         * ContainerControl.cs:
33147           - Implemented BindingContext
33148           - Implemented ParentForm
33149
33150 2004-11-08 12:46  jackson
33151
33152         * TabControl.cs: Put bottom rendered tabs in the right location
33153
33154 2004-11-08 07:15  jordi
33155
33156         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
33157           removes dead code
33158
33159 2004-11-05 17:30  jackson
33160
33161         * TabControl.cs: When selected tabs are expanded make sure they
33162           don't go beyond the edges of the tab control
33163
33164 2004-11-05 14:57  jackson
33165
33166         * TabControl.cs: Reset show_slider so if the control is resized to
33167           a size where it is no longer needed it's not displayed anymore
33168
33169 2004-11-05 13:16  jackson
33170
33171         * TabControl.cs: Make tab pages non visible when added to the
33172           control
33173
33174 2004-11-05 12:42  jackson
33175
33176         * TabControl.cs: Implement SizeMode.FillToRight
33177
33178 2004-11-05 12:16  jackson
33179
33180         * Control.cs: Do not call CreateHandle if the handle is already
33181           created
33182
33183 2004-11-05 11:46  jackson
33184
33185         * TabControl.cs: Remove superflous call to CalcTabRows
33186
33187 2004-11-05 09:07  jackson
33188
33189         * XplatUIX11.cs: Update for Mono.Posix changes
33190
33191 2004-11-05 07:00  ravindra
33192
33193         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
33194           scrolling.
33195
33196 2004-11-04 22:47  jba
33197
33198         * ThemeWin32Classic.cs:
33199           - Fix Button rendering for FlatStyle = Flat or Popup
33200           - Fix RadioButton and CheckBox rendering when Appearance = Button
33201             (normal and flatstyle).
33202           - Correct outer rectangle color when drawing focus rectangle
33203           - Adjust button bounds to be 1 px smaller when focused
33204           - Make button not draw sunken 3d border when pushed (windows compat)
33205           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
33206           - Offset the text in RadioButton and Checkbox when being rendered as
33207           a button.
33208           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
33209           radiobuttons
33210           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
33211           - Fixed disabled text rendering for normally rendered radiobuttons
33212
33213 2004-11-04 10:26  jackson
33214
33215         * TabControl.cs: Recalculate tab rows when resizing
33216
33217 2004-11-04 07:47  jordi
33218
33219         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
33220           collection completion, drawing issues, missing features
33221
33222 2004-11-04 05:03  ravindra
33223
33224         * ScrollBar.cs:
33225                 - We need to recalculate the Thumb area when
33226                 LargeChange/maximum/minimum values are changed.
33227           - We set the 'pos' in UpdatePos() method to minimum, if it's less
33228                 than minimum. This is required to handle the case if large_change is
33229                 more than max, and use LargeChange property instead of large_change
33230                 variable.
33231           - We return max+1 when large_change is more than max, like MS does.
33232
33233 2004-11-04 04:29  ravindra
33234
33235         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
33236                 - Changed default value signatures (prefixed all with ListView).
33237                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
33238                 ListView.
33239           - Fixed calculations for ListViewItem and implemented Clone()
33240           method.
33241
33242 2004-11-04 04:26  ravindra
33243
33244         * Theme.cs, ThemeWin32Classic.cs:
33245                 - Changed default ListView values signatures (prefixed all with
33246                 ListView).
33247           - Fixed default size values for VScrollBar and HScrollBar.
33248                 - Fixed DrawListViewItem method.
33249
33250 2004-11-04 04:05  ravindra
33251
33252         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
33253
33254 2004-11-04 04:04  ravindra
33255
33256         * ImageList.cs: Implemented the missing overload for Draw method.
33257
33258 2004-11-03 19:29  jackson
33259
33260         * TabControl.cs: Handle dropping rows on selection properly
33261
33262 2004-11-03 11:59  jackson
33263
33264         * TabControl.cs: remove debug code
33265
33266 2004-11-03 11:52  jackson
33267
33268         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
33269           the scrolly widgerywoo
33270
33271 2004-11-02 13:52  jackson
33272
33273         * TabControl.cs: Resize the tab pages and tabs when the tab control
33274           is resized
33275
33276 2004-11-02 13:40  jackson
33277
33278         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
33279           selected tab to the bottom
33280
33281 2004-11-02 13:39  jackson
33282
33283         * TabPage.cs: Store the tab pages row
33284
33285 2004-11-02 12:33  jordi
33286
33287         * MenuItem.cs: fixes handle creation
33288
33289 2004-11-02 11:42  jackson
33290
33291         * TabControl.cs: signature fix
33292
33293 2004-11-02 08:56  jackson
33294
33295         * TabControl.cs: Calculate whether the tab is on an edge properly.
33296           Remove top secret debugging code
33297
33298 2004-11-01 19:57  jackson
33299
33300         * TabControl.cs: Add click handling, and proper sizing
33301
33302 2004-11-01 19:47  jackson
33303
33304         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
33305           tab controls
33306
33307 2004-11-01 19:39  jackson
33308
33309         * TabPage.cs: add internal property to store the bounds of a tab
33310           page
33311
33312 2004-10-30 04:23  ravindra
33313
33314         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
33315           values.
33316
33317 2004-10-30 04:21  ravindra
33318
33319         * ListView.cs, ListViewItem.cs: Added support for scrolling and
33320           fixed calculations.
33321
33322 2004-10-30 03:06  pbartok
33323
33324         * XplatUIX11.cs:
33325           - Removed extension of DllImported libs
33326
33327 2004-10-29 09:55  jordi
33328
33329         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
33330           navigation, itemcollection completion, menu fixes
33331
33332 2004-10-27 22:58  pbartok
33333
33334         * XplatUIX11.cs:
33335           - Now throws a nice error message when no X display could be opened
33336
33337 2004-10-26 13:51  jordi
33338
33339         * ListView.cs: removes warning
33340
33341 2004-10-26 03:55  ravindra
33342
33343         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
33344           ThemeWin32Classic.cs: Some formatting for my last checkins.
33345
33346 2004-10-26 03:36  ravindra
33347
33348         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
33349           control and default values.
33350
33351 2004-10-26 03:35  ravindra
33352
33353         * Theme.cs: Added some default values for ListView control.
33354
33355 2004-10-26 03:33  ravindra
33356
33357         * ToolBar.cs: ToolBar should use the user specified button size, if
33358           there is any. Added a size_specified flag for the same.
33359
33360 2004-10-26 03:33  ravindra
33361
33362         * ColumnHeader.cs: Added some internal members and calculations for
33363           ColumnHeader.
33364
33365 2004-10-26 03:32  ravindra
33366
33367         * ListViewItem.cs: Calculations for ListViewItem.
33368
33369 2004-10-26 03:31  ravindra
33370
33371         * ListView.cs: Added some internal members and calculations for
33372           ListView.
33373
33374 2004-10-22 13:31  jordi
33375
33376         * MenuAPI.cs: speedup menus drawing
33377
33378 2004-10-22 13:16  jackson
33379
33380         * XplatUIX11.cs: Make sure to update exposed regions when adding an
33381           expose event
33382
33383 2004-10-22 11:49  jackson
33384
33385         * Control.cs: oops
33386
33387 2004-10-22 11:41  jackson
33388
33389         * Control.cs: Check to see if the window should have its background
33390           repainted by X when drawing.
33391
33392 2004-10-22 11:31  jackson
33393
33394         * XplatUIX11.cs: When invalidating areas only use XClearArea if
33395           clear is true, this way we do not get flicker from X repainting the
33396           background
33397
33398 2004-10-22 11:28  jackson
33399
33400         * XEventQueue.cs: Queue properly
33401
33402 2004-10-21 09:38  jackson
33403
33404         * XEventQueue.cs: Fix access modifier
33405
33406 2004-10-21 09:36  jackson
33407
33408         * XEventQueue.cs: Don't loose messages
33409
33410 2004-10-21 09:22  jackson
33411
33412         * XEventQueue.cs: Don't loose messages
33413
33414 2004-10-20 04:15  jordi
33415
33416         * BootMode.cs: enum need it by SystemInfo
33417
33418 2004-10-19 21:58  pbartok
33419
33420         * XplatUIWin32.cs:
33421           - Small sanity check
33422
33423 2004-10-19 21:56  pbartok
33424
33425         * Form.cs:
33426           - Added private FormParentWindow class which acts as the container
33427             for our form and as the non-client area where menus are drawn
33428           - Added/Moved required tie-ins to Jordi's menus
33429           - Fixed/Implemented the FormStartPosition functionality
33430
33431 2004-10-19 21:52  pbartok
33432
33433         * Control.cs:
33434           - Removed unneeded locals
33435           - Added code to all size and location properties to understand and
33436             deal with the parent container of Form
33437
33438 2004-10-19 21:33  pbartok
33439
33440         * Application.cs:
33441           - Fixed to deal with new Form subclasses for menus
33442
33443 2004-10-19 17:48  jackson
33444
33445         * XEventQueue.cs: commit correct version of file
33446
33447 2004-10-19 16:50  jackson
33448
33449         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
33450
33451 2004-10-19 16:15  jordi
33452
33453         * MenuAPI.cs: MenuBarCalcSize returns the height
33454
33455 2004-10-19 08:31  pbartok
33456
33457         * Control.cs:
33458           - Added missing call to PreProcessMessage before calling OnXXXKey
33459           methods
33460
33461 2004-10-19 00:04  ravindra
33462
33463         * ToolTip.cs: Fixed constructor.
33464
33465 2004-10-18 09:31  jordi
33466
33467         * MenuAPI.cs: menuitems in menubars do not have shortcuts
33468
33469 2004-10-18 09:26  jordi
33470
33471         * MenuItem.cs: fixes MenuItem class signature
33472
33473 2004-10-18 08:56  jordi
33474
33475         * MenuAPI.cs: prevents windows from showing in the taskbar
33476
33477 2004-10-18 00:28  ravindra
33478
33479         * ToolTip.cs: Suppressed a warning message.
33480
33481 2004-10-18 00:27  ravindra
33482
33483         * Control.cs: Default value of visible property must be true.
33484
33485 2004-10-17 23:19  pbartok
33486
33487         * ToolTip.cs:
33488           - Complete implementation
33489
33490 2004-10-17 23:19  pbartok
33491
33492         * XplatUIX11.cs:
33493           - Added EnableWindow method
33494           - Added SetModal stub
33495           - Added generation of WM_ACTIVATE message (still needs testing)
33496           - Added SetTopMost stub
33497           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
33498
33499 2004-10-17 23:17  pbartok
33500
33501         * XplatUIWin32.cs:
33502           - Removed VirtualKeys to XplatUIStructs
33503           - Implemented SetTopMost method
33504           - Implemented EnableWindow method
33505           - Bugfix in ScreenToClient()
33506           - Bugfixes in ClientToScreen()
33507
33508 2004-10-17 22:51  pbartok
33509
33510         * XplatUIStructs.cs:
33511           - Added WS_EX styles to WindowStyles enumeration
33512
33513 2004-10-17 22:50  pbartok
33514
33515         * XplatUI.cs, XplatUIDriver.cs:
33516           - Added method for enabling/disabling windows
33517           - Added method for setting window modality
33518           - Added method for setting topmost window
33519
33520 2004-10-17 22:49  pbartok
33521
33522         * ThemeWin32Classic.cs:
33523           - Added ToolTip drawing code
33524
33525 2004-10-17 22:49  pbartok
33526
33527         * Theme.cs:
33528           - Added ToolTip abstracts
33529
33530 2004-10-17 22:47  pbartok
33531
33532         * Form.cs:
33533           - Fixed Form.ControlCollection to handle owner relations
33534           - Added Owner/OwnedForms handling
33535           - Implemented Z-Ordering for owned forms
33536           - Removed unneeded private overload of ShowDialog
33537           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
33538             so I hope)
33539           - Fixed Close(), had wrong default
33540           - Added firing of OnLoad event
33541           - Added some commented out debug code for Ownership handling
33542
33543 2004-10-17 22:16  pbartok
33544
33545         * Control.cs:
33546           - Fixed/implemented flat list of controls
33547
33548 2004-10-17 22:14  pbartok
33549
33550         * Application.cs:
33551           - Added code to simulate modal dialogs on Win32
33552
33553 2004-10-17 16:11  jordi
33554
33555         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
33556           mouse event
33557
33558 2004-10-17 13:39  jordi
33559
33560         * MenuAPI.cs: menu drawing fixes
33561
33562 2004-10-15 09:10  ravindra
33563
33564         * StructFormat.cs: General Enum.
33565
33566 2004-10-15 09:09  ravindra
33567
33568         * SizeGripStyle.cs: Enum for Form.
33569
33570 2004-10-15 09:08  ravindra
33571
33572         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
33573           in Theme for ListView.
33574
33575 2004-10-15 09:06  ravindra
33576
33577         * ColumnHeader.cs: Flushing some formatting changes.
33578
33579 2004-10-15 09:05  ravindra
33580
33581         * ListViewItem.cs: Implemented GetBounds method and fixed coding
33582           style.
33583
33584 2004-10-15 09:03  ravindra
33585
33586         * ListView.cs: Implemented Paint method and fixed coding style.
33587
33588 2004-10-15 07:34  jordi
33589
33590         * MenuAPI.cs: fix for X11
33591
33592 2004-10-15 07:32  ravindra
33593
33594         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
33595                 - Renamed Paint() method to Draw() for clarity. Also, moved
33596                 DrawImage() to OnPaint().
33597
33598 2004-10-15 07:25  ravindra
33599
33600         * CheckBox.cs, RadioButton.cs:
33601                 - Removed Redraw (), we get it from ButtonBase.
33602                 - Implemented Paint (), to do class specific painting.
33603
33604 2004-10-15 07:16  ravindra
33605
33606         * ButtonBase.cs:
33607                 - Redraw () is not virtual now.
33608                 - Added an internal virtual method Paint (), so that
33609                 derived classes can do their painting on their own.
33610                 - Modified OnPaint () to call Paint ().
33611
33612 2004-10-15 06:43  jordi
33613
33614         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
33615           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
33616
33617 2004-10-15 00:30  ravindra
33618
33619         * MessageBox.cs:
33620                 - MessageBox on windows does not have min/max buttons.
33621                 This change in CreateParams fixes this on Windows. We
33622                 still need to implement this windowstyle behavior in
33623                 our X11 driver.
33624
33625 2004-10-14 05:14  ravindra
33626
33627         * ToolBar.cs:
33628                 - Changed Redraw () to do a Refresh () always.
33629                 - Fixed the MouseMove event handling when mouse is pressed,
33630                 ie drag event handling.
33631                 - Replaced the usage of ToolBarButton.Pressed property to
33632                 ToolBarButton.pressed internal variable.
33633
33634 2004-10-14 05:10  ravindra
33635
33636         * ToolBarButton.cs:
33637                 - Added an internal member 'inside' to handle mouse move
33638                 with mouse pressed ie mouse drag event.
33639                 - Changed 'Pressed' property to return true only when
33640                 'inside' and 'pressed' are both true.
33641                 - Some coding style love.
33642
33643 2004-10-14 00:17  ravindra
33644
33645         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
33646           public method.
33647
33648 2004-10-14 00:15  ravindra
33649
33650         * ButtonBase.cs: Redraw () related improvements.
33651
33652 2004-10-14 00:14  ravindra
33653
33654         * MessageBox.cs: Moved InitFormSize () out of Paint method and
33655           removed unnecessary calls to Button.Show () method.
33656
33657 2004-10-13 17:50  pbartok
33658
33659         * XplatUIX11.cs:
33660           - Formatting fix
33661           - Removed destroying of window until we solve the problem of X
33662             destroying the window before us on shutdown
33663
33664 2004-10-13 16:32  pbartok
33665
33666         * ButtonBase.cs:
33667           - Now Redraws on MouseUp for FlatStyle Flat and Popup
33668
33669 2004-10-13 14:18  pbartok
33670
33671         * XplatUIX11.cs:
33672           - Added code to destroy the X window
33673
33674 2004-10-13 14:18  pbartok
33675
33676         * XplatUIWin32.cs:
33677           - Added code to destroy a window
33678
33679 2004-10-13 14:12  pbartok
33680
33681         * ButtonBase.cs:
33682           - Added the Redraw on Resize that got dropped in the last rev
33683
33684 2004-10-13 09:06  pbartok
33685
33686         * ThemeWin32Classic.cs:
33687           - Path from John BouAntoun:
33688             * Fix check rendering (centre correctly for normal style, offset
33689               correctly for FlatStyle).
33690             * Fix border color usage (use backcolor) for FlatStyle.Popup
33691             * Use checkbox.Capture instead of checkbox.is_pressed when
33692               rendering flatstyle states.
33693
33694 2004-10-12 21:48  pbartok
33695
33696         * ThemeWin32Classic.cs:
33697           - Removed all occurences of SystemColors and replaced them with the
33698             matching theme color
33699
33700 2004-10-12 21:41  pbartok
33701
33702         * ThemeWin32Classic.cs:
33703           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
33704             him using the function for flatstyle drawing
33705           - Changed functions to use the new version of CPDrawBorder3D
33706
33707 2004-10-12 21:15  pbartok
33708
33709         * ControlPaint.cs:
33710           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
33711             match MS documentation. They need to return defined colors if the
33712             passed color matches the configured control color. Thanks to John
33713             BouAntoun for pointing this out.
33714
33715 2004-10-12 20:57  pbartok
33716
33717         * Control.cs:
33718           - Fix from John BouAntoun: Raise ForeColorChanged event when text
33719             color is changed
33720
33721 2004-10-12 20:46  pbartok
33722
33723         * CheckBox.cs:
33724           - Fix from John BouAntoun: Now properly sets the Appearance property
33725
33726 2004-10-12 20:45  pbartok
33727
33728         * ThemeWin32Classic.cs:
33729           - Fixes from John BouAntoun: now handles forecolors and backcolors
33730             for flatstyle rendered controls much better; It also fixes normal
33731             checkbox rendering when pushed or disabled.
33732
33733 2004-10-08 02:50  jordi
33734
33735         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
33736           work
33737
33738 2004-10-07 08:56  jordi
33739
33740         * ThemeWin32Classic.cs: Removes deletion of cached brushes
33741
33742 2004-10-06 03:59  jordi
33743
33744         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
33745           XplatUIWin32.cs: removes warnings from compilation
33746
33747 2004-10-05 12:23  jackson
33748
33749         * RadioButton.cs: Fix ctor
33750
33751 2004-10-05 11:10  pbartok
33752
33753         * MessageBox.cs:
33754           - Partial implementation by Benjamin Dasnois
33755
33756 2004-10-05 10:15  jackson
33757
33758         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
33759           by John BouAntoun
33760
33761 2004-10-05 03:07  ravindra
33762
33763         * ToolBar.cs:
33764                 - Removed a private method, Draw ().
33765                 - Fixed the ButtonDropDown event handling.
33766                 - Fixed MouseMove event handling.
33767
33768 2004-10-05 03:04  ravindra
33769
33770         * ThemeWin32Classic.cs:
33771                 - Added DrawListView method and ListViewDefaultSize property.
33772                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
33773                 - Changed DOS style CRLF to Unix format (dos2unix).
33774
33775 2004-10-05 03:03  ravindra
33776
33777         * Theme.cs:
33778                 - Added DrawListView method and ListViewDefaultSize property.
33779
33780 2004-10-05 02:42  ravindra
33781
33782         * ToolBarButton.cs: Added an internal member dd_pressed to handle
33783           clicks on DropDown arrow.
33784
33785 2004-10-04 22:56  jackson
33786
33787         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
33788           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
33789           Control handle the buffers, derived classes should not have to
33790           CreateBuffers themselves.
33791
33792 2004-10-04 21:20  jackson
33793
33794         * StatusBar.cs: The control handles resizing the buffers now.
33795
33796 2004-10-04 21:18  jackson
33797
33798         * Control.cs: When resizing the buffers should be invalidated. This
33799           should be handled in Control not in derived classes.
33800
33801 2004-10-04 14:45  jackson
33802
33803         * TabPage.cs: oops
33804
33805 2004-10-04 02:14  pbartok
33806
33807         * LeftRightAlignment.cs:
33808           - Initial check-in
33809
33810 2004-10-04 01:09  jordi
33811
33812         * ThemeWin32Classic.cs: fixes right button position causing right
33813           button not showing on horizontal scrollbars
33814
33815 2004-10-02 13:12  pbartok
33816
33817         * XplatUIX11.cs:
33818           - Simplified the Invalidate method by using an X call instead of
33819             generating the expose ourselves
33820           - Added an expose when the window background is changed
33821           - Implemented ClientToScreen method
33822
33823 2004-10-02 13:08  pbartok
33824
33825         * XplatUIWin32.cs:
33826           - Added Win32EnableWindow method (test for implementing modal
33827           dialogs)
33828           - Added ClientToScreen method and imports
33829
33830 2004-10-02 13:07  pbartok
33831
33832         * XplatUI.cs, XplatUIDriver.cs:
33833           - Added ClientToScreen coordinate translation method
33834
33835 2004-10-02 13:06  pbartok
33836
33837         * KeyPressEventArgs.cs:
33838           - Fixed access level for constructor
33839
33840 2004-10-02 13:06  pbartok
33841
33842         * NativeWindow.cs:
33843           - Changed access level for the window_collection hash table
33844
33845 2004-10-02 13:05  pbartok
33846
33847         * Form.cs:
33848           - Added KeyPreview property
33849           - Added Menu property (still incomplete, pending Jordi's menu work)
33850           - Implemented ProcessCmdKey
33851           - Implemented ProcessDialogKey
33852           - Implemented ProcessKeyPreview
33853
33854 2004-10-02 13:02  pbartok
33855
33856         * Control.cs:
33857           - Added private method to get the Control object from the window
33858           handle
33859           - Implemented ContextMenu property
33860           - Implemented PointToScreen
33861           - Implemented PreProcessMessage
33862           - Implemented IsInputChar
33863           - Implemented IsInputKey
33864           - Implemented ProcessCmdKey
33865           - Completed ProcessKeyEventArgs
33866           - Fixed message loop to call the proper chain of functions on key
33867           events
33868           - Implemented ProcessDialogChar
33869           - Implemented ProcessDialogKey
33870           - Implemented ProcessKeyMessage
33871           - Implemented ProcessKeyPreview
33872           - Added RaiseDragEvent stub (MS internal method)
33873           - Added RaiseKeyEvent stub (MS internal method)
33874           - Added RaiseMouseEvent stub (MS Internal method)
33875           - Added RaisePaintEvent stub (MS Internal method)
33876           - Added ResetMouseEventArgs stub (MS Internal method)
33877           - Implemented RtlTranslateAlignment
33878           - Implemented RtlTranslateContent
33879           - Implemented RtlTranslateHorizontal
33880           - Implemented RtlTranslateLeftRight
33881           - Added generation of KeyPress event
33882
33883 2004-10-02 05:57  ravindra
33884
33885         * ListViewItem.cs: Added attributes.
33886
33887 2004-10-02 05:32  ravindra
33888
33889         * ListView.cs: Added attributes.
33890
33891 2004-10-01 11:53  jackson
33892
33893         * Form.cs: Implement the Close method so work on MessageBox can
33894           continue.
33895
33896 2004-09-30 14:06  pbartok
33897
33898         * XplatUIX11.cs:
33899           - Bug fixes
33900
33901 2004-09-30 11:34  jackson
33902
33903         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
33904
33905 2004-09-30 07:26  ravindra
33906
33907         * ListViewItemConverter.cs: Converter for ListViewItem.
33908
33909 2004-09-30 07:26  ravindra
33910
33911         * SortOrder.cs: Enum for ListView control.
33912
33913 2004-09-30 07:25  ravindra
33914
33915         * ColumnHeader.cs: Supporting class for ListView control.
33916
33917 2004-09-30 07:24  ravindra
33918
33919         * ListView.cs, ListViewItem.cs: Initial implementation.
33920
33921 2004-09-30 07:20  ravindra
33922
33923         * ItemActivation.cs: Enum for ListView Control.
33924
33925 2004-09-29 20:29  pbartok
33926
33927         * XplatUIX11.cs:
33928           - Added lookup of pixel value for background color; tries to get a
33929             color 'close' to the requested color, it avoids having to create a
33930             colormap.  Depending on the display this could mean the used color
33931             is slightly off the desired color. Might have to change it to a more
33932             resource intensive colormap approach, but it will work as a
33933           workaround to avoid red screens.
33934
33935 2004-09-29 14:27  jackson
33936
33937         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
33938
33939 2004-09-28 12:44  pbartok
33940
33941         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
33942           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
33943           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
33944           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
33945           TrackBar.cs, VScrollBar.cs:
33946           - Streamlined Theme interfaces:
33947             * Each DrawXXX method for a control now is passed the object for
33948               the control to be drawn in order to allow accessing any state the
33949               theme might require
33950
33951             * ControlPaint methods for the theme now have a CP prefix to avoid
33952               name clashes with the Draw methods for controls
33953
33954             * Every control now retrieves it's DefaultSize from the current
33955             theme
33956
33957 2004-09-28 12:17  jackson
33958
33959         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
33960           drawing
33961
33962 2004-09-24 14:57  jackson
33963
33964         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
33965           Gives us a nice little performance boost.
33966
33967 2004-09-24 12:02  jackson
33968
33969         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
33970           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
33971           Control and supporting classes. Initial checkin
33972
33973 2004-09-23 13:08  jackson
33974
33975         * Form.cs: Temp build fixage
33976
33977 2004-09-23 01:39  ravindra
33978
33979         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
33980           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
33981           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
33982           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
33983           EventHandlers needed by ListView Control.
33984
33985 2004-09-22 14:12  pbartok
33986
33987         * ScrollableControl.cs:
33988           - Implemented DockPadding property
33989           - Implemented AutoScroll property
33990           - Implemented AutoScrollMargin property
33991           - Implemented AutoScrollMinSize property
33992           - Implemented AutoScrollPosition property
33993           - Implemented DisplayRectangle property (still incomplete)
33994           - Implemented CreateParams property
33995           - Implemented HScroll property
33996           - Implemented VScroll property
33997           - Implemented OnVisibleChanged property
33998
33999 2004-09-22 14:09  pbartok
34000
34001         * Form.cs:
34002           - Added Form.ControllCollection class
34003           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
34004             RemoveOwnedForm (still incomplete, missing on-top and common
34005             minimize/maximize behaviour)
34006           - Added StartPosition property (still incomplete, does not use when
34007             creating the form)
34008           - Added ShowDialog() methods (still incomplete, missing forcing the
34009             dialog modal)
34010
34011 2004-09-22 14:05  pbartok
34012
34013         * Application.cs:
34014           - Added message loop for modal dialogs
34015
34016 2004-09-22 14:02  pbartok
34017
34018         * GroupBox.cs:
34019           - Fixed wrong types for events
34020
34021 2004-09-22 14:00  pbartok
34022
34023         * Shortcut.cs, FormWindowState.cs:
34024           - Fixed wrong values
34025
34026 2004-09-22 12:01  jackson
34027
34028         * Control.cs: Text is never null
34029
34030 2004-09-20 22:14  pbartok
34031
34032         * XplatUIWin32.cs:
34033           - Fixed accessibility level for Idle handler
34034
34035 2004-09-20 18:54  jackson
34036
34037         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34038           XplatUIX11.cs: New message loop that uses poll so we don't get a
34039           busy loop
34040
34041 2004-09-17 10:43  pbartok
34042
34043         * ScrollBar.cs:
34044           - Fixed behaviour of arrow buttons. Now properly behaves like
34045             Buttons (and like Microsoft's scrollbar arrow buttons)
34046
34047 2004-09-17 10:14  pbartok
34048
34049         * ScrollBar.cs:
34050           - Added missing release of keyboard/mouse capture
34051
34052 2004-09-17 06:18  jordi
34053
34054         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
34055           Theme.cs: Very early menu support
34056
34057 2004-09-16 17:45  pbartok
34058
34059         * XplatUIWin32.cs:
34060           - Fixed sending a window to the front
34061           - Added overload for SetWindowPos to avoid casting
34062
34063 2004-09-16 17:44  pbartok
34064
34065         * Control.cs:
34066           - Added SendToBack and BringToFront methods
34067
34068 2004-09-16 07:00  ravindra
34069
34070         * Copyright: Added Novell URL.
34071
34072 2004-09-16 07:00  ravindra
34073
34074         * ToolBar.cs: Invalidate should be done before redrawing.
34075
34076 2004-09-15 21:19  ravindra
34077
34078         * ColumnHeaderStyle.cs: Enum for ListView Control.
34079
34080 2004-09-15 21:18  ravindra
34081
34082         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
34083           ListView Control.
34084
34085 2004-09-13 18:26  jackson
34086
34087         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
34088           properly
34089
34090 2004-09-13 18:13  jackson
34091
34092         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
34093           a second thread and post messages into the main threads message
34094           queue. This makes timing much more consistent. Both win2K and XP
34095           have a minimum timer value of 15 milliseconds, so we now do this
34096           too.
34097
34098 2004-09-13 15:18  pbartok
34099
34100         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34101           XplatUIX11.cs:
34102           - Added Z-Ordering methods
34103
34104 2004-09-13 10:56  pbartok
34105
34106         * Form.cs:
34107           - Fixed #region names
34108           - Moved properties and methods into their proper #regions
34109
34110 2004-09-13 10:51  pbartok
34111
34112         * Form.cs:
34113           - Added Accept and CancelButton properties
34114           - Added ProcessDialogKey() method
34115
34116 2004-09-13 08:18  pbartok
34117
34118         * IWindowTarget.cs:
34119           - Initial check-in
34120
34121 2004-09-10 21:50  pbartok
34122
34123         * Control.cs:
34124           - Added DoDragDrop() [incomplete]
34125           - Properly implemented 'Visible' handling
34126           - Added SetVisibleCore()
34127           - Implemented FindChildAtPoint()
34128           - Implemented GetContainerControl()
34129           - Implemented Hide()
34130
34131 2004-09-10 19:28  pbartok
34132
34133         * Control.cs:
34134           - Moved methods into their appropriate #regions
34135           - Reordered methods within regions alphabetically
34136
34137 2004-09-10 18:57  pbartok
34138
34139         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
34140           - Added method to retrieve text from window
34141
34142 2004-09-10 18:56  pbartok
34143
34144         * Control.cs:
34145           - Moved some internal functions into the internal region
34146           - Implemented FontHeight
34147           - Implemented RenderRightToLeft
34148           - Implemented ResizeRedraw
34149           - Implemented ShowFocusCues
34150           - Implemented ShowKeyboardCues
34151           - Implemented FromChildHandle
34152           - Implemented FromHandle
34153           - Implemented IsMnemonic
34154           - Implemented ReflectMessage
34155           - All public and protected Static Methods are now complete
34156
34157 2004-09-10 16:54  pbartok
34158
34159         * Control.cs:
34160           - Implemented remaining missing public instance properties
34161           - Alphabetized some out of order properties
34162
34163 2004-09-10 05:51  ravindra
34164
34165         * PictureBox.cs: Added a check for null image.
34166
34167 2004-09-10 00:59  jordi
34168
34169         * GroupBox.cs: remove cvs tag
34170
34171 2004-09-09 05:25  ravindra
34172
34173         * ToolBar.cs: Make redraw accessible from ToolBarButton.
34174
34175 2004-09-09 05:23  ravindra
34176
34177         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
34178           parent redraw.
34179
34180 2004-09-09 02:28  pbartok
34181
34182         * ThemeWin32Classic.cs:
34183           - Improve disabled string look
34184
34185 2004-09-09 01:15  jordi
34186
34187         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
34188           args and handler
34189
34190 2004-09-08 23:56  ravindra
34191
34192         * ItemBoundsPortion.cs: It's enum, not a class!
34193
34194 2004-09-08 23:47  ravindra
34195
34196         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
34197           Enums for Form.
34198
34199 2004-09-08 21:13  ravindra
34200
34201         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
34202           ListView control.
34203
34204 2004-09-08 21:03  ravindra
34205
34206         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
34207           avoid crash.
34208
34209 2004-09-08 21:01  ravindra
34210
34211         * ScrollableControl.cs: Removed unreachable code.
34212
34213 2004-09-08 06:45  jordi
34214
34215         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
34216
34217 2004-09-08 01:00  jackson
34218
34219         * XplatUIX11.cs: Only run the timers when updating the message
34220           queue. This effectively gives X messages a higher priority then
34221           timer messages. Timers still need love though
34222
34223 2004-09-07 14:01  jackson
34224
34225         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
34226           this for us and the handle is no longer valid.
34227
34228 2004-09-07 13:59  jackson
34229
34230         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
34231           loop that manages to not crash. TODO: Add poll and cleanup timers
34232
34233 2004-09-07 11:12  jordi
34234
34235         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
34236
34237 2004-09-07 03:40  jordi
34238
34239         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
34240           fixes, methods, multiple links
34241
34242 2004-09-06 06:55  jordi
34243
34244         * Control.cs: Caches ClientRectangle rectangle value
34245
34246 2004-09-05 02:03  jordi
34247
34248         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
34249           certain situations
34250
34251 2004-09-04 11:10  jordi
34252
34253         * Label.cs: Refresh when font changed
34254
34255 2004-09-02 16:24  pbartok
34256
34257         * Control.cs:
34258           - Added sanity check to creation of double buffer bitmap
34259
34260 2004-09-02 16:24  pbartok
34261
34262         * ButtonBase.cs:
34263           - Fixed selection of text color
34264           - Fixed handling of resize event; now properly recreates double
34265             buffering bitmap
34266           - Added missing assignment of TextAlignment
34267           - Added proper default for TextAlignment
34268
34269 2004-09-02 14:26  pbartok
34270
34271         * RadioButton.cs:
34272           - Added missing RadioButton.RadioButtonAccessibleObject class
34273
34274 2004-09-02 14:26  pbartok
34275
34276         * Control.cs:
34277           - Added missing Control.ControlAccessibleObject class
34278           - Started to implement Select()ion mechanisms, still very incomplete
34279
34280 2004-09-02 14:25  pbartok
34281
34282         * AccessibleObject.cs:
34283           - Added missing methods
34284
34285 2004-09-02 14:23  pbartok
34286
34287         * AccessibleNavigation.cs, AccessibleSelection.cs:
34288           - Initial check-in
34289
34290 2004-09-02 10:32  jordi
34291
34292         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
34293           pool for pens, brushes, and hatchbruses
34294
34295 2004-09-01 15:30  jackson
34296
34297         * StatusBar.cs: Fix typo
34298
34299 2004-09-01 14:44  pbartok
34300
34301         * RadioButton.cs:
34302           - Fixed state
34303
34304 2004-09-01 14:39  pbartok
34305
34306         * Button.cs, RadioButton.cs:
34307           - Functional initial check-in
34308
34309 2004-09-01 14:01  pbartok
34310
34311         * CheckBox.cs:
34312           - Added missing default
34313           - Added missing region mark
34314
34315 2004-09-01 09:10  jordi
34316
34317         * Label.cs: fixes method signatures, new methods, events, fixes
34318           autosize
34319
34320 2004-09-01 07:19  jordi
34321
34322         * Control.cs: Init string variables with an empty object
34323
34324 2004-09-01 04:20  jordi
34325
34326         * Control.cs: fires OnFontChanged event
34327
34328 2004-08-31 20:07  pbartok
34329
34330         * ButtonBase.cs:
34331           - Enabled display of strings
34332
34333 2004-08-31 20:05  pbartok
34334
34335         * Form.cs:
34336           - Added (partial) implementation of DialogResult; rest needs to be
34337             implemented when the modal loop code is done
34338
34339 2004-08-31 19:55  pbartok
34340
34341         * CheckBox.cs:
34342           - Fixed to match the removal of the needs_redraw concept
34343
34344 2004-08-31 19:55  pbartok
34345
34346         * ButtonBase.cs:
34347           - Removed the rather odd split between 'needs redraw' and redrawing
34348           - Now handles the events that require regeneration (ambient
34349             properties and size)
34350
34351 2004-08-31 19:41  pbartok
34352
34353         * Control.cs:
34354           - Added firing of BackColorChanged event
34355           - Added TopLevelControl property
34356           - Fixed handling of WM_ERASEBKGRND message
34357
34358 2004-08-31 12:49  pbartok
34359
34360         * ButtonBase.cs:
34361           - Removed debug
34362           - Minor fixes
34363
34364 2004-08-31 12:48  pbartok
34365
34366         * CheckBox.cs:
34367           - Finished (famous last words)
34368
34369 2004-08-31 04:35  jordi
34370
34371         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
34372           scrolling bugs, adds new methods
34373
34374 2004-08-30 14:42  pbartok
34375
34376         * CheckBox.cs:
34377           - Implemented CheckBox drawing code
34378
34379 2004-08-30 14:42  pbartok
34380
34381         * ButtonBase.cs:
34382           - Made Redraw() and CheckRedraw() virtual
34383           - Improved mouse up/down/move logic to properly track buttons
34384
34385 2004-08-30 09:44  pbartok
34386
34387         * CheckBox.cs:
34388           - Updated to fix broken build. Not complete yet.
34389
34390 2004-08-30 09:28  pbartok
34391
34392         * CheckState.cs:
34393           - Initial checkin
34394
34395 2004-08-30 09:17  pbartok
34396
34397         * Appearance.cs:
34398           - Initial check-in
34399
34400 2004-08-27 16:12  ravindra
34401
34402         * ToolBarButton.cs: Added TypeConverter attribute.
34403
34404 2004-08-27 16:07  ravindra
34405
34406         * ImageIndexConverter.cs: Implemented.
34407
34408 2004-08-27 14:17  pbartok
34409
34410         * Control.cs:
34411           - Removed unneeded stack vars
34412           - First attempt to fix sizing issues when layout is suspended
34413
34414 2004-08-25 15:35  jordi
34415
34416         * ScrollBar.cs: more fixes to scrollbar
34417
34418 2004-08-25 14:04  ravindra
34419
34420         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
34421           Added the missing divider code and grip for ToolBar Control.
34422
34423 2004-08-25 13:20  pbartok
34424
34425         * Control.cs:
34426           - Control now properly passes the ambient background color to child
34427             controls
34428
34429 2004-08-25 13:20  jordi
34430
34431         * ScrollBar.cs: small bug fix regarding bar position
34432
34433 2004-08-25 12:33  pbartok
34434
34435         * Timer.cs:
34436           - Now only calls SetTimer or KillTimer if the enabled state has
34437           changed
34438
34439 2004-08-25 12:33  pbartok
34440
34441         * XplatUIWin32.cs:
34442           - Fixed timer handling, now seems to work
34443           - Improved error message for window creation
34444
34445 2004-08-25 12:32  pbartok
34446
34447         * Control.cs:
34448           - Fixed generation of MouseUp message
34449
34450 2004-08-25 12:29  jordi
34451
34452         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
34453           and fixes for progressbar
34454
34455 2004-08-24 18:43  ravindra
34456
34457         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
34458           in ToolBar control.
34459
34460 2004-08-24 17:15  pbartok
34461
34462         * Panel.cs:
34463           - Added #region
34464           - Added missing events
34465           - Alphabetized
34466
34467 2004-08-24 17:14  pbartok
34468
34469         * StatusBar.cs, PictureBox.cs:
34470           - Now uses Control's CreateParams
34471
34472 2004-08-24 16:36  pbartok
34473
34474         * XplatUIX11.cs:
34475           - Fixed background color handling
34476           - Fixed sending of enter/leave events on a grab
34477
34478 2004-08-24 16:35  pbartok
34479
34480         * X11Structs.cs:
34481           - Refined definitions for CrossingEvent
34482
34483 2004-08-24 12:37  jordi
34484
34485         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
34486           formmating, methods signature, and adds missing events
34487
34488 2004-08-24 12:24  jordi
34489
34490         * Control.cs: fire OnEnabledChanged event
34491
34492 2004-08-24 11:17  pbartok
34493
34494         * XplatUIWin32.cs:
34495           - Implemented SetTimer() and KillTimer()
34496
34497 2004-08-24 11:16  pbartok
34498
34499         * XplatUIX11.cs:
34500           - Now uses Remove instead of Add to kill the timer
34501
34502 2004-08-24 10:16  jackson
34503
34504         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
34505           picture boxes in the theme now. Draw picture box borders and obey
34506           sizing modes
34507
34508 2004-08-24 05:49  jackson
34509
34510         * Timer.cs: Remove top secret debugging code
34511
34512 2004-08-24 05:34  jackson
34513
34514         * PictureBox.cs: Temp hack to make picture boxes draw their full
34515           image
34516
34517 2004-08-24 05:29  jackson
34518
34519         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34520           XplatUIX11.cs: Move timers to the driver level. On X they are
34521           queued by the driver and checked on idle.
34522
34523 2004-08-24 01:07  jackson
34524
34525         * XplatUIX11.cs: Use a queue for async messages instead of passing
34526           them as ClientMessages since that was totally broken. Also simply
34527           check for events and return an idle message if none are found. This
34528           gives us an idle handler, and prevents deadlocking when no messages
34529           are in the queue.
34530
34531 2004-08-23 18:19  ravindra
34532
34533         * XplatUIWin32.cs: Removed the unwanted destructor.
34534
34535 2004-08-23 17:27  pbartok
34536
34537         * ButtonBase.cs:
34538           - Finishing touches. Works now, just needs some optimizations.
34539
34540 2004-08-23 16:53  jordi
34541
34542         * ScrollBar.cs: small fix
34543
34544 2004-08-23 16:45  pbartok
34545
34546         * Application.cs:
34547           - Removed debug output
34548           - Simplifications
34549
34550 2004-08-23 16:43  jordi
34551
34552         * ScrollBar.cs: [no log message]
34553
34554 2004-08-23 16:10  pbartok
34555
34556         * Form.cs:
34557           - Fixed handling of WM_CLOSE message
34558           - Removed debug output
34559
34560 2004-08-23 16:09  pbartok
34561
34562         * Application.cs:
34563           - Added handling of Idle event
34564           - Added handling of form closing
34565           - Fixed reporting of MessageLoop property
34566           - Removed some unneeded code, should provide a bit of a speedup
34567
34568 2004-08-23 15:22  pbartok
34569
34570         * Control.cs:
34571           - Added InitLayout() method
34572           - Added code to properly perform layout when Anchor or Dock property
34573             is changed
34574           - Changed 'interpretation' of ResumeLayout. MS seems to have a
34575             LAMESPEC, tried to do it in a way that makes sense
34576
34577 2004-08-23 14:10  jordi
34578
34579         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
34580           properties and methods
34581
34582 2004-08-23 13:55  pbartok
34583
34584         * Control.cs:
34585           - Properly fixed Jordi's last fix
34586           - Now uses Cursor's Position property instead of calling XplatUI
34587           directly
34588
34589 2004-08-23 13:44  jordi
34590
34591         * PaintEventHandler.cs: Adding missing attribute
34592
34593 2004-08-23 13:39  pbartok
34594
34595         * Cursor.cs:
34596           - Implemented Position property
34597
34598 2004-08-23 13:39  pbartok
34599
34600         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
34601           - Added method to move mouse cursor
34602
34603 2004-08-23 13:39  pbartok
34604
34605         * XplatUIX11.cs:
34606           - Fixed setting of background color
34607           - Added method to move mouse cursor
34608
34609 2004-08-23 13:16  jordi
34610
34611         * Control.cs: avoids null exception
34612
34613 2004-08-22 17:46  jackson
34614
34615         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
34616           PictureBox
34617
34618 2004-08-22 17:40  jackson
34619
34620         * XplatUIX11.cs: Add some missing locks
34621
34622 2004-08-22 15:10  pbartok
34623
34624         * Control.cs, Form.cs:
34625           - Removed OverlappedWindow style from Control, instead it's default
34626             now is child
34627           - Made form windows OverlappedWindow by default
34628
34629 2004-08-22 13:34  jackson
34630
34631         * ScrollBar.cs: Update the position through the Value property so
34632           the OnValueChanged event is raised.
34633
34634 2004-08-22 12:04  pbartok
34635
34636         * SWF.csproj:
34637           - Added Cursor.cs and UserControl.cs
34638
34639 2004-08-22 12:03  pbartok
34640
34641         * Cursor.cs:
34642           - Started implementation, not usable yet
34643
34644 2004-08-22 12:00  pbartok
34645
34646         * UserControl.cs:
34647           - Implemented UserControl (complete)
34648
34649 2004-08-21 19:20  ravindra
34650
34651         * ToolBar.cs: Correcting the formatting mess of VS.NET.
34652
34653 2004-08-21 18:49  ravindra
34654
34655         * ToolBar.cs: Probably this completes the missing attributes in
34656           toolbar control.
34657
34658 2004-08-21 18:03  ravindra
34659
34660         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
34661           Fixed toolbar control signatures.
34662
34663 2004-08-21 16:32  pbartok
34664
34665         * LinkLabel.cs:
34666           - Signature Fixes
34667
34668 2004-08-21 16:30  pbartok
34669
34670         * Label.cs:
34671           - Signature fixes
34672
34673 2004-08-21 16:19  pbartok
34674
34675         * Control.cs, Label.cs:
34676           - Signature fixes
34677
34678 2004-08-21 15:57  pbartok
34679
34680         * ButtonBase.cs:
34681           - Added loads of debug output for development
34682           - Fixed typo in method name
34683
34684 2004-08-21 15:52  pbartok
34685
34686         * ToolBarButtonClickEventArgs.cs:
34687           - Added missing base class
34688
34689 2004-08-21 14:53  pbartok
34690
34691         * Control.cs:
34692           - Updated to match new GrabWindow signature
34693
34694 2004-08-21 14:51  pbartok
34695
34696         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34697           - Added method to get default display size
34698
34699 2004-08-21 14:23  pbartok
34700
34701         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34702           - Added method to query current grab state
34703           - Added argument to allow confining a grab to a window
34704
34705 2004-08-21 14:22  pbartok
34706
34707         * Keys.cs:
34708           - Added [Flags] attribute so that modifiers can be used in bitwise
34709           ops
34710
34711 2004-08-21 14:21  pbartok
34712
34713         * TrackBar.cs, ScrollBar.cs:
34714           - Replaced direct XplatUI calls with their Control counterpart
34715
34716 2004-08-21 13:32  pbartok
34717
34718         * Control.cs:
34719           - Implemented Created property
34720
34721 2004-08-21 13:28  pbartok
34722
34723         * Control.cs:
34724           - Implemented ContainsFocus
34725
34726 2004-08-21 13:26  pbartok
34727
34728         * Control.cs:
34729           - Implemented CausesValidation
34730
34731 2004-08-21 13:21  pbartok
34732
34733         * Control.cs:
34734           - Implemented CanFocus
34735           - Implemented CanSelect
34736           - Implemented Capture
34737
34738 2004-08-21 12:35  pbartok
34739
34740         * XplatUIWin32.cs:
34741           - Fixed bug with Async message handling
34742           - Implemented getting the ModifierKeys
34743
34744 2004-08-21 12:32  jackson
34745
34746         * AsyncMethodResult.cs: Make sure we have the mutex before we
34747           release it. Fixes BeginInvoke on windows
34748
34749 2004-08-21 11:31  pbartok
34750
34751         * XplatUIWin32.cs, XplatUIX11.cs:
34752           - Drivers now return proper mouse state
34753
34754 2004-08-21 10:54  jackson
34755
34756         * Control.cs: Implement EndInvoke
34757
34758 2004-08-21 10:48  jackson
34759
34760         * Timer.cs: Remove unneeded finalizer
34761
34762 2004-08-20 19:52  ravindra
34763
34764         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
34765           in mouse event handling in the ToolBar control.
34766
34767 2004-08-20 19:50  ravindra
34768
34769         * ImageList.cs: Changed draw method to use the arguments passed in
34770           to draw the image.
34771
34772 2004-08-20 18:58  pbartok
34773
34774         * XplatUIStructs.cs:
34775           - Added private message for async communication
34776
34777 2004-08-20 17:38  ravindra
34778
34779         * Control.cs: Made RightToLeft property virtual and removed a
34780           Console.WriteLine.
34781
34782 2004-08-20 14:39  jordi
34783
34784         * ThemeGtk.cs: use style_attach
34785
34786 2004-08-20 14:39  pbartok
34787
34788         * XplatUIWin32.cs:
34789           - Added jackson's Async code from X11 to Win32
34790
34791 2004-08-20 14:09  pbartok
34792
34793         * SWF.csproj:
34794           - Added all new files
34795
34796 2004-08-20 14:09  pbartok
34797
34798         * Control.cs:
34799           - Added call to set window background color
34800
34801 2004-08-20 14:03  pbartok
34802
34803         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
34804           - Added method for setting the window background
34805
34806 2004-08-20 14:02  pbartok
34807
34808         * XplatUIWin32.cs:
34809           - Added method for setting the background color
34810           - Added handling for erasing the window background
34811
34812 2004-08-20 13:45  jordi
34813
34814         * TrackBar.cs: fixes timer, new properties and methods
34815
34816 2004-08-20 13:34  jackson
34817
34818         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
34819           correct thread
34820
34821 2004-08-20 13:22  jackson
34822
34823         * Timer.cs: Timer Tick events are now handed through Controls Async
34824           mechanism so the callbacks are executed in the same thread as X
34825
34826 2004-08-20 13:19  jackson
34827
34828         * XplatUIDriver.cs: Expose functionality to send async messages
34829           through the driver
34830
34831 2004-08-20 13:18  jackson
34832
34833         * Control.cs: Implement Begininvoke
34834
34835 2004-08-20 13:14  jackson
34836
34837         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
34838           messages through the driver
34839
34840 2004-08-20 13:12  jackson
34841
34842         * XplatUIX11.cs: Lock before all X operations. Also added Async
34843           method functionality through XSendEvent
34844
34845 2004-08-20 13:11  jackson
34846
34847         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
34848           This will screw up on 64 bit systems)
34849
34850 2004-08-20 13:10  jackson
34851
34852         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
34853           Async messages through X/Win32
34854
34855 2004-08-19 19:39  pbartok
34856
34857         * XplatUIX11.cs:
34858           - Updated code to match new HandleData.DeviceContext type
34859
34860 2004-08-19 19:38  pbartok
34861
34862         * HandleData.cs:
34863           - Made DeviceContext a generic object to allow usage from various
34864           drivers
34865           - Added support for queueing Windows messages
34866
34867 2004-08-19 19:37  pbartok
34868
34869         * XplatUIWin32.cs:
34870           - Added generation of MouseEnter, MouseLeave and MouseHover events
34871           - Added cleanup on EndPaint
34872
34873 2004-08-19 19:17  pbartok
34874
34875         * Control.cs:
34876           - Added handling of WM_MOUSEHOVER
34877           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
34878           code
34879
34880 2004-08-19 18:55  jordi
34881
34882         * ThemeGtk.cs: fixes button order
34883
34884 2004-08-19 18:12  jordi
34885
34886         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
34887
34888 2004-08-19 17:09  pbartok
34889
34890         * Control.cs:
34891           - Added Right property
34892           - Added RightToLeft property
34893
34894 2004-08-19 16:27  jordi
34895
34896         * ThemeGtk.cs: experimental GTK theme support
34897
34898 2004-08-19 16:26  jordi
34899
34900         * ITheme.cs, Theme.cs: move themes from an interface to a class
34901
34902 2004-08-19 16:25  jordi
34903
34904         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
34905           theme enhancaments
34906
34907 2004-08-19 16:04  pbartok
34908
34909         * XplatUIX11.cs:
34910           - Added colormap basics
34911           - Added a way to re-initialize with a different display handle
34912           - Fixed setting of the window background color
34913           - Added various X11 imports related to colors and colormaps
34914
34915 2004-08-19 15:51  pbartok
34916
34917         * X11Structs.cs:
34918           - Removed packing hints (Paolo suggested this a while back)
34919           - fixed colormap type
34920           - Added default Atom types
34921           - Added Screen and color structs and enums
34922
34923 2004-08-19 15:39  pbartok
34924
34925         * ImageList.cs:
34926           - Added missing Draw() method
34927           - Added missing RecreateHandle event
34928
34929 2004-08-19 15:30  pbartok
34930
34931         * Form.cs:
34932           - Added handling of WM_CLOSE
34933
34934 2004-08-18 13:16  jordi
34935
34936         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
34937           a table
34938
34939 2004-08-18 09:56  jordi
34940
34941         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
34942
34943 2004-08-17 15:31  ravindra
34944
34945         * SWF.csproj: Updated project.
34946
34947 2004-08-17 15:25  pbartok
34948
34949         * Control.cs:
34950           - Drawing improvement; don't call UpdateBounds if we are not visible
34951             (or have been minimized)
34952
34953 2004-08-17 15:24  pbartok
34954
34955         * XplatUIWin32.cs:
34956           - Finished IsVisible
34957           - Added Win32GetWindowPlacement
34958
34959 2004-08-17 15:08  jackson
34960
34961         * Panel.cs: Initial checkin of the Panel
34962
34963 2004-08-17 14:25  pbartok
34964
34965         * Control.cs:
34966           - Fixed broken handling of default window sizes
34967
34968 2004-08-17 13:29  jackson
34969
34970         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
34971           has a large startup time.
34972
34973 2004-08-17 10:25  jackson
34974
34975         * HandleData.cs: union areas properly
34976
34977 2004-08-17 10:12  jackson
34978
34979         * HandleData.cs: union areas properly
34980
34981 2004-08-16 20:00  ravindra
34982
34983         * ToolBar.cs, ToolBarButton.cs: Added attributes.
34984
34985 2004-08-16 18:48  ravindra
34986
34987         * ToolBar.cs: Added attributes.
34988
34989 2004-08-16 17:17  ravindra
34990
34991         * SWF.csproj: Updated project.
34992
34993 2004-08-16 17:16  jackson
34994
34995         * XplatUIX11.cs: Check for more expose events before sending a
34996           WM_PAINT so they can all be grouped together. This makes dragging a
34997           window across another window redraw in a sane way.
34998
34999 2004-08-16 15:47  pbartok
35000
35001         * Control.cs:
35002           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
35003             support OnMouseEnter/Leave()
35004           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
35005             exposure handling
35006
35007 2004-08-16 15:46  pbartok
35008
35009         * XplatUIStructs.cs, XplatUIX11.cs:
35010           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
35011           OnMouseEnter/Leave()
35012
35013 2004-08-16 15:34  jackson
35014
35015         * XplatUIX11.cs: Group multiple expose events in HandleData, make
35016           sure messages get the message field set to WM_NULL if they are not
35017           handled.
35018
35019 2004-08-16 15:24  jackson
35020
35021         * HandleData.cs: HandleData is used for storing message information
35022           for window handles
35023
35024 2004-08-15 17:23  ravindra
35025
35026         * ColorDepth.cs: Added attribute.
35027
35028 2004-08-15 17:23  ravindra
35029
35030         * SWF.csproj: Updated project for ToolBar Control.
35031
35032 2004-08-15 17:20  ravindra
35033
35034         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
35035           control and also dos2unix format.
35036
35037 2004-08-15 17:13  ravindra
35038
35039         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
35040           ToolBarButtonClickEventArgs.cs,
35041           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
35042           ToolBarTextAlign.cs: First Implementation of ToolBar control.
35043
35044 2004-08-15 15:31  pbartok
35045
35046         * ButtonBase.cs:
35047           - First (mostly) working version
35048
35049 2004-08-13 16:15  pbartok
35050
35051         * Control.cs:
35052           - Fixed Anchor default
35053
35054 2004-08-13 15:43  pbartok
35055
35056         * Control.cs:
35057           - Changed GetCursorPos signature
35058
35059 2004-08-13 15:42  pbartok
35060
35061         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
35062           - Changed signature for GetCursorPos
35063
35064 2004-08-13 15:25  pbartok
35065
35066         * XplatUIX11.cs:
35067           - Cleanup
35068           - Fixed resizing/exposure handling
35069
35070 2004-08-13 15:22  jordi
35071
35072         * ThemeWin32Classic.cs: removes redundant code and fixes issues
35073           with tickposition
35074
35075 2004-08-13 14:55  jordi
35076
35077         * TrackBar.cs: change from wndproc to events
35078
35079 2004-08-13 13:00  jordi
35080
35081         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35082           XplatUIX11.cs: implements PointToClient (ScreenToClient)
35083
35084 2004-08-13 12:53  pbartok
35085
35086         * XplatUIWin32.cs:
35087           - Changed GetWindowPos to also provide client area size
35088           - Fixed broken prototypes for several win32 functions
35089
35090 2004-08-13 12:53  pbartok
35091
35092         * XplatUI.cs, XplatUIDriver.cs:
35093           - Changed GetWindowPos to also provide client area size
35094
35095 2004-08-13 12:52  pbartok
35096
35097         * XplatUIX11.cs:
35098           - Added generation of WM_POSCHANGED
35099           - Changed GetWindowPos to also provide client area size
35100
35101 2004-08-13 12:52  pbartok
35102
35103         * Control.cs:
35104           - Added Dispose() and destructor
35105           - Fixed resizing and bounds calculation
35106           - Fixed Layout
35107           - Added memory savings for invisible windows
35108
35109 2004-08-13 12:46  jordi
35110
35111         * TrackBar.cs: adds timer and grap window
35112
35113 2004-08-13 10:25  jackson
35114
35115         * Timer.cs: SWF Timer
35116
35117 2004-08-12 16:59  pbartok
35118
35119         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35120           - Implemented method to get current mouse position
35121
35122 2004-08-12 14:29  jordi
35123
35124         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
35125           enhancement, fix mouse problems, highli thumb, etc
35126
35127 2004-08-12 13:31  pbartok
35128
35129         * Control.cs:
35130           - Fixed Anchoring bugs
35131
35132 2004-08-12 13:01  jackson
35133
35134         * StatusBar.cs: Don't forget things
35135
35136 2004-08-12 12:54  jackson
35137
35138         * ThemeWin32Classic.cs: Handle owner draw status bars
35139
35140 2004-08-12 12:54  jackson
35141
35142         * StatusBar.cs: Implement missing properties, events, and methods.
35143           Handle mouse clicking
35144
35145 2004-08-12 10:19  jackson
35146
35147         * StatusBarPanelClickEventArgs.cs,
35148           StatusBarPanelClickEventHandler.cs: Classes for handling status
35149           bar panel click events
35150
35151 2004-08-12 10:10  jackson
35152
35153         * Control.cs: Add missing properties
35154
35155 2004-08-12 09:46  pbartok
35156
35157         * BindingsManagerBase.cs:
35158           - Name changed to BindingManagerBase.cs
35159
35160 2004-08-12 09:25  jordi
35161
35162         * ScrollableControl.cs: calls ctrlbase instead of exeception
35163
35164 2004-08-11 16:28  pbartok
35165
35166         * InputLanguageChangingEventArgs.cs:
35167           - Never check in before compiling. Fixes the last check-in
35168
35169 2004-08-11 16:26  pbartok
35170
35171         * InputLanguageChangingEventArgs.cs:
35172           - More signature fixes
35173
35174 2004-08-11 16:20  pbartok
35175
35176         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
35177           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
35178           ImageListStreamer.cs, InputLanguage.cs,
35179           InputLanguageChangedEventArgs.cs,
35180           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
35181           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
35182           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
35183           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35184           - Signature fixes
35185
35186 2004-08-11 16:16  pbartok
35187
35188         * Application.cs:
35189           - Fixed Signature
35190           - Added .Net 1.1 method
35191
35192 2004-08-11 15:25  pbartok
35193
35194         * SWF.csproj:
35195           - Fixed BindingManagerBase.cs filename
35196
35197 2004-08-11 15:22  pbartok
35198
35199         * BindingManagerBase.cs:
35200           - Was checked in with wrong filename
35201
35202 2004-08-11 14:50  pbartok
35203
35204         * SWF.csproj:
35205           - Updated
35206
35207 2004-08-11 13:41  jordi
35208
35209         * XplatUIWin32.cs: Fixes ClientRect
35210
35211 2004-08-11 13:19  pbartok
35212
35213         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35214           XplatUIX11.cs:
35215           - We had SetWindowPos and MoveWindow to set window positions and
35216             size, removed MoveWindow. We have GetWindowPos, so it made sense to
35217             keep SetWindowPos as matching counterpart
35218           - Added some X11 sanity checking
35219
35220 2004-08-11 12:59  pbartok
35221
35222         * Control.cs:
35223           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
35224             (It seems that SetBounds is just a front for SetBoundsCore and
35225              SetBoundsCore updates the underlying window system and
35226              UpdateBounds is responsible for updating the variables associated
35227              with the Control and sending the events)
35228           - Major cleanup of Size handling; we now have two sizes, client_size
35229             and bounds. Bounds defines the window with decorations, client_size
35230             without them.
35231
35232 2004-08-11 12:55  pbartok
35233
35234         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35235           - Added method to calculate difference between decorated window and
35236             raw client area
35237
35238 2004-08-11 12:54  pbartok
35239
35240         * Label.cs:
35241           - Forcing redraw on resize
35242
35243 2004-08-11 11:43  pbartok
35244
35245         * ImageList.cs:
35246           - Removed disposing of the actual images when the list is disposed
35247
35248 2004-08-11 09:13  pbartok
35249
35250         * Control.cs:
35251           - Now properly reparents windows
35252
35253 2004-08-11 08:37  pbartok
35254
35255         * Control.cs:
35256           - Duh!
35257
35258 2004-08-11 07:47  pbartok
35259
35260         * Control.cs:
35261           - Rewrote the collection stuff. Might not be as fast now, not
35262             keeping the number of children around and accessible directly, but
35263             it's more straightforward
35264
35265 2004-08-11 07:44  pbartok
35266
35267         * AccessibleObject.cs:
35268           - Fixed to match ControlCollection rewrite
35269
35270 2004-08-11 07:43  pbartok
35271
35272         * ImageList.cs:
35273           - Added missing creation of the collection list
35274
35275 2004-08-10 20:08  jackson
35276
35277         * StatusBar.cs: Get the paint message from WndProc
35278
35279 2004-08-10 19:31  jackson
35280
35281         * ThemeWin32Classic.cs: Create Brushes as little as possible
35282
35283 2004-08-10 19:20  jackson
35284
35285         * UICues.cs: Add Flags attribute
35286
35287 2004-08-10 19:19  jackson
35288
35289         * StatusBarPanel.cs: Signature cleanup
35290
35291 2004-08-10 19:10  jackson
35292
35293         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
35294           Initial implementation of status bar item drawing
35295
35296 2004-08-10 17:27  jordi
35297
35298         * TrackBar.cs: add missing methods, properties, and restructure to
35299           hide extra ones
35300
35301 2004-08-10 16:24  jackson
35302
35303         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
35304           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
35305           attribute
35306
35307 2004-08-10 13:21  jordi
35308
35309         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
35310           enhancements and standarize on win colors defaults
35311
35312 2004-08-10 12:52  jackson
35313
35314         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
35315           ThemeWin32Classic.cs: Implement DrawItem functionality
35316
35317 2004-08-10 12:47  jordi
35318
35319         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
35320
35321 2004-08-10 12:32  jordi
35322
35323         * Control.cs: throw ontextchange event
35324
35325 2004-08-10 11:43  pbartok
35326
35327         * Control.cs:
35328           - Added more to the still unfinished Dock/Anchor layout code
35329
35330 2004-08-10 11:39  pbartok
35331
35332         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
35333           - Added GetWindowPos method
35334
35335 2004-08-10 11:36  pbartok
35336
35337         * XplatUIWin32.cs:
35338           - Implemented several methods
35339
35340 2004-08-10 09:47  jackson
35341
35342         * TrackBar.cs: Allow control to handle buffering
35343
35344 2004-08-10 09:41  jackson
35345
35346         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
35347
35348 2004-08-10 09:24  jackson
35349
35350         * Label.cs, LinkLabel.cs: Let Control handle buffering.
35351
35352 2004-08-10 09:09  jackson
35353
35354         * StatusBar.cs: Let Control handle all the buffering.
35355
35356 2004-08-10 09:08  jackson
35357
35358         * Control.cs: Control will now handle the buffering code, so each
35359           control does not have to implement this.
35360
35361 2004-08-10 08:34  jackson
35362
35363         * XplatUIDriver.cs: Use default colors from the theme
35364
35365 2004-08-09 17:12  pbartok
35366
35367         * ImageList.cs:
35368           - Fixed several bugs Ravindra pointed out
35369
35370 2004-08-09 16:11  pbartok
35371
35372         * Control.cs:
35373           - Added incomplete dock layout code
35374           - Added support for mouse wheel
35375
35376 2004-08-09 16:09  pbartok
35377
35378         * XplatUIX11.cs:
35379           - Added handling for middle and right mousebutton
35380           - Added handling for mouse wheel
35381           - Added handling for key state and mouse state and position
35382           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
35383           messages
35384
35385 2004-08-09 15:40  jackson
35386
35387         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
35388           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
35389           checkin
35390
35391 2004-08-09 15:37  jackson
35392
35393         * StatusBar.cs: Initial implementation of StatusBar
35394
35395 2004-08-09 15:36  jackson
35396
35397         * ITheme.cs: Add support for drawing status bar and getting status
35398           bar item sizes
35399
35400 2004-08-09 15:35  pbartok
35401
35402         * MouseButtons.cs:
35403           - Fixed values
35404
35405 2004-08-09 15:34  jackson
35406
35407         * ThemeWin32Classic.cs: Add support for drawing status bar and get
35408           status bar item sizes
35409
35410 2004-08-09 15:21  jackson
35411
35412         * ThemeWin32Classic.cs: Use known colors for default control
35413           colours
35414
35415 2004-08-09 15:12  jackson
35416
35417         * ThemeWin32Classic.cs: Make the default font static, it is static
35418           in control so this doesn't change functionality and creating fonts
35419           is sloooooow.
35420
35421 2004-08-09 14:56  pbartok
35422
35423         * X11Structs.cs:
35424           - Added GrabMode enum
35425
35426 2004-08-09 14:55  pbartok
35427
35428         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35429           - Removed Run method, was only required for initial development
35430
35431 2004-08-09 14:51  pbartok
35432
35433         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35434           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
35435           capture
35436
35437 2004-08-09 13:48  pbartok
35438
35439         * XplatUIX11.cs:
35440           - Fixed default sizing for child windows
35441
35442 2004-08-09 12:56  pbartok
35443
35444         * XplatUIX11.cs:
35445           - Added generation of WM_DESTROY message
35446           - Added handling of window manager induced shutdown
35447
35448 2004-08-09 11:31  jackson
35449
35450         * ThemeWin32Classic.cs: New names for control properties
35451
35452 2004-08-09 11:25  jackson
35453
35454         * Control.cs: Use new color names
35455
35456 2004-08-09 11:02  jackson
35457
35458         * XplatUI.cs: Get default window properties from the theme
35459
35460 2004-08-09 11:01  jackson
35461
35462         * ITheme.cs: The theme engine now controls default window
35463           properties
35464
35465 2004-08-09 11:00  jackson
35466
35467         * ThemeWin32Classic.cs: Add default window color properties
35468
35469 2004-08-09 10:17  jackson
35470
35471         * ThemeWin32Classic.cs: Use correct default back color
35472
35473 2004-08-09 10:05  jackson
35474
35475         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
35476           the theme now.
35477
35478 2004-08-09 09:56  jackson
35479
35480         * XplatUI.cs: Remove defaults, these are handled by the theme now.
35481
35482 2004-08-09 09:54  jackson
35483
35484         * Control.cs: Get default properties from the theme.
35485
35486 2004-08-09 09:53  jackson
35487
35488         * ITheme.cs: Themes now handle default control properties
35489
35490 2004-08-09 09:53  jackson
35491
35492         * ThemeWin32Classic.cs: Themes now handle default control
35493           properties so coloring will be consistent
35494
35495 2004-08-08 16:54  jordi
35496
35497         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
35498
35499 2004-08-08 15:08  jordi
35500
35501         * XplatUIX11.cs: fixes keyboard crash
35502
35503 2004-08-08 13:47  jordi
35504
35505         * Label.cs: add cvs header info
35506
35507 2004-08-08 12:09  jackson
35508
35509         * ThemeWin32Classic.cs: Add pen_buttonface
35510
35511 2004-08-08 11:52  jordi
35512
35513         * Label.cs, LinkLabel.cs: [no log message]
35514
35515 2004-08-08 11:34  jordi
35516
35517         * ThemeWin32Classic.cs: Use Windows Standard Colours
35518
35519 2004-08-07 17:32  jordi
35520
35521         * TrackBar.cs: throw exceptions of invalid enums values
35522
35523 2004-08-07 17:31  jordi
35524
35525         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
35526           draw method name
35527
35528 2004-08-07 16:56  jackson
35529
35530         * HorizontalAlignment.cs: Initial checkin
35531
35532 2004-08-07 13:16  jordi
35533
35534         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
35535           methods
35536
35537 2004-08-07 13:05  jordi
35538
35539         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
35540           GetSysColor defines
35541
35542 2004-08-06 18:01  pbartok
35543
35544         * ThemeWin32Classic.cs:
35545           - Fixed some rounding issues with float/int
35546
35547 2004-08-06 18:00  jackson
35548
35549         * DockStyle.cs, AnchorStyles.cs:
35550
35551                   Add flags and serializable attributes.
35552
35553 2004-08-06 17:46  pbartok
35554
35555         * XplatUIX11.cs:
35556           - Implemented GetParent
35557
35558 2004-08-06 17:18  pbartok
35559
35560         * TrackBar.cs:
35561           - Fixed some rounding issues with float/int
35562
35563 2004-08-06 17:17  pbartok
35564
35565         * X11Structs.cs, XplatUIX11.cs:
35566           - Fixed Refresh and Invalidate
35567
35568 2004-08-06 15:30  pbartok
35569
35570         * Control.cs, X11Structs.cs, XplatUIX11.cs:
35571           - Fixed recursive loop when resizing
35572           - Improved/fixed redrawing on expose messages
35573
35574 2004-08-06 09:53  jordi
35575
35576         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
35577           keyboard navigation
35578
35579 2004-08-06 08:02  pbartok
35580
35581         * X11Structs.cs, XplatUIX11.cs:
35582           - Fixed reparenting
35583           - Fixed window border creation
35584
35585 2004-08-05 15:38  pbartok
35586
35587         * XplatUIX11.cs:
35588           - Attempted fix for reparenting problems
35589
35590 2004-08-04 15:14  pbartok
35591
35592         * Control.cs:
35593           - Fixed Invalidation bug (calculated wrong client area)
35594           - Added ClientSize setter
35595
35596 2004-08-04 15:13  pbartok
35597
35598         * Form.cs:
35599           - Added AutoScale properties
35600
35601 2004-08-04 15:13  pbartok
35602
35603         * SWF.csproj:
35604           - Added latest files
35605
35606 2004-08-04 14:11  pbartok
35607
35608         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35609           XplatUIX11.cs:
35610           - Added Invalidate handling
35611
35612 2004-08-03 17:09  jordi
35613
35614         * XplatUIDriver.cs: fixes spelling mistake
35615
35616 2004-07-27 09:53  jordi
35617
35618         * TrackBar.cs: fixes trackbar events, def classname, methods
35619           signature
35620
35621 2004-07-27 09:29  jordi
35622
35623         * ScrollBar.cs: fixes scrollbar events
35624
35625 2004-07-27 04:38  jordi
35626
35627         * Control.cs: changes to be able to run winforms samples
35628
35629 2004-07-26 11:42  jordi
35630
35631         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
35632           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
35633
35634 2004-07-26 05:41  jordi
35635
35636         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
35637           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
35638           implementation
35639
35640 2004-07-22 09:22  jordi
35641
35642         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
35643           check link overlapping, implement events, and fixes
35644
35645 2004-07-21 10:28  jordi
35646
35647         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
35648
35649 2004-07-21 10:19  jordi
35650
35651         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
35652           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
35653           LinkLabelLinkClickedEventArgs.cs,
35654           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
35655           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
35656           implementation
35657
35658 2004-07-19 13:09  jordi
35659
35660         * Control.cs, Label.cs: label control re-written: added missing
35661           functionlity, events, and properties
35662
35663 2004-07-19 10:49  jordi
35664
35665         * Control.cs: fixes SetBounds logic
35666
35667 2004-07-19 01:29  jordi
35668
35669         * Control.cs: Call RefreshWindow only if the window has created
35670
35671 2004-07-15 14:05  pbartok
35672
35673         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
35674           - Implemented ImageList and ImageList.ImageCollection classes
35675           - Added ColorDepth enumeration
35676           - Updated SWF VS.Net project
35677
35678 2004-07-15 11:06  jordi
35679
35680         * XplatUIStructs.cs: added MsgButons enum
35681
35682 2004-07-15 11:03  jordi
35683
35684         * Control.cs: added basic mouse handeling events
35685
35686 2004-07-15 03:38  jordi
35687
35688         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
35689           Vertical TrackBar control implementation
35690
35691 2004-07-13 09:33  jordi
35692
35693         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
35694
35695 2004-07-13 09:31  jordi
35696
35697         * Control.cs, Form.cs: commit: new properties and fixes form size
35698           problems
35699
35700 2004-07-09 14:13  miguel
35701
35702         * ProgressBar.cs: Spelling
35703
35704 2004-07-09 11:25  pbartok
35705
35706         * ProgressBar.cs:
35707           - Removed usage of Rectangle for drawing. Miguel pointed out it's
35708           faster
35709
35710 2004-07-09 11:17  miguel
35711
35712         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
35713
35714                 * ProgressBar.cs: Fixed spelling for `block'
35715
35716                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
35717                 style guidelines.
35718
35719                 Avoid using the += on rect.X, that exposed a bug in the compiler.
35720
35721 2004-07-08 23:21  pbartok
35722
35723         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
35724           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
35725           BaseCollection.cs, Binding.cs, BindingContext.cs,
35726           BindingMemberInfo.cs, BindingsCollection.cs,
35727           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
35728           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
35729           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
35730           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
35731           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
35732           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
35733           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
35734           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
35735           FrameStyle.cs, GiveFeedbackEventArgs.cs,
35736           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
35737           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
35738           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
35739           InputLanguageChangedEventArgs.cs,
35740           InputLanguageChangedEventHandler.cs,
35741           InputLanguageChangingEventArgs.cs,
35742           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
35743           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
35744           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
35745           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
35746           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
35747           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
35748           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
35749           QueryAccessibilityHelpEventArgs.cs,
35750           QueryAccessibilityHelpEventHandler.cs,
35751           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
35752           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
35753           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
35754           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
35755           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
35756           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
35757           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
35758           XplatUIX11.cs, lang.cs:
35759           - Initial check-in
35760
35761