c74f1e6cb19970f68d563e28a854b64ca4391418
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
2
3         * InternalWindowManager.cs: HandleSizing: Implemented a better minimum
4         tracking size for tool windows.
5         * Theme.cs, ThemeWin32Classic.cs : Extracted
6         ManagedWindowSpacingAfterLastTitleButton.
7
8 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
9
10         * ThemeEngine.cs: Remove the clearlooks, nice, and old gtk themes.
11         They are bit-rotted and have always been listed as "unsupported".
12
13 2008-07-11  Jonathan Pobst  <monkey@jpobst.com>
14
15         * PictureBox.cs: Don't crash if ImageLocation is set to "" or null.
16
17 2008-07-11  George Giolfan  <georgegiolfan@yahoo.com>
18
19         * ThemeVisualStyles.cs: Fixed minimized window height adjustment.
20
21 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
22
23         * ListBox.cs: Make sure last_item_visible gets reset before we try
24         to do a layout due to scrollbars appearing or disappearing.
25         [Fixes bug #408139]
26
27 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
28
29         * XPlatUIWin32.cs: Change GetMenuOrigin to calculate borders better
30         for different window themes.  [Fixes bug #339140]
31
32 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
33
34         * ThemeWin32Classic.cs: Implemented minimized window border width properly,
35         in ManagedWindowBorderWidth.
36
37 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
38
39         * InternalWindowManager.cs: Change MouseMove to take a point, so
40         we can use the same point later on.
41         * MdiWindowManager.cs: Store point sent to MouseMove so we can
42         later reset to it.  On Windows, the Cursor.Position had already
43         changed by the time we were resetting to it.
44         [Fixes bug #363239]
45
46 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
47
48         * InternalWindowManager.cs: Ignore mouse actions on TitleButtons that
49         are inactive.
50         * ThemeWin32Classic.cs: Disable or hide MinimizeBox/MaximizeBox if
51         user requested it.
52         [Fixes bug #398686]
53
54 2008-07-10  Jonathan Pobst  <monkey@jpobst.com>
55
56         * MdiWindowManager.cs: Double-clicking on the title bar should not
57         maximize a MDI form if MaximizeBox = false.
58
59 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
60
61         * ThemeVisualStyles.cs: Fixed a warning.
62
63 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
64
65         * ThemeVisualStyles.cs: Fixed warnings and formatted.
66
67 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
68
69         * ThemeVisualStyles.cs: Removed ManagedWindowGetMenuButtonSize. The base
70         implementation produces a better result.
71
72 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
73
74         * ThemeVisualStyles.cs: Adjusted height and border rendering for minimized
75         windows.
76
77 2008-07-10  George Giolfan  <georgegiolfan@yahoo.com>
78
79         * Application.cs: Added VisualStylesEnabled because XplatUI.ThemesEnabled
80         cannot be used from the ThemeEngine constructor.
81         * ThemeEngine.cs: Changed the XplatUI.ThemesEnabled check to
82         Application.VisualStylesEnabled because it does not work on X11.
83
84 2008-07-09  Jonathan Pobst  <monkey@jpobst.com>
85
86         * StatusBar.cs: Apply patch from Andy Hume to remove lazy instantiation
87         that we did not always check for, as well as fixes to the IList
88         implementations.  [Fixes bug #402703]
89
90 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
91
92         * IDeviceContext.cs: Added Dispose.
93
94 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
95
96         * Control.cs: Added OnSizeInitializedOrChanged.
97         * Form.cs: OnLoadInternal: Added a call to
98         Control.OnSizeInitializedOrChanged.
99         * InternalWindowManager.cs:
100          * HandleTitleBarMouseMove: No longer invalidates the parent window.
101          * DrawTitleButton: Extracted Theme.ManagedWindowDrawMenuButton.
102          * TitleButton: Added Entered.
103          * TitleButtons.MouseMove: Added handling of TitleButton.Entered.
104         * MdiWindowManager.cs:
105          * HandleTitleBarMouseMove: Now invalidates the parent window when a mouse
106          move over the maximized title buttons causes a change.
107          * IsActive: Can now be called before the window is added to a MDI parent.
108         * Theme.cs: Added ManagedWindowTitleButtonHasHotElementStyle,
109         ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
110         * ThemeVisualStyles.cs: Implemented proper managed window rendering.
111         * ThemeWin32Classic.cs:
112          * Extracted ManagedWindowDrawTitleBarAndBorders, ManagedWindowDrawTitleButton.
113          * DrawTitleButton takes a new form parameter.
114          * Added ManagedWindowTitleButtonHasHotElementStyle,
115          ManagedWindowDrawMenuButton, ManagedWindowOnSizeInitializedOrChanged.
116
117 2008-07-09  George Giolfan  <georgegiolfan@yahoo.com>
118
119         * ThemeEngine.cs: ThemeVisualStyles is now selected if
120         Application.EnableVisualStyles has been called, even if the current system
121         configuration does not support rendering with Visual Styles.
122         * ThemeVisualStyles.cs: Now falls back to ThemeWin32Classic when Visual
123         Styles should not be used.
124
125 2008-07-08  Jonathan Pobst  <monkey@jpobst.com>
126
127         * ComboBox.cs: PreferredHeight is not tied to ItemHeight.  Fixes 3rd
128         ComboBox in FormsTest.
129
130 2008-07-08  Ivan N. Zlatev  <contact@i-nz.net>
131
132         * ThemeWin32Classic.cs: (ManagedWindowBorderWidth): width 3 is only 
133         for fixed toolwindows.
134
135 2008-07-08  George Giolfan  <georgegiolfan@yahoo.com>
136
137         * Form.cs: SetBoundsCore: Added minimum size for minimized windows.
138
139 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
140
141         * Control.cs: CreateControl just returns if the Control is diposed 
142         and doesn't throw ObjectDisposedException.
143         [Fixes bug #406566]
144
145 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
146
147         * Control.cs: Do not create the control if the parent isn't created 
148         yet, e.g in the case of a parented form on which .Show is called.
149         It will be created when the parent is made visible/created.
150         Improves #402446.
151
152 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
153
154         * Form.cs: Avoid recursively calling OnSizeChanged due to recursive 
155         WM_WINDOWPOSCHANGED caused by the layouting code on win32.
156         [Fixes bug #406786]
157
158 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
159
160         * Form.cs: When disposed set owner to null. Improves #402446.
161
162 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
163
164         * Form.cs, FlowLayoutPanel.cs: When calculating the PreferredSize 
165         use children's PreferredSize if in AutoSize mode and ExplicitBounds 
166         if not.
167         * Form.cs: Take the Padding into account for the PreferredSize.
168         [Fixes bug #402849]
169
170 2008-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
171
172         * TabControl.cs: Since we don't support more than one direction in
173         TabControl rows alignment (this is, the row becomes the
174         bottom row when selected), make Direction return always 1. This way
175         the layout doesn't get confused about a bad calculation.
176         Fixes #399582.
177
178 2008-07-07  Ivan N. Zlatev  <contact@i-nz.net>
179
180         * XplatUIX11.cs: Implement NC hit-testing for mouse down/up messages, 
181         so that the wparam is properly set.
182         Fixes form moving in the test case in bug 402446.
183
184 2008-07-07  Jonathan Pobst  <monkey@jpobst.com>
185
186         * FolderBrowserDialog.cs: If we can't find the SelectedPath, display
187         the full tree instead of nothing.  [Improves bug #406584]
188
189 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
190
191         * ThemeWin32Classic.cs: Adjusted minimized window painting.
192
193 2008-07-07  George Giolfan  <georgegiolfan@yahoo.com>
194
195         * InternalWindowManager.cs: No longer draws decorations for maximized MDI
196         children.
197
198 2008-07-04  Jonathan Pobst  <monkey@jpobst.com>
199
200         * TreeView.cs: Add a null check when using CollapseAll on an
201         empty tree.  [Fixes bug #406449]
202
203 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
204
205         * Form.cs: Make OnMenuComplete internal so we can call it.
206         * MenuAPI.cs: Raise Form.MenuComplete when a menu item is clicked.
207         [Fixes bug #399321]
208
209 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
210
211         * TabControl.cs: Handle Up and Down keys when TabControl is in
212         vertical alignment.
213         [Fixes bug #399585]
214
215 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
216
217         * TabControl.cs: Invalidate when we remove a tab.  Guard against
218         an AOORE when trying to remove a tabpage that is not owned by the
219         parent control.
220         [Fixes bug #399927]
221
222 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
223
224         * ScrollBar.cs: Change the LargeChange calculation to be correct.
225         Ensure we are using LargeChange instead of large_change so we our
226         calculations are correct.
227         [Fixes bug #403122]
228
229 2008-07-03  Jonathan Pobst  <monkey@jpobst.com>
230
231         * TableLayoutPanel.cs: When we change to a serialized TableLayoutSettings,
232         we need to ensure the ColumnCount/RowCount gets set.
233         [Fixes bug #404851]
234
235 2008-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
236
237         * ListBox.cs: When handling item navigation, if selection mode is
238         None, call EnsureVisible, since scrolling is normally handled by
239         selection, that we are not calling in this case.
240         Fixes #398345.
241
242 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
243
244         * ContainerControl.cs: Apply a patch from Ernesto Carrea that adds
245         a null check to our focus walking code.  [Fixes bug #394332]
246
247 2008-07-02  Andy Hume <andyhume32 at yahoo dot co dot uk>
248
249         * ComboBox.cs: Case missed in bug 379596 "Support item
250         navigation by entering text": On _close_ drop-down select
251         the first item matching the text in the textbox.  [Fixes bug #397265]
252
253 2008-07-02  Jonathan Pobst  <monkey@jpobst.com>
254
255         * DataGridView.cs: Fix a crash when sorting by column headers, 
256         mentioned in bug #404841.  Remove some dead switch cases.
257
258 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
259
260         * ComboBox.cs:
261         * TextBox.cs: Implement AutoComplete support for ComboBox, which just
262         uses the AutoComplete support in the internal TextBox. Also TextBox
263         can store a reference to ComboBox, in case AutoCompleteSource is set
264         to ListItems (this is, ComboBox's items, and we don't want to pass an
265         additional collection).
266
267 2008-07-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
268
269         * ListViewItem.cs: Restore the initial value of bounds rect to
270         Rectangle.Empty, and is this value for Layout detection in virtual
271         mode. Fixes the tests.
272
273 2008-06-30  Jonathan Pobst  <monkey@jpobst.com>
274
275         * XPlatUI.cs: Remove references to "new" X11 backend.
276
277 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
278
279         * Control.cs: Add an internal virtual OnDragDropEnd method 
280         to allow controls such as ListBox, which depend on a sequence 
281         of MouseDown+Move+End events, to handle the lack of a MouseUp 
282         when a DnD operation is started in MouseDown.
283         * ListBox.cs: If a DnD operation is started in MouseDown we won't 
284         get a MouseUp, so reset our state whenever a DnD operation ends.
285
286 2008-06-28  Ivan N. Zlatev  <contact@i-nz.net>
287
288         * PropertyGrid.cs: Clear the root griditem first thing when 
289         new object/s is/are selected. Fixes some rare cases where 
290         the View will get a paint request and won't know that the 
291         grid is in the process of repopulating.
292
293 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
294
295         * XplatUIX11.cs, InternalWindowManager.cs: 
296         If WS_EX_TOOLWINDOW is set in the CreateParams for a form MS 
297         doesn't automagically update the FormBorderStyle, so we must 
298         double check the CreateParams explicitly to determine if the 
299         window is a toolwindow.
300         * ThemeWin32Classic.cs: Use InternalWindowManager.IsToolWindow 
301         instead of doing custom checks.
302
303         Fixes toolwindows for the test case in bug #402446
304
305 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
306
307         * Control.cs: Visibility of the control should be false 
308         when the handle is destroyed in WmDestroy and not immediately 
309         in Dispose(). This is effectively where the disposing process 
310         ends even though the control is marked as Disposed immediately 
311         after calling Dispose().
312         [Fixes bug #402446]
313
314 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
315
316         * PropertyGridTextBox.cs: Start monitoring the mouse clicks 
317         when the textbox gets focus.
318         [Fixes bug #402704]
319
320 2008-06-27  Ivan N. Zlatev  <contact@i-nz.net>
321
322         * PropertyGridTextBox.cs, PropertyGridView.cs: 
323          - Alt + Down should show the drop down editor.
324          - Focus the editor when showing it
325         [Fixes bug #402710]
326
327 2008-06-25  Jonathan Pobst  <monkey@jpobst.com>
328
329         * ThemeWin32Classic.cs: Fix from Andy for panel text for panels
330         that are not the first panel.
331         * StatusBar.cs: Ensure that the X coordinate of panels is always
332         stored.  Fix IList implementation of StatusBarPanelCollection to
333         call the regular methods.
334         [Fixes bug #403599, #402165]
335
336 2008-06-23  Jonathan Pobst  <monkey@jpobst.com>
337
338         * ThemeWin32Classic.cs: Fix position calculation for centered
339         text on status bar panels.  [Fixes bug #402165]
340
341 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
342
343         * Splitter.cs: Fix Splitter to:
344          - Work for arbitrary splitter size
345          - Handle MinSize and MinExtra properly
346          - Get rid of absolute positioning during drag and use relative
347          - Multiple other fixes 
348          [Fixes bug #338966]
349
350 2008-06-22  Ivan N. Zlatev  <contact@i-nz.net>
351
352         * Cursor.cs: Show shouldn't hide the cursor.
353
354 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
355
356         * ListViewItem.cs: When invalidating, add some extra space to bounds,
357         since focus rectangle and selection can add some space and need to
358         take into account those small offsets - specially in Details view.
359         * ListView.cs: Instead of invalidate using item Bounds directly, call
360         item.Invalidate, to have the code centralized.
361         Fixes focused/selection garbage when selecting and deselecting items
362         that are close.
363
364 2008-06-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
365
366         * ListViewItem.cs: Set bounds initially to -1 values - thus in virtual
367         mode we can check whether we have to force a Layout or not, and can
368         cache based on this, instead of avoiding caching all the the time. Do
369         this check in GetBounds and TextBounds.
370         Fixes selection in Details view.
371
372 2008-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
373
374         * ListView.cs: Make HeaderControl internal, thus the theme engine can
375         get its *real* height instead of trying to infere it.
376         * ThemeWin32Classic.cs: When drawing gridlines, don't iterate over the items to
377         get the position of them, since it's in general a bad idea in general,
378         and because we can't do that in virtual mode. Instead get the first
379         visible item as well as item height, and draw them.
380         Fixes #400390.
381
382 2008-06-20  Jonathan Pobst  <monkey@jpobst.com>
383
384         * ToolStripSplitButton.cs: We can't add in extra width if
385         the button is not AutoSize.  [Fixes bug #401279]
386
387 2008-06-20  Ivan N. Zlatev  <contact@i-nz.net>
388
389         * PaddingConverter.cs: 
390          - Implement conversion to InstanceDescriptor
391          - Handle "All" in CreateInstance by using the supplied 
392          ITypeDescriptorContext.
393          [Fixes bugs #396076 and #396078]
394
395          Patch by Andy Hume  <andyhume32@yahoo.co.uk>
396          Code contributed under MIT/X11 license.
397
398 2008-06-19  Andy Hume <andyhume32 at yahoo dot co dot uk>
399
400         * ComboBox.cs, ListControl.cs, Control.cs, Button.cs, 
401         ButtonBase.cs:
402         Add Category attributes.
403         Code is contributed under the MIT/X11 license.
404
405 2008-06-18  Ivan N. Zlatev  <contact@i-nz.net>
406
407         * Form.cs: 
408          - Fix a NRE when unparenting a form.
409          - Do not recreate or destroy a parented form when 
410         unparenting. 
411
412 2008-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
413
414         * TextBox.cs: Implement basic support for AutComplete with custom
415         sources.
416
417 2008-06-18  Jonathan Pobst  <monkey@jpobst.com>
418
419         * ToolStripSplitButton.cs: Left and Top of ButtonBounds, SplitterBounds,
420         DropDownButtonBounds should be from the origin of the button, not the
421         ToolStrip.  [Fixes bug #401279]
422
423 2008-06-16  Sandy Armstrong <sanfordarmstrong@gmail.com> 
424
425         * X11DesktopColors.cs: Clear GTK_MODULES environment variable before
426           running gtk_init_check.  This prevents GAIL from loading
427           unnecessarily, which was breaking UIA support.  Initial fix for bug
428           #375987.
429         * Application.cs: Add UIA support to Winforms.  New static constructor
430           uses reflection to initialize UIAutomationWinforms assembly.  Added
431           PreRun event so UIA can initialize before the mainloop starts, and
432           FormAdded event so UIA can provide a11y support for new Forms in an
433           Application.
434
435 2008-06-16  Jonathan Pobst  <monkey@jpobst.com>
436
437         * DataGridView.cs: When binding to a dataset, subscribe to table
438         and column change events.  Unsubscribe to these when we clear bindings.
439         [Fixes bug #399601]
440
441 2008-06-14  Everaldo Canuto  <ecanuto@novell.com>
442
443         [DataGrid drawing refactory]
444
445         * DataGrid.cs: Fix the caption size, we need one pixel more for divider.
446
447         * DataGridColumnStyle.cs: Removing PaintHeader code, the draw operations
448         must be handle by Theme, now it call DataGridPaintColumnHeader.
449
450         * DataGridTextBoxColumn.cs: Fix the textbox size. It must be one pixel less,
451         test cases must be also fixed because it checks for wrong size.
452
453         * ThemeWin32Classic.cs: 
454                 - Draw the bottom line of grid caption.
455                 - Prevent to draw caption text when it is empty.
456                 - Use CPDrawBorder3D for 3D efects to simplify code.
457                 - Uses 3D (when not flat) to paint corner shared between row and column
458                 header.
459                 - Fix header drawing issues on win32, now borders are drawing.
460                 - Fix column header paint issues to mimic win32.
461                 - Adjust header drawing for last column, like first one it must be draw
462                 different.
463                 - Added DataGridPaintRowHeaderStar to draw star like .net does, it is
464                 not an character.
465                 - DataGridPaintColumnHeader created to draw column headers, it also
466                 paint stuff right on Win32.
467                 - Use DataGridPaintColumnHeader method instead of DataGridColumnStyle 
468                 class.
469
470         * Theme.cs: 
471                 - DataGridPaintRowHeaderStar method added.
472                 - DataGridPaintColumnHeader method added.
473
474 2008-06-13  Jonathan Pobst  <monkey@jpobst.com>
475
476         * Control.cs: Don't reset to Dock style layout if DockStyle is
477         set to none.  [Fixes bug #399316]
478
479 2008-06-12  Everaldo Canuto  <ecanuto@novell.com>
480
481         * Win32DnD.cs: Fix the check for control not equal null.
482         Fixes bug #341420 and #381886. 
483
484 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
485
486         * DataGridViewRowCollection.cs: Update the indexes of rows after
487         one has been removed.
488         * DataGridViewSelectedRowCollection.cs: Add internal clear method.
489         * DataGridViewSelectedColumnCollection.cs: Add internal clear method.
490         * DataGridView.cs: Add support for deleting rows via Delete key, deleting
491         rows for the Rows collection, or deleting rows from the bound DataSet.
492
493 2008-06-12  Jonathan Pobst  <monkey@jpobst.com>
494
495         * DataGridView.cs: Listen to a DataSet's changed event even
496         when autogeneratecolumns is false.  Refactor the changed event's
497         add row code to use the same as the existing add row code.
498         [Fixes bug #399601]
499
500 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
501
502         * TextBoxBase.cs: We need to call RaiseSelectionChanged pretty
503         much any time the caret moves and there is text, not just when
504         the selection changes as one would think.
505         * RichTextBox.cs: Override RaiseSelectionChanged and fire
506         SelectionChanged.
507         [Fixes bug #397271]
508
509 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
510
511         * FontDialog.cs: Forward ListBox keyboard events to the ListBox
512         instead of trying to duplicate the code.
513         * ListBox.cs: Make method internal so we can send keyboard events.
514         [Fixes bug #398344]
515         
516 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
517
518         * TextBoxBase.cs: When pasting and checking the max length,
519         subtract the selected text length (the text we will be replacing) from
520         the document length.
521         * TextControl.cs: Ensure every character insertion is reflected in
522         charcount, so max length will work properly.
523         [Fixes bug #398605]
524
525 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
526
527         * ListBox.cs: Ensure scrollbars are updated when a single
528         column listbox with an already set top-index is created.
529         [Fixes bug #398342]
530
531 2008-06-11  Jonathan Pobst  <monkey@jpobst.com>
532
533         * FontDialog.cs: Typing in the font/style textboxes should search
534         the list boxes case-insensitively.  [Fixes bug #398343]
535
536 2008-06-11  George Giolfan  <georgegiolfan@yahoo.com>
537
538         * ThemeWin32Classic.cs: Managed window title bar layout now uses actual
539         widths of icon and buttons instead of hard coded values.
540
541 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
542
543         * ListBox.cs: When SelectionMode is None, clicking an item should move focus
544         as well as generating a SelectedIndexChanged event, just like .Net does
545         -surprise-.
546         Fixes #398345.
547
548 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
549
550         * ListBox.cs: When navigating items visually, use FocusedItem as the
551         reference point instead of SelectedIndex, since even in
552         SelectionMode.None we need to support navigation, and in that case we
553         just can't use SelectedIndex.
554         Fixes part of #398345.
555
556 2008-06-10  Jonathan Pobst  <monkey@jpobst.com>
557
558         * Control.cs: Make a SetBoundsInternal that avoids the new
559         SetBounds code.
560         * ComboBox.cs, Form.cs, ListBox.cs, ScrollableControl.cs: Use
561         SetBoundsInternal instead of SetBoundsCoreInternal.
562
563 2008-06-10  Ivan N. Zlatev  <contact@i-nz.net>
564
565         * ScrollableControl.cs: Use SetBoundsCoreInternal instead of 
566         SetBounds for the scrollbars.
567
568 2008-06-10  Andreia Gaita <avidigal@novell.com> 
569
570         * HtmlDocument.cs: Implement RightToLeft, ContextMenuShowing,
571           FocusingEvent, LosingFocusEvent, OnMouseDown, OnMouseLeave,
572           OnMouseMove, OnMouseOver, OnMouseUp
573         * HtmlElement.cs: Optimize InsertBefore. Implement RemoveFocus,
574           ScrollIntoView, Focusing, GotFocus, LosingFocus, LostFocus.
575         * HtmlElementCollection.cs, HtmlWindowCollection.cs: Keep a reference
576           to the WebControl object to pass to new collection objects
577         * HtmlHistory.cs: Implement support for individual window histories.
578         * HtmlWindow.cs: Implement History, Position, Size, WindowFrameElement,
579           AttachEventHandler, DetachEventHandler, RemoveFocus, Error,
580           GotFocus, LostFocus, OnLoad, OnUnload
581         * WebBrowser.cs: Implement EncryptionLevel, ScrollBarsEnabled,
582           ContextMenu
583         * WebBrowserBase.cs: Implement Cursor, Enabled, UseWaitCursor, Add
584           security level changes and context menu event support.
585
586 2008-06-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
587
588         * ComboBox.cs: Pressing Enter should close the dropdown listbox, just
589         as happens with Esc, patch my Andy Hume.
590         Fixes #396294.
591
592 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
593
594         * MdiWindowManager.cs: DrawMaximizedButtons now uses
595         ManagedWindowGetMenuButtonSize instead of ManagedWindowButtonSize.
596         * Theme.cs: Made MenuButtonSize platform dependent. Added
597         ManagedWindowButtonSize.
598         * ThemeWin32Classic.cs: Added ManagedWindowGetMenuButtonSize.
599         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added MenuButtonSize.
600
601 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
602
603         * DateTimePicker.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs:
604         Added support for rendering with VisualStyles.
605
606 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
607
608         * ComboBox.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
609         support for rendering the border with VisualStyles.
610
611 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
612
613         * InternalWindowManager.cs: Added ShowIcon. Fixed IconRectangleContains when
614         the icon is not shown.
615         * ThemeWin32Classic.cs: Now uses InternalWindowManager.ShowIcon instead of
616         its own logic.
617
618 2008-06-10  George Giolfan  <georgegiolfan@yahoo.com>
619
620         * InternalWindowManager.cs: Draw minimized windows even if they don't have
621         borders.
622
623 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
624
625         * ComboBox.cs, ListBox.cs: Use SetBoundsInternalCore instead of SetBounds.
626
627 2008-06-09  Jonathan Pobst  <monkey@jpobst.com>
628
629         * Control.cs: Fill in the defaults for unspecified bounds in SetBounds.
630         [Fixes bug #397943]
631
632 2008-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
633
634         * ComboBox.cs: When snaping height -because of IntegralHeight set to
635         true- with ComboBoxStyle.Simple, set the height to PreferredHeight
636         if the requested height leaves the listbox area with *less* than the
637         required are to see one item. We were setting it to PreferredHeight
638         even for values matching the height for a single item.
639         Fixes #396297.
640
641 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
642
643         * DataGridViewCell.cs: Simplify GetInheritedStyle by using ApplyStyle.
644
645 2008-06-06  Jonathan Pobst  <monkey@jpobst.com>
646
647         * DataGridViewCell.cs: Use property instead of field.
648
649 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
650
651         * InternalWindowManager.cs, ThemeWin32Classic.cs: Removed useless Form.Icon
652         null checks.
653
654 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
655
656         * Theme.cs: Added #region around the managed window code. Made the managed
657         window methods abstract.
658         * ThemeWin32Classic.cs: Added #region around the managed window code.
659
660 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
661
662         * InternalWindowManager.cs: Now only calls Theme.DrawManagedWindowDecorations
663         if it has borders.
664         * ThemeWin32Classic.cs: Removed HasBorders checks in
665         DrawManagedWindowDecorations.
666
667 2008-06-06  George Giolfan  <georgegiolfan@yahoo.com>
668
669         * InternalWindowManager.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
670         Extracted ManagedWindowGetTitleBarIconArea.
671
672 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
673
674         * DataGridViewCellStyle.cs: Don't clone the font.
675
676 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
677
678         * DataGridViewCell.cs: Ensure we don't pass null to GetConverter.
679
680 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
681
682         * XplatUIX1..cs: Use IntPtr size instead of int, as wee need to work
683         also on 64 bit machinges. Fixes the BadWindow errors while scrolling
684         in 64 bit machines.
685
686 2008-06-05  Jonathan Pobst  <monkey@jpobst.com>
687
688         * DataGridViewCell.cs: Correctly get converters for FormattedValue.
689         Use Format/FormatProvider before trying converters.
690         * DataGridViewCellStyle.cs: ApplyStyle should only apply things that
691         are 'set'.  Change constructor to not use ApplyStyle since it wants
692         everything applied.  Clone the Font.
693         * DataGridViewRowHeaderCell.cs: Start with DefaultCellStyle and
694         ApplyStyle the rest.
695
696 2008-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
697
698         * ListView.cs: We need to calculate the scrollbars even if the handle
699         hasn't been created - this is needed when methods using scrollbars
700         info, such EnsureVisible, are called before control has been created.
701         Fixes #397272.
702
703 2008-06-05  George Giolfan  <georgegiolfan@yahoo.com>
704
705         * ThemeVisualStyles.cs: ScrollBar is now rendered with the VisualStyles API
706         only if the elements are defined. 
707
708 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
709
710         * ComboBox.cs: I'm an idiiot - forgot to commit the last ComboBox
711         section. Also, when setting bounds, snap height as well as save the
712         requested height if Dock has any value affecting the height: Left,
713         Right and Bottom - important if using IntegralHeight as true.
714
715 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
716
717         * ComboBox.cs: When calling UpdateComboBoxBounds, adjust the height
718         passed to SetBounds to reflect the new adjusted height (Integral-wise), 
719         instead of doing that only in our SetBoundsCore override, since the 
720         bounds cached can be the same as saved one and we could not get the
721         new height applied.
722         Fixes #396297.
723
724 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
725
726         * Theme.cs: Made ToolWindowCaptionButtonSize platform dependent.
727         * XplatUI.cs: Added ToolWindowCaptionButtonSize.
728         * XplatUIDriver.cs: Changed SmallCaptionButtonSize to 15,15. Added
729         ToolWindowCaptionButtonSize.
730         * XplatUIWin32.cs: Added ToolWindowCaptionButtonSize.
731
732 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
733
734         * MdiWindowManager.cs: Now uses SystemInformation.DoubleClickTime instead of
735         hard coded values.
736         * Theme.cs: Made DoubleClickTime plaform dependent.
737
738 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
739
740         * Theme.cs: Made ToolWindowCaptionHeight platform dependent.
741         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
742         ToolWindowCaptionHeight.
743
744 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
745
746         * InternalWindowManager.cs: The adjustment to ensure positive client area
747         sizes is now platform dependent (disabled on Windows).
748         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added
749         RequiresPositiveClientAreaSize.
750
751 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
752
753         * Form.cs: Fixed null handling in Icon (see SettingIconToNull in the tests).
754
755 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com>
756
757         * InternalWindowManager.cs: Changed IconicSize to use
758         SystemInformation.MinimizedWindowSize.
759         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinimizedWindowSize.
760         * XplatUIDriver.cs: Changed MinimizedWindowSize to provide a default value.
761
762 2008-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
763
764         * ComboBox.cs: If the combobox is anchored both on top and bottom,
765         adjust height if IntegralHeight is true when calling SetBoundsCore (as
766         likely the height was modified even if Height wasn't specified in
767         BoundsSpecified parameter).
768         Fixes part of #396297.
769
770 2008-06-04  George Giolfan  <georgegiolfan@yahoo.com> 
771
772         * InternalWindowsManager.cs: Changed minimum window size while resizing to
773         SystemInformation.MinWindowTrackSize.
774         * XplatUICarbon.cs, XplatUIX11.cs: Removed MinWindowTrackSize.
775         * XplatUIDriver.cs: Changed MinWindowTrackSize to provide a default value.
776
777 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
778
779         * MenuItem.cs: Fixed Dispose.
780
781 2008-06-03  George Giolfan <georgegiolfan@yahoo.com> 
782
783         * ColumnHeader.cs: CalcColumnHeader now uses the theme to get the height.
784         * DataGridView.cs: * EnableHeadersVisualStyles: Fixed default value.
785         EnteredHeaderCell, PressedHeaderCell: Added.
786         * DataGridViewCell.cs: Refactored: Extracted GetBorderPen.
787         * DataGridViewColumnHeaderCell.cs, DataGridViewRowHeaderCell.cs: Gave the
788         theme a chance to override default painting.
789         * ListView.cs: Added EnteredColumnHeader. Refactored: Extracted
790         GetColumnHeaderInvalidateArea, Invalidate(ColumnHeader).
791         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added members for
792         ListView and DataGridView header rendering.
793         
794 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
795
796         * RichTextBox.cs: GetPositionFromCharIndex should return the 
797         visual position of the character relative to the viewport.
798         [Fixes part of bug #396664]
799
800 2008-06-03  Ivan N. Zlatev  <contact@i-nz.net>
801
802         * GridEntry.cs: Make HasCustomEditor check for EditStyle != None 
803         and not just for the existance of an UITypeEditor. In some cases 
804         there is an editor associated just to do PaintValue, but which 
805         doesn't actually support editing.
806         [Fixes bug #396632]
807
808 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
809
810         * ComboBox.cs: page_size as well as vscrollbar.LargeChange should be 1
811         if needed, instead of 0 - this should help us in the corner case where
812         we have more than one item but we are only partially showing 1 item.
813         Fixes part of #374713.
814
815 2008-05-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
816
817         * XplatUiX11.cs: When scrolling and detecting the obscured areas in a
818         control, return immediately if the any parent control's handle hasn't
819         been created or isn't visible, as well as avoiding creating the parent
820         Form if the handle hasn't been previously created.
821         Fixes tests.
822
823 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
824
825         * TableLayoutPanel.cs: Use border sizes when calculating the
826         panel's preferred size.  [Fixes part of bug #396433]
827
828 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
829
830         * SplitContainer.cs:
831          - Fix SplitterDistance to update only if needed. 
832          - Make it force min and max validation.
833          - Handle properly mouse moves outside the resizeable area.
834          [Fixes bug #396232]
835
836 2008-06-02  Andreia Gaita <avidigal@novell.com> 
837
838         * WebBrowserBase.cs: Implement support for ScriptErrorsSuppressed
839           (which also suppresses all popup dialogs). Throw NotSupported
840           exceptions for activex getters/setters.
841         * WebBrowser.cs: Implement DocumentStream, DocumentType, IsBusy,
842           IsOffline, ReadyState, ScriptErrorsSuppressed, ScrollbarsEnabled,
843           StatusText, Version, GoSearch
844         * HtmlDocument.cs: Add DocType support
845
846 2008-06-02  Andy Hume  <andyhume32@yahoo.co.uk>
847
848         * TextBox.cs: Implement TextBoxAutoCompleteSourceConverter.
849         [Fixes bug 396124]
850
851 2008-06-02  Ivan N. Zlatev  <contact@i-nz.net>
852
853         * GridEntry.cs: Pass the ITypeDescriptorContext everywhere.
854
855 2008-06-02  Jonathan Pobst  <monkey@jpobst.com>
856
857         * TableLayoutPanel.cs: When calculating preferred size, use the
858         actual number of columns and rows, not what the user set them to.
859         [Fixes bug #396141]
860
861 2008-06-02  George Giolfan <georgegiolfan@yahoo.com> 
862
863         * Form.cs: Enabled managed handling of tool window MDI children. Fixes bug
864         394311.
865
866 2008-06-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
867
868         * XplatUIX11.cs: When detecting areas obscured in a control by other
869         toplevel windows while scrolling, return if the control hasn't a 
870         container form.
871         Fixes some tests.
872
873 2008-05-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
874
875         * XplatUIX11.cs: Properly detect the visible area of a control being
876         scrolled (obscured by other winforms controls and any X toplevel
877         windows), to mark as invalid the requested area to be scrolled that
878         isn't visible and thus can't be copied.
879         Fixes #324513.
880
881 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
882
883         * ListBox.cs: Compute the precise amount to vertically scroll when
884         using DrawMode.OwnerDrawVariable.
885         Patch by jkeymer (j.keymer@gmx.net).
886
887 2008-05-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
888
889         * ComboBox.cs: Use ListBox-like scrollbar values In ComboListBox 
890         to avoid setting an invalid value for the verticall scrollbar 
891         when navigating items. And, duh, also remove my silly debug messages
892         from previous commits.
893         Fixes #374713.
894
895 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
896
897         * FlatButtonAppearance.cs: Make FlatButtonAppearanceConverter exandable and 
898         make it MS compatible.
899
900 2008-05-30  Ivan N. Zlatev  <contact@i-nz.net>
901
902         * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs: 
903          - Allow the editing of entries even if their parent is read-only.
904          - Do not render expandable properties read-only.
905          - Refactor expansion checks form PropertyGrid into PropertyGrid.
906
907 2008-05-30  George Giolfan <georgegiolfan@yahoo.com> 
908
909         * ScrollBar.cs, Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs: Added
910         support for the hover style.
911
912 2008-05-29  Andreia Gaita <avidigal@novell.com> 
913
914         * ContainerControl.cs: Check for null dead-end when traversing the tree
915           of parent controls.
916         
917           [Fixes #394332, patch by Ernesto Carrea]
918
919 2008-05-29  Geoff Norton  <gnorton@novell.com>
920
921         * XplatUICarbon.cs: Fix a culture-dependent conversion to be the
922         constant that it is.  Fixes #393981
923
924 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
925
926         * Form.cs: Add a MonoTODO to the AutoScaleBaseSize setter explaining
927         that the user probably doesn't want to set this.
928
929 2008-05-29  Jonathan Pobst  <monkey@jpobst.com>
930
931         * ThemeWin32Classic.cs: Don't let the text size be bigger than
932         the control size for CheckBox/RadioBox.
933         [Fixes part of bug #394645]
934
935 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
936
937         * PropertyGrid.cs: Update the state of the sorting buttons in 
938         the toolbar if PropertySort is set programatically.
939
940 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
941
942         * GridItemCollection.cs: Add multiple items with conflicting names 
943         support and also preserve name ordering.
944         [Fixes #395345]
945
946 2008-05-29  Ivan N. Zlatev  <contact@i-nz.net>
947
948         * GridItemCollection.cs: Revert my multiple items with same 
949         name patch.
950
951 2008-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
952
953         * ScrollBar.cs: Scrollbars should only react to left-clicks, not right
954         or middle ones.
955         Fixes part of #393908.
956
957 2008-05-28  Jonathan Pobst  <monkey@jpobst.com>
958
959         * ToolStripDrowDown.cs: When using the Show () methods that have a
960         Control parameter, set the menu owner to that Control.
961         [Fixes bug #394345]
962
963 2008-05-28  Ivan N. Zlatev  <contact@i-nz.net>
964
965         * PropertyGridTextBox.cs, PropertyGridView.cs: Implement validation.
966         [Fixes bug #362756]
967
968 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
969
970         * GridItemCollection.cs: Refactor to support multiple items with the 
971         same name.
972         [Fixes bug #394314]
973
974 2008-05-27  Jonathan Pobst  <monkey@jpobst.com>
975
976         * Control.cs: The 2.0 check for illegal cross thread calls in 
977         Control.Handle were throwing an exception when we were getting
978         the Handle in order to invoke correctly.  Created a private
979         version that does not contain this check.
980         [Fixes bug #394531]
981
982 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
983
984         * PropertyGrid.cs: Respect DefaultTabType.
985
986 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
987
988         * ListView.cs: SPACE selects an item.
989         [Fixes bug #393023]
990
991 2008-05-27  Ivan N. Zlatev  <contact@i-nz.net>
992
993         * ListView.cs: Reset the search string whenever the items are 
994         modified.
995         [Fixes bug #393020]
996
997 2008-05-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
998
999         * ListControl.cs: For the first added item PositionChanged is fired
1000         _before_ ItemChanged, which leave us in a temporary invalid state - so
1001         we need to set the selected index from ItemChanged handler *if* we
1002         know that the first item has just been added *and* the items have been
1003         actually added to the ListControl.
1004         Fixes #369048.
1005
1006 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1007
1008         * TabControl.cs: Only clicks with the left button should be
1009         handled.
1010         Fixes #393908.
1011
1012 2008-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1013
1014         * ComboBox.cs: 
1015         * FIleDialog.cs:
1016         * TextBox.cs: Expose an internal method in TextBox to restore the
1017         original context menu, and call it from ComboBox to re-use it in the
1018         combobox containing the file name in FileDialog.cs.
1019         Fixes part of #393775.
1020
1021 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
1022
1023         * ThemeVisualStyles.cs: Added support for the hot ComboBox drop down button
1024         style.
1025
1026 2008-05-24  George Giolfan  <georgegiolfan@yahoo.com>
1027
1028         * ComboBox.cs, Theme.cs, ThemeWin32Classic.cs: Added support for the hot drop
1029         down button style.
1030
1031 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1032
1033         * ComboBox.cs: Minor correction to previous patch: PageDown should
1034         also *try* to move by one item if the computed offset is negative,
1035         just like the PageUp case.
1036
1037 2008-05-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1038
1039         * ComboBox.cs: When navigating using PageDown/PageUp the navigation
1040         should be done for at least 1 item, and not stay at the same item.
1041         Fixes part of #374713.
1042
1043 2008-05-23  Jonathan Pobst  <monkey@jpobst.com>
1044
1045         * FileDialog.cs: Add a FSEntryComparer, and use it to sort the
1046         directories.  [Fixes bug #393931]
1047
1048 2008-05-22  Andreia Gaita <avidigal@novell.com> 
1049
1050         * WebBrowser.cs: Implement DocumentText. Implement AllowNavigation.
1051           Don't fire events until the initial about:blank page has finished
1052           loading. Clean up events.
1053
1054 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
1055
1056         * XplatUIX11.cs : when we call WM_SETFOCUS, call X11Keyboard
1057           FocusIn() too. This should fix the issue on switching
1058           scim keyboards.
1059
1060 2008-05-22  Atsushi Enomoto  <atsushi@ximian.com>
1061
1062         * X11Keyboard.cs : set XIM font size to somewhat reasonable
1063           number (ideally the input textbox size, but that could be
1064           too messy).
1065
1066 2008-05-22  Jonathan Pobst  <monkey@jpobst.com>
1067
1068         * ToolStripTextBox.cs: List for the TextBox's TextChanged and fire
1069         the ToolStripItem's TextChanged.  [Fixes bug #393597]
1070
1071 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1072
1073         * TabControl.cs: When invalidating in SelectedIndex and we need to
1074         inflate to take into account the border of the tabs, make sure that
1075         the invalidated rect doesn't overflow the control bounds, since that
1076         would avoid updating at all.
1077
1078 2008-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1079
1080         * TabControl.cs: Don't substract scroller width from the row width,
1081         since we need to take into account the total width of the control when
1082         calculating the position of the tabs. This avoids showing scroller
1083         when it is actually not needed.
1084         Fixes part of #322325.
1085
1086 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
1087
1088         * ThemeVisualStyles.cs: Added support for TextBoxBase.
1089
1090 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
1091
1092         * RichTextBox.cs, TextBoxBase.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
1093         Extracted TextBoxBase.Draw and Theme.TextBoxBase*.
1094
1095 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
1096
1097         * DataGridView.cs: Only paint the top left header cell if there
1098         are columns.
1099
1100 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
1101
1102         * DataGridView.cs: When binding to a BindingSource, get the underlying
1103         list to bind to.  [Fixes bug #345483]
1104
1105 2008-05-21  Jonathan Pobst  <monkey@jpobst.com>
1106
1107         * DataGridView.cs: Do not bind to collection properties.
1108         [Fixes bug #337470]
1109
1110 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
1111
1112         * ThemeVisualStyles.cs: Added support for the hot TrackBar thumb style.
1113
1114 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
1115
1116         * Theme.cs, ThemeWin32Classic.cs, TrackBar.cs: Added support for the hot
1117         thumb style.
1118
1119 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
1120
1121         * ThemeVisualStyles.cs: Added support for ToolTip transparent background.
1122
1123 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
1124
1125         * Theme.cs, ThemeWin32Classic.cs, ToolTip.cs: Added support for transparent
1126         background.
1127
1128 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
1129
1130         * ThemeVisualStyles.cs: Added support for ToolBar hot and hot checked styles.
1131
1132 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
1133
1134         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs: Added support for hot and hot
1135         checked styles.
1136
1137 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
1138
1139         * TabControl.cs: Extended to handle the hot style.
1140
1141 2008-05-21  George Giolfan  <georgegiolfan@yahoo.com>
1142
1143         * Theme.cs, ThemeVisualStyles.cs, ThemeWin32Classic.cs, UpDownBase.cs:
1144         Extended UpDownBase code to handle hot and disabled styles.
1145
1146 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
1147
1148         * DataGridView.cs: Handle databinding to generic list type things.
1149         [Fixes bug #325239]
1150
1151 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
1152
1153         * DataGridViewCellCollection.cs: Add a method to find the cell
1154         with the given DataPropertyName.
1155         * DataGridViewColumn.cs: Track if the column was autogenerated or not.
1156         * DataGridViewColumnCollection.cs: Add a method to clear all
1157         autogenerated columns.
1158         * DataGridView.cs: If AutoGenerateColumns is false, don't autogenerate
1159         columns.
1160         [Fixes bug #348082]
1161
1162 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
1163
1164         * DataGridView.cs: Don't try to update the RowTemplate with
1165         a null CellTemplate.
1166
1167 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
1168
1169         * DataGridViewColumn.cs: Allow IsDataBound to be set internally.
1170         * DataGridViewColumnCollection.cs: Ensure OnColumnAdded is called.
1171         * DataGridView.cs: Lots of fixes/enhancements to databinding to
1172         a DataSet.
1173
1174 2008-05-20  Jonathan Pobst  <monkey@jpobst.com>
1175
1176         * Control.cs: Remove invalidating implicit child controls when
1177         control is invalidated.  It was causing too many redraws on
1178         controls with implicit scrollbars.
1179         * ListView.cs: Listen to the Invalidated event and invalidate
1180         child controls.
1181
1182 2008-05-20  Andreia Gaita <avidigal@novell.com> 
1183
1184         * WebBrowserBase.cs, WebBrowser.cs: Hook up page loading events
1185         * HtmlDocument.cs: Check for nulls
1186
1187 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1188
1189         * Control.cs: In ControlCollection.RemoveInternal, remove the
1190         internal control before calling PerformLayout and OnControlRemoved,
1191         which was leaving us in an invalid state and causing a X error (bad
1192         match). Observe that Remove () call has the same order.
1193         Fixes an X error changing ComboBoxStyle.DropDownStyle.
1194
1195 2008-05-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1196
1197         * TabControl.cs: Don't paint by ourselved and instead let OnPaint
1198         being fired if ControlStyles.UserPaint style is activated.
1199         Fixes #371905.
1200
1201 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
1202
1203         * GridEntry.cs: Don't be so strict when setting the value - 
1204         do not check if what we set is what we get.
1205         [Fixes bug #389245]
1206
1207 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
1208
1209         * XplatUIX11.cs: If there are no timers timeout should be 0
1210         [Fixes bug #363522]
1211
1212 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
1213
1214         * Control.cs: As a followup to invalidating implicit children when
1215         a control is invalidated, only invalidate them if they are in the
1216         clip rectangle.
1217
1218 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
1219
1220         * ThemeVisualStyles.cs: Implemented partial support for ToolTip.
1221
1222 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
1223
1224         * ThemeWin32Classic.cs: Refactored: Extracted ToolTipDrawBackground.
1225
1226 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
1227
1228         * GroupBoxRenderer.cs: Fixed text area clipping in the Visual Styles case.
1229         * XplatUIWin32.cs: Made Win32DeleteObject public.
1230
1231 2008-05-19  Ivan N. Zlatev  <contact@i-nz.net>
1232
1233         * GridEntry.cs: Determine HasDefaultValue more strictly by using 
1234         PropertyDescriptor.ShouldSerializeValue.
1235         [Fixes bug #391924]
1236
1237 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
1238
1239         * ThemeVisualStyles.cs: Enabled support for ScrollBar element styles not present
1240         in the classic theme.
1241
1242 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
1243
1244         * ScrollBar.cs: Added FirstButtonEntered, SecondButtonEntered, ThumbEntered,
1245         ThumbPressed.
1246         * Theme.cs, ThemeWin32Classic.cs: Added ScrollBarHasHotElementStyles,
1247         ScrollBarHasPressedThumbStyle.
1248
1249 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
1250
1251         * TextRenderer.cs: Included some methods in the 1.1 profile.
1252
1253 2008-05-19  Jonathan Pobst  <monkey@jpobst.com>
1254
1255         * Control.cs: When we make a control visible, it may have been
1256         previously visible and while it wasn't visible, the z-order of
1257         things may have been shuffled, so the control needs to have its
1258         z-order updated just in case.  [Fixes bug #391518]
1259
1260 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
1261
1262         * ThemeVisualStyles.cs: Added support for GroupBox.
1263
1264 2008-05-19  George Giolfan  <georgegiolfan@yahoo.com>
1265
1266         * GroupBoxRenderer.cs: Included in the 1.1 profile.
1267
1268 2008-05-16  Atsushi Enomoto  <atsushi@ximian.com>
1269
1270         * XplatUIX11.cs, X11Keyboard.cs : redoing r103060 with fix for
1271           bug #389996; XSelectInput() behaved as mouse handler robber,
1272           so remove extra call to it.
1273
1274 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
1275
1276         * Control.cs: Simplify ControlCollection.Contains method.
1277
1278 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
1279
1280         * DataGridViewRow.cs: Implement GetPreferredSize.
1281
1282 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
1283
1284         * DataGridViewComboBoxCell.cs: Don't declare text twice.  Fixes build.
1285
1286 2008-05-15  Jonathan Pobst  <monkey@jpobst.com>
1287
1288         * DataGridViewComboBoxCell.cs: Implement some NIEX stuffs, better
1289         painting and edit control fixes.
1290
1291 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
1292
1293         * DataGridView.cs, DataGridViewCell.cs: Work around some external
1294         checks to make sure we are in an actual row/col for top left header cell.
1295         * DataGridViewTopLeftHeaderCell.cs: Implement some NIEX's.
1296
1297 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
1298
1299         * Control.cs: Use long instead of int when handling WParam from
1300         mousewheel scrolling.  Int was overflowing on Win64.
1301
1302 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
1303
1304         * FlowLayoutPanel.cs, ScrollableControl.cs: We need to layout the
1305         flow panel without scrolling first, and then calculate the 
1306         scrolling based on the new layout.  [Fixes bug #390149]
1307
1308 2008-05-14  Jonathan Pobst  <monkey@jpobst.com>
1309
1310         * ListBox.cs: Invalidate after scrolling up when selected index
1311         changes.  [Fixes bug #390151]
1312
1313 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1314
1315         * ComboBox.cs: When setting mode to Simple *and* height hasn't been
1316         set, default height to 150. I tried first with DefaultSize, but this
1317         is not generating a SetBoundsCore call before handle creation time, so
1318         we can take it into account. This is just what .net does.
1319
1320 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
1321
1322         * XplatUIX11.cs, X11Keyboard.cs: Had to revert eno's r103060,
1323         as it broke some stuff.  Calberto is filing a bug for eno to
1324         work with.
1325
1326 2008-05-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1327
1328         * ComboBox.cs: When handling PageDown pressed event, set SelectedIndex
1329         to 0 is the current value is -1, and if style is not Simple, just
1330         return, like .net does.
1331         Fixes part of #374713.
1332
1333 2008-05-13  Jonathan Pobst  <monkey@jpobst.com>
1334
1335         * ThemeWin32Classic.cs, ThemeVisualStyles.cs: When calculating
1336         progress bar stuffs, use doubles instead of ints to prevent
1337         overflow.  [Fixes bug #389798]
1338
1339 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
1340
1341         * XplatUIX11.cs, X11Keyboard.cs :
1342           Significant refactoring on XIM support. Now IM engine UI
1343           should show up, at mostly-correct preedit position.
1344           - Eliminated use of FocusWindow, as it is never mapped
1345             and hence blocks correct preedit position. XIC is now
1346             created per window, and it must be destroyed too when
1347             the window is destroyed.
1348           - WM_QUIT messages should not be filtered even when hwnd
1349             is zombie. Filtering it could cause endless loop.
1350           - Preedit position must move only when the window is alive.
1351           - Make it IDisposable and make sure to release XIM/XICs.
1352
1353 2008-05-13  Atsushi Enomoto  <atsushi@ximian.com>
1354
1355         * Timer.cs, Control.cs, Form.cs, ApplicationContext.cs,
1356           XplatUIX11.cs, XplatUIWin32.cs :
1357           fix for bug #325033 and #387693;
1358           - WM_QUIT should not be sent when no running application
1359             exists.
1360           - SetTimer/KillTimer (especially on win32) should be
1361             invoked for the window that the timer is/will_be attached.
1362           - There could be unattached timers to a window when it's
1363             started. For those timers, hold pending timers and when
1364             a window is mapped, attach them to it.
1365           - WaitForHwndMessage() could run into loop when
1366             WM_SHOWWINDOW is handled before this method is called.
1367             So, strictly check wm_showwindow state.
1368           - Tick handler should not be invoked while one Tick handler
1369             call is still running (introduced Busy state).
1370
1371 2008-05-13  Andreia Gaita <avidigal@novell.com> 
1372
1373         * WebBrowserBase.cs: Override Internal alternative methods for
1374           SetBoundsCore and OnResize instead of the protected ones.
1375         * Control.cs: Move SetBoundsCore and OnResize implementations to
1376           SetBoundsCoreInternal and OnResizeInternal, so they can be
1377           overriden internally (WebBrowserBase needs to catch them but can't
1378           override the protected methods without api compat problems)
1379
1380 2008-05-13  Andreia Gaita <avidigal@novell.com> 
1381
1382         * WebBrowserBase.cs: Hiding away non-public overrides for api compat
1383
1384 2009-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1385
1386         * Binding.cs:
1387         * ListView.cs: Remove debug messages.
1388
1389 2008-05-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1390
1391         * ComboBox.cs: Don't do any calculation for simple mode if the listbox
1392         area is empty. Also calculate scrollbars in Simple mode based in area
1393         height and total number of items, not in MaxDropDownItems.
1394         Fixes part of #371991.
1395
1396 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1397
1398         * PictureBox.cs: Always invalidate on resize.  Fixes an app for jhill.
1399
1400 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1401
1402         * BindingSource.cs: GetListSortDescription is not public.
1403
1404 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1405
1406         * WebBrowser.cs, WebBrowserBase.cs, WebBrowserSiteBase.cs: corcompare.
1407
1408 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1409
1410         * HtmlElement.cs: Fix parameter names to match MS.
1411         * HtmlWindowCollection.cs: Should not be sealed.
1412
1413 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1414
1415         * ThemeWin32Classic.cs: Always draw the scrollbar area under the thumb
1416         button, because the thumb button will not get drawn if the scrollbar
1417         is disabled.  [Fixes bug #389262]
1418
1419 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1420
1421         * ListBox.cs: Handle End key for multi-column listboxen.
1422         [Fixes bug #389266]
1423
1424 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1425
1426         * ListBox.cs: Fix algorithm to determine which column our item is in.
1427         [Fixes bug #389265]
1428
1429 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1430
1431         * ListBox.cs: Invalidate when the listbox is resized.
1432         [Fixes bug #389256]
1433
1434 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1435
1436         * ListBox.cs: There is always at least one row in the ListBox (if
1437         we are doing these calculations.)  [Fixes bug #389253]
1438
1439 2008-05-12  Jonathan Pobst  <monkey@jpobst.com>
1440
1441         * ListBox.cs: There is always at least one column in the ListBox.
1442         [Fixes bug #389250]
1443
1444 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1445
1446         * ComboBox.cs: When handle is created call UpdateComboBoxBounds to
1447         ensure in Simple mode that the height is exactly the requested one.
1448         Also add the ComboBoxListControl to the controls collection in Simple
1449         mode even if handle hasn't been created.
1450         Fixes part of #371991.
1451
1452 2008-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1453
1454         * ComboBox.cs: For ComboListBox control -specially in Simple mode-, give focus to
1455         our ComboBox owner instead of giving it back to the previous control (
1456         as done in other controls). Also remove the empty override of Select
1457         method, since we want to be selected *and* give focus to our owner.
1458         This should let the user do keys-navigation in Simple mode. 
1459
1460 2008-05-10  Geoff Norton  <gnorton@novell.com>
1461
1462         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
1463         problems with rapid scrolling of treeviews. Fixes #381084
1464
1465 2008-05-10  Geoff Norton  <gnorton@novell.com>
1466
1467         * XplatUICarbon.cs: Deactivate the active window before
1468         activating the desired window.  Completes fixing #386504
1469
1470 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1471
1472         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
1473         SmallChange to the item size width plus the padding, to match .net.
1474
1475 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1476
1477         * FileDialog.cs: Apply the custom filter typed by the user in the file
1478         name combobox as much as possible while navigating in the file dialog.
1479         Fixes #385261.
1480
1481 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1482
1483         * Binding.cs: Actually use NullValue if the retrieved value of
1484         data source is null or DBNull. Makes a test pass.
1485
1486 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
1487
1488         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
1489         * MimeIcon.cs: Provide a way to get icons from resources.
1490
1491 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1492
1493         * Binding.cs: When the value retrieved from the control to be assigned
1494         to the data source is null, actually use the 2.0 DataSourceNullValue
1495         value. Make pass a data binding test.
1496
1497 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
1498
1499         * Control.cs: We need to invalidate implicit children even when
1500         invalidate is called with invalidatechildren = false.  (Implicit
1501         children are really part of the parent.)
1502         * ListView.cs: Double-buffer internal child controls for less
1503         flicker.
1504         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
1505         owner ListView subitems for greatly increased performance.
1506         [Fixes bug #388477]
1507
1508 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
1509
1510         * FileDialog.cs: When the user types a wildcard character in the
1511         filename combobox, update the contents of the folder using the text as
1512         a filter.
1513         Fixes part of #385261.
1514
1515 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
1516
1517         * ListBox.cs: Various fixes for MultiColumn listboxen.
1518         [Fixes bug #388114]
1519
1520 2008-05-08  Andreia Gaita <avidigal@novell.com> 
1521
1522         * HtmlElement.cs: Implement Style property
1523
1524 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
1525
1526         * ListBox.cs: Respect checkboxes when measuring item size.
1527         * ThemeWin32Classis.cs: When drawing list items, don't draw
1528         text outside of the item's bounds to prevent overlapping.
1529         (.Net actually overlaps, but that's just silly.)
1530         [Fixes bug #388117]
1531
1532 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
1533
1534         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
1535         Gert Driesen. Fixes bug #324830. 
1536
1537 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
1538
1539         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
1540         method implemented.
1541
1542 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1543
1544         * BindingSource.cs: When calling IsSynchronized, return the value of
1545         the related IList list.
1546
1547 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1548
1549         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
1550         make a test pass.
1551
1552 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
1553
1554         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
1555         navigation to scroll the grid if the current cell is not visible.
1556
1557 2008-05-07  Andreia Gaita <avidigal@novell.com> 
1558
1559         * HtmlElement.cs: Implement TabIndex
1560
1561 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
1562
1563         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
1564         properties, even when there are no items.
1565         [Fixes bug #387611]
1566
1567 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
1568
1569         * NativeWindow.cs: Add support for multiple handles per window.
1570         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
1571         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
1572         directly - use FromHandle instead.
1573         [Fixes bug #374660]
1574
1575 2008-05-07  Andreia Gaita <avidigal@novell.com> 
1576
1577         * HtmlElement.cs: Implement InnerHTML setter
1578
1579 2008-05-07  Andreia Gaita <avidigal@novell.com> 
1580
1581         * HtmlDocument.cs: Implement Focused
1582
1583 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1584
1585         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
1586         methods, as well as add messages to the exceptions.
1587
1588 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1589
1590         * BindingSource.cs: Setting DataSource should only reset DataMember if
1591         the previous value was null (make pass a not working test).
1592
1593 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1594
1595         * BindingSource.cs: When EndInit call is postponed and is called until
1596         DataSource.EndInit is called, remove the handler for data source.
1597
1598 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
1599
1600         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
1601
1602 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
1603
1604         * ToolStripManager.cs: Store references to toolstrips as
1605         weak references so they do not prevent forms from getting collected.
1606         [Fixes bug #386483]
1607
1608 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
1609
1610         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
1611         on .Net.  So do the same thing in WndProc.
1612
1613 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
1614
1615         * TrackBar.cs: Commit patch from Andy Hume that corrects
1616         the clickable areas to better match .Net.
1617         [Fixes bug #387074]
1618
1619 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
1620
1621         * TrackBar.cs: Commit patch from Andy Hume that adds the
1622         ResizeRedraw control flag so the track bar repaints itself
1623         when it is resized.  [Fixes bug #387072]
1624
1625 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
1626
1627         * TrackBar.cs: Commit patch from Andy Hume that adds better
1628         support for keyboard navigation when the TrackBar is vertical.
1629         [Fixes bug #387071]
1630
1631 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1632
1633         * BindingSource.cs: Implement ISupportInitializeNotification support.
1634
1635 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
1636
1637         * ThemeVisualStyles.cs: Added support for ToolBar.
1638
1639 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
1640
1641         * ToolBar.cs: Made the Vertical property internal.
1642
1643 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
1644
1645         * ThemeVisualStyles.cs: Added support for TrackBar.
1646
1647 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
1648
1649         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
1650         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
1651         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
1652         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
1653         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
1654         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
1655
1656 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
1657
1658         * ThemeVisualStyles.cs: Added support for UpDownBase.
1659
1660 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
1661
1662         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
1663         Extracted Theme.UpDownBaseDrawButton.
1664
1665 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
1666
1667         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
1668         removed from the static toolstrips collection in ToolStripManager
1669         when they are disposed.  Provides a workaround for bug #386483.
1670
1671 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
1672
1673         * GridEntry.cs: Read-only properties with Editor with 
1674         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
1675         [Fixes bug #384184]
1676
1677 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
1678
1679         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
1680         the menu key and there are no items on the menu.
1681         [Fixes bug #386644]
1682
1683 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
1684
1685         * Control.cs: Avoid calling ToString on a string.
1686         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
1687         * GroupBox.cs: In FlatStyle property throw, not just create, the 
1688         exception. Avoid calling ToString on a string.
1689         * ProgressBar.cs: Avoid calling ToString on a string. 
1690         * ScrollBar.cs: Avoid calling ToString on a string. 
1691         [All issues were found using Gendarme]
1692
1693 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
1694
1695         * NotifyIcon.cs: Prevent click events to be trigger after double click 
1696         events. Fixes remaining issues of bug #324832.
1697
1698 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
1699
1700         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
1701         to mimic win32 behavior. Partially fixes bug #324832.
1702
1703 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1704
1705         * BindingSource.cs: Implement Find methods.
1706
1707 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1708
1709         * BindingSource.cs: Implement Sort, ApplySort overloads, and
1710         RemoveSort methods.
1711
1712 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1713
1714         * ListBindingHelper.cs: When calling GetListItemProperties and the
1715         passed object is ITypedList, return the result of
1716         ITypedList.GetItemProperties instead.
1717
1718 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
1719
1720         * LinkLabel.cs: Set default value of name on constructor of Link class
1721         only for 2.0 profile.
1722
1723 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
1724
1725         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
1726         Fixes remaining issues of bug #346154.
1727
1728 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
1729
1730         * LinkLabel.cs: Set a default value for name on internal contructor of
1731         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
1732
1733 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
1734
1735         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
1736         and refer all instances to owner.links. Partially fixes #346154.
1737
1738 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1739
1740         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
1741         length equal zero. Also called CreateLinkPieces in constructor. It fixes
1742         the LinkLabel test 'TestLinkArea'.
1743
1744 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1745
1746         * Form.cs: Remove menu before close form to prevent form to be not gaced.
1747         [Fixes #386460]
1748
1749 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1750
1751         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
1752         [Fixes #386463]
1753
1754 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1755
1756         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
1757         [Fixed bug #357004]
1758
1759 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1760
1761         * MenuAPI.cs: Remove unused ProcessCmdKey method.
1762
1763 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1764
1765         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
1766         [Fixes bug #375398]
1767
1768 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1769
1770         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
1771         of bug #367492.
1772
1773 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
1774
1775         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
1776         sometimes we open a conext menu on mouse down of some controls and the mouse
1777         up is dispatched to menu and dont need to. It fix remaining issues of 
1778         #363711 and other problems related to menu mouse click events.
1779
1780 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
1781
1782         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
1783         some var names to better fit changes, now we have month_menu and today_menu
1784         vars. Fixes bug #363711.
1785
1786 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
1787
1788         * MonthCalendar.cs: Handle every right mouse click to open context menu,
1789         right now the default month menu but it will be change to have "Go to today"
1790         menu.
1791
1792 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1793
1794         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
1795
1796 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
1797
1798         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
1799
1800 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1801
1802         * ThemeVisualStyles.cs: Added support for TreeView.
1803
1804 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1805
1806         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
1807         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
1808
1809 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1810
1811         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
1812
1813 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1814
1815         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
1816         Implement 2.0 SP1 stuffs.
1817
1818 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1819
1820         * FileDialog.cs: Implement 2.0 SP1 stuffs.
1821
1822 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1823
1824         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
1825         Implement CanEnableIme property. (2.0 SP1)
1826
1827 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1828
1829         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
1830         from the 2.0 API.
1831
1832 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1833
1834         * Control.cs: Provide an internal way for a control to override
1835         the setting of Height.
1836         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
1837         set height using new method.
1838
1839 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1840
1841         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
1842
1843 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1844
1845         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
1846         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
1847
1848 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1849
1850         * ThemeVisualStyles.cs: Added support for StatusBar.
1851
1852 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1853
1854         * DataObject.cs: Add the other IDataObject interface.
1855
1856 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
1857
1858         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
1859         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
1860
1861 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1862
1863         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
1864         * ListView.cs: Hide non-public API.
1865         * MaskedTextBox.cs: Remove extra attribute.
1866
1867 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
1868
1869         * DataGridViewImageCell.cs: Use formatted value instead of value
1870         to calculate preferred size.
1871
1872 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
1873
1874         * ListBox.cs: Move some initialization around so that selected_indices
1875         is not accessed before it is created.
1876
1877 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
1878
1879         * InputLanguageCollection.cs: Implement the collection better.
1880         [Fixes bug #385506]
1881
1882 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
1883
1884         * ToolStripDropDownItem.cs: Get the correct event object for
1885         DropDownItemClicked.
1886         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
1887         [Fixes bug #385475]
1888
1889 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
1890
1891         * DataGridViewRowCollection.cs: We don't currently support shared 
1892         rows.  Should fix test failures caused by previous commit.
1893
1894 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
1895
1896         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
1897         datagridview gets set.  Only paint cells in visible columns.
1898         * DataGridViewCell.cs: Draw border after cell content.
1899         * DataGridView.cs: Invalidate after setting some properties.  Only
1900         use visible columns.  Fit hit test bug with areas in the col/row header
1901         area but not in a row or col.  Implement UpdateCell/Row methods.
1902
1903 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
1904
1905         * DataGridViewElement.cs: Don't throw NIEX.
1906         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
1907         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
1908         * DataGridViewCheckBoxColumn.cs: Implement ToString.
1909         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
1910         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
1911         if the user filled in the formatting Value, use it.
1912
1913 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
1914
1915         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
1916         to a string.
1917
1918 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1919
1920         * BindingSource.cs: Some corrections to Filter property, as well as
1921         setting it for our list when resetting it.
1922
1923 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
1924
1925         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
1926         than the maximum.  Fixes reopened bug #384182.
1927
1928 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1929
1930         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
1931         Fixes remaining issues of #367490.
1932
1933 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1934
1935         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
1936         SystemInformation.WorkingArea to get max_screen value.
1937
1938 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1939
1940         * BindingSource.cs: Implement Filter and RemoveFilter.
1941
1942 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1943
1944         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
1945
1946 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1947
1948         * X11Dnd.cs: When trying to convert data and we know we started the
1949         dnd loop, don't try to use the cached data if the loop is not running,
1950         which means that the data has been resetted.
1951         Fixes #378191.
1952
1953 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1954
1955         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
1956         win32 behavior.
1957
1958 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1959
1960         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
1961         it to drawn off screen edge. Fixes bug #367490.
1962
1963 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1964
1965         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
1966         menu position to have only one assignment of Location var.
1967
1968 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
1969
1970         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
1971         for this patch. Fixes bug #384115.
1972
1973 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
1974
1975         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
1976         the same.  If LargeChange is zero, set a minimum size for the scroll
1977         thumb grip.  [Fixes bug #384182]
1978
1979 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
1980
1981         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
1982         [Fixes bug #384181]
1983
1984 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
1985
1986         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
1987
1988 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
1989
1990         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
1991         patch from Ernesto).
1992
1993 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
1994
1995         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
1996
1997 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
1998
1999         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
2000
2001 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
2002
2003         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
2004
2005 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
2006
2007         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
2008
2009 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
2010
2011         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
2012
2013 2008-04-27  Andreia Gaita <avidigal@novell.com> 
2014
2015         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
2016           supposed to return a reference to an mshtml interface, which we
2017           don't support).
2018         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
2019           reference to an mshtml interface, which we don't support). Code
2020           formatting cleanup.
2021         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
2022           DomDocument getter (it's supposed to return a reference to an
2023           mshtml interface, which we don't support). Code formatting cleanup.
2024
2025 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2026
2027         * ListView.cs: Ouch, forgot to commit.
2028
2029 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2030
2031         * ListView.cs: 
2032         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
2033
2034 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2035
2036         * ListView.cs: When calculating box selection for virtual mode, don't
2037         look for intersection with item's text, but item bounds, since that
2038         would mean read ListViewItem's text for _every_ item, and that's
2039         something we just can't do in virtual mode (items are only requested
2040         when drawn).
2041
2042 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
2043
2044         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
2045         partial support for managed windows (based on the patch from Ernesto).
2046
2047 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2048
2049         * ListView.cs: When doing a key search use FindItemWithText method
2050         instead of doing the search by ourselves, this way we avoid
2051         duplicating the code and also we handle the special case for virtual
2052         mode. To achieve that make our private overload of FindItemWithText
2053         internal and also have a 'roundtrip' parameter.
2054
2055 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2056
2057         * ListView.cs: When doing the layout don't request the
2058         ListViewItem instance if we are in virtual mode (since we can't request it
2059         until the item is actully drawn).
2060
2061 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
2062
2063         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
2064         from Ernesto).
2065
2066 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
2067
2068         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
2069         the patch from Ernesto).
2070
2071 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
2072
2073         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
2074         * ThemeVisualStyles.cs: Added.
2075
2076 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
2077
2078         * IDeviceContext.cs: Added a missing using.
2079
2080 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
2081
2082         * ButtonBase.cs: Made IsDefault protected internal.
2083         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
2084
2085 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
2086
2087         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
2088         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
2089         RadioButtonRenderer.cs: Included in the 1.1 profile.
2090         * IDeviceContext.cs: Added.
2091         * TextRenderer.cs: Included a member in the 1.1 profile.
2092
2093 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
2094
2095         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
2096
2097 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
2098
2099         * ErrorProvider.cs: Make the error icons come after the control
2100         they refer to.  It isn't the way the MS does it, but its better
2101         than what we were doing.  See bug #368587.
2102
2103 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
2104
2105         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
2106         from Eric Albright that lazy loads the input language as ensures
2107         everything gets properly initialized.  Fixes bug #373871.
2108
2109 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
2110
2111         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
2112         implicit mnemonics.  [Fixes bug #383000]
2113
2114 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2115
2116         * X11Dnd.cs: When canceling the operation, automatically restore the
2117         default cursor - normally the default cursor is restored when the
2118         mouse buttons are released, but we should be able to restore it even
2119         if the buttons are still pressed (for example, when pressing ESC to
2120         cancel).
2121         Fixes #381894.
2122
2123 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2124
2125         * X11Dnd.cs: When starting a new drad and drop operation, set control
2126         field to null, just as the other fields, to avoid calling any
2127         operation on a previous control. Also, when calling DndLeave on a
2128         control, set it to null, thus we don't fire that event multiple times
2129         for that control.
2130         Fixes #209264.
2131
2132 2008-04-23  Geoff Norton  <gnorton@novell.com>
2133
2134         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
2135         the whole_window object.  Fixes #377084.
2136
2137 2008-04-23  Andreia Gaita <avidigal@novell.com> 
2138
2139         * HtmlElement.cs: Implement RaiseEvent (event injection into the
2140           embedded browser)
2141
2142 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
2143
2144         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
2145
2146 2008-04-23  Andreia Gaita <avidigal@novell.com> 
2147
2148         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
2149           invocation
2150
2151 2008-04-23  Andreia Gaita <avidigal@novell.com> 
2152
2153         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
2154           attaching/detaching
2155
2156 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2157
2158         * X11Dnd.cs: When the drop was cancelled, or could just not be
2159         performed, return DragDropEffect.None always (match .net).
2160
2161 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
2162
2163         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
2164
2165 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
2166
2167         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
2168
2169 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
2170
2171         * DataGridView.cs: Add support for error icon tool tips.
2172         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
2173         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
2174
2175 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
2176
2177         * X11Structs.cs: Add mouse button masks enum.
2178         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
2179         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
2180         form resize/move operation instead of for each step of it.
2181         [Fixes bug #346529 for the x11 backend]
2182
2183 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
2184
2185         * DataGridView*: Implement support for drawing error icons.
2186
2187 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
2188
2189         * TreeView.cs: Make vbar and hbar internal.
2190         * TreeNode.cs: If collapsing the node removes one of the TreeView's
2191         scrollbars, invalidate the whole thing.
2192         [Fixes bug #382001]
2193
2194 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
2195
2196         * TreeView.cs: Calling Sort() sets Sorted = true.
2197         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
2198         if the nodes need to be sorted.
2199         [Fixes bug #382028]
2200
2201 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
2202
2203         * Form.cs: Fire SizeChanged for both when the form is minimized and 
2204         restored.
2205         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
2206         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
2207
2208 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
2209
2210         * ComboBox.cs: If the combobox is disabled, draw a disabled
2211         background before painting anything else.
2212         [Fixes bug #381729]
2213
2214 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2215
2216         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
2217         forget to send a Leave event to the target window - just as .net does
2218         when cancelling dnd operations.
2219
2220 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2221
2222         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
2223         soon as possible - this happens when we send the drop message to the
2224         target window. This way we avoid firing any DragOver _after_ drop finished.
2225         Fixes #378179.
2226
2227 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
2228
2229         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
2230         * Form.cs: Handle form minimization as a special state, where size doesn't 
2231         change, but we have to fire SizeChanged.
2232         [Fixes bug #325122 for the win32 and x11 backends]
2233
2234 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
2235
2236         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
2237         if the handle is disabled.
2238         [Fixes bug #371751]
2239
2240 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
2241
2242         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
2243         for forms with FormBorderStyle.None.
2244         [Fixes bug #349571]
2245
2246 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
2247
2248         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
2249         WM_EXITSIZEMOVE.
2250         [Fixes bug #346529 for the X11 backend]
2251
2252 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
2253
2254         * XplatUIX11.cs: 
2255           - Send a mouse Enter message after say dragging the mouse with a 
2256           button down and then release it in another client.
2257           - Reset the cursor to prevent X11 from remembering it and setting it 
2258           before the control gets WM_SETCURSOR.
2259           - Qeueue a mouse move after a mouse enter like win32.
2260           [Fixes bug #323234]
2261
2262 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
2263
2264         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
2265         It's sent when the form gets moved, resized, closed.
2266         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
2267         [Fixes bug #359193 for X11]
2268
2269 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
2270
2271         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
2272         the build.
2273
2274 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
2275
2276         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
2277         group. Fixes the 1.1 build.
2278
2279 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2280
2281         * ListView.cs: Use display indexes for selection in Details view, as
2282         well as do the proper layout based on display indexes for that view
2283         too.
2284
2285 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2286
2287         * ListView.cs: Focused item information is now stored as a display
2288         index, and display indexes are used all over the place for selection,
2289         instead of ListViewItem.Index values, which doesn't give us enough
2290         information to modify the selection in groups mode, and was broken.
2291
2292 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
2293
2294         * Control.cs: Do not fire MouseDown if validation of the control has 
2295         failed.
2296         * Form.cs: Validate the form before closing.
2297         [Fixes bugs #330501 and #353310]
2298
2299 2008-04-18  Andreia Gaita <avidigal@novell.com> 
2300
2301         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
2302           CreateWebBrowserSiteBase implementations
2303         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
2304           Style and TabIndex setters
2305
2306 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2307
2308         * ListViewGroup.cs: When returning the actual item count, return the
2309         proper count for default group.
2310         Fix the tests.
2311
2312 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2313
2314         * ListView.cs:
2315         * ListViewGroup.cs: When calculating groups layout, get the actual
2316         number of items per group, since groups added to the group BUT not
2317         added to the ListView are just ignored, and can cause some nasty
2318         exceptions because of the lack of synchronization. Also for
2319         ListViewGroup don't use lazy initialization for items, since we 
2320         the common scenario is to use it always - and it helps us to  refactor
2321         and clean the .ctor overloads.
2322
2323 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2324
2325         * ListView.cs: When adding an item to a ListViewItemCollection
2326         belonging to a group (ListViewGroup.Items), don't generate a redraw if
2327         the added item hasn't beeen previously added to the ListView instance
2328         refered by the group, since it will be ignored. This should avoid some 
2329         really nasty flickering.
2330
2331 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2332
2333         * ListView.cs: When accessing an item in a specific display
2334         position, use the helper method GetItemAtDisplayIndex, instead of
2335         direct access to the reordered_items_indices array. When doing layout
2336         for groups set the correct Items index for the display position (since
2337         in groups mode items don't have the same position as in Items
2338         collection).
2339         * ListViewGroup.cs: Add a field to store the starting item number,
2340         which is later used when calculating the layout.
2341
2342         Fixes #360805.
2343
2344 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
2345
2346         * Application.cs: Fixed ProductVersion to fallback to the assembly
2347         version. Fixes regression for bug #325413.
2348
2349 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2350
2351         * ListView.cs: New helper method to retrieve an item in a _specific
2352         display_ position (the items can be displayed in a different order
2353         than one of Items collection).
2354         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
2355         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
2356         specific display position (again remember that items can be sorted
2357         different than Items).
2358
2359 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
2360
2361         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
2362         list and update it when the collection changes.  We were recreating
2363         this several times per row paint and for every pixel the mouse moved
2364         across the grid.
2365         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
2366         changes.
2367
2368 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
2369
2370         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
2371         list to use generics.
2372         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
2373         and remove unneccessay casts.
2374
2375 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
2376
2377         * DataGridViewBand.cs: Add internal way to set displayed variable.
2378         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
2379         * DataGridView.cs: Make sure we always keep track of Displayed
2380         rows and columns, and only draw things that are displayed.
2381
2382 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
2383
2384         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
2385           whether the key events are filtered or not. Introduced
2386           PreFilter() process for this purpose. This fixes atokx3/iiimx
2387           shift state issue.
2388
2389 2008-04-16  Andreia Gaita <avidigal@novell.com> 
2390
2391         * HtmlHistory.cs: Implement Length property
2392
2393 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
2394
2395         * DataGridView.cs: Call EndEdit when a sort is performed so we take
2396         away the edit textbox.  Refactor to reuse column sort code.
2397
2398 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
2399
2400         * MenuAPI.cs: Remove the code that save and restore capture status of 
2401         grab_control, this fixes some Menu and Context menu bugs but maybe it can
2402         cause some others, I cant figure the possible problems of this patch but
2403         right now remove the code looks to be better than keep it. This patch fixes
2404         bugs #357638, #378721 and #379570.
2405
2406 2008-04-12  Andreia Gaita <avidigal@novell.com> 
2407
2408         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
2409         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
2410         add missing properties and event handlers.
2411         
2412 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
2413
2414         * ListBox.cs: Make sure the LargeChange we are setting is at least
2415         zero, to prevent an IOORE.  [Fixes bug #379531]
2416
2417 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
2418
2419         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
2420         in DropDownList mode, for each key-press select the next item 
2421         starting with that letter.
2422         For other modes, when no item selected, on arrow-up/-down and open 
2423         drop-down select the first item matching the text in the textbox.
2424
2425 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
2426
2427         * X11Keyboard.cs : Control.FromHandle() could return null
2428           in MoveCurrentCaretPos().
2429
2430 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2431
2432         * ListView.cs: When changing the size in VirtualMode, also Reset the
2433         selection.
2434         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
2435         changing selection info for VirtualMode.
2436         Fixes #372618.
2437
2438 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2439
2440         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
2441         view, don't use LineLimit for the first item - use NoWrap *always*
2442         instead, since ListView.LabelWrap is not used for this view.
2443         Fixes #378054.
2444
2445 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2446
2447         * Binding.cs: Call UpdateIsBinding when setting control - probably
2448         Binding is already usable and we don't need to wait to check the
2449         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
2450         Created, just like 2.0 does.
2451         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
2452
2453 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2454
2455         * Binding.cs: Just realized we don't need to have a handler for
2456         BindingContextChanged, since this info should be now consumed directly
2457         in the BindingManagerBase. And also, the manager.IsBindingSuspended
2458         state info is checked directly, instead of caching it.
2459
2460         * CurrencyManager.cs: IsSuspended should return always false if Count
2461         == 0.
2462
2463 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2464
2465         * Binding.cs: When calling PushData, return if manager.Count == 0,
2466         since we just don't have data to be read. Also, when setting the
2467         Control for binding, hook up some events to refresh the IsBinding
2468         state when BindingContext change or control gets created; use
2469         Control.IsHandleCreated instead of Control.Created check to set
2470         IsBinding state - we *actually* need to modify IsBinding when control
2471         is created, but we don't have any Created event, only HandleCreated.
2472         Fixes part of #349364.
2473
2474 2008-04-11  Geoff Norton  <gnorton@novell.com>
2475
2476         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
2477         warping a null Caret.
2478
2479 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
2480
2481         * DataGridView.cs: Implement row/column autosizing methods. Implement
2482         autosorting.
2483         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
2484         * DataGridViewRowCollection.cs: Add an internal sorting method.
2485
2486 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
2487
2488         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
2489         value in ListView drawing code.
2490
2491 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
2492
2493         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
2494         is clicked.  Respect the user setting Cancel in FileOk.
2495
2496 2008-04-11  Geoff Norton  <gnorton@novell.com>
2497
2498         * ListView.cs: Avoid setting and resetting control Width/Heights and
2499         calculate the final value and set it once.  Prevents a feedback loop
2500         on the mac.
2501
2502 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
2503
2504         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
2505         [Fixes bug #378869]
2506
2507 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
2508
2509         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
2510           Add some on-the-spot code, but it seems we don't need it.
2511
2512 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
2513
2514         * Form.cs: Add method for DataGridView to trigger focus cues
2515         even when it handles the tab keypress.
2516
2517 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
2518
2519         * DataGridView.cs: More keyboard handling, tab, esc.
2520         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
2521         when at the beginning or end of the text in the text box.
2522
2523 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
2524
2525         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
2526
2527 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
2528
2529         * DataGridView.cs: Some fixups for showing and adding the edit control.
2530         * DataGridViewButtonColumn.cs: Implement ToString.
2531         * DataGridViewCell.cs: Size and position the control simultaneously.
2532         * DataGridViewTextBoxCell.cs: Use base to position control.
2533
2534 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
2535
2536         * DataGridViewCell.cs: Fix up some formatting and painting code.
2537         * DataGridViewImageCell.cs: Implement some NIEX methods.
2538
2539 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
2540
2541         * ToolStripItemCollection.cs: What moving an item from one owner
2542         to another, remove from source owner before adding to destination.
2543         [Fixes bug #378109]
2544
2545 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
2546
2547         * PictureBox.cs: Call Load when ImageLocation is set.
2548         [Fixes bug #378308]
2549
2550 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
2551
2552         * X11Keyboard.cs, XplatUIX11.cs :
2553           Implement over-the-spot mode (with some odd offsets).
2554           - set preedit position when caret is set.
2555           - Wrap XMoveResizeWindow() to move preedit position.
2556
2557 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
2558
2559         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
2560         array lenght.
2561
2562 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
2563
2564         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
2565         and ScanTableIndex public, it fix compilations errors when compiling
2566         WinForms to generate keyboard layout resources.
2567
2568 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
2569
2570         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
2571         different element count than scan table. It prevents some errors in non
2572         standard keyboards.
2573
2574 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
2575
2576         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
2577
2578 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
2579
2580         * DataGridView.cs: Call OnContentClick.
2581         * DataGridViewCell.cs: Do a null check on ValueType instead
2582         of valueType.
2583         * DataGridViewCheckBoxCell.cs: Implement.
2584
2585 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
2586
2587         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
2588
2589 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
2590
2591         * X11Keyboard.cs : Check XGetIMValues() return value in
2592           case it does not return input styles in some environment.
2593
2594 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
2595
2596         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
2597
2598 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2599
2600         * BindingContext.cs: Stub UpdateBinding method.
2601
2602 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
2603
2604         * X11Structs.cs : added couple of structs for XIM support.
2605         * X11Keyboard.cs :
2606           Release XIM in case it failed to create XIC. 
2607           Use consts for XNblah string.
2608           Add support for IM style customization and XIC creation
2609           for preedit-position and preedit-callback.
2610           Right now use MONO_WINFORMS_XIM_STYLE environment variable
2611           (list of: over-the-spot | on-the-spot | root). Only root
2612           mode works so far.
2613
2614           (redoing r99172 with fix.)
2615
2616 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
2617
2618         * TreeView.cs: Center the checkbox a little better.
2619
2620 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
2621
2622         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
2623         Apply very nice patch from Ernesto Carrea that simplifies our
2624         scrollbar drawing.  [From bug #376146]
2625
2626 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
2627
2628         * TreeView.cs: Correct the location of the root node checkbox when
2629         ShowRootLines = false.  Don't draw the root lines for the root node
2630         when ShowRootLines = false.  [Fixes bug #377535]
2631
2632 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
2633
2634         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
2635         Fixed line endings.
2636         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
2637         line endings.
2638         * MaskedTextBox.cs: Added missing attribute. Code formatting.
2639         * PageSetupDialog.cs: Added missing attribute. Code formatting.
2640         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
2641         * ImeMode.cs: Added missing field.
2642         * HtmlWindow.cs: Code formatting. Fixed line endings.
2643         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
2644         warnings.
2645         * HtmlHistory.cs: Code formatting. Fixed line endings.
2646         * HtmlDocument.cs: Code formatting. Fixed line endings.
2647         * ToolStripPanel.cs: Added missing IList implementation.
2648         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
2649
2650 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
2651
2652         * BindingContext.cs: Changed argument names to fix corcompare errors.
2653         * DataGridView.cs: Removed extra explicit interface implementation
2654         of IDropTarget. Code formatting.
2655         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
2656         * ComboBox.cs: Changed argument names to fix corcompare errors.
2657         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
2658         errors.
2659         * GridColumnStylesCollection.cs: Changed argument names to fix
2660         corcompare errors. Removed extra tabs.
2661         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
2662         errors.
2663         * Control.cs: Changed argument names to fix corcompare errors. Code
2664         formatting. Removed extra explicit IList implementation.
2665         * TextBox.cs: Changed argument names to fix corcompare errors. Code
2666         formatting. Use string.Empty instead of "".
2667         * GridItemCollection.cs: Changed argument names to fix corcompare
2668         errors. Code formatting.
2669         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
2670         corcompare errors. Code formatting.
2671         * ImageList.cs: Changed argument names to fix corcompare errors.
2672         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
2673         * DataGridViewRowCollection.cs: Changed argument names to fix
2674         corcompare errors. Code formatting.
2675         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
2676         * DataGridViewSelectedCellCollection.cs: Changed argument names to
2677         fix corcompare errors. Code formatting.
2678         * DataGridViewComboBoxCell.cs: Changed argument names to fix
2679         corcompare errors. Code formatting.
2680         * LinkLabel.cs: Changed argument names to fix corcompare errors.
2681         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
2682         formatting.
2683         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
2684         Code formatting.
2685         * BindingSource.cs: Changed argument names to fix corcompare errors.
2686         Removed extra explicit interface implementations.
2687         * DataGridViewSelectedRowCollection.cs: Changed argument names to
2688         fix corcompare errors. Code formatting.
2689         * ToolStripItemCollection.cs: Removed extra explicit interface
2690         implementation of IList.ReadOnly.
2691         * DataGridViewColumnCollection.cs: Changed argument names to fix
2692         corcompare errors. Code formatting.
2693         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
2694         * ListView.cs:  Changed argument names to fix corcompare errors.
2695         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
2696         errors.
2697         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
2698         errors.
2699         * ListBindingHelper.cs: Changed argument names to fix corcompare
2700         errors.
2701         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
2702         fix corcompare errors. Code formatting.
2703         * ToolStripPanel.cs: Removed extra explicit implementation of
2704         IDropTarget interface.
2705         * ListBox.cs: Changed argument names to fix corcompare errors. Code
2706         formatting. Removed extra tabs and spaces.
2707         * DataGridViewCellCollection.cs: Changed argument names to fix
2708         corcompare errors.
2709         * Help.cs: Changed argument names to fix corcompare errors. Code
2710         formatting.
2711         * TabControl.cs: Changed argument names to fix corcompare errors.
2712         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
2713         errors.
2714         * TableLayoutSettings.cs: Changed argument names to fix corcompare
2715         errors.
2716
2717 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2718
2719         * ListBindingHelper.cs: When returning properties, only return those
2720         that are browsable. Also, don't do a linear search of the properties,
2721         but use the indexer of the PropertyDescriptorCollection class.
2722
2723 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2724
2725         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
2726         Dictionary containing the related (child) currency managers. Also,
2727         when setting DataSource, add datasource to our List if it is not a list.
2728
2729 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
2730
2731         * PropertyGridTextBox.cs: Fix background color of the buttons.
2732         * PropertyGridView.cs: Make the entry less jumpy.
2733
2734 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
2735
2736         * PropertyGrid.cs: Fix unused variable warnings.
2737
2738 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
2739
2740         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
2741         double-click. It expanded it once in the mouse down and then 
2742         again in the double-click handler.
2743
2744 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
2745         
2746         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
2747         TypeConverter and UITypeEditors.
2748
2749 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
2750
2751         * Control.cs: Visibility should be set synchronously, 
2752         so we must also redraw once it is and not rely on layouting or 
2753         other code to repaint.
2754         [Fixes bug #339898]
2755
2756 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
2757
2758         * DataGridViewCell.cs: Respect DataGridView.GridColor.
2759
2760 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
2761
2762         * Control.cs: Invalidate when the alpha channel is less than 255,
2763         not only when control is transparent.
2764
2765 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
2766
2767         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
2768         Implement some painting convenience methods that threw NIEX.
2769
2770 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
2771
2772         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
2773         * DataGridViewLinkCell.cs: Implement.
2774
2775 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
2776
2777         * GridEntry.cs: Report the conversion exception error description.
2778         [Fixes bug #375792]
2779
2780 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
2781
2782         * PropertyGridView.cs: Do not scroll to item on resize.
2783         [Fixes bug #375789]
2784
2785 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2786
2787         * BindingContext.cs: When retrieving a BindingManagerBase, if the
2788         dataSource parameter is ICurrencyManagerProvider, then return
2789         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
2790         instead of creating a new one.
2791
2792 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2793
2794         * BindingSource.cs: Implement support for Type instances as
2795         DataSource.
2796
2797 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
2798
2799         * DataGridView.cs: Minor cleanups and call CellMouseUp.
2800         * DataGridViewCell.cs: Make some painting routines internally virtual.
2801         * DataGridViewButtonCell.cs: Implement.
2802
2803 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
2804
2805         * Control.cs: We always need to invalidate our children with
2806         transparent backgrounds when we are invalidated.
2807         [Fixes bug #376081]
2808
2809 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2810
2811         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
2812         and CancelCurrentEdit on CurrencyManager respectively. Implement
2813         support for ICancelAddNew too.
2814
2815 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2816
2817         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
2818         call EndNew/CancelNew if list is ICancelAddNew.
2819
2820 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
2821
2822         * DataGridView.cs: Guard against an exception while painting
2823         if there are no rows.
2824
2825 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
2826
2827         * DataGridView.cs: Implement a bunch of keyboard commands.
2828
2829 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
2830
2831         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
2832         isn't set, don't call OnPaint.  [Fixes bug #375300]
2833
2834 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2835
2836         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
2837         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
2838         hookup the remaining events related to CurrencyManager, and fire
2839         OnListChanged also for the Clear () method.
2840
2841 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2842
2843         * BindingSource.cs: Use Current and Position implementations in
2844         CurrencyManager instead of using our own routines, since we need 
2845         to be in synch with it. Count should NEVER return a -1 value, and 
2846         also report ListChanged events for both simple IList data 
2847         sources (manually) as well for IBindingList ones (by hooking up an
2848         event handler for it).
2849
2850 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2851
2852         * BindingSource.cs: Make one .ctor call the another, to avoid
2853         duplicate code. Add the CurrencyManager property, and also for AddNew
2854         throw the proper exceptions and show better error messages.
2855
2856 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
2857
2858         * ComboBox.cs: Only adjust selectedindex if Handle has been
2859         created.  Fixes failing test.
2860
2861 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
2862
2863         * ComboBox.cs: Adjust selectedindex if we insert a new item
2864         above the current selectedindex in a sorted ComboBox.
2865         [Fixes bug #374654]
2866
2867 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
2868
2869         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
2870         [Fixes bug #374712]
2871
2872 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
2873
2874         * DataGridViewTextBoxCell.cs: Implement stuffs.
2875
2876 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
2877
2878         * TreeView.cs: Create the scrollbars even earlier to be
2879         double dog certain they are created before they are accessed.
2880
2881 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
2882
2883         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
2884
2885 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
2886
2887         * ScrollBar.cs: Create an internal safe Value setter so we
2888         won't crash if we try to set a value outside the min and max.
2889         * TextBoxBase.cs: Use safe value setter to guard against a
2890         potential NRE that is being reported by Reflector.
2891
2892 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
2893
2894         * TreeView.cs: Create the scrollbars earlier in the constructor
2895         to attempt to guard against an NRE in SetTop in Reflector.
2896
2897 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
2898
2899         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
2900         DataGridViewRowCollection.cs: Do not scroll column and row headers,
2901         show messagebox on data format error, use column display index
2902         correctly, make sure HitTest supports new layout stuff,
2903         make sure scrollbars support new layout stuff.
2904
2905 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
2906
2907         * XplatUIX11.cs : Patch by Doug Rintoul.
2908           For some IM engines, keypress events need to delay call
2909           to XPending() and XNextEvent() in the loop so that it
2910           does not mess the orders in XIM commit callback.
2911           Some KeyRelease events such as shift keys need to be
2912           processed both in the IM engine and winforms driver
2913           itself since winforms holds its own state check.
2914
2915           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
2916
2917 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
2918
2919         * X11Keyboard.cs, XplatUIX11.cs :
2920           add primitive support for XIM input support (preedit-
2921           nothing and status-nothing). It requires precise event
2922           capturing (XSelectInput/"filterEvents") and different
2923           call to XFilterEvent against root window.
2924           Get composed string and send dummy WM_IME_COMPOSITION.
2925           Free XIM and XIC instances in finalizer.
2926
2927           (This first patch does not include suggested changes
2928            by Doug Rintoul. It will follow.)
2929
2930 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
2931
2932         * DataGridView.cs: When binding to a property, if the property
2933         doesn't have a setter, set the column to readonly.
2934         [Fixes bug #343965]
2935
2936 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
2937
2938         * ComboBox.cs: Guard against NRE if an arrow key is hit while
2939         we aren't dropped down.  Support Home/End in DropDownList mode.
2940         [Fixes bug #371990]
2941
2942 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
2943
2944         * TreeNodeCollection.cs: Don't increment count until we've
2945         saved our index to return.
2946         [Fixes bug #373603]
2947
2948 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
2949
2950         * Label.cs: Add padding to the label's AutoSize calculation.
2951         [Fixes bug #373792]
2952
2953 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2954
2955         * ListBindingHelper.cs: Actually implement GetListName method.
2956
2957 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2958
2959         * BindingSource.cs: Throw the propert expceptions for some methods, as
2960         well as detect the list item type for Add method if DataSource is null.
2961
2962 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
2963
2964         * DataGridViewCell.cs: I don't know why I commented this out,
2965         putting it back for now.
2966
2967 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
2968
2969         * DataGridViewCell.cs: Remove storage for owning column, just
2970         use column index.
2971         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
2972         * DataGridViewColumnHeaderCell.cs: If the header text has been
2973         explicitly set, return it.
2974         [Fixes bug #325979]
2975
2976 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
2977
2978         * DataGridViewRowCollection.cs: Disable row sharing when
2979         using data binding.  Its a great feature, but lets work on
2980         getting DGV usable first before we worry about optimizations.
2981
2982 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2983
2984         * BindingSource.cs: When resetting our internal list, compute list
2985         item type information to be used for indirect list access. Also
2986         implement/tune some properties and methods related to the list access
2987         too.
2988         * ListBindingHelper.cs: Add a stub for GetListName method, used from
2989         BindingSource.
2990
2991 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
2992
2993         * DataGridView.cs: If RowCount is increased while ColumnCount
2994         is zero, add a column.  [Fixes bug #331649]
2995
2996 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
2997
2998         * DataGridViewRowCollection.cs: When adding new rows for
2999         databinding, make sure they are place before the add row.
3000         [Fixes bug #343961]
3001
3002 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
3003
3004         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
3005         instead of Index order.
3006
3007 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
3008
3009         * DataGridView.cs: If columns are added by increasing ColumnCount,
3010         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
3011         [Fixes bug #325588]
3012
3013 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
3014
3015         * DataGridView.cs: Turn off and on the "new row" when 
3016         AllowUserToAddRows is toggled.  When the handle is created,
3017         set current cell and selected cell/row/col.
3018
3019 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
3020
3021         * ComboBox.cs: When navigating the drop down by keyboard, we
3022         need to scroll the list box if our selection moves out of the
3023         currently shown items.  [Fixes bug #371990]
3024
3025 2008-03-24  Luke Page <luke.a.page@gmail.com>
3026
3027         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
3028         on the control. Also now handles unicode compatibility characters and
3029         stores the unicode compatibility length on the stack. Fixes Bugs
3030         #355198 and #366436.
3031
3032 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3033
3034         * BindingSource..cs: Take into account DataMember when re-creating the
3035         List property, and also create a specific kind of list as needed.
3036
3037 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3038
3039         * ListBindingHelper.cs: Add a new case for GetList () method - when we
3040         get an empty IEnumerable, try to detect whether the datamember is
3041         valid or not for that type, if true, return null, and throw exception
3042         otherwise.
3043
3044 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
3045
3046         * ComboBox.cs: Alt-Down should drop down the list, Esc should
3047         retract it.  [Fixes bug #371989]
3048
3049 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
3050
3051         * PropertyGrid.cs: Initialize the sorting button as pushed.
3052
3053 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
3054
3055         * PropertyGrid.cs: 
3056          - Visually select the PropertyTab.
3057          - Filter Properties by Attributes properly.
3058
3059 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
3060
3061         * MenuItem.cs: Remove menu item from parent when disposed.
3062         [Fixes bug #372845]
3063
3064 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
3065
3066         * ToolBar.cs: Don't reset layout_type if Dock = None.
3067
3068 2008-03-21  Andreia Gaita <avidigal@novell.com> 
3069
3070         * UserControl.cs: Select the first available control when we get focus.
3071           Fixes #372616
3072
3073 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
3074
3075         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
3076         the content if we are in edit mode.  [Fixes bug #343964]
3077
3078 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
3079
3080         * DataGridViewCell.cs: Fix border painting for column headers.
3081
3082 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3083
3084         * BindingSource.cs: When setting or resetting data source,
3085         use ListBindingHelper.GetList () method, since it will get the list in
3086         case datasource is IListSource.
3087
3088 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
3089
3090         * DataGridViewCell.cs: Implement lots more stuffs.
3091
3092 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
3093
3094         * PropertyGridView.cs, GridEntry.cs: Implement support for 
3095         UITypeEditor.IsDropDownResizable.
3096
3097 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
3098
3099         * DataGridViewCell.cs: Remove unused variables, improve how
3100         several of the property getters work.
3101         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
3102         get its size from the parent row/col.
3103
3104 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
3105
3106         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
3107         user alters manually the PropertyTabs collection via the 
3108         PropertyTabs property.
3109
3110 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3111
3112         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
3113         new tests for them to be sure to be compatible with .net.
3114
3115 2008-03-20  Andreia Gaita <avidigal@novell.com> 
3116
3117         * WebBrowserBase.cs: Fix attributes, add events
3118         * WebBrowser.cs: Fix Padding signature
3119
3120 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
3121
3122         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
3123
3124 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
3125
3126         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
3127         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
3128         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
3129         passes the new suite of tests for it.
3130
3131 2008-03-18  Andreia Gaita <avidigal@novell.com> 
3132
3133         * WebBrowser.cs: Add missing attributes, missing Padding and
3134           DefaultSize properties, remove extraneous getters
3135
3136 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3137
3138         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
3139         method overloads.
3140
3141 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
3142
3143         * ComboBox.cs: Move resetting the selected index to keypress
3144         instead of textchanged.  Changing the text programmatically
3145         should not trigger resetting the selected index.  Fixes test.
3146
3147 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
3148
3149         * ComboBox.cs: When the user types into the textbox, reset
3150         the selected index to -1.  [Fixes bug #371672]
3151
3152 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
3153
3154         * FileDialog.cs: Support Control-A for selecting everything
3155         in an OpenFileDialog.  [Fixes bug #371564]
3156
3157 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
3158
3159         * DataGridView.cs: When row/column visible/height properties
3160         change, invalidate.  Take the NIEX out of InvalidateRow/Column
3161         etc.  We don't support them yet, but we can just invalidate
3162         everything until we do support them.  (Added MonoTODO).  Set
3163         proper control styles.
3164         * DataGridViewRow.cs: Don't call PaintHeader if row headers
3165         are turned off. 
3166
3167 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3168
3169         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
3170
3171 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
3172
3173         * DataGridViewRow.cs: Only paint the white background in
3174         cell bounds, the row bounds extends past the cells if the 
3175         grid width isn't as wide as the DGV.
3176
3177 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
3178
3179         * DataGridView*: Completely revamp the drawing to match the
3180         public API.  Our grids now look better, and call all the
3181         appropriate methods and event to allow users to override
3182         the painting and do their own.
3183
3184 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3185
3186         * ListBindingHelper.cs: Implement 2.0 GetList methods.
3187
3188 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
3189
3190         * DataGridView.cs: Implement BorderStyle.
3191
3192 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
3193
3194         * FileDialog.cs: Apply patch from Andy Hume: Any time we
3195         are comparing attributes, make sure we only look at the
3196         one we are interested.  These calls were failing if there
3197         were more than one attribute.
3198         [Fixes bug #370385]
3199
3200 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
3201
3202         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
3203
3204 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
3205
3206         * PageSetupDialog.cs: Stub EnableMetric.
3207         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
3208         * PrintPreviewDialog.cs: Add ProcessDialogKey,
3209         ProcessTabKey.
3210
3211 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
3212
3213         * MonthCalendar.cs: Remove unused variable.
3214
3215 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
3216
3217         * DataGridView*.cs: corcompare stuffs.
3218
3219 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
3220
3221         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
3222         The savings aren't worth the extra code to fix the optimization.
3223         [Fixes bug #368585]
3224
3225 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
3226
3227         * ToolBar.cs: Always call base.Dock in the Dock override so that
3228         Control's layout_type gets reset correctly.
3229         [Fixes bug #368882]
3230
3231 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
3232
3233         * X11Dnd.cs: End DnD operation also for the middle mouse button.
3234
3235 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
3236
3237         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
3238         at the same time we do explicit ones, because we have to give all
3239         other controls on the container a chance to handle explicit ones
3240         first.  If no one has an explicit mnemonic, then we can let the
3241         MenuStrip have a shot at implicit mnemonics.
3242         * MenuStrip.cs: Create an implicit mnemonic function.
3243         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
3244         mnemonics for MenuStrips.
3245         [Fixes bug #368493]
3246
3247 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
3248
3249         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
3250         DataGridColumnStyle.cs: corcompare stuffs.
3251
3252 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3253
3254         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
3255         Details - This is needed after we added the bits to use any available
3256         column also for List and SmallIcon view. 
3257
3258 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3259
3260         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
3261         at the proper place, not only when changing SelectedIndex and changing
3262         the selection using keys/mouse, as .net does.
3263
3264 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3265
3266         * ControlBindingsCollection.cs: Implement last 2.0
3267         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
3268         in the new 2.0 Add methods.
3269
3270 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3271
3272         * ListBox.cs: When calling SelectedIndexCollection.Clear,
3273         return if no items are previously selected - this is done to avoid 
3274         firing OnSelectedIndexChanged without need to do so. Also,
3275         when creating handle ensure that the focused item is visible (as
3276         .net does).
3277
3278 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3279
3280         * ListBox.cs: Rewrote/refactored most of selection code. We require
3281         the following things in selection: a) keep selection sorted (both
3282         indices and items), b) SelectedIndices automatically detect the
3283         selection mode, c) SelectedIndex should be the first selected item
3284         index, d) Need to Focus/adjust scroll bar when selecting a new item,
3285         not only for SelectedIndex, which is specially important in Multi*
3286         selection modes. To achieve this we are moving the selection core to
3287         SelectedIndexCollection and make depend all selection modifications on
3288         it.
3289         Fixes #366438.
3290
3291 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
3292
3293         * ToolStrip.cs: Enable implicit mnemonics for drop down
3294         menu strips.  [Fixes part of bug #367692]
3295
3296 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
3297
3298         corcompare - fix parameter names [stragglers].
3299         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
3300         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
3301         TabControl.cs.
3302
3303 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
3304
3305         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
3306         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
3307         mnemonic, let the ToolStripManager have it even if it doesn't
3308         have a matching mnemonic.
3309         [Fixes bug #367499]
3310
3311 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
3312
3313         corcompare - fix warning about implicit implementation
3314         * ToolStrip.cs: Add IToolStripData interface.
3315         * IToolStripData.cs: Add.
3316
3317 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
3318
3319         corcompare - fix warning about implicit implementation
3320         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
3321         * IBounds.cs: Add.
3322
3323 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
3324
3325         corcompare - fix parameter names [N-Z].
3326         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
3327         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
3328         PropertyManager.cs, RichTextBox.cs,
3329         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
3330         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
3331         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
3332         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
3333         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
3334         ToolStripContentPanel.cs, ToolStripDropDown.cs,
3335         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
3336         ToolStripPanel.cs, ToolStripSeparator.cs,
3337         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
3338         UICuesEventHandler.cs, UpDownBase.cs.
3339
3340 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
3341
3342         corcompare - fix parameter names [G-M].
3343         GridColumnStylesCollection.cs, GridItemCollection.cs,
3344         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
3345         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
3346         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
3347         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
3348         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
3349
3350 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
3351
3352         corcompare - fix parameter names [A-F].
3353         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
3354         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
3355         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
3356         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
3357         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
3358         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
3359         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
3360
3361 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
3362
3363         * GridEntry.cs: Do not convert not only if the types match, 
3364         but also if the property type is assigneable from the value's
3365         type.
3366         [Fixes bug #366566]
3367
3368 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
3369
3370         * PropertyGridView.cs: 
3371          - Subscribe to the listbox only once and not everytime.
3372          - Update the textbox even if SetValue fails.
3373          - Close the listbox before calling TrySetValue just in case.
3374          [Fixes bug #366569]
3375
3376 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
3377
3378         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
3379
3380 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3381
3382         * ListView.cs: Implement support for custom column width based on
3383         Columns collection (we were previously using this collection only
3384         with Details view).
3385         Fixes #364484.
3386
3387 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3388
3389         * ListViewItem.cs: For Tile view, always set bounds for the first
3390         subitem (which is the main one), and also don't let Width be larger
3391         than ListView.TileSize.Width. Improve code readibility also.
3392         * ThemeWin32Classic.cs: When painting the ListViewItem instances
3393         in Tile view, _always_ use the NoWrap flag.
3394         Fixes #360798.
3395
3396 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
3397
3398         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
3399         in case.
3400         * GridEntry.cs: For MS compitability make all child properties 
3401         readonly if the parent is readonly. Ugh.
3402         [Fixes bug #365945 and #365944]
3403
3404 2008-02-29  Andreia Gaita <avidigal@novell.com> 
3405
3406         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
3407           relative to the history
3408
3409 2008-02-29  Andreia Gaita <avidigal@novell.com>
3410
3411         * HtmlElement.cs: More handlers for mouse and key events
3412
3413 2008-02-28  Andreia Gaita <avidigal@novell.com>
3414
3415         * WebBrowserBase.cs: MouseClick sig changed.
3416         * HtmlHistory.cs: Implement history navigation
3417         * HtmlElement.cs: Add event handlers, and connect them.
3418
3419 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
3420
3421         * GridEntry.cs: 
3422          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
3423            so that DisplayNameAttribute doesn't get ignored.
3424          - Check for ParenthesizeNameAttribute and parenthesize the Label.
3425          - Add support for PasswordPropertyTextAttribute
3426         * PropertyGridView.cs: Check if an entry is a password.
3427         [Fixes bugs #365589, #365586, #365588]
3428
3429 2008-02-28  Andreia Gaita <avidigal@novell.com>
3430
3431         * PropertyGridView.cs: Revert the message filtering change, as we
3432         need it to block after all. Remove block parameter, unnecessary.
3433
3434 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
3435
3436         * UserControl.cs: Better implementation of GetPreferredSize.
3437         First step to fixing bug #361441.
3438
3439 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3440
3441         * Binding.cs: Actually implement data binding support for 
3442         classes implementing IBindableComponent.
3443         * ControlBindingsCollection.cs: Likewise.
3444
3445 2008-02-26  Andreia Gaita  <avidigal@novell.com>
3446
3447         * PropertyGridView.cs: Use a message filter to check when to 
3448         close the dropdown
3449
3450 2008-02-26  Andreia Gaita  <avidigal@novell.com>
3451
3452         * Application.cs: Change the message_filters loop so a filter 
3453         can be removed while looping.
3454
3455 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
3456
3457         * GridEntry.cs: Optimization in ToggleValue so that it caches
3458         the current value.
3459         * PropertyGridView.cs: An optimization so that the property isn't 
3460         re-read twice for each StandardValue added to the drop-down menu.
3461         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
3462         license.
3463         [Fixes bug #362755]
3464
3465 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
3466
3467         * Application.cs: Apply patch from Justin Cherniak to match
3468         MS better for ProductName, ProductVersion, and CompanyName.
3469         [Fixes bug #361709]
3470
3471 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3472
3473         * Binding.cs: Actually implement 2.0 NullValue property. Also
3474         when changing the formatting related properties, only update the state
3475         if formatting_enabled is true (we don't mind otherwise).
3476
3477 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
3478
3479         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
3480         [Fixes bug #364486]
3481
3482 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
3483
3484         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
3485         of GetType on the current value as it uses reflection to 
3486         determine the type. This fixes the case where the new value is 
3487         null. 
3488
3489 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
3490
3491         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
3492         past the view.
3493
3494 2008-02-24  Luke Page  <luke.a.page@gmail.com>
3495
3496         * Line.cs, TextControl.cs: Implement offset x and y so that a
3497         document doesn't have to begin  at (0,0) on the viewpoint.
3498         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
3499         bars and switches the text alignment (and therefore is now
3500         implemented for textbox). Fixes #321383.
3501
3502 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3503
3504         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
3505         properties. Also when changing FormattingEnabled update the control
3506         property -as .Net does-.
3507
3508 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
3509
3510         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
3511         * Binding.cs: Add stubs for the overloads of the Add method in
3512         CBCollection.
3513
3514 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3515
3516         * Binding.cs: PullData () returns a false value if we got an exception.
3517         Also when validating the control and we get an error, instead of
3518         setting the value of the previous one, cancel the event (tested in 1.1
3519         and 2.0).
3520
3521 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
3522
3523         * TreeView.cs: Make selected_node and highlighted_node internal.
3524         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
3525         to null when Nodes.Clear is called.
3526         [Fixes bug #363884]
3527
3528 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
3529
3530         * FontDialog.cs: Ensure that when the Font is set in code,
3531         all the gui pieces are updated accordingly.
3532         [Fixes bug #361020]
3533
3534 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
3535
3536         * TextRenderer.cs: Respect proposed size for MeasureString.
3537         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
3538         autosize, use a proposed width to force wrapping for long text.
3539         [Fixes bug #360981]
3540
3541 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
3542
3543         * TreeView.cs: Factor in checkboxes = false and state images in
3544         to HitTest.  [Fixes bug #363360]
3545
3546 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
3547
3548         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
3549         when drawing the selected range.
3550         [Fixes bug #363648]
3551
3552 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
3553
3554         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
3555         ResizeRedraw control styles.
3556         [Fixes bug #363555]
3557
3558 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
3559
3560         * TreeView.cs: StateImages are basically custom checkboxes, so
3561         factor their size the same as real checkboxes when determining
3562         what got clicked.
3563         [Fixes bug #363367]
3564
3565 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
3566
3567         * MessageBox.cs: Make the message box wider if the form caption
3568         is longer than the text in the form.
3569         [Fixes bug #361137]
3570
3571 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
3572
3573         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
3574
3575 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
3576
3577         * TreeNode.cs: Guard against an NRE when the parent's
3578         StateImageList hasn't been set.
3579         [Fixes bug #363353]
3580
3581 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
3582
3583         * SplitContainer.cs: Add SupportsTransparentBackColor and
3584         OptimizedDoubleBuffering control styles.
3585         [Fixes bug #363303]
3586
3587 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
3588
3589         * Application.cs: For the app data paths and the registry key paths,
3590         ensure they are created before returning them to the user.
3591         [Fixes bug #361709]
3592
3593 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
3594
3595         * Application.cs: Guard against an NRE in CompanyName and
3596         ProductName.
3597
3598 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
3599
3600         * Application.cs: For CompanyName, ProductName, and ProductVersion,
3601         make sure we handle all three cases correctly: attribute is present,
3602         attribute is present but is an empty string, and attribute is not
3603         present.
3604
3605 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
3606
3607         * PropertyGridView.cs: 
3608          - Fix a NRE that caused a test failure
3609          - Another performance improvement - cache the standard values
3610          listbox.
3611
3612 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
3613
3614         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
3615         code paths.
3616
3617 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
3618
3619         * PropertyGridView.cs: Fix a big performance bug.
3620
3621 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
3622
3623         * SelectionRange.cs: Apply patch from Andy Hume to make
3624         constructor behavior more accurate.  [Fixes bug #362117]
3625
3626 2008-02-19  Andreia Gaita <avidigal@novell.com> 
3627
3628         * Control.cs: Added a new flag is_disposing to track if the
3629         window is currently in the process of being disposed of.
3630         This is used so that, when firing visibility changes triggered
3631         by unparenting controls during Dispose, the control doesn't
3632         get created again.      
3633
3634 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
3635
3636         * ComboBox.cs: Set height to preferred height when the handle
3637         is created.  [Fixes bug #360862]
3638
3639 2008-02-18  Andreia Gaita <avidigal@novell.com>
3640
3641         * XplatUIX11.cs: Create FosterParent with border width at 0.
3642         With the previous value of 4, everytime a control got reparented
3643         from parent = null, it's location would be shifted right and 
3644         down by 4, since these coordinates would be offset by the 
3645         FosterParent's border width.
3646
3647 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
3648
3649         * Control.cs: During diposing firstly remove ourselfes from
3650         the parent and *then* destroy our handle, because removing
3651         ourselfes from the parent controls collection causes 
3652         VisibilityChange, etc events, which require a handle and end
3653         up recreating the control.
3654
3655 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
3656
3657         * GridEntry.cs: Set expanded state before notifying that the
3658         expansion has taken place.
3659         * PropertyGridView.cs:
3660          - Set the propertygridtextbox text to the selected 
3661          StandardValue before proceeding to setting it.
3662          - Scrolling bugfixes.
3663
3664 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
3665
3666         * GridEntry.cs:
3667          - Fix ValueText to not return null.
3668          - Fix conversion error reporting to actually happen.
3669         * PropertyGridView.cs: Set entry only if the text has changed.
3670         [Fixes bug #362116]
3671
3672 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
3673
3674         * GridEntry.cs: 
3675          - Fix handling of a null current value.
3676          - Swallow editor exceptions.
3677         [Fixes bug #362114]
3678
3679 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
3680
3681         * PropertyGrid.cs: Clear current items first thing before 
3682         repopulating subitems.
3683         * GridEntry.cs: 
3684          - Handle null StandardValuesCollection.
3685          - Mark as not editable if there is no PropertyDescriptor and
3686          if the Converter cannot convert from string.
3687         [Part of fix for bugs #360666 and #358332]
3688
3689 2008-02-15  Luke Page  <luke.a.page@gmail.com>
3690         * MaskedTextBox.cs: Now skips non editable characters after a
3691         character has been entered and we are progressing to the next
3692         position in the MaskedTextBox.
3693
3694 2008-02-15  Luke Page  <luke.a.page@gmail.com>
3695         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
3696         that it changes the selection rather than just repositioning the
3697         cursor. Fixes Bug #360873.
3698
3699 2008-02-15  Luke Page  <luke.a.page@gmail.com>
3700         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
3701         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
3702         correctly. See #359330
3703
3704 2008-02-15  Andreia Gaita <avidigal@novell.com>
3705
3706         * XplatUIX11.cs: If the handle is null when posting a message, use the
3707         current thread queue to post instead. Fixes #332409
3708
3709         * SendKeys.cs: Slight optimization
3710
3711 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
3712
3713         * PropertyGrid.cs, PropertyGridView.cs:
3714         Fix multiple scrolling and sizing issues.
3715         [Fixes bug #359199]
3716
3717 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
3718
3719         * PropertyGridView.cs: Ensure that drop down editors are shown
3720         in the WorkingArea of the screen.
3721         [Fixes bug #359807]
3722
3723 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
3724
3725         * GridEntry.cs: Fail silently when UITypeEditor is missing.
3726         [Fixes bug #360666]
3727
3728 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3729
3730         * Binding.cs: Implement 2.0 DataSourceNullValue property.
3731
3732 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
3733
3734         * PropertyGridView.cs:
3735          - Clear the controls in the drop down form after it is hidden.
3736          - Fix Width sizing of the dropdown editors to match MSFT.
3737
3738 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
3739
3740         * PropertyGridView.cs: 
3741          - Fix height for drawing the grid entry
3742          text value, so that it clips multiline text properly.
3743          - Fix unfocusing to match MSFT.
3744
3745 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
3746
3747         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
3748         Fixes a bug where on repopulation after value changed items become
3749         expandable.
3750
3751 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3752
3753         * Binding.cs: For the 2.0 profile, look for a 
3754         'PropertyChanged' event in the target control, and add checks for
3755         DataSourceUpdateMode property to change -or not- the data source
3756         from validation/control property change.
3757
3758 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
3759
3760         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
3761           not compare struct with null in 2.0).
3762
3763 2008-02-10  Luke Page <luke.a.page@gmail.com>
3764
3765         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
3766         updates the provider and if not using a provider, uses the internal document
3767         class implementation of password char. Also when showing text, uses display string
3768         from the provider, instead of the actual text.
3769
3770 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3771
3772         * Binding.cs: Ooooops, forgot to take into account the data_source
3773         and binding_member_info null case (it was breaking the Binding tests).
3774
3775 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3776
3777         * Binding.cs: Implement support for data source changes exposed by
3778         'PropertyNameChanged' events, and update the control property as
3779         needed.
3780
3781 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3782
3783         * Binding.cs: Implement 2.0 WriteValue method.
3784
3785 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
3786
3787         Commit patch from James Purcell for better AutoScale implementation:
3788
3789         * ScaleControl should call GetScaledBounds with the control's total size rather
3790         than client size.  GetScaledBounds should handle ignoring the borders in its
3791         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
3792         (for the most part they just call the base code now since that is fixed).
3793         * Added ScaleChildrenInternal to allow controls to disable scaling of children
3794         without having to override ScaleChildren (since none of .NET's controls do). 
3795         This is required for most controls in Mono that have scrollbars to prevent the
3796         scrollbars from being moved/resized.
3797         * Nested ContainerControls can have a different scale mode than their parent. 
3798         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
3799         designer produce different results both of which look incorrect).
3800         * Default AutoScaleMode for ContainerControl should be Inherit.
3801         * Simplified workaround for ComboBox scaling issue.
3802         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
3803         1.0 style auto scaling should scale the whole control's size instead of
3804         ignoring the borders (except for Form) and the rounding is done differently to
3805         preserve control alignment.
3806         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
3807         GetAutoScaleSize.
3808         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
3809         * CurrentAutoScaleDimensions should round the estimated character width instead
3810         of truncating.
3811         * ListBox's GetScaledBounds should always use the height it was set to instead
3812         of the height that was passed in.  This prevents rounding errors from
3813         accumulating quickly with IntegralHeight.
3814         [Bug #359098]
3815
3816 2008-02-08  Andreia Gaita <avidigal@novell.com>
3817
3818         * Form.cs: Add a null check (darn it). 
3819
3820 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
3821
3822         * MdiClient.cs: Make sure the requesting form actually owns the
3823         control menu items before removing them.  Also, use
3824         Suspend/ResumeLayout when adding or removing items so we only
3825         layout once.
3826         [Fixes bug #359887]
3827
3828 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
3829
3830         * Control.cs: Guard against an NRE in ShowFocusCues.
3831         [Fixes bug #359830]
3832
3833 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3834
3835         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
3836         property, as well as stubbing DataSourceUpdateMode.
3837
3838 2008-02-08  Andreia Gaita <avidigal@novell.com>
3839
3840         * Form.cs: When closing forms, get focus back to the active control of the
3841         active form. [Fixes #341314, corner case]
3842         
3843 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3844
3845         * MdiClient.cs: After we move the scrollbars, invalidate the NC
3846         area, so any old scrollbar artifacts are cleaned up.
3847         [Fixes bug #336305]
3848
3849 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3850
3851         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
3852         for our menus, display that control box menu instead of the 1.1
3853         menu one.
3854
3855 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3856
3857         * MdiControlStrip.cs: Add property to access the mdi form tied to
3858         each toolstripitem.
3859         * MdiClient.cs: Be smarter about removing and adding toolstripitems
3860         to the implicitly merged menu.  Every time we clicked the form, items
3861         were getting removed and the re-added, causing the form to jump around
3862         as the menu resized.
3863
3864 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3865
3866         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
3867         was being reset by the implicit menu merge for menustrips.
3868         [Fixes bug #336296]
3869
3870 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3871
3872         * Form.cs: Don't do the previous change when WindowState = Normal,
3873         or it messes up where the window is placed.  Fixes test failure.
3874
3875 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
3876
3877         * Form.cs: When becoming visible, if we are an MDI child, call
3878         SetWindowState with a dummy old_state so that changes will actually
3879         be made.
3880         [Fixes the 2nd part of bug #325473]
3881
3882 2008-02-07  Andreia Gaita <avidigal@novell.com>
3883
3884         * Control.cs: Reset properties to their pre parent-change values in case
3885         the new parent == null (in which case we're basically removing the control, 
3886         and don't want any events fired due to fake property changes)
3887         [Fixes #355850]
3888
3889 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
3890
3891         * PropertyGridView.cs: 
3892          - Refactor SetValue to allow setting the value
3893         when a custom editor is used, but the entry is not editable.
3894          - Remove the custom editor control on CloseDropDown.
3895         [Fixes #359196]
3896
3897 2008-02-06  Andreia Gaita <avidigal@novell.com>
3898
3899         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
3900         reflection only on 1.1, this property is public on system.drawing on 2.0.
3901         Fixed #359247
3902
3903 2008-02-06  Andreia Gaita  <avidigal@novell.com>
3904         
3905         * WebBrowser.cs: Do a normal page refresh by default.
3906
3907 2008-02-05  Andreia Gaita  <avidigal@novell.com>
3908
3909         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
3910         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
3911         platforms. Fixes #359036
3912         
3913         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
3914         platform-specific flags.
3915
3916 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3917
3918         * Binding.cs: Add 2.0 BindableComponent property - just return control
3919         by now.
3920
3921 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
3922
3923         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
3924         Jonathan for this patch. Fixes #358442.
3925
3926 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
3927
3928         * Form.cs: If we change the active MDI child form, let the others
3929         know they need to repaint their title bar so it will appear inactive.
3930         [Fixes part 1 of bug #325473]
3931
3932 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
3933
3934          * PropertyGridView.cs: Do not trucate custom editors' width
3935          and align them to the left.
3936          [Fixes #358353 and #358349]
3937
3938 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3939
3940         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
3941         Also fix the arguments passed to CollectionChangeEventArgs in the
3942         related methods.
3943
3944 2008-02-04  Geoff Norton  <gnorton@novell.com>
3945
3946         * Hwnd.cs: The conversion to Quartz coordinates happens in
3947         System.Drawing.  Removing this translation from here.
3948
3949 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
3950
3951          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
3952          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
3953          GridItemCollection.cs:
3954          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
3955
3956 2008-02-04  Geoff Norton  <gnorton@novell.com>
3957
3958         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
3959         SYSKEYUP if any other key has been pressed in the mean time.
3960         Fixes #324404
3961
3962 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3963
3964         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
3965         when the item in current position is different than 0. Also, save the
3966         item index in the beginning of the operation, instead of getting the
3967         index of the item when the event is actually performed. Lastly clean
3968         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
3969         triggered.
3970         [Fixes #357873]
3971
3972 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
3973
3974         * Form.cs: Alt-Minus for MDI children system menu should work
3975         with both the minus keys on the keyboard.
3976         [Fixes bug #336295]
3977
3978 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
3979
3980         * Control.cs: Don't invalidate on region change.  The WM should
3981         take care of this automagically.  Keeps us out of an infinite
3982         paint loop if someone changes the Region in the OnPaint.
3983         [Fixes bug #358327]
3984
3985 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
3986
3987          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
3988
3989 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
3990
3991         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
3992         down the MonthCalendar only on F4, not Alt+F4.
3993         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
3994         [Fixes bug #358340]
3995
3996 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
3997
3998         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
3999         if its part of a DateTimePicker, else, use the back color.
4000         [Fixes bug #358339]
4001
4002 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
4003
4004         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
4005         [Fixes bug #358342]
4006
4007 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4008
4009         * CurrencyManager.cs: When we get a ListChanged event from our source,
4010         always fire our own ListChanged event, as .Net does.
4011
4012 2008-02-03  Luke Page  <luke.a.page@gmail.com>
4013
4014         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
4015         #358379.
4016
4017 2008-02-03  Luke Page  <luke.a.page@gmail.com>
4018
4019         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
4020         property. Removed if for richtext property that was always true.
4021         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
4022
4023 2008-02-03  Luke Page  <luke.a.page@gmail.com>
4024
4025         * TextBoxBase.cs - commited patch from James Purcell that
4026         correctly sets the FixedHeight control style when the MultiLine
4027         property is changed on a TextBox control. Fixes bug 358229.
4028
4029 2008-02-02  Luke Page  <luke.a.page@gmail.com>
4030
4031         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
4032         Fixes bug 351938 - caret is positioned correctly when drawn
4033         and when calculating textual position of caret, no longer
4034         has a NRE in certain situations.
4035         
4036 2008-02-01  Geoff Norton  <gnorton@novell.com>
4037
4038         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
4039         get that region removed from the paint event.
4040         * XplatUICarbon.cs: Remove the window mapping after disposing of 
4041         window.  Prevents a crash with handle reuse.  Optimize exposes
4042         only onto visible windows (rare; but possible).
4043
4044 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
4045
4046         * UpDownBase.cs: Make sure the internal textbox calls the base's
4047         OnMouseDown and OnMouseUp so the textbox will function correctly.
4048         There were notes saying it doesn't chain up, but its an internal
4049         class, so our implementation may differ.
4050         [Fixes bug #357482]
4051
4052 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
4053
4054         * ListBox.cs: Fix a logic error and don't process MouseDown
4055         for mouse buttons other than Left.
4056
4057 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
4058
4059         * Control.cs: Remove HeightInternal.
4060         * ListBox.cs: Commit patch from James Purcell that correctly
4061         calculates heights for ListBoxen.
4062         [Fixes bug #357152]
4063
4064 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
4065
4066         * Label.cs: Apply patch from James Purcell that corrects the 
4067         signature of the AutoSize property.
4068         [Fixes bug #357605]
4069
4070 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
4071
4072         * ListBox.cs: Don't throw [Mouse]Click events for buttons
4073         other than the left mouse button.
4074
4075 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
4076
4077         * Control.cs: Remove my awesome optimization as it caused some
4078         regressions with control ordering.  :(
4079         [Fixes bug #357467]
4080
4081 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
4082
4083          * PropertyGridView.cs: Fix a NRE on double click when there is no
4084          selected object.
4085
4086 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4087
4088         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
4089
4090 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
4091
4092         * ListBox.cs: Call MouseClick and MouseDoubleClick.
4093         [Fixes bug #357146]
4094
4095 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
4096
4097         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
4098         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
4099         instead of Hwnd.bmp_g.
4100
4101 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
4102
4103         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
4104         Use the Hwnd one instead.
4105
4106 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
4107
4108         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
4109
4110 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
4111
4112         * Form.cs: corcompare for RestoreBounds.
4113
4114 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
4115
4116         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
4117
4118 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
4119
4120         * Form.cs: Handle Alt-Minus for MDI children forms.
4121         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
4122         Add mnemonics to the control menu.
4123         [Fixes bug #336295]
4124
4125 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4126
4127         * Binding.cs: Initial implementation bits of FormattingEnabled
4128         property and BindingComplete event (2.0). 
4129         * BindingCompleteEventArgs.cs: Internal methods for setting error text
4130         and exception.
4131
4132 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
4133
4134         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
4135         table.Location.  [Fixes bug #354672]
4136
4137 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
4138
4139         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
4140         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
4141
4142 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4143
4144         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
4145         of doing all the re-bound work, just invalidate and call SetControlText 
4146         to set the updated text of selected item to our textbox.
4147         Fixes #333750.
4148
4149 2008-01-28  Andreia Gaita <avidigal@novell.com>
4150
4151         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
4152         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
4153         missing properties and methods. Add Load, Unload, Error, GotFocus, 
4154         LostFocus, Resize, Scroll events (only load and unload are connected)
4155
4156 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
4157
4158         * AccessibleObject.cs: Modified argument names to match MS.
4159         * Button.cs: Modified argument names to match MS.
4160         * BindingContext.cs: Modified argument names to match MS.
4161         * BindingMemberInfo.cs: Modified argument names to match MS.
4162         * ButtonBase.cs: Modified argument names to match MS.
4163         * ComboBox.cs: Modified argument names to match MS.
4164         * Control.cs: Modified argument names to match MS.
4165         * CheckedListBox.cs: Modified argument names to match MS.
4166         * CommonDialog.cs: Modified argument names to match MS.
4167         * DataGrid.cs: Modified argument names to match MS.
4168         * CursorConverter.cs: Modified argument names to match MS.
4169         * ControlPaint.cs: Modified argument names to match MS.
4170         * CheckBox.cs: Modified argument names to match MS.
4171         * ControlBindingsCollection.cs: Modified argument names to match MS.
4172         * BindingSource.cs: Modified argument names to match MS.
4173         * DataFormats.cs: Modified argument names to match MS.
4174         * ContainerControl.cs: Modified argument names to match MS.
4175         * CurrencyManager.cs: Modified argument names to match MS.
4176         * Application.cs: Modified argument names to match MS.
4177         * ContextMenuStrip.cs: Modified argument names to match MS.
4178         * ContextMenu.cs: Modified argument names to match MS.
4179         * BindingManagerBase.cs: Modified argument names to match MS.
4180         * WindowsFormsSection.cs: Fixed line ending.    
4181
4182 2008-01-27  Andreia Gaita <avidigal@novell.com>
4183
4184         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
4185         detecting that the dropdown toolwindow is hidden. EndLoop outside the
4186         while.
4187
4188 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
4189
4190         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
4191         MS. Code formatting.
4192
4193 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4194
4195         * Binding.cs: Don't avoid the Format event if the control 
4196         property type is object. Also, if the value retrieved by 
4197         the data source is null _and_ the control proeprty type 
4198         is object, return Convert.DBNull (match .Net).
4199         Fixes part of #324286.
4200
4201 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4202
4203         * ListControl.cs: Since we are getting two BinginContextChanged events
4204         for the same binding context instance (when the control is added to
4205         form, and when the form is actually shown), take it into account only the
4206         first time for a given binding context instance.
4207         Fixes part of #324286.
4208
4209 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
4210
4211          * PropertryGridView.cs: Ops.
4212
4213 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
4214
4215          * PropertyGridView.cs: Close dropdown form if the owner form is
4216          moved or minimized.
4217          [Fixes bug #322446]
4218
4219 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
4220
4221          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
4222          RootGridEntry.cs, CategoryGridEntry.cs:
4223          PropertyGrid rewrite.
4224          - Rewrite all of the control logic in PropertyGrid.
4225          - Rewrite all of the ComponentModel logic in GridEntry.
4226          - Rewrite all UI work in PropertyGridView.
4227          - Many bugfixes, etc.
4228
4229 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
4230
4231         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
4232         when all contained controls are autosize or dock-fill.  Also take into
4233         account when the total percentage of column/row sizes is not 100%.
4234         [Fixes bug #354672]
4235
4236 2008-01-24  Andreia Gaita <avidigal@novell.com>
4237
4238         * HtmlDocument.cs:
4239         - Save a reference to the IDocument in the instance and
4240           use that one instead of going to WebHost.Document; the document that the 
4241           WebHost returns might not be the right one (in case of frames).
4242         - Use the hashcode returned from the IDocument interface.
4243         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
4244           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
4245           LinkColor, Url, VisitedColor, Window
4246
4247         * HtmlElement.cs: 
4248         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
4249           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
4250           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
4251           SetAttribute, Equals, equality operators.
4252         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
4253           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
4254         
4255         * HtmlElementCollection.cs: Change implementation to use a generic
4256         collection. Implemented Enumerator and CopyTo
4257
4258         * HtmlHistory.cs: Add constructor, no implementation yet.
4259
4260         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
4261         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
4262         Equals, equality operators.
4263
4264         * HtmlWindowCollection.cs: Implemented. 
4265
4266         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
4267         has been deprecated).
4268
4269         * WebBrowserBase.cs: Use Completed event to track document loading
4270         (Navigated has been deprecated)
4271
4272 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
4273
4274         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
4275         level MenuItems do not respect tabs.
4276         [Fixes bug #355196]
4277
4278 2008-01-23  Geoff Norton  <gnorton@novell.com>
4279
4280         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
4281         FormWindowState.  Finished fixing Fullscreen windows on Carbon
4282
4283 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
4284
4285         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
4286         be used as grab_control. Also save status of capture before show ContextMenu
4287         and restore it after close.
4288
4289 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
4290
4291         * Control.cs: Internal FindRootParent method added to return high control
4292         in parent tree.
4293
4294 2008-01-23  Geoff Norton  <gnorton@novell.com>
4295
4296         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
4297         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
4298         it work again.  Handle HITTEST events.
4299
4300 2008-01-23  Geoff Norton  <gnorton@novell.com>
4301
4302         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
4303         a crash in certain cases.  Support for fullscreen windows in certain cases.
4304
4305 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
4306
4307         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
4308         [Fixes bug #355703]
4309
4310 2008-01-23  Geoff Norton  <gnorton@novell.com>
4311         
4312         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
4313
4314 2008-01-23  Geoff Norton  <gnorton@novell.com>
4315
4316         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
4317
4318 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
4319
4320         * SplitContainer.cs: Remove unused declarations.
4321         * Binding.cs: Remove unused declarations.
4322
4323 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
4324
4325         * Form.cs: Remove unused declaration of 'active' in Activate method.
4326         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
4327         prevent compilation warnings.
4328         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
4329         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
4330         * Bindings.cs: Remove unused formatting_enabled declaration.
4331         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
4332         warnings.
4333         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
4334         warnings.
4335         * PropertyGridView.cs: Remove usused 'ex' declaration.
4336         * DataGridView.cs: Remove unused declarations.
4337
4338 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
4339
4340         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
4341         
4342         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
4343         to Control class, it makes possible to grab menu to controls that can't 
4344         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
4345         WmMouseMove removed since it was used only to track menu events.
4346
4347         * Control.cs:
4348         - Moved all active_tracker stuff from Form.
4349         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
4350         can call this method instead of reimplement all necessary code handle for
4351         menu tracker.
4352         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
4353         and WmMouseMove).
4354         
4355         * MenuAPI.cs: 
4356         - Remove special handle to ToolStripOverflow, now we can grab menu to 
4357         controls that can't reach Form using parent tree.
4358         - Change type of grab_control from Form to Control.
4359
4360 2008-01-22  Geoff Norton  <gnorton@novell.com>
4361
4362         * TextBoxBase.cs: Split up the sizing of controls and placing of 
4363         controls.  Fixes a bug where scrollbars in Reflector could be sized
4364         wrong and have non-working thumbers.
4365
4366 2008-01-23  Geoff Norton  <gnorton@novell.com>
4367
4368         * XplatUI.cs: Refactor environment variables to default support to the
4369         Carbon driver on the Mac.
4370
4371 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
4372
4373         * Label.cs: Uses new LabelPainter for drawing operations.
4374         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
4375         * Theme.cs: DrawLabel and LabelDefaultSize removed.
4376
4377 2008-01-22  Geoff Norton  <gnorton@novell.com>
4378
4379         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
4380
4381 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
4382
4383         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
4384         through the normal flat button code and don't draw the checkbox glyph.
4385         * Theme.cs: Button->ButtonBase signature change.
4386         [Fixes bug #324755]
4387
4388 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
4389
4390         * LinkLabel.cs: Uses new class LinkLabelPainter.
4391
4392 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
4393
4394         * MessageBox.cs: Adjust right border space, we don't need to add 
4395         "space_border*2" two times.
4396
4397 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
4398
4399         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
4400         becomes a wrapper around Padding.
4401         [Fixes a part of bug #354676]
4402
4403 2008-01-22 Geoff Norton  <gnorton@novell.com>
4404
4405         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
4406         acquired.  Also ensure the buffer is large enough to grab the header
4407         we need on linux boxes.
4408
4409 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
4410
4411         * Control.cs: Implement a custom enumerator so people can delete
4412         from the Controls collection while in a foreach.
4413         [Fixes bug #355074]
4414
4415 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
4416
4417          * PropertyGridView.cs: Fix focusing behavior:
4418          - Tab should focus the grid text box.
4419          - Clicking on the labels shouldn't focus the grid text box.
4420
4421 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
4422
4423          * PropertyGridView.cs: IsValueTypeGridItem should return true 
4424          for Arrays as well.
4425
4426 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
4427
4428          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
4429           - Renamed GridEntry.SelectedObjects to TargetObjects to better
4430           reflect the property name role.
4431           - PropertyGrid.GetTarget is not required as the target is known
4432           (TargetObjects).
4433           - Setting values will handle value types as a special case now and
4434           populate them up in the chain.
4435           [Fixes #354990]
4436
4437 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
4438
4439         * Hwnd.cs: Create a public property for the Graphics we keep around.
4440
4441 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
4442
4443          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
4444          when the current object selection changes. 
4445          Fixes failing test SelectedObject_Null2.B5.
4446
4447 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
4448
4449          * PropertyGrid.cs: Process Browsable properties with 
4450          DesignerSerializationVisibilityAttribute.Content as being expandable.
4451          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
4452          will not be expandable. We should be nested components-friendly now.
4453
4454 2008-01-21  Andreia Gaita <avidigal@novell.com>
4455
4456         * WebBrowserBase.cs: Check if control was loaded properly, 
4457         don't bind if it wasn't.
4458
4459         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
4460         GetElementFromPoint, equality operators, OpenNew, Write.
4461         Remove extra set_Body
4462
4463 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
4464
4465         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
4466         that makes our AutoScale* stuff more tolerant to different orders
4467         of being set.  [Fixes bug #354669]
4468
4469 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
4470
4471          * PropertyGridView.cs, PropertyGridTextBox.cs: 
4472          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
4473          [Fixes #339005 and #348209]
4474
4475 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
4476
4477          * PropertyGridView.cs: Hide the grid text box before adjusting it
4478          for the newly selected GridItem.
4479          [Fixes #338999]
4480
4481 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
4482
4483         * Form.cs: Give MDI children the opportunity to cancel the parent form
4484         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
4485         properly for both the parent and child.
4486         * Application.cs: Signature of internal method changed, pass the previous
4487         default of false.
4488         [Fixes bug #354286]
4489
4490 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
4491
4492         * PropertyGridView.cs: Set the property value only if it has changed.
4493         [Fixes bug #338997]
4494
4495 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
4496
4497         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
4498         If the mouse hasn't actually moved, ignore these messages so the currently
4499         highlighted menuitem isn't reset to the one under the mouse.
4500         [Fixes bug #333668]
4501
4502 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
4503
4504         * PropertyGridView.cs: When the property changes Invalidate the GridItem
4505         in order for the properties with UITypeEditor.GetPaintValueSupported == true
4506         to reflect the change visually.
4507         [Fixes bug #338998]
4508
4509 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
4510
4511         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
4512         to 2.0 button drawing.
4513         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
4514         the button text is tall enough for one line.  LineLimit says it will
4515         always draw at least one line, but it is a lie.
4516         [Fixes bug #324941]
4517
4518 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
4519
4520         * XplatUIStructs.cs, X11Keyboard.cs :
4521           added some more VK_* keys to be handled.
4522
4523 2008-01-16  Andreia Gaita <avidigal@novell.com>
4524
4525         * Control.cs: Check if there is a container before setting or getting
4526         the validation flag.
4527
4528 2008-01-16  Andreia Gaita <avidigal@novell.com>
4529
4530         * ContainerControl.cs: Add flag to track if a control cancels validation, 
4531         so we don't fire click events.
4532
4533         * Control.cs: 
4534         - (HandleClick) Check if validation was cancelled before  firing the click
4535         events (doubleclicks are fired, but not clicks)
4536         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
4537         ContainerControl.set_ActiveControl, but in the case of non-selectable
4538         controls, like a Label, activecontrol is not set. 
4539
4540         * ButtonBase.cs: Only fire clicks if validation passes.
4541         
4542         Fixes #353310
4543
4544 2008-01-16  Geoff Norton  <gnorton@novell.com>
4545
4546         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
4547         trunk
4548
4549 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
4550
4551         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
4552         SelectedPath, just display the default dialog instead of crashing.
4553         [Fixes bug #348989]
4554
4555 2008-01-16  Geoff Norton  <gnorton@novell.com>
4556
4557         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
4558         AddExpose instead of trusting apples compositing manager which doesn't
4559         work for our use case.  Remove some dead code causing warnings and 
4560         redecorate some other code to prevent warnings.
4561
4562 2008-01-16  Geoff Norton  <gnorton@novell.com>
4563
4564         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
4565         carbon signals us to redraw.  Fixes another portion of the flickering bug
4566
4567 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
4568
4569         * Form.cs: Prevent the MdiParent property to be set when value is the same
4570         as value already set. Fixes bug #328019.
4571
4572 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
4573
4574         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
4575         it prevents NRE when closing mdi child windows. Fixes bug #325211.
4576
4577 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
4578
4579         * InternalWindowManager.cs: Invalidade close button after mouse up when 
4580         mdi form is prevented to close.
4581
4582 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
4583
4584         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
4585         thanks to Andy Hume. Fixes bug #325433.
4586
4587 2008-01-16  Andreia Gaita <avidigal@novell.com>
4588
4589         * LinkLabel.cs: Reset focused_index when resellecting the control.
4590         Fixes #323190
4591
4592 2008-01-15  Geoff Norton  <gnorton@novell.com>
4593
4594         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
4595         messages.
4596
4597 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
4598
4599         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
4600         of truncate.
4601
4602 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
4603
4604         * ContainerControl.cs: Setting AutoScaleMode to anything should set
4605         Form.AutoScale to false.
4606         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
4607         AutoScaleBaseSize should be changed on Font change unless it has been
4608         explicitly set.
4609         [Fixes bug #353827]
4610
4611 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
4612
4613         * MenuAPI.cs: On instance of MenuTracker check if source control is
4614         ToolStripOverflow and use properly method to find form.
4615         [Fixes bug #338511]
4616
4617 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
4618
4619         [Fixes bug #323241 Transparent toolbar support]
4620
4621         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
4622         is flat.
4623
4624         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
4625         defined in control style to mimic win32 behavior.
4626
4627         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
4628         it will be transparent.
4629
4630 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
4631
4632         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
4633         CreateParams for ToolBar controls.
4634
4635 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
4636
4637         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
4638         FixedToolWindow, SizeableToolWindow, or None for border styles have
4639         different minimum sizes than regular forms.  Implemented to fix
4640         regression in PDN with toolbox being too wide.
4641
4642 2008-01-14  Andreia Gaita <avidigal@novell.com>
4643
4644         * HtmlElementCollection.cs: Implemented
4645
4646         * HtmlElement.cs: Implemented:
4647           - All
4648           - InnerHtml
4649           - InnerText
4650           - Id
4651           - Name
4652           - FirstChild
4653
4654         * HtmlDocument.cs: Implemented GetElementsByTagName.
4655
4656 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
4657
4658         * Screen.cs: Stub BitsPerPixel to always return 32.
4659
4660 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
4661
4662         * Form.cs: Implement RestoreBounds.
4663
4664 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
4665
4666         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
4667         Sebastien and his fabulous magical problem-finding machine:
4668         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
4669         respect the value set.
4670
4671 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
4672
4673         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
4674         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
4675
4676 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4677
4678         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
4679         messages (to match .Net), we need to remove the capture ourselves.
4680
4681 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
4682
4683         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
4684         will process the message and close our window.
4685         [Fixes bug #324328]
4686
4687 2008-01-10  Geoff Norton  <gnorton@novell.com>
4688
4689         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
4690         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
4691         window manager.
4692
4693 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
4694
4695         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
4696         failing test.
4697
4698 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
4699
4700         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
4701         Linux doesn't care, having a minimum matches MS and keeps the window
4702         from becoming too small to use window decorations.
4703         [Fixes bug #338996]
4704
4705 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
4706
4707         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
4708         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
4709         control.  [Fixes bug #325419]
4710
4711 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
4712
4713         * ComboBox.cs: Guard against an NRE if the user open a new form from a
4714         SelectedIndexChanged event.  This closes the combobox dropdown, and we
4715         were trying to dispose it.  [Fixes bug #352830]
4716
4717 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
4718
4719         * Control.cs, Form.cs: Implement the necessary semantics for
4720         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
4721         to determine if a focus rectangle should be drawn.
4722         * PropertyGrid.cs: Fix property visibility to match override.
4723         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
4724
4725 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
4726
4727         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
4728         [Fixes bug #323552]
4729
4730 2008-01-09  Geoff Norton  <gnorton@novell.com>
4731         
4732         * XplatUICarbon.cs: Scroll windows in the correct direction.
4733
4734 2008-01-09  Geoff Norton  <gnorton@novell.com>
4735
4736         * XplatUICarbon.cs: Track all created utility windows so we can hide them
4737         when the app is deactivated or spaces is enabled.
4738
4739 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4740
4741         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
4742         extra separation pixel for the label rect origin if SmallImageList is
4743         null, and thus we don't need that separation between icon and label
4744         rects.
4745         Patch by Ernesto Carrea.
4746         Fixes # 340195.
4747
4748 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
4749
4750         * StatusStrip.cs: Invalidate after completing a layout.  The base
4751         OnLayout does this, but we don't call the base.
4752         * ToolStripItem.cs: Revert the previous change to invalidate after
4753         the item moves.
4754         [Fixes bug #351341 better.]
4755
4756 2008-01-07  Geoff Norton  <gnorton@novell.com>
4757
4758         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
4759         not a notification to exit the application.  Listen for WM_QUIT
4760         instead.
4761
4762 2008-01-07  Andreia Gaita <avidigal@novell.com>
4763
4764         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
4765
4766 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
4767
4768         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
4769         so it can repaint at the correct location.
4770         [Fixes bug #351341]
4771
4772 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4773
4774         * ListControl.cs: SelectedValue should return a null value if
4775         SelectedIndex is -1. Also, when setting it, it should throw an
4776         ArgumentNullException if the value is null, as well as taking
4777         into account the String.Empty value, instead of ignoring it (we have
4778         tests for that now).
4779         Fixes part of #324286.
4780
4781 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
4782
4783         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
4784         SelectionStart is updated after pressing enter.  Fixes bug #351918.
4785
4786 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4787
4788         * TextControl.cs: Revert a piece r92316 that prevented the fix
4789         from working when there were multiple tags in the text box.
4790         Fixes bug #351881.
4791
4792 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4793
4794         * TextControl.cs: Apply patch from Luke Page that prevents an
4795         NRE when determining the beginning of a paragraph.
4796         Fixes bug #351886.
4797
4798 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4799
4800         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
4801         caret gets moved with clicking away from a selected block of
4802         text.  Fixes bug #351885.
4803
4804 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4805
4806         * TextControl.cs: Apply patch from Luke Page that takes line
4807         alignment into account for mouse selection, so that center and
4808         right aligned text can be selected.
4809         Fixes bug #351881.
4810
4811 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4812
4813         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
4814         issues after loading an RTF file by using the correct line feeds.
4815         Fixes bug #351841.
4816
4817 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
4818
4819         * TextControl.cs: When deleting multiple line selections, we need
4820         to invalidate every line beginning at the first line of the selection.
4821         Patch from Luke Page fixes bug #351791.
4822
4823 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4824
4825         * ListControl.cs: When getting a CurrencyManager.PositionChanged
4826         event, don't set SelectedIndex if the number of items is 1. This is
4827         because, for the first item, PositionChanged is fired _before_
4828         ItemChanged (the place where we actually populate the items), and
4829         leave us in a temporary invalid state (since items collection is
4830         empty).
4831         Fixes #349655.
4832
4833 2008-01-04  Geoff Norton  <gnorton@novell.com>
4834
4835         * XplatUICarbon.cs:  Create native toolwindows instead of
4836         the managed drawing ones.
4837
4838 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
4839
4840         * LineTag.cs: If the line doesn't have any characters, return
4841         0 for GetCharIndex.  Fixes an AOORE exception after certain
4842         caret movements.  Fixes bug #351683.  Patch by Luke Page.
4843
4844 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
4845
4846         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
4847         is hit when there is selected text, only the selected text gets
4848         deleted, not the character in front of the selection as well.
4849         Fixes bug #351578.
4850
4851 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4852
4853         * ComboBox.cs: When the values are displayed, calculate the
4854         ComboListBox scrollbar's LargeChange based on the visible area's
4855         height and  the actuall ItemHeight, instead of calculating it
4856         based on MaxDropItems value, since it's not used by our _current_ 
4857         2.0 profile.
4858         Fixes #332366.
4859
4860 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
4861
4862         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
4863         Patch from Luke Page that fixes issues with font colors and styles
4864         not showing up in a readonly RichTextBox.  Fixes bug #324354.
4865
4866 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
4867
4868         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
4869         from Luke Page.  This one fixes bug #349926.
4870
4871 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4872
4873         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
4874         an item in the IBindingList source changes with
4875         ListChangedType.ItemAdded. Ignore for now firing the event for other
4876         changes, since we want to have tests for those cases as well.
4877
4878 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
4879
4880         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
4881         created.
4882
4883 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
4884
4885         * TextBoxTextRenderer.cs: Implement a cache for measuring each
4886         character.  This is effective because the typical usage of a
4887         TextBox is with a limited amount of fonts and characters, and
4888         the current implementation of TextBox measures everything one
4889         character at a time.  Another second or two speedup for bug #347238.
4890
4891 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
4892
4893         * Control.cs: Rewrite the Font getter to only query the parent's
4894         Font property once instead of twice.  Since this operation is
4895         recursive, the queries were growing exponentially as the control
4896         tree got deeper.  Another second or two speedup for bug #347238.
4897
4898 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
4899
4900         * Control.cs: Avoid setting a parent (and more importantly, updating
4901         the zorder of all its children) if the parent is already correct in
4902         WmShowWindow.  Decreases the startup time of the test case on bug
4903         #347238 from 35 seconds to 11 seconds.
4904
4905 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4906
4907         * X11Dnd.cs: When the dnd operation has started and we are 
4908         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
4909         This is done to match .Net, which doesn't send those messages after
4910         dnd operation was completed/cancelled.
4911         Fixes #349922.
4912
4913 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
4914
4915         * ToolStrip.cs: Previous change should be != null, not == null.
4916         Thanks Gert!
4917
4918 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
4919
4920         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
4921         user may have moved the mouse off the current item during the event.
4922
4923 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4924
4925         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
4926         calling GetItemAt for every MouseMove event by also taking into
4927         account whether any mouse button is pressed (probably dragging); 
4928         if so, we can call GetItemAt, and if not, try to not call it 
4929         (GetItemAt can be quite expensive when used with a large number of items).
4930
4931 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4932
4933         * ListView.cs: Implement -finally- support for dnd, by calling
4934         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
4935         authors list ;-).
4936         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
4937         simple calculation of distances for all the items in the owner
4938         listview.
4939
4940 2007-12-21  Geoff Norton  <gnorton@novell.com>
4941
4942         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
4943         for windows that are originally created as invisible.  Fixes missing
4944         main window in paint-mono.
4945
4946 2007-12-21  Geoff Norton  <gnorton@novell.com>
4947
4948         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
4949         subclass handler for com.novell.mwfview subclassing HIView.  Implement
4950         Pasteboard and Dnd methods.
4951
4952 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4953
4954         * ListBox.cs: When we got focus, give focus to first item if there
4955         wasn't any pervious focused item. Also update navigation to depend on
4956         SelectedIndex rather than FocusedItem, just as .Net does.
4957         Fixes #349174.
4958
4959 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4960
4961         * ListBox.cs: Both FindString and FindStringExact methods must do an
4962         case insensitive search, should allow the last valid index to be
4963         passed in the overload taking an initial index, and should also
4964         continue searching from the top back to the specified index when it
4965         reaches the bottom.
4966
4967 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
4968
4969         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
4970         redraw issue, and allows RichTextBox to draw colored text even while
4971         disabled or readonly.
4972
4973 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
4974
4975         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
4976         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
4977         and doesn't grey text in a disabled RichTextBox.
4978
4979 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
4980
4981         * RichTextBox.cs: Apply patch from Luke Page that adds better support
4982         for many RTF commands: quad alignment, separate formatting for blocks
4983         inside groups, and ParDef support.  Makes the test case from bug #324589
4984         look much better.
4985
4986 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
4987
4988         * LineTag.cs: Fix an error in the new Draw method that caused
4989         a crash when rendering the document on bug #324589.
4990
4991 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
4992
4993         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
4994         TextControl.cs: Apply patch from Luke Page that adds support
4995         for URL links in RichTextBox.
4996         [Fixes enhancement #342516]
4997
4998 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
4999
5000         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
5001         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
5002
5003 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5004
5005         * ListBox.cs: When a key gets pressed, try to find a string
5006         if the key is a character or a digit.
5007         Fixes #343971.
5008
5009 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
5010
5011         * TableLayoutPanel.cs: Remove some unused variables.
5012
5013 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
5014
5015         * DateTimePicker.cs: Commit patch from Luke Page that ensures
5016         we don't end up at an invalid date when we click the up/down
5017         spinner to change the month or year.  Fixes bug #348682.
5018
5019 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
5020
5021         * Application.cs: Calling Exit in 2.0 should chain to the
5022         Exit (CancelEventArgs) version so it can be cancelled.
5023         * Form.cs: Create a flag to allow raising the Closing
5024         events to be skipped.  We raise them once in Application.Exit
5025         and don't want to raise them again when the Form is actually
5026         closed.  [Fixes bug #349073]
5027
5028 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
5029
5030         * ToolStripDropDown.cs: Guard against an NRE when there
5031         hasn't been a mainform set in the application context.
5032         [Fixes bug #349108]
5033
5034 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5035
5036         * ListBox.cs: When SetBoundsCore gets called, besides
5037         calling UpdateScrollBars, update the value of
5038         last_visible_index, since we could need to show more items
5039         than before, and we need to let the paint routines know that.
5040         Fixes #344445.
5041
5042 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5043
5044         * ListView.cs: Add DesignerSerializationVisibility attribute to
5045         InsertionMark property.
5046         * ListViewItem.cs: Add same attribute to Position property.
5047
5048 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5049
5050         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
5051         is 2.0 only.
5052
5053 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
5054
5055         * ThemeWin32Classic.cs: Don't draw the background on a
5056         flat button if there is a background image.
5057         [Fixes bug #348649]
5058
5059 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5060
5061         * ListBox.cs: If we remove the item currently selected,
5062         remove it not only from SelectedItems, but also
5063         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
5064         the items count decreased and focused_item has bigger value than that.
5065
5066 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
5067
5068         * Control.cs: Perform our layout after we resize ourselves
5069         if we had to adjust our AutoSize.  Missed commit for bug
5070         #346246.
5071
5072 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
5073
5074         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
5075         we can provide an implementation of AutoSize.
5076         [Fixes bug #346246]
5077
5078 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5079
5080         * ListBox.cs: Add the internal overload Sort (bool paint),
5081         to indicate whether we actually need a paint or we will
5082         call Refresh ourselves. This way we don't request a paint
5083         _before_ having an updated and valid layout.
5084         Fixes #347233.
5085
5086 2007-12-12  Andreia Gaita <avidigal@novell.com>
5087
5088         * XPlatUIX11.cs: Send paint messages when updating a systray icon
5089         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
5090         properly invalidated. 
5091         Fixes #324237
5092
5093 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5094
5095         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
5096         don't simply assign it to our internal group field, but instead 
5097         use our Group property, which should do all the neccessary work
5098         required to support groups. Fixes an issue reported to me (mail) by a 
5099         guy using this new feature.
5100
5101 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
5102
5103         * Control.cs: Use Scale instead of ScaleControl to ensure the
5104         whole hierarchy gets scaled.
5105         [Fixes bug #347282]
5106
5107 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
5108
5109         * DateTimePicker.cs: Don't set the internal MonthCalendar's
5110         Parent property.  Doing this causes the control to be hosted by
5111         the Form instead of being a popup window.
5112         [Fixes bug #347665]
5113
5114 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
5115
5116         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
5117         at an index higher than Count, just use Add instead of Insert.
5118         [Fixes bug #347669]
5119
5120 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
5121
5122         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
5123         DrawPictureBox, this is handled by Control.PaintBackground.
5124         [Fixes bug #347276]
5125
5126 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
5127
5128         * MenuAPI.cs: When process menu keys return true by default only if menu is
5129         active. Fixes bug #342892.
5130
5131 2007-12-09  Andreia Gaita <avidigal@novell.com>
5132
5133         * Control.cs: check if windows are actually mapped before
5134         trying to zorder. Fixes #342509, #346955
5135
5136 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5137
5138         * ListView.cs:
5139         * ListViewInsertionMark.cs:
5140         * ThemeWin32Classic.cs: Implement the drawing side of the
5141         new 2.0 ListView.InsertionMark property.
5142
5143 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
5144
5145         * CurrencyManager.cs: Silence some debug spew.
5146
5147 2007-12-07  Geoff Norton  <gnorton@novell.com>
5148         
5149         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
5150         masks for our children as well as siblings to avoid having to query
5151         Quartz for this information.
5152         * XplatUICarbon.cs: Implement a delegate based system to pass
5153         information to System.Drawing.  Implement Async methods.  Remove
5154         the hack for the resize thumb and imlpement a transparent Grow Box.
5155         Rework the messaging system to proplery create window's and messages,
5156         fixes TabControl.
5157
5158 2007-12-06  Andreia Gaita <avidigal@novell.com>
5159
5160         * X11Keyboard.cs: Use Xutf8LookupString to support international 
5161         characters under alternate codepages. Patch from #340878
5162
5163 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5164
5165         * ListView.cs: When doing layout computations, set position in the
5166         ListView instances (we cache the position just as .Net does).
5167         * ListViewItem.cs: New internal setter method for Position. Also set
5168         position field as also available in 1.1, since we are going to use it
5169         now in the common case.
5170
5171 2007-12-06  Andreia Gaita <avidigal@novell.com>
5172
5173         * Control.cs: When removing controls, get the actual container
5174         to notify about active control changes. Fixes 341314.
5175
5176 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5177
5178         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
5179
5180 2007-12-05  Andreia Gaita <avidigal@novell.com>
5181
5182         * Control.cs: When updating the zorder, ignore windows that are not
5183         mapped. Fixes #342509
5184
5185 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5186
5187         * ListViewItem.cs: Actually implement serialization on this class.
5188
5189 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
5190
5191         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
5192         LinkCollection. Spaces to tabs, and removed extra tabs.
5193
5194 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5195
5196         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
5197           tests to fail (hopefully).
5198
5199 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
5200
5201         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
5202         the image margin so custom renderers can correctly place it.
5203
5204 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
5205
5206         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
5207         so custom renderers can correctly place it.
5208
5209 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
5210
5211         * Application.cs: Let WM_CHAR messages flow through to controls
5212         hosted in Strips.  [Fixes bug #343972]
5213
5214 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
5215
5216         * ToolStripManager.cs: Guard against an NRE I ran into.
5217
5218 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
5219
5220         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
5221         a Link is manually added to the Links collection, we need to set
5222         its owner, so it can invalidate properly.
5223         [Fixes bug #344012]
5224
5225 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5226
5227         * ListView.cs: When changing ListViewItem.Position (which calls
5228         ListView.ChangeItemLocation), invalidate not only the area
5229         corresponding to the main item, but also to the area occupied
5230         by the items being moved.
5231
5232 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5233
5234         * ListView.cs: When changing the position of a given item,
5235         don't use item bounds, but item areas (which includes the item spacing
5236         between them). Also, use first/last position if the requested
5237         position is outside bounds (as .Net does). Invalidate the previous and
5238         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
5239         in a specific position, instead of directly accessing Items collection
5240         (this is done to get the right item - remember an Item can have a
5241         different position in the grid than in the Items collection).
5242
5243 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
5244
5245         * MessageBox.cs: Calculate text area instead of just top left, this rect 
5246         area will be used in DrawString. Fixes bug #343364.
5247
5248 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
5249
5250         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
5251         screen width. Partially fixes bug #343364.
5252
5253 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
5254
5255         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
5256         code inside recalculate, it makes code more simple.
5257
5258 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
5259
5260         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
5261         between update or add icon. Fixes bug #324344.
5262
5263 2007-11-21  Andreia Gaita <avidigal@novell.com>
5264
5265         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
5266         window manager, since that stretches the drawing area to include
5267         the window decorations, and they get hidden. Reverts r84444 and fixes
5268         #335849 and #342790 (mdi and pdn3 regression)
5269
5270 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5271
5272         * ListView.cs: When setting focused item, try to give focus to the
5273         previous one _only_ if the previous one remains valid. 
5274         Fixes #342504.
5275
5276 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
5277
5278         * Application.cs: Revert r89650, as it broke a common case to fix
5279         an obscure case.  Fixes bug #342606.
5280
5281 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
5282
5283         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
5284
5285 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
5286
5287         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
5288         alignment. [Fixes #324228]
5289
5290 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
5291
5292         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
5293         [Fixes bug #342123]
5294
5295 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
5296
5297         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
5298         it prevent problems when empty captions. [Fixes #342141]
5299
5300 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
5301
5302         * Label.cs: Use Size instead of None.  Fixes bug #342077.
5303
5304 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5305
5306         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
5307
5308 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
5309
5310         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
5311         but there isn't a MdiContainer.
5312         [Fixes bug #342358]
5313
5314 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
5315
5316         * TextControl.cs: Don't recalculate document if the recalc_start and
5317         recalc_end hasn't changed.
5318         [Fixes bug #342505]
5319
5320 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
5321
5322         * DataGridViewTextBoxCell.cs: Removed CWL.
5323
5324 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5325
5326         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
5327
5328 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
5329
5330         * TextControl.cs: Missed some code for bug 341534 to trigger a
5331         recalculation when the font changes.
5332
5333 2007-11-16  Andreia Gaita <avidigal@novell.com>
5334
5335         * Control.cs: When updating the zorder, check if the child to update is
5336         the same control that is set to always be on top (i.e., scrollbars), and 
5337         just put it on top directly. Fixes BadMatch error on pdn3
5338
5339 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5340
5341         * ListView.cs: Throw the needed exceptions for FindNearestItem.
5342
5343 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
5344
5345         * Control.cs: Don't perform a new layout when a label changes its text,
5346         cause label handles its own autosizing.
5347         [Fixes bug #342077]
5348
5349 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5350
5351         * ListView.cs: Implement 2.0 FindNearestItem methods.
5352
5353 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
5354
5355         * ToolStripPanel.cs: Make Join at least add the control to the panel,
5356         even if the rest of what Join does isn't supported.  Add some more
5357         support for vertical toolbars.
5358         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
5359         [Fixes the application breaking parts of bug #341998]
5360
5361 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
5362
5363         * ToolStripItem.cs: When determining if we have a check/image margin,
5364         we need to look at ShowCheckMargin as well as ShowImageMargin.
5365
5366 2007-11-15  Geoff Norton  <gnorton@novell.com>
5367
5368         * XplatUIOSX.cs: Rename to...
5369         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
5370         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
5371
5372 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
5373
5374         * KeysConverter.cs: The default values should be an array of Keys, not
5375         strings.  Also, the array has more values for 2.0.
5376         [Fixes bug #341851]
5377
5378 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
5379
5380         * Application.cs: Change ExecutablePath to use 
5381         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
5382         [Fixes bug #323552]
5383
5384 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
5385
5386         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
5387         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
5388         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
5389         be ignored.  Create a new GetLineEnding that can specify which types of
5390         line endings to look for.  On Insert, only create new lines for \n and \r\n.
5391         [Fixes bug #324274]
5392
5393 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
5394
5395         * TextBoxBase.cs: As we loop through each line changing the font, tell
5396         the document that the line needs to be recalculated.  Fixes bug #341534.
5397
5398 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
5399         [Another round of refactoring]
5400         * Line.cs: Add DeleteCharacters.
5401         * LineTag.cs: Add Delete.
5402         * TextBoxBase.cs: Update to use new methods.
5403         * TextControl.cs: Refactor the Delete* methods.
5404
5405 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
5406
5407         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
5408         the patch. [Fixes #324856]
5409
5410 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5411
5412         * ListView.cs:
5413         * ListViewItem.cs: Add an initial implementation of
5414         2.0 ListViewItem.Position getter.
5415
5416 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5417
5418         * ListView.cs: Add a reordered_items_indices array, to allow us
5419         to have a different sorting than that of Items (the sorting in Items
5420         could not match the actual sorting in screen). This is needed to
5421         implement a pair of 2.0 features.
5422         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
5423         actual position in the ListView grid, since it could have a position
5424         different than its Index (position in ListViewItemCollection). 
5425
5426 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
5427
5428         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
5429         not draw partial lines.
5430         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
5431         LineLimit flag from the base is preserved.
5432         Fixes the windows part of bug #338965.
5433
5434 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
5435
5436         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
5437         so that it can be canceled in KeyPress.
5438         Fixes bug #340078.
5439
5440 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5441
5442         * ListView.cs: In ItemControl, reset mouse-handling related
5443         fields even if we dont' have items (we still should reset them when
5444         we had items but then called Items.Clear). Partially based in a patch
5445         by George Giolfan.
5446         Fixes #338399.
5447
5448 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
5449
5450         * Application.cs: In ProductVersion first try AssemblyFileVersion
5451         before falling back to assembly version. Fixes bug #339787.
5452
5453 2007-11-08  Andreia Gaita <avidigal@novell.com>
5454
5455         * HtmlElement.cs: Implement InnerText setter.
5456         * WebBrowserBase.cs: Implement Navigated event support.
5457         Add flag to track when the browser "document" is ready to be retrieved.
5458         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
5459         Make sure browser document is ready before retrieving it.
5460         Clean up cached objects (document) when moving to a new page through
5461         any of the navigation methods.
5462         Use the new Mono.WebBrowser.INavigation interface to control navigation.
5463         Implement OnNavigated event.
5464
5465 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
5466
5467         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
5468         DrawLinkLabel, this is handled by OnPaintBackground.
5469         Fixes bug #339565, part II.
5470
5471 2007-11-07  Andreia Gaita <avidigal@novell.com>
5472
5473         * Control.cs: Revert r88915. Selecting text on a textbox depends on
5474         getting a Select call on click, so this call needs to be here for now.
5475         Unfixes #325809
5476
5477 2007-11-07  Geoff Norton  <gnorton@novell.com>
5478
5479         * OSXStructs.cs: Add the kEventClassApplication constants.
5480         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
5481         application is deactivated otherwise Menu overlays linger on top of
5482         other application windows.
5483
5484 2007-11-07  Geoff Norton  <gnorton@novell.com>
5485
5486         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
5487         dont support cursors yet anyways.  This allows Reflector to run.
5488
5489 2007-11-07  Geoff Norton  <gnorton@novell.com>
5490
5491         * XplatUIOSX.cs: Implement DragSize.
5492
5493 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5494
5495         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
5496         ItemControl, request the focus, as .Net does. This is needed after 
5497         Control does not request focus anymore when it receives a
5498         WM_LBUTTONDOWN.
5499
5500 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
5501
5502         * Label.cs: Make DrawImage internal so it can be called from Theme code.
5503         Remove the DrawImage call from OnPaint.
5504         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
5505         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
5506         but before we draw the text for DrawLabel and DrawLinkLabel.
5507         Fixes bug #339565.
5508
5509 2007-11-05  Andreia Gaita <avidigal@novell.com>
5510
5511         * Control.cs: Remove select call on click. Fixes #325809
5512
5513 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5514
5515         * ListViewItem.cs: Add 2.0 Position property getter.
5516
5517 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5518
5519         * ListView.cs: Add 2.0 BackgroundImageTiled property.
5520         Also, to make it work properly, change item's BackColor and
5521         BackgroundImageLayout as needed.
5522         * ThemeWin32Classic.cs: Don't fill any background rectangle 
5523         in ListView.ItemControl when drawing items; just let the Control
5524         base implementation fill it.
5525
5526 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5527
5528         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
5529         as well as adding a custom 'dummy' Converter, as .net does.
5530
5531 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5532
5533         * PropertyGridView.cs: When clicking drop-down button,
5534         select an index in the listbox only if our standard values collection 
5535         has one or more items.
5536
5537 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5538
5539         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
5540         property.
5541
5542 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
5543
5544         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
5545         the value is not changed. This ensure a pushed button remains in that
5546         state when clicked again. When switching the value of PropertySort
5547         between Categorized and CategorizedAlphabetical, do not update the
5548         grid items and do not fire a PropertyChangedEvent. When clicking the
5549         sorting buttons, do not modify the PropertySort value when switching
5550         between Categorized and CategorizedAlphabetical but only update the
5551         button state.
5552
5553 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
5554
5555         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
5556         formatting.
5557         * PropertyGrid.cs: Also put Categorized button in pushed state when
5558         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
5559         for help description label.
5560
5561 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5562
5563         * ListView.cs: When calculating the biggest item for a given column,
5564         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
5565         the item's width.
5566
5567 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
5568
5569         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
5570         value for PropertySort on 1.0 profile. PropertySortChanged event
5571         should only be fired on 2.0 profile. Fixed NullReferenceException
5572         in UpdateSortLayout when PropertyGrid contains no items.
5573
5574 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
5575
5576         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
5577         [Fixes bug #338554]
5578
5579 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5580
5581         * ListViewItem.cs: Implement 2.0 IndentCount property.
5582
5583 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5584
5585         * X11Dnd.cs: When sending status in a dnd operation, compare current
5586         effect with the 'allowed' field instead of 'drag_data.Allowed', since
5587         the later is only created when a Winforms application is both the
5588         source and the target, but not when we are the target only.
5589         Fixes part of #324251.
5590
5591 2007-11-01  Geoff Norton  <gnorton@novell.com>
5592
5593         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
5594         order of Z-Order.
5595         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
5596         children out of the drawing view on mac.
5597         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
5598         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
5599         
5600 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
5601
5602         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
5603         on the non-hosted-control part of it shouldn't do anything.
5604         Fixes part of bug #327498.
5605
5606 2007-11-01  Andreia Gaita <avidigal@novell.com>
5607
5608         * WebBrowserBase.cs: revert previous change, resize can be called anytime
5609
5610 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
5611
5612         * Application.cs: When a toolstrip has the keyboard input loop, let messages
5613         it does not use flow through to controls that are hosted in menus.
5614         Same with mouse clicks.
5615         * Form.cs: Don't close all menus on click if the click is on a
5616         control hosted in a menu.
5617         Fixes part of bug #327498, and part of bug #325969.
5618
5619 2007-10-31  Andreia Gaita <avidigal@novell.com>
5620
5621         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
5622
5623 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
5624
5625         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
5626         Addresses an issue raised in bug #336218.
5627
5628 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
5629
5630         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
5631         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
5632
5633 2007-10-30  Andreia Gaita <avidigal@novell.com>
5634
5635         * ContainerControl.cs: Check if the active control is a
5636         child of a removed control and update active_control accordingly.
5637         Fixes #329718
5638
5639 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
5640
5641         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
5642         or the MaxDate.  Fixed bug #337693.
5643
5644 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
5645
5646         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
5647         after calling SetWindowLong for a form, to force an immediate NC refresh.
5648         Fixes first part of bug #325150.
5649
5650 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
5651
5652         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
5653         simple.  Fixes the last part of bug #322668.
5654
5655 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
5656
5657         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
5658         needs to be TopMost as well, or else the MessageBox is under the form.
5659         Patch by George fixes bug #325300.
5660
5661 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5662
5663         * X11Dnd.cs: When starting a new drag operation, reset the static
5664         'dropped' field to false (previously the implementation didn't reset
5665         it and got confused after the first drag).
5666         Fixes #325071.
5667
5668 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5669
5670         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
5671         items instead of re-creating them all. For this purpose we now cache
5672         both CategoryGridEntry items and the GridEntries for the main object's
5673         properties.
5674         * GridItem.cs: Make SetParent method abstract.
5675         * GridEntry.cs: Override the SetParent method (already there, but now
5676         we override it).
5677         Fixes #324866.
5678
5679 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5680
5681         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
5682         depending on its depth (as .Net does). Update the needed values in
5683         MouseDown handler. Also draw the plus/minus rect after the label,
5684         so we don't draw on top of it.
5685
5686 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
5687
5688         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
5689         processed by forms or controls when menu is active. [Fixes #333548]
5690
5691 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
5692
5693         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
5694         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
5695         focus on mouse over.
5696
5697 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
5698
5699         * TextControl.cs: Code cleaning, simplifying.
5700
5701 2007-10-24  Geoff Norton  <gnorton@novell.com>
5702
5703         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
5704         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
5705
5706 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
5707
5708         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
5709         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
5710
5711 2007-10-24  Andreia Gaita <avidigal@novell.com>
5712
5713         * SendKeys.cs: apply jpobst's patch to bug #332409
5714
5715 2007-10-23  Andreia Gaita <avidigal@novell.com>
5716
5717         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
5718         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
5719         for some reason
5720
5721 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5722
5723         * PropertyGridView.cs: If a property has an UIEditor available,
5724         make the drop-down/editor button available only if the property
5725         is _not_ read only.
5726
5727 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5728
5729         * PropertyGridView.cs: Don't make the grid item textbox 
5730         editable when a drop-down control is available, but 
5731         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
5732         true. The same bur the color of the grid item value's label.
5733
5734 2007-10-22  Geoff Norton  <gnorton@novell.com>
5735
5736         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
5737         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
5738         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
5739         driver.  Padd the bottom of all real windows so the resize thumb doesn't
5740         obscure scroll/status bars.
5741
5742 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
5743
5744         * WindowsFormsSection.cs: Implement.
5745
5746 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
5747
5748         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
5749         closed see #325434 patch.
5750
5751 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
5752
5753         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
5754         see #325434 patch.
5755
5756 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5757
5758         * PropertyGridView.cs: When showing the textbox for a grid item,
5759         have two local variables to store the read-only and non-editable
5760         status of a grid item (we were previously using just one variable
5761         to do this, when actually they are slightly different).
5762         Fixes part of #325023.
5763
5764 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5765
5766         * PropertyGridView.cs: When showing a drop-down list, try to get the
5767         values using TypeConverter.ConvertTo (to convert to a string). Fixes
5768         part of #325023.
5769
5770 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5771
5772         * PropertyGrid.cs: When updating a property and populating sub grid
5773         items, remove the previous ones, and invalidate the specific area.
5774         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
5775         area behind a grid item.
5776         * GridItemCollection.cs: Add an internal Clear method, to allow us to
5777         clean the items if needed (specially for controls implementing 
5778         ICustomTypeDescriptor and returning a variable number of properties).
5779         Fixes #324865.
5780
5781 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
5782
5783         * TextControl.cs: Clean up and document the Insert function.
5784
5785 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
5786
5787         * TextControl.cs: Make sure we know our start point for updating the view
5788         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
5789         update the view.
5790
5791 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
5792
5793         * ListView: Couple of corcompare fixes.
5794
5795 2007-10-17  Geoff Norton  <gnorton@novell.com>
5796
5797         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
5798         the title caption of real window.
5799
5800 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
5801
5802         * ErrorProvider.cs: Add the error provider's internal window to a 
5803         containercontrol when the parent changes.  [Fixes bug #329714]
5804
5805 2007-10-17  Geoff Norton  <gnorton@novell.com>
5806
5807         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
5808         When we make a new window; restore the old active window - fixes dialogs.
5809
5810 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5811
5812         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
5813         when modifying a property, and if found then invalidate as
5814         requested.
5815         Fixes part of #324865.
5816
5817 2007-10-17  Geoff Norton  <gnorton@novell.com>
5818
5819         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
5820         highly experimental.  Fixed coordinate translation.  Fixed window locations.
5821         Initial support for clipping. Implemented NC areas and menus.  Support for
5822         launching from command line from Will Johansson (wjohansson@atacomm.com).
5823         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
5824         wjohansson@atacomm.com)
5825         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
5826         Hwnds now track the existence of all of their children for Mac clipping.
5827     * XplatUI.cs: Re-enabled the native driver on the Mac.
5828
5829 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
5830
5831         * Line.cs: Move the InsertString function to here.
5832         * TextControl.cs: Cleanup some duplicate code, move some InsertString
5833         functionality to Line.
5834
5835 2007-10-17  Geoff Norton  <gnorton@novell.com>
5836
5837         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
5838
5839 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
5840
5841         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
5842         always setting value to true.
5843         * Form.cs: When changing AcceptButton, notify new and original button.
5844
5845 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
5846
5847         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
5848         a custom control that implements IButtonControl instead of an actual
5849         button.  [Fixes bug #334244]
5850
5851 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
5852
5853         * Form.cs: Change SelectActiveControl to internal, we need to call it in
5854         MdiWindowManager.
5855         
5856         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
5857         active control when activate a new mdi window.
5858         
5859         [Fixes bug #330495]
5860
5861 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
5862
5863         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
5864         is already added.
5865         [Fixes bug #333617]
5866
5867 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
5868
5869         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
5870         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
5871         so we always recalculate the whole document instead of just the new part.
5872         [Fixes bug #325082]
5873
5874 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
5875
5876         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
5877         when the mouse was to the left of the first character in the line.
5878
5879 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
5880
5881         * TextBox.cs, TextBoxBase.cs: When setting the document's password
5882         character, use the property instead of the variable so that the
5883         UseSystemPasswordChar property is taken into account.
5884         [Fixes bug #333748]
5885
5886 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5887
5888         * FolderBrowserDialog.cs: When a node is right clicked and the "New
5889         folder" contex menu appears, actually add the new folder to it, even
5890         if the node is not currently selected. Still use SelectedNode in case 
5891         there wasn't found a node under the pointer.
5892         Fixes #325452.
5893
5894 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5895
5896         * ListViewItem.cs: When retrieving the focused state, the index check
5897         should be done only when ListView is in virtualmode, as it is an
5898         expensive check for normal mode.
5899
5900 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5901
5902         * ListViewItem.cs: Make the focus state information be stored
5903         in the ListView, not in the items. This is done to match the MS
5904         behaviour for items that are not yet part of a ListView control;
5905         besides that, since just one item can be focused at the same time,
5906         we save a little space in our items.
5907         Fixes part of #331643.
5908
5909 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
5910
5911         * ComboBox.cs: When focus is lost, deselect the text. When setting
5912         text of control, select all text. Do not hide selection when control
5913         does not have focus. Fixes bug #333663.
5914
5915 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
5916
5917         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
5918         instead of ArgumentException when SelectionLength is set to negative
5919         value. Added same check to SelectionStart. Code formatting.
5920
5921 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
5922
5923         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
5924         or SelectionStart. Code formatting.
5925
5926 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5927
5928         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
5929         indicating that there was not a previous drag-and-drop operation going
5930         on.
5931         Fixes part of #325071.
5932
5933 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5934
5935         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
5936         AllowedEffect, don't let the drop operation happen. 
5937         Fixes #32580.
5938
5939 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
5940
5941         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
5942
5943 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
5944
5945         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
5946         is called.
5947
5948 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
5949
5950         * Line.cs: Add a method that finds the tag that contains an x-coord.
5951         * LineTag.cs: Add a method that finds the character at an x-coord using
5952         a binary search, the old way was a linear search.
5953         * TextControl.cs: Change FindCursor to use the above new methods.
5954
5955 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5956
5957         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
5958         value different than AllowedEffect). This should be possible to
5959         indicate that dragging is not possible in some control/area.
5960
5961 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
5962
5963         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
5964         descent internally when font changes instead of outside code being responsible
5965         for setting it.
5966         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
5967         instead of accessing internal variables.
5968
5969 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
5970
5971         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
5972         remove special treatment for ArrangeIcons since it is already arranged.
5973
5974 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
5975
5976         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
5977         the Win32 backend uses Color.
5978         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
5979         Refactor to store a Color instead of a Brush for Color.
5980
5981 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
5982
5983         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
5984         away.  I didn't realize I needed this when I refactored these earlier.
5985
5986 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
5987
5988         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
5989         store a Color structure and use the ResPool for back color instead of
5990         holding onto brushes.
5991
5992 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
5993
5994         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
5995         [Fixes bug #325592]
5996
5997 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
5998
5999         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
6000         to recalculate its size.  Fixes a part of bug #331052.
6001
6002 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
6003
6004         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
6005         button.  Fixes a part of bug #331052.
6006
6007 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
6008
6009         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
6010         the CreateParams.
6011         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
6012         decorations.
6013         [Fixes bug #330986]
6014
6015 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
6016
6017         * TextBoxTextRenderer.cs: Don't make this a static class, as static
6018         doesn't exist in 1.1.  (Thanks jb!)
6019
6020 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
6021
6022         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
6023         class to allow us to use different backends on different platforms.
6024         Linux uses the current [Draw|Measure]String backend.  Windows uses
6025         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
6026         of GDI+.  This leads to better looking text and more accurate measurements
6027         on Windows, fixing many of the reported issues.
6028         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
6029
6030 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6031
6032         * FolderBrowserDialog.cs: When running on Windows,
6033         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
6034         since we must match both "C:" and "C:\" forms. A little hackish, but
6035         works.
6036         Fixes #325247.
6037
6038 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6039
6040         * ListView.cs: When calling EndEdit (after editing an item),
6041         create a new instance of LabelEditEventArgs to keep clean the fields
6042         in case we get a new call to BeginEdit; also do Application.DoEvents
6043         to have focus in synch. This is a fix similar to TreeView's #325244.
6044
6045 2007-10-07  Andreia Gaita <avidigal@novell.com>
6046
6047         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
6048         * WebBrowserBase.cs: Added dialog support, calling the
6049           WebBrowserDialogs classes for each specific dialog type.
6050
6051 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6052
6053         * ListView.cs: When the last item is focused and is removed,
6054         move the focus to the previous item (in Items order). This is what MS
6055         does.
6056         Fixes #330415.
6057
6058 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6059
6060         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
6061         instead of the opposite (RemoveAt call Remove). This is a better
6062         approach since we don't need to to a pair of traversals when using
6063         RemoveAt.
6064
6065 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6066
6067         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
6068         check that the node actually has nodes, and if not, move to the
6069         parent node instead. 
6070         Fixes #325265.
6071
6072 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6073
6074         * TreeView.cs: Move the previous change to the general case (to
6075         call Application.DoEvents in cases where the method was called by
6076         different places).
6077
6078 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6079
6080         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
6081         call Application.DoEvents. This is neccessary when we get a call to
6082         BeginEdit from an AfterLabelEdit handler, because the focus always
6083         goes to the TreeView, even if we try to give it to our
6084         LabelEditTextBox. The call do Application.DoEvents seems to
6085         synchronize the focus, basically.
6086         Fixes #325244.
6087
6088 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6089
6090         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
6091         should be false. This also removes some nasty recursive paths. Fixes
6092         part of #325244.
6093
6094 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
6095
6096         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
6097         state to normal. Also resize window when cascading. Fixes #325433. 
6098
6099 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
6100
6101         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
6102         DefaultForeColor, as drawing empty colored lines isn't very useful.
6103         [Fixes the not drawn lines part of bug #324358]
6104
6105 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
6106
6107         * TextControl.cs: Move Line and LineTag classes into separate files to
6108         make things easier to find.
6109         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
6110         * RichTextBox.cs: Capitalize LineTag.Length property access.
6111         - This is purely an organizational/formatting change, no logic changed. -
6112
6113 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
6114
6115         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
6116         text is empty.
6117
6118 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
6119
6120         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
6121         text is empty.
6122
6123 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
6124
6125         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
6126         prevent calling of OnBackColorChanged. Fixes #325321.
6127
6128 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
6129
6130         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
6131         because control can be disabled because owner is disabled.
6132
6133 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
6134
6135         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
6136         string.Empty, test failed from previous change.
6137
6138 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
6139
6140         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
6141         is null, not String.Empty.  See bug #323038.
6142
6143 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
6144
6145         * TextControl.cs: Change the margins to match MS a little better.
6146         Still not perfect for X11 due to some DrawString differences, but
6147         is still an improvement over the old stuff.
6148         Partially fixes #324467.
6149
6150 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6151
6152         * FolderBrowserDialog.cs: When using MyComputer as 
6153         RootFolder, let absolute paths be considered as valid ones. Also, use
6154         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
6155         for Windows compatibility.
6156         Partially fixes #325247.
6157
6158 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6159
6160         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
6161         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
6162         method, since it causes the dialog to not select folders directly
6163         under the root path (when setting SelectedPath property).
6164
6165 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6166
6167         * TreeNode.cs: When calling Expand/Collapse and need to call 
6168         ExpandBelow/CollapseBelow respectively, take into account
6169         partially visible nodes (previously Expanding/Collapsing
6170         a partially visible node in the bottom was not updating its +- sign).
6171
6172 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6173
6174         * TreeView.cs: When calling Expand on a TreeNode, and we need to
6175         expand nodes below (ExpandBelow), scroll the entire Viewport
6176         area if the node is above it and not visible (instead of scrolling
6177         the area from node's Bottom, which applies only when the node is
6178         visible).
6179         Fixes #325266.
6180
6181 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6182
6183         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
6184         node in the bottom area (as .Net does). This is done to preserve the
6185         scroll position when ExpandAll is called before handle is created for
6186         the 1.1 profile (bottom area, as opposed to top area in 2.0).
6187         Fixes #324103.
6188
6189 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6190
6191         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
6192         bottom area if we are in fact not using the vertical scroll bar.
6193         Fixes #324824.
6194
6195 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
6196
6197         * Control.cs: Comment out a double buffering optimization that doesn't
6198         take into account invalidates created in OnPaint, causing the control
6199         to never be redrawn.  It would take quite a bit of work to work around
6200         this, but I left it commented with an explanation for later possible
6201         optimization.
6202         [Fixes bug #328681]
6203
6204 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
6205
6206         * Control.cs: Ask parent to perform a layout if control is AutoSize and
6207         the text changes.
6208         * RadioButton.cs: Implement GetPreferredSizeCore.
6209         [Fixes bug #328672]
6210
6211 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
6212
6213         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
6214         corcompare stuffs.
6215
6216 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
6217
6218         * Application.cs: Move the sync context stuff to Run instead of RunLoop
6219         so that it doesn't get uninstalled on modal forms.
6220         * Control.cs: Install a sync context when a control is created.
6221         * WindowsFormsSyncronizationContext.cs: Create a private static control
6222         to invoke on.  This is easier than trying to find a created control we
6223         can use.
6224         [Fixes bug #327608]
6225
6226 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
6227
6228         * Application.cs: Install a WindowsFormsSynchronizationContext in the
6229         run loop, and uninstall it when done.
6230         * WindowsFormsSynchronizationContext.cs: Implement.
6231         [Fixes the common case in bug #327608]
6232
6233 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
6234
6235         * DataGridViewCellCollection.cs: Added argument checks for indexers.
6236         Use case-insensitive lookup of column name in indexer. Code
6237         formatting.
6238
6239 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6240
6241         * TreeNode.cs: When collapsing or expanding a node, check whether its
6242         change will affect the visible area (we were previously doing a
6243         IsVisible check, but that check is not enough since children nodes
6244         could be still visible). Fixes part of #325266.
6245
6246 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
6247
6248         * TreeView.cs: Always select the first node when the TreeView gets
6249         focus if there is no currently selected node.
6250         [Fixes bug #324279]
6251
6252 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
6253
6254         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
6255         node being selected is null.
6256         [Patch from Yves Bastide fixes bug #326858]
6257
6258 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6259
6260         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
6261         whether all the parent nodes are expanded.
6262         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
6263         call RecalculateVisibleOrder if all previous nodes are expanded.
6264         Before that we were doing a IsVisible check, but sometimes the node
6265         is not in the visible area, but _should_already be ready, because of
6266         all previous nodes are expanded. Fixes #325259.
6267
6268 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
6269
6270         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
6271         portion of the item is clicked.
6272
6273 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
6274
6275         * TextControl.cs: Do not tell the system to move the cursor if the
6276         textbox isn't focused.  Fixes part of bug #322668.
6277
6278 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
6279
6280         * ComboBox.cs: When there are no items, do not show the dropdown if
6281         the down arrow is clicked.  Fixes part of bug #322668.
6282
6283 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
6284
6285         * ToolStripComboBox.cs: Manually set the size of this control in the
6286         constructor, as it doesn't seem to be the same as DefaultSize.
6287         Fixes a failing monobuild test.
6288
6289 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
6290
6291         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
6292         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
6293
6294 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
6295
6296         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
6297         Desktop.  This lets it work for people who have moved their desktops
6298         from the default location on windows.  For people who have not, both
6299         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
6300
6301 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
6302
6303         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
6304         but when the base constructor sets this, the control is null.  Set it
6305         again in the constructor.  Fixes a failing monobuild test.
6306
6307 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
6308
6309         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
6310         get called.
6311         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
6312         called.
6313
6314 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
6315
6316         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
6317         will handle it themselves.
6318         * ToolStripItem.cs: When deciding what the text of a tooltip should
6319         be, use the Text property instead of the text field.
6320         * ToolStripTextBox.cs: Handle tooltips.
6321         [Fixes bugs #325417 and #325973]
6322
6323 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
6324
6325         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
6326         left click.  Fixes the easy part of bug #325969.
6327
6328 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
6329
6330         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
6331         bug #325406, but set a minimum for StatusStrip to 22 to keep
6332         bug #325390 fixed.  I think this minimum would have been figured
6333         up automatically if the grip was actually a ToolStripItem, but it
6334         currently is not.
6335
6336 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6337
6338         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
6339         as this is apparently the actual value used by .Net. Also apply
6340         ItemPadding in Details view only, and decrease the general width padding,
6341         to have only the needed. This should fix #324340 in Windows too.
6342
6343 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6344
6345         * ListViewItem.cs: Don't Invalidate item if parent is inside
6346         a BeginUpdate/EndUpdate block. This prevents to have differences
6347         between the ListView and items state, as well as avoid some exceptions
6348         there.
6349         * ListView.cs: Make 'updating' field internal.
6350
6351 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
6352
6353         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
6354         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
6355         size if appropriate.
6356         Fixes reopened bug #325414.
6357
6358 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
6359
6360         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
6361         * ToolStripItem.cs: Invalidate before and after our new autosize when
6362         text changes.
6363         Fixes reopened bug #325390.
6364
6365 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
6366
6367         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
6368         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
6369         #325044.
6370
6371 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
6372
6373         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
6374
6375 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6376
6377         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
6378         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
6379         #82734.
6380
6381 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
6382
6383         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
6384         item to select when the ToolStrip is selected.
6385         * ToolStripControlHost: Realign the control when the bounds or visibility
6386         change.
6387         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
6388         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
6389         preferred height.
6390         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
6391         base.OnPaint.  Was causing text not to be drawn.
6392
6393 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
6394
6395         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
6396
6397 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6398
6399         * TreeView.cs: When creating the label edit text box,
6400         set is initially to Visible = false. This is done to
6401         prevent a confusion in the layout which makes it to lose
6402         focus when shown the first time. Fixes part of #82592.
6403
6404 2007-09-13 Andreia Gaita <avidigal@novell.com>
6405
6406         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
6407
6408 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
6409
6410         * ToolStrip.cs: Take Margin into account when calculating preferred
6411         size.  Also, allow preferred size to get smaller than the explicit
6412         size.
6413         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
6414         First step towards fixing bug #82747.
6415
6416 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
6417
6418         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
6419         full row select background over the plus/minus glyph.  Also, turn
6420         off the focus rectangle for full row select since MS doesn't seem
6421         to ever paint it.  [Fixes bug #81839]
6422
6423 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
6424
6425         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
6426         This was causing keyboard opened dropdowns to lose focus.
6427         [Fixes bug #82803]
6428
6429 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
6430
6431         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
6432         ClientRectangle instead.  [Fixes bug #82838]
6433
6434 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
6435
6436         * SplitContainer.cs: We can't reset Visible on every layout because
6437         someone may have set Visible = false explicitly on a SplitterPanel.
6438         Make sure when we switch orientation the SplitterDistance does not
6439         change.  Fixes two failing tests.
6440
6441 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6442
6443         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
6444         TextRenderer, since the latter is only available in 2.0.
6445
6446 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
6447
6448         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
6449         * SplitContainer.cs: Implement FixedPanel layouting.
6450
6451 2007-09-12  Andreia Gaita  <avidigal@novell.com>
6452
6453         * WebBrowserBase.cs: setup shutdown routine
6454
6455 2007-09-12  Andreia Gaita  <avidigal@novell.com>
6456
6457         * Application.cs: Let keyboard events that are targetted 
6458                 to non-mwf windows hosted inside mwf (as in, webbrowser),
6459                 propagate properly. Fixes keyboard handling on the webbrowser.
6460
6461 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6462
6463         * ListView.cs: When handling MouseUp event and we are 
6464         highligting a node with the mouse right button, don't trigger
6465         Before/AfterSelecting event, since we are not actually selecting
6466         the node.
6467
6468 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6469
6470         * TreeView.cs: When editing a node, modify the edit text box
6471         depending on the text length (as you are typing), like MS does.
6472
6473 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
6474
6475         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
6476         Override GetPreferredSizeCore to perform calculations.  Remove custom
6477         autosize logic.  [Fixes bug #82739]
6478
6479 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
6480
6481         * TextBoxBase.cs: Modified should default to false.
6482
6483 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
6484
6485         * Control.cs: Update the anchoring distances even when layout is supspended.
6486         Patch provided by George fixes bug #82805.
6487
6488 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
6489
6490         * Control.cs: Provide a setter for ExplicitHeight.
6491         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
6492         remove the hacks in here for requested_height.
6493         [Fixes bug #82749]
6494
6495 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
6496
6497         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
6498         Maximum to lower that its current Value caused an ArgumentException by setting
6499         the Value to the new Maximum.
6500
6501 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
6502
6503         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
6504         handle moves to the closest tick when it is being dragged.
6505         [Fixes bug #82751]
6506
6507 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
6508
6509         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
6510         can't let them count as real items when calculating where to merge in the
6511         user's items.  [Fixed bug #82786]
6512
6513 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
6514
6515         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
6516         who want to add a menu item directly onto a toolstrip.
6517         [Fixes bug #82775, part II]
6518
6519 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
6520
6521         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
6522         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
6523         don't set it to available.
6524         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
6525         [Fixes bug #82727, part II]
6526
6527 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
6528
6529         * StatusStrip.cs: Change item placement to None if not visible.
6530         * ToolStripItem.cs: Invalidate when InternalVisible changes.
6531         These should have been committed to fix 82723, but I missed them.
6532
6533 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
6534
6535         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
6536         Click, and that it is only called once.
6537         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
6538         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
6539         dropped down.
6540         [Fixes bug #82775]
6541
6542 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6543
6544         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
6545         to match .Net.
6546         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
6547         instead of 8, just like above. Partially fixes #82734.
6548
6549 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6550
6551         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
6552         fixes #82734.
6553
6554         * ListView.cs: Remove extra space between rows in Details view (match
6555         .Net). 
6556         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
6557         the DefaultFont.
6558
6559 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
6560
6561         * Application.cs: Modified ProductVersion to return value of
6562         AssemblyInformationVersion if available, and fallback to assembly
6563         version. Fixes bug #82746. Code formatting.
6564         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
6565         instead.
6566
6567 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6568
6569         * Control.cs: When updating ZOrder for a child control,
6570         take into account the implicit ones (we need it in our controls
6571         using them). Fixes #82642.
6572
6573 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
6574
6575         * ToolStripItem.cs: Add support for animated images.
6576         [Fixes bug #82726]
6577
6578 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
6579
6580         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
6581         visible.  [Fixes bug #82727]
6582
6583 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6584
6585         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
6586         so we repaint using the new size.  [Fixes bug #82723]
6587
6588 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6589
6590         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
6591         option.  [Fixes bug #81779]
6592
6593 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6594
6595         * TreeView.cs: Override HandleClick because the StandardClick style is
6596         set to false.  According to MSDN (and testing), the click events should
6597         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
6598
6599 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6600
6601         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
6602         the border will disappear.  Fixes reopened #82653.
6603
6604 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6605
6606         * Control.cs: If the control is autosize, and its preferred size changes
6607         when it lays out its children, tell its parent so it can be re-layed out.
6608         Fixing some of the fallout from r85433.
6609
6610 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6611
6612         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
6613         and CheckBox share some code.
6614
6615 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6616
6617         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
6618         the TrackBar, not every mouse move.  [Fixed bug #82718]
6619
6620 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6621
6622         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
6623         under 2.0 rendering.  [Fixes bug #82657]
6624
6625 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6626
6627         * TreeView.cs: If we found a TreeNode to display a context menu, but
6628         it doesn't have one to show, let the TreeView display its menu
6629         instead.  [Fixes bug #82680]
6630
6631 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
6632
6633         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
6634         OnPaintInternal instead.  Give the internal TextBox a Border property
6635         so it can draw itself more correctly.  [Fixes bug #82653]
6636
6637 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
6638
6639         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
6640
6641 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
6642
6643         * ComboBox.cs: Adjust combobox button state to reflect current state when
6644         back to enabled = true. Fixes first issue of #82654.
6645
6646 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
6647
6648         * Control.cs: Fix last patch regression, prevent forms to update zorder when
6649         setting visible property.
6650
6651 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
6652
6653         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
6654         fix zorder for controls initially created as non visible. Fixes #82667.
6655
6656 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
6657
6658         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
6659         mimic win32 look. Fixes #82656.
6660
6661 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
6662
6663         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
6664         Stubs for new net 3.5 classes.
6665
6666 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6667
6668         * ListViewItem.cs: In ListViewItemCollection operations calculate
6669         Layout for owner as well as invalidate it. Fixes part of #82642.
6670
6671 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
6672
6673         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
6674         when returning Enabled.  [Fixes bug #82651]
6675
6676 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
6677
6678         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
6679
6680 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6681
6682         * ListView.cs: Put item padding info in a single place
6683         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
6684         columns again.
6685         * ThemeWin32Classic.cs:
6686         * Theme.cs: Likewise.
6687
6688 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6689
6690         * ListView.cs: When a ListViewSubItem instance is invalidated,
6691         invoke Invalidate on parent ListViewItem, not parent ListView.
6692         Fixes #81570.
6693
6694 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
6695
6696         * ListView.cs, ListViewItem.cs: corcompare stuffs.
6697
6698 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
6699
6700         * BindingMemberInfo.cs: Implement == and != operators.
6701
6702 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
6703
6704         * HtmlElementEventArgs.cs: Implement properties.
6705
6706 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
6707
6708         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
6709
6710 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
6711
6712         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
6713         Add (string,string,string) to implement the imagekey.  It turns out, we
6714         use the requested imagekey whereas .Net does not.  So I broke ours to match
6715         theirs.  :(
6716
6717 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
6718
6719         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
6720
6721 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
6722
6723         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
6724
6725 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
6726
6727         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
6728         up-to-date. Fixes bug #82618.
6729
6730 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
6731
6732         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
6733         reflect document changes. Fixes #82367.
6734
6735 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6736
6737         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
6738         as well as add new ones. This should make work the BackgroundImage
6739         property for ListView again.
6740
6741 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
6742
6743         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
6744         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
6745         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
6746
6747 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
6748
6749         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
6750         IsKeyLocked.
6751
6752 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
6753
6754         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
6755         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
6756
6757 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
6758
6759         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
6760         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
6761
6762 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
6763
6764         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
6765
6766 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
6767
6768         * GridEntry.cs: Implement GetService.
6769
6770 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
6771
6772         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
6773         for label editting, make sure we focus back on the TreeView.
6774         [Fixes bug #82590]
6775
6776 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6777
6778         * ListView.cs: Add some 2.0 overrides.
6779
6780 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
6781
6782         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
6783         because getter dont returns right value before handle creation. Thanks 
6784         to George. Fixes #82569.  
6785
6786 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
6787
6788         * Theme.cs: Revert last patch, it causes error under win32. 
6789
6790 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
6791
6792         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
6793         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
6794         logical Desktop rather than the physical file system location. Fixes #82603. 
6795
6796 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
6797
6798         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
6799         for the patch. Fixes #82568.
6800
6801 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6802
6803         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
6804         methods.
6805
6806 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6807
6808         * ListViewInsertionMark.cs: New stubbed class.
6809
6810 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
6811
6812         * FolderBrowserDialog.cs: When adding folder, immediately create the
6813         directory with temporary name and rename the directory when editing
6814         finishes. This matches MS. Ensure the node for the new folder is 
6815         selected and LabelEdit is disabled, when editing is either finished
6816         or cancelled.
6817
6818 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
6819
6820         * TreeView.cs: When editing label of node, ensure node is visible.
6821
6822 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
6823
6824         * PropertyGridView.cs: Set the value only if it has changed.
6825
6826 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6827
6828         * ListView.cs: Some more code refactoring to add support sorting
6829         with groups (now for Details view). Remove unused code also.
6830
6831 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
6832
6833         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
6834         Not a big fan of reacting immediately to a field in an EventArg, but that's
6835         the way it's done.  (This is part of the previous commit that got left out.)
6836
6837 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
6838
6839         * FolderBrowserDialog.cs: Removed need for separate description field.
6840         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
6841         has focus when dialog box is displayed again, regardless of what
6842         button was pressed the previous time. Set RootFolder and SelectedPath
6843         each time dialog box is displayed. This ensures the treeview is
6844         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
6845         when it does not have focus. Added support for more special folders.
6846
6847 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
6848
6849         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
6850         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
6851         it resets the edit_args.
6852         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
6853         [Fixes bug #82577]
6854
6855 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
6856
6857         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
6858         button to match MS. Provide more meaningful exception message for
6859         invalid RootFolder value. Use zero-length string when SelectedPath
6860         is set to null. Allow non-rooted paths in SelectedPath, but ignore
6861         them in FolderBrowserTreeView. Allow folders to be created in
6862         RootFolder. Fixes bug #82576.
6863
6864 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6865
6866         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
6867         since we need to take into account the group headers and the margin
6868         between them.
6869         * ListViewGroup.cs: Add a rows field to store the number of rows per
6870         group.
6871
6872 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6873
6874         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
6875           Anyways, let's just follow the lead.
6876
6877 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
6878
6879         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
6880         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
6881         controls in GetPreferredSizeCore.
6882         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
6883         [Fixes bug #82488]
6884
6885 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
6886
6887         * PrintDialog.cs: Need to instantiate the form variable here too.
6888
6889 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6890
6891         * ListView.cs: Do some reorganization to support sorting in groups,
6892         by doing the layout sequentially in ListView.Items. Also add support
6893         for the Default Group, which should be available for items with no
6894         group assigned.
6895         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
6896         for storing layout info also.
6897         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
6898         collection, as well as providing internal members to do a traversal
6899         including the default group (needed when doing layout/drawing).
6900         * ThemeWin32Classic.cs: When drawing group headers use internal
6901         ListViewGroupCollection members to take into account the default
6902         group.
6903
6904 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
6905
6906         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
6907
6908 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
6909
6910         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
6911         been created.  If handle is created, we want arror keys.  If we are editing
6912         a node, we want things like enter, esc, home, end, page up, page down.
6913         Allows Esc to work for FolderBrowserDialog.
6914
6915 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
6916
6917         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
6918         they close when ESC is pressed.  Thanks Andy!
6919
6920 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
6921
6922         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
6923         This way we can tell if this is a CommonDialog provided with mono, or one
6924         that is being implemented outside by a developer.  If it is an external one,
6925         the developer is responsible for showing their own form.  We were showing
6926         our blank form after the developer showed his.
6927         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
6928         PageSetupDialog.cs: Instantiate form variable in our constructor.
6929         [Fixes bug #82531]
6930
6931 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
6932
6933         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
6934         and always return true.  [Fixes bug #81616]
6935
6936 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
6937
6938         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
6939         TextBox.  [Fixes bug #82549]
6940
6941 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
6942
6943         * FileDialog.cs: When Save/Open is clicked and no filename is selected
6944         or entered then do not close the dialog. Fixes bug #82539. Removed
6945         CWLs.
6946
6947 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
6948
6949         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
6950         code to this method. It is calling every time filter changes. This method
6951         will help to fix the bug #80887.
6952
6953 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
6954
6955         * CheckBox.cs: Implement AutoSize calculation.
6956
6957 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
6958
6959         * CheckBox.cs: Use new 2.0 rendering for 2.0.
6960         * Theme.cs: Method declarations for 2.0 rendering path.
6961         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
6962
6963 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6964
6965         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
6966
6967 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6968
6969         * ListViewGroupCollection.cs: Implement AddRange the right way, to
6970         only call Redraw on the parent one time.
6971
6972 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6973
6974         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
6975           GetClipboardContent.
6976         * DataGridViewCell.cs: Implemented GetClipboardContent,
6977           GetEditedFormattedValue, GetFormattedValue.
6978         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
6979
6980 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
6981
6982         * TableLayoutStyleCollection.cs: corcompare fix.
6983
6984 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6985
6986         * DataObject.cs: Implemented retrieval of convertible / not convertible
6987           objects.
6988
6989 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
6990
6991         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
6992         ourselves.  This ensures the entire old bounds are repainted, in case our new
6993         size is smaller.  [Fixes bug #82518]
6994
6995 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
6996
6997         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
6998         flag to make fast handle of mouse events, without this the mouse move is
6999         handled in some manner, whether it is a mouse move or not. Fixes #81588.
7000
7001 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7002
7003         * ListView.cs: When doing layout calculations don't use a ref
7004         param to keep the current item; instead use its Index value (this 
7005         is specially important when doing the layout with Groups
7006         and Items being sparse). Also don't take into account items added to
7007         the Group but not yet added to the main ListView.Items collection.
7008
7009 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7010
7011         * ListViewGroupCollection.cs: Forgot to mimic an issue
7012         in the indexer (don't assign the ListView owner for new values).
7013
7014 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7015
7016         * ListViewGroupCollection.cs: Make the string indexer use
7017         the int based indexer to re-use code, instead of duplicate the code.
7018         Also Redraw as needed and take into account null values.
7019
7020 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
7021
7022         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
7023         [Fixes bug #82481]
7024
7025 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
7026
7027         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
7028         when other buttons are clicked or navigated to.
7029
7030 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7031
7032         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
7033           it's XplatUIX11 that attaches them.
7034
7035 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7036
7037         * DataGridView.cs: If a column has been added, recreate the editing row.
7038           Fixes #82226.
7039
7040 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7041
7042         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
7043           of the tag to draw. Makes disappearing text show up again.
7044
7045 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7046
7047         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
7048           Contents. Fixes #82487.
7049
7050 2007-08-19  Andreia Gaita  <avidigal@novell.com>
7051
7052         * Added HtmlElement.cs, HtmlElementCollection.cs, 
7053           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
7054           
7055 2007-08-19  Andreia Gaita  <avidigal@novell.com>
7056
7057         * BindingSource.cs: Implement this, dispose and getenumerator.
7058         * DataGridViewRowCollection.cs: Move the InvalidOperationException
7059         out of AddInternal, throw it only on public Add calls. The 
7060         UsingWebBrowser sample was blowing up with this when setting the
7061         DataSource after adding DataBindings, so it's likely that .net
7062         only throws this exception when Add is called directly. 
7063         
7064         * ToolStripControlHost.cs: Return the hosted control's text
7065         property, and not the ToolStripItem one (it would always return
7066         the initial value).
7067         
7068         * HtmlDocument.cs: Implement GetElementById and All
7069         * WebBrowser.cs: Remove exception on set_DocumentStream.        
7070
7071 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
7072
7073         * Form.cs: Fix the max and min value for opacity (0~1).
7074
7075 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
7076
7077         [Fixes #80118]
7078         * DataGridTableStyle.cs: Default header font is now null, on getter it 
7079         returns datagrid font when is null. On setter permits null.
7080
7081         * DataGrid.cs:
7082         - When ResetHeaderFont set header font to null.
7083         - On EndInit set grid_style.DataGrid.
7084
7085 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
7086
7087         * TabControl.cs: Fix regression in default padding x.
7088
7089 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
7090
7091         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
7092
7093 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
7094
7095         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
7096         not 2. Fixes #82229.
7097
7098 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
7099
7100         * TabControl.cs: Fix tab size when image height is less than text height.
7101         Partially fixes #81837.
7102
7103 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
7104
7105         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
7106         "alt + tab". It works only for Win32, for X11 theres no way to remove window
7107         from taskbar and keep it on "alt_tab". Fixes #81722.
7108
7109 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
7110
7111         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
7112         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
7113         Fixes #80877 and #79418.
7114
7115 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
7116
7117         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
7118         between position and one of the screen borders. Fixes #82349.
7119
7120 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
7121
7122         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
7123         the MessageBox in the taskbar. Fixes #82457.
7124
7125 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
7126
7127         * MessageBox.cs: Fix form size when icon is set and text height is bigger
7128         than icon. Fixes #82468.
7129
7130 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7131
7132         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
7133         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
7134           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
7135           Refactored HandleNCCalcSize somewhat to avoid code duplication.
7136         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
7137           FormBorderStyle to decide if we're calculating a new size from the
7138           client size or not. CreateParams: Don't fake tool windows, only the X11
7139           backend manages toolwindows manually.
7140
7141 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
7142
7143         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
7144         ObjectDisposedException.
7145
7146 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
7147
7148         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
7149         in OnLoad should not have any effect.  [Fixes bug #82470]
7150
7151 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
7152
7153         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
7154         paint for controls that create their own ToolTipWindow instead of
7155         going through ToolTip.
7156
7157 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
7158
7159         * ToolTip.cs: Make Hide internal instead of public to match MS API.
7160
7161 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7162
7163         * ListViewGroupCollection.cs: Use generic List instead of an
7164         ArrayList, since this collection is 2.0 only.
7165
7166 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
7167
7168         * ToolTip.cs (Hide): Made public to make the build work (should
7169         this not be public?).
7170
7171 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
7172
7173         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
7174         ToolTipWindow.
7175         * ToolTip.cs: Add an internal Visible property to facilitate transition.
7176
7177 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
7178
7179         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
7180         PopupEventHandler.cs: Make these internal for 1.1.
7181         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
7182         use ToolTipWindow internals.
7183         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
7184         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
7185
7186 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7187
7188         * X11Dnd.cs: Add a null check.
7189
7190 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7191
7192         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
7193           nothing else succeeds. Fixes #82453.
7194
7195 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7196
7197         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
7198           rectangle if we're painting to another window than the one the paint
7199           message was generated on. Simplify the code somewhat, which makes
7200           PaintEventEnd also simpler.
7201
7202 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7203
7204         * Control.cs: When changing parent of a form, let the form decide whether
7205           XplatUI.SetParent should be called or not.
7206         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
7207           recreating the handle. If the new parent's handle isn't created, don't
7208           recreate our handle, just destroy it. CreateParams: Check if the
7209           parent's handle is created before fetching it.
7210
7211 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7212
7213         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
7214           Update calls to PaintEventStart/End to take a Message argument.
7215         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
7216           take a Message argument.
7217         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
7218           Message argument, and handle the case where we don't paint to the window
7219           for which the paint message was generated.
7220
7221 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7222
7223         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
7224           Marshal.GetLastWin32Error. Plug nasty memory leak in
7225           PaintEventStart/End, we were creating a DC we weren't releasing.
7226
7227 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7228
7229         * ListView.cs: Add Groups support in Details view. Also have a small
7230         method to do the layout of the group header. Don't use a separate
7231         method to do the groups calculation in Icons view, since our methods
7232         are now a little simpler.
7233         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
7234         `Bounds'.
7235         * ThemeWin32Classic.cs: Likewise.
7236
7237 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
7238
7239         * Application.cs: Add FilterMessage method and rework our message loop
7240         logic to use it.
7241
7242 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
7243
7244         * Application.cs: Add some methods and stub a few methods that are
7245         pretty much never used.
7246
7247 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
7248
7249         * TreeNode.cs: Add some serialization methods.
7250
7251 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7252
7253         * ListView.cs: In ListViewItemCollection have a 
7254         'is_main_collection' field to not modify ListViewItem.ListView
7255         when using it as ListViewGroup.Items (and not ListView.Items)
7256         and also don't modify selection state (.Net behaviour). 
7257         Instead, set group for items contained in a ListViewGroup.Items collection.
7258         * ListViewItem.cs: Simplify some code in Group setter.
7259         * ListViewGroup.cs: use the new .ctor to pass the current instance
7260         to the ItemsCollection.
7261         * ListViewGroup.cs: Set the ListView property for ListViewGroup
7262         instances when adding/removing. Also make Remove use RemoveAt, which
7263         should perform better.
7264
7265 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
7266
7267         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
7268         that crept into the 1.1 profile.
7269
7270 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
7271
7272         * ToolBarButton.cs: Implement ImageKey.
7273
7274 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
7275
7276         * ToolBar.cs: Implement ScaleControl/ScaleCore.
7277
7278 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7279
7280         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
7281           created, it might have gotten destroyed since we last checked. Fixes
7282           #82405.
7283
7284 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
7285
7286         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
7287         tooltip will hide when mouse is moved off the control.
7288         [Fixes bug #82407]
7289
7290 2007-08-11 Andreia Gaita <avidigal@novell.com>
7291
7292         * WebBrowserBase.cs, WebBrowser.cs: add implementation
7293         using Mono.Mozilla for loading and navigating webcontrol
7294         with xulrunner.
7295         The initial implementation was done on 
7296         /trunk/mozembed/tests/browser , and copied here.
7297
7298 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
7299
7300         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
7301         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
7302
7303 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7304
7305         * DataGridView.cs: Add support for an editing row. Fixes #82226.
7306           RowTemplateFull: throw an exception if a column doesn't have a template.
7307         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
7308           add the row just before it.
7309         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
7310           selected.
7311         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
7312           DataGridView field to be able to reach the grid's editing row.
7313
7314 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
7315
7316         * ToolTip.cs: If the control's handle hasn't been created when it has a
7317         tooltip set on it, don't check to see if we need to show the tooltip.  This
7318         check was causing the control's handle to be created.
7319         [Fixes bug #82399]
7320
7321 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
7322
7323         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
7324                                         1.1             2.0
7325         Handle Not Created      -1              0
7326         Handle Created          0               0
7327         [Fixes bug #82371]
7328
7329 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
7330
7331         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
7332         [Fixes bug #82348]
7333
7334 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
7335
7336         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
7337         * ToolTip.cs: Implement some properties and owner draw.
7338
7339 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7340
7341         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
7342           show them again, since setting visibility causes a paint, causing an
7343           endless loop (instead use a temporary and set it all when it's known if
7344           they should be shown or not). Fixes #79265.
7345
7346 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7347
7348         * DataGridView.cs: Only do a full column/row selection if a header was
7349           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
7350           isn't pressed, deselect everything before selecting something.
7351
7352 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7353
7354         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
7355           behaviour according to bug #81075 - they are returned in the order they
7356           are selected. Fix HitTest to check if the point is within any of the
7357           headers. Allow for row/column selection when in ColumnHeader or
7358           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
7359           the row and column to call when their selected state changes, and
7360           updated selected_[rows|columns] whenever SetSelected* is called.
7361         * DataGridViewBand.cs: Initialize isRow correctly. Call
7362           SetSelected[Row|Column]CoreInternal when the selected state changes, and
7363           add a SelectedInternal to avoid StackOverflows.
7364         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
7365           ReadOnly no matter what.
7366         * DataGridViewSelectedColumnCollection.cs,
7367           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
7368           the items in reverse order (just as MS does...)
7369
7370 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
7371
7372         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
7373         itself, not part of a mnemonic.  [Fixes bug #82378]
7374
7375 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7376
7377         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
7378         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
7379           the DGV, the column, the row, or the cell itself is readonly.
7380
7381 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
7382
7383         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
7384         OSVersion.Platform.
7385         * FileDialog.cs: Same.
7386         * TextRendered.cs: Same.
7387         * FolderBrowserDialog.cs: Same.
7388         * TextBoxBase.cs: Same.
7389         * Application.cs: Same.
7390         * Cursors.cs: Same.
7391         * ThemeClearLooks.cs: Same.
7392
7393 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
7394
7395         * XplatUI.cs: Added RunningOnUnix property to be used by controls
7396         instead of duplicating these checks everywhere.
7397         * FileDialog.cs: Use case-insensitive comparison for populating the
7398         DirComboBox when not running on unix. Fixes bug #82385.
7399         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
7400         "Look in".
7401
7402 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7403
7404         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
7405           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
7406           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
7407           cell and column selection with ctrl and shift pressed. Call the correct
7408           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
7409           the corresponding virtual method (PaintBackground to paint background,
7410           etc).
7411         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
7412           either the column, row or the cell itself is selected.
7413         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
7414           OnRowsAdded.
7415         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
7416           here. When the row is selected, don't select all cells. Each cell now
7417           queries the row to see if the row is selected.
7418
7419 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7420
7421         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
7422           SelectionMode.
7423
7424 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7425
7426         * ListView.cs: In ListViewItemsCollection check that owner is
7427         not null before trying to access it (this happens quite often
7428         using Groups). Also don't duplicate calls by calling CollectionChanged
7429         method.
7430
7431 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
7432
7433         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
7434         when we are dismissed to clear keyboard mnemonics.
7435         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
7436         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
7437         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
7438         was activated by keyboard or the OS tells us to always draw them.
7439         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
7440         [Fixes bugs #82376, #82377]
7441
7442 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
7443
7444         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
7445         shot at having it because Alt was pressed.
7446         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
7447         the first real menu item.
7448         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
7449         a mnemonic if Text is null.
7450         [Fixes bug #82374]
7451
7452 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7453
7454         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
7455         search do check whether the item is already contained in the
7456         collection or not; instead check if the owner of the item is the same
7457         as ours. Also, remove a redundant check in the same method. 
7458
7459 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
7460
7461         * Control.cs: Allow the clip region to be set back to null.
7462         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
7463         [Fixes button still showing up in bug #82370 when Show Through is turned off]
7464
7465 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7466
7467         * GridEntry.cs: Add a null check.
7468         * PropertyGrid.cs: When checking for existing grid entries, ignore category
7469           entries. Fixes #82297.
7470
7471 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
7472
7473         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
7474         for 2.0.
7475
7476 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
7477
7478         * ListBox.cs: Implement ScaleControl.
7479
7480 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7481
7482         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
7483           have a menu strip.
7484         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
7485           parent has a menu strip. Fixes #81689.
7486
7487 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7488
7489         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
7490           moments, so apply some fuzzy logic to determine if the mouse is still
7491           inside a control or not. Fixes #82288 (for the third time).
7492
7493 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7494
7495         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
7496           Don't create the child if it has been disposed already (may happen if
7497           the user closes the form the Load event).
7498
7499 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7500
7501         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
7502           #82288.
7503
7504 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7505
7506         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
7507           might call us after we've been destroyed, in which case our own private
7508           parent field is null. Fixes #82326.
7509
7510 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
7511
7512         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
7513         check for setting the dropdown's owner.
7514
7515 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
7516
7517         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
7518         before removing system menu items.
7519
7520 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
7521
7522         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
7523         folding.
7524         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
7525         folding.
7526         * ToolStrip.cs: Add a null check to mnemonics.
7527         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
7528         no ConnectedArea.
7529         [Fixes most of bug #81689]
7530
7531 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7532
7533         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
7534
7535 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7536
7537         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
7538
7539 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7540
7541         * DataGridViewCell.cs: EditType: returns
7542           DataGridViewTextBoxEditingControl always.
7543
7544 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
7545
7546         * TextRenderer.cs: Remove the LineLimit string format flag from the
7547         DrawString fallback method so that things like buttons that aren't
7548         tall enough to draw a full line will still draw part of the text.
7549         [Fixes part of bug #82272]
7550
7551 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7552
7553         * DataGridView.cs: Implemented AutoResizeColumn(s).
7554         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
7555           according to the Alignment.
7556         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
7557           Implement alignment and padding when painting.
7558         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
7559           exists.
7560         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
7561           way.
7562         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
7563           a column is added.
7564
7565 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
7566
7567         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
7568         which is internal.
7569
7570 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
7571
7572         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
7573         hide GetPreferredSize from public API.
7574         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
7575         * ToolStripItem.cs: Stub out drag and drop methods and events.
7576         * ToolStripManager.cs: Stub out Save/LoadSettings.
7577         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
7578         * ToolStripPanel.cs: Fix corcompare error.
7579         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
7580         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
7581         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
7582
7583 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
7584
7585         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
7586         bounds height instead of PreferredHeight.  Puts things back the way 
7587         they were for height while still fixing the width.  Fixes broken unit
7588         tests.
7589
7590 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7591
7592         * Binding.cs: Implement 2.0 constructors and add a null check.
7593
7594 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7595
7596         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
7597           and fix row index (off by one).
7598
7599 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7600
7601         * PropertyGridView.cs: Remove debug output.
7602
7603 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7604
7605         * Control.cs: We need to reset the is_created flags when the handle is
7606           destroyed. Fixes #82187.
7607         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
7608           client coordinates if the window doesn't have a parent.
7609           Win32GetParent returns the parent or the owner, and for top-level
7610           windows with no parent (but with an owner) we were calculating the
7611           location from the location of the owner.
7612         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
7613           form has been disposed.
7614         * MdiClient.cs: Add a null-check.
7615
7616 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
7617
7618         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
7619         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
7620         so we can provide an implementation that returns the current width
7621         and preferred height.  Allows anchor = right to work with TextBox 2.0.
7622         [Fixes bug #82233]
7623
7624 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7625
7626         * ListView.cs: Add support for navigating items in Groups mode, by
7627         creating a big matrix containing all rows and cols of all groups. When
7628         are in other mode than Details, pressing Up should have a similar
7629         behaviour as that one of Down (moving to the next available column if
7630         current one doesn't have an item in the requested row). Also, don't
7631         proceed to use groups if ShowGroups is false.
7632         * ListViewGroup.cs: Add an internal int field to store the starting
7633         row of the group (used by the big matrix used for navigating the
7634         ListView).
7635         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
7636         false.
7637
7638 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
7639
7640         * ToolStripDropDown.cs: When we do Show, start with the 
7641         DefaultDropDownDirection, but if our popup menu is going to off-screen,
7642         modify the direction to keep it on screen.  [Fixes bug #82210]
7643
7644 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
7645
7646         * FileDialog.cs: Accept any FilterIndex value, and store it
7647         unmodified. When FilterIndex is less than 1, or greater than number
7648         of filters, then default to first filter. Only add filter extension to
7649         file if user did not specifiy an extension. When type of dialog is
7650         OpenFileDialog and DefaultExt is set, then only use filter extension
7651         if: CheckFileExists is true and no file wih the default extension
7652         exists, or CheckFileExists is false, and user specified file does not
7653         exist. When CheckFileExists is true, then add first extension of 
7654         selected filter that matches existing file. Perform checks for
7655         existing file, overwrite and create after extension has been added to
7656         file name. When CheckFileExists is true and type is SaveFileDialog,
7657         then only consider first filter extension if DefaultExt is set.
7658         When CheckFileExists is true, then ignore DefaultExt if file with that
7659         extension does not exist. Also perform check for existing file when
7660         type is SaveFileDialog. Changed some field to constants.
7661
7662 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7663
7664         * ListView.cs: Take into account the region used by header
7665         control when doing the vertical scroll (this way we invalidate
7666         the precise area, and don't get any dirty one).
7667
7668 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
7669
7670         * FileDialog.cs: Check for valid filterIndex on button open/save. 
7671         Fixes #82184.
7672
7673 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7674
7675         * ListView.cs: Update some layout calculations in details view
7676         and clean the code in a pair of assignations.
7677
7678 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
7679
7680         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
7681         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
7682         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
7683         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
7684
7685 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
7686
7687         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
7688         performance of thread-safe Graphic methods.  (Thanks rolf!)
7689
7690 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7691
7692         * ListView.cs: When doing the layout calculations, don't calculate
7693         scroll bars before handle is created. This is unnecessary and also
7694         calculating them before handle creation item causes a number of random
7695         bugs (which begin to appear after Chris' big patch for handle creation
7696         fixes). 
7697
7698 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
7699
7700         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
7701         for things that don't have a Graphics object.  Currently, things just use
7702         the static Hwnd.bmp_g which is not thread safe.
7703
7704 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7705
7706         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
7707           dialog. Fixes #82187.
7708
7709 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7710
7711         * DataGridViewElement.cs: Initialize state.
7712         * DataGridView.cs: Forward a few Mouse events to cells. Add
7713           GetRowInternal and GetCellInternal that doesn't unshare rows.
7714           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
7715           don't use the index, but look it up. Add
7716           DataGridViewControlCollection.RemoveInternal to remove controls
7717           that Remove won't remove (scrollbars, edit control).
7718         * DataGridViewColumn.cs: Initialize State correctly.
7719         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
7720           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
7721           implementing this.
7722         * DataGridViewRowCollection.cs: Implemented shared rows.
7723         * DataGridViewRow.cs: Throw exceptions as MS do.
7724         * DataGridViewCell.cs: A few properties are implemented by a
7725           Get<Property> method, so move implementation there and remove the
7726           NIEX in the method. Add a bunch of OnXInternal that DataGridView
7727           calls when necessary.
7728         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
7729           complicates matters.
7730         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
7731           unshare any rows.
7732
7733 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
7734
7735         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
7736         the children controls.  Instead, we will just set up the proper docking for the
7737         children controls so we don't have to worry about it.  [Fixes bug #82188]
7738
7739 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
7740
7741         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
7742         canceling and correct Before/AfterLabelEdit properties as layed out in bug
7743         81847.  [Fixes bug #81847]
7744
7745 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
7746
7747         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
7748         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
7749         an explicit size based on the design-time size of the text.  Since our fonts
7750         may not match this explicit size, we tend to cut off the ends of people's labels.
7751
7752 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
7753
7754         * Menu.cs: Add some missing methods to MenuItemCollection.
7755
7756 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7757
7758         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
7759         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
7760         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
7761         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
7762         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
7763         * DataGridViewElement.cs: State defaults to Visible.
7764         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
7765         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
7766
7767 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7768
7769         * Control.cs: Minor 1.1 corcompare fix.
7770
7771 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
7772
7773         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
7774         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
7775
7776 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7777
7778         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
7779           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
7780           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
7781           DataGridViewSelectedColumnCollection.cs,
7782           DataGridViewSelectedRowCollection.cs: Corcompare work.
7783
7784 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
7785
7786         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
7787         it is autoset by VS2005 designer and the effect is barely noticeable.
7788
7789 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
7790
7791         * TreeView.cs: Implement HitTest.
7792
7793 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7794
7795         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
7796           manually adding and removing the control from the Controls
7797           collecftion.
7798         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
7799           EditingControlInternal property that tracks the editing control.
7800           Always keeping the scrollbars in the Controls collection, as MS
7801           testing confirms is the right behaviour.
7802
7803 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7804
7805         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
7806           according to MSDN and new test.
7807
7808 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
7809
7810         * TreeNode.cs: Implement ToolTipText.
7811         * TreeView.cs: Implement tooltips, NodeMouse* events.
7812
7813 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
7814
7815         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
7816
7817 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
7818
7819         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
7820         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
7821
7822 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
7823
7824         * Control.cs, Form.cs, ContainerControl.cs,
7825         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
7826         for misc properties.
7827
7828 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
7829
7830         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
7831         * TreeView.cs: Implement StateImageList.
7832
7833 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7834
7835         * Form.cs: Don't check if the current form is the active form before
7836           activating it. Fixes #81904.
7837
7838 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7839
7840         * Form.cs: Don't check if the current form is the active form before
7841           activating it. Fixes #81904.
7842
7843 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7844
7845         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
7846
7847 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7848
7849         * Form.cs: Don't try to position the form after loading if the form was
7850           disposed. Fixes #81969.
7851
7852 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7853
7854         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
7855           properties. Had to change ToolBar into ToolStrip, which required a
7856           few #ifs.
7857
7858 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7859
7860         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
7861           resized, fixes part of #79829 (vertical lines in toolbar).
7862           PropertyGrid: Refactored Populate* to something that's easier to
7863           follow at least for me, as well as splitting it up into several new
7864           methods, required to update only subitems when something has
7865           changed by a popup editor or listbox. Don't use events to check
7866           when any values are changed, since the events are unreliable (we're
7867           changing the objects the events are registered with, and if the
7868           event handling requires the objects to be immutable (objects stored
7869           in hashtables for instance), the events will never be raised).
7870         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
7871           everytime we change a value, since events are unreliable.
7872           DropDownButtonClicked: For the same reason don't compare objects to
7873           check if it has changed or not, it would require all objects to
7874           derive Equals. Fix dialog location on windows, MS is doing weird
7875           things when creating parented forms.
7876         * GridEntry.cs: Add a SelectedObject setter.
7877
7878 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
7879
7880         * TreeNode.cs: Add some corcompare attributes.
7881         * TreeNodeCollection.cs: Implement 2.0 stuffs.
7882         * TreeView.cs: Implement some 2.0 stuffs.
7883
7884 2007-07-18  Andreia Gaita  <avidigal@novell.com>
7885
7886         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
7887         for moma.
7888
7889 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
7890
7891         * ListBox.cs: Implement custom tab offsets.
7892
7893 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7894
7895         * ToolStripContentPanel.cs: Support System renderer.
7896         * ToolStripControlHost.cs: Set RightToLeft to default to No.
7897
7898 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7899
7900         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
7901
7902 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7903
7904         * CheckBox.cs: Chain TextAlign to base implementation instead of
7905         maintaining another one.
7906
7907 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7908
7909         * ButtonBase.cs: Fix an incorrect string constant.
7910
7911 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7912
7913         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
7914         of creating one for measuring strings.
7915
7916 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
7917
7918         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
7919         Implement MaxItemSize.
7920
7921 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
7922
7923         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
7924         for DeviceContext.  Instead, use the static one available in Hwnd.
7925         Informal tests show this saves about 500k on formtest.exe.
7926
7927 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
7928
7929         * ContainerControl.cs: Implement 2.0 AutoScaling.
7930
7931 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7932
7933         * ComboBox.cs: Work around bug #82120 (bug in mcs).
7934
7935 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
7936
7937         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
7938         Darken the focus color.
7939
7940 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
7941
7942         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
7943         for the checkbox.
7944         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
7945         X, Y instead of a rect for drawing text.
7946         - For ControlPaint.DrawCheckBox, center the check a little better when the
7947         checkbox is odd width.  When drawing a flat checkbox, use a white background
7948         when state != inactive.
7949         [Fixes bugs #82097, 82100]
7950
7951 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
7952
7953         * ListControl.cs: When changing CurrencyManager, disconnect event
7954         handlers from previous one. Fixes bug #81771. Code formatting.
7955
7956 2007-07-15  Andreia Gaita <avidigal@novell.com>
7957
7958         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
7959         full preview invalidation from layout invalidation, and only invalidate
7960         the layout when setting zoom or other properties. Invalidation should
7961         always be done even when resetting properties with the same values as
7962         what is there. Fixes #81744 and #79830.
7963
7964 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7965
7966         * ListView.cs: Implement initial support for Groups. Split some of the
7967         LayoutIcons code to render a partial list of the items (needed by
7968         items contained in ListViewGroup instances). Let the
7969         ListViewItemsCollection.ListView property be modifiable (needed when
7970         using Groups, too).
7971         * ListViewGroup.cs: Use a Bounds property rather than a Location
7972         one. Also invalidate the bounds when they get changed.
7973         * ThemeWin32Classic.cs: When drawing items, also draw the group header
7974         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
7975         method as well.
7976
7977 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7978
7979         * ListView.cs: When space gets pressed and CheckBoxes is true, 
7980         don't invoke the Begin and EndUpdate methods. We are generating 
7981         a redraw of the entire control without need to do so.
7982
7983 2007-07-13  William Holmes <billholmes54@gmail.com> 
7984
7985         * Control.cs: Changing logic in FindFlatForward and 
7986           FindFlatBackward to handle multiple Controls with 
7987           the same TabIndex.  
7988           This fixes bug 81687.
7989
7990 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
7991
7992         * OSFeature.cs: Enable IsPresent.
7993
7994 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7995
7996         * Control.cs: Don't do anything in WmShowWindow if the control has been
7997           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
7998           control is created, put on a form, the control is disposed (the
7999           form is never shown), and then we get a MapNotify, triggering a
8000           WM_SHOWWINDOW.
8001         * Form.cs: Exclude the current form when sending Deactivate to all
8002           MdiChildren.
8003         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
8004           there was a race condition because assigning the handle raises
8005           events, we can get more messages, therefore trying to assign the
8006           handle again, which would fail if any of those event handlers
8007           closed/disposed the control.
8008
8009 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8010
8011         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
8012
8013 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
8014
8015         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
8016         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
8017
8018 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8019
8020         * DateTimePicker.cs: If there's no part format specifier, return an
8021           empty string.
8022
8023 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
8024
8025         * FlatButtonAppearance.cs: Throw NotSupportedException for a
8026         Transparent BorderColor.
8027
8028 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8029
8030         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
8031           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
8032           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
8033           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
8034           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
8035           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
8036           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
8037           Remove warnings.
8038         * X11Structs.cs: Remove warnings, add ToString implementations.
8039
8040 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8041
8042         * XplatUIX11.cs: Translate min/max size according to the actual min/max
8043           size, and not the current size. Fixes #81798.
8044
8045 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8046
8047         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
8048           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
8049           to the control yet).
8050
8051 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8052
8053         * PropertyGridTextBox.cs: Add a method that sends any forwarded
8054           mousedowns to the contained textbox.
8055         * X11Structs.cs: More ToString implementation.
8056         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
8057           #81791.
8058
8059 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8060
8061         * PropertyGridView.cs: Add a null-check, fixes a few tests.
8062
8063 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
8064
8065         * TableLayoutPanelCellPosition.cs: TypeConverter.
8066
8067 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8068
8069         [ Fixes #79761]
8070         
8071         * PropertyGridTextBox.cs: Propagate any color changes to all contained
8072           controls.
8073         * PropertyGridView.cs: A few color fixes.
8074
8075 2007-07-10  Jackson Harper  <jackson@ximian.com>
8076
8077         * TextControl.cs: Remove some old unused text formatting stuff.
8078
8079 2007-07-10  Jackson Harper  <jackson@ximian.com>
8080
8081         * TreeView.cs: Update full row select invalidation to match the
8082         newer DrawSelection... method.
8083         - Make sure to invalidate the entire width when selecting a new
8084         node, if we have full row selection enabled.
8085
8086 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8087
8088         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
8089           display of properties again.
8090
8091 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
8092
8093         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
8094         to existing collections.
8095
8096 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
8097
8098         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
8099         that changed between 1.1 and 2.0.
8100
8101 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
8102
8103         * PowerStatus.cs: Added.  This is just a data class, it is filled
8104         in by SystemInformation.
8105
8106 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
8107
8108         * Message.cs: Add op_Equality and op_Inequality.
8109
8110 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
8111
8112         * MenuStrip.cs: Finish corcompare work.
8113
8114 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
8115
8116         * LinkArea.cs: Add op_Equality and op_Inequality.
8117
8118 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
8119
8120         * Application.cs: Add MessageLoopCallback delegate.
8121
8122 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
8123
8124         * ListBox.cs: First set of 2.0 stuffs.
8125
8126 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
8127
8128         * Control.cs: Make an internal Height property we can override
8129         without messing up the public API.
8130         * ListBox.cs: Override HeightInternal to always return the size
8131         the user set.  [Fixes bug #80466]
8132
8133 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
8134
8135         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
8136         paint cell borders if we haven't calculated where they go yet.
8137         [Fixes bugs #82040 and #82041]
8138
8139 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8140
8141         * ListView.cs: In Details view, set the location of item_control
8142         in the (0,0) position (and the header_control is thus on the
8143         item_control). This way the Bounds of the Items are relative to the
8144         ListView control (before this, they had a Bounds value without the
8145         header_control offset, which wasn't matching .Net). Fixes #82004.
8146
8147 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8148
8149         * ListControl.cs: When DataSource is set to null, pass an empty
8150         array of object to SetItemsCore. This is done to clean the items
8151         in the ListContol children. Fixes #81788.
8152
8153 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
8154
8155         * ListControl.cs: Add 2.0 stuffs.
8156
8157 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
8158
8159         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
8160         Refresh is overkill for just about every repaint request.
8161
8162 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
8163
8164         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
8165         so remove my custom Get method and fix the property getter.
8166
8167 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
8168
8169         * Label.cs: DefaultMargin for 2.0.
8170
8171 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
8172
8173         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
8174         reported issue where other controls with mnemonics would steal strokes
8175         from a selected ComboBox.
8176
8177 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
8178
8179         * ScrollOrientation.cs: Make internal for 1.1.
8180         * ScrollEventArgs.cs: Add 2.0 stuffs.
8181
8182 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
8183
8184         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
8185         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
8186         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
8187
8188 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8189
8190         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
8191
8192 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8193
8194         * ListView.cs: Implement the so-incredibly broken 2.0 
8195         VirtualItemsSelectionRangeChanged event.
8196
8197 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8198
8199         * ListView.cs: When enter is pressed and selection is non empty,
8200         an OnItemActivate event must be fired.
8201
8202 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8203
8204         * ListView.cs: Store the FocusedItem information as an
8205         int instead of a ListViewItem (needed by VirtualMode).
8206         Update the calls to SetFocusedItem to pass an index instead of
8207         an item.
8208         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
8209         the Focused state from the owner ListView. 
8210
8211 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8212
8213         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
8214         property. Also, invalidate previous focused item in the mentioned
8215         property (match .Net).
8216
8217 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8218
8219         * ListView.cs: Implement 2.0 FocusedItem property setter.
8220
8221 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8222
8223         * ListView.cs: Implement 2.0 TopItem property setter.
8224
8225 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
8226
8227         * StatusStrip.cs: The default renderer is System.
8228         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
8229         if the user specifies it.
8230         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
8231         if we are ManagerRenderMode.
8232         * ToolStripMenuItem.cs: Calculate our text color better.
8233         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
8234         from Professional to the base class based off working with the System renderer.
8235         * ToolStripSystemRenderer.cs: Added.
8236
8237 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8238
8239         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
8240
8241 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
8242
8243         * ToolTip.cs: Implement 2.0 Tag property.
8244
8245 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8246
8247         * ListView.cs: Implement 2.0 HitTest methods.
8248
8249 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8250
8251         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
8252         item is under the pointer or not (sugar). Also remove the TODO
8253         regarding to the cursor changes in OneClick activation.
8254         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
8255         the subitems use the parent's HotFont if UseItemStyleForSubItems is
8256         true; otherwise don't show the underline style.
8257
8258 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8259
8260         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
8261         the code to retrieve the item at position only one time. Also
8262         change cursor when Activation is ItemActivation.OneClick as well
8263         as invalidate the item if HotTracking is true (to show/hide the
8264         underline style). Add an internal HotItemIndex property to retrieve
8265         the current hot item's index.
8266         * ListViewItem.cs: Add an internal HotFont property to cache the
8267         font used when HotTracking is true and the pointer moves within the
8268         item's borders.
8269         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
8270         HotFont depending on the hot state of the item.
8271
8272 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8273
8274         * ListView.cs: Implement 2.0 HotTracking property.
8275
8276 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
8277
8278         * ToolStripControlHost.cs: If our hosted control never got created,
8279         don't try to dispose it.  [Fixes bug #81909]
8280
8281 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
8282
8283         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
8284
8285 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
8286
8287         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
8288
8289 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8290
8291         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
8292         Details view.
8293         * DrawListViewColumnHeaderEventArgs.cs:
8294         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
8295         using the DrawText () methods.
8296
8297 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
8298
8299         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
8300         background which got erased in my changes yesterday.
8301
8302 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8303
8304         * ListViewItem.cs: Actually set bounds for subitems in Details view
8305         (2.0 feature).
8306         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
8307         can invoke from the owner draw routines if we need it. Also, add
8308         support for Owner draw in Details view.
8309
8310 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
8311
8312         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
8313         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
8314         ShowImageMargin setting, properly align text in a ToolStripLabel
8315         hosted on a ToolStripDropDown.
8316
8317 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
8318
8319         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
8320         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
8321
8322 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8323
8324         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
8325
8326 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
8327
8328         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
8329         location to match ToolStripMenuItems.
8330
8331 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8332
8333         * DrawListViewColumnHeaderEventArgs.cs:
8334         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
8335         column headers in ListView. 
8336
8337 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
8338
8339         * UserControl.cs: Implement AutoSize.
8340
8341 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8342
8343         * DrawListViewItemEventArgs.cs:
8344         * ListView.cs:
8345         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
8346         ListView.
8347
8348 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
8349
8350         * ToolStripDropDownItemAccessibleObject.cs: Added.
8351         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
8352         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
8353         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
8354         ToolStripTextBox.cs: corcompare work.
8355
8356 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
8357
8358         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
8359         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
8360         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
8361                 corcompare.
8362
8363 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
8364
8365         * OSFeature.cs: Add IsPresent.
8366         * PrintPreviewControl.cs: Add RightToLeft.
8367         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
8368         * SplitterPanel.cs: Add AutoSizeMode.
8369
8370 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
8371
8372         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
8373         * MdiClient.cs: Add 2.0 ScaleControl.
8374         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
8375         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
8376
8377 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
8378
8379         * Form.cs: Implement some scaling methods, stub some RTL methods,
8380         corcompare work.
8381
8382 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
8383
8384         * Control.cs: corcompare work.
8385         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
8386
8387 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
8388
8389         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
8390         ControlPaint 2.0 stuffs.
8391
8392 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8393
8394         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
8395
8396 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8397
8398         * UpDownBase.cs: Add 2.0 stuffs.
8399
8400 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8401
8402         * NumericUpDown.cs: Add 2.0 stuffs.
8403
8404 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8405
8406         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
8407
8408 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8409
8410         * ErrorProvider.cs: Implement 2.0 stuffs.
8411
8412 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8413
8414         * DomainUpDown.cs: Implement 2.0 stuffs.
8415
8416 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8417
8418         * CheckedListBox.cs: Fix RefreshItems signature.
8419
8420 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
8421
8422         * PictureBox.cs: Implement 2.0 stuffs.
8423
8424 2007-06-12  Andreia Gaita  <avidigal@novell.com>
8425         
8426         * TabControl.cs: Check if there are tabpages before checking
8427         the selected index - fix #81802 (font changes raise a ResizeTabs
8428         call on controls.add, which blew up nicely with no tabpages)
8429
8430 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8431
8432         * ListView.cs:
8433         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
8434
8435 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8436
8437         * ListView.cs:
8438         * ListViewItem.cs: In VirtualMode the selection information
8439         resides in the ListView, rather than in the Items. Also, throw
8440         InvalidOperationExceptions when VirtualMode is being used and
8441         CheckedItemCollection is accessed.
8442
8443 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
8444
8445         * ComboBox.cs: Add ScaleControl.
8446
8447 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
8448
8449         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
8450
8451 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
8452
8453         * GroupBox.cs: Add 2.0 stuffs.
8454
8455 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
8456
8457         * Panel.cs: Add autosize properties/event.
8458
8459 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
8460
8461         * Control.cs:
8462         - When we remove a control, remove it from the collection before performing the layout.
8463         - Setup an internal property for explicit_bounds.
8464         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
8465         - Perform a layout when we set a new AutoSizeMode.
8466
8467 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
8468
8469         * ScrollableControl.cs: Add 2.0 stuffs.
8470
8471 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
8472
8473         * ScrollBar.cs: Add 2.0 stuffs.
8474
8475 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
8476
8477         * Splitter.cs: Add 2.0 stuffs.
8478
8479 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
8480
8481         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
8482         to have BindingContext simply use base implementation.
8483
8484 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
8485
8486         * ColumnHeader.cs: corcompare fix.
8487
8488 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
8489
8490         * Button.cs: corcompare fixes.
8491         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
8492
8493 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
8494
8495         * Button.cs: Override GetPreferredSizeCore.
8496         * ButtonBase.cs: PerformLayout after changing properties that can affect
8497         AutoSize.  Simplify some mouse/keyboard code.
8498         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
8499         * MouseEventArgs.cs: Make Location internal for 1.1.
8500         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
8501         * Theme.cs: Add CalculateButtonAutoSize.
8502         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
8503
8504 2007-06-05  Miguel de Icaza  <miguel@novell.com>
8505
8506         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
8507
8508 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8509
8510         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
8511         since we can get different item instances every time we retrieve it.
8512
8513 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8514
8515         * ListView.cs: Work around for #81602, since an unkown an pretty
8516         infrequent condition appears only in some systems (old linux boxes, it
8517         seems).
8518
8519 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
8520
8521         * Button.cs: Completely reformat and a little refactor to bring
8522         this closer to Mono circa 2007.
8523
8524 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
8525
8526         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
8527         to be ButtonBase.Invalidate.
8528
8529 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
8530
8531         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
8532
8533 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
8534
8535         * ButtonBase.cs: Completely reformat and a little refactor to bring
8536         this closer to Mono circa 2007.
8537
8538 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
8539
8540         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
8541         values for autosize. Fixes #80137.
8542
8543 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
8544
8545         * Control.cs: Don't perform layout when AutoSize changes.
8546         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
8547         directly when autosizing, use SetBounds with BoundsSpecified.None.
8548         Fixes unit tests my last commit broke.
8549
8550 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
8551
8552         * Control.cs: Perform layout when AutoSize changes.
8553         * Form.cs: Implement AutoSizing.
8554
8555 2007-06-01  Chris Toshok  <toshok@ximian.com>
8556
8557         * DataGrid.cs: remove the XXX'ed check at the top of
8558         ProcessGridKey.  fixes #80464.
8559
8560 2007-06-01  Chris Toshok  <toshok@ximian.com>
8561
8562         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
8563         adding idempotent (add/remove in Edit()), and also make sure we
8564         don't add it until after we set the text, so it's not tripped in
8565         Edit().  Fixes unit test regression.
8566
8567 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
8568
8569         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
8570         change is user explicit, not when the layout engine moves stuff.  Fixes
8571         anchoring to bottom and right.  [Fixes bug #81790]
8572
8573 2007-06-01  Andreia Gaita  <avidigal@novell.com>
8574
8575         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
8576
8577 2007-06-01  Andreia Gaita  <avidigal@novell.com>
8578
8579         * ContainerControl.cs: 
8580         Fire enter event for common ancestor if it is not a ContainerControl.
8581         Send focus to the active_control and not the 'value', the active 
8582         control might have been changed in one of the events fired.     
8583         Definitely fixes #80159.
8584
8585 2007-06-01  Andreia Gaita  <avidigal@novell.com>
8586
8587         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
8588
8589 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8590
8591         * PropertyGrid.cs: Anchor the help description to the bottom of the
8592           help panel and refactor SelectGridItem into a
8593           SelectGridItemInternal that can be set to null (and update it to
8594           clear the help texts when it is set to null). Set root item to null
8595           when there's no SelectedObject. Fixes #80438.
8596         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
8597           when we're recalculating after a resize (only).
8598
8599 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8600
8601         * ListView.cs: Implement 2.0 RedrawItems method.
8602
8603 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8604
8605         * ListControl.cs: Disconnect PositionChanged and ItemChanged
8606         handlers from previous data manager when DataSource is set to
8607         null. Fixes #81771.
8608
8609 2007-05-31  Jackson Harper  <jackson@ximian.com>
8610
8611         * TextBoxBase.cs: These seem to be the correct values.
8612
8613 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
8614
8615         * FileDialog.cs: When close dialog with ok set filterindex using combobox
8616         value. Fixes #81784.
8617
8618 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
8619
8620         * Control.cs: Implement 2.0 scaling methods.
8621
8622 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8623
8624         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
8625           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
8626           corcompare issues.
8627
8628 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8629
8630         * ProgressBar.cs: Implemented missing 2.0 members.
8631
8632 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8633
8634         * Control.cs: Corcompare issues.
8635         * MessageBox.cs: Implemented missing 2.0 functions.
8636
8637 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8638
8639         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
8640           Implemented more 2.0 members.
8641
8642 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8643
8644         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
8645           null (strange, but it seems to happen when running unit tests).
8646
8647 2007-05-30  Andreia Gaita  <avidigal@novell.com>
8648
8649         * ContainerControl.cs: Set active_control even earlier, before 
8650         firing any events, and undo it if validation returns false.
8651
8652 2007-05-30  Andreia Gaita  <avidigal@novell.com>
8653
8654         * ContainerControl.cs: Raise Validation and Enter/Leave events
8655         even if there is no Form and set active_control earlier, just
8656         before firing Enter events (toshok's patches). Fixes #80647.
8657
8658 2007-05-30  Jackson Harper  <jackson@ximian.com>
8659
8660         * TextControl.cs: Redid the pageup/pagedown a little to simplify
8661         things and fix bug #81311.
8662
8663 2007-05-30  Jackson Harper  <jackson@ximian.com>
8664
8665         * X11Dnd.cs: Now that we have our own event loop, we need to
8666         cancel when we get a mouseup but it won't be accepted.
8667
8668 2007-05-30  Chris Toshok  <toshok@ximian.com>
8669
8670         * DataGrid.cs (set_CurrentCell): guard against negative
8671         column/row.
8672
8673         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
8674         array index syntax instead of looping over the property names.
8675
8676         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
8677         and set IsInEditOrNavigateMode to false there.
8678
8679 2007-05-30  Jackson Harper  <jackson@ximian.com>
8680
8681         * TreeView.cs: Make sure we don't get a bad visible order when
8682         setting to the top node.  Fixes some misc crashing in
8683         ControlInspector.
8684
8685 2007-05-30  Andreia Gaita  <avidigal@novell.com>
8686
8687         * UserControl.cs: Add 2.0 AutoSizeMode
8688
8689 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
8690
8691         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
8692
8693 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
8694
8695         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
8696         lines. Fixes #80285. 
8697
8698 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
8699
8700         * DataGridColumnStyle.cs: Add char trimming column header text format. 
8701
8702 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
8703
8704         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
8705         Fixes #80147.
8706
8707 2007-05-29  Jackson Harper  <jackson@ximian.com>
8708
8709         * TreeNode.cs: Fix off by one on calculating whether or not a node
8710         is visible.
8711
8712 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
8713
8714         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
8715         * ScrollableControl.cs: Force an UpdateDistances when we move the
8716         scrollbars.
8717         [Fixes bug #80605]
8718
8719 2007-05-29  Andreia Gaita  <avidigal@novell.com>
8720
8721         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
8722         update the page setup screen.
8723
8724 2007-05-29  Andreia Gaita  <avidigal@novell.com>
8725
8726         * PageSetupDialog.cs: Fix landscape mode.
8727
8728 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8729
8730         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
8731         IconSizeHorizontalSpacing.
8732
8733 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8734
8735         * ListView.cs: The declaration of prev_tooltip_item should be inside
8736         a NET_2_0 conditional (avoid a warning).
8737
8738 2007-05-28  Andreia Gaita  <avidigal@novell.com>
8739
8740         * PageSetupDialog.cs: Implement PrintPreview control to display
8741         the preview thumbnail. Change unit conversion to use 
8742         PrinterUnitConvert methods.
8743         
8744         Note: there is a huge bug in ms.net where the default margins are 
8745         interpreted as centimeters (?), when in fact they are set in inches. When 
8746         loading the page setup dialog initially (ms.net), the default margins 
8747         are set to 1 inch, and the dialog shows them with value 10, when in fact 
8748         it should be 25 (properly converted). Our dialog doesn't have this bug.
8749         
8750         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
8751         RectangleF.
8752         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
8753
8754 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8755
8756         * ListView.cs:
8757         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
8758         items.
8759
8760 2007-05-28  Andreia Gaita  <avidigal@novell.com>
8761
8762         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
8763         an IntPtr on csc (it builds fine on mcs, could it be a compiler
8764         bug?), convert the ptr to Int32 first.
8765
8766 2007-05-28  Jackson Harper  <jackson@ximian.com>
8767
8768         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
8769         recieved, we will exit the dnd tracking loop.
8770
8771 2007-05-28  Jackson Harper  <jackson@ximian.com>
8772
8773         * X11Dnd.cs: Keep tracking until the xdnd finished event is
8774         recieved. TODO: I should probably stick a timer on the dropped
8775         event, and finish the drag if the XDND Finished event never shows
8776         (because some apps don't seem to send it).
8777
8778 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
8779
8780         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
8781         #81733.
8782
8783 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8784
8785         * MonthCalendar.cs: Only mark the keypresses we actually handle as
8786           handled.
8787
8788 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8789
8790         * MonthCalendar.cs: Set the size after initializing all the relevant
8791           variables. Fixes #81742.
8792
8793 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8794
8795         * KeyEventArgs.cs: Fix typo.
8796
8797 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
8798
8799         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
8800         to match MS. Fixed MinDate to only accept value less than or equal
8801         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
8802         Removed TODO's that are now verified by unit tests.
8803
8804 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
8805
8806         * TreeNodeCollection.cs: Minor corrections to exceptions to match
8807         MS.
8808
8809 2007-05-25  Jackson Harper  <jackson@ximian.com>
8810
8811         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
8812         it's own message loop.
8813         * XplatUIX11.cs: Remove some of the dnd hooks
8814
8815 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
8816
8817         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
8818         instead of MinimizedWindowSize.
8819
8820 2007-05-25  Jackson Harper  <jackson@ximian.com>
8821
8822         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
8823
8824 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8825
8826         * KeyEventArgs.cs: Added SuppressKeyPress.
8827         * Control.cs: Added support for SuppressKeyPress.
8828
8829 2007-05-24  Andreia Gaita  <avidigal@novell.com>
8830
8831         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
8832         problems with PieChart. suppress_validation should not be a counter,
8833         if there are several BeginInit calls, the first EndInit will 
8834         activate validation. Fix exceptions thrown by set_Value.
8835         * UpDownBase.cs: ValidateText only if it's the user editing it.
8836
8837 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8838
8839         * ListControl.cs: FilterItemOnProperty should return the filtered
8840         item proeprty even if DataSource is null. The same applies for
8841         GetItemText. Fixes #80427.
8842
8843 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
8844
8845         * Control.cs: If a control doesn't have a parent when it's Dock is
8846         set, but it has children, it needs to do a layout.  Fixes some nested
8847         controls issues.  [Fixes bug #81199]
8848
8849 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8850
8851         * ComboBox.cs: If there are few items in the drop down list, make it
8852           the exact size the items need, no bigger. Fixes #81612.
8853
8854 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
8855
8856         * Application.cs: When we have captured the keyboard for a menu,
8857         check for mouse down events in case we need to close the menu.
8858         * Control.cs, Form.cs: Remove mouse down checks for menus.
8859
8860 2007-05-24  Jackson Harper  <jackson@ximian.com>
8861
8862         * TextControl.cs: Handle tabs in non multiline mode a little
8863         differently.
8864
8865 2007-05-24  Jackson Harper  <jackson@ximian.com>
8866
8867         * TextControl.cs: We need to manually break apart tabbed text and
8868         move the tabs, since the system.drawing tabbing mechanism relies
8869         on tab stops.
8870         * TextBoxBase.cs: Move the caret properly when the user enters a
8871         tab.
8872
8873 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
8874
8875         * ContainerControl.cs: Don't check CanSelect before calling
8876         ProcessMnemonic.
8877         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
8878         release a KeyboardActive on click if it's not ours.
8879
8880 2007-05-23  Andreia Gaita  <avidigal@novell.com>
8881
8882         * ColumnHeader.cs: Add TypeConverter
8883
8884 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8885
8886         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
8887
8888 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8889
8890         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
8891
8892 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8893
8894         * LinkLabel.cs: Implement public Padding property.
8895
8896 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8897
8898         * LinkLabel.cs: Implement public FlatStyle.
8899
8900 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
8901
8902         * Control.cs: Apply patch from George to call parent.PerformLayout
8903         when Visible is changed.  [Fixes bugs #81118, 81718]
8904
8905 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8906
8907         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
8908
8909 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8910
8911         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
8912
8913 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
8914
8915         * ContextMenu.cs: Implement Collapse.
8916
8917 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
8918
8919         * ToolBarButton.cs: Implement Name.
8920
8921 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
8922
8923         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
8924         use current_item, it prevents some NRE. Fixes #81675.  
8925
8926 2007-05-22  Andreia Gaita  <avidigal@novell.com>
8927
8928         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
8929         without updating the text.
8930
8931 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
8932
8933         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
8934         without calling DeleteObject.  [Should fix bug #81709]
8935
8936 2007-05-22  Jackson Harper  <jackson@ximian.com>
8937
8938         * RichTextBox.cs: Set the line endings correctly, when flushing
8939         RTF text.
8940
8941 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
8942
8943         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
8944          {Width=0,Height=0}.
8945
8946 2007-05-22  Jackson Harper  <jackson@ximian.com>
8947
8948         * TreeView.cs: Setting top with a null node should set to the very
8949         top.
8950
8951 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8952
8953         * Form.cs: ShowDialog: destroy the handle when message loop is
8954           finished, matches MS behaviour. Refactor parts of WmClose into
8955           RaiseCloseEvents, that only raises events if they haven't already
8956           been raised. Fixes #81688 and #81521.
8957         * Application.cs: Don't call close on the form when exiting a modal
8958           loop, it will raise all the (Form)Closed/Closing events again if
8959           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
8960           which doesn'r raise any events it they have been raised before.
8961
8962 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
8963
8964         * Control.cs: Add OnPrint.
8965         * ToolStrip.cs: Add GetChildAtPoint.
8966         * ToolStripContainer.cs: Add OnRightToLeftChanged.
8967         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
8968
8969 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
8970
8971         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
8972
8973 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8974
8975         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
8976           isn't visible anymore. Fixes #81651.
8977
8978 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8979
8980         * Control.cs: WmShowWindow: Update children's z-order after setting
8981           their parent. SetParent may show the window, thereby corrupting
8982           z-order, since the window will be shown on top.
8983         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
8984           multiple (and redundant) WM_SHOWWINDOW messages.
8985         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
8986           event has already been raised.
8987         * Form.cs: Change is_changing_visible_state to a counter, since
8988           SetVisibleCore can be called recursively. CreateHandle: when
8989           creating mdi children, send (De)Activated events.
8990         * MdiClient.cs: Update use of is_changing_visible_state.
8991         * Application.cs: OnThreadException: Surround exception handling with
8992           try/finally to ensure we always reset the error-handling state
8993           before leaving.
8994
8995 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8996
8997         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
8998           (#81704).
8999
9000 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9001
9002         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
9003         SmallIcon views, now that we have a standarized horizontal spacing.
9004
9005         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
9006         4, just like the other views (Match .Net).
9007
9008 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
9009
9010         * Control.cs: Delay calculating anchor distances until we actually layout.
9011         Always query the WM for the actual size and location it put us at instead of
9012         only when we send negative values.
9013         [Fixes bugs #81694, 81695]
9014
9015 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9016
9017         * Application.cs: Avoid a possible stack overflow when trying to exit
9018           the application.
9019
9020 2007-05-19  Marek Safar  <marek.safar@gmail.com>
9021
9022         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
9023         enum value.
9024
9025 2007-05-19  Andreia Gaita  <avidigal@novell.com>
9026
9027         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
9028         * NumericUpDownAcceleration.cs, 
9029           NumericUpDownAccelerationCollection.cs: Added 2.0
9030           implementation.
9031
9032 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
9033
9034         * RichTextBox.cs: Recalculate the document after the ScrollBars
9035         property is changed. Fixes bug #81681.
9036
9037 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
9038
9039         * DataObject.cs: Implement 2.0 methods.
9040
9041 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9042
9043         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
9044         in the center of the checkbox, not in the left-top corner. 
9045         Fixes #80037.
9046
9047 2007-05-18  Jackson Harper  <jackson@ximian.com>
9048
9049         * RichTextBox.cs: Recalculate the document after the scrollbars
9050         property is changed.
9051         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
9052         81486.
9053
9054 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9055
9056         * CreateParams.cs: Make HasWindowManager marginally faster.
9057         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
9058           into Hwnd so that other drivers can use it as well.
9059         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
9060           the default location from Hwnd. Fixes MDI client windows always
9061           showing up at (0,0) in Windows (Win32 won't set the default
9062           location since the window styles aren't correct).
9063
9064 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
9065
9066         * TreeView.cs: Modified DoubleBuffered to just use the base
9067         implementation.
9068
9069 2007-05-18  Jackson Harper  <jackson@ximian.com>
9070
9071         * TreeView.cs: Set the top node to the last child node when
9072         expanding all
9073         - When we get focus, if there is no selected node, use the top
9074         node.
9075
9076 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
9077
9078         * KeysConverter.cs: Add CanConvertTo.
9079         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
9080         * LinkConverter.cs: Added.
9081
9082 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
9083
9084         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
9085         it prevents error when file dont have write access. Fixes #81669 and #81667.  
9086
9087 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
9088
9089         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
9090         button text. Fixes #79640.  
9091
9092 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
9093
9094         * Control.cs: According to MSDN controls created in the designer theres 
9095         keyboard accelerators visible by default. So included check for design
9096         in ShowKeyboardCuesInternal.  
9097
9098 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
9099
9100         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
9101         text. Fixes #81621.  
9102
9103 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
9104
9105         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
9106         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
9107
9108 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
9109
9110         * Control.cs: Finish implementation of UI State using WmChangeUIState
9111         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
9112         in some controls to check for show_keyboard_cues to draw accell keys "_".  
9113
9114 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9115
9116         * ListBox.cs: When calculating the horizontal scrollbar
9117         in single column mode, don't use values less than 0 for
9118         Maximum. Fixes #81474.
9119
9120 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9121
9122         * ListBox.cs: Throw the some missing exceptions in
9123         ListBox.ObjectCollection methods.
9124
9125 2007-05-17  Jackson Harper  <jackson@ximian.com>
9126
9127         * TextBoxBase.cs: Recalculate the document when the word wrap
9128         value has changed. This fixes 81488.
9129
9130 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
9131
9132         * Clipboard.cs: Implement missing GetText overload.
9133
9134 2007-05-17  Chris Toshok  <toshok@ximian.com>
9135
9136         * Control.cs (CheckDataBindings): remove the binding_context arg
9137         to binding.Check.
9138
9139         * CurrencyManager.cs (OnItemChanged): fix this now that
9140         BindingManagerBase is fixed. also remove the comment telling where
9141         the fix should go.  We set transfering_data to true/false around
9142         the call to PushData to keep UpdateIsBinding from being called.
9143         (ListChangedHandler): remove the extra OnMetaDataChanged call for
9144         PropertyDescriptorAdded in the 1.1 case.  The extra call is
9145         actually generated by System.Data generating 2 metadata changed
9146         events of its own per column add.  The fix should go there.  Add a
9147         comment to that affect in our test's Assert.Ignore.
9148
9149         * BindingManagerBase.cs: Rework PullData and PushData slightly.
9150         we keep a boolean flag (transfering_data) that keeps us from
9151         calling UpdateIsBinding multiple times if we re-enter either of
9152         them.
9153
9154         * ControlBindingsCollection.cs (AddCore): remove the
9155         binding_context arg to binding.Check.
9156
9157         * Binding.cs (IsBinding): don't check if we're binding here, just
9158         return our cached value.  we update it in UpdateIsBinding.
9159         (Check): don't take the binding_context arg, we'll just use our
9160         control's.  Also, for some reason MS doesn't use the data member
9161         field when getting the bindingmanager for this binding.  it just
9162         uses the datasource.  Make this method callable multiple times,
9163         and only do the is_null_desc stuff if manager.Position != -1 (so
9164         we don't get an exception accessing manager.Current).
9165         (UpdateIsBinding): move the code from IsBinding here.
9166         (PositionChangedHandler): call Check here to we can initialize
9167         things that require a non- -1 position.
9168
9169 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
9170
9171         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
9172         control.
9173
9174 2007-05-17  Andreia Gaita  <avidigal@novell.com>
9175
9176         * TabControl.cs: Add 2.0 methods and events, including
9177         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
9178         * TabPage.cs: Add 2.0 methods
9179
9180 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
9181
9182         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
9183         keyboard_cues is properly handled by message method.  
9184
9185 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
9186
9187         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
9188
9189 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
9190
9191         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
9192
9193 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
9194
9195         * Control.cs: 
9196         - WmUpdateUIState added to handle state changes, it make call to
9197         OnChangeUICues event.
9198         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
9199         SystemInformation.
9200
9201 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
9202
9203         * ImageKeyConverter.cs: Added.
9204         * TreeViewImageKeyConverter.cs: Added.
9205
9206 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9207         
9208         * ToolTips.cs: Update Text if SetToolTip is called for a control
9209         already showing the tooltip, as well as restarting its timer; show
9210         tooltip if we are inside the control bounds by the time of calling
9211         SetToolTip. Inside ShowTooltip remove the check to not show the 
9212         tooltip again for the active control (it is allowed by .Net to 
9213         show the tooltip on the same control multiple times).
9214
9215 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9216
9217         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
9218
9219 2007-05-16  Andreia Gaita <avidigal@novell.com> 
9220
9221         * ContainerControl.cs: only process tab key if there are no 
9222         modifier keys present, otherwise the control does the 
9223         tab processing, if it needs to. Fixes #81622
9224         * TabControl.cs: Fixes calculation for which tab to select on
9225         shift+ctrl+tab.
9226
9227 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9228
9229         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
9230
9231 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
9232
9233         * Control.cs: Make IsInputCharInternal to allow controls to
9234         override it and still match MS API.
9235         * TextBoxBase.cs: Override IsInputCharInternal and always
9236         return true.
9237         [Fixes bug #81616]
9238
9239 2007-05-15  Jackson Harper  <jackson@ximian.com>
9240
9241         * TextBox.cs: Disable some of the menu options when using a
9242         readonly textbox.
9243
9244 2007-05-15  Jackson Harper  <jackson@ximian.com>
9245
9246         * TextBox.cs:
9247         * TextBoxBase.cs:
9248         * RichTextBox.cs: Some new 2.0 methods
9249
9250 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
9251
9252         * FileDialog.cs: On 1.0 profile, do not support multidotted 
9253         extensions.
9254
9255 2007-05-14  Jackson Harper  <jackson@ximian.com>
9256
9257         * TextBoxBase.cs: Implement some of the new 2.0 methods.
9258         * RichTextBox.cs: We need to override these methods on 2.0.
9259         * MaskedTextBox.cs: These are implemented now
9260         * TextControl.cs: This was off by one.
9261
9262 2007-05-14  Jackson Harper  <jackson@ximian.com>
9263
9264         * TextControl.cs: Because the line endings are including in the
9265         text, we don't need to add them in anymore.
9266
9267 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
9268
9269         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
9270         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
9271
9272 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
9273
9274         * ToolBar.cs: Adjust size to default size when button theres no text and
9275         image, it fixes remaining issues from #81524.
9276
9277 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
9278
9279         * ToolBar.cs: 
9280         - When not flat call redraw to recalculate sizes on creare handle to match
9281         win32 behavior.
9282         - Revert 77220 because it causes some regressions in toobar
9283         button.
9284
9285 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9286
9287         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
9288           now actually enters a usable state.
9289
9290 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
9291
9292         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
9293         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
9294         3 buttons.
9295
9296 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
9297
9298         * ToolBar.cs: Save default_size on create handle to use later for buttons
9299         without text, needed to mimic win32 behavior.
9300
9301 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
9302
9303         * ToolBar.cs: Fix button layour to best fit width or height according to
9304         vertical or not. Fixes #81524.
9305
9306 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
9307
9308         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
9309         toolbar size info because different styles theres different sizes.
9310         Fixes #81522.
9311
9312 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9313
9314         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
9315         if we are using checkboxes, checked is true, and we have less
9316         than two images in StateImageList; for the 1.1 in the same scenario
9317         draw the first image if we have at least one image in StateImageList.
9318         Fixes part of #81191.
9319
9320 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
9321
9322         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
9323         the owner's Items collection on merge.
9324
9325 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
9326
9327         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
9328         * ToolStripItemCollection.cs: Lots of fixes to when events get called
9329         and parent/owner gets changed based on gert's unit tests.
9330
9331 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9332
9333         * MaskedTextBox.cs: Started implementing parts of it.
9334
9335 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9336
9337         * ListView.cs: When clicking the checkbox on the items
9338         take into account the double clicks even if we have only
9339         one image in StateImageList (only for 1.0/1.1). Also 
9340         generate an extra change of checked state when we receive
9341         the second click on checkbox (match .Net behaviour). 
9342         Fixes part of #81191.
9343
9344 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
9345
9346         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
9347
9348 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
9349
9350         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
9351         even if OnLoad is overriden and base.OnLoad is not called.
9352         [Fixes bug #81582]
9353
9354 2007-05-10  Andreia Gaita  <avidigal@novell.com>
9355
9356         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
9357         shame. (I blame my ever-persisting and annoying cold)
9358
9359 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
9360
9361         * ListView.cs: Don't eat navigation keys.  Let them flow through to
9362         KeyDown/KeyPress routines.  [Fixes bug #81569]
9363
9364 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
9365
9366         * ListView.cs: When handling keys for selecting the item based off
9367         keyboard input, do not consider keys pressed with Alt or Control.  Also,
9368         correctly handle keys when the Shift key is down. [Fixes bug #81578]
9369
9370 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
9371
9372         * Control.cs: When using UseWaitCursor, we have to store the requested
9373         Cursor to use when UseWaitCursor is turned off.
9374
9375 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
9376
9377         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
9378         to false.
9379         * Application.cs: Use PreProcessControlMessage instead of
9380         PreProcessMessage.
9381         * PreProcessControlMessage.cs: Make internal for 1.1.
9382
9383 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9384
9385         * Control.cs: Add InternalContains focus property, which hast the same
9386         functionality of ContainsFocus, but also including implicit controls.
9387         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
9388         since we need to know if the focus is contained in our implicit
9389         ItemControl when calculating Layout. Fixes part of #80888.
9390
9391 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
9392
9393         * ToolTip.cs: Remove center form string alignment as it must be align to
9394         left.
9395
9396 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
9397
9398         * ToolStripItemCollection.cs: Set the new item's parent and owner
9399         in Insert like we do in Add.  [Fixes bug #81568]
9400
9401 2007-05-08  Jackson Harper  <jackson@ximian.com>
9402
9403         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
9404         - Off by one error in SetTop
9405         - Disable DoubeBuffering
9406         
9407 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9408
9409         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
9410           control as much as necessary in order to make it entirely visible,
9411           instead of centering the control in the container (matches MS
9412           behaviour). CalculateCanvasSize: we need to take the current scroll
9413           position into account when calculating the maximum canvas,
9414           otherwise the following scenario will fail: resize so that the
9415           scrollbars appear, use the scrollbars to scroll, resize again
9416           smaller, and now the canvas size is too small. Recalculate: when
9417           showing scrollbars make sure they start off at 0, and try to scroll
9418           the active control into view. Fixes #79540. HandleScrollBar: don't
9419           scroll anywhere if the scrollbar isn't visible.
9420
9421 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9422
9423         * ListView.cs: When focus changed, call Layout/Invalidate
9424         in the focused item to update the selected state (should show
9425         entire label when ListView is focused, and a part of it if is not).
9426         * ListViewItem.cs: When doing layout for LargeIcon, take into account
9427         for displaying the entire label not only the Focused state of the
9428         item, but also the Focused state of the ListView (match .Net
9429         behaviour).
9430
9431 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
9432
9433         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
9434         Implement UseWaitCursor. 
9435
9436 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
9437         Applying contributed patch from Sergey Volk.
9438
9439         * Clipboard.cs: Implement SetDataObject retry logic and new overload
9440         of SetDataObject.
9441         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
9442
9443 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
9444
9445         * Control.cs: Implement DrawToBitmap.
9446
9447 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
9448         Applying contributed patch from Stefan Noack.
9449         
9450         * Control.cs: Add [Get|Set]AutoSizeMode.
9451
9452 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
9453
9454         * MdiClient.cs: Unmerge menus when the last child is closed.
9455
9456 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
9457
9458         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
9459         * ToolStripManager.cs: Call Merge on DropDowns.
9460         [Fixes bug #81477]
9461
9462 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9463
9464         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
9465           uints.
9466         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
9467           visibility. We can't create forms visible, since we have to set the
9468           owner before making the form visible (otherwise Win32 will do
9469           strange things with task bar icons). The problem is that we set the
9470           internal is_visible to true before creating the control, so
9471           is_changing_visible_state is the only way of determining if we're
9472           in the process of creating the form due to setting Visible=true -
9473           this works because SetVisibleCore explicitly makes the form
9474           visibile afterwards anyways. Fixes #80775.
9475
9476 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9477
9478         * ThemeWin32Classic.cs: When drawing ListViewItems,
9479         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
9480         or LargeIcon _and_ item is not focused (match .Net behaviour).
9481
9482 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
9483
9484         * Control.cs, Form.cs: Fix some obsolete method warnings.
9485
9486 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
9487
9488         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
9489         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
9490
9491 2007-05-04  Andreia Gaita  <avidigal@novell.com>
9492
9493         * ContainerControl.cs: Fix active_control attribution when going
9494         up the parent chain so that the first parent container gets the control
9495         and the rest of the parent containers get the child containers (skips
9496         non-containers). Fixes #80729
9497
9498 2007-05-04  Randolph Chung  <tausq@debian.org>
9499
9500         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
9501         [Fixes bug #81499]
9502
9503 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9504
9505         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
9506           takes a size parameter, since the CreateParam's size isn't true for
9507           minimized forms. Fixes #81518,
9508
9509 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9510
9511         * Form.cs: Add OnDeactivateInternal.
9512         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
9513
9514 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9515
9516         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
9517           accessing the parent. Fixes #81508.
9518
9519 2007-05-03  Chris Toshok  <toshok@ximian.com>
9520
9521         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
9522         2.0 block, pass listposition + 1 to ChangeRecordState when a row
9523         was added before the current listposition.  Fixes the
9524         TestInsertRowBeforeCurrent unit test.
9525
9526 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
9527
9528         * Application.cs: Add RaiseIdle.
9529         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
9530         XplatUIX11.cs: Implement RaiseIdle.
9531
9532 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
9533         corcompare work: N - Z
9534         * NotifyIcon.cs
9535         * ProgressBar.cs
9536         * RadionButton.cs
9537         * ScrollableControl.cs
9538         * SplitContainer.cs
9539         * SplitterPanel.cs
9540         * StatusBar.cs
9541         * SystemInformation.cs
9542         * TabControl.cs
9543         * TableLayoutControlCollection.cs
9544         * TableLayoutPanel.cs
9545         * TabPage.cs
9546         * ToolBar.cs
9547         * ToolBarButton.cs
9548         * ToolStrip.cs
9549         * ToolStripComboBox.cs
9550         * ToolStripContainer.cs
9551         * ToolStripContentPanel.cs
9552         * ToolStripDropDown.cs
9553         * ToolStripDropDownItem.cs
9554         * ToolStripDropDownMenu.cs
9555         * ToolStripItem.cs
9556         * ToolStripItemCollection.cs
9557         * ToolStripMenuItem.cs
9558         * ToolStripPanel.cs
9559         * ToolStripSplitButton.cs
9560         * ToolTip.cs
9561         * TreeNode.cs
9562         * TreeNodeCollection.cs
9563         * TreeNodeMouseHoverEventArgs.cs
9564         * TreeView.cs
9565
9566 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
9567
9568         * ContextMenu.cs: Add public method Show with alignment property to 2.0
9569         stuff. Thanks aatdark for the patch. 
9570
9571 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
9572
9573         * GridItem.cs: Implement 2.0 Tag property.
9574
9575 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
9576
9577         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
9578         count instead of Nodes.Length.  [Fixes bug #81448]
9579
9580 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
9581
9582         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
9583         [Fixes bug #81506]
9584
9585 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
9586         corcompare work: A - M
9587         * BindingNavigator.cs
9588         * Button.cs
9589         * ButtonBase.cs
9590         * CheckBox.cs
9591         * Control.cs
9592         * FlowLayoutPanel.cs
9593         * Form.cs
9594         * Label.cs
9595         * LinkLabel.cs
9596         * ListView.cs
9597
9598 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
9599
9600         * Application.cs: Give toolstrips a chance to process mnemonics.
9601         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
9602         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
9603         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
9604
9605 2007-05-01  Jackson Harper  <jackson@ximian.com>
9606
9607         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
9608         wider area too.
9609         - Don't set the BoundsSpecified
9610
9611 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
9612
9613         * Application.cs: When using the toolstrip shortcut mechanism, allow the
9614         message to pass through to a regular control if it hosted by a toolstrip.
9615         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
9616         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
9617
9618 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
9619
9620         * TextRenderer.cs: Use the flags argument when using the MeasureString
9621         fallback algorithm.
9622
9623 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
9624
9625         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
9626         the MDI menu item.  [Fixes bug #81483]
9627
9628 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
9629
9630         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
9631         string. When setting Name to null, use zero-length string instead.
9632
9633 2007-04-29  Andreia Gaita  <avidigal@novell.com>
9634
9635         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
9636         DeselectTab). Implement missing 2.0 TabPageCollection methods
9637         (Add, ContainsKey, RemoveByKey, IndexOfKey)
9638
9639 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
9640
9641         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
9642
9643 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
9644
9645         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
9646         Fixes bug #81479. Include details of exception when LoadFile fails.
9647
9648 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
9649
9650         * DrawListViewSubItemEventArgs.cs: Added missing setter
9651
9652 2007-04-27  Andreia Gaita  <avidigal@novell.com>
9653
9654         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
9655         Hide methods (not complete). Implement missing 2.0 OnPopup event.
9656
9657 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9658
9659         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
9660         removed in ly last commit (it was breaking the Label edit feature).
9661
9662         * ThemeWin32Classic.cs: When drawing a ListViewItem use
9663         StringAlignment.Near for LineAlignment (match .Net).
9664
9665 2007-04-27  Andreia Gaita  <avidigal@novell.com>
9666
9667         * TabControl.cs: Change SetTab so it adds the tabpage to the list
9668         of controls if it isn't already there - was blowing up when doing
9669         tabcontrol.TabPages[i]=new TabPage(). 
9670         SetTab now does a replace by removing the page at the index. 
9671         Add a new InsertTab method that inserts a page in a given index 
9672         instead of replacing. 
9673         Implements TabPageCollection.Insert(int, TabPage).
9674
9675 2007-04-27  Chris Toshok  <toshok@ximian.com>
9676
9677         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
9678         internal handler that can be invoked from our subclasses.)  Also,
9679         add a comment to PushData about how we need to fix it.
9680
9681         * CurrencyManager.cs: tons of changes here.  trying to get things
9682         matching the behavior of .net wrt event orders (ItemChanged,
9683         CurrentChanged, PositionChanged.)  I've implemented a private .net
9684         symbol (ChangeRecordState) that appears in stack traces because
9685         it's actually easier to do this than to effective inline all its
9686         various behaviors at every call site.
9687
9688         * RelatedPropertyManager.cs: guard against an exception here by
9689         not using parent.Current if the position is set to -1 (if the
9690         parent datasource is cleared, for instance).
9691
9692         * Binding.cs: don't parse data in PushData (this might be wrong,
9693         but it jives with MS's behavior.)  Also, don't call PushData when
9694         we get a CurrentChanged event.
9695
9696 2007-04-27  Andreia Gaita  <avidigal@novell.com>
9697
9698         * WebBrowser.cs,
9699           WebBrowserBase.cs,
9700           WebBrowserSiteBase.cs,
9701           HtmlDocument.cs: Added stubbed out classes, no real implementations 
9702           yet.
9703
9704 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
9705
9706         * MainMenu.cs: In draw method without parameters call draw method with 
9707         PaintEvent, another one (just rect) adjust rectangle and we dont need it
9708         as Rect property is already adjusted. Fixes #80694.
9709
9710 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
9711
9712         * Application.cs: Need to handle keyboard menu deselection here.
9713         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
9714         navigation, allowing keyboard to work on X11.
9715         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
9716
9717 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
9718
9719         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
9720         menu bar. It fixes some drawing issues in menu bar.
9721
9722 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
9723
9724         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
9725         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
9726         when <alt> key is pressed.
9727
9728 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
9729
9730         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
9731         example just set visible to false and make this prevent from other problems.
9732         In SystrayAdd always remove pending expose. Fixes #81072.
9733
9734 2007-04-26  Marek Safar  <marek.safar@gmail.com>
9735
9736         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
9737         value is set.
9738
9739 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
9740
9741         * ListView.cs: Added three missing 2.0 events and corresponding
9742         EventHandlers. Added the OwnerDraw property.
9743         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
9744
9745 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
9746
9747         * DrawListViewItemEventArgs.cs
9748         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
9749
9750 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
9751
9752         * TextControl.cs: Fixed typo in constructor
9753
9754 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
9755
9756         * Application.cs: Create a shortcut path so that currently selected
9757         MenuStrips can intercept keyboard events without having focus.
9758         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
9759         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
9760         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
9761         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
9762         generate WM_SYSCOMMAND message in X11 for other platforms.
9763         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
9764         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
9765         * ToolStripSplitButton.cs: Add DefaultItem property.
9766         
9767 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
9768
9769         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
9770         fixes some menu draw problem on Windows with border diferent from default
9771         it also fixes #81403.
9772
9773 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9774
9775         * Form.cs: Refactor WndProc into separate methods, just like Control is
9776           doing it.
9777
9778 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9779
9780         * Control.cs: set_Text: move the call to the driver into a seperate
9781           virtual method so that Form can override it.
9782         * MaskedTextBox.cs: Corcompare fixes.
9783         * Form.cs: Override UpdateWindowText and only update the styles if the
9784           form has been shown (fixes #81405).
9785
9786 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
9787
9788         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
9789         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
9790         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
9791         the form lost focus or another control was clicked.
9792
9793 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
9794
9795         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
9796         fixed.
9797
9798 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9799
9800         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
9801           DrawListViewItemEventHandler.cs,
9802           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
9803           Added.
9804         * X11Structs.cs: More ToString implementation.
9805
9806 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
9807
9808         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
9809         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
9810
9811 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9812
9813         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
9814           handle.
9815         * FormCollection.cs: Don't add a form if it's already in the
9816           collection.
9817         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
9818           according to behaviour and MSDN. The ownerWin32 is the active
9819           window at the moment when we call ShowDialog, not the context's
9820           main form (the context's main form may open another form that opens
9821           a form with ShowDialog, the win32 owner is the second form). Add
9822           and remove forms to the Application.OpenForms in other places to
9823           better match MS behaviour. Add an IsActive property that raises
9824           On(de)Activated only if the active state has changed (we were
9825           raising OnDeactivated before OnActivated while creating forms).
9826         * Application.cs: Refactor Enabling/Disabling of windows for modal
9827           dialog loops out to separate methods, and restore the thread
9828           context when we quit the method. Fixes #81407.
9829
9830 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9831
9832         * ListView.cs: In ItemControl.HandleClicks, also fire 
9833         2.0 MouseClick or MouseDoubleClick events on the parent,
9834         not only the Click/DoubleClick events.
9835
9836 2007-04-24  Andreia Gaita  <avidigal@novell.com>
9837
9838         * TableLayoutSettings.cs: 
9839         - Added a GetControls method and a support structure to help the 
9840         TypeConverter to enumerate the controls for     serialization. 
9841         - Added a new serialization constructor. 
9842         - Added a isSerialized flag initialized to true on the 
9843         serialization constructor so that the TableLayoutPanel.LayoutSettings 
9844         setter does not throw the designed NotSupportedOperation exception
9845         when the object is built through deserialization.
9846         - Implemented GetObjectData
9847         
9848         * TableLayoutPanel.cs: Added check on LayoutSettings.
9849
9850 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9851
9852         * ListView.cs: Report Click and DoubleClick events to the parent
9853         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
9854         from breaking the click count state when using dialog forms (Control
9855         reports the clicks in a similar fashion). In the previous behaviour
9856         the last WM_LBUTTONUP message in a  double click was sent to the
9857         ListView's form, instead of the ListView, which was breaking the click
9858         count for it. Fixes #80387.
9859
9860 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
9861
9862         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
9863
9864 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
9865
9866         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
9867         us from created dropdowns for menu items that do not have subitems.
9868         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
9869         Check HasDropDownItems before calling DropDown so a dropdown will not be
9870         created if it isn't needed.
9871
9872 2007-04-24  Jackson Harper  <jackson@ximian.com>
9873
9874         * TreeView.cs: Set the first node to the selected node when we get
9875         focus if there is no selected node.
9876
9877 2007-04-24  Andreia Gaita  <avidigal@novell.com>
9878
9879         * MimeIcon.cs: remove using blocks so that image streams are
9880         not disposed of. Fixes #80151
9881
9882 2007-04-24  Jackson Harper  <jackson@ximian.com>
9883
9884         * TextBoxBase.cs: Fixup the height of textboxes when the control
9885         is created.
9886
9887 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
9888
9889         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
9890         for each ToolStripItem when the parent's RightToLeftChanged is called.
9891
9892 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9893
9894         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
9895           Fixes #80163.
9896         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
9897           property, so that the setter can be overriden too.
9898         * TextBox.cs: Change GetContextMenuInternal() to use
9899           ContextMenuInternal.
9900
9901 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9902
9903         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
9904           #81406.
9905
9906 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9907
9908         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
9909           #81406.
9910
9911 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9912
9913         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
9914           avoid duplicate work. Mostily skeleton code, it's not working at
9915           all yet.
9916
9917 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
9918
9919         * NotifyIcon.cs : stub for MouseClick event
9920         * Application.cs: stub for SetUnhandledExceptionMode
9921
9922 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
9923
9924         * BindingNavigator.cs : Initial (partial) implementation
9925
9926 2007-04-23  Jackson Harper  <jackson@ximian.com>
9927
9928         * TreeView.cs: Do not create the treeview's handle when setting
9929         the scroll position.
9930         - ExpandAll needs to compute the scrollbars so it knows which
9931         position to set the bar too.
9932         * TreeNode.cs: 
9933         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
9934
9935 2007-04-23  Jackson Harper  <jackson@ximian.com>
9936
9937         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
9938         key. Fixes #81408.
9939
9940 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
9941
9942         * ToolStripItem.cs: Make GetImageSize internal.
9943         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
9944         need to draw an item.  Fixes a reported issue where images on menus
9945         that were not 16x16 were drawing incorrectly.
9946
9947 2007-04-21  Miguel de Icaza  <miguel@novell.com>
9948
9949         * Padding.cs: Use the converter, fixes the resgen2 issue with
9950         XMLNotePad. 
9951
9952 2007-04-21  Jackson Harper  <jackson@ximian.com>
9953
9954         * TreeView.cs: Dont try to unhighlight the selected node if there
9955         isn't a selected node.
9956
9957 2007-04-21  Jackson Harper  <jackson@ximian.com>
9958
9959         * UpDownBase.cs:
9960         * TextBoxBase.cs:
9961         * ListView.cs:
9962         * ListBox.cs:
9963         * TreeView.cs: Use the InternalBorderStyle property to set the
9964         initial border style, this forces the client rectangle to be sized
9965         correctly.
9966
9967 2007-04-20  Jackson Harper  <jackson@ximian.com>
9968
9969         * TreeView.cs: Simplify scrolling to the last node after expanding
9970         all.
9971         - Fix some off by ones with setting the bottom.
9972
9973 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
9974
9975         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
9976         that.  We were incorrectly doing it the other way around.  Also,
9977         update ClientSize if we change the BorderStyle before the control
9978         is created.
9979
9980 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
9981
9982         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
9983         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
9984         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
9985         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
9986         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
9987         Caption to CaptionHeight.
9988         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
9989         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
9990         and FixedFrameBorderSize to return value from current XplatUI driver.
9991         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
9992         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
9993         and FixedFrameBorderSize using win32 API. Renamed Caption to
9994         CaptionHeight.
9995         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
9996         * SystemInformation.cs: Fixed typo in BorderSize.
9997
9998 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
9999
10000         * XplatUI.cs: Added MenuAccessKeysUnderlined.
10001         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
10002         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
10003         returning false.
10004         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
10005         value from XplatUI driver.
10006         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
10007         SystemParametersInfo.
10008         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
10009         override.
10010         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
10011         returning false.
10012
10013 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10014
10015         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
10016
10017 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10018
10019         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
10020
10021 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
10022
10023         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
10024         MenuStrips that contain ToolStripSeparators.
10025
10026 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10027
10028         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
10029           DefineStdCursorBitmap.
10030         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
10031           has been created off a standard cursor. This is used to get a
10032           bitmap of the standard cursor when Draw or DrawStretched is called
10033           in order to draw the cursor.
10034         * X11Structs.cs: Added XcursorImage and XcursorImages.
10035         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
10036           DefineStdCursorBitmap.
10037         * Cursors.cs: Update all relevant creations of Cursor to use the new
10038           internal constructor.
10039
10040 2007-04-19  Jackson Harper  <jackson@ximian.com>
10041
10042         * TextBox.cs: Move the has_been_focused into the base control, so
10043         some of the text adding methods can manipulate it (probably time
10044         for a better name for this flag too).
10045         - Call a new version of selectall that doesn't scroll
10046         * TextBoxBase.cs: When we append text, if the document is empty,
10047         don't scroll.  If the document has text already, we scroll to the
10048         end of the appended text.
10049         - When the text is changed, we reset the has_been_focused, so the
10050         next time the control gets focused, all the text is selected.
10051
10052 2007-04-19  Jackson Harper  <jackson@ximian.com>
10053
10054         * TextControl.cs: Move the margins to the document, add a method
10055         so the margin sizes can be updated.
10056         * TextBoxBase.cs: When the border style is changed, update the
10057         border sizes.
10058
10059 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
10060
10061         * Control.cs: Respect DefaultPadding.
10062         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
10063         padding into account.
10064         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
10065
10066 2007-04-19  Jackson Harper  <jackson@ximian.com>
10067
10068         * TextControl.cs: Oops, we need to use the ClientRect not the
10069         bounds here.
10070
10071 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10072
10073         * ListView.cs: In ItemControl.ItemsMouseDown, take into
10074         account the double clicks when CheckBoxes are used and
10075         the pointer is inside the checkbox. Fixes part of #81191.
10076
10077 2007-04-18  Jackson Harper  <jackson@ximian.com>
10078
10079         * TextControl.cs: Pressing the end key shouldn't move the caret
10080         past the line ending.
10081         * TextBoxBase.cs: We can still delete if we are in the line
10082         ending and the combine will just kill the existing line ending.
10083
10084 2007-04-18  Jackson Harper  <jackson@ximian.com>
10085
10086         * TextControl.cs: We can't move lines, then invalidate their
10087         bounds, we need to get the old bounds and combine that with the
10088         new bounds.
10089         * TextBoxBase.cs: Before combining two lines for a delete, we need
10090         to invalidate the area of the old line, since that will be moved
10091         in the combine operation.
10092
10093 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
10094
10095         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
10096         with transparent background. Fixes #80482.
10097
10098 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
10099
10100         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
10101         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
10102         [Fixes bug #81391]
10103
10104 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10105
10106         * CreateParams.cs: Add a couple of helper methods and do a less string
10107           concatenation in ToString.
10108         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
10109           overload that takes a Control parameter, since this method may be
10110           called before a control is assigned to the hwnd (from
10111           CreateWindow), and update CreateWindow to use the new overload. In
10112           GetMenuOrigin subtract the title bar from the y position if the
10113           form has a window manager (since we're painting it and not X).
10114         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
10115           CreateParams to calculate the origin (since border sizes may vary).
10116           In ScreenToMenu only subtract the title height if we actually have
10117           a title.
10118         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
10119           mdi children never have menus of themselves.
10120         * InternalWindowManager.cs: Implement menu handling like form does.
10121           Added GetMenuOrigin to calculate the menu origin, can't use the
10122           CreateParams from the form like normally since it's lying.
10123         * Hwnd.cs: Implement GetBorderSize better (in the sense more
10124           windows-like) and add Inflate and comparison operators to the
10125           Borders type. When calculating MenuOrigin and it's a form with a
10126           window manager, use the window manager to calculate it.
10127
10128 2007-04-17  Chris Toshok  <toshok@ximian.com>
10129
10130         * Control.cs (CreateControl): turns out in 2.0 we don't need this
10131         OnBindingContextChanged thing here.  It's only generated from
10132         ContainerControl.OnCreateControl.  Fixes a newly written unit test
10133         - BindingTest.BindingContextChangedTest4.
10134         
10135 2007-04-17  Jackson Harper  <jackson@ximian.com>
10136
10137         * ScrollBar.cs: When setting values, make sure the current
10138         position stays within the new values range.
10139
10140 2007-04-17  Chris Toshok  <toshok@ximian.com>
10141
10142         * Control.cs (CreateControl): talk about a bizarre corner case.
10143         Don't emit OnBindingContextChanged here if we're a parentless
10144         control (i.e. if we're a form.).  Fixes
10145         BindingTest.BindingContextChangedTest2.
10146
10147 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
10148
10149         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
10150         from win32. Fixes #81255.
10151
10152 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
10153
10154         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
10155         already present in CalculateButtonTextAndImageLayout.
10156
10157 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10158
10159         * XplatUIX11.cs: When setting min/max size for a window we need to
10160           translate the coordinates to x coordinates. Create an overload of
10161           SetWindowMinMax that takes a CreateParams handling this, and change
10162           SetWMStyles to call this function (can't use Control.FromHandle in
10163           the SetWindowMinMax to get the control/CreateParams from the handle
10164           because the handle might not have been assigned to the control
10165           yet). Fixes #81371.
10166
10167 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10168
10169         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
10170         if StateImageList is non-null and it has less than two items (match MS
10171         behaviour). Also, in HandleNavKeys handle the Space key, calling
10172         the new ToggleItemsCheckState method, which tries to change the
10173         checked state of the selected items. Fixes part of #81191.
10174
10175 2007-04-16  Jackson Harper  <jackson@ximian.com>
10176
10177         * RichTextBox.cs: namespace cleanup.
10178
10179 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
10180
10181         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
10182
10183 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
10184
10185         [Fixes #79447]
10186         * Control.cs: Call invalidate in set_Region.
10187
10188         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
10189         it dont works here.
10190
10191 2007-04-16  Jackson Harper  <jackson@ximian.com>
10192
10193         * TextBoxBase.cs: When enter is pressed, we need to update all
10194         lines below the current.
10195
10196 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
10197
10198         * MdiClient.cs: Implement implicit menu merging for MDI
10199         children.  When a child form is active, if it has a menustrip
10200         and the parent form has a MainMenuStrip, automatically merge
10201         the menus.
10202
10203 2007-04-15  Andreia Gaita  <avidigal@novell.com>
10204
10205         * TabControl.cs: Refactored sizing methods to not repeat
10206         code all over the place. Tab bounds are now calculated
10207         as if alignment is top and single line, and only when 
10208         setting the bounds are the positions adjusted according
10209         to alignment. Replaced hardcoded positions, spacings and
10210         paddings by getting the values the ThemeEngine. 
10211         Fixes #79619.
10212         
10213         * Theme.cs: Change TabControl properties and methods so
10214         that all start with TabControl*. Added more properties
10215         to help remove hardcoded values on tabcontrol.
10216         Add CPDrawBorder3D declaration so the Theming classes
10217         can access it.
10218         
10219         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
10220
10221         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
10222         on the Theming namespace, and call the appropriate methods here.
10223         Change CPDrawBorder3D to public.
10224
10225 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10226
10227         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
10228         the control after firing the OnMouseUp event, instead of sending
10229         the message before the mentioned event. This is so we can match the
10230         MS behaviour. Fixes part of #80385.
10231
10232 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
10233
10234         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
10235         RightToLeft property.
10236
10237 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
10238
10239         * ToolStrip.cs: Add properties and internal methods to support merging.
10240         * ToolStripItem.cs: Add MergeAction and MergeIndex.
10241         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
10242         not trigger reparenting or layouts.
10243         * ToolStripManager.cs: Add Merge and RevertMerge methods.
10244         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
10245         is hosting the overflow menu.
10246
10247 2007-04-13  Jackson Harper  <jackson@ximian.com>
10248
10249         * TextControl.cs: Set the line ending correctly for the first
10250         inserted line.
10251
10252 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
10253
10254         * Theme.cs: Update GetMethod to get the new definition for 
10255         KnownColors.Update (and fix theme color updates).
10256
10257 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
10258
10259         * MessageBox.cs: Fix some test and button position.
10260
10261 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10262
10263         * Form.cs: Consider the implicit controls in
10264         GetRealChildAtPoint. We need it since this method
10265         is called on Form when handling the some messages in
10266         WndProc, and need to consider those implicit ones too.
10267         Fixes #80385.
10268
10269 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
10270
10271         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
10272         if there are no ShortcutKeys set.
10273         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
10274         set, use it when painting.
10275
10276 2007-04-12  Jackson Harper  <jackson@ximian.com>
10277
10278         * TextControl.cs: Fix some off-by-one issues in line duplication
10279         and insertion in the undo manager. Also, overwrite the first tag
10280         of a line on insert, if it is just a zero lengthed tag. This
10281         prevents us from getting an extra stranded tag at the beginning of
10282         the first line.
10283
10284 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
10285
10286         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
10287         to calculated proper size including when handle was not created yet.
10288
10289 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10290
10291         * MdiWindowManager.cs: When moving a form, allow the form to be moved
10292           when the mouse is outside of it's parent's client rectangle. Fixes
10293           #79982 (take 3, part 2).
10294
10295 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10296
10297         * X11Structs.cs: Add a few ToString() overrides.
10298         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
10299           the window location in a window-manager independent way. Reworked
10300           FrameExtents, it now actually works. Reworked AddConfigureNotify
10301           and ReparentNotify handling to use GetTopLevelWindowLocation
10302           instead of the earlier, more hacky solution. Reworked SetWMStyles,
10303           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
10304           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
10305           for all other windows (fixes #81281 part 1), a toolwindow is hidden
10306           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
10307           and generally refactored to do as few calculations as possible
10308           inside the lock.
10309
10310 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
10311
10312         * Theme.cs: Change "reflective-contract" between MWF and SD to 
10313         minimize # of calls, avoid Color serialization and avoid updating 
10314         every "known colors" each time a single one is updated.
10315
10316 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
10317
10318         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
10319         when not readonly and the text is explicitly set. Code style updates.
10320         * DataGridTableStyle.cs: Removed extra line.
10321         * DataGrid.cs: Code style updates. Removed extra whitespace.
10322         * DataGridColumnStyle.cs: Code style updates. Removed extra 
10323         whitespace.
10324
10325 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10326
10327         * XplatUIX11.cs: Added comment that "fixes" #80021.
10328
10329 2007-04-09  Jackson Harper  <jackson@ximian.com>
10330
10331         * TextControl.cs: We don't need this -1 on the line count anymore.
10332
10333 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
10334
10335         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
10336         entered value to underlying type, and convert it back to a string to
10337         apply formatting. Modified GetFormattedValue to use TypeConverter
10338         if available.
10339
10340 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
10341
10342         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
10343         Use SubItems property when we want to ensure there's at least one
10344         subitem. Modified SubItems property to ensure there's always at least
10345         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
10346         the NRE's reported by MS.
10347
10348 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
10349
10350         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
10351         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
10352         Spaces to tabs. Removed extra tabs.
10353
10354 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
10355
10356         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
10357         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
10358
10359 2007-04-06  Jackson Harper  <jackson@ximian.com>
10360
10361         * TextBoxBase.cs: When a delete removes a line, recalculate all
10362         lines below that line (they need to get offsets setup correctly)
10363         and invalidate.
10364
10365 2007-04-05  Jackson Harper  <jackson@ximian.com>
10366
10367         * TextControl.cs: We need to invalidate across the width of the
10368         document when we are invalidating multiple lines.
10369         * TextBoxBase.cs: Don't delete into the line ending.
10370
10371 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10372
10373         * ListView.cs: Restore the check for the MouseHover event
10374         in ListView. It looks like the ListView fires more than one MouseHover
10375         event when HoverSelection is true  _only_ in weird-corner scenarios, but
10376         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
10377         event.
10378
10379 2007-04-05  Mike Kestner  <mkestner@novell.com>
10380
10381         * ListView.cs : raise MouseDown before updating selection.
10382         [Fixes #80373 tab 1&3]
10383
10384 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
10385
10386         * ToolStripRenderer.cs: Add static method to mirror image.
10387         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
10388         and RightToLeftAutoMirrorImage.
10389         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
10390
10391 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
10392
10393         * ToolStripSplitStackLayout.cs: Support Alignment property.
10394         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
10395
10396 2007-04-05  Jackson Harper  <jackson@ximian.com>
10397
10398         * TextControl.cs: Move around the line endings when crossing line
10399         boundaries.
10400         - When combining lines, strip the ending text off the first line.
10401
10402 2007-04-05  Jackson Harper  <jackson@ximian.com>
10403
10404         * TextControl.cs:
10405         * TextBoxBase.cs: Try to never move the cursor into the line
10406         ending.
10407         
10408 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
10409
10410         * ToolStripItem.cs: Make sure we aren't firing mouse events when
10411         the item is disabled.  Also add a few missing methods.
10412
10413 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10414
10415         * ListView.cs: We don't need the MouseEnter/MouseLeave check
10416         to fire just one MouseHover event when HoverSelection is true, since
10417         .Net does fire more than one MouseHover event in that scenario. Also,
10418         fix the selection in HoverSelection, by invoking UpdateMultiSelect
10419         if MultiSelect is true, instead of only setting ListViewItem.Selected.
10420         Finally, we need to reset the Hover logic in MouseMove, even when we
10421         don't have a selected item.
10422
10423 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
10424
10425         * ToolStrip.cs: Add several missing methods, properties, and events.
10426
10427 2007-04-04  Chris Toshok  <toshok@ximian.com>
10428
10429         * DataGridTextBoxColumn.cs: set the bounds of the text box to
10430         (0,0,0,0) in Commit, as MS does.
10431
10432         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
10433         make sure we set CurrentRow on a row header click *before* calling
10434         Select.  This moves the current cell (and the textbox) to the new
10435         row.  The call to Select then hides the textbox, giving us the
10436         correct behavior.  Fixes #80362.
10437
10438         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
10439         (ListChangedHandler): reorder the position/current changed events,
10440         and call UpdateIsBinding in the ItemAdded case.
10441
10442         * GridColumnStylesCollection.cs: add some columns events, one of
10443         which raises the CollectionChanged event.
10444
10445 2007-04-04  Jackson Harper  <jackson@ximian.com>
10446
10447         * TextControl.cs: When we delete multiple selection lines
10448         invalidate the selection area, don't need to do that for single
10449         lines because the final update view will handle it.
10450
10451 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
10452
10453         * Control.cs: When we CreateControl, we need to also create all of the
10454         control's children.  The child's OnLoad must also fire before the parent's
10455         OnLoad.  Fixes the toolbox size in PDN.
10456
10457 2007-04-04  Jackson Harper  <jackson@ximian.com>
10458
10459         * TextBoxBase.cs: When the user presses enter, insert a line
10460         ending into the text. (Maybe this would be a good spot for
10461         Environment.NewLine).
10462         * TextControl.cs: Remove undo manager hack, line endings get
10463         inserted properly now.
10464         
10465 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
10466
10467         * MenuAPI.cs: 
10468         - Remove unneeded parameters in UpdateCursor.
10469         - Fix UpdateCursor to check if menu is active.
10470         - Call UpdateCursor when menu deactivate my click.
10471         [Fixes remaining issues from #80410]
10472
10473 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
10474
10475         * Control.cs: GetRealChildAtPoint method added, it make an
10476         recursive child control search for the point. 
10477
10478         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
10479         menu.
10480
10481         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
10482
10483 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
10484
10485         * Form.cs: Fix mouse position when send back mouse event after closes
10486         menu.
10487
10488 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
10489
10490         * Form.cs: Simplify the BUTTONDOWN for active tracker.
10491
10492 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
10493
10494         * Control.cs: Fix an issue where if a user resized a control inside
10495         a sizing method like OnResize, we would overwrite their explicit
10496         value.  Also, only call DefaultSize once in the constructor instead
10497         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
10498         nothing actually changed.
10499
10500 2007-04-03  Jackson Harper  <jackson@ximian.com>
10501
10502         * TextControl.cs: Don't attempt to copy text for lines with no
10503         text in them (technically this shouldn't happen, but we aren't
10504         always inserting line endings when we should be).
10505
10506 2007-04-03  Jackson Harper  <jackson@ximian.com>
10507
10508         * TextBoxBase.cs: Calculate the scrollbars before calculating the
10509         document, because this sets some of the document size properties
10510         that are needed.
10511
10512 2007-04-03  Jackson Harper  <jackson@ximian.com>
10513
10514         * TextBoxBase.cs: We need to calculate maximums even if this is
10515         not a multiline control, because the maxs are used for scrolling.
10516         - Display the caret after doing a page up/down, we need to
10517         manually display it because a proper CaretMoved event isn't
10518         triggered (this is because of the way the math is done to
10519         determine how far to scroll).
10520
10521 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
10522
10523         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
10524         (ToolBar was relying on SetBoundsCore to default the values sent 
10525         base off of BoundsSpecified.)
10526
10527 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10528
10529         * DateTimePicker.cs: Change Text so that when a null value or empty
10530           string is assigned to the test we always raise ValueChanged and
10531           TextChanged (earlier implementation would only raise ValueChanged
10532           if the current date value was different from DateTime.Now).
10533
10534 2007-04-03  Andreia Gaita <avidigal@novell.com> 
10535
10536         * ButtonBase: Call update after invalidation, fixes #80194
10537
10538 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10539
10540         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
10541           #79335.
10542
10543 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10544
10545         * XplatUIX11.cs: SetWMStyles: If the control is a form with
10546           FormBorderStyle = None, don't give the window any decorations.
10547           Fixes #81276.
10548
10549 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10550
10551         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
10552         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
10553           to check for is a mix of several styles (such as WS_CAPTION for
10554           instance).
10555         * Control.cs: Don't paint an area bigger than the client area when
10556           painting the background colour. Add an internal GetCreateParams.
10557           Update calls to XplatUI.CalculateWindowRect due to API change.
10558         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
10559           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
10560           the size if it hasn't been handled by any windows. When creating
10561           and moving windows, X wants the location of the entire window, but
10562           the size of the client window, so add
10563           TranslateClientRectangleToXClientRectangle,
10564           TranslateWindowSizeToXWindowSIze and
10565           TranslatedXWindowSizeToWindowSize to cope with this, and call them
10566           before every window creation and move. Update CalculateWIndowRect
10567           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
10568           In AddConfigureNotify don't do anything if the hwnd is a zombie
10569           (fixes the BadWindow we were getting while running the tests),
10570           always calculate the offsets when it's a parentless window, not
10571           only when reparented, and translate the window size, since we're
10572           getting the client size of the whole window, excluding entire
10573           window.
10574         * Theme.cs: Added BorderSizableSize.
10575         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
10576           anymore. Update calls to XplatUI.CalculateWindowRect due to API
10577           chang
10578         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
10579           change. Fake the window styles here instead of in XplatUIWin32 so
10580           that all back-ends get the same window styles (and it's Form that's
10581           deciding when to use wm, not the Win32 backend anyways)
10582         * Hwnd.cs: Completely reworked GetWindowRectangle and
10583           GetClientRectangle - they are now passed a CreateParams and they
10584           only use Style and ExStyle to determine the rectangles (they should
10585           now work just like Win32AdjustWindowRectEx - though quite a few
10586           special cases are probably missing). They should also be 100%
10587           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
10588           == rect), and all numbers (borders, menu sizes) are taken from the
10589           current theme. Added a GetBorders helper function that will return
10590           the borders for any given CreateParams (including captions and
10591           menus), and GetBorderSize that returns the given border size only.
10592         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
10593           Hwnd.GetClientRectangle.
10594
10595 2007-04-02  Chris Toshok  <toshok@ximian.com>
10596
10597         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
10598         logic between the values we present to the user and the values
10599         which are stored in the column's property.  Also, don't call
10600         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
10601
10602 2007-04-02  Jackson Harper  <jackson@ximian.com>
10603
10604         * TextBoxBase.cs: Scroll faster!
10605
10606 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
10607
10608         * StatusStrip.cs: Layout fixes for PDN.
10609         * ToolStrip.cs: Set item's available to true, and placement to main when
10610         added.
10611         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
10612         changing in setter before doing any work, add InternalVisible.
10613         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
10614         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
10615         infinite loop.
10616
10617 2007-04-02  Jackson Harper  <jackson@ximian.com>
10618
10619         * TextBox.cs: LBUTTON does not make the textbox select all of it's
10620         text on focus.
10621
10622 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10623
10624         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
10625           Makes ToolStripComboBoxes show up again.
10626
10627 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10628
10629         * ListView.cs: Add a hover_pending field in ListView
10630         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
10631         cycle (we are resetting the MouseHover logic in XplatUI
10632         to handle HoverSelection). Fixes #80429.
10633
10634 2007-04-02  Jackson Harper  <jackson@ximian.com>
10635
10636         * TextControl.cs: Make sure the attributes get set on the last
10637         tag.
10638         - Still have to do the end tag if we have stepped all the ways to
10639         the end.
10640
10641 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
10642
10643         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
10644         on an internal libgdiplus call when the information is already 
10645         available via the public API.
10646
10647 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10648
10649         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
10650           control is removed from a control collecftion.
10651         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
10652           Fixes FormPropertyTest (failed on rare occasions).
10653         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
10654           of Win32SetParent (when changing from no parent to a parent it
10655           might add the new parent's location in screen coordinates to this
10656           window's location).
10657         * Form.cs: Rework ChangingParent once again, now the handle is
10658           recreated whenever a FormWindowManager is added or removed (that is
10659           whenever a normal form is parented or abandoned). Also change
10660           CreateParams so that all non-toplevel windows always get the
10661           specified sice (StartupPosition is never considered for
10662           non-TopLevel forms).
10663         * ContainerControl.cs: Add ChildControlRemoved, the container control
10664           needs to be notified when a control is removed from it's
10665           collection, in the case the removed control is the active control.
10666
10667 2007-04-02  Jackson Harper  <jackson@ximian.com>
10668
10669         * RichTextBox.cs: Use the new methods for setting the font and
10670         color, these methods set the specified attribute without
10671         overriding the other attributes.
10672
10673 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
10674
10675         * ToolStripPanel.cs: Fixes for better layouts in PDN.
10676
10677 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
10678
10679         * TextBox.cs: Added internal ChangeBackColor method to special-case
10680         Color.Empty. Added check for invalid ScrollBars value.
10681         * TextBoxBase.cs: Added internal ChangeBackColor method.
10682         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
10683         internal ChangeBackColor method to special-case Color.Empty. Added
10684         check for invalid ScrollBars value.
10685
10686 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
10687
10688         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
10689
10690 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
10691
10692         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
10693         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
10694         [Based on submitted patch from Olivier Duff.]
10695
10696 2007-03-30  Jackson Harper  <jackson@ximian.com>
10697
10698         * TextBox.cs: Only select all on initial focus if the user has not
10699         specified a selection area.
10700
10701 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
10702
10703         * UserControl.cs: Override CreateParams.
10704
10705 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10706
10707         [ Fixes #80995 ]
10708
10709         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
10710         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
10711           check for is a mix of several styles (such as WS_CAPTION for instance).
10712         * Control.cs: Don't paint an area bigger than the client area when painting
10713           the background colour. Add an internal GetCreateParams. Update calls to
10714           XplatUI.CalculateWindowRect due to API change.
10715         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
10716           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
10717           hasn't been handled by any windows. When creating and moving windows, X
10718           wants the location of the entire window, but the size of the client
10719           window, so add TranslateClientRectangleToXClientRectangle,
10720           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
10721           to cope with this, and call them before every window creation and move.
10722           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
10723           removing DeriveStyles). In AddConfigureNotify don't do anything if the
10724           hwnd is a zombie (fixes the BadWindow we were getting while running the
10725           tests), always calculate the offsets when it's a parentless window, not
10726           only when reparented, and translate the window size, since we're getting
10727           the client size of the whole window, excluding entire window.
10728         * Theme.cs: Added BorderSizableSize.
10729         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
10730           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
10731         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
10732           Fake the window styles here instead of in XplatUIWin32 so that all
10733           back-ends get the same window styles (and it's Form that's deciding when
10734           to use wm, not the Win32 backend anyways)
10735         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
10736           they are now passed a CreateParams and they only use Style and ExStyle
10737           to determine the rectangles (they should now work just like
10738           Win32AdjustWindowRectEx - though quite a few special cases are probably
10739           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
10740           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
10741           sizes) are taken from the current theme. Added a GetBorders helper
10742           function that will return the borders for any given CreateParams
10743           (including captions and menus), and GetBorderSize that returns the given
10744           border size only.
10745         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
10746           Hwnd.GetClientRectangle.
10747
10748 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10749
10750         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
10751           layout of the mdi children is handled by CreateParams. Fixes
10752           #79964,
10753
10754 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
10755
10756         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
10757         processed.
10758
10759         * Form.cs: When active tracker mouse down is not processed, send event 
10760         back to control inside mouse position. [Fixes #81227]
10761
10762 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
10763
10764         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
10765         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
10766         stealing focus from the active form on Windows.  (Control will be made
10767         visible in ShowWindow.)
10768
10769 2007-03-29  Mike Kestner  <mkestner@novell.com>
10770
10771         * ImageList.cs : add internal Changed event.
10772         * ListView.cs : hook up to StateImageList.Changed to perform
10773         invalidations when the the state icon list changes. [Fixes #81191]
10774
10775 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
10776
10777         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
10778         to prevent tooltips from stealing focus from the active form on Windows.
10779
10780 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
10781
10782         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
10783
10784         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
10785
10786 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
10787
10788         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
10789         balloons.
10790
10791 2007-03-29  Jackson Harper  <jackson@ximian.com>
10792
10793         * TextControl.cs: When deleting text from non multiline textboxes,
10794         we need to update the entire document, because line offsets will
10795         be shifting.
10796
10797 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
10798
10799         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
10800         added to theme, now we can create themes that uses diferent notify engines
10801         like notification-daemon from galago project or growl for Mac OS.
10802
10803 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
10804
10805         * NotifyIcon.cs: Prevent Balloon to show in task bar.
10806
10807 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
10808
10809         * XplatUIX11.cs: Prevent system to open more than one balloon.
10810
10811         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
10812         some compiler warning messages.
10813
10814 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
10815
10816         [Fixes #79149]
10817
10818         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
10819
10820         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
10821         implemented, this methods is used by NotifyIcon.BalloonWindow class.
10822
10823         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
10824         systems.
10825
10826 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10827
10828         * ListViewItem.cs: Forgot to make Invalidate internal.
10829
10830 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10831
10832         * ListView.cs: Add a InvalidateSelection method to
10833         invalidate methods which are currently selected, and call
10834         it when setting FullRowSelect and HideSelection, instead of
10835         calling Redraw.
10836
10837 2007-03-28  Chris Toshok  <toshok@ximian.com>
10838
10839         * XplatUIX11.cs (UnmapWindow): reindent this block.
10840
10841         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
10842         the selection_start if we're moving the selection (that is, not
10843         extending it). Fixes bug #80461.
10844
10845 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
10846
10847         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
10848         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
10849         create private ControlCollection.
10850
10851 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
10852
10853         * Control.cs: We need to call OnVisibleChanged for our implicit
10854         children as well as our normal children.  Fixes scrollbars in
10855         comboboxes not showing up.
10856
10857 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
10858
10859         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
10860         the check for IsHandleCreated first.  The check in CreateHandle is not
10861         good enough because CreateHandle can be overriden, and the override 
10862         should not be called if the handle is already created.
10863
10864 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
10865
10866         * ToolStrip.cs: Remove MonoTODO for tooltips.
10867         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
10868         * ToolStripContainer.cs: Add custom ControlCollection class.
10869         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
10870         * ToolStripDropDown.cs: Add some missing properties/methods.
10871         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
10872         * ToolStripItem.cs: Remove MonoTODO for tooltips.
10873         * ToolStripManager.cs: Add IsShortcutDefined.
10874         * ToolStripOverflow.cs: Override LayoutEngine.
10875         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
10876         * ToolStripSeparator.cs: Add ImageKey.
10877
10878 2007-03-28  Jackson Harper  <jackson@ximian.com>
10879
10880         * TextControl.cs: If a char delete removes a line ending, we need
10881         to update the ending style.
10882         - Make sure the line ending calcs get called.
10883
10884 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10885
10886         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
10887           it was making the new code not work. Fixed a typo in the new code
10888           as well. Fixes #79826.
10889
10890 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
10891
10892         * XplatUIWin32.cs:
10893         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
10894         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
10895         - SystrayBalloon method implemented.
10896         [Add support for notifyicon balloon on win32, #79149]
10897
10898 2007-03-27  Mike Kestner  <mkestner@novell.com>
10899
10900         * ThemeWin32Classic.cs : update StateImageList selection to mirror
10901         the ms behavior when only one image is added to the list.
10902         [Fixes #81191]
10903
10904 2007-03-27  Jackson Harper  <jackson@ximian.com>
10905
10906         * TextControl.cs: Improvements to non multiline line ending
10907         drawing/measuing.
10908
10909 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
10910
10911         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
10912
10913 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
10914
10915         * NotifyIcon.cs: 
10916         - Balloon message handling added.
10917         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
10918
10919         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
10920         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
10921         to SystrayBalloon to me like other Systray method, also a
10922         handle parameter added.
10923
10924 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10925
10926         * ListView.cs: Show scrollbars even when items.Count == 0
10927         but the columns Width is bigger than the ListView.Width.
10928         Also, when columns.Count == 0 set layout_wd and layout_ht
10929         to the ClientRectangle values, so we don't show any scrollbar
10930         in that case.
10931
10932 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
10933
10934         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
10935
10936 2007-03-27  Jackson Harper  <jackson@ximian.com>
10937
10938         * RichTextBox.cs: The RTF library decodes the text properly for us
10939         now.
10940
10941 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10942
10943         * ListView.cs: Display HeaderControl even when columns.Count == 0.
10944         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
10945         ListView header (HeaderControl), instead of Control.BackColor.
10946
10947 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
10948
10949         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
10950         Fixes tab control issues where controls would not show up because they
10951         never received their OnVisibleChanged call.
10952
10953 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
10954
10955         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
10956         BalloonTipShown).
10957
10958 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
10959
10960         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
10961         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
10962         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
10963         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
10964         the handle.  Fix WindowState by using the internal variable until we are 
10965         sure that we've been shown.
10966         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
10967         max or min.
10968         [Fixes bug #81198]
10969
10970 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10971
10972         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
10973           (at least borders). Fixes #79386 on Linux (with a small difference
10974           in behaviour: when trying to resize a caption-less window metacity
10975           shows the sysmenu. Resizing is still possible though).
10976         * XplatUIWin32.cs: When setting window styles send request an extra
10977           WM_NCCALCSIZE when it's a form without title (due to no text and no
10978           caption), since Win32 seems to calculate it wrong the first time we
10979           get the message, though the second time things work as they should.
10980         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
10981           newly reparented window might show up unparented. Update
10982           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
10983           there's no title text. Fixes #79386.
10984
10985 2007-03-27  Mike Kestner  <mkestner@novell.com>
10986
10987         * ListBox.cs : don't perform invalidations if the handle hasn't been
10988         created.  [Fixes #80753]
10989
10990 2007-03-27  Mike Kestner  <mkestner@novell.com>
10991
10992         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
10993         [Fixes #80428]
10994
10995 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
10996
10997         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
10998         needed to implement Balloon.
10999
11000 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11001
11002         * ListViewItem.cs: In the constructors that take
11003         an array of strings, don't use ListViewSubItemCollection.AddRange
11004         method to add items, since we need to have a different behaviour (in
11005         the constructors we add an item for each null string, opposed to
11006         the behaviour of AddRange, which adds nothing).
11007
11008 2007-03-26  Andreia Gaita  <avidigal@novell.com>
11009
11010         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
11011
11012 2007-03-26  Jackson Harper  <jackson@ximian.com>
11013
11014         * TextControl.cs: Draw and measure line endings when in non
11015         multiline mode.
11016         - When searching the text, count the end of the last line as a
11017         word boundary.
11018
11019 2007-03-26  Jackson Harper  <jackson@ximian.com>
11020
11021         * RichTextBox.cs: The selection_start and selection_end don't
11022         really track the correct tags for the selection. So we'll manually
11023         compute the correct tag here.
11024
11025 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11026
11027         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
11028           and Continuous styles. Fixes #79469.
11029
11030 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
11031
11032         * ToolStrip.cs: Implement Tooltips.
11033         * ToolStripItem.cs: Create internal method for determining tooltip.
11034
11035 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
11036
11037         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
11038
11039 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
11040
11041         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
11042         it prevents a problem thak keeps icon visible after application 
11043         closes on win32.
11044
11045 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
11046
11047         * NotifyIcon.cs: Balloon properties and methods created.
11048
11049         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
11050         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
11051
11052 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
11053
11054         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
11055
11056 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
11057
11058         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
11059         parameter indicates which aspects were explicit/user-set.
11060         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
11061
11062 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
11063
11064         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
11065         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
11066         SmallChange, and Value (2.0).
11067         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
11068
11069 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11070
11071         * ListView.cs: Always set item_control.Width in LayoutDetails
11072         if View is Details. Setting it later in CalculateScrollBars
11073         in a not-so-corner scenario (the sum of columns width is
11074         not bigger than the ListView width when handle is created, and then
11075         that sum gets bigger by increasing the width of the columns)
11076         causes a very weird recursion path (which shouldn't be happening,
11077         since header_control sets it in CalculateScrollBars too). This bug
11078         appeared after Chris' fixes for handle created issues, so probably
11079         it's related to some handle-creation time.
11080
11081 2007-03-23  Chris Toshok  <toshok@ximian.com>
11082
11083         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
11084         case where there's an add row, just so we don't end up in a case
11085         where it's not displayed (this happens when the row is partially
11086         obscured).  Fixes bug #79574.
11087
11088 2007-03-23  Jackson Harper  <jackson@ximian.com>
11089
11090         * TextControl.cs:
11091         * TextBoxBase.cs:
11092         * RichTextBox.cs: Preserve line endings in the lines text buffer,
11093         also added an enum that represents the line ending type. 
11094
11095 2007-03-23  Andreia Gaita  <avidigal@novell.com>
11096
11097         * NumericUpDown.cs: Fix logic so Text and Value properties are not
11098         messed with in every method call, but only from DownButton, 
11099         UpButton, UpdateEditText() and ValidateText. Fixes #80346
11100
11101 2007-03-23  Chris Toshok  <toshok@ximian.com>
11102
11103         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
11104         format objects if the format spec is "".  Fixes bug #80889.
11105
11106 2007-03-22  Miguel de Icaza  <miguel@novell.com>
11107
11108         * ToolStripPanel.cs (Join): added stubs to build PDN3
11109
11110         * Control.cs (AutoScrollOffset): Add.
11111
11112         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
11113         property, its only implemented for Win32, on X11 it defaults to
11114         some hardcoded value.
11115
11116         * ToolStripItem.cs (AllowDrop): Add property
11117
11118 2007-03-22  Mike Kestner  <mkestner@novell.com>
11119
11120         * ListView.cs : in FullRowSelect Details mode, only enable box
11121         selection if the user clicks over the "item" column outside of the
11122         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
11123
11124 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11125
11126         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
11127           handle is not created yet.
11128         * Form.cs: Select: Don't call CreateHandle if the handle is already
11129           created, avoids a stack overflow on Windows when we are recreating
11130           controls.
11131         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
11132           they are made visible, and override AfterTopMostControl to keep
11133           them on top when other controls are brought to front.
11134           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
11135           or force_*scroll_visible is true (old implementation always shows
11136           scrollbars when needed, no matter what auto_scroll was set to).
11137         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
11138           IsHandleCreated check.
11139
11140 2007-03-22  Andreia Gaita  <avidigal@novell.com>
11141
11142         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
11143         row or col separator.
11144         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
11145
11146 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
11147
11148         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
11149
11150 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
11151
11152         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
11153         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
11154         every time. Fixes #80410.
11155
11156 2007-03-22  Chris Toshok  <toshok@ximian.com>
11157
11158         * BindingSource.cs (AddNew): partially implement.
11159
11160         remove a couple of NotImplementedException's
11161         to get bug #81148 closed.
11162
11163 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
11164
11165         [Fixes #80380]
11166         
11167         * Control.cs:
11168         - UpdateCursor method added to update the screen cursor.
11169         - GetAvailableCursor method added to return cursor for enabled tree,
11170         it searches for cursor on control and it's parent's for enabled control.
11171         - Call UpdateCursor method on setter of Cursor property.
11172         - On setter of Enabled call UpdateCursor when it is false, we need to
11173         change cursor to normal (or to this parent cursor) because cursor 
11174         setting theres no effect to disabled controls.
11175         - Some minor source changes to follow the coding style guidelines.
11176
11177         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
11178         controls.
11179
11180 2007-03-22  Chris Toshok  <toshok@ximian.com>
11181
11182         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
11183         generates.
11184
11185 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11186
11187         * XplatUIX11.cs: Implement default locations for forms.
11188         * Form.cs: Completely rework startup location for forms. Fixes #79964.
11189         * Hwnd.cs: Add previous_child_startup_location (to track the current
11190           startup location for any child forms of the current form) and
11191           previous_main_startup_location (to track the startup location for
11192           the current toplevel form).
11193
11194 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
11195
11196         * Control.cs: Don't trigger a layout if an implicit control is added
11197         that isn't visible.  Also, don't notify the owner when an implicit control
11198         is added.  (Owners shouldn't even know about their implicit controls.)
11199
11200 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
11201
11202         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
11203         to save some re-layouts.
11204
11205 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
11206
11207         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
11208         [Fixes #81203]
11209
11210 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
11211
11212         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
11213         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
11214
11215 2007-03-21  Mike Kestner  <mkestner@novell.com>
11216
11217         * ListView.cs : disable selection update for non-left button clicks
11218         with mods and over selected items.  [Fixes #80524]
11219
11220 2007-03-20  Jackson Harper  <jackson@ximian.com>
11221
11222         * TextControl.cs:
11223         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
11224         \r\r\n, \n.
11225
11226 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11227
11228         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
11229           very probably a more complicated calculation there. Update the
11230           textbox' ForeColor and BackColor when the ComboBox' colors are
11231           changed. Change the border change in LayoutComboBox to only affect
11232           the textbox, not all the calculations there. Seems to fix most of
11233           #79436.
11234
11235 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11236
11237         * ComboBox.cs: Handle Home and End keys as well as all combinations of
11238           modifiers + navigation keys as input keys, enables advanced text
11239           selection in the combobox (like Shift+Left Arrow for instance).
11240           ComboTextBox now overrides Focused and returns whatever
11241           ComboBox.Focused returns, since it really should be focused
11242           whenever the ComboBox is. Fixes #80795. Also make the border around
11243           the text box one pixel bigger, as mentioned in #79436.
11244
11245 2007-03-20  Jackson Harper  <jackson@ximian.com>
11246
11247         * TreeView.cs: Don't offset the images, this was causing some
11248         artifacts when expanding/collapsing with images that were the
11249         exact height of the treenode.
11250
11251 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11252
11253         * TrackBar.cs: Query the theme for the correct value when the mouse
11254           moves and the thumb is pressed. 
11255         * Theme.cs: Added TrackBarValueFromMousePosition
11256         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
11257           implementation was updating the trackbar value when drawing, now
11258           the drawing methods only draw. Fixes #80900. Refactored the
11259           calculations out to TrackBarValueFromMousePosition and
11260           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
11261           according to the mouse position whenever it wants to. Changed the
11262           light coloured pen when drawing the thumb from ControlLight to
11263           ControlLightLight, because the ControlLight is the same colour as
11264           the background so the 3D effect is lost. 
11265
11266 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
11267
11268         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
11269         defined. Fixes #80784.
11270
11271 2007-03-20  Marek Habersack  <mhabersack@novell.com>
11272
11273         * ContextMenuStrip.cs: align with the change introduced in
11274         revision 74664.
11275
11276 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
11277
11278         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
11279         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
11280         in SetTopmost.
11281
11282 2007-03-19  Chris Toshok  <toshok@ximian.com>
11283
11284         * Control.cs (WmPaint): don't make use of the Handle property
11285         after an event is emitted, as the user could have closed the
11286         form/destroyed the control.  Store the Handle in a local variable
11287         and make use of that.  Fixes bug #80768.
11288
11289 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
11290
11291         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
11292         behavior in X11 environments.
11293
11294 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
11295
11296         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
11297         because on setter of topmost we dont call SetTopmost when handle is not
11298         created.
11299
11300 2007-03-20  Jackson Harper  <jackson@ximian.com>
11301
11302         * TextControl.cs: Need to use SelectionLength () not
11303         selection_length, since that var is reset to -1.
11304         - Draw the caret when we don't have focus.
11305         * TextBox.cs: The selectall actually doesn't occur until the first
11306         focus.
11307         * TextBoxBase.cs: Need to update the caret position after a
11308         selectall.
11309         
11310 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11311
11312         * ListView.cs: Enable scrolling when using Tile view.
11313
11314 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
11315
11316         [Fixes #80902]
11317
11318         * XplatUIDriver.cs: Abstract SetOwner method created.
11319
11320         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
11321         must be implemented and was masked as todo.
11322
11323         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
11324         GWL_HWNDPARENT.
11325
11326         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
11327         cheking for null owner to remove transient. The SetTopmost will be change
11328         on a decond step.
11329
11330         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
11331         SetTopmost. Now owned forms will work properly in win32 and X11.
11332
11333 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11334
11335         * MdiWindowManager.cs: Update function name.
11336         * Form.cs: After closing a form MdiParent is always null.
11337         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
11338           better what it should do: necessary book-keeping when the form is
11339           closed, it should not close the form itself.
11340
11341 2007-03-19  Andreia Gaita  <avidigal@novell.com>
11342
11343         * ListViewItem.cs: Fix back and fore color. The subitems only
11344         use their own colors if they are set, otherwise use the listview's
11345         colors. Don't set default colors on constructor for subitem.
11346         Fixes #79315.
11347
11348 2007-03-19  Mike Kestner  <mkestner@novell.com>
11349
11350         * ListView.cs : make box selection for Details views with 
11351         FullRowSelect conform to MS behavior when clicking in the "item" 
11352         column and clicking outside the defined columns.
11353         [Fixes case 5-6 of #80374]
11354
11355 2007-03-19  Chris Toshok  <toshok@ximian.com>
11356
11357         * ScrollableControl.cs: create the controls from within the ctor,
11358         but don't actually add them until our handle is created.  this
11359         fixes a NRE possibility jpobst found (if you override OnLayout in
11360         a subclass, it's called before your ctor).  Also, add a
11361         IsHandleCreated guard to UpdateSizeGripVisibility as well.
11362
11363 2007-03-19  Jackson Harper  <jackson@ximian.com>
11364
11365         * TextBox.cs: Reduce the amount of invalidation we do.
11366         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
11367         some of them are true by default on MS.
11368         - Add some functions to reduce the amount of invalidates we do.
11369         * TextControl.cs: Less invalidation.
11370
11371 2007-03-19  Chris Toshok  <toshok@ximian.com>
11372
11373         [ Fixes #81773, and *seems* to fix #81553 as well ]
11374
11375         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
11376         AccumulateDestroyedHandles.  We need to do it *after* we send
11377         WM_DESTROY, as the user's code can access Control.Handle in
11378         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
11379         move the WM_DESTROY/zombie handling to before the call to
11380         XDestroyWindow.  For some reason without this ordering
11381         FormTest.RecreateHandle hangs.  This ordering is semantically
11382         equivalent, however, as XDestroyWindow is async anyway.
11383
11384 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
11385
11386         * RichTextBox.cs: Reset backcolor_set after setting default.
11387
11388 2007-03-19  Chris Toshok  <toshok@ximian.com>
11389
11390         * ScrollableControl.cs: the scroll position should not effect the
11391         canvas size.  commit patch from georgegiolfan@yahoo.com, which
11392         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
11393         
11394 2007-03-19  Chris Toshok  <toshok@ximian.com>
11395
11396         * ScrollableControl.cs: clean this up a bit.  create the
11397         scrollbars in the ctor and just show/hide them as needed.  Also,
11398         make hscroll_visible/vscroll_visible internal to Recalculate, and
11399         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
11400         everywhere else.  This seems to fix the scrollbars appearing
11401         beneath the content for me (i have *no* idea why that is,
11402         however.)
11403
11404 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
11405
11406         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
11407         some redundacy for stuff in Anchor and Dock that base will take care of.
11408         [Fixes #80762]
11409
11410 2007-03-19  Mike Kestner  <mkestner@novell.com>
11411
11412         * ListView.cs : make box selection for Details views without 
11413         FullRowSelect dependent on the text bounds, not item bounds.
11414         * ListViewItem.cs : add an internal property to obtain the TextBounds
11415         in Details view.  [Fixes case 1-4 of #80374]
11416
11417 2007-03-19  Andreia Gaita  <avidigal@novell.com>
11418
11419         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
11420         we're < 2.0. #78448 && #80316
11421
11422 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
11423
11424         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
11425         have the same style available as the previously selected one.  Also,
11426         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
11427
11428 2007-03-19  Jackson Harper  <jackson@ximian.com>
11429
11430         * TextControl.cs: Add an alignment property that all new lines
11431         will be given.
11432         - Make sure to use the align shift when calculating the line's X
11433         position.
11434         * TextBox.cs: Set the alignment on the document as well as on all
11435         the document lines.
11436
11437 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11438
11439         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
11440           throw if setting the parent of an mdichild that already has an
11441           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
11442           AssemblyProductAttribute in the assembly, use the type's namespace (as
11443           MS seems to do). CreateControl: don't create the handle if the control
11444           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
11445           create handle if the control is not a form. Change FocusInternal to
11446           virtual so that it can be overriden by Form.
11447         * TextBox.cs: Update call to FocusInternal.
11448         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
11449           form is not a toplevel form when it's a mdi child, so update is_toplevel
11450           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
11451           hasn't been created. Show (IWin32Window): Don't allow this overload for
11452           toplevel windows. CenterToParent/CenterToScreen/Select: create the
11453           handle as MS does. SetVisibleCore: if called on a MdiChild and the
11454           parent isn't visible yet, save the visibility and restore it when the
11455           parent is made visible.
11456         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
11457           methods, since the visibility of the scrollbars can be changed from
11458           several places, not only from AutoScroll.
11459           [Fixes #81179]
11460
11461 2007-03-19  Jackson Harper  <jackson@ximian.com>
11462
11463         * RichTextBox.cs: Enable shortcuts by default.
11464         * TextBoxBase.cs: Add conditional shortcuts.  
11465
11466 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
11467
11468         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
11469
11470 2007-03-19  Chris Toshok  <toshok@ximian.com>
11471
11472         [ Fixes bug #80604]
11473         
11474         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
11475         swallow the message we're waiting on, instead of delivering it, as
11476         this is only used for the WM_SHOWWINDOW raised from
11477         MapWindow/UnmapWindow, and the message needs to be generated
11478         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
11479         before doing the Map/Unmap.  Also make sure that the Hwnd is still
11480         alive after the message has been handled.
11481
11482         *before* the window is shown.
11483
11484         * Control.cs (CreateControl): guard a few more things inside the
11485         if (!is_created) block, as we might end up being called again -
11486         yay .net.
11487         (WmShowWindow): call CreateControl if we're showing the control.
11488
11489 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11490
11491         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
11492           controls without a handle if they have any parent with a handle. In
11493           Dispose add a check whether the handle is created or not before
11494           calling BeginInvoke, this removes the need of the extra disposing
11495           parameter (which was bogus anyway since it didn't prevent the
11496           invoke from happening, it only skipped the check for an existing
11497           handle, meaning that the invoke would call on an inexistent
11498           handle).
11499
11500 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
11501
11502         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
11503         appears in taskbar.
11504
11505 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
11506
11507         * MessageBox.cs:
11508         - Fixed a problem that dont show help button for messages with 3 buttons.
11509         - Refactory button size and position calculations, now dont use fixed 
11510         values, also fixed button sizes (#80043) and form's border space.
11511         - AddButton method created, now all other AddButton methods call this one.
11512         - Some other source code cosmetic changes.
11513
11514 2007-03-18  Jackson Harper  <jackson@ximian.com>
11515
11516         * RichTextBox.cs: Don't do this all fonts must match check if
11517         there is only one char selected.
11518
11519 2007-03-18  Jackson Harper  <jackson@ximian.com>
11520
11521         * TreeView.cs: ScrollWindow works properly now, so we don't need
11522         to screw around with the scroll area.  This fixes some artifacts
11523         when expanding and collapsing.
11524
11525 2007-03-18  Jackson Harper  <jackson@ximian.com>
11526
11527         * TextBoxBase.cs: Allow updating the selection position when the
11528         cursor is outside the textarea, but we have a capture.
11529         * TextControl.cs: A special case for when the cursor is outside
11530         the bounds of the TB.
11531         
11532 2007-03-18  Jackson Harper  <jackson@ximian.com>
11533
11534         * TextBoxBase.cs: Remove image pasting code for now.  There is no
11535         way to get an image on the clipboard right now anyways.
11536         * TextControl.cs:
11537         * RichTextBox.cs: Use the new RTF Picture class for pictures.
11538
11539 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
11540
11541         * MessageBox.cs:
11542         - Set window properties in constructor intead of on CreateParams.
11543         - Remove topmost from Window ExStyle.
11544         - Set ShowInTaskbar to false.
11545         - Set form border to FixedDialog.
11546         - Some cosmetic changes and remove unneeded comments.
11547         - It fixes itens 2,3 and 4 of bug #80043.
11548
11549 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
11550
11551         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
11552         none was explicitly set. Fixes part of bug #79949.
11553
11554 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
11555
11556         * ToolStripComboBox.cs: Add AutoComplete*.
11557
11558 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
11559
11560         * ToolStripComboBox.cs: Add FlatStyle.
11561
11562 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
11563
11564         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
11565         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
11566
11567 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11568
11569         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
11570           CheckBox.cs, RadioButton.cs, BindingSource.cs,
11571           DataGridColumnStyle.cs: Remove warnings.
11572
11573 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11574
11575         * Menu.cs: MergeMenu: Check menu argument for null before looping over
11576           it.
11577         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
11578           visibility of mdi child forms. FormSizeChangedHandler: update the
11579           maximized size if size has changed while maximized.
11580         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
11581           creating the handle.
11582         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
11583           avoid creating the handle if not created.
11584         * XplatUI.cs: Update debug output.
11585         * XplatUIStructs.cs: Added ToString's for a couple of structs.
11586
11587 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
11588
11589         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
11590         ProcessCmdKey().
11591         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
11592         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
11593         Implement keyboard shortcuts.
11594
11595 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
11596
11597         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
11598         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
11599         ColorDialog and all derived classes.
11600
11601 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
11602
11603         [ Fixes bug #79828 ]
11604
11605         * ToolBar.cs:
11606         - Rename ToolBarButtonInfor to ToolBarItem.
11607         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
11608         - Maintain an array of ToolBarItem, used instead of ToolBarButton
11609         collection to be able add same button more than one time on a toolbar.
11610         - Refactory all properties and methods to use ToolBarItem. 
11611
11612         * ToolBarButton.cs: 
11613         - Remove all propeties and methods that is now in ToolBarItem.
11614         - Rectangle propery now gets the rectangle from first ToolBarItem to
11615         mimic win32 behavior.
11616         - Size calculation and layout methods also removed.
11617
11618         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
11619         ToolBarItem instead of ToolBarButton to right drawing buttons when
11620         same button/separator was added more than one time to ToolBar.
11621
11622         * ThemeNice.cs: Same as above. 
11623
11624 2007-03-15  Andreia Gaita  <avidigal@novell.com>
11625
11626         * XplatUIX11.cs: Fire extra MouseMove events right after
11627         MouseDown and MouseUp, emulating win32's <censored> behaviour
11628         for apps that rely on it.
11629
11630 2007-03-15  Jackson Harper  <jackson@ximian.com>
11631
11632         * TextControl.cs:
11633         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
11634         it is drawn on the controls client window and there is no NC
11635         area.
11636         - Set the background color to gray on 2.0 when we are readonly.
11637
11638 2007-03-15  Chris Toshok  <toshok@ximian.com>
11639
11640         [ Fixes bug #81144 ]
11641         
11642         * XplatUIX11.cs: implement VirtualScreen independently of
11643         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
11644         property.
11645
11646 2007-03-15  Chris Toshok  <toshok@ximian.com>
11647
11648         * Hwnd.cs: add an internal field for the cached_window_state.
11649
11650         * XplatUIX11.cs: cache the window state, invalidating the cache
11651         (and thus re-querying the X server) only when we see an update to
11652         the _NET_WM_STATE property.
11653
11654 2007-03-15  Chris Toshok  <toshok@ximian.com>
11655
11656         * BindingSource.cs: get a lot of the unit tests working.
11657
11658 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
11659
11660         * Control.cs: Modify UpdateStyles to store distances when bounds >=
11661         0 instead of just bounds > 0.  [Fixes bug #80912]
11662
11663 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
11664
11665         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
11666         and methods.
11667
11668 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
11669         
11670         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
11671         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
11672         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
11673         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
11674
11675 2007-03-15  Chris Toshok  <toshok@ximian.com>
11676
11677         [ Fixes #81101 ]
11678         
11679         * Control.cs: add Ivan's fix for 81101, with a slight modification
11680         - you can set control.Target to null.
11681
11682 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
11683
11684         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
11685         HideDropDown, use Hide instead to prevent an NRE.
11686         [Fixes bug #81147]
11687
11688 2007-03-14  Jackson Harper  <jackson@ximian.com>
11689
11690         * TextBoxBase.cs: Mess with the creation stuff a little. We need
11691         to calculate the document before the handle is created, in some
11692         cases. (Actually just one case).
11693
11694 2007-03-14  Jackson Harper  <jackson@ximian.com>
11695
11696         * TextBoxBase.cs: Need to display the caret after letting the base
11697         wndproc handle the focus methods, because the caret display
11698         methods check the focus state.
11699         - Try to display the caret after updating it's position with SelectWord.
11700         - Don't need to do an immediate update on this recalc, since there
11701         will be an invalidate anyways.
11702
11703 2007-03-14  Jackson Harper  <jackson@ximian.com>
11704
11705         * TreeView.cs: Some workarounds so that we can match event order a
11706         little better.
11707
11708 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
11709
11710         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
11711         #80803. Avoid NullReferenceException when Control does not have
11712         parent. Fixed different blinkstyle issues. Only subscribe to Tick
11713         event a single time. Only draw error icon when control is created and
11714         visible. Fixes failing unit tests.
11715
11716 2007-03-14  Andreia Gaita  <avidigal@novell.com>
11717
11718         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
11719         Selecting events. Fire Leave and Enter events when changing tabs.
11720
11721 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
11722
11723         * TreeView.cs: Add TreeViewNodeSorter.
11724         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
11725
11726 2007-03-14  Chris Toshok  <toshok@ximian.com>
11727
11728         * Form.cs: go ahead and remove the RecreateHandles that jpobst
11729         removed earlier and I had him add back it.  It turns out metacity
11730         *does* in fact handle the MOTIF_WM_HINTS property changing, it
11731         just doesn't redraw the window titlebar until you resize the
11732         window.  This also means we aren't recreating the entire window
11733         hierarchy on X when you change this property.  And it looks better
11734         on windows, too.
11735
11736 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11737
11738         * ListViewItem.cs:
11739         * ListView.cs: Collecting selection information
11740         is now done in SelectedIndexCollection rather than in
11741         SelectedListViewItemCollection. This is done so we can
11742         have the selection information code in one single place
11743         (virtual mode selection information entirely depends on
11744         SelectedIndexCollection).
11745
11746 2007-03-13  Miguel de Icaza  <miguel@novell.com>
11747
11748         * ErrorProvider.cs: Add stubs for ISupportInitialize
11749
11750 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11751
11752         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
11753         in the right order with the right values, from the Checked property, 
11754         just as MS does (instead of triggering them from ListView).
11755
11756         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
11757
11758 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11759
11760         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
11761         the correct handler in OnItemCheck method (ItemCheckEventHandler 
11762         instead of EventHandler). This used to throw an InvalidCastException.
11763
11764 2007-03-13  Jackson Harper  <jackson@ximian.com>
11765
11766         * TextBoxBase.cs: Calculate the document before the handle is
11767         created, so there isn't an extra invalidate called.
11768
11769 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
11770
11771         * Form.cs: Don't set owner in ShowDialog until we are sure
11772         that we aren't going to throw an exception.  [Fixes bug #80773]
11773
11774 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
11775
11776         * TreeView.cs: Make it compile.
11777
11778 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
11779
11780         * Control.cs: Another place we don't call SizeFromClientSize.
11781         * Form.cs: Another place we don't call SizeFromClientSize.
11782         [Fixes bug #81125]
11783
11784 2007-03-12  Jackson Harper  <jackson@ximian.com>
11785
11786         * TreeView.cs: Basically emulating some strangness here with
11787         exanding nodes and setting node positions when windows aren't
11788         created.
11789         - Also attempting to walk the node tree less than previously, and
11790         just use visible order calculations for determining offsets.
11791         - oops made scrolling backwards.
11792         * TreeNode.cs: We need to start nodes with a zero visible order,
11793         because the order calcs are based on the first nodes order.
11794
11795 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
11796
11797         * Form.cs: Don't exit the program if RecreateHandle is called on
11798         the main form.
11799
11800 2007-03-12  Chris Toshok  <toshok@ximian.com>
11801
11802         * XEventQueue.cs: remove the use of PostQuitState.
11803
11804         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
11805         WM_QUIT message in GetMessage, return false (and if we're in the
11806         nested WaitForHwndMessage, repost the WM_QUIT message).
11807
11808 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
11809
11810         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
11811         or the MaximizeBox properties.  [Part of bug #80640]
11812
11813 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
11814
11815         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
11816         no links.
11817
11818 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
11819
11820         * ToolStripItem.cs: Fix some tests I broke by checking Visible
11821         instead of visible.
11822
11823 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
11824
11825         * FileDialog.cs: Use text of File name combobox to determine what
11826         files the user selected. Added tokenizer to parse the file names.
11827         Fixes bug #81123.
11828
11829 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
11830
11831         * Control.cs: We can't call SizeFromClientSize in the constructor,
11832         but we still need to do the same work, so make an internal version.
11833         [Fixes bug #80621]
11834
11835 2007-03-12  Jackson Harper  <jackson@ximian.com>
11836
11837         * TreeView.cs:
11838         * TreeNode.cs:
11839         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
11840         IsExpanded.
11841
11842 2007-03-12  Jackson Harper  <jackson@ximian.com>
11843
11844         * TextBoxBase.cs: Now that the handles are being created a little
11845         later, we need to make sure that the document is recalculated when
11846         the handle is created.
11847
11848 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
11849
11850         * Theme.cs: GetLinkFont abstract method added.
11851         
11852         * LinkLabel.cs: 
11853         - Remove CalcTrimRectangle, no longer needed.
11854         - Factor also remove, position issues must be fixed in libgdiplus.
11855         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
11856         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
11857         care about font used to draw links.
11858         - Set TabStop to true when control is "Selectable", control is selectable
11859         when have one or more links. Fixes #80501 (test case is also added).
11860         - Set the LinkArea values after links change, LinkArea values must be
11861         based in first link position and size, a test case was created.
11862         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
11863         the attribute must be true LinkArea.Length > 0. The same was applied to
11864         TabStop.
11865         
11866         * ThemeWin32Classic.cs: 
11867         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
11868         in draw method.
11869         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
11870         color change.
11871         - Draw focus rectangle for every parts focused, including parts that 
11872         is on another line, its because regions returns various rectangles
11873         and not only one. Needed to mimic W32 look.
11874         - Uses Graphics.Clip to delimite region painted, it mean that now 
11875         complete text is passed to DrawString, with this we solve layout
11876         issues without create another text renderer.
11877         - Uses Region.Intersect to fix some flickers problems, now only needed
11878         parts will redrawed.
11879         - This changes fixes #79614 and some other unreported issues, on Linux 
11880         some layout problems still remain, the problem is under 
11881         MeasureCharacterRanges but it is an libgdiplus bug.
11882
11883 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
11884
11885         * TextBox.cs: Set for foreground color.
11886         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
11887         this is already done in Control.
11888
11889 2007-03-10  Jackson Harper  <jackson@ximian.com>
11890
11891         * TextBox.cs: Set the background color, but reset the
11892         backcolor_set flag which is just for the user setting the
11893         background color.
11894
11895 2007-03-09  Chris Toshok  <toshok@ximian.com>
11896
11897         * Control.cs: really remove the call to XplatUI.SetVisible from
11898         CreateHandle(), like I said I did when I merged the branch.
11899
11900         * BindingSource.cs: implement some more of this stuff.
11901
11902 2007-03-09  Jackson Harper  <jackson@ximian.com>
11903
11904         * TextBox.cs: Don't explicitly set our background colors.
11905         * TextControl.cs:
11906         * TextBoxBase.cs: Draw readonly text.
11907         - Need to invalidate when backcolor or readonly are changed.
11908         
11909 2007-03-09  Jackson Harper  <jackson@ximian.com>
11910
11911         * TextBoxBase.cs: Don't set the forecolor until the handle is
11912         created.
11913         - Do not raise OnPaint, and removed some old debug code.
11914
11915 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
11916
11917         * ScrollableControl.cs: Fix mouse wheel scrolling.
11918
11919 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
11920
11921         * Control.cs: Wire up MouseDoubleClick event.
11922
11923 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
11924
11925         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
11926         top or bottom.
11927         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
11928         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
11929         item is added.  This logic was moved to ToolStrip.OnItemAdded.
11930         [Fixes bug #81090]
11931
11932 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11933
11934         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
11935
11936 2007-03-08  Jackson Harper  <jackson@ximian.com>
11937
11938         * TreeView.cs: Show the correct image for selected node (this used
11939         to work, not sure how the code got deleted). Also implemented 2.0 feature
11940         SelectedImageKey.
11941
11942 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11943
11944         * ListView.cs:
11945         * ListViewItem.cs: Cache index in items when retrieving them
11946         in VirtualMode.
11947
11948 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
11949
11950         * ToolStripItem.cs: Don't return the explicit_size if we are using 
11951         AutoSize.  Fixes invalidation issue when user has explicitly set a
11952         size and has AutoSize = true.
11953
11954 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
11955
11956         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
11957
11958 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
11959
11960         * DataGridView.cs: Remove event handler from DataView when a
11961         DataTable is used as DataSource.
11962
11963 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
11964
11965         * Control.cs: Create internal setter for client_size to allow it to be
11966         set without triggering resizing code.
11967         * Form.cs: Calculate client_size in constructor, only change client_size
11968         in FormBorderStyle property if Handle has been created.
11969         [Fixes #80574, #80791]
11970
11971 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
11972
11973         * SystemInformation.cs: Add TerminalServerSession.
11974
11975 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
11976
11977         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
11978         TreeView code.
11979
11980 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
11981
11982         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
11983         Handle before we were supposed to.  Now checks ActivateOnShow property
11984         in Control.
11985         * Control.cs: Add internal ActivateOnShow property.
11986         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
11987         for ActivateOnShow.
11988         * Hwnd.cs Remove no longer needed no_activate field.
11989
11990 2007-03-07  Jackson Harper  <jackson@ximian.com>
11991
11992         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
11993         2.0 properties
11994         * DrawTreeNodeEventHandler.cs: Add
11995         * DrawTreeNodeEventArgs.cs: Correct default value.
11996         
11997 2007-03-07  Chris Toshok  <toshok@ximian.com>
11998
11999         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
12000         to be called before NativeWindow.WndProc.  Put the HwndCreating
12001         magic there to hook up our Hwnd's to handles.
12002
12003 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
12004
12005         * DataGridView.cs: Comment out debug code.
12006
12007 2007-03-07  Chris Toshok  <toshok@ximian.com>
12008
12009         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
12010         to make the rest of the world happy]
12011
12012         * Control.cs (CreateHandle): there's no need to call
12013         XplatUI.SetVisible here, it's effectively done by
12014         XplatUI.CreateWindow on X now, and always was on windows.
12015
12016         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
12017         shortcircuit out of the loop if we have a message loop running on
12018         this thread.
12019
12020         [Changelog from merge]
12021
12022         2007-03-05  Chris Toshok  <toshok@ximian.com>
12023
12024                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
12025                 causes handle creation.
12026
12027         2007-02-28  Chris Toshok  <toshok@ximian.com>
12028
12029                 * ApplicationContext.cs: Add a flag to make sure we only raise the
12030                 ThreadExit event once (ExitThreadCore can be indirectly called
12031                 from a few places.)  I don't like the additional flag, but it
12032                 makes the event ordering/count correct.
12033
12034                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
12035                 without locking the collection.  An enumerator doesn't give us any
12036                 protection from modification anyway.  Lock the thread hash and
12037                 replace the complicated enumerator loop with a foreach.
12038                 (Application.CloseForms): make internal so it can be called from
12039                 ApplicationContext.  This should probably be moved to MWFThread.
12040                 (Application.ExitThread): don't call MWFThread.Current.Exit()
12041                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
12042                 when the runloop exits (in response to WM_QUIT.)
12043                 (Application.RunLoop): add a comment (and check) for
12044                 context.MainForm being null after setting context.MainForm.Visible
12045                 = true.  This is because you're perfectly free to dispose of a
12046                 form in VisibilityChanged.  Chalk this up to another case where we
12047                 need to synchronously generate WM_ACTIVATE from Control.Show.
12048                 Also, add handling for WM_QUIT here so we'll exit the loop.
12049                 
12050                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
12051                 fact that we don't wait if we're only unmapping the whole_window
12052                 makes me a bit nervous, but it doesn't seem to cause any problems
12053                 yet.
12054
12055                 also, add a comment about the stupid, broken and wrong resetting
12056                 of PostQuitState to false in GetMessage().
12057
12058                 In PostQuitMessage, we need to add a WM_QUIT message to the
12059                 thread's queue.  We use the FosterParent to get the right
12060                 handle/hwnd/queue.
12061
12062                 Lastly, in SetVisible, we need to unmap both windows, since the
12063                 waiting only happens when we're unmapping the client window.  So
12064                 now, the *only* time we unmap just the whole_window is in the hack
12065                 for resizing a control to 0,0.
12066                 
12067         2007-02-21  Chris Toshok  <toshok@ximian.com>
12068
12069                 * Application.cs (CloseForms): rewrite this so that we don't
12070                 modify the list while we're traversing it.
12071
12072         2007-02-20  Chris Toshok  <toshok@ximian.com>
12073
12074                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
12075                 of OnHandleCreated.
12076                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
12077                 handle is created.  otherwise we'll create it here.
12078                 (VerticalScrollEvent): same here.
12079
12080                 * Application.cs (CloseForms): call Form.Dispose, don't post
12081                 WM_CLOSE_INTERNAL.
12082
12083                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
12084                 here. Application should Dispose() of the Form's.
12085
12086                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
12087                 WM_DESTROY as well.
12088                 (MapWindow,UnmapWindow): only actually do the waiting for
12089                 SHOWWINDOW if the control we're dealing with is a Form.
12090                 (CreateWindow): if the control isn't a form, SendMessage
12091                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
12092
12093                 * Control.cs (SetVisibleCore): always use is_visible here, not
12094                 value.  If we use value, we can end up re-setting something
12095                 visible if, for instance, you do Control.Hide() in a delegate
12096                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
12097
12098         2007-02-20  Chris Toshok  <toshok@ximian.com>
12099
12100                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
12101                 the message we need.  PeekMessage returning false should not be a
12102                 condition under which we exit the loop.
12103
12104         2007-02-15  Chris Toshok  <toshok@ximian.com>
12105
12106                 * Control.cs (Refresh): only refresh if we've got a handle and are
12107                 visible.
12108                 (CreateAccessibilityInstance): CreateControl() here.
12109                 (UpdateChildrenZOrder): complicate the code loop even more by
12110                 taking into account controls that haven't had their handle
12111                 created, and those that aren't visible.  But on the flip side,
12112                 simplify the code by splitting it into two loops.  one which
12113                 builds up the list of child controls we're interested in, and the
12114                 other that sets the z order of those children.
12115
12116         2007-02-14  Chris Toshok  <toshok@ximian.com>
12117
12118                 * Control.cs: Control.AccessibilityObject causes the control to be
12119                 created, not just the handle.
12120
12121         2007-02-14  Chris Toshok  <toshok@ximian.com>
12122
12123                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
12124                 problem on X where a window might have its handle created (and be
12125                 visible) while the window is unmapped.  calling XConfigureWindow
12126                 on an unmapped window is bad, and generates X errors.
12127
12128         2007-02-13  Chris Toshok  <toshok@ximian.com>
12129
12130                 * Control.cs (CreateHandle): don't loop over our children setting
12131                 their parent here.  do it when in WndProc when we're shown.
12132                 (UpdateChildrenZOrder): make this internal so we can call it from
12133                 ScrollableControl.
12134                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
12135                 creating its handle.  Also, remove the calls to PerformLayout from
12136                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
12137                 OnVisibleChanged only seems to be called directly here for the
12138                 toplevel control.  It's propagated down the window hierarchy by
12139                 calls to child.OnParentVisibleChanged.
12140                 (OnVisibleChanged): don't do layout here - it's done (oddly
12141                 enough, according to a glance at stack traces on ms.net..) in
12142                 ScrollableControl.
12143                 
12144                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
12145                 z order of our children before calling PerformLayout.
12146
12147         2007-02-12  Chris Toshok  <toshok@ximian.com>
12148
12149                 [big change, fixes #80020]
12150                 
12151                 * AccessibleObject.cs: we need to make owner internal again to fix
12152                 some of ControlAccessibleObject.
12153
12154                 * Control.cs: lots of changes here.  add support for WM_CREATE,
12155                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
12156                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
12157                 we create child controls.  leave the MonoTODO's for the
12158                 accessibility calls, but fix the exceptions so the tests pass.
12159
12160                 Add the InvalidOperationExceptions to Invoke methods, and remove a
12161                 couple of InvokeInternal methods we aren't using.
12162                 
12163                 Also, add a couple of CreateHandle calls in places where we know
12164                 the handles are being created but our code doesn't reference
12165                 .Handle.
12166
12167                 Make SetVisibleCore call OnVisibleChange if the handle isn't
12168                 created.  If the handle is created, we rely on XplatUI.SetVisible
12169                 generating the event synchronously.
12170                 
12171                 Lastly, make sure we don't use this.Handle inside CreateHandle,
12172                 because we can call back into client (and that code can dispose of
12173                 the control).
12174
12175                 * XplatUIStructs.cs: misc/cleanup.
12176
12177                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
12178                 although we don't populate the wParam properly.
12179                 (CreateWindow): generate WM_CREATE.
12180                 (MapWindow,UnmapWindow): make these calls synchronous, at great
12181                 performance expense (particularly in the unmap case), to match
12182                 win32 behavior.
12183
12184                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
12185                 to call it.
12186                 (set_MdiParent): don't recreate the handle unless it's been
12187                 created already.
12188                 
12189                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
12190                 it's created.
12191
12192                 * NativeWindow.cs: this is probably the weirdest part of the
12193                 patch.  We need a way to link up the window being created to the
12194                 WM_CREATE message.  Since we can only be creating one window at a
12195                 time on a given thread, we keep track of a per-thread reference so
12196                 we can dispatch it properly.  We also need to keep track of the
12197                 Hwnd currently being created so that the win32 backend doesn't
12198                 have problems.
12199                 
12200                 * XplatUIWin32.cs: a similar change to the one we made in
12201                 NativeWindow.cs.
12202
12203 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
12204
12205         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
12206         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
12207         to draw the menu shortcut string.
12208
12209 2007-03-07  Jackson Harper  <jackson@ximian.com>
12210
12211         * TreeNode.cs: Add the 2.0 collapse method.
12212
12213 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
12214
12215         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
12216
12217 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
12218
12219         * DataGridView.cs: Change DataSource will clear column and row
12220         lists. Call Invalidate() to reflect DataSource change.
12221
12222 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
12223
12224         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
12225         and a new row is added to it.
12226
12227 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
12228
12229         * DataGridView.cs: Add columns when DataSource is en empty list but
12230         is a System.Data.DataView (from a System.Data.DataTable).
12231
12232 2007-03-06  Andreia Gaita  <avidigal@novell.com>
12233
12234         * Label.cs: Implement AutoEllipsis (2.0)
12235
12236 2007-03-06  Jackson Harper  <jackson@ximian.com>
12237
12238         * TreeView.cs: Implement 2.0 TopNode setter property.
12239         - Use a local var instead of the skipped_nodes field for computing
12240         how many nodes to skip.  Otherwise we won't scroll because the
12241         valuechanged handler checks if skipped_nodes is equal to the new
12242         value.
12243         - Implement 2.0 Sort method.
12244         - Add useless 2.0 DoubleBuffer property
12245         - Implement 2.0 LineColors property.  Lets you change the color of
12246         the lines in the tree. Terribly useful for creating non cohesive
12247         desktops.
12248         - Implement 2.0 image key feature.
12249
12250 2007-03-06  Jackson Harper  <jackson@ximian.com>
12251
12252         * TreeView.cs: We can't get the bounds of the nodes before raising
12253         the AfterSelect event, because that event could change the node's
12254         bounds (scrolling, font change, etc).
12255
12256 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12257
12258         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
12259         * Form.cs: Don't recreate handle when creating FormWindowManager, just
12260           update window styles. In CreateParams us VisibleInternal instead of
12261           VIsible to get the actual visible flag set for this form.
12262         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
12263           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
12264           handle the case when the form is already maximized, in which case
12265           it should be restored. Fixes #81043.
12266
12267 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12268
12269         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
12270
12271 2007-03-05  Jackson Harper  <jackson@ximian.com>
12272
12273         * TreeViewHitTestInfo.cs: implement.
12274
12275 2007-03-05  Jackson Harper  <jackson@ximian.com>
12276
12277         * InternalWindowManager.cs: class status fix.
12278
12279 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12280
12281         * InternalWindowManager.cs: All windows that have a parent
12282         are confined to their parent when they're being moved.
12283         Fixes #80822.
12284
12285 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
12286
12287         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
12288         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
12289
12290 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12291
12292         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
12293           buttons invisible before deciding which ones should be visible
12294           (fixes minimize/maximize buttons showing up in toolwindows). Remove
12295           an unused variable.
12296         * InternalWindowManager.cs: Remove warning.
12297
12298 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12299
12300         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
12301         to throw an InvalidOperationException is virtual mode is being used.
12302
12303 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
12304
12305         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
12306         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
12307         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
12308         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
12309         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
12310         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
12311
12312 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12313
12314         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
12315           driver.KeyboardDelay from XplatUI.KeyboardDelay 
12316         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
12317           (patch by Sergey Volk)
12318
12319 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12320
12321         * ToolWindowManager.cs: Added, contains logic for
12322           tool windows.
12323         * CreateParams.cs: Add a few helper methods and an
12324           internal variable to know which control the CreateParams belongs
12325           to.
12326         * Control.cs: Call Form.ChangingParent when the
12327           parent is about to be changed.
12328         * XplatUIX11.cs: DeriveStyles (): Set
12329           caption_height for all windows that have captions and are children.
12330           Update to use ToolWindowManager instead of InternalWindowManager
12331           for ToolWindows.
12332         * XplatUIWin32.cs: Set fake window styles for all
12333           windows that have window managers.
12334         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
12335           now duplicated for mdi windows when they are
12336           maximized, first for the buttons the window itself has, then for
12337           the buttons that appear in the menu bar. Makes things a little
12338           easier). Updated UpdateWindowDecorations, SetWindowState and the
12339           mouse eventhandlers accordingly.
12340         * Form.cs: Add ChangingParent (), contains the
12341           logic of what should happen when the parent changes. In MdiParent
12342           don't set things that ChangingParent () is doing. When handling
12343           WM_CLOSE, we can close the form if there are any other modal forms
12344           and the current form is a descendent of the modal form.
12345         * InternalWindowManager.cs: A lot of refactoring,
12346           the title buttons are now extracted to a separate container class
12347           that takes care of all button code (clicks, tooltips, etc). Moved
12348           Iconic|Maximized|Normal Bounds properties to this class from
12349           MdiWindowManager, so that the window state logic can succeed for
12350           other than mdi wm's. Implemented general window state change logic.
12351           Moved CreateButtons to ThemeWin32Classic, since the theme might
12352           override which buttons are available when as well as the exact
12353           location.
12354         * FormWindowManager.cs: Added, contains logic for
12355           normal forms.
12356         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
12357           which buttons go where (and if they are at all visible). 
12358           Removed special handling of maximized windows, since they aren't special. 
12359           In DrawManagedWindowDecorations don't try to draw the text if it is
12360           empty.
12361         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
12362           use whatever the wm gives us.
12363
12364 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
12365
12366         * ButtonBase.cs: Add 2.0 properties.
12367         * Button.cs: Override Draw for 2.0.
12368         * Control.cs: Add Entered and Selected properties.
12369         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
12370         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
12371         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
12372         buttons.
12373         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
12374
12375 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
12376
12377         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
12378
12379 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
12380
12381         * XplatUIWin32.cs: Register a new class with Windows each time we get
12382         a new ClassStyle.  [Fixes bugs #79432, #80817]
12383         * Controls.cs: Set the correct ClassStyle in CreateParams.
12384         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
12385
12386 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
12387
12388         * ListView.cs: Add fireEvent argument to ReorderColumn since the
12389         ColumnReordered event must not be signaled when modifying DisplayIndex
12390         of a ColumnHeader. Added internal ReorderColumns method which takes
12391         care of drawing, and updating the internal DisplayIndex of the
12392         ColumnHeader. Added AddColumn method which is invoked from
12393         ColumnHeaderCollection when adding or inserting columns, and which
12394         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
12395         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
12396         Recalculated dispay indices after removing a ColumnHeader.
12397         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
12398         match MS. Allows last display index to be returned after ListView
12399         is disposed. Update actual location of ColumnHeader when DisplayIndex
12400         is modified.
12401
12402 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
12403
12404         * LinkLabel.cs: Improve CalcTrimRectangle.
12405         
12406         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
12407
12408 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
12409
12410         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
12411         get rectangle as a result value.
12412
12413 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
12414
12415         * LinkLabel.cs: Theres some diferences between rectangle return from 
12416         MeasureCharacterRanges and the area used for DrawString to fix this 
12417         CalcMeasurementFactor method was created, it calcules the diferences
12418         to be use later to adjust rectangle in draw operations. Fixes #80473.
12419         
12420         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
12421         to adjust draw rectangle.
12422
12423 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
12424
12425         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
12426         text and some other changes to reduce and optimize source code.
12427
12428 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
12429
12430         * RadioButton.cs: Implement 2.0 event.
12431         * RelatedImageListAttribute.cs: Implement new class.
12432
12433 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
12434
12435         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
12436
12437 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
12438
12439         * CheckBox.cs: Implement 2.0 functionality.
12440
12441 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12442
12443         * ListView.cs: Refactor Add and AddRange methods of
12444         ListViewItemCollection, to not update the ListView
12445         everytime an item is added in AddRange. Also move the update
12446         code to a new CollectionChanged method, and call it
12447         from other methods that need it as well (this should also fix some
12448         bugs when Sorting is used).
12449
12450 2007-02-27  Jackson Harper  <jackson@ximian.com>
12451
12452         * TextControl.cs: Try to never let the caret stay in a non-text
12453         tag.
12454         * TextBoxBase.cs: Update the caret.
12455
12456 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
12457
12458         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
12459         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
12460         delete POINT structure, duplicate of one in XplatUIStructs.
12461         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
12462
12463 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
12464
12465         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
12466         edit box since otherwise the Label would immediately be set (even if
12467         the user did not modify the label). In OnKeyDown set Handled to true
12468         if Return or Escape was pressed. In ColumnHeaderCollection unlink
12469         columns that are to be removed. In ListViewItemCollection unlink items
12470         that are to be removed.
12471
12472 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
12473
12474         * TextRenderer.cs: If we set a GDI clip region, we need to clear
12475         it when we are done.  [Fixes bug #80949]
12476
12477 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
12478
12479         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
12480
12481 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12482
12483         * ListView.cs: I forgot to commit the changes for ListView 
12484         in my previous patch.
12485
12486 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
12487
12488         * Clipboard.cs: Partially implement an overload of SetDataObject.
12489         * Form.cs: Implement ShowWithoutActivation.
12490         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
12491
12492 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12493
12494         This is a first set of changes to make the Virtual mode works,
12495         by avoiding the retrieval of ListViewItem instances until
12496         draw time.
12497
12498         * ListView.cs: Store item position in the ListView instead of the
12499         ListViewItem, this way we don't request the Bounds property of
12500         ListViewItem inside the ListView calculations, as well as cache the item
12501         size in item_size field. Store indexes instead of ListViewItem
12502         instances in the matrix used by icon view. Add a ItemMatrixLocation
12503         struct to hold the row and col info of the matrix info.
12504
12505         * ListViewItem.cs: Don't store the location anymore, and only cache
12506         the rectangles for GetBounds. Use the ListView.GetItemLocation
12507         method to retrieve the actual location.
12508
12509 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
12510
12511         * TextRenderer.cs: Add clipping support, thanks to George.
12512         [Fixes bug #80949]
12513
12514 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
12515
12516         * ListViewItem.cs: Cancel label edit when item is removed from 
12517         ListView.
12518         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
12519         event before the edit textbox is displayed.  Added CancelEdit method
12520         which is used end to editing while ignoring the value set by the
12521         user. In EndEdit, set focus to ListView to avoid losing focus to
12522         other controls. In ListViewItemCollection.Clear, cancel editing of
12523         any of the items.  In Remove, cancel editing of item being removed.
12524         Avoid udplicate code by modifing RemoveAt to invoke Remove.
12525
12526 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
12527
12528         * FileDialog.cs: Update FSEntry when move is successful. Fixes
12529         bug #80948.  
12530
12531 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
12532
12533         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
12534         compatible with non X11 systems. Fixes #80901.
12535
12536 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
12537
12538         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
12539         whether the item should be unselected and reselect. We do no want this
12540         when we're starting to edit the label. Do not fire the 
12541         SelectedIndexChanged event from ListView when its already been fired
12542         by modifying ListViewItem.Selected. Fixes bug #80943.
12543
12544 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
12545
12546         * TextRenderer.cs: Previos commit logic was backwards.
12547
12548 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
12549
12550         * TextRenderer.cs: Don't add padding on MeasureText if we were
12551         sent the NoPadding flag.
12552
12553 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
12554
12555         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
12556         after DrawButton. To prevent image overlaps button borders SetClip and 
12557         ResetClip added before and after draw image. Fixes #79129.
12558
12559 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
12560
12561         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
12562         window size, it fix problem when you run under win32 that theres
12563         Size diferent than ClientSize. Also fix controls size and positions
12564         to mimic Win32. Fixes #80837.
12565
12566 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
12567
12568         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
12569         menu area to fix some problems for non X11 systems. Fixes #80613.
12570
12571 2007-02-22  Jackson Harper  <jackson@ximian.com>
12572
12573         * TreeNode.cs: When a node is expanded, set its is_expanded flag
12574         even if it doesn't have any children.
12575
12576 2007-02-22  Jackson Harper  <jackson@ximian.com>
12577
12578         * TreeView.cs: Calculate the top node 'on the fly', this
12579         eliminates issues where you need to click on the tree before
12580         scrolling it to get the top node computed correctly.
12581         * TreeNodeCollection.cs: We don't need to mess with the top node
12582         anymore.
12583
12584 2007-02-22  Jackson Harper  <jackson@ximian.com>
12585
12586         * DataGridViewRow.cs: Fix typo so height can actually be set.
12587         Patch by Peter Grimm.
12588
12589 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
12590
12591         * FileDialog.cs: Fixed support for renaming files and directories.
12592         * ListView.cs: Do not lose focus when edit is canceled. Process
12593         Escape as regular key (to prevent closing of dialogs).
12594
12595 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
12596
12597         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
12598         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
12599
12600 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
12601
12602         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
12603         did not modify label.
12604         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
12605         modified the text. Reset Label when user presses Escape in edit mode.
12606         Move focus to ListView after having cancelled or finished editing the
12607         label.
12608
12609 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
12610
12611         * ComboBox.cs: Removed unnecessary initializations. Marked items field
12612         private. Clear textbox when Text is set to null and SelectedIndex is
12613         already -1.
12614         * FileDialog.cs: Removed unnecessary initializations. Removed 
12615         workarounds for ComboBox bugs that are now fixed. Modified
12616         DefaultExt, InitialDirectory and Title property to change null to
12617         zero-length string in getters. Avoid directly accessing fields.
12618
12619 2007-02-20  Jackson Harper  <jackson@ximian.com>
12620
12621         * TextControl.cs: Remove RecalAlignments call, that was some
12622         debugging leftovers.
12623         - Don't use the line indent when we shouldn't.
12624         * RichTextBox.cs: Add support for paragraph left indents.
12625
12626 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12627
12628         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
12629         Seems like the class status pages doesn't catch params differences.
12630
12631 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
12632
12633         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
12634
12635 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
12636
12637         * ComboBox.cs: Setting Text should have no effect if item text of
12638         selected item exactly matches value. First lookup text using
12639         case-sensitive comparison, and fallback to case-insensitive comparison.
12640         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
12641         allow startIndex to be last index. Changed ArgumentOutOfRangeException
12642         paramname to match MS. Restart from first item if string is not found
12643         after startIndex. Fixed paramname of ArgumentNullException that is
12644         thrown for null value in ObjectCollection.Contains.
12645
12646 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
12647
12648         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
12649
12650 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12651
12652         * ListControl.cs: In SelectedValue use value.Equals to compare for
12653         equality instead of ==, otherwise it will fail for strings.
12654         Fixes #80794.
12655
12656 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12657         
12658         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
12659         since the caret won't show up unless ShowSelection is true. 
12660         Fixes #80795.
12661
12662 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12663
12664         * Application.cs: When disabling all forms but the main form, do not
12665           disable any descendants of the main form (such as mdi children or
12666           other parented forms). Fixes #80822 on Windows.
12667         * Form.cs: If we have a parent, set the WS_CHILD style.
12668         * Control.cs: Update the window styles if the control whose parent has
12669           changed is a form (the WS_CHILD style has to be switched).
12670
12671 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
12672
12673         * XplatUIStructs.cs: MsgUIState structure added.
12674
12675 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
12676
12677         * FileDialog.cs: Removed need for separate fileName field. On 2.0
12678         profile, do not check filename(s) for illegal character if filename(s)
12679         were set non-interactively but always check on 1.0 profile. Fixed NRE
12680          in DefaultExt and only strip off first leading dot. Improve exception
12681         message when invalid Filter is set. Do not ignore InitialDirectory if
12682         it does no exist. Store specified Title, and if empty use default
12683         title (depending on type of dialog). Added an internal DialogTitle 
12684         property for retrieving dialog title. Fixed logic of displayed dir to
12685         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
12686         string as its buggy.
12687         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
12688         FileName is a zero-length string (it can never be null). Override 
12689         DialogTitle property to set default title of dialog box.
12690         * SaveFileDialog.cs: Override DialogTitle property to set default
12691         title of dialog box.
12692
12693 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
12694
12695         * FileDialog.cs: Modify default text of filename and filetype labels
12696         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
12697         after we've updated the SelectedIndex. Fixes part of bug #80887.
12698         * SaveFileDialog.cs: Set text of filetype label.
12699
12700 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12701
12702         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
12703         label field. Needed by latest Jackson's fixes for ListView.
12704
12705 2007-02-16  Andreia Gaita  <avidigal@novell.com>
12706
12707         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
12708         print preview images.
12709
12710 2007-02-16  Jackson Harper  <jackson@ximian.com>
12711
12712         * ListView.cs: Make AfterLabelEdit work correctly.
12713         * FileDialog.cs: After changing the name of the folder, we have to
12714         make sure that it is created, or that we pop up an error because
12715         it already exists.
12716
12717 2007-02-16  Jackson Harper  <jackson@ximian.com>
12718
12719         * X11Dnd.cs: Implement aliases on mime handlers, so things like
12720         System.String are mapped to text.
12721         - Handle dataobjects, getting all the possible formats out of them
12722         - We dont need the drag event args before we give feedback. This
12723         allows feedback cursors to be immediate before selections have
12724         been converted.
12725
12726 2007-02-16  Jackson Harper  <jackson@ximian.com>
12727
12728         * TextBoxBase.cs: Modified the method for inserting images to
12729         taking a line and position instead of tag and position.
12730         * RichTextBox.cs: Handle PngBlip data by inserting the png image
12731         into the RTF file.
12732         * TextControl.cs: Allow images to be inserted as the first tag of
12733         a line.
12734         - Fix some off by one issues when we assume the first tag is a
12735         text tag, not an image tag.
12736
12737 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12738
12739         * ListView.cs: Set focus to ListView when ItemControl gets a
12740         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
12741         Fixes part of #80467.
12742
12743 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12744
12745         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
12746           validate Text input (if null or empty string reset Value to default
12747           value). Fixes #80830.
12748
12749 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12750
12751         * ListView.cs: Set owner as null for columns and items when
12752         Dispose is invoked. Fixes #80607.
12753
12754 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
12755
12756         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
12757         showing DropDowns, don't show a Grip when doing Flow layout.
12758         [This fixes the toolbox in PDN 2.72.]
12759         * ToolStripItem.cs: Add Anchor property and some internal properties to
12760         reduces needed changes to FlowLayout.
12761         * ToolStripOverflow.cs: Remove unused variable.
12762         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
12763         use it in the layout calculations.
12764
12765 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
12766
12767         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
12768         reported in #79640.
12769         
12770         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
12771         size calculation.
12772
12773 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
12774
12775         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
12776         MeasureString format, it can make button very large in some cases, it is
12777         strange but is what win32 do.
12778
12779 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
12780
12781         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
12782         size calculation.
12783
12784         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
12785         rendering, the value is based on MenuAccessKeysUnderlined.
12786
12787 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
12788
12789         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
12790         for most themes.
12791         
12792         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
12793         
12794         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
12795         and use MenuAccessKeysUnderlined instead.
12796
12797 2007-02-13  Andreia Gaita  <avidigal@novell.com>
12798
12799         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
12800         A selected control would not get a Focus call if:
12801                 - the default active control of the container is the same as
12802                   the one that was selected
12803                 - we are switching from one container to another
12804         Under these conditions, the container being selected already has
12805         an active_control, which is the same as the one being activated, 
12806         so set_ActiveControl would always return and not send the Focus
12807         call. Fix to check if the currently active control of the container
12808         is actually focused.
12809
12810 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
12811
12812         * StatusStrip.cs: Implement the spring layout.
12813         * ToolStripControlHost.cs: Make sure the hosted control's visibility
12814         always matches the host.
12815         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
12816         and TextAfterImage.
12817
12818 2007-02-13  Andreia Gaita  <avidigal@novell.com>
12819
12820         * Control.cs: Code reorganization only.
12821           - Reorganize the WndProc cases so that each case has it's own handling method, 
12822           to help with the no-line-numbering stack traces.
12823           - Formatting changes (it's vstudio's fault, really :p)
12824
12825 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12826
12827         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
12828           Thread.CurrentUICulture to match DateTimePicker's (and MS)
12829           behaviour.
12830
12831 2007-02-12  Jackson Harper  <jackson@ximian.com>
12832
12833         * RichTextBox.cs:
12834         * TextBox.cs: By default we have a non multiline document
12835         - use the multiline property instead of the internal variable
12836         * TextBoxBase.cs: Treat multiline and non multiline the same in
12837         most places.
12838         - Use the documents multiline flag instead of tracking it ourself
12839         * TextControl.cs: Attempt at getting multiline to match MS
12840         behavior.  Lines now track an offset, which is either their X or Y
12841         offset depending on whether or not we are in multiline mode.
12842         - Update all the methods to understand that lines have an X value.
12843         - Fix crash in Undo::Duplicate when empty lines are deleted.
12844
12845 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
12846
12847         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
12848         code moved to properties PreferredHeight and PreferredWidth. It solve the
12849         all problems when preferred sizes must be recalculated. Fixes #80801.
12850
12851 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
12852
12853         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
12854         font height when compatible_text_rendering is false. Partially fix #80801.
12855
12856 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
12857
12858         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
12859
12860 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
12861
12862         * Form.cs: Improved exception messages in ShowDialog.
12863
12864 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
12865
12866         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
12867         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
12868         if not set. Fixes bug #80764. Avoid accessing current_settings field
12869         directly.
12870
12871 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
12872
12873         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
12874         false.
12875
12876         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
12877         public in 2.0 and for easy maintenance and dont break compatibility it is 
12878         internal in 1.1.
12879         
12880 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
12881
12882         * ToolStripItem.cs: Implement using images from ImageList.
12883
12884 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12885
12886         * DateTimePicker.cs: Change default date-formatting culture from
12887           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
12888           seems to be the way MS does it.
12889
12890 2007-02-08  Andreia Gaita  <avidigal@novell.com>
12891
12892         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
12893         (the 6 was cut off on the right side)
12894
12895 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
12896
12897         * Form.cs: Tell MenuStrips to close when the form is clicked.
12898         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
12899         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
12900         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
12901         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
12902         support for Overflow, where items that do not fit are automatically
12903         reparented to a drop down menu.
12904         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
12905         Also: fixes bug #80747.
12906
12907 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12908
12909         * ComboBox.cs: Remove warning (unused code).
12910         * ScrollableControl.cs: Remove warning for 1.1 profile.
12911
12912 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12913
12914         * Form.cs: Remove a warning.
12915
12916 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12917
12918         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
12919           'g' specifier, not documented anywhere, but seems to always show up
12920           as a single space (might have something to do with the DateTime 'g'
12921           specifier, which is the era format, but since DateTimePicker can't
12922           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
12923           won't crash if the format has an unmatched quote. Now shows
12924           single-character formats correctly. Fixes #80744.
12925
12926 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
12927
12928         * StatusStrip.cs: Stretch property needs to call base.Stretch,
12929         not this.Stretch to fix stack overflow. [Fixes bug #80760]
12930
12931 2007-02-07  Chris Toshok  <toshok@ximian.com>
12932
12933         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
12934         background color.  it overwrites the background image we've
12935         already painted.  Fixes #80599.
12936
12937 2007-02-07  Chris Toshok  <toshok@ximian.com>
12938
12939         * DataGrid.cs: return immediately from Edit() when there are no
12940         columns.  Fixes #80662.
12941
12942 2007-02-07  Chris Toshok  <toshok@ximian.com>
12943
12944         * MessageBox.cs: fix #80625.  don't always show the Help button in
12945         2.0.  use the displayHelpButton parameter to determine if we
12946         should show it. Also, make the internal show_help field private.
12947
12948 2007-02-07  Chris Toshok  <toshok@ximian.com>
12949
12950         * Control.cs (SetVisibleCore): check in the proposed patch for
12951         80604, and set is_visible before calling CreateControl.
12952
12953 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
12954
12955         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
12956         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
12957         on it.
12958
12959 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
12960
12961         * MenuAPI.cs: hotkey_active internal field added, it is required because
12962         we need to know when hotkeys must be draw, before this change a keystate
12963         Navigating was used but we can have menu in navigating state without
12964         hotkeys. Fixes #80694.
12965         
12966         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
12967
12968 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12969
12970         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
12971           corresponding events and methods to be internal for 1.1 profile and
12972           public for 2.0 profile (required by SizeGrip).
12973         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
12974           implicit control list). Don't set the size nor the location of the
12975           SizeGrip anymore as it's not needed.
12976         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
12977           draw directly on the captured control (fixes #80656). Removed
12978           ShowGrip (it wasn't used anywhere), redraw (always true), added
12979           GetDefaultSize and GetDefaultRectangle to calculate defaults.
12980         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
12981           be called from SizeGrip.
12982
12983 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
12984
12985         * Timer.cs: Throw ArgumentException if Interval <= 0.
12986
12987 2007-02-05  Jackson Harper  <jackson@ximian.com>
12988
12989         * TreeView.cs: We need to check scrollbar visibility when window
12990         visibility is updated, because non visible trees don't ever add
12991         scrollbars.
12992         * Cursor.cs: We want the override cursor to be reset to NULL when
12993         we set current cursor to the default cursor.
12994
12995 2007-02-05  Jackson Harper  <jackson@ximian.com>
12996
12997         * TextControl.cs: Don't have crlfs when we are non multiline.
12998         - Consolidate the line position.
12999
13000 2007-02-05  Jackson Harper  <jackson@ximian.com>
13001
13002         * X11Keyboard.cs: BACK+CTRL gets a special char code.
13003
13004 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13005
13006         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
13007           handling LeaveNotify->NotifyUngrab in order to send
13008           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
13009           after calling XUngrabPointer, so we call WindowUngrabbed directly
13010           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
13011         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
13012           MouseCaptureChanged correctly. Also create handles if changing
13013           Capture (matches MS behaviour).
13014
13015 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13016
13017         * SizeGrip.cs: Make the last change 2.0 only.
13018
13019 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13020
13021         * SizeGrip.cs: If resizing and the capture is lost, revert any size
13022           changes to initial size (fixes #80597).
13023
13024 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13025
13026         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
13027
13028 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
13029
13030         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
13031           background) and only allow dragging if enabled. This way the
13032           sizegrip can be used to fill the open square that otherwise would
13033           have been shown in the bottom right corner of ScrollableControl
13034           when ScrollableControl is not suppose to support sizing.
13035         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
13036           sizegrip is shown and enabled, and hook up with necessary events.
13037
13038 2007-02-01  Chris Toshok  <toshok@ximian.com>
13039
13040         * DataGridTextBoxColumn.cs: clean up the
13041         GetFormattedString/GetColumnValueAtRow combination of functions.
13042         Also fix UpdateUI, and the initial state of
13043         IsInEditOrNavigateMode.
13044
13045         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
13046         aren't supposed to scroll the textbox here, we're supposed to
13047         scroll the datagrid.
13048
13049 2007-02-01  Chris Toshok  <toshok@ximian.com>
13050
13051         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
13052         setting the position.
13053
13054 2007-02-01  Chris Toshok  <toshok@ximian.com>
13055
13056         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
13057         here, since the most recent focus fixes keep us from generating
13058         the Leave event when our textbox gets focus.
13059         (Edit): we should be passing null for the column style's
13060         instantText parameter.
13061         
13062 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
13063
13064         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
13065         raised.  Fixes menu text/icons not showing up in PDN.
13066
13067 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13068
13069         * Control.cs: Remove code in constructor that makes every
13070         control with WS_CHILD set have initial location -1, -1.
13071
13072 2007-01-31  Jackson Harper  <jackson@ximian.com>
13073
13074         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
13075         XplatUIX11.
13076         * XplatUIX11.cs: Give teh keyboard to teh dnd.
13077
13078 2007-01-31  Jackson Harper  <jackson@ximian.com>
13079
13080         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
13081         - Remove some debug code.
13082
13083 2007-01-31  Jackson Harper  <jackson@ximian.com>
13084
13085         * XplatUIX11.cs: If you set the override cursor during a grab, it
13086         should actually override the grab cursor.  This comes into play
13087         when you are setting custom cursors in a DND feedback method.
13088
13089 2007-01-31  Jackson Harper  <jackson@ximian.com>
13090
13091         * X11Dnd.cs: Add support for handling the QueryContinue and
13092         GiveFeedback events.
13093         - Cancel drag and drop actions when the escape key is clicked.
13094         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
13095         can handle the ESCAPE key.
13096         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
13097         done when dnd events are continued after the button is released.
13098         - Add a new helper method so that dnd can translate key events.
13099
13100 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
13101
13102         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
13103         make it more obvious what is happening.
13104
13105 2007-01-30  Jackson Harper  <jackson@ximian.com>
13106
13107         * XplatUIX11.cs: Don't break when handling button release in drag
13108         and drop operations. We need that BUTTONUP message to get through
13109         so capture is released.
13110         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
13111         this is handled automatically when the mouse is down.
13112
13113 2007-01-30  Jackson Harper  <jackson@ximian.com>
13114
13115         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
13116         is closed, so we need to make sure that we aren't changing the
13117         dialog result when the OK (Open or Save) button has been clicked
13118         and we are closing the window ourselves.  Note we don't need to
13119         worry about the cache being written in this case, because it was
13120         already done in the previous FilOk call.
13121
13122 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13123         
13124         * DateTimePicker.cs: Remove a warning.
13125         * ComboBox.cs: Remove a couple of warnings.
13126
13127 2007-01-29  Chris Toshok  <toshok@ximian.com>
13128
13129         * XplatUIX11.cs: don't crash, and remove the icon if the user has
13130         set one, if SetIcon is passed a null icon.
13131
13132 2007-01-29  Andreia Gaita  <avidigal@novell.com>
13133
13134         * TextBox.cs: Redraw when the password characters changes
13135         * TextControl.cs: Check if textbox has a password char and draw 
13136         a line of password chars instead of the text in the line. LineTag gets 
13137         an extra Draw() method which allows document.Draw to override the text 
13138         that will be drawn. Removes 1024 char limitation on length of passworded 
13139         lines.
13140
13141 2007-01-29  Jackson Harper  <jackson@ximian.com>
13142
13143         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
13144         single chars is not.
13145
13146 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
13147
13148         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
13149         one pixel.  Fix a StackOverflowException caused by an overload wrongly
13150         calling itself.
13151
13152 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
13153
13154         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
13155         also remove ProcessArrowKey and put the code inside ProcessKeys.
13156
13157 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
13158
13159         * PaddingConverter.cs: Added.
13160
13161 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13162         
13163         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
13164         ShowPanels is false (fixes #80600). Only draw up to 127 characters
13165         of text (fixes #80601). For panels clip the text to draw to the
13166         panel (fixes #80603).
13167
13168 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13169
13170         * ComboBox.cs: Fixed implementation of ResetText.
13171
13172 2007-01-25  Jackson Harper  <jackson@ximian.com>
13173
13174         * TextControl.cs: For the last char of a line we need to use the
13175         line size, not that chars width, since it won't actually be
13176         computed since the right side of a char is based on the start of
13177         the left side of the next char, and the next char does not exist.
13178
13179 2007-01-25  Chris Toshok  <toshok@ximian.com>
13180
13181         * Splitter.cs: fix the new unit tests, and reindent some switch
13182         statements.
13183
13184 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13185
13186         * ComboBox.cs: Implemented 2.0 methods and events.
13187         * TextBoxBase.cs: Added OnTextUpdate, so that
13188         ComboBox.ComboTextBox can inform ComboBox of it.
13189
13190 2007-01-25  Jackson Harper  <jackson@ximian.com>
13191
13192         * TextControl.cs: Respect ShowSelection when deciding whether or
13193         not to display the caret, this allows comboboxes to have carets
13194         when the combotextbox does not have focus.
13195
13196 2007-01-25  Jackson Harper  <jackson@ximian.com>
13197
13198         * TextControl.cs: Add a Suspend/Resume for updating, basically the
13199         same as the Suspend/Resume for recalc, except this will do actual
13200         Invalidates.
13201         - New Undo manager, works much like the MS version.
13202         - Implemented Redo
13203         * TextBoxBase.cs: The Cut operation is undoable.
13204
13205 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13206         
13207         * TextBoxBase.cs: Don't antialias text. Makes it look way better
13208         on Windows (no difference on Linux).    
13209
13210 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13211
13212         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
13213         we don't want to activate any windows. Fixes #79433.
13214
13215 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
13216
13217         - ButtonBase.cs: Fix capitalization of parameter: disposing.
13218         [Fixes bug #80609]
13219
13220 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
13221
13222         * FileDialog.cs:
13223         - Move to using System.ComponentModel.EventHandlerList
13224         - Replace Refresh with Invalidate
13225         - Clear the mime filecache on closing
13226         - Some other memory reducing work. After beeing closed FD now uses
13227           only about 300 KB for the fdo mime stuff plus the memory of the
13228           cached icons.
13229         * Mime.cs: Changed coding style and removed unnecessary commented
13230         code. Some more memory memory reducing work.
13231
13232 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13233
13234         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
13235         a few other missing 2.0 properties.
13236         * Theme.cs: Added DrawFlatStyleComboBox.
13237         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
13238
13239 2007-01-24  Chris Toshok  <toshok@ximian.com>
13240
13241         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
13242         wake_waiting flag, not just when there's data to be read.  if we
13243         don't, then future wakeup's won't reach us and we'll be doomed to
13244         wait for the entire 1 second timeout forever (unless there are X
13245         events to be had).
13246
13247 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
13248
13249         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
13250         until you pass Items.Count, not Items.Count - 1 like 1.1.
13251
13252 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
13253
13254         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
13255
13256 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
13257
13258         * ToolStripContainer.cs: The recent Dock fix exposed that I was
13259         adding the panels in the wrong order.
13260
13261 2007-01-24  Jackson Harper  <jackson@ximian.com>
13262
13263         * TextBoxBase.cs: When we move the caret we also need to move the
13264         selection, this fixes some random crashing after doing select
13265         text, unselect, delete a char, paste.
13266
13267 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13268
13269         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
13270
13271 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
13272
13273         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
13274         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
13275         * ToolBar.cs: Force redraw in BackgroundImageChanged.
13276
13277 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
13278
13279         * ToolBar.cs:
13280         - Implement support for vertical toolbars. Fixes #80539;
13281         - Call LayoutToolBar when resize, it fix some other problems in layout.
13282         - Rename requested_height to requested_size, as we can have width on it
13283         when toolbar is vertical.
13284         - Create a private property "Vertical" that uses Dock to verify when 
13285         toolbar is vertical or not.
13286         - Set ControlStyles when change Dock property.
13287         - Refactory in LayoutToolBar to have better variables names and to support
13288         vertical toolbars.
13289         - Fixes default value for ButtonSize when button count is equal zero, size
13290         must be (39, 36) test case writed.
13291
13292 2007-01-23  Chris Toshok  <toshok@ximian.com>
13293
13294         * Control.cs: fix the checks so that they work correctly for mdi
13295         parents/children.
13296
13297 2007-01-23  Chris Toshok  <toshok@ximian.com>
13298
13299         * Control.cs: ControlCollection seems to have super-secret
13300         abstraction breaking knowledge of Mdi containers.  allow MdiClient
13301         to add toplevel controls.
13302
13303 2007-01-23  Chris Toshok  <toshok@ximian.com>
13304
13305         * Control.cs: throw an ArgumentException if a toplevel control is
13306         added to our control collection from ControlCollection.Add, as
13307         well as from ControlCollection.IList.Add.  This fixes the
13308         ControlSetTopLevelTest.TestTopLevelAdd unit test.
13309
13310         Also, in ControlCollection.IList.Add, don't through an
13311         ArgumentNullException, throw an ArgumentException, when value ==
13312         null.  This matches MS.
13313
13314 2007-01-23  Chris Toshok  <toshok@ximian.com>
13315
13316         * BindingSource.cs: initial, incomplete, implementation of
13317         BindingSource.
13318
13319 2007-01-23  Jackson Harper  <jackson@ximian.com>
13320
13321         * TextControl.cs:
13322         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
13323         that I can fix a broken unit test (TextBoxTest::ClearUndo)
13324         
13325 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
13326
13327         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
13328
13329 2007-01-23  Andreia Gaita  <avidigal@novell.com>
13330
13331         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
13332         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
13333         IndexOfKey() for 2.0
13334
13335 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13336
13337         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
13338         to prevent it from changing z-order.
13339         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
13340         leave UI updates in MdiWindowManager.
13341         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
13342         1 sized (NC handling goes weird on Linux otherwise).
13343         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
13344         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
13345         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
13346         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
13347         and SetWindowState(s) to allow for changing the size of an activated child
13348         before activating it (reduces a lot of flicker).
13349
13350 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
13351
13352         * Form.cs: Changing FormBorderStyle has different semantics based
13353         on whether the Form is visible or not.  If not visible, don't change
13354         the Size.  But InvalidateNC needs to be called to force the window
13355         to pick up the changes and redraw itself.  [Fixes bug #80574]
13356
13357 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
13358
13359         [Moma work]
13360         * ContainerControl.cs: ProcessCmdKey.
13361         * ErrorProvider.cs: new constructor.
13362         * Form.cs: fix AutoValidateEvent compiler warning.
13363         * Label.cs: fix OnAutoSizeChanged compiler warning.
13364         * MenuStrip.cs: fix CanOverflow compiler warning.
13365         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
13366         * TextBox.cs: Dispose.
13367         * ToolStrip.cs: CanOverflow, re-enable double buffering.
13368         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
13369         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
13370         * ToolStripItem.cs: Overflow, RightToLeft properties.
13371
13372 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13373
13374         * Form.cs: Move the layout of the main form to MdiWindowManager.
13375         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
13376         do a layout of the main window to update MdiClient's client area to
13377         the right area. Fixes #80533. Remove the calculation of nc size, 
13378         it was just wrong and the correct one is the same as for 
13379         InternalWindowManager. 
13380
13381 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
13382
13383         * Control.cs: Setting Anchor or Dock needs to reset the other
13384         to its default.  [Fixes bug #80556]
13385
13386 2007-01-20  Chris Toshok  <toshok@ximian.com>
13387
13388         * CheckedListBox.cs: class status changes.
13389
13390         * ScrollableControl.cs: same.
13391
13392         * RichTextBox.cs: same.
13393
13394         * ContainerControl.cs: same.
13395
13396         * ListView.cs: same.
13397
13398         * NotifyIcon.cs: same.
13399
13400         * MenuStrip.cs: same.
13401
13402         * RadioButton.cs: same.
13403
13404         * CheckBox.cs: same.
13405
13406         * PrintPreviewDialog.cs: same.
13407
13408         * Form.cs: same.
13409
13410 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
13411
13412         * TreeNode.cs: Apply Alan's patch for Name property.
13413
13414 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13415         
13416         * Form.cs: Implemented SizeGripStyle.
13417         * SizeGrip.cs: Check for minimum and maximum size for the
13418         control being resized and only resize if size has actually
13419         changed.
13420
13421 2007-01-19  Chris Toshok  <toshok@ximian.com>
13422
13423         * DataGridColumnStyle.cs: stop setting _readonly in the
13424         PropertyDescriptor setter.  fixes a unit test failure.
13425
13426         also, rename ParentReadOnly to TableStyleReadOnly, and have it
13427         just consult our table style (if we have one).  We don't need to
13428         consult the datagrid readonly attribute because that's passed in
13429         as the _ro arg to Edit.  this simplifies things a little.
13430         
13431         * DataGrid.cs: use CurrentColumn instead of
13432         current_cell.ColumnNumber just to simplify some of the code.
13433
13434         switch the order of some things in the CurrentCell setter to keep
13435         the previous cell from getting a textbox again -
13436         EnsureCellVisibility causes scrolling to happen, which calls Edit.
13437         So we need to set the new cell before calling it.
13438         
13439         call Edit in OnEnter, as does Microsoft.
13440         
13441         also, make sure the current table style isn't the one we create
13442         initially when checking to see if it's different than the one
13443         we're setting it to in BindColumns (this fixes #80421).
13444
13445         * GridTableStylesCollection.cs: table styles can have "" for a
13446         mapping name.  part of the fix for #80421.
13447
13448         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
13449         Edit significantly.
13450
13451 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
13452
13453         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
13454         and less GDI object leaky-er.
13455
13456 2007-01-18  Andreia Gaita  <avidigal@novell.com>
13457
13458         * LinkLabel.cs: Add opaque control style
13459
13460 2007-01-18  Jackson Harper  <jackson@ximian.com>
13461
13462         * TextControl.cs: Calculate width properly.
13463         - Don't store the tag's X offset, this can be figured out very
13464         easily.
13465         - When getting the caret tag make sure to get the last empty tag.
13466
13467 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
13468
13469         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
13470         [Fixes bug #79959]
13471
13472         * Control.cs: Color.Empty shouldn't count for previous transparent
13473         redraw changes.
13474
13475 2007-01-18  Jackson Harper  <jackson@ximian.com>
13476
13477         * TextBox.cs:
13478         * RichTextBox.cs:
13479         * TextControl.cs: Starting to merge in some pieces of my older
13480         undo work.  Basically just some slight cleanup of the undo API.
13481
13482 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13483
13484         * TrackBar.cs: Fix signature of RightToLeftLayout.
13485         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
13486         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
13487         * Application.cs: Implemented UseWaitCursor.
13488
13489 2007-01-18  Jackson Harper  <jackson@ximian.com>
13490
13491         * TextControl.cs: We can't skip tags if any part of the tag is
13492         visible.
13493
13494 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
13495
13496         * ContainerControl.cs: Override OnLayout.
13497
13498 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
13499
13500         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
13501
13502         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
13503         everything else.
13504
13505 2007-01-18  Chris Toshok  <toshok@ximian.com>
13506
13507         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
13508         (leftover from the container_selected days, I'd wager).  fixes bug
13509         #80546.
13510
13511 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
13512
13513         * Control.cs: Apply patch from George to fix the new testcase on
13514         bug #80451.  We can't just check for Color.Transparent, we need 
13515         to check if the back color's alpha channel is < 255.
13516
13517 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
13518
13519         * Form.cs: Move setting show_icon = true to before the constructor
13520         so that the base constructor has that information when it calculates
13521         the form's size.  Was causing forms to be (6, 6) bigger than they
13522         were supposed to be.  Thanks for catching this Rolf!
13523
13524 2007-01-18  Jackson Harper  <jackson@ximian.com>
13525
13526         * TextControl.cs: When replacing a selection we need to invalidate
13527         from the initial selection start, because selection start is moved
13528         to the end of the replacement.
13529
13530 2007-01-18  Andreia Gaita  <avidigal@novell.com>
13531
13532         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
13533
13534 2007-01-18  Chris Toshok  <toshok@ximian.com>
13535
13536         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
13537         I just added.
13538
13539 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
13540
13541         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
13542         layout methods and properties from ToolBarButton must be available
13543         into ToolBarButtonInfo.
13544
13545 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
13546
13547         * Control.cs: If the control has a transparent background, we
13548         need to refresh it when it moves and when it's parent's background
13549         image changes.  [Fixes bug #80451]
13550
13551 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
13552
13553         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
13554
13555 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
13556
13557         * XplatUIWin32.cs: Implement proper double buffering for Windows.
13558         [Fixes bug #80447, and probably speeds up things as well]
13559
13560 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13561
13562         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
13563         * XplatUIWin32.cs: We need to recalculate NC size after changing 
13564         window style to toolwindow (otherwise the client rectangle will be
13565         3 pixels to small for some reason).
13566         * MdiWindowManager.cs: Revert NC size calculations to match how
13567         they are calculated only based on window styles (to match
13568         Win32AdjustWindowRectEx, since otherwise when setting size or 
13569         location, Control will call Win32AdjustWindowRectEx to update client 
13570         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
13571         calculate a different value of client size causing another paint 
13572         (and flickering))
13573         * InternalWindowManager.cs: When moving or resizing a window only
13574         update size or location if they actually changed.
13575         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
13576         (seems to match Windows behaviour better). Cleaned up 
13577         ManagedWindowDecorations to draw what's needed and nothing else
13578         (was drawing borders and lines where they shouldn't be)
13579         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
13580         (style = 0xFFFF) and takes into account caption height when 
13581         calculating window rectangle.   
13582
13583 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
13584
13585         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
13586         can be added to toolbar multiple times, we need to maintain a list of 
13587         button information for each positions.
13588
13589 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
13590
13591         * ToolBar.cs: Some small stetic changes.
13592
13593 2007-01-16  Jackson Harper  <jackson@ximian.com>
13594
13595         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
13596         that allow us to have nested recalc = false blocks.
13597         - Add paste support for images in the RichTextBox
13598         * RichTextBox.cs: flush the text after the color is changed, so
13599         the change takes effect.
13600         - Use SuspendRecalc
13601         - Some extra debugging info
13602         * TextControl.cs: Tags no longer track their length, it is just
13603         computed from the next tags length, this makes things a little
13604         simpler and reduces places that we have to track length changes.
13605         - Refactored the linetag class a little so we could make it
13606         a base class for different kinds of tags
13607         - Created a image tag, a tag that can have a single image inserted
13608         into it
13609         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
13610         that we can call suspend multiple times.
13611         - Add some debugging methods
13612
13613 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13614
13615         * MdiClient.cs: Add ActivatePreviousChild for 
13616         mdi child window navigation.
13617         * Form.cs: Use MdiClient.ActivateNextChild/
13618         ActivatePreviousChild instead of Form.SelectNextControl
13619         to select the next/previous child since 
13620         SelectNextControl doesn't do it in the same order
13621         as mdi children should do it.
13622
13623 2007-01-16  Chris Toshok  <toshok@ximian.com>
13624
13625         * Control.cs: remove container_selected field.
13626
13627 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13628
13629         * MdiClient.cs: Update main form's ActiveChild when
13630         updating keyboard focus for the mdi child.
13631
13632 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
13633
13634         * Control.cs: PreferredSize fix.
13635
13636         * Form.cs: Add several 2.0 events, properties, and methods.
13637
13638 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
13639
13640         * Form.cs: Provide meaningful message when MdiParent is assigned a
13641         Form that is not an MdiContainer.
13642
13643 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13644
13645         * MdiClient.cs: Update main form's ActiveChild when
13646         activating a mdi child.
13647
13648 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13649
13650         * MdiWindowManager.cs: Fix NRE when merging menus and main form
13651         doesn't have a menu.
13652
13653         * Form.cs: Request NCRecalc after creating a mdi child window.
13654         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
13655         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
13656         
13657         * MdiClient.cs: Add new method SendFocusToActiveChild that either
13658         sends keyboard focus to the active child, or to the MdiClient
13659         if there are no child forms.
13660         
13661 2007-01-15  Chris Toshok  <toshok@ximian.com>
13662
13663         * ListView.cs: drop the *Internal overrides, just do our work in
13664         ItemControl's WndProc instead.
13665
13666         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
13667         of the various controls, and forward the events properly (in the
13668         same manner as MS) from the textbox to the UpDown.  Also the
13669         ActiveControl of the UpDownBase gets set properly now.  Finally,
13670         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
13671
13672         * NumericUpDown.cs: set Text in the ctor.
13673
13674         * DomainUpDown.cs: call UpdateEditText in the ctor.
13675         
13676         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
13677         so even a Selectable = false textbox can be focused if you click
13678         in it.  Go figure.
13679
13680         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
13681         just add their handling in their respective WndProc's.  Also add
13682         an explicit FocusInternal method that doesn't consult CanFocus
13683         before calling Select(this).
13684
13685         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
13686         do our work in WndProc instead.
13687
13688         * TabControl.cs: same.
13689
13690         * ComboBox.cs: same.
13691
13692 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
13693
13694         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
13695         Fixes #80006.
13696
13697 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
13698
13699         * ListViewItem.cs:
13700         * ThemeWin32Classic.cs: Don't draw the item text outside
13701         item bounds in Details view, as well as use trimming.
13702         Fixes bug #80376.
13703
13704 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
13705
13706         * Form.cs: Implement Form.ShowIcon.
13707         
13708         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
13709         null, which when combined with the DlgModalFrame window style removes
13710         the icon from the title bar.
13711
13712 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
13713
13714         * Control.cs: Call OnMouseClick after OnClick. (2.0)
13715
13716 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
13717
13718         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
13719         menu when mdi child windows theres a menu, uses insert to get icon
13720         at first position. Partially fix #80006.
13721
13722 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
13723
13724         * Clipboard.cs: Implement 2.0 methods.
13725
13726 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
13727
13728         * Menu.cs: Implement Insert method of MenuItemCollection class
13729         to fix MenuMerge.
13730
13731 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13732
13733         * ListView.cs: Implement 2.0 FindItemWithText method.
13734
13735 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
13736
13737         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
13738         to calculate menu bar size. Fixes #80290.
13739
13740 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
13741
13742         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
13743
13744 2007-01-11  Chris Toshok  <toshok@ximian.com>
13745
13746         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
13747         initial form.
13748
13749 2007-01-11  Chris Toshok  <toshok@ximian.com>
13750
13751         * LinkLabel.cs: make sure to call base.Select in our Select method
13752         if it turns out we're going to be selected (i.e. if we have a link
13753         that is going to receive focus).  That way our container's
13754         ActiveControl is updated properly.
13755
13756 2007-01-11  Chris Toshok  <toshok@ximian.com>
13757
13758         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
13759         they have 1 or more links.  this fixes the crash gert reported.
13760
13761 2007-01-11  Andreia Gaita  <avidigal@novell.com>
13762
13763         * ContainerControl.cs: Remove ContainerSelected flag, not needed
13764         anymore.
13765
13766         * Control.cs (Controls.Add): Check if control to be added to the collection
13767         is a top level control, and throw an ArgumentException if it is.
13768         Remove ContainerSelectedFlag, not needed anymore.
13769
13770         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
13771         top most control doesn't activate the form. This fixes a problem in the
13772         MessageBox, where the default button wouldn't get focus because the form
13773         was activated before being Loaded - when the Owner is set, SetTopMost is
13774         called, and it would activate it.
13775
13776 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
13777
13778         * Button.cs: When clicked and setting the parent form's DialogResult,
13779         use FindForm instead of Parent, since parent could be a container
13780         control and not the Form.  Fixes bug #80495.
13781
13782 2007-01-10  Chris Toshok  <toshok@ximian.com>
13783
13784         * Form.cs: move the call to SendControlFocus into the same
13785         is_loaded check.
13786
13787 2007-01-10  Chris Toshok  <toshok@ximian.com>
13788
13789         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
13790         It breaks in the face of the new ActiveControl stuff, and should
13791         be unnecessary.
13792
13793         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
13794         activecontrol's focus if it's not already set, after we set
13795         ActiveControl, but before we call OnActivated.  Re-fixes #79667
13796         after the previous focus/active control fixes regressed it.
13797
13798         * Control.cs: reindent some code.
13799         
13800 2007-01-10  Chris Toshok  <toshok@ximian.com>
13801
13802         * Splitter.cs: clearing some outstanding changes from my tree.
13803         Replace all accesses (not writes) to the internal dock_style field
13804         with the Dock property.
13805
13806 2007-01-10  Chris Toshok  <toshok@ximian.com>
13807
13808         * Control.cs: make FireEnter, FireLeave, FireValidating, and
13809         FireValidated virtual.
13810
13811         * Form.cs: override and don't chain up calls to FireEnter and
13812         FireLeave.
13813
13814 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13815
13816         * ListView.cs: Add more text padding space when using
13817         auto resize for columns (the previous value didn't work fine).
13818
13819         * ThemeWin32Classic.cs: Update text position inside columns,
13820         to match the appeareance of .Net.
13821
13822         * ColumnHeader.cs: When using auto resize, only the Width should
13823         depend on the sub items, not the Height. Also, set width after
13824         auto resizing (the value of Width should never remain as -1 or -2).
13825
13826 2007-01-10  Chris Toshok  <toshok@ximian.com>
13827
13828         * Application.cs: fix compilation errors when debug is enabled.
13829
13830 2007-01-10  Chris Toshok  <toshok@ximian.com>
13831
13832         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
13833         add some nice ascii art pictures and explanation of the process).
13834         (GetMostDeeplyNestedActiveControl): new utility function we need
13835         because our ActiveControl can refer to a child container with its
13836         own ActiveControl.
13837
13838         * Form.cs (OnActivated): remove the call to SelectActiveControl
13839         from here, since you can override this method and not chain up,
13840         and winforms still sets the active control.
13841         (OnCreateControl): also remove the unnecessary SelectActiveControl
13842         call from here.
13843         (WndProc): it's actually called from the WM_ACTIVATE block, just
13844         before calling OnActivated.
13845
13846         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
13847         inside the else.  the ActiveControl setter will end up setting
13848         focus on @control.  This keeps us from setting it again (and
13849         generating an extra LostFocus/GotFocus pair).
13850         (Select (bool, bool)): reindent.
13851
13852 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
13853
13854         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
13855         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
13856         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
13857         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
13858         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
13859         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
13860         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
13861         ToolStripTextBox.cs: Another wave of corcompare work.
13862
13863 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13864
13865         * ColumnHeader.cs: Implement 2.0 AutoResize method using
13866         the Width property.
13867
13868         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
13869         methods by callling Column.AutoResize method on columns.
13870
13871 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
13872
13873         * Control.cs: Provide proper implementations of PreferredSize
13874         and GetPreferredSize (2.0).
13875
13876 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
13877
13878         * Form.cs: Remove one character (!) to make my previous OnClosing
13879         stuff work for modal windows like MessageBox.
13880
13881 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13882
13883         * ListView.cs:
13884         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
13885         ListView.Columns to get the last displayed column. Fixes #80452.
13886
13887 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
13888
13889         * Label.cs, LinkLabel.cs: Source code identation fixes.
13890
13891 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
13892
13893         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
13894         we dont need to invalidate only borders because when we invalidate four
13895         border lines the invalidate's generates a complete redraw of button, 
13896         because it now invalidate a complete rect some other redraws operations
13897         are fixed. Fixes #80196.
13898         
13899         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
13900         Remove ToolBarInvalidateEntireButton as it is not used.
13901
13902 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
13903         
13904         * Form.cs: Make sure that both OnClosing and OnFormClosing are
13905         called for 2.0 profile.
13906         * CloseReason.cs: Make class internal for 1.1.
13907
13908 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
13909
13910         * ToolStripManager.cs: Implement FindToolStrip functionality.
13911         * ToolStrip.cs: Register and unregister with ToolStripManager.
13912
13913 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
13914
13915         * Control.cs: This was messy.  2.0 moves much of ControlCollection
13916         to ArrangedElementCollection.  Implemented this with as few #if's as 
13917         possible (which is still too many).
13918
13919 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
13920
13921         * Control.cs: Implement SizeFromClientSize() [2.0].
13922
13923 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
13924
13925         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
13926         use Theme.BorderSize to calculate area instead of static value 1, 
13927         by the way use new BorderStaticSize instead     Border3DSize when 
13928         border_static is true. Fixes #79537.
13929         
13930         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
13931         
13932         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
13933         it is not needed.
13934
13935 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
13936
13937         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
13938
13939 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
13940
13941         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
13942         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
13943         
13944         * Hwnd.cs: 
13945         - border_static field added, it will used to define when a control 
13946         theres 3D border but it must be static (thin).
13947         - In GetWindowRectangle use Theme.BorderSize to calculate area 
13948         instead of static value 1, by the way use new BorderStaticSize instead
13949         Border3DSize when border_static is true.
13950
13951         * XplatUIX11.cs, XplatUIOSX.cs: 
13952         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
13953         
13954         * Theme.cs: BorderStaticSize field added.
13955
13956 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
13957
13958         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
13959
13960 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
13961
13962         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
13963         mimic same behavior than win32 that set border only in CreateParams,
13964         it fix problems under CreateParams overrides. Fix #79442 and partial
13965         fix #79537.
13966         
13967         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
13968         of thi control you must call recreate handle. 
13969         
13970         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
13971         need to do anything as RecreateHangle will take care about borders.
13972
13973 2007-01-05  Mike Kestner  <mkestner@novell.com>
13974
13975         * ListView.cs: hack to eliminate Lost/Got focus notifications on
13976         cycles between the ItemControl and parent.  Fixes #80388.
13977
13978 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
13979
13980         * Control.cs: Lazy init layout engine. Do not directly use 
13981         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
13982
13983 2007-01-05  Chris Toshok  <toshok@ximian.com>
13984
13985         * DataGrid.cs: don't forceably rebind columns in SetDataSource
13986         unless our list manager has changed (i.e. unless we have reason to
13987         believe our columns have changed).  Fixes #80422.
13988         
13989         also, disable the call do BindColumns in
13990         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
13991         1.1 the event isn't raised in response to a column addition on a
13992         table.)
13993
13994 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
13995
13996         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
13997         that inheritors can not call it if they choose.  Fixes bug #80456.
13998
13999 2007-01-05  Andreia Gaita  <avidigal@novell.com>
14000
14001         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
14002         doesn't blow up with a null exception on marshalling.
14003         
14004 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
14005
14006         * Control.cs: Implement several 2.0 protected properties and methods.
14007         Ensure that all necessary events are being called when properties
14008         are set.
14009
14010 2007-01-05  Mike Kestner  <mkestner@novell.com>
14011
14012         * ListView.cs: implement PgUp/PgDn for Details view.  Also
14013         fixes First/LastVisibleIndex to use the item_control.ClientRect 
14014         instead of the parent control.  Fixes #80378.
14015
14016 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
14017
14018         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
14019           determine whether to use yard-pound or not (bug #78399).
14020
14021 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
14022
14023         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
14024         problems. So it is time to bring back the old popupbutton colors.
14025
14026 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14027
14028         * ColumnHeader.cs:
14029         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
14030         property by using the internal information of the
14031         columns order in ListView.
14032
14033 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
14034
14035         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
14036         Add 2.0 Tag properties.
14037
14038         * LinkArea.cs: Add 2.0 ToString method.
14039
14040 2007-01-03  Chris Toshok  <toshok@ximian.com>
14041
14042         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
14043         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
14044         when we're editing, which fixes #80047.
14045
14046 2007-01-03  Chris Toshok  <toshok@ximian.com>
14047
14048         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
14049         #80404.
14050
14051 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
14052
14053         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
14054         property and implementation.
14055
14056         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
14057         for MdiWindowListItem property.
14058
14059         * ToolStripDropDown.cs: Don't consider hidden menu items while
14060         laying out the menu.
14061
14062 2007-01-03  Andreia Gaita  <avidigal@novell.com>
14063
14064         * SendKeys.cs: window handle is not needed in win32, so just
14065         get the active window for X after parsing keys and don't use
14066         it when building the message; it is passed by parameter to the 
14067         Xplat method and used there to build the message instead. Also,
14068         wait for events to be processed on SendWait, as opposed to Send,
14069         which doesn't wait :) Playing with threads and Send() completely 
14070         hangs on ms.net, only SendWait() works.
14071         
14072         XplatUIX11.cs
14073         X11Display.cs: Check for valid window handle.
14074
14075 2007-01-03  Jackson Harper  <jackson@ximian.com>
14076
14077         * TextControl.cs: Need to prevent wrap calculations when replacing
14078         text (this was there before i removed it accidently).
14079         - Don't update the cursor during the positioning, just set it to
14080         selection_start at the end of the operaion.
14081
14082 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14083
14084         * Control.cs:
14085         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
14086         
14087 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14088
14089         * MonthCalendar.cs: Added Click and DoubleClick events again,
14090         but this time they only hide Control's Click and DoubleClick.
14091         
14092 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
14093
14094         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
14095         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
14096
14097 2007-01-02  Jackson Harper  <jackson@ximian.com>
14098
14099         * TextBoxBase.cs: We move the caret with the split now, so we
14100         don't need to explicitly move the caret after splitting.  This
14101         fixes the caret bumping down an extra line on Enter.
14102
14103 2007-01-02  Miguel de Icaza  <miguel@novell.com>
14104
14105         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
14106         2.72). 
14107
14108         * ScrollableControl.cs: Add Scroll event.
14109
14110 2007-01-02  Mike Kestner  <mkestner@novell.com>
14111
14112         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
14113         to fix all hdr height padding codepaths.  Fixes #80207.
14114
14115 2007-01-02  Chris Toshok  <toshok@ximian.com>
14116
14117         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
14118         setting it to the Control defaults anyway, and it being after the
14119         Dock set was screwing up layout.
14120         (set_Dock): don't short circuit out of setting base.Dock.  Also,
14121         no need to call UpdateStatusBar here, as it'll be re-layed out if
14122         it needs to be.
14123
14124 2007-01-02  Mike Kestner  <mkestner@novell.com>
14125
14126         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
14127         to header height for width == -1. Fixes the rest of #80207.
14128
14129 2007-01-02  Mike Kestner  <mkestner@novell.com>
14130
14131         * ListView.cs: rework the mouse event forwarding everaldo added
14132         to translate the coordinates to the parent control not
14133         raise the parent events until after we've done our work. Hover
14134         needs more work, in the case where HoverSelection is on, because
14135         the item control receives more than one MouseHover per Enter
14136         event, so we need to ensure only the "first" hover gets forwarded.
14137         Opening a minor bug for that.
14138
14139 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
14140
14141         * CheckedListBox.cs: Fixed SelectionMode to match MS.
14142         * ListControl.cs: Implemented AllowSelection property. Removed extra
14143         tabs.
14144         * ListBox.cs: Implemented AllowSelection property.
14145
14146 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
14147
14148         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
14149         SelectedItem, it prevent for errors when you must disable item
14150         before perform click. Fixes #80409.
14151
14152 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
14153
14154         * MenuAPI.cs: Prevent second level and beyond submenus to close
14155         until first level when move out side of popup.
14156         
14157 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
14158
14159         * MenuAPI.cs:
14160         - Down submenu positin in three pixels.
14161         - Closes sub menu when mouse leaves from menu. Fixes #80402.
14162
14163 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
14164
14165         * ThemeWin32Classic.cs:
14166         - Fix popup menu size adding one pixel on the top.
14167         - Down menu item border from two to one to mimic Win32.
14168         - Some source identation fixes. 
14169
14170 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
14171
14172         * ThemeWin32Classic.cs: Use float numbers to calculate size and
14173         position of menu arrows, it fix wrong arrow size.
14174
14175 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
14176
14177         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
14178         instead of line, it simplify draw operation and fix it using 3D
14179         borders to mimic Win32.
14180
14181 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
14182
14183         * StatusStrip.cs: Add implementation of the sizing grip.
14184
14185         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
14186         StatusStrip rendering.
14187
14188 2006-12-31  Chris Toshok  <toshok@ximian.com>
14189
14190         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
14191         override the layout style (anchor/dock) of the control.  assign to
14192         Dock instead.  Fixes bug #80416.
14193
14194         * ToolStrip.cs: same.
14195
14196 2006-12-31  Andreia Gaita  <avidigal@novell.com>
14197
14198         * ContainerControl.cs: Use ContainerSelected flag to check if 
14199         a Container is directly selected, or if Select is called on a 
14200         non-container. If a container is directly selected, focus events 
14201         should not be raised.
14202         Apply #80411 patch to throw exception on set_ActiveControl if 
14203         control is the same as the current one.
14204         
14205         * Control.cs: Use ContainerSelected flag (see above).
14206         Add invalidation check to raise event but not invalidate if 
14207         dimensions are 0.       
14208         Apply #80411 patch.
14209         
14210
14211 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
14212
14213         * MenuAPI.cs: After click, dont close popup menu when menu is
14214         ContextMenu. Fixes #80399.
14215
14216 2006-12-30  Chris Toshok  <toshok@ximian.com>
14217
14218         * ContainerControl.cs: make sure we throw the exception if the
14219         container control doesn't contain the control we're setting
14220         ActiveControl to.
14221
14222 2006-12-30  Chris Toshok  <toshok@ximian.com>
14223
14224         * Control.cs (SetTopLevel): fix the exception raised by
14225         SetTopLevel for child controls.
14226         (set_Anchor): call UpdateDistances when setting the anchor type.
14227         This fixes bug #80336.
14228
14229 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
14230
14231         * Theme.cs: For now, revert back to 8pt font.
14232
14233 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
14234
14235         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
14236         Fixes #80395.
14237
14238 2006-12-29  Chris Toshok  <toshok@ximian.com>
14239
14240         * Control.cs: reorder the code in OnResize to give the same event
14241         ordering as MS.
14242
14243 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14244
14245         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
14246         TileHorizontally and TileVertically.
14247         
14248 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
14249
14250         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
14251         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
14252         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
14253         Corrected copyright and email adress.
14254
14255 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
14256
14257         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
14258         of Exception in FullPath property if no TreeView is associated with
14259         the TreeNode.
14260
14261 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
14262
14263         * Theme.cs: Marked default_font as private, and initialize it in ctor
14264         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
14265         on 2.0 profile.
14266         * ThemeGtk.cs: Removed default_font intialization.
14267         * ThemeWin32Classic.cs: Removed default_font initialization.
14268
14269 2006-12-28  Chris Toshok  <toshok@ximian.com>
14270
14271         * Control.cs: fix a couple of place where we were creating handles
14272         more aggressively than we should be.  Fixes ControlRefresh unit
14273         tests.
14274
14275 2006-12-28  Chris Toshok  <toshok@ximian.com>
14276
14277         * Control.cs: contrary to what the comment said, Control.Dock does
14278         not supercede Control.Anchor - the last one you assign to decides
14279         the layout behavior.  so we need to keep track of which was the
14280         last set.  Also, fix some of the affected property arguments in
14281         PerformLayout calls, and remove an redundant parent.PerformLayout
14282         call in OnResized.
14283
14284         Add a VisibleInternal property, which returns is_visible.  We
14285         can/should get rid of all the usage of this field elsewhere.
14286
14287 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14288         
14289         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
14290         control style, not DoubleBuffer. Added UseDoubleBuffering property
14291         that indicates whether doublebuffering is enabled and supported.
14292         (comment from and code based on Gert Driesen's patch in #80324).
14293         Fixes #80324.
14294
14295 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14296         
14297         * Control.cs: Fixed a NRE.
14298
14299 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14300
14301         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
14302         for 2.0.
14303
14304 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14305
14306         * Control.cs: Rewrote double buffering, now a seperate
14307         class handles all the buffering, no Graphics is disposed of
14308         until the painting is finished (earlier implementation 
14309         would crash if the control was resized in the OnPaint, 
14310         since it would cause the double buffer to be recreated
14311         and the old one disposed), a separate Graphics is 
14312         created for every paint (MS behaviour and anyways the state
14313         of the Graphics would have to be saved and restored otherwise)
14314         
14315         * XplatUIDriver.cs: 
14316         * XplatUIX11.cs:
14317         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
14318         so that we can get the graphics for the back buffer without
14319         having to create a new one and remove the offscreen_dc parameter
14320         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
14321         
14322 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14323
14324         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
14325         Also make virtual all the key-related methods.
14326
14327         * ListViewItem.cs: Make virtual the key related methods for
14328         ListViewSubItemCollection.
14329
14330 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14331
14332         * ListView.cs:
14333         * ListViewItem.cs:
14334         * ThemeWin32Classic.cs:
14335         * Theme.cs: Initial support for Tile view in ListView,
14336         as well as the implementation of the required bits for it (Item
14337         and Subitem).
14338
14339 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
14340
14341         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
14342         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
14343         Provide useful exception messages.
14344
14345 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14346
14347         * TrackBar.cs: Remove a warning.
14348         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
14349         when used by DateTimePicker, fixes #80287. This also requires that 
14350         MonthCalendar implements it's own drawing for the yearly updown control,
14351         otherwise the Capture tracking would be too complicated. Removed the Click 
14352         and DoubleClick events (according to comments they were hiding the base class
14353         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
14354         raise these events, not that they cannot be raised. It is possible to raise 
14355         them by calling OnClick and OnDoubleClick). Added two internal fields in 
14356         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
14357         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
14358         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
14359         event, no longer needed.
14360         
14361 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
14362
14363         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
14364         true if new value differs from current value.
14365
14366 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
14367
14368         * Control.cs: ControlCollection.Count must be public. Fixed build of
14369         unit tests.
14370
14371 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
14372
14373         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
14374
14375 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
14376
14377         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
14378
14379 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
14380
14381         * Control.cs: Invalidates control including when Width and Height is 
14382         equal zero or is not visible, only Paint event must be care about 
14383         this. Fixes #79913.
14384
14385 2006-12-26  Chris Toshok  <toshok@ximian.com>
14386
14387         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
14388         more corcompare work.
14389
14390         * DataGridView.cs: fix compiler warning.
14391
14392         * ColumnHeader.cs: some corcompare work, and also take the
14393         opportunity to make the internal fields private.
14394
14395         * ListView.cs: fix the fallout from the above field change.
14396
14397 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
14398
14399         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
14400         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
14401         ToolStripTextBox.cs: Fixes to events and corcompare.
14402
14403 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
14404
14405         * ListView.cs: Call owner.OnMousexx event to propagate events from
14406         item to ListView. Fixes #80367.
14407
14408 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
14409
14410         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
14411         if value is less than one. ItemHeight should not be set to a value
14412         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
14413         Removed extra tabs.
14414
14415 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
14416
14417         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
14418         * ToolStripStatusLabel.cs: Add Spring for Moma.
14419
14420 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
14421
14422         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
14423         Fixed code formatting. Removed debug code.
14424         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
14425
14426 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
14427
14428         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
14429         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
14430         ArgumentOutOfRangeException if ColumnCount is negative. In 
14431         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
14432         less than 4 or higher than 32768.
14433         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
14434         Fixed FormatProvider to return CurrentCulture unless explicitly set.
14435         Fixed IsFormatProviderDefault to return true if FormatProvider has
14436         not been explicitly set.
14437
14438 2006-12-25  Chris Toshok  <toshok@ximian.com>
14439
14440         * Application.cs: add a couple of 2.0 events.
14441
14442 2006-12-25  Chris Toshok  <toshok@ximian.com>
14443
14444         * Control.cs: fix compiler warning.
14445
14446         * AxHost.cs: corcompare fixes.
14447
14448         * ApplicationContext.cs: corcompare fixes.
14449
14450 2006-12-25  Chris Toshok  <toshok@ximian.com>
14451
14452         * Control.cs: only update dist_right/dist_bottom if the
14453         width/height is > 0.  this fixes anchored controls being resized
14454         smaller until they disappear and then resized larger again.
14455
14456 2006-12-25  Chris Toshok  <toshok@ximian.com>
14457
14458         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
14459         since they're nothing more than X/Left and Y/Top, respectively.
14460
14461         Also, move back to a per-control Bitmap/Graphics for
14462         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
14463         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
14464         Height.
14465
14466 2006-12-25  Miguel de Icaza  <miguel@novell.com>
14467
14468         * MessageBox.cs: Implemented overload that takes a new "bool
14469         displayHelpButton" by adding a new internal field "show_help".
14470         When clicked this will raise the HelpRequested on the owner or the
14471         main form. 
14472
14473         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
14474         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
14475
14476         * ListView.cs: Add support ColumnWidthChanged and
14477         ColumnWidthChanging. 
14478
14479         Add support for ColumnReordered event.
14480         (ReorderColumn): Add NET_2_0 specific support for cancelling the
14481         reorder.
14482
14483         Very nice codebase!
14484
14485         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
14486
14487         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
14488
14489 2006-12-24  Chris Toshok  <toshok@ximian.com>
14490
14491         * GridTablesFactory.cs: 2.0 corcompare work.
14492
14493         * ToolStripContainer.cs: add "override" to
14494         ContextMenuStripChanged, and remove the local event object.
14495
14496         * ToolStripDropDown.cs: same with a couple properties.
14497
14498         * ToolStripPanel.cs: same with AutoSizeChanged event.
14499
14500         * TextBoxBase.cs: add "override" to AutoSizeChanged.
14501
14502         * Form.cs: add the remaining 2.0 events, and do some corcompare
14503         attribute work.
14504
14505         * DateTimePicker.cs: add "new" to padding.
14506
14507         * ButtonBase.cs: use Control's use_compatible_text_rendering.
14508
14509         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
14510
14511         * DataGridView.cs: PaddingChanged is overridden.
14512
14513 2006-12-24  Chris Toshok  <toshok@ximian.com>
14514
14515         * Control.cs: corecompare work here too.
14516
14517         * DataGridViewElement.cs, DataGridView.cs,
14518         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
14519         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
14520         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
14521         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
14522         work.
14523
14524 2006-12-24  Miguel de Icaza  <miguel@novell.com>
14525
14526         * Control.cs: Switched the error message on the console for a
14527         todo.  A review of the code will have to cope with this anyways
14528         (since its a large feature, it is in our radar) and it was
14529         producing too much output when running PDN.
14530
14531         * ToolStripComboBox.cs: Set the text when the SelectedIndex
14532         changes.  Applications depend on this (PDN 2.72)
14533
14534 2006-12-23  Chris Toshok  <toshok@ximian.com>
14535
14536         * TableLayoutSettings.cs: finish up the corcompare work for this
14537         class.
14538
14539 2006-12-23  Chris Toshok  <toshok@ximian.com>
14540
14541         * Control.cs: make SetImplicitBounds internal, do some futzing
14542         with LayoutEngine so that it's available in 1.1, and remove the
14543         entire duplicated code mess from PerformLayout.  Use
14544         System.Windows.Forms.Layout.DefaultLayout instead.
14545
14546         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
14547
14548 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
14549
14550         * Form.cs: Add MainMenuStrip property.
14551
14552 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
14553
14554         * Control.cs: Add ContextMenuStrip property and implementation.
14555         Fix ContextMenu implementation to show menu centered on control when
14556         activated using the keyboard instead of showing at screen (0,0).
14557
14558         * ToolStripDropDown.cs: Fix needed overload of Show ().
14559
14560 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
14561
14562         * Menu.cs: Name property added for 2.0 profile.
14563         
14564 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
14565
14566         * Menu.cs: Update information about FindMenuItem, method to be
14567         implemented soon.
14568
14569 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
14570
14571         * MenuAPI.cs: When deselect items deselect also selected subitems.
14572         
14573 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
14574
14575         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
14576         FindSubItemByCoord to found itens that is not active, also an
14577         cheking added to FindSubItemByCoord to search for items only 
14578         in visible popup windows. Fixes #80274.
14579
14580 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
14581
14582         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
14583         internal property, it be care about change ExStyle. 
14584
14585 2006-12-22  Andreia Gaita  <avidigal@novell.com>
14586
14587         * ContainerControl.cs: set activeControl for parent forms up the 
14588         tree when the new activecontrol is a container.
14589         When validating the active control, if it is a container, also
14590         raise up the validation for it's active control. Fixes #80280
14591         
14592         * Control.cs: Add internal property flag and check to prevent
14593         Focus events from getting raised when Select() is called for
14594         a ContainerControl. There are still too many focus events being
14595         raised at the moment though.
14596         Cleaned up the code a bit.
14597
14598 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14599
14600         * Control.cs: Added all missing 2.0 events.and
14601         fixed a couple of corcompare issues.
14602         * TrackBar.cs: Implemented missing 2.0 bits.
14603         * MonthCalendar.cs, 
14604         * DateTimePicker.cs, 
14605         * MdiClient.cs: Fixed some corcompare issues.
14606
14607 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
14608
14609         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
14610         SplitterPanel.cs: corecompare work.
14611
14612 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
14613
14614         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
14615         Clean up warnings for BackgroundImageChanged and PaddingChanged
14616         events now that they are implemented in Control.cs.
14617
14618 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
14619
14620         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
14621         
14622         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
14623         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
14624         of TableLayoutPanel and supporting cast.
14625
14626 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14627
14628         * XplatUIWin32.cs: 
14629         - GrabWindow now confines the mouse pointer to the confine window.
14630         - Added Win32ClipCursor and Win32GetClipCursor.
14631
14632         * Control.cs: 
14633         - Added CaptureWithConfine to be able to capture and confine 
14634         mouse pointer.
14635         
14636         * InternalWindowManager.cs: 
14637         - Call CaptureWithConfine instead of Capture if we're an
14638         MdiChild (fixes #79982).
14639
14640 2006-12-21  Chris Toshok  <toshok@ximian.com>
14641
14642         * DataGrid.cs: guard against the initial state of selection, where
14643         selection_start == -1.  make sure we only select from index >= 0.
14644         Fixes bug #80291.
14645
14646 2006-12-21  Chris Toshok  <toshok@ximian.com>
14647
14648         * Control.cs: we don't need to be so draconian with
14649         UpdateDistances, and we thusly don't need to call it before
14650         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
14651
14652 2006-12-21  Daniel Nauck  <dna@mono-project.de>
14653
14654         * ComboBox.cs,
14655         TextBox.cs: Implemented AutoComplete properties.
14656
14657 2006-12-20  Chris Toshok  <toshok@ximian.com>
14658
14659         * DataGridView*.cs: some corecompare work.
14660
14661 2006-12-20  Jackson Harper  <jackson@ximian.com>
14662
14663         * XplatUIX11.cs: We need to hide the caret when deleting it,
14664         otherwise you get carets left lying around everywhere.
14665         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
14666         prevents getting some weird half drawn caret tracers when
14667         scrolling.
14668         * TextControl.cs: Attempt to reduce the number of times we need to
14669         recreate the caret.
14670
14671 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
14672
14673         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
14674
14675 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14676
14677         * DateTimePicker.cs:
14678         - Implemented missing 2.0 bits.
14679         - Changed some default values to match MS.
14680         
14681 2006-12-20  Jackson Harper  <jackson@ximian.com>
14682
14683         * TextBoxBase.cs: When changing the font across the document we
14684         can't recalculate after changing each line, since that will cahnge
14685         the line count.
14686         - PreferredHeight is a little different than i thought.
14687         - When backspacing, move the caret before we do the actual char
14688         delete, because when that delete crosses a wrap boundary the
14689         positional information will change.
14690
14691 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14692
14693         * Control.cs: Added some missing 2.0 bits: 
14694         BackgroundImageLayout, BackgroundImageLayoutChanged, 
14695         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
14696         add IBindableComponent and IDropTarget implementation.
14697         
14698         * MonthCalendar.cs: 
14699         - Added all missing 2.0 features:
14700         BackgroundImageLayout, RightToLeftLayout, 
14701         OnHandleDestroyed, RightToLeftLayoutChanged, 
14702         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
14703         PaddingChanged.
14704         - Rewrote all the BoldDate code, it was completely broken.
14705         - Fixed all the tests (the tests can now be re-enabled, the
14706         problems were not with the tests, but with the control, it was
14707         mostly broken).
14708         
14709         * DateTimePicker.cs: Changed the location where the 
14710         MonthCalendar is shown.
14711         
14712 2006-12-19  Chris Toshok  <toshok@ximian.com>
14713
14714         * DataGridView.cs: add IDropTarget implementation.
14715
14716         * ToolStripPanel.cs: add IDropTarget implementation.
14717
14718 2006-12-19  Jackson Harper  <jackson@ximian.com>
14719
14720         * TextControl.cs: soft now means something different than what it
14721         used to mean, we want to move the caret regardless of whether or
14722         not this break was soft (would we really have wanted the caret
14723         to not move with the break in the old context?)
14724         * TreeView.cs: Make sure we factor in the vert scrollbar when
14725         calculating the horizontal scrollbar's maximum.
14726
14727 2006-12-19  Andreia Gaita  <avidigal@novell.org>
14728
14729         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
14730         check for keywords in alternate casing, close bug #80049.
14731
14732 2006-12-19  Chris Toshok  <toshok@ximian.com>
14733
14734         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
14735         methods (which all do nothing).
14736
14737         * IDropTarget.cs: add the 4 missing methods.
14738
14739 2006-12-19  Chris Toshok  <toshok@ximian.com>
14740
14741         * TableLayoutRowStyleCollection.cs: corcompare work.
14742         
14743         * TableLayoutSettings.cs: same.
14744
14745         * TableLayoutStyle.cs: same.
14746
14747         * TableLayoutColumnStyleCollection.cs: same.
14748
14749 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
14750
14751         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
14752         TableLayoutPanel I've had in my local tree for way too long.
14753
14754 2006-12-19  Miguel de Icaza  <miguel@novell.com>
14755
14756         * TableLayoutSettings.cs: Finish the public API (still needs all
14757         the logic to update on changes). 
14758
14759         * TableLayoutPanelCellPosition.cs: new file.
14760         
14761         * TableLayoutRowStyleCollection.cs,
14762         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
14763         TableLayoutSettings.cs: Track the final 2.0 table api.
14764
14765 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14766
14767         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
14768         and Image List 2.0 members for ColummnHeader.
14769         * ListView.cs: Add key-related 2.0 methods for
14770         ColumnHeaderCollection.
14771
14772 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
14773
14774         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
14775         ArgumentNullException if items argument is null. Ignore null item in
14776         arrays. Removed extra tabs.
14777
14778 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
14779
14780         * MonthCalendar.cs: Fixed InvalidCastException.
14781
14782 2006-12-19  Jackson Harper  <jackson@ximian.com>
14783
14784         * TextControl.cs: Don't increment the position here.
14785         - When calculating char positions only add in the line break size
14786         for hard line breaks.
14787
14788 2006-12-19  Andreia Gaita  <avidigal@novell.org>
14789
14790         * SendKeys.cs: Changed some things to match ms.net behaviour
14791         when parsing shifted capital letters.
14792         
14793         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
14794         Add window handle as parameter to SendInput. X11 needs the 
14795         window handle, and the handle being passed      to it in the keys 
14796         queue is the active control handle (which windows needs), not 
14797         the window handle.
14798         
14799         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
14800         to support SendKeys on X.       
14801         
14802         * X11Keyboard: Implement helper method to lookup a linux keycode
14803         given the virtual keycode. Added table of keycode-2-virtualkey
14804         values to support this.
14805
14806 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14807
14808         * ListView.cs: Add support for SelectedIndexCollection
14809         and SelectedItemCollection 2.0 methods. Implement support
14810         for ImageKey too.
14811         * ListViewItem.cs: Add support for ListViewSubItemCollection
14812         2.0 methods. Also, fix an incorrect behavior of AddRange method
14813         (it shouldn't call Clear).
14814         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
14815
14816 2006-12-19  Jackson Harper  <jackson@ximian.com>
14817
14818         * RichTextBox.cs: 
14819         * TextBoxBase.cs: New args for FormatText
14820         * TextControl.cs: Rewrote the main drawing method, this version
14821         feels a little easier to understand and debug to me.  Hopefully it
14822         does to others also
14823         - Fix FormatText to OR in the new formating values.  Added
14824         FormatSpecified param, basically this works in the same way as
14825         BoundsSpecified in Control.
14826         - Set the caret properties when the caret is positioned.
14827         - When wrapping text make sure that we calculate the width of the
14828         last character
14829         - when calculating alignments we might have wrapped down to the
14830         next line, so don't search for an individual tag, search for the
14831         end of the line
14832         - We need to invalidate the selection area when we replace the
14833         selection.
14834         
14835 2006-12-19  Daniel Nauck  <dna@mono-project.de>
14836
14837         * Application.cs: add Restart () 2.0 support
14838
14839 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
14840
14841         * MenuItem.cs: Invalidate menu item rectangle after change Enable
14842         property. Fixes #80268.
14843         
14844 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
14845
14846         * MenuAPI.cs: Dont trigger select event when closes top menu
14847         item. Fixes #80270.
14848
14849 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
14850
14851         * MenuAPI.cs: When you click on menuitem only trigger onselect
14852         event for top menu itens. Fixes #80271.
14853         
14854 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14855
14856         * MdiWindowManager.cs: Make IconicBounds depend on
14857         the bottom of MdiClient, not the top (fixes #80267)
14858         
14859 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14860
14861         * MdiClient.cs: Added missing 2.0 attribute
14862
14863 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14864
14865         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
14866         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
14867
14868 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
14869
14870         * MenuAPI.cs: Fix click when menuitem is not popup,
14871         this regression was caused by last commit (#80272).
14872
14873 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
14874
14875         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
14876         fire click event or close menu. Fixes #80272.
14877
14878 2006-12-17  Daniel Nauck  <dna@mono-project.de>
14879
14880         * ListViewHitTestInfo.cs: add
14881
14882 2006-12-17  Daniel Nauck  <dna@mono-project.de>
14883
14884         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
14885         * FlatButtonAppearance.cs: add
14886         * DockingAttribute.cs: add
14887
14888 2006-12-17  Chris Toshok  <toshok@ximian.com>
14889
14890         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
14891         and rebind our columns when it does - this way, if you make
14892         changes to the DataTable (or set the Table attribute on a DataView
14893         after setting it as the DataGrid's DataSource, the changes are
14894         made visible.)  Fixes bug #80107.
14895
14896 2006-12-17  Daniel Nauck  <dna@mono-project.de>
14897
14898         * ListViewGroup.cs: add internal Location property for layouting.
14899         * Theme.cs: add abstract ListViewGroupHeight function.
14900         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
14901
14902 2006-12-16  Andreia Gaita  <avidigal@novell.com>
14903
14904         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
14905         Added reset of selected index to 0 when adding first tab page.
14906         Fixes #80264
14907         
14908         * NumericUpDown.cs: Fix NET_2_0 check
14909
14910 2006-12-16  Daniel Nauck  <dna@mono-project.de>
14911
14912         * ListViewGroup.cs: fixed DefaultValueAttribute value
14913
14914 2006-12-16  Daniel Nauck  <dna@mono-project.de>
14915
14916         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
14917
14918 2006-12-15  Miguel de Icaza  <miguel@novell.com>
14919
14920         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
14921         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
14922         ScrollableControl.cs: Add a handful of methods that are
14923         overwritten in 2.0 
14924
14925 2006-12-15  Chris Toshok  <toshok@ximian.com>
14926
14927         * XplatUIWin32.cs: initial implementation of the Reversible
14928         drawing functions.  there are some problems.  DrawReversibleFrame
14929         doesn't seem to work at all for Dashed FrameStyle, and in the
14930         Thick case there are drawing errors at the corners (we probably
14931         need to bind Rectangle instead of doing moveto/lineto's.)
14932
14933 2006-12-16  Andreia Gaita  <avidigal@novell.com>
14934         
14935         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
14936         to send blocks of key messages. Send accumulates keys to send with Flush, 
14937         while SendWait sends all keys immediately.
14938                 
14939         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
14940         XplatUIX11.cs,  XplatUIX11-new.cs:
14941         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
14942         to Win32 SendInput.
14943         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
14944         
14945         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
14946         testing for ms.net on this class is very tricky, as the tests run too fast 
14947         to allow the hook to release, essentially freezing the keyboard and the 
14948         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
14949         category :p
14950
14951 2006-12-16  Daniel Nauck  <dna@mono-project.de>
14952
14953         * Padding.cs: fixed serialization compability to MS ("_var" field names),
14954                         added missing attributes.
14955  
14956 2006-12-15  Daniel Nauck  <dna@mono-project.de>
14957
14958         * ListViewGroup.cs: Added missing attributes.
14959         * ListViewGroupCollection.cs: Added missing attributes.
14960
14961 2006-12-15  Daniel Nauck  <dna@mono-project.de>
14962
14963         * ListViewItem.cs: fixed ListViewSubItem text property.
14964
14965 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14966         
14967         * Control.cs: Added missing 2.0 attributes
14968         
14969 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14970         
14971         * MdiClient.cs: Added missing 2.0 attribute.
14972         * MonthCalendar.cs: Added some missing 2.0 attributes 
14973         and properties.
14974         
14975 2006-12-15  Daniel Nauck  <dna@mono-project.de>
14976
14977         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
14978
14979 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
14980
14981         * MainMenu.cs: Add the new 2.0 constructor to help out people
14982         using the MainMenu in VS2005.
14983
14984 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14985         
14986         * MdiChildContext.cs: Removed it, no longer used.
14987         * MdiClient.cs: Added missing 2.0 attributes.
14988         
14989 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14990         
14991         * InternalWindowManager.cs: Fix a NullRef with previous 
14992         changes for toolwindows.
14993         
14994 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14995
14996         * Control.cs: 
14997         - Added AfterTopMostControl to allow for certain controls 
14998         to always stay on top when normal controls are brought to 
14999         front.
15000         
15001         * XplatUIWin32.cs: 
15002         - (DrawInversibleRectangle): Get window rectangle from Win32 
15003         in stead of from control, since Win32 doesn't calculate
15004         screen coords correctly from control's Location if it 
15005         have docked siblings.
15006         
15007         * MdiWindowManager.cs:
15008         - Correct the control menu popup location when clicked on
15009         the maximized form icon. (fixes #80223.1)
15010         - Don't show moving rectangle if mouse hasn't moved from
15011         the original clicked point.
15012         - Removed FormGotFocus handler (not used).
15013         - Calculate the control buttons location from the main
15014         window's size and not client size (fixes #79770).
15015         - Form is now closed when the form icon is double-clicked
15016         (fixes #79775). 
15017         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
15018         
15019         * InternalWindowManager.cs:
15020         - Moved some MDI-only methods to MdiWindowManager.
15021         - Removed unused properties and methods.
15022         - Unified method naming for methods handling wm messages.
15023         - Moved all message handling to seperate methods for
15024         each message.
15025         
15026         * ThemeWin32Classic.cs:
15027         - DrawManagedWindowDecorations now draws the title bar 
15028         with a gradient brush.
15029         - Add a CPDrawButtonInternal that allows us to specify
15030         light, normal and dark colors for the buttons (control 
15031         buttons for MDI children were drawn with the same light
15032         color as the background, therefore loosing the 3D effect).
15033         
15034         * SizeGrip.cs:
15035         - Add a CapturedControl property that is used to 
15036         determine the control to resize (defaults to parent). 
15037         Needed for MdiClient, since its SizeGrip's parent is
15038         MdiClient, but the control to resize is the main form.
15039         
15040         * MdiClient.cs:
15041         - Set SizeGrip's CapturedControl to the main form in order
15042         to resize the main form and not the MdiClient.
15043         - Override AfterTopMostControl to leave the scrollbars 
15044         always on top.
15045
15046 2006-12-15  Daniel Nauck  <dna@mono-project.de>
15047
15048         * ListView.cs: fixed ListViewItemCollection AddRange and
15049                         implemented ListViewItemCollection AddRange 2.0 support.
15050
15051 2006-12-15  Daniel Nauck  <dna@mono-project.de>
15052
15053         * ListViewGroup.cs: Add.
15054         * ListViewGroupCollection.cs: Add
15055         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
15056         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
15057                                 stub for ImageKey 2.0 support.
15058
15059 2006-12-14  Mike Kestner  <mkestner@novell.com>
15060
15061         * ListView.cs: add text padding to the autocalculation for columns
15062         of width -2.  Fixes #80207.
15063  
15064 2006-12-14  Mike Kestner  <mkestner@novell.com>
15065
15066         * ListView.cs: add some index guarding for partial row navigation 
15067         logic.  Fixes #80250.
15068
15069 2006-12-14  Mike Kestner  <mkestner@novell.com>
15070
15071         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
15072         are added or inserted to the collection.  Fixes #81099.
15073
15074 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
15075
15076         * MenuAPI.cs: Closes menu when right click out side of popup
15077         it fix problem in ContextMenu and MainMenu. Fixes #80252.
15078
15079 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15080
15081         * ListViewItem.cs: Fix dumb error.
15082
15083         * ListView.cs: Add Find and ContainsKey methods in 
15084         ListViewItemCollection, and also return true for IsReadOnly
15085         and IsFixedSize (changes for 2.0). 
15086
15087 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
15088
15089         * Control.cs: Allow Region to be set to null.
15090
15091 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15092
15093         * MdiWindowManager.cs: Remove unused (commented out) code.
15094         * Form.cs: When the MdiChild is maximized, the form needs 
15095         WM_NCMOUSELEAVE, so request it.
15096         * InternalWindowManager.cs: 
15097         - Added tooltips to control buttons.
15098         - Removed duplicated control button handling code.
15099         - Removed unused (commented out) code.
15100         
15101 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
15102
15103         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
15104         was used because we must set cursor without trigger ChangeCursor event
15105         and without change Cursor control property. Fixes #79963.
15106
15107 2006-12-12  Andreia Gaita  <avidigal@novell.com>
15108         
15109         * Control.cs: Check if Region setter value is null, and ignore
15110
15111 2006-12-12  Jackson Harper  <jackson@ximian.com>
15112
15113         * TextControl.cs: We were almost always drawing one more line then
15114         needed, since the GetLineByPixel will return the last line found
15115         at that pixel. In most cases though, we were invalidating up to
15116         the junction between two lines.
15117         - Improve debug code.
15118
15119 2006-12-12  Chris Toshok  <toshok@ximian.com>
15120
15121         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
15122         and FillReversibleRectangle.
15123
15124         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
15125         and FillReversibleRectangle.
15126
15127         * XplatUIWin32.cs: add stubs which do nothing for
15128         DrawReversibleFrame, DrawReversibleLine, and
15129         FillReversibleRectangle.
15130
15131         * XplatUIOSX.cs: add stubs which raise NIE for
15132         DrawReversibleFrame, DrawReversibleLine, and
15133         FillReversibleRectangle.
15134
15135         * XplatUIX11.cs: add working implementation for
15136         DrawReversibleFrame, DrawReversibleLine, and
15137         FillReversibleRectangle.
15138         
15139         * ControlPaint.cs: implement DrawReversibleFrame,
15140         DrawReversibleLine, and FillReversibleRectangle, by calling into
15141         the appropriate XplatUI method.
15142
15143 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15144
15145         * Form.cs: Make MdiClient have the focus even if it's
15146         not selectable, since it should receive WM_KEY* and WM_MOUSE 
15147         messages. Fixes #79907.
15148         
15149 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15150
15151         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
15152         queried after the window is created.
15153         
15154         * XplatUIX11.cs: Added SendParentNotify to implement 
15155         WM_PARENTNOTIFY logic. Fixes #79965.
15156         
15157         * Control.cs: Added MakeParam.
15158         
15159 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15160
15161         * MdiClient.cs: Resume Layout before setting window
15162         states (fixes #80201).
15163
15164 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15165
15166         * MenuAPI.cs: Deselect a menu item after performing
15167         the click (fixes #80197).
15168
15169 2006-12-11  Jackson Harper  <jackson@ximian.com>
15170
15171         * TextBoxBase.cs: We need to cap this value, since Maximum -
15172         ViewPortHeight can be less than zero.
15173         - Only do selection with the left mouse button.
15174         * TextBox.cs: Don't tell the world that we have a context menu.
15175         * Control.cs: New method so that we can control whether or not the
15176         context menu is visible outside MWF.
15177
15178 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
15179
15180         * ToolBarButton.cs: Fix text positon. 
15181
15182 2006-12-11  Miguel de Icaza  <miguel@novell.com>
15183
15184         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
15185
15186         * Control.cs (DoubleBuffered): Add implementation.
15187
15188         * Application.cs (OpenForms): Add.
15189
15190 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
15191
15192         * Form.cs: Use opacity instead of Opactiy to determine if we need
15193         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
15194
15195 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
15196
15197         * Control.cs: Fix NRE if Control.Site was set to null.
15198
15199 2006-12-11  Chris Toshok  <toshok@ximian.com>
15200
15201         * Control.cs: ControlCollection.Remove should return if the arg is
15202         null, and ControlCollection.SetChildIndex should raise a ANE.
15203
15204 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
15205
15206         * Control.cs: Verify value set for Dock property. Code formatting
15207         updates.
15208
15209 2006-12-11  Jackson Harper  <jackson@ximian.com>
15210
15211         * TextControl.cs: Draw the caret and the selection when a flag is
15212         set on the owner.
15213         * TextBoxBase.cs: We want to draw the caret and the selection for
15214         TextBox but not for TextBoxBase.
15215         - If the window is resized and scrolling is no longer needed (the
15216         whole doc is visible) set the scroll position to zero.
15217         - The default SelectWord (the one TextBox uses) should move the
15218         caret to the end of the word.
15219         - SelectAll moves the caret to the end of the selection.
15220         * TextBox.cs: We don't selectall on focus, we just do it when the
15221         control is created.
15222         
15223 2006-12-11  Mike Kestner  <mkestner@novell.com>
15224
15225         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
15226
15227 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
15228
15229         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
15230         2.0 support.
15231         * ListViewItem.cs: Add Name 2.0 property.
15232
15233 2006-12-11  Andreia Gaita  <avidigal@novell.com>
15234
15235         * TabControl.cs: Set visibility on selected or default tab 
15236         when tabcontrol handle is created, so that it's contents
15237         actually show up (duh). Fixes #80193
15238         Don't redraw the control if there is no handle created, as
15239         the selected index might be completely invalid. Added some tests
15240         to check for this.
15241
15242 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
15243
15244         * ToolBar.cs: Uses maximun width and height of all buttons as 
15245         button rectangle when ButtonSize specified, it looks strange but
15246         is what happens in Win32. Fixes #80189.
15247
15248 2006-12-11  Jackson Harper  <jackson@ximian.com>
15249
15250         * TextControl.cs: Need to track undo levels ourself, since
15251         compound actions will mess them up.
15252
15253 2006-12-10  Andreia Gaita  <avidigal@novell.com>
15254
15255         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
15256         SelectedIndex value is changed (even if it's not valid).
15257         Reset SelectedIndex to 0 when the handle is created and if
15258         the current index is invalid.
15259         Fixes SelectdeIndex unit tests and #80128
15260
15261 2006-12-08  Chris Toshok  <toshok@ximian.com>
15262
15263         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
15264         calls EndEdit, it needs to be called before we set current_cell to
15265         its new value.  Otherwise, we end up committing the value in the
15266         textbox to the new cell as well.  Fixes bug #80160.
15267
15268 2006-12-08  Chris Toshok  <toshok@ximian.com>
15269
15270         * Form.cs (set_CancelButton): if the button's DialogResult is
15271         None, set it to Cancel.  Fixes bug 80180.
15272
15273 2006-12-08  Jackson Harper  <jackson@ximian.com>
15274
15275         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
15276         to watch ourselves when setting the canvas size and setting the
15277         scrollbar values.
15278
15279 2006-12-08  Chris Toshok  <toshok@ximian.com>
15280
15281         * DataGrid.cs: comment out the two MakeTransparent calls for the
15282         time being so people using trunk (and not 1.2.2) on windows can
15283         actually use the datagrid.  This deals with bug #80151.
15284
15285 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
15286
15287         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
15288         Graphics.DrawImage (image, int, int, int, int) overload instead
15289         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
15290         the dpi difference and was blurring images it drew.
15291         [Fixes bug #79960]
15292
15293 2006-12-08  Chris Toshok  <toshok@ximian.com>
15294
15295         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
15296         rowcnt is 0 (such as with an empty datasource), and make sure we
15297         initialize not_usedarea.Y to cells.Y, so we don't draw over the
15298         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
15299
15300 2006-12-08  Chris Toshok  <toshok@ximian.com>
15301
15302         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
15303         grid.
15304
15305 2006-12-08  Chris Toshok  <toshok@ximian.com>
15306
15307         [ Fixes bug #80167 ]
15308         
15309         * ThemeWin32Classic.cs: don't draw the image if the button's flat
15310         style is FlatStyle.System.
15311
15312         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
15313         ButtonBase.flat_style private, and switch uses of it to the public
15314         property.
15315         
15316 2006-12-08  Chris Toshok  <toshok@ximian.com>
15317
15318         [ Fixes bug #80121 ]
15319         
15320         * ThemeWin32Classic.cs: center the caption text in the datagrid
15321         when we draw it.
15322
15323         * DataGrid.cs: lessen the amount we add to the caption height from
15324         6 to 2.  6 was making it huge.
15325
15326 2006-12-08  Andreia Gaita  <avidigal@novell.com>
15327
15328         * UpDownBase: Handle MouseWheel call directly instead of capturing
15329         the inner textbox's OnMouseWheel. Fixes #80166
15330
15331 2006-12-08  Jackson Harper  <jackson@ximian.com>
15332
15333         * TextControl.cs: We need to invalidate the textbox when we empty
15334         it (how had this not been discovered before?)
15335
15336 2006-12-08  Jackson Harper  <jackson@ximian.com>
15337
15338         * TextBoxBase.cs: Reworked the mouse down code so I could get it
15339         to behave like MS, we now ignore the eventargs.Click and just
15340         track state ourself, which we were already doing anyways.
15341         - Constrain the double click handler to the double click size.
15342         
15343 2006-12-08  Chris Toshok  <toshok@ximian.com>
15344
15345         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
15346         direction if that scrollbar isn't shown.  fixes bug #80158.
15347
15348 2006-12-08  Andreia Gaita  <avidigal@novell.com>
15349
15350         * NumericUpDown.cs: Update value on getter. Fixes #79950
15351
15352 2006-12-08  Chris Toshok  <toshok@ximian.com>
15353
15354         * MenuItem.cs: add back in the event cloning code.  I didn't know
15355         how to do it in the face of the EventHandlerList work i'd done
15356         last week.  Fixes bug #80183.
15357
15358 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
15359
15360         * Control.cs: Add an invalidate to the BackgroundImage setter.
15361         [Fixes 80184]
15362
15363 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
15364
15365         * ToolStrip*: Add some small properties reported by MoMA, fix event
15366         firing and default properties based off of unit tests, and add some
15367         attributes based off of the class status page.
15368
15369 2006-12-07  Jackson Harper  <jackson@ximian.com>
15370
15371         * TextBoxBase.cs: Take HideSelection into account when determining
15372         whether or not to show the selection.
15373         * RichTextBox.cs: After inserting the RTF into the document move
15374         the cursor to the beginning of the document.
15375
15376 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
15377
15378         * Control.cs: Remove static ArrayList "controls" which maintained
15379         a reference to every control created.
15380         * Application.cs: Create a static FormCollection to maintain a reference
15381         to every form created.  Use it in places that formerly enumerated through
15382         the controls one looking for forms.
15383         * Form.cs: Add and remove self from above FormCollection.
15384
15385 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
15386
15387         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
15388           not libgdk (though it makes me wonder why I didn't have any
15389           problems)
15390
15391 2006-12-07  Chris Toshok  <toshok@ximian.com>
15392
15393         [ you had to know this was coming after that last commit...]
15394         
15395         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
15396         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
15397         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
15398         XCopyArea).
15399
15400 2006-12-07  Chris Toshok  <toshok@ximian.com>
15401
15402         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
15403         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
15404         all the behavior we need for double buffering.
15405
15406         * XplatUIDriver.cs: implement the 3 double buffer methods using a
15407         client side Bitmap, just like the old Control-based double buffer
15408         code did.  The methods are virtual, so each XplatUI driver
15409         subclass can replace the implementation to use a faster, platform
15410         specific approach.
15411
15412         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
15413         double buffer code, and clean things up a bit in the process.
15414
15415 2006-12-06  Chris Toshok  <toshok@ximian.com>
15416
15417         * Control.cs: reindent WndProc.
15418
15419 2006-12-06  Chris Toshok  <toshok@ximian.com>
15420
15421         [ I wanna be like BenM when I grow up ]
15422         
15423         * Hwnd.cs: create a single static Graphics object on the static
15424         Bitmap we create.  use this for our text measurements.
15425
15426         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
15427         This was causing us to allocate a backbuffer for every control,
15428         even when it wasn't flagged as double buffered.  Instead use the
15429         single graphics instance.  This might have implications for
15430         multithreaded applications.  If we run into problems we can switch
15431         to creating 1 Graphics per control, on the static Hwnd bitmap.
15432
15433         this change nets us a 7M savings in private dirty mappings when
15434         running FormsTest.exe.
15435
15436 2006-12-06  Chris Toshok  <toshok@ximian.com>
15437
15438         * ListView.cs: the BackgroundImage override is just to set
15439         attributes.  chain up to base.BackgroundImage.
15440
15441         * RichTextBox.cs: same.
15442
15443         * ToolBar.cs: same, but we need to also redraw the toolbar when it
15444         changes, so instead a handler for BackgroundImageChanged.
15445         
15446         * Control.cs: make background_image private.
15447
15448 2006-12-06  Chris Toshok  <toshok@ximian.com>
15449
15450         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
15451         sure we even need this assignment, but roll with it for now.
15452
15453         * Control.cs: make the cursor field private.
15454
15455 2006-12-06  Chris Toshok  <toshok@ximian.com>
15456
15457         * Form.cs: we don't need to explicitly set ImeMode to
15458         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
15459         behavior in the face of ImeMode.Inherit.
15460
15461         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
15462         change the ctor's assignment to use ImeMode instead of ime_mode.
15463
15464         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
15465         ImeModeInherit.  Only check for the parent's imemode (and return
15466         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
15467         This fixes the button unit test, which sets both ImeMode and
15468         DefaultImeMode to ImeMode.Disable.
15469
15470         also make the ime_mode field private.
15471
15472 2006-12-06  Chris Toshok  <toshok@ximian.com>
15473
15474         * Control.cs: make control_style private.
15475
15476         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
15477         setting the styles to true, then setting them to false instead of
15478         reverting to their previous values.
15479
15480         also, call SetStyle on the scrollbars instead of using
15481         control_style directly.
15482
15483 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
15484
15485         * FormCollection.cs: Implement. [2.0]
15486
15487 2006-12-06  Chris Toshok  <toshok@ximian.com>
15488
15489         * Control.cs: make tab_stop private.
15490
15491         * Label.cs: set TabStop, not tab_stop.  reformat some event
15492         add/remove methods to make them more compact.
15493
15494 2006-12-06  Chris Toshok  <toshok@ximian.com>
15495
15496         * RadioButton.cs: fix TabStop handling.
15497
15498 2006-12-06  Chris Toshok  <toshok@ximian.com>
15499
15500         * TextBox.cs: remove the explicit assignments to has_focus.
15501         Control does that.
15502
15503         * ButtonBase.cs: remove the assignment to has_focus.  Control will
15504         manage that.
15505         
15506 2006-12-06  Chris Toshok  <toshok@ximian.com>
15507
15508         * ButtonBase.cs: remove all uses of is_enabled from this code.
15509         it's always true when any of the code containing the checks is
15510         executed.
15511
15512 2006-12-06  Chris Toshok  <toshok@ximian.com>
15513
15514         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
15515         with different semantics (some are present in both 1.1 and 2.0
15516         profiles) so that we match MS's behavior in our unit tests.
15517
15518 2006-12-06  Jackson Harper  <jackson@ximian.com>
15519
15520         * TextControl.cs: Make this operation undoable.
15521         * TextBoxBase.cs: Factor the border width into the preferred
15522         height.
15523         - implement Modified as per the spec.
15524
15525 2006-12-06  Chris Toshok  <toshok@ximian.com>
15526
15527         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
15528
15529 2006-12-06  Chris Toshok  <toshok@ximian.com>
15530
15531         * Control.cs: make right_to_left and context_menu fields private.
15532
15533 2006-12-06  Chris Toshok  <toshok@ximian.com>
15534
15535         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
15536         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
15537         Control.child_controls private.  switch all uses over to
15538         Control.Controls.
15539
15540 2006-12-06  Chris Toshok  <toshok@ximian.com>
15541
15542         * System.Windows.Forms/GroupBox.cs,
15543         System.Windows.Forms/AccessibleObject.cs,
15544         System.Windows.Forms/ErrorProvider.cs,
15545         System.Windows.Forms/Control.cs,
15546         System.Windows.Forms/UpDownBase.cs,
15547         System.Windows.Forms/ScrollBar.cs,
15548         System.Windows.Forms/DateTimePicker.cs,
15549         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
15550         System.Windows.Forms/ToolTip.cs,
15551         System.Windows.Forms/RadioButton.cs,
15552         System.Windows.Forms/LinkLabel.cs,
15553         System.Windows.Forms/Splitter.cs,
15554         System.Windows.Forms/TextBoxBase.cs,
15555         System.Windows.Forms/ToolStripTextBox.cs,
15556         System.Windows.Forms/ContainerControl.cs,
15557         System.Windows.Forms/ThemeWin32Classic.cs,
15558         System.Windows.Forms/SizeGrip.cs,
15559         System.Windows.Forms/ToolStripDropDown.cs,
15560         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
15561         private.  switch all uses over to Control.Parent.
15562
15563 2006-12-06  Chris Toshok  <toshok@ximian.com>
15564
15565         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
15566         Control does this before calling emitting these events.
15567
15568         * TabControl.cs: same.
15569
15570         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
15571         Control.client_rect.
15572
15573         * ButtonBase.cs: use the ClientSize property instead of the
15574         client_size field.
15575
15576         * ScrollableControl.cs: same.
15577
15578         * Control.cs: another pass at making properties private.  also,
15579         move the initialization of tab_stop to the ctor.
15580
15581 2006-12-05  Andreia Gaita <avidigal@novell.com>
15582
15583         * TabControl.cs: Let the selected index be set freely if the 
15584         control handle is not yet created.
15585
15586 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
15587
15588         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
15589         internal until I can rewrite DefaultLayout.
15590         * ToolStrip.cs: Fix build error and some general cleaning.
15591         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
15592         Fix build errors caused by making some of Control's fields private.
15593
15594 2006-12-05  Jackson Harper  <jackson@ximian.com>
15595
15596         * TextControl.cs: Redo Insert a little so that it use IndexOf
15597         instead of Split, this prevents it from messing up on things like
15598         \n\n\n. Also more effecient since the split array doesn't need to
15599         be created.
15600         * TextBoxBase.cs: AppendText doesnt handle multiline and non
15601         multiline text differently, this is the first of many fixes that
15602         will make multiline/non-multiline the same thing as far as the
15603         TextBoxBase is concerned.
15604         - Don't split the text and insert lines, this can lose some line
15605         endings (like is the last line a soft or hard break). Instead use
15606         the new Insert.
15607         - Fix an off by one when combining all the lines in the Text
15608         getter.
15609         - Remove separate multiline handling from the Text getter/setter.
15610
15611 2006-12-05  Chris Toshok  <toshok@ximian.com>
15612
15613         * ButtonBase.cs: a few changes:
15614
15615         - don't reinitialize internal Control fields in the ctor when they
15616         have the same values as Control sets them.
15617
15618         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
15619         this before calling those methods.
15620
15621         - we don't need to call Refresh for anything.  use Invalidate
15622         instead.
15623
15624         - OnEnabledChanged doesn't need to redraw at all - Control.cs
15625         calls Refresh in its OnEnabledChanged.
15626         
15627         - several of the events we were registered for in the ctor to
15628         redraw ourselves already include calls to Invalidate in the
15629         property setters that raise the events.  remove the extra
15630         invalidation.
15631
15632         - reformat a switch statement that was 83274658 columns wide.
15633         
15634 2006-12-05  Mike Kestner  <mkestner@novell.com>
15635
15636         * ComboBox.cs: fix a unit test regression from a TextBox
15637         SelectionLength return of -1 when there's no selection.  
15638
15639 2006-12-05  Chris Toshok  <toshok@ximian.com>
15640
15641         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
15642         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
15643         cleaning up some of the internal Control fields being used by
15644         subclasses.
15645
15646 2006-12-05  Mike Kestner  <mkestner@novell.com>
15647
15648         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
15649         listbox after AddImplicit calls since it defaults to hidden. Add a 
15650         hack to preserve requested heights across DropDownStyle changes.
15651
15652 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
15653
15654         * PropertyGrid.cs: Hide FindFirstItem method from public API.
15655
15656 2006-12-05  Chris Toshok  <toshok@ximian.com>
15657
15658         * DataGridView.cs: fix compiler warnings.
15659
15660         * PrintControllerWithStatusDialog.cs: same.
15661
15662         * ToolBar.cs: same.
15663
15664         * FolderBrowserDialog.cs: same.
15665
15666         * Splitter.cs: same.
15667
15668         * DataGridViewComboBoxCell.cs: same.
15669
15670         * XplatUIWin32.cs: same.
15671
15672         * PictureBox.cs: same.
15673
15674         * Win32DnD.cs: same.
15675
15676         * PageSetupDialog.cs: same.
15677
15678         * FileDialog.cs: same.
15679
15680         * PrintDialog.cs: same.
15681
15682         * DataGridTextBoxColumn.cs: same.
15683
15684         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
15685
15686 2006-12-05  Chris Toshok  <toshok@ximian.com>
15687
15688         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
15689         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
15690         System.ComponentModel.EventHandlerList work.
15691
15692 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
15693
15694         * DrawTreeNodeEventArgs.cs: Added.
15695
15696 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15697         
15698         * InternalWindowManager.cs: Remove an unused field.
15699         
15700 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15701
15702         * InternalWindowManager.cs:
15703         - Save the point where the title bar is clicked.
15704         
15705         * MdiWindowManager.cs:
15706         - Only allow moving of the window as long as the 
15707         clicked point on the title bar does not get out of
15708         MdiClient's rectangle. Fixes #79982.
15709         
15710         * MdiClient.cs:
15711         - Added Horizontal/VerticalScrollbarVisible.
15712         - Simplified the scrollbar sizing algorithm.
15713         - Cache the difference in scrolled value in
15714         H/VBarValueChanged and move the calculation out
15715         of the for loop.
15716
15717 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15718
15719         * Control.cs: Make the Console.WriteLine in WndProc 
15720         write more info.
15721
15722 2006-12-05  Chris Toshok  <toshok@ximian.com>
15723
15724         * ToolStripManager.cs, ToolStripButton.cs,
15725         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
15726         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
15727         ToolStripSplitButton.cs, ToolStripSeparator.cs,
15728         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
15729         ToolStripProgressBar.cs, ToolStripContainer.cs,
15730         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
15731         to using System.ComponentModel.EventHandlerList.
15732
15733 2006-12-04  Chris Toshok  <toshok@ximian.com>
15734
15735         * LinkLabel.cs: fix up compiler warnings.
15736
15737         * TableLayoutSettings.cs: same.
15738
15739         * TreeView.cs: same.
15740
15741         * ToolBar.cs: same.
15742
15743         * TabControl.cs: same.
15744
15745         * RichTextBox.cs: same.
15746
15747         * ListViewItem.cs: same.
15748
15749         * PropertyGrid.cs: same.
15750
15751         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
15752
15753         * ToolTip.cs same.
15754
15755         * TextRenderer.cs: fix up compiler warnings.
15756
15757         * Label.cs: same.
15758
15759         * Form.cs: corcompare fixes.
15760
15761         * PictureBox.cs: fix up compiler warnings.
15762
15763         * ImageListStreamer.cs: same.
15764
15765         * TrackBar.cs: corcompare fix.
15766
15767         * Control.cs: fix up compiler warnings.
15768
15769         * SplitterPanel.cs: same.
15770
15771         * NumericTextBox.cs: same.
15772
15773         * ImageList.cs: same.
15774
15775         * StatusStrip.cs: same.
15776
15777         * ProgressBar.cs: corcompare fix.
15778
15779         * ToolStripButton.cs: fix up compiler warnings.
15780
15781         * ToolStripStatusLabel.cs: same.
15782
15783         * ToolStripSplitButton.cs: same.
15784
15785         * ToolStripSeparator.cs: same.
15786
15787         * ToolStripProgressBar.cs: same.
15788
15789         * ToolStripDropDownMenu.cs: same
15790
15791         * ToolStripDropDown.cs: same.
15792
15793         * ToolStripDropDownButton.cs: same.
15794
15795         * ToolStrip.cs: same.
15796
15797         * ToolStripControlHost.cs: same.
15798
15799         * ToolStripContentPanel.cs: same.
15800
15801         * ToolStripDropDown.cs: same.
15802
15803         * ToolStripContainer.cs: same.
15804
15805         * ToolStripPanel.cs: same, and add "new" where we need it to work
15806         with the new ArrangedElementCollection.
15807
15808         * ToolStripItemCollection.cs: add "new" where we need it to work
15809         with the new ArrangedElementCollection.
15810
15811 2006-12-04  Andreia Gaita <avidigal@novell.com>
15812
15813         * TabControl.cs: Fix default tab selection to after TabControl
15814         gets focus and not before. Fixes #80128
15815
15816 2006-12-04  Chris Toshok  <toshok@ximian.com>
15817
15818         * DataGridTableStyle.cs: remove the gross calling of
15819         datagrid.Refresh from here.  It's a broken idea and it doesn't
15820         work anyway.
15821
15822         * DataGrid.cs: instead, just register/unregister from the
15823         DataGridTableStyle events in CurrentTableStyle.  we play it
15824         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
15825         even though some would most likely not require it.  Fixes bug
15826         #80115 (and one portion of #80117 as a side effect).
15827
15828 2006-12-04  Chris Toshok  <toshok@ximian.com>
15829
15830         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
15831         so the textbox (if any) goes away.  Fixes bug #80117.
15832
15833 2006-12-04  Chris Toshok  <toshok@ximian.com>
15834
15835         * DataGridColumnStyle.cs: set the column's readonly property
15836         initially based on the property descriptor's IsReadOnly.  Fixes
15837         bug #80044.
15838
15839 2006-12-04  Chris Toshok  <toshok@ximian.com>
15840
15841         * ComboBox.cs: wrap the dropdown style changing work in
15842         SuspendLayout/ResumeLayout.  Fixes bug #79968.
15843
15844 2006-12-04  Jackson Harper  <jackson@ximian.com>
15845
15846         * TextBoxBase.cs: Fix off by one, since these are one-based.
15847         * TextBox.cs: Select all the text when we get focus.  The TextBox
15848         does this but the RTB does not.
15849
15850 2006-12-04  Chris Toshok  <toshok@ximian.com>
15851
15852         * DataGridTextBoxColumn.cs: remove some spew.
15853
15854         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
15855         but some part of me is saying "it shouldn't be here.."  At any
15856         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
15857         setting the value.
15858
15859 2006-12-04  Chris Toshok  <toshok@ximian.com>
15860
15861         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
15862         to reassign the propertydescriptor.
15863
15864 2006-12-04  Jackson Harper  <jackson@ximian.com>
15865
15866         * TextBoxBase.cs:
15867         * TextControl.cs: Remove some unused variables.  Maybe this will
15868         patch things up between mike and I.
15869         - don't split lines less then one char wide, if the viewport is
15870         that small text won't be visible anyways.
15871         
15872 2006-12-04  Jackson Harper  <jackson@ximian.com>
15873
15874         * TextBoxBase.cs: Default selection length is -1, need to do some
15875         more testing on windows to see when this is used for the property.
15876         - Redid the Lines [] property to that we properly remove soft line
15877         breaks
15878         - added support for preserving carriage returns
15879         -  CanUndo is not a variable like 'is undo enabled' it just returns
15880         true if there is undo operations available.
15881         - AppendText doesn't need to grab the last tag itself anymore,
15882         this happens automatically when we move the cursor.
15883         * TextControl.cs: Add CompoundActions to the undo class. This
15884         allows combining the other operations into one big option.  ie a
15885         paste will combine { delete old, insert new, move cursor }
15886         - Add InsertString undo operation
15887         - New method for deleting multiline text
15888         - Add carriage returns to lines. So we can preserve carriage
15889         returns when text is 'roundtripped'
15890
15891 2006-12-04  Chris Toshok  <toshok@ximian.com>
15892
15893         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
15894         minimum 0.  Fixes the scrollbar exception in bug #80136.
15895
15896 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15897
15898         * MdiClient.cs: 
15899         * MdiWindowManager: Removed unused fields and methods.
15900         
15901 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15902         
15903         * StatusBar.cs: Update all panels when a AutoSize=Contents
15904         panel needs updating.
15905         
15906         * StatusBarPanel.cs: Remove twidth and only use initialize.
15907         Fixes #80031.
15908                 
15909 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15910
15911         * Form.cs: When a form's MdiParent is set add it directly
15912         on top of the z-order in stead of relying on MdiClient's
15913         ActivateChild to do it. Fixes #80135.
15914         
15915         * MdiClient.cs: 
15916         - Remove original_order, mdi_child_list is already doing
15917         the same thing.
15918         - Create mdi_child_list on construction in
15919         stead of first use (avoids a few null checks).
15920
15921         * MenuItem.cs: Use an already existing list of mdi children
15922         to get the correct order of children and remove the other
15923         redundant list.
15924
15925 2006-12-04  Chris Toshok  <toshok@ximian.com>
15926
15927         * PropertyGridView.cs: cached_splitter_location is only used in
15928         !DOUBLEBUFFER code.
15929
15930         * PropertyGrid.cs: implement the ComComponentNameChanged event
15931         using Events, hoping that would fix the warning.  Looks like a
15932         compiler bug instead (#80144).
15933
15934         * PropertyManager.cs: remove unused method.
15935
15936 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
15937
15938         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
15939         include parentesis to fix expression evaluation. Fixes #79634.
15940
15941 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
15942         
15943         * MenuAPI.cs:
15944         - Changes to fix behavior in Menu control, some reported in #80097
15945         and other detected during behavior refactory like a select event
15946         problems.
15947         - Remove unneded "if's" conditions.
15948         - Created an internal to flag when popup is active in control, we need 
15949         it because in .NET you can have menu active but without popup active
15950         when you active menu using popup without visible items.
15951         - Mimic win32 behavior for Select and Popup events.  
15952         - Dont open popup menu when you dont have visible subitems.
15953         - Do nothing when click on disabled menu item.
15954         - Some small changes to follow the coding style guidelines.
15955         - Unselect menu only when another control gives focus. Fixes #80097.
15956         - Remove unused code.
15957         
15958         * MenuItem.cs: internal VisibleItems method to check if menu
15959         theres visible subitems, it will be usefull to fix some 
15960         behavior in Menu control.
15961         
15962 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
15963         
15964         * Timer.cs: Tag property for 2.0 profile.
15965         
15966 2006-12-01  Chris Toshok  <toshok@ximian.com>
15967
15968         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
15969         
15970         * Win32DnD.cs: comment out some unused fields.
15971
15972         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
15973         some unused properties/methods.
15974
15975         * XplatUIX11.cs: fix MousePosition so we override the base class's
15976         property instead of conflicting with it.
15977
15978         * PictureBox.cs: comment out some unused fields
15979
15980         * OSXStructs.cs: make some struct fields public.
15981
15982         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
15983         MousePosition so we override the base class's property instead of
15984         conflicting with it.
15985
15986         * X11Dnd.cs: comment out some unused fields
15987
15988         * X11DesktopColors.cs: fix some struct field visibility to quiet
15989         the compiler.
15990
15991         * X11Dnd.cs: remove some debug code.
15992
15993         * ThemeClearlooks.cs: comment out unused field.
15994
15995         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
15996
15997         * ThemeGtk.cs: comment out some unused pinvokes.
15998
15999         * Timer.cs: remove some unused fields.
16000
16001         * ThemeClearlooks.cs: comment out unused field.
16002
16003         * UpDownBase.cs: comment out unused field.
16004
16005         * DataObject.cs: comment out unused field.
16006
16007         * DataGridBoolColumn.cs: reomve unused field.
16008
16009         * DataGrid.cs: remove unused field.
16010
16011         * Cursor.cs: remove old ToBitmap code.
16012
16013         * ControlPaint.cs: remove unused method.
16014
16015         * ScrollBar.cs: remove unused fields.
16016
16017         * ComboBox.cs: remove unused field, and chain up to
16018         AccessibleObject ctor.
16019
16020         * ListBox.cs: remove unused field.
16021
16022         * ButtonBase.cs: wrap a couple fields in NET_2_0.
16023
16024         * GridEntry.cs: remove unused fields.
16025
16026         * Binding.cs: remove unused fields.
16027
16028         * AxHost.cs: remove unused method.
16029
16030         * ContainerControl.cs: remove unused field.
16031
16032         * ScrollableControl.cs: remove unused fields.
16033
16034 2006-12-01  Chris Toshok  <toshok@ximian.com>
16035
16036         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
16037         the Where/WhereString stuff.  it's easy enough to CWL
16038         Environment.StackTrace.
16039
16040         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
16041         unused private fields.
16042
16043 2006-12-01  Jackson Harper  <jackson@ximian.com>
16044
16045         * TextControl.cs: Do not update the view while inserting multiline
16046         text. If we update the view we might wrap lines, before entering
16047         the new lines, which causes the new line insertion calculations to
16048         be totally fubared.
16049         - Remove an old TODO
16050         - Make debug output a little nicer
16051         
16052 2006-12-01  Chris Toshok  <toshok@ximian.com>
16053
16054         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
16055
16056 2006-12-01  Chris Toshok  <toshok@ximian.com>
16057
16058         [ fix the majority of the CS0108 warnings we've been suppressing ]
16059         
16060         * TreeView.cs: mark BackgroundImageChanged as 'new'.
16061
16062         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
16063         to "LayoutToolBar" to quiet mcs.
16064         
16065         * TabControl.cs: mark our ControlCollection class as 'new'.
16066
16067         * TextBoxBase.cs: mark some events as 'new'.
16068
16069         * Splitter.cs: TabStop is 'new'.
16070
16071         * ControlBindingsCollection.cs: mark a few methods as new since
16072         they change the visibility from protected to public.
16073
16074         * RadioButton.cs: DoubleClick -> base class, and remove unused
16075         HaveDoubleClick.
16076
16077         * MonthCalendar.cs: ImeMode property -> base class, and mark many
16078         events as new.
16079
16080         * NumericUpDown.cs: TextChanged -> base class.
16081
16082         * CheckedListBox.cs: mark our ObjectCollection class as new to
16083         quiet mcs.
16084
16085         * FolderBrowserDialog.cs: make HelpRequest event new and have it
16086         muck with the base class.
16087
16088         * StatusBar.cs: fix some mcs warnings about Update being the same
16089         name as a base class method.
16090
16091         * RichTextBox.cs: mark some events as new, and make them do things
16092         to the base class impl.
16093
16094         * UserControl.cs: mark TextChanged as new, and have it manipulate
16095         base.TextChanged.
16096
16097         * UpDownBase.cs: mark some things new.
16098
16099         * CheckBox.cs: mark DoubleClick "new", and add some text about
16100         what we need to look at.
16101
16102         * Panel.cs: make the events "new", and manipulate the base
16103         version.  these are just here for attributes.
16104
16105         * AccessibleObject.cs: make owner private.
16106
16107         * Control.cs: deal with AccessibleObject.owner being private.
16108         cache our own copy if we need it.
16109
16110         * Button.cs: add "new" to the DoubleClickEvent.
16111
16112         * ListBox.cs: no need to track our own has_focus here.  let
16113         Control.has_focus do it for us.  Also some other work to clear up
16114         warnings about not overriding base class methods of the same name.
16115         
16116         * ComboBox.cs: clear up some warnings about not override base
16117         class methods of the same name.
16118
16119 2006-12-01  Chris Toshok  <toshok@ximian.com>
16120
16121         * Form.cs: flag a few things as "new" to quiet some of the mcs
16122         warnings.
16123
16124         * AxHost.cs: same.
16125
16126         * PrintPreviewDialog.cs: same.
16127
16128         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
16129         now DGV isn't so horrible on the class status page.  also, move
16130         all events to using System.ComponentModel.EventHandlerList.  my
16131         wrists hurt.
16132
16133 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16134
16135         * MdiWindowManager.cs:
16136         - Set form to active mdi child if shown,
16137         and update the active mdi child to the next 
16138         remaining child in the z-order if the form is hidden.
16139
16140         * Form.cs: 
16141         - Track if the form has been visible and if its 
16142         visibility is beeing changed, so that the MdiClient
16143         can properly decide the ActiveMdiChild. The MdiClient 
16144         cannot track this since the form can change visibility 
16145         before MdiClient is created.
16146
16147         * MdiClient.cs:
16148         - Don't activate anything of the parent form is changing
16149         its visibility.
16150         - Rework ActiveMdiChild to only return visible mdi 
16151         children and take into account several other corner 
16152         cases.
16153
16154 2006-12-01  Chris Toshok  <toshok@ximian.com>
16155
16156         * IBindableComponent.cs: new 2.0 interface.
16157
16158 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
16159
16160         * DataGrid.cs: Font for caption area is bold by default.
16161
16162 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
16163
16164         * Menu.cs: Tag property for 2.0.
16165         
16166 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
16167
16168         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
16169         
16170 2006-12-01  Chris Toshok  <toshok@ximian.com>
16171
16172         * TreeView.cs: doh, the Begin* events should be
16173         TreeViewCancelEventHandler.
16174
16175 2006-12-01  Chris Toshok  <toshok@ximian.com>
16176
16177         * Form.cs: Form.ControlCollection already stores off the
16178         form_owner field.  don't access the base class's internal "owner"
16179         field.
16180
16181         * Control.cs: make all the fields in Control.ControlCollection
16182         private.  there's no need for any internal fields here.
16183
16184 2006-12-01  Chris Toshok  <toshok@ximian.com>
16185
16186         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
16187         OnHandleCreated.  Fixes bug #80109.
16188
16189 2006-12-01  Chris Toshok  <toshok@ximian.com>
16190
16191         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
16192         SplitContainer.cs, Control.cs, StatusStrip.cs,
16193         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
16194         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
16195         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
16196         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
16197         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
16198         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
16199         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
16200         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
16201         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
16202         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
16203
16204         do most of the work to convert our code over to use
16205         System.ComponentModel.Component.Events for
16206         adding/removing/dispatching events.
16207
16208
16209 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
16210
16211         * DataGridView.cs: Fix an ArgumentNullException reported 
16212         twice today in IRC.
16213
16214 2006-11-30  Mike Kestner  <mkestner@novell.com>
16215
16216         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
16217         grabbed listbox.  Fixes #80036 and #80101.
16218
16219 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
16220
16221         * Message.cs: Changed ToString() to match MS.
16222         
16223 2006-11-30  Jackson Harper  <jackson@ximian.com>
16224
16225         * TextBoxBase.cs: You can still change the selected text on a read
16226         only textbox.
16227         * TextControl.cs: Lower magic number for wrap calculations. This
16228         lets text get closer to the right (far) edge.
16229
16230 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
16231
16232         * Control.cs: Tweak 2.0 layout properties.
16233         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
16234         * TextRenderer.cs: Add a new overload.
16235         * ToolStrip*: Huge amount of changes and new features.
16236
16237 2006-11-30  Mike Kestner  <mkestner@novell.com>
16238
16239         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
16240         scroll range correct.  Fixes #79994.
16241
16242 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
16243
16244         * MdiWindowManager.cs: Update main form's text when
16245         a form is closed. (fixes #80038)
16246         
16247 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
16248
16249         * ToolBar.cs:
16250         - Fix an regression in ButtonSize.
16251         - Get ImeMode default value change to "Disable".
16252         - Get ShowTooltips default value change to true, default value is 
16253         "false" but after make a test in .NET we get "true" result as default.
16254         
16255 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
16256
16257         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
16258
16259 2006-11-29  Chris Toshok  <toshok@ximian.com>
16260
16261         * XplatUIWin32.cs (GetWindowTransparency): check return value of
16262         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
16263         SetWindowTransparency hasn't been called.
16264
16265 2006-11-29  Chris Toshok  <toshok@ximian.com>
16266
16267         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
16268         if it's supported.
16269         (set_AllowTransparency): reorder things a little so that the
16270         WS_EX_LAYERED style is removed properly.
16271
16272 2006-11-29  Chris Toshok  <toshok@ximian.com>
16273
16274         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
16275         
16276         * Form.cs: only call the XplatUI transparency method (get/set) if
16277         SupportsTransparency says it's supported. Otherwise fallback to
16278         doing nothing (in the set case) or returning the instance field we
16279         cache (in the get case).
16280
16281         * XplatUIStructs.cs: add TransparencySupport flag enum.
16282         
16283         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
16284         change to SupportsTransparency.
16285
16286         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
16287         TransparencySupport.None from SupportsTransparency.
16288
16289         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
16290         TransparencySupport.Set from SupportsTransparency.
16291
16292         * XplatUIWin32.cs: implement GetWindowTransparency calling
16293         GetLayeredWindowAttributes, and implement SupportsTransparency by
16294         checking whether or not both
16295         GetWindowTransparency/SetWindowTransparency are available
16296         entrypoints.  We need to do this since SetWindowTransparency is
16297         available as of win2k, but GetWindowTransparency requires winxp.
16298         yay win32 api.
16299
16300         * XplatUI.cs: Add GetWindowTransparency, and change
16301         SupportsTransparency to allow for either/both Get/Set.
16302
16303 2006-11-29  Chris Toshok  <toshok@ximian.com>
16304
16305         * DataGrid.cs: keep from going into an infinite loop redrawing a
16306         datagrid that has no datasource.  Fixes bug #80033.
16307
16308 2006-11-29  Chris Toshok  <toshok@ximian.com>
16309
16310         * MenuItem.cs: fix the NRE when we assign text (and therefore call
16311         Invalidate) before the mainmenu has been assigned to a control.
16312
16313 2006-11-29  Chris Toshok  <toshok@ximian.com>
16314
16315         * DataGrid.cs: detect when we should be double the double click
16316         row/column autosize stuff, although that codepath has yet to be
16317         written.  part of the work for bug #79891.
16318
16319 2006-11-29  Chris Toshok  <toshok@ximian.com>
16320
16321         * Binding.cs (SetControl): fix unit test.
16322
16323 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16324
16325         * PageSetupDialog.cs: Validate the margins and set them in
16326         PageSettings. 
16327         * NumericTextBox.cs: New class to mimic the behavior of the
16328         textboxes used in the printing dialogs.
16329
16330 2006-11-29  Andreia Gaita  <avidigal@novell.com>
16331         
16332         * Form.cs: Revert previous change (remove call UpdateBounds
16333         from form constructor), because it messes with the handle creation
16334         order, and that one needs lots and lots of love.
16335         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
16336         for valid printer and throw InvalidPrinterException if document
16337         is set but printer not valid), adding a MonoTODO. Once 
16338         handle creation is done properly, we can put this back in.
16339
16340 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
16341
16342         * MenuItem.cs: Create a invalidate method for menu item, to be
16343         calling from set text, it make text changes to imadiate update
16344         on screen. Fixes #80013. 
16345         
16346 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
16347
16348         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
16349         fixes bug #80070 and some other problem on toolbar buttons
16350         layout.
16351
16352 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
16353
16354         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
16355         with dotted brush.      Fixes #79564
16356         
16357 2006-11-28  Andreia Gaita  <avidigal@novell.com>
16358
16359         * Form.cs: Removed call to UpdateBounds on Form
16360         constructor, it was causing a call to CreateHandle
16361         before it was supposed to.
16362         * PrintControllerWithStatusDialog: Applied patch
16363         by Chris Toshok to hide controller when there are
16364         no printers available.
16365         PrintDialog.cs: initialize printer settings to 
16366         null - correct DefaultValues test #5
16367         * PrintPreviewControl.cs: Move PrintController
16368         initialization to GeneratePreview
16369         * PrintPreviewDialog.cs: 
16370         - Remove Preview generation     from Document_set(). It is 
16371         called on OnPaint
16372         - Throw InvalidPrinterException on CreateHandle if
16373         a Document is set but there are no printers or 
16374         printer is not valid.
16375         * ThemeWin32Classic: don't paint PrintPreviewControl
16376         if there is nothing to paint    
16377
16378 2006-11-28  Miguel de Icaza  <miguel@novell.com>
16379
16380         * Form.cs: Add another popular method.
16381
16382         * TabPage.cs: ditto.
16383
16384 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16385
16386         * MenuItem.cs: Fixed a warning.
16387         * InternalWindowManager: Fixed a warning.
16388
16389 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16390
16391         * MenuItem.cs:
16392         - When cloning a menu also clone MdiList and clone the 
16393           window menu items properly (as the forms and menuitems
16394           are kept in an internal hashtable, these need updating 
16395           as well)
16396         - Rewrote the window menu code, menu items are added in the
16397           order the forms were added to their parent, and they are
16398           updated every time the window menu is shown (before the
16399           list was only generated once, in the current order of the
16400           forms, and would never be updated). A checkmark is shown
16401           next to the item corresponding to the active mdi child.
16402
16403 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16404
16405         * XplatUIStructs.cs: 
16406         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
16407         
16408         * XplatUIWin32.cs: 
16409         - Added TME_NONCLIENT to TMEFlags.
16410         - Handles WM_NCMOUSEMOVE in GetMessage to 
16411           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
16412
16413         * MdiWindowManager:
16414         - Now merges mdi child menu to parent menu when maximized.
16415         - Recalculate NC areas of both mdi child and mdi parent. 
16416           Fixes #79757 (4).
16417           on window state and size changes.Fixes #79844 (3).
16418         - Handle WM_NCCALCSIZE to properly calculate borders.
16419
16420         * Form.cs:
16421         - Add/remove to the mdi containers list of mdi children 
16422           in the order they are added.
16423         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
16424           to the maximized mdi child.
16425         
16426         * InternalWindowManager.cs:
16427         - Only execute a click on the control buttons on the mouse up,
16428           not on the mouse down. Show the state of the button 
16429           (was only showing Normal state, never Pressed state). The
16430           pressed button now follows the mouse (if you click the Close 
16431           button and move the mouse over the Maximize button, the 
16432           Maximize button will be shown as pressed). Since Win32 does
16433           not generate WM_NCLBUTTONUP if you release the button outside
16434           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
16435           it as a mouse up.
16436         
16437         * ThemeWin32Classic.cs:
16438         - Draw a missing border around mdi child forms. Fixes #79844 (2).
16439
16440         * MdiClient.cs:
16441         - Added a list of forms which contains the order the forms are
16442           added to the mdi parent.
16443         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
16444         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
16445         - If the active form changes set the scrollbars to the top
16446           of the Z order, otherwise the form could hide them.
16447         - Scrollbars are now sized according to ClientSize, not 
16448           to Size, and they take into account the other scrollbar
16449           to determine maximum.
16450         
16451 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
16452         
16453         * XplatUI.cs:
16454         * XplatUIDriver.cs:
16455         * XplatUIX11.cs:
16456         * XplatUIWin32.cs:
16457         * XplatUIOSX.cs:
16458         - Added RequestAdditionalWM_NCMessages for windows to 
16459           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
16460           Currently only implemented in XplatUIWin32.
16461
16462 2006-11-27  Chris Toshok  <toshok@ximian.com>
16463
16464         * Hwnd.cs: only add the hwnd to the windows hash in
16465         set_WholeWindow and set_ClientWindow if whole_window/client_window
16466         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
16467
16468 2006-11-27  Mike Kestner  <mkestner@novell.com>
16469
16470         * ComboBox.cs: remove redundant OnDropDown call.  It is called
16471         from the ComboListBox.ShowWindow code. Fixes #79969.
16472
16473 2006-11-27  Chris Toshok  <toshok@ximian.com>
16474
16475         * Hwnd.cs: remove the setters for ExposePending and
16476         NCExposePending - noone uses them.
16477
16478 2006-11-27  Jackson Harper  <jackson@ximian.com>
16479
16480         * TextControl.cs: new param for ReplaceSelection which determines
16481         whether we select the new selection, or set the cursor to the end
16482         of the new selection.
16483         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
16484         pasting, select the new text.
16485         * RichTextBox.cs: Use new param for ReplaceSelection.
16486
16487 2006-11-27  Jackson Harper  <jackson@ximian.com>
16488
16489         * TextBoxBase.cs: Set the selection to the caret after the caret
16490         is moved, otherwise they get out of sync.
16491
16492 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
16493
16494         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
16495         it fixes #80015
16496
16497 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
16498
16499         * ThemeWin32Classic.cs: 
16500         - Fix toolbar drop down arrow position.
16501         - Fix drop down appearance when ToolBar.Appearance is normal,
16502         it fixes #80018.
16503         
16504 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
16505
16506         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
16507         * Control.cs: Same.
16508         * UpDownBase.cs: Same.
16509         * ButtonBase.cs: Same.
16510         * ScrollBar.cs: Same.
16511         * TrackBar.cs: Same.
16512         * PictureBox.cs: Same.
16513         * UserControl.cs: Same.
16514         * Label.cs: Same.
16515         * ListControl.cs: Same.
16516         * TextBoxBase.cs: Same.
16517         * ListView.cs: Same.
16518         * RichTextBox.cs: Same.
16519         * TreeView.cs: Same.
16520
16521 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
16522
16523         * PrintDialog.cs:
16524         - Text label for where 
16525         - Text label comment was not shown
16526
16527 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
16528
16529         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
16530
16531 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
16532
16533         * InternalWindowManager.cs: 
16534         - Handle WM_PARENTNOTIFY to activate the form
16535         if any child control is clicked.
16536         - The form is only sizable if not minimized.
16537
16538         * MdiWindowManager.cs:
16539         - Save the IconicBounds if the form is moved.
16540         - Rework SetWindowState, now the window bounds 
16541         are stored only if the old window state is Normal.
16542         
16543         * MdiClient.cs:
16544         - In SetWindowStates store the old window state if 
16545         the window is maximized and restore window state if
16546         the window looses focus.
16547         - Don't handle any scrollbar value changes if 
16548         initializing the scroll bars. Fixes #79771.
16549         - Reworked ArrangeIconicWindows. Current algorithm
16550         tests bounds agains all other minimized windows, if
16551         any intersections create new bounds (going left to 
16552         right, bottom to top) and then test again. When 
16553         successful the bounds are saved and never computed
16554         again. Fixes #79774.
16555
16556 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
16557
16558         * InternalWindowManager.cs: Added HandleTitleBarUp.
16559
16560 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
16561
16562         * NumericUpDown.cs: In .NET 1.1, user entered text is still
16563         hexadecimal in ParseUserEdit.
16564
16565         
16566 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
16567
16568         * MdiWindowManager.cs: 
16569         - Handle a click on the form's icon to show the 
16570         system menu (when maximized). Fixes #79775.
16571         - Change the existing click handler for the form's
16572         icon when not maximized to show on MouseUp.
16573         Fixes #79776.
16574
16575         * Form.cs: In OnResize only layout the mdi child's
16576         parent if it actually has a parent. Might not if
16577         the window is closing.
16578
16579
16580 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
16581
16582         * MdiClient.cs: Ignore active MDI client for text of parent, if
16583         child has no text set.
16584
16585 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
16586
16587         * ToolBar.cs: Fixed ToString to match MS.
16588
16589 2006-11-22  Andreia Gaita  <avidigal@novell.com>
16590
16591         * NumericUpDown: 
16592         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
16593         update inner values on set. Fixes #79966.
16594         - Override OnLostFocus to update value on NET 2. Fixes #79950.
16595         - Fix hexadecimal parsing.
16596         
16597         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
16598         parent. Fixes #79957
16599
16600 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16601
16602         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
16603         the actual size has to be queried, since if height /
16604         width is negative Win32 changes it to 0. 
16605         Fixes #79999 on Windows.
16606         
16607         * XplatUIX11.cs: Set height / width to 0 if negative
16608         in SetWindowPos. Fixes #79999 on Linux.
16609         
16610 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
16611
16612         * ThemeWin32Classic.cs: Fix text redenring when button is
16613         pressed.
16614
16615 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
16616
16617         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
16618         and later navigate by mouse. Fixes #79528.
16619
16620 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
16621
16622         * ToolBar.cs: Set default value for TabStop to false in
16623         constructor, it fixes remaining behavior of bug #79863.
16624
16625 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16626
16627         * MdiWindowManager.cs:
16628         * InternalWindowManager.cs:
16629         - Moved a few methods specific to Mdi from 
16630         InternalWindowManager to MdiWindowManager.
16631         Fixes #79996.
16632         
16633 2006-11-21  Chris Toshok  <toshok@ximian.com>
16634
16635         * XplatUIOSX.cs: stub out InvalidateNC.
16636
16637         * XplatUIWin32.cs: implement InvalidateNC using the call I found
16638         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
16639
16640         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
16641
16642         * XplatUIDriver.cs: add InvalidateNC abstract method.
16643
16644         * XplatUI.cs: add InvalidateNC.
16645
16646 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
16647
16648         * ToolBar.cs: Invalidate complete button area when pressed status 
16649         was changed.
16650         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
16651         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
16652         by 1 when button is pressed.
16653
16654 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
16655
16656         * ToolButton.cs: Invalidate middle of DropDown button when
16657         ToolBar theres DropDownArrows.
16658         * ThemeWin32Classic.cs: Change position of DropDown arrow and
16659         fix DropDown drawing operations.
16660
16661 2006-11-20  Chris Toshok  <toshok@ximian.com>
16662
16663         * NativeWindow.cs: fix the formatting of functions ('{' on the
16664         following line), and enable the thread exception dialog.
16665
16666         * Application.cs: remove the duplicate exception catching from
16667         here.
16668
16669 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
16670
16671         * Toolbar.cs: Triggers button click event when click on icon
16672         of dropdown ToolBarButton. Fixes #79912.
16673         
16674 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16675
16676         * Theme.cs:
16677         * ThemeWin32Classic.cs:
16678         - Added a property WindowBorderFont to enable themeing
16679           of mdi child windows' Text.
16680           
16681 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16682
16683         * InternalWindowManager.cs:
16684         * Form.cs:
16685         * MdiClient.cs:
16686         * MdiWindowManager.cs: 
16687         - If mdi child is maximized, set mdi parent's
16688           text to "Parent - [Child]". Fixes #79770.
16689         - If there is any maximized mdi child windows, only the active 
16690           window (and any new windows) is maximized, the rest are normal.
16691         - On a WindowState change only save mdi child's window bounds 
16692           if the old window state was normal. Fixes #79774.
16693         - The scroll bars are now calculated on hopefully all
16694           necessary events. Fixed #79771 / #79844->6 / #79906.
16695         - MdiClient.SizeScrollBars() now takes into account docked 
16696           controls in the parent when calculating available space.
16697         - InternalWindowManager now always repaints the entire title
16698           area. Fixes #79844->1/4/5.
16699         - Added RequestNCRecalc on mdi child windowstate changes.
16700           Fixes #79772.
16701
16702 2006-11-20  Mike Kestner  <mkestner@novell.com>
16703
16704         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
16705         in the MouseUp handler of the listbox and move the return handling
16706         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
16707
16708 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
16709
16710         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
16711
16712 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
16713
16714         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
16715           working in 1.2.x anymore. So, updated.
16716
16717 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
16718
16719         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
16720         NumberGroupSeparator of current culture instead of assuming en-US.
16721         Fixed bug #79967.
16722
16723 2006-11-17  Mike Kestner  <mkestner@novell.com>
16724
16725         * Control.cs: Add the concept of implicit bounds setting so that
16726         dock/undock round trips preserve explicitly set size/locations.
16727         Fixes #79313.
16728
16729 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
16730
16731         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
16732           can't handle those filters. (Fixes bug #79961)
16733
16734 2006-11-17  Chris Toshok  <toshok@ximian.com>
16735
16736         [ fixes the exit/crashes associated with #79835.  it's clearly
16737         suboptimal though, we need to figure out a better way to solve
16738         this. ]
16739         
16740         * PrintPreviewControl.cs: deal with the new invalid printer
16741         exceptions.
16742
16743         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
16744         and return false (so CommonDialog.ShowDialog doesn't actually show
16745         the form.)
16746
16747         * PrintDialog.cs: enable/disable the Ok button depending on
16748         whether or not the printer is valid.
16749
16750         * CommonDialog.cs (ShowDialog): only actually show the form if
16751         RunDialog returns true.
16752
16753 2006-11-17  Jackson Harper  <jackson@ximian.com>
16754
16755         * TextControl.cs: When soft splitting a line, mark it as a soft
16756         split line. Also carry over the current line break to the next
16757         line.
16758
16759 2006-11-17  Chris Toshok  <toshok@ximian.com>
16760
16761         * XplatUIX11.cs: when scrolling a window with an invalid area, we
16762         only want to shift the part of the invalid area that overlaps the
16763         area we're scrolling.  we also don't want to clear the invalid
16764         area unless the invalid area was entirely contained within the
16765         scrolling area.
16766
16767 2006-11-16  Chris Toshok  <toshok@ximian.com>
16768
16769         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
16770         also make sure to free the memory returned by XGetWindowProperty
16771         in GetText().
16772
16773         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
16774
16775 2006-11-16  Chris Toshok  <toshok@ximian.com>
16776
16777         * XplatUI.cs: add a new super secret way to get at the totally
16778         unsupported X11 backend.
16779
16780 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
16781
16782         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
16783
16784 2006-11-16  Jackson Harper  <jackson@ximian.com>
16785
16786         * TreeView.cs: Allow more explicit setting of top node position
16787         for scrollbars. Slower algo, but more accurate.
16788         - CollapseAll should maintain the current top node.
16789         * TextBoxBase.cs: When positioning the caret, use the line, pos
16790         method, since the x, y method does not grab the correct tag, and
16791         the caret height never gets set correctly. (Maybe I should just do
16792         away with the caret having its own height, and always use the
16793         carets current tag for height).
16794
16795 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
16796
16797         [Fixes 79778, 79923]
16798
16799         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
16800         Parent to the FosterParent instead.
16801
16802 2006-11-16  Jackson Harper  <jackson@ximian.com>
16803
16804         * TreeView.cs: Need to recalc the topnode when we expand or
16805         collapse. The scrolling methods can't handle this on their own,
16806         since they use differences between the last scroll position, and
16807         those difference get completely messed up since we are expanding
16808         nodes.  This problem should probably be fixed in the scrolling
16809         methods, so they can figure out exactly where they are, but this
16810         will slow things down a little.
16811         * ThemeWin32Classic.cs: Special case for groupboxes with empty
16812         strings, makes nunit-gui look a lot nicer.
16813
16814 2006-11-16  Chris Toshok  <toshok@ximian.com>
16815
16816         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
16817         the broken multithreaded event handling we have in here.  File
16818         this entry under "Why we should move to the new X11 backend".
16819
16820         Any thread can make it into UpdateMessageQueue, which gets events
16821         from the X socket - some of which could belong to hwnds being
16822         managed by a different thread.  We can also have multiple threads
16823         in UpdateMessageQueue at the same time, with each one reading from
16824         the X socket.  This leads to many problems, with the following
16825         solutions:
16826
16827         We can't use hwnd.Queue.Enqueue anywhere in here and must use
16828         EnqueueLocked.
16829
16830         The MotionNotify compression we do can't work across threads
16831         (without locking the entire queue, perhaps) since we call
16832         hwnd.Queue.Peek, so we just punt and don't compress motion events
16833         unless the owning thread is the one which got the X event.
16834
16835         ConfigureNotify is another fun one, since it modifies the hwnd's
16836         bounds and then enqueues the event.  We add a lock to Hwnd which
16837         is held when setting configure_pending to true (and enqueuing the
16838         event).
16839
16840         There is a race wrt the wake socket.  we need to make sure that
16841         only 1 thread is waiting on that socket, or else a thread could
16842         sleep waiting for data that never comes.  It's difficult (but not
16843         impossible) to make happen, because it seems to require something
16844         like the following:
16845
16846             1. Thread 1 polls on wake_receive
16847         
16848             2. poll returns saying there's data to be read on
16849                wake_receive.
16850         
16851             3. Thread 2 polls on wake_receive and immediately returns
16852                saying there's data to be read.
16853
16854             4. Thread 2 reads the wakeup byte from wake_receive
16855
16856             5. Thread 1 attempts to read the wakeup byte from
16857                wake_receive.
16858
16859             6. Thread 2 exits (due to a form closing, perhaps).
16860
16861             7. Thread 1 blocks forever.
16862         
16863         Fun, eh?
16864
16865         Fixing the Expose handling isn't done yet, and the races inherent
16866         in that piece of code are responsible for the drawing mistakes you
16867         see when generating expose events in a MT app (like NPlot).  This
16868         one is the likely to be the hardest to bandaid, and it doesn't
16869         appear to cause anything but drawing problems.  The other issues
16870         caused apps to exit or hang.
16871
16872         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
16873         called from a different thread than the one that should be calling
16874         these functions.
16875
16876         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
16877
16878 2006-11-15  Chris Toshok  <toshok@ximian.com>
16879
16880         * Application.cs: null out the context's MainForm when we exit
16881         RunLoop.  Fixes a newly checked in unit test as well as the last
16882         ODE from bug #79933.
16883
16884 2006-11-15  Chris Toshok  <toshok@ximian.com>
16885
16886         * Form.cs (set_Owner): allow a null value so we can clear the
16887         form's owner.
16888         (Dispose): set all our owned_form's Owner properties to null, and
16889         clear the owned_forms collection.
16890         (WM_CLOSE): clean up this a little bit.. still not right though.
16891
16892         * ApplicationContext.cs: OnMainFormClosed should only call
16893         ExitThreadCore if the main form isn't recreating.  Fixes unit
16894         test.
16895
16896 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
16897
16898         [Fixes 78346]
16899
16900         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
16901
16902 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
16903
16904         [Fixes 79433]
16905
16906         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
16907         keep popup window types from stealing focus from the main form
16908         on Windows.
16909
16910         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
16911
16912         * MenuAPI.cs: Set above flag to true.
16913
16914 2006-11-15  Chris Toshok  <toshok@ximian.com>
16915
16916         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
16917         the button being released is not in wParam.
16918
16919 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
16920
16921         * Form.cs: Add the released button to MouseEventArgs.Button
16922         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
16923         on Win32.
16924
16925 2006-11-15  Chris Toshok  <toshok@ximian.com>
16926
16927         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
16928         GetText().  untested because it's unused in our implementation.
16929         Control.Text always caches the text, even if
16930         ControlStyles.CacheText is not set.
16931
16932         fixes bug #79939.
16933
16934 2006-11-15  Chris Toshok  <toshok@ximian.com>
16935
16936         [ fixes #79933 ]
16937         
16938         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
16939         message.  no hiding, no disposing.
16940
16941         in the WM_CLOSE handler, hide the form if it's modal.
16942
16943 2006-11-15  Chris Toshok  <toshok@ximian.com>
16944
16945         * XplatUIX11.cs: use AddExpose instead of sending a message.
16946         fixes textbox border drawing.
16947
16948 2006-11-15  Chris Toshok  <toshok@ximian.com>
16949
16950         * PropertyGridView.cs: keep from crashing on mouse move/down when
16951         the property grid is empty.
16952
16953 2006-11-14  Jackson Harper  <jackson@ximian.com>
16954
16955         * TextControl.cs: Make PageUp and PageDown more like the MS
16956         versions.
16957         * TextBoxBase.cs: When we set the text property position the
16958         cursor at the beginning of the document.
16959
16960 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16961
16962         * Form.cs: if a mdi child's WindowState has changed
16963         before it's creation, it would display wrong control
16964         buttons.
16965         
16966 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
16967
16968         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
16969           (Fixes bug #79927)
16970
16971 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
16972
16973         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
16974         the window gets to paint its borders even if the window is
16975         getting smaller.
16976         
16977         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
16978         otherwise the old control buttons would still be painted 
16979         if the window gets bigger.
16980         
16981         * PaintEventArgs.cs: add an internal method so that the clip 
16982         rectangle can be changed.
16983         
16984 2006-11-13  Chris Toshok  <toshok@ximian.com>
16985
16986         [ fixes bug #79745 ]
16987         
16988         * NotifyIcon.cs: lots of cleanup.
16989
16990         * X11Structs.cs: add an enum for XEMBED messages.
16991
16992         * XplatUIX11.cs: reindent one of the giant switch statements, it
16993         was taking up an additional tab stop, and this file is already way
16994         too wide for my laptop's screen.
16995
16996         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
16997         we get it, resize the hwnd to the WMNormalHints max_width/height.
16998
16999 2006-11-13  Jackson Harper  <jackson@ximian.com>
17000
17001         * TextBoxBase.cs: Compute the value changes for the mouse wheel
17002         teh simple way.
17003
17004 2006-11-13  Chris Toshok  <toshok@ximian.com>
17005
17006         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
17007         #79898.  force a reference to the Region to stick around so the
17008         unmanaged object isn't collected (rendering our handle in the MSG
17009         stale).
17010
17011 2006-11-13  Chris Toshok  <toshok@ximian.com>
17012
17013         * XplatUIX11.cs: fix #79917 for window managers which support
17014
17015         using XStoreName on the raw utf8, and we need to convert to
17016         COMPOUND_TEXT if it's non-latin1.
17017
17018 2006-11-13  Chris Toshok  <toshok@ximian.com>
17019
17020         * Form.cs (set_DialogResult): we need to set closing to false if
17021         we're setting our result to None.  fixes bug #79908.
17022
17023 2006-11-13  Jackson Harper  <jackson@ximian.com>
17024
17025         * TextControl.cs: When formatting text, compute the adjusted tag
17026         lengths correctly, using FindTag for the end tag instead of trying
17027         to figure it out outselves.
17028         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
17029         the item, ItemHeight doesn't work, because trees with large
17030         imagelists use those for their height
17031         * TreeView.cs: ActualItemHeight factors in the image height
17032         - compute left edge of checkboxes correctly
17033         - when expanding/collapsing move the bottom down one pixel, so we
17034         aren't moving part of the node
17035
17036 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17037
17038         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
17039         stack in PaintEventStart so that it won't get disposed by the gc
17040         before reaching PaintEventEnd.
17041
17042 2006-11-13  Jackson Harper  <jackson@ximian.com>
17043
17044         * TextBoxBase.cs: Don't select the word if we are on a line with
17045         no text.
17046         - We don't need to position the caret on mouse up, since the mouse
17047         move handler should be doing this
17048         - When double clicking a blank line, the caret is advanced to the
17049         next line.
17050
17051 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
17052
17053         * TreeNodeCollection.cs: Avoid duplicating indexer code.
17054
17055 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
17056
17057         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
17058         Fixes part of bug #79910.
17059
17060 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
17061
17062         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
17063           (bug #79903). Some minor string updates to match ms.
17064
17065 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
17066
17067         * FileDialog.cs: Don't add an extension if the filename
17068           already ends with that extension.
17069
17070 2006-11-10  Jackson Harper  <jackson@ximian.com>
17071
17072         * TreeView.cs: Use the currently highlighted node for the
17073         BeforeSelect event.
17074         * TextBoxBase.cs: There is no need to expand selection on
17075         MouseMove.
17076         - CanUndo means 'is there any undo operations', not 'is undo
17077         allowed on this textcontrol. Fixed ClearUndo unit test.
17078
17079 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
17080
17081         * Button.cs: only perform click when button is Selectable (so as 
17082         not to activate default buttons when they're disabled)
17083         
17084         * Control.cs: Rewrite of the SelectNextControl and related 
17085         methods. HandleClick now selects next control if the current one
17086         is being disabled.
17087         
17088         * Form.cs: OnActivated selects next active control only if Load 
17089         has already occurred. If Load hasn't run, there's no point in 
17090         selecting here, Load might change the state of controls.
17091         
17092         * FocusTest.cs: Tests marked as working again for these fixes
17093
17094 2006-11-10  Chris Toshok  <toshok@ximian.com>
17095
17096         * XplatUIX11.cs: a couple of fixes.
17097
17098         - use XInternAtoms with almost all the atoms we need to register,
17099         instead of many, many calls to XInternAtom.  should help a bit on
17100         startup time, at the expense of making the code look a little
17101         worse.
17102
17103         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
17104         isn't reparented (which seems to be a clue that we're running fon
17105         compiz) and they have an Owner form.  This fixes the tool windows
17106         in paint.net when running under compiz.
17107
17108         - when setting the opacity of a window, support both the case
17109         where the window has been reparented and also when it hasn't been.
17110         Since compiz/beryl doesn't seem to reparent windows, and these are
17111         the only window managers which support translucency, I'm not sure
17112         why we need the hwnd.reparented case at all.. but leave it in.
17113         now we get translucent windows in paint.net under compiz/beryl.
17114
17115 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
17116
17117         * FileDialog.cs: Always return the value for FilterIndex that
17118           was set. Internally convert it to values that make sense.
17119
17120 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
17121         
17122         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
17123
17124 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
17125
17126         * Toolbar.cs: Change default value of DropDownArrows to true, the 
17127         signature still using false to make it compatible with MS but the 
17128         initial value is true. Fixes #79855.
17129
17130 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
17131
17132         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
17133           only available on Linux.
17134
17135 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
17136
17137         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
17138         reduce number of calls to redraw method during toolbar creation.
17139
17140 2006-11-09  Mike Kestner  <mkestner@novell.com>
17141
17142         * ListView.cs : raise SelectedIndexChanged when an item is selected
17143         programmatically via the Item.Selected property.  Gert's nice 
17144         ListViewSelectedIndexChanged test fixture now runs clean.
17145
17146 2006-11-09  Mike Kestner  <mkestner@novell.com>
17147
17148         * ListView.cs : raise SelectedIndexChanged when a selected item is
17149         removed from the item collection using Remove or RemoveAt.
17150
17151 2006-11-09  Mike Kestner  <mkestner@novell.com>
17152
17153         * ListView.cs : raise SelectedIndexChanged once per selected item
17154         for compat with MS.  Fixes #79849+.
17155
17156 2006-11-09  Chris Toshok  <toshok@ximian.com>
17157
17158         * TabControl.cs: initialize row_count to 0, and set it to 1 when
17159         we need to (if we have any tab pages).  Fixes unit test.
17160
17161 2006-11-09  Chris Toshok  <toshok@ximian.com>
17162
17163         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
17164         width is 0, not 3.  Fixes a unit test.
17165
17166 2006-11-09  Mike Kestner  <mkestner@novell.com>
17167
17168         * ListView.cs : use Implicit scrollbars so that focus isn't 
17169         stolen from the listview when they are clicked. Fixes #79850.
17170
17171 2006-11-09  Chris Toshok  <toshok@ximian.com>
17172
17173         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
17174         have a root item.  Fixes #79879.
17175
17176 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
17177
17178         * FileDialog.cs:
17179           - Fix ToString ()
17180           - An ArgumentException is now thrown if a wrong filter
17181             is applied (matches ms). The previous filter doesn't change
17182             anymore if an exception is thrown.
17183           - Changing the FileName property also affects FileNames
17184         * ColorDialog.cs: The length of the CustomColors array is always
17185           16. It doesn't matter if we use a smaller array or null to update
17186           or change the custom colors property.
17187         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
17188           for RootFolder if we get a undefined value.
17189
17190 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17191
17192         * StatusBarPanel.cs: 
17193         - Width is set to MinWidth if Width is smaller than
17194         MinWidth. Fixes #79842.
17195         - MinWidth now always overrides Width (MSDN says MinWidth
17196         is set to Width when AutoSize = None, but they do not 
17197         behave like that).
17198         - Style has now the the correct default value.
17199         
17200 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17201  
17202         * TrackBar.cs: 
17203         - The control is completely invalidated on 
17204         Got/LostFocus to draw the focus rectangle correctly.
17205         - When AutoSize then height is always 45 (width for 
17206         vertical controls).
17207         
17208         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
17209         on the mouse when moved and it doesn't move when grabbed
17210         until the mouse moves as well. Also fixed some wrong 
17211         calculations when clicking on the thumb (control thought
17212         click was outside of thumb and didn't grab it).
17213         Fixes some of the issues in #79718.
17214
17215 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
17216
17217         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
17218
17219 2006-11-08  Chris Toshok  <toshok@ximian.com>
17220
17221         * PropertyGridView.cs: only call ToggleValue if the item is not
17222         readonly.
17223
17224 2006-11-08  Jackson Harper  <jackson@ximian.com>
17225
17226         * TextBoxBase.cs: The RichTextBox and textbox have very different
17227         word selection methods.  Implement the textbox's simple word
17228         selection here, and let the RichTextBox override and provide it's
17229         own.
17230         - Don't do extra selection on mouseup
17231         * RichTextBox.cs: Use the documents word selection algorithm, I
17232         think ideally, this function will be pulled into the
17233         RichTextBox.cs code someday.
17234
17235 2006-11-08  Chris Toshok  <toshok@ximian.com>
17236
17237         * RootGridEntry.cs: new class to represent GridItemType.Root.
17238
17239         * CategoryGridEntry.cs: reformat, and add boilerplate.
17240         
17241         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
17242         returns the UI parent anyway, and we need special handling to
17243         implement the GetTarget method in the face of it.  Also, implement
17244         Select().
17245
17246         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
17247         a root grid item, and use that instead of PropertyGrid.grid_items.
17248         Also, make use of TypeConverters (and add limitted support for
17249         ICustomTypeDescriptors) when initially populating the grid.
17250         Arrays now show up more or less properly.
17251
17252 2006-11-08  Chris Toshok  <toshok@ximian.com>
17253
17254         * Application.cs: set the modal dialog to non modal after we close
17255         it.  Fixes bug #79866.
17256
17257 2006-11-08  Jackson Harper  <jackson@ximian.com>
17258
17259         * TextControl.cs: When combining lines carry over the line end
17260         style from the end line.
17261         - Invalidate the selected area when setting it, if it is visible.
17262         * TextBoxBase.cs: Only rich text box can do full line selects.
17263         - Make sure to set the cursor position when there is a click,
17264         otherwise two clicks in separate areas could cause a large chunk
17265         to be selected.
17266
17267 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
17268
17269         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
17270         Fixes #79863.
17271
17272 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
17273
17274         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
17275         time. Remove tooltips when ToolButton click events.  Fixes #79856.
17276
17277 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
17278
17279         * MenuAPI.cs: Ignore right click for menu actions and fixes
17280         menu border when clicked.  Fixes #79846.
17281
17282 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
17283
17284         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
17285         MouseState after create wParam for message, this fixes mouse button 
17286         equal none in mouse up events.
17287         
17288 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
17289
17290         * Control.cs : Focus() now calls Select to set the Container's
17291         Active Control and to give it focus. To avoid infinite recursion
17292         (because ActiveControl also calls Focus at one point), a check 
17293         is made in Focus with the help of a new internal variable
17294         is_focusing.
17295
17296 2006-11-07  Mike Kestner  <mkestner@novell.com>
17297
17298         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
17299         if there's a selection.  Fixes #79849.
17300
17301 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
17302
17303         * PropertyGrid.cs: Avoid fixed height of help description label.
17304         Fixes part of bug #79829.
17305
17306 2006-11-07  Chris Toshok  <toshok@ximian.com>
17307
17308         * XplatUIX11.cs: fix #79790 again, by using the
17309         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
17310
17311 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
17312
17313         * ToolBar.cs: Fix left click checking.
17314
17315 2006-11-07  Chris Toshok  <toshok@ximian.com>
17316
17317         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
17318
17319 2006-11-07  Chris Toshok  <toshok@ximian.com>
17320
17321         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
17322         PropertyManager unit tests.
17323
17324         * PropertyManager.cs: make property_name internal.
17325
17326 2006-11-07  Chris Toshok  <toshok@ximian.com>
17327
17328         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
17329         pass a unit test.  Also, don't set image_index to anything in
17330         response to setting the ImageList property.
17331
17332 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
17333
17334         * ToolBar.cs: Ignore click events when mouse button is not a
17335         left button, only accepts other button for dropdown menus.  
17336         Fixes #79854.
17337
17338 2006-11-07  Chris Toshok  <toshok@ximian.com>
17339
17340         * DataGrid.cs: make the back and parent row buttons a little less
17341         ugly.
17342
17343 2006-11-07  Jackson Harper  <jackson@ximian.com>
17344
17345         * TextBoxBase.cs: When converting to Text don't put line breaks in
17346         for soft line breaks.
17347         * TextControl.cs: There is an initial "fake" line in the document,
17348         this is now a soft break line, so that an extra line feed doesn't
17349         get added to the end of documents.
17350
17351 2006-11-07  Chris Toshok  <toshok@ximian.com>
17352
17353         [ fix bug #79778 ]
17354         
17355         * CurrencyManager.cs: if the list is readonly, don't bother
17356         checking if IBindingList.AllowNew is true.
17357
17358         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
17359         for non-DataRowView datasources..  or rather, make it not crash.
17360         (DataGridPaintRelationRow): make sure we limit the row painting to
17361         the area not covered by the row header, and make our cell width at
17362         least large enough to cover the relation area.  This allows grids
17363         that have relations but no rows to render correctly.
17364         (DataGridPaintRowContents): same type of changes here.
17365         (SetDataSource): move back to always calling
17366         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
17367         navigating back through relations.
17368         (HitTest): handle the case where we have no cells but have
17369         relations.  Right now we generate a hit in cell 0 of whatever the
17370         row is, not sure if this is strictly correct, but it works for our
17371         purposes.
17372         
17373         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
17374         bother doing anything.
17375
17376 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
17377
17378         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
17379         early version of StatusStrip.  Not responsible for eaten
17380         application or firstborn children.
17381
17382 2006-11-06  Chris Toshok  <toshok@ximian.com>
17383
17384         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
17385         call GetTabRect with a -1 index.  Fixes #79847.
17386
17387 2006-11-06  Jackson Harper  <jackson@ximian.com>
17388
17389         * TreeNodeCollection.cs: Update scrollbars after clearing.
17390
17391 2006-11-06  Chris Toshok  <toshok@ximian.com>
17392
17393         * NumericUpDown.cs: fix the ToString method for some unit test
17394         love.
17395
17396 2006-11-06  Chris Toshok  <toshok@ximian.com>
17397
17398         * PropertyGrid.cs:
17399         - set the initial SelectedGridItem if we can.
17400
17401         - Exclude non-mergable properties only if we're merging > 1
17402         object.  Merging 1 object isn't really merging, obviously.
17403
17404         - Handle PropertySort.NoSort just like Alphabetical, which is
17405         wrong of course, but at least gets things on the screen.
17406         
17407         * PropertyGridView.cs:
17408         - Add method "FindFirstItem" which finds the first property grid
17409         item, so we can select it by default.
17410
17411         - make use of GridEntry.CanResetValue.
17412
17413         - Don't call RedrawBelowItemOnExpansion here anymore, the
17414         individual GridEntry's will do that.
17415
17416         - Remove the ITypeDescriptorContextImpl internal class.
17417         
17418         * GridEntry.cs:
17419         - this class needs to implement ITypeDescriptorContext, as it's
17420         what MS's PropertyDescriptorGridEntry does, which means we can
17421         remove the ITypeDescriptorContextImpl internal class from
17422         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
17423
17424         - keep a reference to our PropertyGridView, and move the call to
17425         RedrawBelowItemOnExpansion here from PGV.  This means
17426         programmaticly setting Expanded actually does something visible.
17427
17428         - add a CanResetValue() function which takes into account our
17429         possibly multiple "selected_objects" in the merged case.  Shifting
17430         PropertyGridView to use this method fixes another unreported
17431         crasher found running the test for #79829.
17432
17433         - when Top or Bounds is updated, make sure the PropertyGridTextBox
17434         is updated to reflect this.
17435
17436         * CategoryGridEntry.cs: the ctor takes the PGV now.
17437         
17438 2006-11-06  Jackson Harper  <jackson@ximian.com>
17439
17440         * TextControl.cs: These are 1 based.
17441         * TextBoxBase.cs: When setting the selected text, don't change the
17442         selected text tags, this is done by ReplaceText, just position the
17443         cursor at the end of the new text.
17444
17445 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
17446
17447         * ListView.cs: Allow label edit only when, when LabelEdit is
17448           set to true.
17449
17450 2006-11-06  Jackson Harper  <jackson@ximian.com>
17451
17452         * TextControl.cs: If a suitable wrapping position isn't found,
17453         just wrap right in the middle of a word.
17454
17455 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
17456
17457         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
17458           bug #79820.
17459
17460 2006-11-06  Jackson Harper  <jackson@ximian.com>
17461
17462         * TreeView.cs: Can't use the VisibleCount property when setting
17463         scrollbar heights, because this doesn't take into account whether
17464         or not the horz scrollbar just came visible.
17465
17466 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
17467
17468         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
17469         activated.  Fixes #79369, #79832.
17470
17471 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
17472
17473         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
17474           had to remove support for links that point to a directory. FileInfo
17475           returns no usefull information (means, the directory they point to)
17476           for such links. Replaced some empty string ("") with String.Empty.
17477
17478 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
17479
17480         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
17481         NullReferenceException when attempting to remove node that is not in
17482         collection. Throw NullReferenceException when null is passed to 
17483         Remove. Allow first element of the collection to be removed. Fixes
17484         bug #79831.  In GetEnumerator ().Current return null if positioned 
17485         before the first element of the collection. In GetEnumerator ().Reset,
17486         position before first element of the collection.
17487
17488 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
17489
17490         * PropertyGrid.cs: To match MS, remove default title and description
17491         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
17492         buttons.
17493
17494 2006-11-04  Chris Toshok  <toshok@ximian.com>
17495
17496         * Theme.cs: add a Clamp method, just for kicks.
17497
17498         * ThemeWin32Classic.cs: clamp all color components to [0..255].
17499
17500 2006-11-04  Chris Toshok  <toshok@ximian.com>
17501
17502         * Form.cs: if the form isn't visible, Close() does nothing.
17503
17504 2006-11-03  Chris Toshok  <toshok@ximian.com>
17505
17506         * Form.cs (Close): if the form is modal, don't Dispose of it, only
17507         Hide it.
17508         (WndProc): don't Dispose after handling the WM_CLOSE message.
17509
17510         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
17511         them as such, instead of using casts from Control to Form.  Also,
17512         don't Dispose of the modal dialog when we fall out of the loop -
17513         Close() it instead.
17514
17515         fixes bug #79813.
17516
17517 2006-11-03  Chris Toshok  <toshok@ximian.com>
17518
17519         * Control.cs (Dispose): only go through the dispose thing if we're
17520         @disposing, and we haven't already been disposed.  Fixes bug
17521         #79814.
17522
17523         * Form.cs: no reason to call "base.Dispose()" here instead of
17524         "Dispose()".
17525
17526 2006-11-03  Mike Kestner  <mkestner@novell.com>
17527
17528         * ComboBox.cs : use ToString instead of casts in AddItem for
17529         sorting functionality.  Fixes #79812.
17530
17531 2006-11-03  Chris Toshok  <toshok@ximian.com>
17532
17533         * Application.cs: pave the way for actually using the thread
17534         exception dialog.  it's ifdefed out at the moment.
17535
17536 2006-11-03  Chris Toshok  <toshok@ximian.com>
17537
17538         * ThreadExceptionDialog.cs: until we get a better layout, actually
17539         hide the details textbox and label when we shouldn't see them.
17540
17541 2006-11-03  Jackson Harper  <jackson@ximian.com>
17542
17543         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
17544         multiline textboxes anymore.  This method also determines the
17545         width/height of a textboxes canvas area.
17546         - Sorta a revert of the last patch.  For multiline just position
17547         the controls, then bail.  This way the scrollbar width won't be
17548         altered.
17549
17550 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
17551
17552         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
17553         it dont need.  Fixes #79537.
17554
17555 2006-11-02  Jackson Harper  <jackson@ximian.com>
17556
17557         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
17558         send the status after firing the DndOver event.
17559
17560 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17561
17562         * TrackBar.cs: Now orientation only switches height / width if
17563         the control's handle is created (Win32 does it like this). Also 
17564         fixed a typo in ToString() for a test to pass, changed the 
17565         exception thrown in set_LargeChange and set_SmallChange to 
17566         match Win32 behaviour, and added TrackBar tests to the unit 
17567         tests.
17568
17569 2006-11-02  Chris Toshok  <toshok@ximian.com>
17570
17571         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
17572         not _NET_WM_STATE_NO_TASKBAR.
17573
17574 2006-11-02  Jackson Harper  <jackson@ximian.com>
17575
17576         * TextControl.cs: Increment count by one, since in the update view
17577         count - 1 is used.
17578
17579 2006-11-02  Jackson Harper  <jackson@ximian.com>
17580
17581         * TextBoxBase.cs: Use client rectangle not bounds for checking if
17582         the mouse is in the client rectangle (duh).
17583
17584 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
17585         
17586         * TrackBar.cs: Fixed trackbar jumping around when clicking
17587         on it - the trackbar was not detecting correctly at which
17588         side of the thumb the click was done. (fixes #79718)
17589
17590 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
17591
17592         * ListBox.cs: scroll visible area when change SelectedIndex to
17593         a non visible area.  Fixes #79481.
17594
17595 2006-11-01  Jackson Harper  <jackson@ximian.com>
17596
17597         * TextControl.cs: When replacing the selection move the selection
17598         start/end/anchor to the end of the new text.
17599
17600 2006-11-01  Jackson Harper  <jackson@ximian.com>
17601
17602         * XplatUIWin32.cs: When setting the parent change the controls
17603         visibility to it's visibility flag, not to it's old parents
17604         visibility (.Visible walks the parent chain).
17605
17606 2006-11-01  Chris Toshok  <toshok@ximian.com>
17607
17608         * XplatUIX11.cs: revert the #79790 fix, as the simple.
17609         XSetTransientForHint fix breaks paint .net's tool windows.  more
17610         work needed for that one.
17611
17612 2006-11-01  Chris Toshok  <toshok@ximian.com>
17613
17614         * ScrollBar.cs: throw ArgumentException instead of Exception in
17615         LargeChange/SmallChange setters.  fixes unit tests.
17616
17617 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
17618
17619         * ContainerControl.cs: reverted rev.67183 (which was itself
17620         a reversion of rev.66853... eh).
17621         
17622         * Control.cs: Fixes Reflector hang by changing Focus() call
17623         to what it was before rev.66643 (calling Select() here sets 
17624         ActiveControl, which in some situations calls back Focus and 
17625         eventually does a stack overflow). Temp fix.    
17626         Changes to GetNextControl() to not look for children to select when
17627         parent cannot be selectable (so it looks for siblings instead)  
17628         
17629 2006-10-31  Mike Kestner  <mkestner@novell.com>
17630
17631         * CheckedListBox.cs : off by one error in returned index from
17632         ObjectCollection.Add.  Fixes #79758.
17633
17634 2006-10-31  Chris Toshok  <toshok@ximian.com>
17635
17636         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
17637         calls for the textbox/spinner, to keep from recursing to the point
17638         where we crash.  Fixes #79760.
17639
17640 2006-10-31  Chris Toshok  <toshok@ximian.com>
17641
17642         * ListControl.cs (set_SelectedValue): don't throw exceptions on
17643         null/"" value, just return.  matches ms's behavior and fixes some
17644         failing tests.
17645
17646 2006-10-31  Chris Toshok  <toshok@ximian.com>
17647
17648         * Control.cs (set_Capture): make a logic a little easier to
17649         follow.
17650
17651         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
17652         if it's being destroyed.  A necessary fix surely, but a bandaid
17653         also, to fix the stuck capture problem in bug #78413.
17654
17655 2006-10-31  Chris Toshok  <toshok@ximian.com>
17656
17657         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
17658         convention of clearing hwnd.ClientRect when we set the
17659         width/height (so it'll be recalculated by Hwnd).
17660
17661 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
17662
17663         * ContainerControl.cs: reversed Contains check from
17664         ActiveControl due to hanging problems. This fix
17665         partly regresses #79667 (button does not have
17666         initial focus), so this might be a symptom for 
17667         a larger parenting problem (set_ActiveControl
17668         is being called but the child control does
17669         not have the parent set yet?)   
17670         
17671 2006-10-31  Mike Kestner  <mkestner@novell.com>
17672
17673         * MenuAPI.cs : fix keynav when menu is click activated.
17674
17675 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
17676
17677         * ToolStrip*: Version 0.2.
17678
17679         * MenuStrip.cs: Version 0.1.
17680
17681         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
17682
17683 2006-10-30  Chris Toshok  <toshok@ximian.com>
17684
17685         [ fixes the oversized notify icon issue in bug #79745 ]
17686         
17687         * NotifyIcon.cs: scale the icon down to the size we're given by
17688         the XplatUI layer (this would be faster if we did it once instead
17689         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
17690         since it's never invoked.
17691
17692         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
17693         pixels high by default, so let's hardcode our systray icon to that
17694         size.  The SYSTEM_TRAY protocol should really have a way for
17695         client apps to query for the correct icon size.. but oh well.  A
17696         couple of patches to deal with the screwy client_window ==
17697         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
17698         instance, and also make sure we don't XSelectInput twice).
17699
17700 2006-10-30  Chris Toshok  <toshok@ximian.com>
17701
17702         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
17703         recreating forms.  Control recreation is the bane of my existence.
17704         Fix it in a way that keeps everyone happy.
17705
17706 2006-10-30  Chris Toshok  <toshok@ximian.com>
17707
17708         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
17709         just non-CHILD ones.  otherwise sometimes scrollbars end up with
17710         client_windows not being resized to the proper size (ReportBuilder
17711         shows this extremely well).
17712
17713 2006-10-30  Chris Toshok  <toshok@ximian.com>
17714
17715         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
17716         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
17717         showing up in the gnome taskbar.  Fixes bug #79790.
17718
17719 2006-10-30  Chris Toshok  <toshok@ximian.com>
17720
17721         * ApplicationContext.cs: guard against a NRE.
17722
17723         * Application.cs: null out the old MainForm for the context, so we
17724         don't try to use it again once it's disposed.  Fixes bug #79783.
17725
17726 2006-10-30  Chris Toshok  <toshok@ximian.com>
17727
17728         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
17729         BindingContext, set the data source directly, otherwise do the
17730         lazy approach - the actual ListManager will be created when we get
17731         a BindingContext. Fixes bug #79700.
17732
17733 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
17734
17735         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
17736           XplatUIX11.cs: Remove old 2 parameter SetVisible.
17737
17738         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
17739
17740 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
17741
17742         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
17743         of SetVisible that allows a window to be shown, but not activated.
17744         This is needed on Windows for MenuStrip, and can probably be used
17745         with MainMenu and ComboBox to fix the focus stealing issues on
17746         Windows.
17747
17748         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
17749
17750 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
17751
17752         * PictureBox.cs: Fix the output of the ToString method.
17753
17754 2006-10-29  Chris Toshok  <toshok@ximian.com>
17755
17756         * Control.cs (get_TopLevelControl): fix bug #79781.
17757
17758 2006-10-29  Chris Toshok  <toshok@ximian.com>
17759
17760         * ListControl.cs (set_DataSource): throw Exception here, not
17761         ArgumentException, to match MS behavior.
17762
17763 2006-10-29  Chris Toshok  <toshok@ximian.com>
17764
17765         * Form.cs: remove the try-catch's around calls to GetWindowState.
17766         We can just check the return value.
17767
17768         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
17769         Instead return -1.
17770
17771         * XplatUI.cs: Add note about additional return value for
17772         GetWindowState.
17773
17774 2006-10-29  Chris Toshok  <toshok@ximian.com>
17775
17776         * Control.cs (CreateHandle): when we create our handle, we also
17777         create the handles of our child controls.  Fixes one of the
17778         Control unit tests (CH11).
17779
17780 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
17781
17782         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
17783
17784 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
17785
17786         * ThemeClearlooks.cs: A little speedup.
17787
17788 2006-10-27  Chris Toshok  <toshok@ximian.com>
17789
17790         * Control.cs: implement Control.FromChildHandle in a way that
17791         matches the docs (and fixes the failed test.)
17792
17793 2006-10-27  Chris Toshok  <toshok@ximian.com>
17794
17795         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
17796         comments).
17797
17798         * DataGrid.cs: implement ResetForeColor such that the tests
17799         succeed.
17800         
17801 2006-10-27  Chris Toshok  <toshok@ximian.com>
17802
17803         * ToolBarButton.cs: setting text/tooltiptext to null results in it
17804         being set to "".  Fixes bug #79759.
17805
17806 2006-10-27  Jackson Harper  <jackson@ximian.com>
17807
17808         * TextControl.cs: We need to clear the entire selection area when
17809         setting the start, otherwise multiline selections are still
17810         visible.
17811
17812 2006-10-26  Chris Toshok  <toshok@ximian.com>
17813
17814         * PropertyGridView.cs: 
17815
17816         - ifdef all the code specific to the double
17817         buffer case, and provide some alternatives in the non-doublebuffer
17818         code, which makes heavy use of XplatUI.ScrollWindow to move things
17819         around without having to invalidate (and cause flicker).  There
17820         are still some drawing problems in the non-doublebuffered case, so
17821         DOUBLEBUFFER is defined by default.
17822
17823         - Fix the way dropdowns are handled.  now we explicitly watch for
17824         the events which might cause the dropdown to close, and break out
17825         of the nested event loop there.  This gets rid of all Capture
17826         code, at the expense of the Msg special casing.  Seems to work,
17827         though, and fixes bug #79743.
17828
17829 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
17830         * Control.cs: SetIsRecreating now recreates implicitly added
17831         child controls as well. Finally fixes #79629. The flag passed to 
17832         SetIsRecreating has also been removed since it wasn't used.
17833         
17834 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17835
17836         * PageSetupDialog.cs: Clean some code, fix some bits, 
17837         add some checks, and add a printer sub-dialog.
17838
17839 2006-10-26  Chris Toshok  <toshok@ximian.com>
17840
17841         * PropertyGrid.cs: make set_SelectedObject call
17842         set_SelectedObjects, and move the duplicate logic to the
17843         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
17844
17845         * PropertyGridView.cs: hide the textbox when we get a
17846         SelectedObjectsChanged event.
17847
17848         Fixes bug #79748.
17849
17850 2006-10-26  Chris Toshok  <toshok@ximian.com>
17851
17852         * PropertyGridView.cs: deal with the type converter not supporting
17853         GetStandardValues() or GetStandardValues() returning null, which
17854         is does in the default case.  Fixes #79742.
17855
17856 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
17857
17858         * CheckedListBox.cs: nunit no longer crashes when selecting 
17859         Project/Edit menu option
17860         
17861 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
17862
17863         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
17864         is no menu selected. fixes #79739
17865
17866 2006-10-25  Chris Toshok  <toshok@ximian.com>
17867
17868         * PropertyGridView.cs: factor out the splitter invalidation code
17869         into the SplitterPercent setter, and for kicks implement the
17870         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
17871         amount in either direction.
17872
17873 2006-10-25  Chris Toshok  <toshok@ximian.com>
17874
17875         * PropertyGridView.cs: do some cleanup of the brush used to draw
17876         text - read only fields should be grayed out.  not sure how to do
17877         this with the textbox, though.  but the textbox's should also be
17878         readonly now at least.  Also, hide/show the textbox when resizing
17879         the control.
17880         
17881         * CursorConverter.cs: use System.Reflection when getting the
17882         properties of Cursors, as TypeDescriptor.GetProperties isn't
17883         returning static properties.
17884
17885 2006-10-25  Chris Toshok  <toshok@ximian.com>
17886
17887         * PropertyGridView.cs: factor out the up/down handling, and reuse
17888         it for page up/down.  also add End/Home support.
17889
17890 2006-10-25  Chris Toshok  <toshok@ximian.com>
17891
17892         * PropertyGridView.cs:
17893
17894         - ensure the selected grid item is visible in the scrolled area,
17895         fixes bug #79572.
17896
17897         - fix Keys.Down handling when you're on the last item in the
17898         propertygrid.
17899
17900 2006-10-25  Mike Kestner  <mkestner@novell.com>
17901
17902         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
17903         clicks too.  Fixes #79725.
17904
17905 2006-10-24  Chris Toshok  <toshok@ximian.com>
17906
17907         * PropertyGrid.cs: use property.Converter instead of
17908         TypeDescriptor.GetConverter(property.PropertyType), so we catch
17909         TypeConverters declared on the property as well as on the
17910         PropertyType.  Fixes bug #79678.
17911
17912 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
17913
17914         * MimeIcon.cs, Mime.cs:
17915           Fallback to the default platform handler if no shared mime info
17916           stuff exists (fixes #79693).
17917
17918 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
17919         * ContainerControl.cs: Incorrect contains check in ActiveControl 
17920         from previous fix (duh).
17921
17922 2006-10-20  Chris Toshok  <toshok@ximian.com>
17923
17924         * PropertyGridView.cs: the dropdown should be MIN(number of items
17925         in list, 15).  Fixes #79551.
17926
17927 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
17928         Fixes #79384, #79394, #79652, #79667
17929         * Application.cs: 
17930         
17931         - Modal windows are now destroyed in the proper order for windows
17932         
17933         * ContainerControl.cs:
17934         
17935         - ActiveControl setter has more conditions on when to return:
17936                 - if we're reselecting the active control, but it actually
17937                 didn't have focus (window hidden or some such), it runs
17938                 - if the active control being selected doesn't actually 
17939                 exist in the container, it returns
17940         
17941         * Form.cs
17942         
17943         - The ShowDialog now gets the current form as the owner when
17944         invoking without parameters, and correctly activates the owner 
17945         when returning
17946         
17947         * MessageBox.cs
17948         
17949         - MessageBox now catches the Escape key to exit
17950
17951 2006-10-20  Chris Toshok  <toshok@ximian.com>
17952
17953         * PropertyGridView.cs: fix a number of issues (bug #78565, and
17954         most of bug #79676):
17955
17956         - you can navigate around the property grid with the arrow keys.
17957
17958         - the dropdown is sized properly when the pg has a vertical
17959         scrollbar.
17960
17961         - fix the indentation for subentries, and properly select the
17962         entire label rect.
17963
17964         - fix the gray bar's drawing (only draw it to the last element,
17965         not for the height of the control.  Also make sure we draw that
17966         last horizontal grid line.
17967
17968         - use the same mechanism the datagrid uses wrt the editing textbox
17969         when scrolling/resizing/etc.  Namely, we hide it first, do the
17970         operation, then show it again (if it's still visible).
17971         
17972         - aggressively remove a lot of unnecessary refreshes (and also
17973         calls to Invalidate(). call more limited variants, and only redraw
17974         what we need.)
17975         
17976         * PropertyGrid.cs:
17977
17978         - when we're populating the merged collection, fill in the UI
17979         parent with either the passed in item, or the category item we
17980         create.
17981
17982         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
17983
17984         * GridItem.cs: drop some fully qualified names.
17985         
17986         * GridEntry.cs: add a "UIParent", which is basically the parent
17987         treenode.
17988
17989         * GridItemCollection.cs: add an IndexOf method.
17990
17991 2006-10-20  Mike Kestner  <mkestner@novell.com>
17992
17993         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
17994         a working win32 NC invalidation mechanism, we can't invalidate
17995         menus.  [Fixes #79705]
17996
17997 2006-10-20  Mike Kestner  <mkestner@novell.com>
17998
17999         * ListBox.cs : don't update the VScrollbar if the list is empty,
18000         just hide it.  [Fixes #79692]
18001
18002 2006-10-20  Jackson Harper  <jackson@ximian.com>
18003
18004         * RichTextBox.cs: Handle some special chars better, and don't skip
18005         the entire group when we encounter a special char that we don't
18006         handle correctly.
18007
18008 2006-10-18  Chris Toshok  <toshok@ximian.com>
18009
18010         * PropertyGridView.cs: address a number of issues from bug #79676,
18011         mostly of the cosmetic variety.
18012
18013         - The highlight rectangle for indented items not extends all the
18014         way to the left.
18015
18016         - Indented items aren't indented so much.
18017
18018         - the dropdown is properly sized width-wise if the pg has a
18019         vertical scrollbar.
18020
18021 2006-10-18  Chris Toshok  <toshok@ximian.com>
18022
18023         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
18024         systray stuff is rather convoluted to begin with.
18025
18026         systray icons are a single window for some reason (that I haven't
18027         figured out yet), and for them, client_window == whole_window.
18028         Given the way the tests are structured elsewhere to determine
18029         which paints are pending (client vs. nc), that situation will
18030         always yield PAINT, not NCPAINT.  So, if we have a pending
18031         nc_expose and no pending expose, remove the hwnd from the paint
18032         queue, and also set nc_expose_pending to false, to keep us from
18033         blocking further expose's adding the hwnd to the paint queue.
18034
18035         phew.  like i said, a rather convoluted change.  Fixes the
18036         notifyicon repaint issues in bug #79645.
18037
18038 2006-10-18  Chris Toshok  <toshok@ximian.com>
18039
18040         * Form.cs: when getting the backcolor of the form, don't get
18041         base.BackColor, as this allows parents to influence the background
18042         color.  This breaks mdi forms.  Instead, if the background_color
18043         is empty, return the default.
18044
18045 2006-10-18  Chris Toshok  <toshok@ximian.com>
18046
18047         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
18048         to being private instead of internal static.
18049
18050         * Control.cs: remove all the stupid ParentWaitingOnRecreation
18051         crap, it wasn't working for more deeply nested controls anyway,
18052         and we already have the is_recreating flag - use that instead.
18053         Before calling DestroyHandle in RecreateHandle, recurse through
18054         the control tree setting it to true.  this returns the recreate
18055         code to much of its original simplicity, while now guaranteeing we
18056         actually recreate everything we're supposed to.  This change gets
18057         fyireporting actually showing mdi children.
18058
18059 2006-10-17  Chris Toshok  <toshok@ximian.com>
18060
18061         * Form.cs: remove some debug spew, and collapse some duplicate
18062         code at the end of SetClientSizeCore.
18063
18064         * XplatUIX11.cs: 
18065         - add some more debug spew here too wrt Destroy handling.
18066         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
18067         in Control's handling of WM_DESTROY.
18068         - Remove the handling of zombie window DestroyNotifies from the
18069         event loop - we don't need it.  Now the only DestroyNotifies we
18070         actually handle are ones generated by X.
18071         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
18072         match gtk's (functioning) handling of this. This keep metacity
18073         from leaving droppings in the form of wm borders with no window
18074         contents all over the place.
18075
18076         * Control.cs:
18077         - add a bunch of debug spew wrt control recreation.
18078         - fix a bug where we weren't tracking Visible properly on
18079         recreated hwnds.
18080         - fixed the WM_PAINT double buffer handling to support re-entrant
18081         calls (yes, i know it's gross, but it's happening to us).
18082
18083 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
18084         * ThemeWin32Classic.cs: changed drawing of selected days
18085         to make them look better.
18086
18087 2006-10-16  Chris Toshok  <toshok@ximian.com>
18088
18089         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
18090         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
18091
18092         * XplatUIX11.cs: move away from using hwnd.client_dc and
18093         hwnd.non_client_dc and on to a stack of dc's (and in window's
18094         case, PAINTSTRUCT's), so we can deal with nested Paint calls
18095         without puking or not disposing of Graphics objects.
18096
18097         * XplatUIOSX.cs: same.
18098
18099         * XplatUIWin32.cs: same.
18100
18101 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
18102
18103         * FileDialog.cs: Don't call on_directory_changed inside
18104           OnSelectedIndexChanged (it changes the SelectedIndex too).
18105           Instead move it to OnSelectionChangeCommitted.
18106
18107 2006-10-13  Chris Toshok  <toshok@ximian.com>
18108
18109         * XplatUIX11.cs: more Destroy work.  the current code does the
18110         following things, in order:
18111
18112         1. Enumerates all handles of all controls at or below the one
18113         being destroyed, in pre-order.  As it is doing this, it marks the
18114         handles as zombie and clears all references to them.
18115         
18116         2. calls XDestroyWindow on the window passed in.
18117
18118         3. SendMessage's WM_DESTROY to all he handles in the accumulated
18119         list.
18120
18121 2006-10-13  Chris Toshok  <toshok@ximian.com>
18122
18123         * XplatUIX11.cs: set hwnd.zombie to true before calling
18124         SendMessage (WM_DESTROY).  this keeps us from marking the new
18125         window a zombie, and also keeps us from calling sendmessage at
18126         all.
18127
18128 2006-10-13  Jackson Harper  <jackson@ximian.com>
18129
18130         * TextControl.cs: Do not show the caret and selection at the same
18131         time.  Reduces ugliness by 35%.
18132
18133 2006-10-13  Chris Toshok  <toshok@ximian.com>
18134
18135         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
18136         zombie after we do the recursive call, so we actually do call
18137         SendMessage on the children controls.
18138         (GetMessage): if we find a pending paint event for a zombie hwnd,
18139         remove the hwnd from the paint queue, or else it will always be
18140         there (and we'll effectively loop infinitely)
18141
18142 2006-10-13  Mike Kestner  <mkestner@novell.com>
18143
18144         * MenuItem.cs : add Selected format under keynav too.
18145         Fixes #79528.
18146
18147 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
18148
18149         * PropertyGrid.cs: Fixed some NRE's and small difference between our
18150         implementation and that of MS.
18151
18152 2006-10-13  Chris Toshok  <toshok@ximian.com>
18153
18154         * Control.cs (OnInvalidated) only futz with the invalid_region if
18155         the control is double buffered.  this fixes the apparent hang in
18156         the ListView unit tests.  Someone needs to make the
18157         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
18158
18159 2006-10-13  Chris Toshok  <toshok@ximian.com>
18160
18161         * PropertyGridView.cs:
18162
18163         - do a little refactoring so that only one place calls
18164         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
18165         else call that.  Also make it Refresh, since there are redraw bugs
18166         otherwise (we should take a look at that...)
18167
18168         - do a little more refactoring work to share the body of code
18169         involved with the drop down.  it was duplicated in the code
18170         dealing with the listbox handling and in the code dealing with the
18171         UITypeEditors.
18172
18173         - add a Capture to the dropdown form's control once it's
18174         displayed, and add a MouseDown handler that checks to make sure
18175         the position is inside the control.  If it's not, close the
18176         dropdown.  This fixes #78190.
18177
18178         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
18179         if the value is different than the initial value.
18180         
18181 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
18182
18183         * Control.cs: see #78650
18184         - Fixed GetNextControl for several cases:
18185                 - Changed FindFlatForward to return 
18186                 correct sibling control when more than one
18187                 control has same TabIndex as the currently 
18188                 focused one.
18189                 - Changed FindFlatBackward to loop children
18190                 from last to first and apply same logic as in
18191                 FindFlatForward
18192                 - Changed FindControlForward to search for
18193                 children when control is not a container
18194                 but has children, or search for siblings if
18195                 control is a container...
18196                 - Changed FindControlBackward   to continue
18197                 searching for child controls when hitting 
18198                 Panel-like parents
18199                 
18200         - Fixed Focus method to update ActiveControl
18201         (FocusTest.FocusSetsActive failure)
18202         
18203         * TabControl.cs:
18204         - Focus rectangle now refreshes when gaining
18205         or losing focus
18206         - Removed grab for Tab key on IsInputKey that 
18207         was keeping tab navigation from working (#78650)
18208
18209 2006-10-13  Chris Toshok  <toshok@ximian.com>
18210
18211         * PropertyGridView.cs:
18212         - Rewrite SetPropertyValue to loop over SelectedGridItem's
18213         SelectedObjects.
18214
18215         - Deal with GridItem.Value == null a few places.
18216
18217         * PropertyGrid.cs: 
18218         - replace the PopulateGridItemCollection with a pair of methods
18219         which compute the intersection of all the properties in the
18220         SelectedObjects array.  Fixes #79615.
18221
18222         - Throw ArgumentException from set_SelectedObjects if there's a
18223         null in the array.
18224
18225         - Add GetTarget method which can be used to traverse up the
18226         GridItem.Parent chain.  It depends on the assumption that
18227         selected_objects for different GridEntries are always in the same
18228         order (a safe assumption).  Use this method and loop over all the
18229         selected objects in the entry when calling RemoveValueChanged and
18230         AddValueChanged.
18231         
18232         * GridEntry.cs: Make this handle multiple selected objects.
18233         .Value returns null if not all the selected objects share the same
18234         value.
18235
18236 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
18237         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
18238           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
18239           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
18240           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
18241           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
18242         add additional functionality.
18243
18244 2006-10-12  Mike Kestner  <mkestner@novell.com>
18245
18246         * ErrorProvider.cs : new ToolTipWindow ctor sig.
18247         * HelpProvider.cs : new ToolTipWindow ctor sig.
18248         * ToolTip.cs : remove ToolTip param from Window sig since it is
18249         not used.
18250         * ToolBar.cs : add tooltip support.  Fixes #79565.
18251
18252 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
18253
18254         * ComboBox.cs: move the events in set_SelectedIndex to 
18255         after the call to HighlightIndex in order to avoid 
18256         possible recursion and subsequent problems with the call
18257         to HighlightIndex and include a range check in 
18258         set_HighlightIndex. Fixes #79588
18259         
18260 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
18261
18262         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
18263         to ui thread's settings instead of sunday. 
18264         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
18265
18266 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
18267
18268         * DateTimePicker.cs
18269         * MonthCalendar.cs
18270         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
18271         and implement missing functionality (selecting different parts 
18272         of the date and edit them individually with the keyboard).
18273         
18274 2006-10-11  Chris Toshok  <toshok@ximian.com>
18275
18276         * Control.cs (OnInvalidated): fix NRE relating to last change.
18277
18278 2006-10-11  Chris Toshok  <toshok@ximian.com>
18279
18280         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
18281         atoms in _NET_WM_STATE here if the window is maximized.  We need
18282         to do this because we're *replacing* the existing _NET_WM_STATE
18283         property, so those atoms will be lost otherwise, and any further
18284         call to GetWindowState will return Normal for a window which is
18285         actually maximized.  Fixes #79338.
18286
18287 2006-10-11  Jackson Harper  <jackson@ximian.com>
18288
18289         * TextControl.cs: Special case for setting selection end to
18290         selection start, we basically kill the anchor.
18291         - some todo comments.
18292
18293 2006-10-11  Chris Toshok  <toshok@ximian.com>
18294
18295         * Control.cs: switch to using an "invalid_region" to track which
18296         parts of the image buffer need updating.  This is more code than
18297         the simple fix from r66532.  That version just attempted to always
18298         fill the entire buffer on redraw, which turns out to be
18299         inefficient when invalidating small rectangles.  This version
18300         simply adds the invalid rectangle to the invalid region.  When we
18301         get any WM_PAINT message we see if it can be filled using the
18302         image buffer, and if it can't (if the paint event's clip rectangle
18303         is visible in the invalid region) we first fill the image buffer.
18304         So, the image buffer is still a cache, we just fill it lazily.
18305
18306         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
18307         need it any longer.
18308
18309 2006-10-11  Chris Toshok  <toshok@ximian.com>
18310
18311         * XplatUIX11.cs (SetWindowPos): we need to update both position as
18312         well as size after calling XMoveResizeWindow.  This keeps us from
18313         ignoring future SetWindowPos calls.  Fixes the disappearing
18314         DateTimePicker in the ToolBarDockExample from bug #72499.
18315
18316 2006-10-11  Chris Toshok  <toshok@ximian.com>
18317
18318         * TextBoxBase.cs: reorder things a bit when it comes to
18319         resizing-causing-recalculation.  we were recalculating the
18320         document when our position was changed, which shouldn't happen.
18321         We only care about size changes.  Clear up some more redundant
18322         recalculation calls while I'm at it.  This makes the toolbar dock
18323         example snappy when you're just dragging toolbars around (since it
18324         causes a relayout whenever you move one.)
18325
18326 2006-10-11  Chris Toshok  <toshok@ximian.com>
18327
18328         * ToolBarButton.cs (get_Rectangle): this only returns
18329         Rectangle.Empty if Visible == false, or Parent == null.
18330         Parent.Visible doesn't matter.
18331
18332 2006-10-10  Chris Toshok  <toshok@ximian.com>
18333
18334         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
18335         by .net 1.1, so switch to an internal method instead.
18336
18337 2006-10-10  Chris Toshok  <toshok@ximian.com>
18338
18339         * Control.cs (WM_PAINT): when a control is double buffered we draw
18340         initially to the ImageBuffer and then copy from there.  But when a
18341         parent control which has child controls is double buffered, the
18342         initial drawing doesn't encompass the entire ClientRectangle of
18343         the parent control, so we end up with uninitialized bits (this is
18344         easily seen by dragging the top toolbar in
18345         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
18346         manually set the ClipRectangle of the paint_event (only the one we
18347         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
18348         of the nastiness in bug #72499.
18349
18350         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
18351         which we use in Control.cs's WM_PAINT handling.
18352
18353 2006-10-10  Jackson Harper  <jackson@ximian.com>
18354
18355         * TextBoxBase.cs: Finish off the autoscrolling stuff.
18356
18357 2006-10-10  Chris Toshok  <toshok@ximian.com>
18358
18359         * Cursor.cs: Apply a slightly different patch to the one suggested
18360         in #79609.
18361
18362 2006-10-10  Jackson Harper  <jackson@ximian.com>
18363
18364         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
18365         not the parent form.
18366         * TextControl.cs: use difference in old line count vs new count to
18367         calculate how many lines were added, this takes into account soft
18368         line breaks properly.
18369
18370 2006-10-10  Chris Toshok  <toshok@ximian.com>
18371
18372         * LinkLabel.cs: don't call MeasureCharacterRanges against a
18373         rectangle located at 0,0 and the size of the text.  Use
18374         ClientRectangle instead.  This fixes rendering of non-left aligned
18375         link labels.
18376
18377 2006-10-10  Jackson Harper  <jackson@ximian.com>
18378
18379         * TextBoxBase.cs: When we set the selection start position the
18380         caret.
18381         * TextControl.cs: Need to update the caret when we decrement it to
18382         zero.
18383         - Make sure that the selection_visible flag gets reset to false if
18384         the selection isn't visible.  Before this you could get it set to
18385         visible by changing the selection start, then changing the end to
18386         equal the start.
18387
18388 2006-10-09  Jackson Harper  <jackson@ximian.com>
18389
18390         * TreeView.cs: Don't update scrollbars when we aren't visible.
18391         * TreeNodeCollection.cs: Only need to update scrollbars if being
18392         added to an expanded visible node or the root node.
18393
18394 2006-10-09  Chris Toshok  <toshok@ximian.com>
18395
18396         * XplatUIX11.cs (SendMessage): fix NRE.
18397
18398 2006-10-09  Jackson Harper  <jackson@ximian.com>
18399
18400         * TextBoxBase.cs: Implement horizontal autoscrolling.
18401         * TextControl.cs: Add a movement types that allows moving forward
18402         and backwards without wrapping.
18403
18404 2006-10-09  Mike Kestner  <mkestner@novell.com>
18405
18406         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
18407         with focus "expansion" of labels.  Fixes #79532 and then some.
18408         * ThemeWin32Classic.cs : add LineLimit to ListView label format
18409         when wrapping.
18410
18411 2006-10-09  Jackson Harper  <jackson@ximian.com>
18412
18413         * TextBoxBase.cs: Set the default max values to MaxValue since
18414         we use the scrollbar for autoscrolling and the default value is
18415         100.  If we don't do this the caret won't keep up with typing
18416         after about 18 characters.
18417         * TextControl.cs: Make sure the selection is offset by the
18418         viewport x.  This fixes selection when using auto scrolling.
18419
18420 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
18421         
18422         * Form.cs: The active control should be selected after the 
18423         OnLoad so that any child control initialization that affects
18424         the selection is done. Fixes #79406
18425
18426 2006-10-06  Chris Toshok  <toshok@ximian.com>
18427
18428         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
18429         to have no evil effects.
18430
18431         - Stop selecting StructureNotifyMask on non-toplevel windows.
18432
18433           The only way children should be resized is by using the SWF api,
18434           and we already send WM_WINDOWPOSCHANGED messages in those cases.
18435           Toplevel windows can be interacted with via the window manager,
18436           and so we keep the input mask there.
18437
18438           The other event StructureNotifyMask gives us (that we care
18439           about) is DestroyNotify.  The code is already structured such
18440           that it assumes we won't be getting a DestroyNotify event for
18441           the window we pass to XDestroyWindow (which is what
18442           StructureNotifyMask is supposed to guarantee.)  So, that code
18443           shouldn't be affected by this either.
18444
18445         - Stop selecting VisibilityChangeMask altogether.
18446
18447           We weren't doing anything with the resulting events anyway.
18448         
18449         This vastly reduces the number of X requests and events we see
18450         when resizing/laying out a large ui.
18451
18452 2006-10-06  Chris Toshok  <toshok@ximian.com>
18453
18454         * ScrollableControl.cs (DisplayRectangle): we need to take into
18455         account the DockPadding regardless of whether or not auto_scroll
18456         == true.  rework this slightly to this effect, and fix bug #79606,
18457         and part of #72499 (you can now see the drag handles and drag
18458         toolbars around).
18459
18460 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
18461
18462         * ListViewItem.cs: Collections of selected and checked items are now
18463         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
18464         we mark the collection "dirty".
18465         * ListView.cs: Marked collections readonly. Modified UpdateSelection
18466         to only clear SelectedItems when a new item is selected and MultiSelect
18467         is enabled. CheckedItems and SelectedItems now subscribe to Changed
18468         event of ListViewItemCollection, and mark its list dirty whenever
18469         that event is fire. This allows us to return selected/checked items 
18470         in the same order as they are in the Items collection. This matches
18471         the MS behavior.
18472
18473 2006-10-06  Chris Toshok  <toshok@ximian.com>
18474
18475         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
18476         right mouse clicks.  Fixes bug #79593.
18477
18478 2006-10-06  Chris Toshok  <toshok@ximian.com>
18479
18480         * Splitter.cs: doh, fix splitters that don't want to cancel the
18481         movement when you drag them.  Also, impose the limits on the
18482         values we send to the SplitterMovingEvent.  Fixes #79598.
18483
18484 2006-10-06  Jackson Harper  <jackson@ximian.com>
18485
18486         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
18487         since we use this for auto scrolling also.
18488
18489 2006-10-05  Chris Toshok  <toshok@ximian.com>
18490
18491         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
18492         beginning to think that most datagrid column types don't need this
18493         method.  Fixes bug #79392.
18494
18495 2006-10-05  Chris Toshok  <toshok@ximian.com>
18496
18497         * DataGrid.cs: move back to a more lazy scheme for creating the
18498         CurrencyManager, so we aren't updating it every time you set
18499         either DataSource or DataMember.  Also, don't call
18500         RecreateDataGridRows if the currency manager hasn't changed.
18501
18502 2006-10-05  Chris Toshok  <toshok@ximian.com>
18503
18504         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
18505         emitted, SelectedIndex should already be updated.  Fixes bug
18506         #78929.
18507
18508 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
18509
18510         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
18511           ToolStripTextBox.cs: Initial commit.
18512         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
18513
18514 2006-10-05  Jackson Harper  <jackson@ximian.com>
18515
18516         * TabControl.cs: We need to invalidate the tab control area when
18517         new ones are added (duh).
18518
18519 2006-10-03  Chris Toshok  <toshok@ximian.com>
18520
18521         * Form.cs (ProcessDialogKey): if the focused control is in this
18522         form and is a button, call its PerformClick method here.  Fixes
18523         #79534.
18524
18525 2006-10-04  Jackson Harper  <jackson@ximian.com>
18526
18527         * TabPage.cs: Ignore setting of Visible, and add an internal
18528         method for setting the controls visibility.  TabPage's Visible
18529         property is a little strange on MS, this seems to make us
18530         compatible, and fixes cases where people set all the tab pages to
18531         visible.
18532         * TabControl.cs: Use the new internal setting on tab pages
18533         visibility.
18534
18535 2006-10-03  Mike Kestner  <mkestner@novell.com>
18536
18537         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
18538
18539 2006-10-03  Mike Kestner  <mkestner@novell.com>
18540
18541         * ListView.cs : use is_visible instead of Visible to check if 
18542         scrollbars should be placed/sized.  Also some max_wrap_width
18543         love for LargeIcon view.  [Fixes #79533]
18544
18545 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
18546
18547         * TextControl.cs :
18548           Make set_TextAlign() do actually update the align. Fixed #78403.
18549
18550 2006-10-03  Chris Toshok  <toshok@ximian.com>
18551
18552         * DataGrid.cs: fix a crash when switching datasources if the
18553         vertical scrollbar is at someplace other than Value = 0.  Also,
18554         reduce the number of recalculation passes we do in SetDataSource
18555         from 2 to 1.
18556
18557 2006-10-03  Jackson Harper  <jackson@ximian.com>
18558
18559         * TextBoxBase.cs: Move the if value the same bail check up, we
18560         don't want to empty the document if it is already empty, this
18561         seems to severly mess up the caret.  TODO: I should probably fix
18562         the empty statement to update teh caret somehow.
18563
18564 2006-10-03  Chris Toshok  <toshok@ximian.com>
18565
18566         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
18567         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
18568         reflection, an internal row type, properties on said type, etc.)
18569         will work with our datagrid.  Fixes #79531.
18570
18571 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
18572
18573         * FileDialog.cs: Don't crash if a path is not accessible
18574           (System.UnauthorizedAccessException). Fixes #79569.
18575         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
18576           a ':' too. Return unknown icon for those paths/files.
18577
18578 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
18579
18580         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
18581         GetContainerControl returns null.
18582
18583 2006-10-02  Chris Toshok  <toshok@ximian.com>
18584
18585         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
18586         call to XGetWindowAttributes instead of "handle".  fixes an X
18587         error using notifyicon after the NotifyIconWindow to Form base
18588         class switch.
18589
18590 2006-10-02  Chris Toshok  <toshok@ximian.com>
18591
18592         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
18593         server grab and looping we need to do to get down to the most
18594         deeply nested child window.
18595         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
18596         QueryPointer again after the WarpPointer so we can generate a
18597         proper (fake) MotionNotify event to be enqueued in the destination
18598         window's queue.
18599         (GetCursorPos): call QueryPointer.
18600
18601         Fixes #79556.
18602
18603 2006-10-02  Jackson Harper  <jackson@ximian.com>
18604
18605         * NotifyIcon.cs: Derive the notify icon from a form, so things
18606         like FindForm work on it.
18607         - Swallow the WM_CONTEXTMENU message, since that is generated on
18608         mouse down, and context menu is a mouse up kinda guy.  I believe
18609         the correct fix here is probably to make the notify icon entirely
18610         NC area, but this seems to work fine for anyone not manipulating
18611         WndProc.
18612
18613 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
18614
18615         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
18616           ToolStripItemCollection.cs, ToolStripLabel.cs,
18617           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
18618           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
18619           Initial implementation.
18620         * TextRenderer.cs: Provide padding to MeasureText.
18621
18622 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
18623
18624         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
18625         of ButtonBaseAccessibleObject. Fix bug #79552.
18626
18627 2006-10-02  Jackson Harper  <jackson@ximian.com>
18628
18629         * MdiWindowManager.cs: When maximizing use the containers client
18630         rect, not it's bounds, so nc area is accounted correctly.
18631         - Use the parent form's size for the menu position, since the
18632         client isn't always the full form size.
18633
18634 2006-10-01  Chris Toshok  <toshok@ximian.com>
18635
18636         * ScrollableControl.cs: make sure neither right_edge or
18637         bottom_edge are < 0, since they're used as LargeChange for the
18638         horiz/vert scrollbars respectively.  Fixes #79539.
18639
18640 2006-10-01  Chris Toshok  <toshok@ximian.com>
18641
18642         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
18643         the xplatuix11 code can cause us to destroy/recreate our handle.
18644
18645         * XplatUIX11.cs
18646         (SystrayAdd):
18647         - this code can be invoked many times for the same Hwnd.  Make
18648           sure we only destroy the client window once (the first time this
18649           method is called).  This fixes bug #79544.
18650         - Remove the call to the improperly bound XSync.  why we had two
18651           bindings to this, I will never know, but this call resulted in
18652           events being discarded from the queue(!).
18653         - correct a misunderstanding of _XEMBED_INFO - the second atom is
18654           not our current state but the state we wish to be in.  So, 0 if
18655           we don't want to be mapped.  Change it to 1.
18656         (SystrayRemove): The XEMBED spec makes mention of the fact that
18657         gtk doesn't support the reparent of client windows away from the
18658         embedder.  Looking at gtksocket-x11.c seems to agree with this.
18659         The only avenue we have for removing systray icons is to destroy
18660         them.  We don't want the handle to go away for good, though, so
18661         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
18662         #79545.
18663         
18664 2006-10-01  Chris Toshok  <toshok@ximian.com>
18665
18666         * Form.cs (WndProc): inline the native_enabled variable usage into
18667         the cases in which it's used.  Fixes #79536.
18668
18669 2006-09-29  Mike Kestner  <mkestner@novell.com>
18670
18671         * ListView.cs : toggle the selection state for ctrl clicks in 
18672         multiselect mode. [Fixes #79417]
18673
18674 2006-09-29  Mike Kestner  <mkestner@novell.com>
18675
18676         * ListView.cs : kill CanMultiSelect and refactor the selection
18677         code to support multiselection in the absence of mod keys. Steal
18678         arrow/home/end keys by overriding InternalPreProcessMessage to
18679         restore regressed keynav behavior.
18680         [Fixes #79416]
18681
18682 2006-09-29  Jackson Harper  <jackson@ximian.com>
18683
18684         * MdiClient.cs: Repaint the titlebars when the active window is
18685         changed.
18686
18687 2006-09-29  Chris Toshok  <toshok@ximian.com>
18688
18689         * Application.cs: when entering a runloop with a modal, make sure
18690         the hwnd is enabled.  Fixes #79480.
18691
18692 2006-09-29  Chris Toshok  <toshok@ximian.com>
18693
18694         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
18695         when ListManager.CanAddRows == false, bump us back one.
18696
18697         * DataGridColumnStyle.cs (ParentReadOnly): remove the
18698         listmanager.CanAddRows check.  This makes ArrayLists uneditable
18699         using a datagrid, which is not right.
18700         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
18701         is an IEditable, but call property_descriptor.SetValue regardless.
18702         fixes #79435.
18703
18704 2006-09-29  Chris Toshok  <toshok@ximian.com>
18705
18706         * DataGridBoolColumn.cs: we need to test equality in the face of
18707         possible null values (as is the case with the default NullValue).
18708         This patch keeps us from crashing in that case.
18709
18710 2006-09-29  Jackson Harper  <jackson@ximian.com>
18711
18712         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
18713         here, since it will get called for every node collection in the
18714         tree. This is now done in the treeview once the sorting is
18715         finished.
18716         * TreeView.cs: Recalculate the visible order, and update the
18717         scrollbars after sorting, set the top nope to the root so that the
18718         recalc actually works.
18719
18720 2006-09-29  Chris Toshok  <toshok@ximian.com>
18721
18722         * LinkLabel.cs: more handling of the default link collection in
18723         the face of LinkArea manipulation.  The default link collection
18724         contains 1 element (start=0,length=-1).  If the user sets LinkArea
18725         to anything and the links collection is the default, clear it.
18726         Then only add the link if its nonempty.  Fixes #79518.
18727
18728 2006-09-29  Chris Toshok  <toshok@ximian.com>
18729
18730         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
18731         piece correctly when we hit a '\n'.  Fixes #79517.
18732
18733 2006-09-29  Chris Toshok  <toshok@ximian.com>
18734
18735         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
18736         change the binding of gdk_init_check to take two IntPtr's, and
18737         pass IntPtr.Zero for both of them.  Fixes #79520.
18738
18739 2006-09-29  Mike Kestner  <mkestner@novell.com>
18740
18741         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
18742         [Fixes #78779]
18743
18744 2006-09-28  Jackson Harper  <jackson@ximian.com>
18745
18746         * XplatUIX11.cs: When translating NC messages make sure we go from
18747         whole window to screen, not client window to screen.
18748         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
18749         method doesn't exist
18750         - Skip over controls that aren't forms when arranging.
18751
18752 2006-09-28  Jackson Harper  <jackson@ximian.com>
18753
18754         * XplatUIWin32.cs: Clip the rect to the parent window.
18755         * XplatUIStructs.cs: Add clipping modes struct.
18756         * InternalWindowManager.cs: New private method that factors title
18757         bar heights in when calculating the pos of an NC mouse message.
18758         - Use SendMessage to force a paint when the form's size is changed
18759         instead of painting the decorations immediately.
18760         - Don't let the NC button click messages get to DefWndProc,
18761         because they will attempt to handle windowing themself, and this
18762         messes up z-order (it will put them in front of the scrollbars).
18763         * XplatUIX11.cs: Make sure that we don't reset window managers if
18764         we already have one (ie the window is an MDI window).
18765
18766 2006-09-28  Chris Toshok  <toshok@ximian.com>
18767
18768         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
18769         menu code really needs going over.
18770
18771 2006-09-27  Chris Toshok  <toshok@ximian.com>
18772
18773         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
18774         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
18775         window is maximizable.  So, we need to make sure that even if we
18776         clear the border/wm frame of those functions, they're still
18777         available (basically, we remove the decoration without removing
18778         the function).  Half the fix for #79338.
18779
18780 2006-09-27  Chris Toshok  <toshok@ximian.com>
18781
18782         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
18783         Fixes bug #79515.
18784
18785 2006-09-27  Chris Toshok  <toshok@ximian.com>
18786
18787         * Splitter.cs: reorder things a bit so that we don't actually
18788         draw/move the splitter until after calling OnSplitterMoving.  This
18789         lets users cancel/disallow the movement by explicitly setting
18790         event.SplitX/SplitY.  Fixes #79372.
18791
18792 2006-09-27  Jackson Harper  <jackson@ximian.com>
18793
18794         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
18795         because it is most likely on a window being destroyed, and that
18796         will give us an X11 error.
18797
18798 2006-09-27  Chris Toshok  <toshok@ximian.com>
18799
18800         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
18801         the dropdown button now toggles between showing and hiding the
18802         dropdown.  Also, get rid of dropdown_form_showing and just use
18803         dropdown_form.Visible.  We still don't do a grab, but I'll leave
18804         that part to someone who has handled Capture-fu before.
18805
18806 2006-09-27  Chris Toshok  <toshok@ximian.com>
18807
18808         * DataGrid.cs: return false if alt isn't pressed when '0' is
18809         pressed.  this keeps the '0' key from being swallowed, and fixes
18810         bug #79350.
18811
18812 2006-09-27  Chris Toshok  <toshok@ximian.com>
18813
18814         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
18815         Calling Refresh (in response to a scrollbar event) screws up the
18816         scrollbar painting.  Fixes bug #78923.
18817
18818 2006-09-27  Chris Toshok  <toshok@ximian.com>
18819
18820         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
18821         then insert into hashtable" blocks threadsafe.
18822
18823 2006-09-27  Chris Toshok  <toshok@ximian.com>
18824
18825         * MessageBox.cs (CreateParams): the styles should be |'ed with our
18826         baseclass's, since otherwise the
18827         ControlBox/MinimizeBox/MaximizeBox assignments above have no
18828         effect.  This gets the close button back in messageboxes.
18829
18830 2006-09-27  Chris Toshok  <toshok@ximian.com>
18831
18832         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
18833         flag, not just != 0.  this makes flags that are actually multiple
18834         bits (like WS_CAPTION) work.  fixes bug #79508.
18835
18836 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
18837
18838         * PageSetupDialog.cs: add support for getting and settings the 
18839         paper size, source and orientation.
18840
18841 2006-09-26  Chris Toshok  <toshok@ximian.com>
18842
18843         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
18844         and caption == "", we need to remove the resize handles as well as
18845         the title bar.
18846
18847         * Control.cs (set_Text): turns out that setting Text on a form
18848         should change the WM styles on the window, since if ControlBox ==
18849         false, the only way to get a window border is to have a non-""
18850         Text property.  check winforms/forms/text.cs for an example.  so,
18851         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
18852         update both window styles and title.  This fixes a lot of dialogs
18853         (including the preferences dialog in MonoCalendar.)
18854
18855 2006-09-26  Chris Toshok  <toshok@ximian.com>
18856
18857         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
18858         control isn't a Form), call Win32ShowWindow to hide the window,
18859         but don't update the control Visible property.  When we reparent
18860         back to a parent control, call SetVisible in order for the
18861         window's visibility to be reinstated.
18862
18863         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
18864         the FosterParent.
18865
18866         * Control.cs (ControlCollection.Remove): remove that value.Hide()
18867         call for good, since it breaks MonoCalendar (and other things I'm
18868         sure.) Also, set all_controls to null *after* the owner calls,
18869         which end up regenerating it.
18870         (ChangeParent): allow new_parent to be == null, passing
18871         IntPtr.Zero down to XplatUI.
18872
18873         this fixes #79294 the right way.
18874
18875 2006-09-26  Mike Kestner  <mkestner@novell.com>
18876
18877         * GridEntry.cs : internal SetParent method.
18878         * PropertyGrid.cs : attach to property changed on the proper
18879         target if we have a hierarchical grid with subobjects. Setup
18880         GridItem.Parent for hierarchical items.
18881         * PropertyGridView.cs : Set value on the correct target for
18882         hierarchical grids. [Fixes #78903]
18883
18884 2006-09-26  Chris Toshok  <toshok@ximian.com>
18885
18886         * Control.cs (ChildNeedsRecreating): this should return true if
18887         either we're being recreated and the child is in our list, or our
18888         parent is waiting for our recreation.
18889
18890 2006-09-26  Chris Toshok  <toshok@ximian.com>
18891
18892         * Control.cs (ControlCollection.Remove): reinstate the
18893         value.Hide() call as suggested in bug #79294.
18894
18895 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
18896
18897         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
18898         coordinates (versus a relative move).
18899
18900 2006-09-26  Chris Toshok  <toshok@ximian.com>
18901
18902         * Control.cs: rework child recreation a little bit.  It turns out
18903         that we race between the DestroyNotify the WM_DESTROY message.  If
18904         the parent gets its DestroyNotify before the child gets the
18905         WM_DESTROY message, the child ends up not recreating (since the
18906         parent finishes its recreation on DestroyNotify, and the child
18907         checks ParentIsRecreating.)
18908
18909         So, instead we store off a list of all the child controls which
18910         need to be recreated when the parent control starts to recreate
18911         itself.  Then, when child controls get their WM_DESTROY message we
18912         check to see if they're in the parent's pending recreation list,
18913         and if so, we recreate.  This removes all dependency on ordering
18914         from the code and fixes the initial MonoCalendar upgrade dialog.
18915         
18916 2006-09-26  Jackson Harper  <jackson@ximian.com>
18917
18918         * TextControl.cs: Use the Line to get the length of the line,
18919         since soft line breaks can change the end line.
18920
18921 2006-09-26  Chris Toshok  <toshok@ximian.com>
18922
18923         * Control.cs (ControlCollection.AddImplicit): don't add the
18924         control again if it's already in one of our lists.  This keeps us
18925         from adding controls over and over again for comboboxes when their
18926         handle gets recreated (as the combobox adds implicit controls in
18927         OnHandleCreated).  Fixes the X11 errors in bug #79480.
18928
18929 2006-09-26  Jackson Harper  <jackson@ximian.com>
18930
18931         * TextControl.cs: When deleting characters make sure that any
18932         orphaned zero lengthed tags get deleted.
18933         - Fix ToString for zero lengthed tags.
18934
18935 2006-09-25  Jackson Harper  <jackson@ximian.com>
18936
18937         * TextControl.cs: When getting a tag at the location there can be
18938         multiple tags at the same spot, these are 0-lengthed tags that
18939         appear when extra formatting has been stuck in a location.  We
18940         need to pull out the last of these 0 lengthed tags.
18941
18942 2006-09-25  Jackson Harper  <jackson@ximian.com>
18943
18944         * TextControl.cs: Fix print out in debug method.
18945         * TextBoxBase.cs: When text is set bail if we are setting to the
18946         previous value.
18947         
18948 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
18949
18950         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
18951           It is now possible to change the selected index in a FontXXXListBox
18952           with the up and down arrow keys from the FontXXXTextBoxes.
18953           Also, send the FontXXXTextBox mouse wheel event to the corresponding
18954           FontXXXListBoxes to match ms.
18955
18956 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
18957
18958         * SystemInformation.cs: Return a clone of the theme's MenuFont because
18959         anyone can dispose it, anytime. All other properties returns enums, 
18960         structs or basic types so they don't need such tricks.
18961
18962 2006-09-22  Jackson Harper  <jackson@ximian.com>
18963
18964         * XplatUI.cs:
18965         * XplatUIWin32.cs:
18966         * Clipboard.cs:
18967         * DataFormats.cs:
18968         * XplatUIOSX.cs:
18969         * XplatUIDriver.cs: Update interface to add a primary selection
18970         flag, so the driver can use the primary selection buffer if
18971         needed.
18972         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
18973
18974         * RichTextBox.cs: We need to supply the data object to paste now
18975         (so we can choose to supply CLIPBOARD or PRIMARY).
18976         * TextBoxBase.cs: Supply data object to paste (see above).
18977         - Middle click uses the primary selection data object.
18978         
18979 2006-09-21  Chris Toshok  <toshok@ximian.com>
18980
18981         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
18982         of SetWMStyles.  It's still a rat's nest and is largely
18983         order-dependent which I dislike immensely.  This also fixes the X
18984         button disappearing from toplevel forms.
18985
18986 2006-09-21  Mike Kestner <mkestner@novell.com>
18987
18988         * ListBox.cs: move Jordi's click/dblclick raising code to the
18989         mouse up handler.
18990
18991 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
18992
18993         * ListBox.cs: Fixes 79450
18994
18995 2006-09-21  Mike Kestner <mkestner@novell.com>
18996
18997         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
18998         to deal with people updating the TreeNodeCollection after the tree
18999         is disposed.  "Fixes" 79330.
19000
19001 2006-09-20  Jackson Harper <jackson@ximian.com>
19002
19003         * TextControl.cs: Push the cursor record onto the undo stack
19004         before the delete action. This fixes 78651.
19005
19006 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
19007
19008         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
19009         CreateParams. Fixes 79329.
19010
19011 2006-09-19  Chris Toshok  <toshok@ximian.com>
19012
19013         * XplatUIX11.cs: a couple of blanket code massage passes to clean
19014         things up a bit.  First, get rid of the NetAtoms array (and the NA
19015         enum), and just embed the atoms as static fields.  Also, add a
19016         couple of functions (StyleSet and ExStyleSet) to clean up all the
19017         bitmask testing of styles.
19018
19019         * X11Structs.cs: remove the NA enum, not needed anymore.
19020         
19021 2006-09-19  Chris Toshok  <toshok@ximian.com>
19022
19023         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
19024         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
19025         added cleanup to get MessageBox titles appearing again, which were
19026         broken by my earlier fix for caption-less/ControlBox-less windows.
19027
19028 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
19029
19030         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
19031           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
19032           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
19033           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
19034           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
19035           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
19036           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
19037           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
19038           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
19039           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
19040           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
19041             Inital import.
19042         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
19043           ToolStripButton.cs: Stubs needed for above.
19044         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
19045
19046 2006-09-15  Chris Toshok  <toshok@ximian.com>
19047
19048         * XplatUIX11.cs:
19049         - make the MessageQueues hashtable Synchronized.
19050         
19051         - SendMessage: if the Hwnd is owned by a different thread, use the
19052         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
19053         thread.  Fixes bug #79201.
19054
19055 2006-09-15  Chris Toshok  <toshok@ximian.com>
19056
19057         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
19058         ControlBox == false, we disallow maximize/minimize/close.  If the
19059         form Caption is "" we also disallow move (and get rid of the Title
19060         decoration).  Unfortunately, regardless of how things are set,
19061         we're stuck with the Title and WM menu.
19062
19063 2006-09-15  Chris Toshok  <toshok@ximian.com>
19064
19065         * Application.cs: add locking around the static message_filters
19066         ArrayList, part of #79196.
19067
19068 2006-09-15  Chris Toshok  <toshok@ximian.com>
19069
19070         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
19071         Form.ControlBox == false, the window has no titlebar nor resize
19072         handles.  fixes bug #79368.
19073
19074 2006-09-15  Chris Toshok  <toshok@ximian.com>
19075
19076         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
19077         >= 0.  Fixes bug #79370.
19078
19079 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
19080         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
19081         * Control.cs:
19082             Add properties: LayoutEngine, Margin, DefaultMargin.
19083             Add method: GetPreferredSize.
19084             Move layout logic from PerformLayout to layout engines. 
19085
19086 2006-09-13  Chris Toshok  <toshok@ximian.com>
19087
19088         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
19089         fix for #79326 broke #78718, so this change addresses that.
19090
19091         - in SendWMDestroyMessages remove the call to
19092         CleanupCachedWindows, since we might be recreating the control and
19093         need to maintain the references to right Hwnd handles.  Also, set
19094         the zombie flag to true for each of the children in the hierarchy
19095         instead of calling hwnd.Dispose.  This will cause GetMessage to
19096         ignore all events for the window except for DestroyNotify.
19097
19098         - In GetMessage, ignore messages except for DestroyNotify for
19099         zombie hwnds.
19100         
19101         * Control.cs: revert the is_recreating fix from the last
19102         ChangeLog.  It's definitely "right", but it breaks switching from
19103         an MDI form to a non-MDI form.  Will need to revisit that.
19104
19105         * Hwnd.cs: add a zombie flag, which means "the
19106         client_window/whole_window handles are invalid, but we're waiting
19107         for the DestroyNotify event to come in for them".  Set the flag to
19108         false explicitly if setting WholeWindow/ClientWindow, and also
19109         when Disposing.
19110         
19111 2006-09-13  Chris Toshok  <toshok@ximian.com>
19112
19113         * XplatUIX11.cs: rework window destruction slightly.
19114
19115         - when destroying the windows associated with a control, we don't
19116         need 2 separate XDestroyWindow calls.  Just the one for the
19117         whole_window (or for client_window if whole_window is somehow
19118         IntPtr.Zero -- can this happen?) is enough.
19119
19120         - reworked SendWMDestroyMessages slightly, so we always dispose
19121         the child control hwnd's after sending the messages.
19122         
19123         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
19124         the two places it was used (one was even using hwnd.Handle and the
19125         other hwnd.client_window.  ugh), adding another call in
19126         SendWMDestroyMessages.  We need this new call because now the
19127         DestroyNotify events in the queue will be ignored for the child
19128         controls (as their hwnd's were disposed, and the window id's
19129         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
19130
19131         - this fixes bug #79326.
19132
19133 2006-09-13  Chris Toshok  <toshok@ximian.com>
19134
19135         * Control.cs: don't always set is_recreating to false at the end
19136         of RecreateHandle, since sometimes we're not done (and won't be
19137         until WndProc handles the WM_DESTROY message).  Also, set
19138         is_recreating to false in the WM_DESTROY handling code.  Part of
19139         the fix for bug #79326.
19140
19141 2006-09-13  Miguel de Icaza  <miguel@novell.com>
19142
19143         * X11DesktopColors.cs: Start the droppage of debugging messages.
19144
19145         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
19146
19147 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
19148
19149         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
19150
19151 2006-09-12  Chris Toshok  <toshok@ximian.com>
19152
19153         * DataGrid.cs (get_ListManager): if the list_manager is null, try
19154         to create it using SetDataSource.  Fixes bug #79151.
19155
19156 2006-09-11  Chris Toshok  <toshok@ximian.com>
19157
19158         * XEventQueue.cs: add a DispatchIdle property.
19159
19160         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
19161         either the queue is null, or the queue has DispatchIdle set to
19162         true.
19163         (DoEvents): set queue.DispatchIdle to false around the
19164         peek/translate/dispatch message loop in this method.  This keeps
19165         Application.Doevents from emitting idle events.  Part of the fix
19166         for #78823.
19167
19168 2006-09-11  Chris Toshok  <toshok@ximian.com>
19169
19170         * DataGrid.cs (set_DataSource): make this work for both the
19171         winforms/datagrid test and ReportBuilder.  It seems as though when
19172         we've created a ListManager (or maybe it's if we have a
19173         BindingContext?), when we set the DataSource it clears the
19174         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
19175         #79333.
19176
19177 2006-09-11  Chris Toshok  <toshok@ximian.com>
19178
19179         * XplatUIX11.cs: deal with queue being null, which happens in all
19180         the Clipboard functions.  Fixes one of the two problems mentioned
19181         in #78612.
19182
19183 2006-09-11  Chris Toshok  <toshok@ximian.com>
19184
19185         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
19186         button on various spots (including outside the menu) works closer
19187         to MS, and doesn't crash.  Fixes #79343.
19188
19189 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
19190
19191         * ListView.cs: Do not initialize item_sorter in init. To match MS,
19192         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
19193         and the internal comparer is set. When a new ListViewItemSorter is set,
19194         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
19195         was specified. No further processing is necessary if SortOrder is set
19196         to it's current value. If Sorting is modified to None, and View is
19197         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
19198         (either custom or our internal ItemComparer) to null, on 1.0 profile
19199         only set item_sorter to null if its our internal IComparer. If Sorting
19200         is modified to Ascending or Descending, then use our internal IComparer
19201         if none is set, and if the current IComparer is our internal one then:
19202         on 2.0 profile always replace it with one for new Sorting, and on 1.0
19203         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
19204         Enum.IsDefined to verify whether a valid View value is specified in
19205         its setter. Automatically sort listview items when listview is
19206         created. In Sort, do nothing if ListView is not yet created, or if
19207         no item_sorter is set (no Sorting was set, Sorting was explicitly set
19208         to None or ListViewItemSorter was set to null). Added Sort overload
19209         taking a bool to indicate whether the ListView should be redrawn when
19210         items are sorted (we use this in ListViewItemCollection to avoid double
19211         redraws). Modified our internal IComparer to take the sort order into
19212         account. In Add and AddRange methods of ListViewItemCollection, also
19213         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
19214         view), but use overload with noredraw option to avoid double redraw.
19215         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
19216         true when View is Tile, and do the same when attempting to set View to
19217         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
19218         for selected/checked indices, as it involves overhead when sorting is
19219         done while these collections are not used all that often. Instead
19220         we'll build the indices on demand. Modified IList implementation of
19221         CheckedIndexCollection to use public methods if object is int.
19222         Modified CheckedListViewItemCollection to hide checked items if
19223         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
19224         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
19225         IList implementation in SelectedIndexCollection to use public methods
19226         if object is int. Modified SelectedListViewItemCollection to hide
19227         selected items if listview is not yet created.
19228         * ListViewItem.cs: CheckedIndices list no longer needs to be
19229         maintained separately (see ListView changes). Also clone font, fixes
19230         test failure.
19231
19232 2006-09-11  Mike Kestner  <mkestner@novell.com>
19233
19234         * ComboBox.cs: if we are updating the contents of the currently
19235         selected index, refresh the control or the textbox selection.
19236         [Fixes #79066]
19237
19238 2006-09-11  Mike Kestner  <mkestner@novell.com>
19239
19240         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
19241         the 'specified' logic has been moved there.  This seems like a bug 
19242         in Control.cs, since our current SetBoundsCore completely ignores 
19243         the specified parameter.  Peter's commit seems to indicate that is 
19244         the way the MS control implementation works.  [Fixes #79325]
19245
19246 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
19247
19248         * XplatUI.cs: Set default_class_name to be composed
19249         of current domain id. This allows MWF to be loaded in multiple
19250         domains on Win32.
19251
19252 2006-09-09  Miguel de Icaza  <miguel@novell.com>
19253
19254         * X11Keyboard.cs: If we are unable to obtain the input method, do
19255         not call CreateXic to create the input context.   Should fix
19256         #78944/79276.
19257
19258 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
19259
19260         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
19261           Simplified gnome support by adding more pinvokes to get the
19262           icon for a file or mime type.
19263
19264 2006-09-08  Jackson Harper  <jackson@ximian.com>
19265
19266         * MenuAPI.cs: Deslect popup context menu items before closing the
19267         window, so that you don't see the previously selected item
19268         selected when you reopen the menu.
19269         * TextControl.cs: Update the cursor position even if we don't have
19270         focus.  This fixes typing in things like the ComboBox.  I'm not
19271         totally sure we should always set the visibility if we don't have
19272         focus, but couldn't find any corner cases where the cursor showed
19273         up when it shouldn't.
19274
19275 2006-09-08  Chris Toshok  <toshok@ximian.com>
19276
19277         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
19278         our arrays are length 256.  & 0xff before indexing.  Fixes the
19279         crash in bug #78077.
19280         
19281 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19282
19283         * ThemeWin32Classic.cs: 
19284         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
19285         is true. Handle that check box too.
19286
19287 2006-09-07  Chris Toshok  <toshok@ximian.com>
19288
19289         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
19290         79244.
19291
19292 2006-09-07  Chris Toshok  <toshok@ximian.com>
19293
19294         * Control.cs: in set_BackColor only do the work if
19295         background_color != value.
19296
19297         * XplatUIX11.cs: move the clearing of invalid areas (both client
19298         and nc) to the same block of code where we set (nc_)expose_pending
19299         to false.  That is, move it from PaintEventEnd to PaintEventStart,
19300         so things that cause invalidates from within OnPaint will trigger
19301         another call to OnPaint.  Fixes bug #79262.
19302
19303 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
19304
19305         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
19306         * FileDialog.cs: Fix typo
19307
19308 2006-09-07  Jackson Harper  <jackson@ximian.com>
19309
19310         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
19311         for tab pages if they have any.
19312
19313 2006-09-06  Mike Kestner  <mkestner@novell.com>
19314
19315         * Splitter.cs: use the "current" rect when finishing drag handle
19316         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
19317
19318 2006-09-06  Mike Kestner  <mkestner@novell.com>
19319
19320         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
19321         support offset splitters. [Fixes #79298]
19322
19323 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
19324
19325         * Mime.cs: Fixed a bug that could override the global mime type
19326           result.
19327
19328 2006-09-05  Jackson Harper  <jackson@ximian.com>
19329
19330         * TabControl.cs: Better calculation method for setting the slider
19331         pos. Prevents crashes on really wide tabs.
19332         - Draw Image on tab pages if an image list is used.
19333
19334 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19335
19336         * MonthCalendar.cs: When Font changes, the Size should be
19337         updated to fit the new font's space requirements.
19338
19339 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
19340
19341         * ListBox.cs: If the items are cleared with Items.Clear set
19342           top_index to 0.
19343
19344 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19345
19346         * MonthCalendar.cs: Handle arrow keys as input keys. Also
19347         fire DateChanged event instead of DateSelected event when
19348         the date was changed by keyboard interaction.
19349
19350 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19351
19352         * DateTimePicker.cs: Handle DateChanged for the associated
19353         month_calendar control, and set month_calendar.Font from 
19354         OnFontChanged method, as well as resize the height of the
19355         control when needed. Make PreferredHeight proportional.
19356
19357 2006-09-01  Chris Toshok  <toshok@ximian.com>
19358
19359         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
19360         properties.
19361
19362         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
19363
19364 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
19365
19366         * FileDialog.cs: Set ClientSize instead of window size, to allow space
19367           for decorations (Fixes #79219)
19368
19369 2006-09-01  Mike Kestner  <mkestner@novell.com>
19370
19371         * ComboBox.cs: first stab at sorting plus some selection handling
19372         fixes to bring us more in line with MS behavior.  Also switches back
19373         to index based selection.  Alternative patches for index-based 
19374         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
19375         and latency@gmx.de on bug 78848.  I assume they were similar to this
19376         code I've had simmering in my tree forever.
19377         [Fixes #78848]
19378
19379 2006-09-01  Chris Toshok  <toshok@ximian.com>
19380
19381         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
19382         when setting list position guard against ending up with a -1 index
19383         (the other part of the fix for #78812).  Should probably make sure
19384         we don't need the analogous fix in the ItemDeleted case.
19385
19386         * DataGrid.cs:
19387         - in SetDataSource, work around the fact that the way
19388         OnBindingContextChanged is invoked will cause us to re-enter this
19389         method.  I'll remove the hack once I investigate
19390         OnBindingContextChanged.
19391
19392         - fix the logic in set_DataSource and set_DataMember (basically
19393         what to do if the other of the two is null.)
19394         
19395         - in OnListManagerItemChanged, we need to take into account the
19396         edit row when deciding whether or not to call RecreateDataGridRows
19397         (part of the fix for #78812).
19398
19399 2006-09-01  Jackson Harper  <jackson@ximian.com>
19400
19401         * Splitter.cs: Don't do anything if there is no control to affect
19402         (prevents us from crashing in weird tet cases).
19403         * TreeView.cs: Bounding box for the mouse movement reverting
19404         focus/selection back to previously selected node.  This matches
19405         MS, and makes the tree a lot more useable.
19406         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
19407         use clipping so they are not drawn.  This fixes when the control
19408         is set to have a transparent background, or if it was over an
19409         image.
19410
19411 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
19412
19413         * MimeIcon.cs: Improved handling for reading default icons when
19414           using gnome (2.16 made it necessary). Check and read svg icons
19415           first, then 48x48 and then 32x32 icons.
19416
19417 2006-08-31  Chris Toshok  <toshok@ximian.com>
19418
19419         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
19420         visible.
19421
19422         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
19423         ProcessKeyPreview.  Fixes part of #77806.
19424
19425         * DataGrid.cs: big patch.
19426
19427         - revert the queueing up of DataSource/DataMember if inside
19428         BeginInit/EndInit calls.  That's not the way the datagrid achieves
19429         its delayed databinding.  Instead, call SetDataSource in
19430         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
19431         #78811.
19432
19433         - Also, it wasn't mentioned in #78811, but the test case exhibits
19434         behavior that was lacking in our datagrid implementation - Columns
19435         that have mapping names that don't exist in the datasource's
19436         properties aren't shown.  Yuck.  To fix this I added the bound
19437         field to the column style, and basically any calculation to figure
19438         out anything about columns uses a loop to find the bound columns.
19439         still need to investigate if I can cache an array of the bound
19440         columns or if the indices must be the same.
19441
19442         - When setting CurrentCell, we no longer abort if the cell being
19443         edited was in the add row.  This fixes the other part of #77806.
19444
19445         - The new code also fixes #78807.
19446         
19447         * ThemeWin32Classic.cs: perpetrate the same disgusting
19448         column.bound field hack, and only render bound fields.
19449
19450 2006-08-31  Chris Toshok  <toshok@ximian.com>
19451
19452         * DataGridColumnStyle.cs: add bound field.  this field is true if
19453         the datasource has a property corresponding to the mapping name.
19454
19455         * DataGridTableStyle.cs: set the bound field on the column styles
19456         depending on whether or not we have a column for that property.
19457
19458 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
19459
19460         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
19461           splitter control (fixes #79228)
19462
19463 2006-08-31  Chris Toshok  <toshok@ximian.com>
19464
19465         * DataGridColumnStyle.cs: we need to delay the assignment of
19466         property descriptor until the last possible moment due to the lazy
19467         databinding stuff in the datagrid.  Also, fix the exceptions
19468         thrown by CheckValidDataSource to match MS.
19469
19470 2006-08-31  Jackson Harper  <jackson@ximian.com>
19471
19472         * Form.cs: When activated select the active control, if there is
19473         no active control, we select the first control.
19474         * XplatUIX11.cs: If there is no focus control when we get a
19475         FocusIn event, find the toplevel form and activate it.  This
19476         occurs when you popup a window, it becomes the focus window, then
19477         you close that window, giving focus back to the main window.
19478
19479 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19480
19481         * MonthCalendar.cs: 
19482         * ThemeWin32Classic.cs: Cache Font in bold style, as well
19483         as StringFormat with Center alignments in MonthCalendar,
19484         instead of creating new ones when drawing the control. 
19485         Also, draw the month name in bold style.
19486
19487 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
19488
19489         * Control.cs:
19490           - PerformLayout(): It would seem MS performs the fill even if the 
19491             control is not visible (part of #79218 fix)
19492           - ResetBackColor(): Use the setter to reset the color, to allow
19493             overriders to catch the change.
19494         * Form.cs:
19495           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
19496           - CreateHandle(): dito (part of $79218 fix)
19497           - Don't set an icon if we have a dialog
19498         * ScrollableControl.cs:
19499           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
19500           - ScrollIntoView(): No need to scroll if control is already visible
19501             (resolves fixme and fixes #79218)
19502
19503 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19504
19505         * MonthCalendar.cs: Change proportions in SingleMonthSize
19506         to match the aspect of the original control.
19507
19508 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
19509
19510         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
19511           get updated when they get maximized.
19512
19513 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
19514
19515         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
19516
19517 2006-08-29  Chris Toshok  <toshok@ximian.com>
19518
19519         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
19520
19521 2006-08-29  Jackson Harper  <jackson@ximian.com>
19522
19523         * TreeView.cs: Need to track selected node and highlighted node,
19524         they aren't always the same thing, when the mouse is down on a
19525         node it is hilighted, but not selected yet.
19526         - Do the HideSelection stuff right
19527         - Need to focus on rbutton mouse down. And redraw selection when
19528         right click is mouse upped.
19529
19530 2006-08-29  Mike Kestner  <mkestner@novell.com>
19531
19532         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
19533         when SubItems.Count < Columns.Count.  [Fixes #79167]
19534
19535 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
19536
19537         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
19538
19539 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
19540
19541         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
19542           from X. Only send based on ConfigureNotify if we don't have the
19543           correct location in hwnd (if the window manager moved us)
19544
19545 2006-08-28  Mike Kestner  <mkestner@novell.com>
19546
19547         * ListView.cs: remove a TODO. 
19548         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
19549         [Fixes ListView part of #79166]
19550
19551 2006-08-28  Mike Kestner  <mkestner@novell.com>
19552
19553         * ListView.cs: move wheel handler to parent since it is focused
19554         instead of the item_control now.  [Fixes #79177]
19555
19556 2006-08-28  Mike Kestner  <mkestner@novell.com>
19557
19558         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
19559         when the control is focused. [Fixes #79171]
19560
19561 2006-08-28  Mike Kestner  <mkestner@novell.com>
19562
19563         * ListView.cs: size the item and header controls for empty and
19564         unscrollable views.
19565         * ThemeWin32Classic.cs: draw disabled backgrounds.
19566         [Fixes #79187]
19567
19568 2006-08-28  Chris Toshok  <toshok@ximian.com>
19569
19570         * Form.cs: remove unused "active_form" static field.
19571
19572         * Hwnd.cs: lock around accesses to static windows collection.
19573
19574         * Application.cs: lock threads in Exit ().
19575
19576 2006-08-28  Chris Toshok  <toshok@ximian.com>
19577
19578         * NativeWindow.cs: lock around accesses to window_collection.
19579         
19580 2006-08-28  Chris Toshok  <toshok@ximian.com>
19581
19582         * Control.cs: err, fix this the right way, by locking on controls
19583         when using it.  not by making it synchronized.
19584
19585 2006-08-28  Chris Toshok  <toshok@ximian.com>
19586
19587         * Control.cs: make the static "controls" field synchronized, as it
19588         gets updated from multiple threads.
19589
19590 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
19591
19592         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
19593           Prevent other threads from exiting when calling thread sets quit state.
19594         * XEventQueue.cs: Added PostQuitState property
19595
19596 2006-08-27  Chris Toshok  <toshok@ximian.com>
19597
19598         * AsyncMethodData.cs: add a slot for the window handle.
19599
19600         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
19601         window (the destination control's window, not the foster window).
19602
19603         * Control.cs (BeginInvokeInternal): store the window's handle in
19604         the AsyncMethodData.
19605         
19606
19607 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
19608
19609         * XplatUIX11.cs:
19610           - PostQuitMessage: Removed resetting S.D display handle, we might have
19611             another loop started after calling PostQuitMessage (Fixes #79119)
19612           - Created destructor to reset S.D handle
19613
19614 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
19615
19616         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
19617
19618 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
19619
19620         * TextControl.cs (Insert): Update the caret position even if we don't
19621           have a handle yet, just don't call the driver in that case.
19622         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
19623           to the end of the new selection text (Fixes #79184)
19624
19625 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
19626
19627         * Form.cs (Activate): Only activate if the handle is created)
19628         * Control.c:
19629           - Mark window as invisible when it's disposed
19630           - Check if window handle is created when setting window visible, 
19631             instead of relying just on the is_created variable
19632           - Check if object is disposed when creating the control (Fixes #79155)
19633
19634 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
19635
19636         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
19637           when allowing layout again. Otherwise we re-generate the anchoring 
19638           distance to the border again and actually alter what the user wanted
19639           This is ugly, it'd be better if we used DisplayRectangle instead of
19640           ClientRectangle for Control.UpdateDistances, but that causes us to
19641           have other problems (initial anchoring positons would be wrong)
19642           (Fixes #78835)
19643
19644 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
19645
19646         * Control.cs:
19647           - The size and location setters shouldn't go directly to 
19648             SetBoundsCore, but to SetBounds, which triggers layout on the
19649             parent, then calls SetBoundsCore. (Related to fix for #78835)
19650           - SetBounds: Moved actual location update code into this function
19651             from SetBoundsCore, to match MS. Added call to PerformLayout if
19652             we have a parent (to trigger resizing of anchored parents if the 
19653             child size has changed (see testcase for #78835) 
19654         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
19655           new control code
19656         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
19657
19658 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
19659
19660         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
19661           System.Drawing when a toplevel window gets closed; there might
19662           be other toplevel windows belonging to the same app (Fixes #78052)
19663
19664 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
19665
19666         * FileDialog.cs: After reading FileDialog settings from mwf_config
19667           use Desktop prefix only if a real folder doesn't exist anymore.
19668         * FontDialog.cs: Added char sets.
19669           It is now possible to select the font, size or style with the
19670           textboxes.
19671
19672 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
19673
19674         * PrintPreviewDialog.cs: Use assembly name constants.
19675
19676 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
19677
19678         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
19679           scrollbar from whacking it's buttons)
19680
19681 2006-08-24  Chris Toshok  <toshok@ximian.com>
19682
19683         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
19684         in this patch (aggregating setting Left/Top/Width/Height to
19685         setting Bounds on the scrollbars), but the crux of the fix is in
19686         Recalculate, where we scroll by the remaining scroll_position if
19687         we're hiding a scrollbar.  The 2*$5 reward in the comment is
19688         serious.
19689
19690 2006-08-24  Jackson Harper  <jackson@ximian.com>
19691
19692         * MdiClient.cs:
19693         * MdiWindowManager.cs: If the form is made a non-mdi window we
19694         need to remove the form closed event so that closing forms works
19695         correctly.
19696
19697 2006-08-24  Jackson Harper  <jackson@ximian.com>
19698
19699         * Control.cs: Make IsRecreating internal so that the driver can
19700         check it
19701         - Temporarily remove the Hide when controls are removed, its
19702         making a whole bunch of things not work because visibility isn't
19703         getting reset elsewhere correctly
19704         * Form.cs: Need to do a full handle recreation when the mdi parent
19705         is set.
19706         * XplatUIX11.cs: If we are recreating handles don't dispose the
19707         HWNDs.  What was happening is the handles were being recreated in
19708         SendWMDestroyMessages, but then flow continued on in that method
19709         and destroyed the new handles.
19710
19711 2006-08-23  Jackson Harper  <jackson@ximian.com>
19712
19713         * Form.cs: MdiClient is always at the back of the bus
19714         * Control.cs: When the order of items in the collection is changed
19715         we need to reset the all_controls array
19716         - do the same sorta setup thats done when adding a control when a
19717         control is set on the collection.
19718
19719 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
19720
19721         * TextBoxBase.cs (get_Text): Return an empty array if our document
19722           is empty (fixes #79052)
19723
19724 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
19725
19726         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
19727           on WM_SYSCHAR messages (fixes #79053)
19728
19729 2006-08-23  Chris Toshok  <toshok@ximian.com>
19730
19731         * DataGrid.cs: fix flickering when scrolling vertically.
19732
19733 2006-08-23  Chris Toshok  <toshok@ximian.com>
19734
19735         * DataGrid.cs (EndEdit): only invalidate the row header when we
19736         need to.
19737
19738 2006-08-23  Chris Toshok  <toshok@ximian.com>
19739
19740         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
19741         methods.  fixes the flicker when scrolling around.
19742
19743 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
19744
19745         * FileDialog.cs: Making sure the control is created before we get a 
19746           chance to use it with BeginInvoke (Fixes #79096)
19747
19748 2006-08-23  Chris Toshok  <toshok@ximian.com>
19749
19750         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
19751         width to use when painting the rows.
19752
19753 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
19754
19755         * TextBoxBase.cs:
19756           - Throw ArgumentException if a negative value is passed to SelectionLength
19757           - Update the selection end if start is moved. end needs to be always
19758             after start. (Fixes #79095)
19759           - Track selection length; MS keeps the selection length even if start
19760             is changed; reset on all other operations affection selection
19761
19762 2006-08-22  Jackson Harper  <jackson@ximian.com>
19763
19764         * TreeView.cs: Make sure both scrollbars get displayed and sized
19765         correctly when the other bar is visible.
19766         - Use the original clip rectangle for checking if the area between
19767         the two scrollbars is visible, not the viewport adjusted clipping
19768         rectangle.
19769
19770 2006-08-22  Jackson Harper  <jackson@ximian.com>
19771
19772         * Binding.cs: We don't use IsBinding because it requires the
19773         control to be created, which really shouldn't be necessary just to
19774         set a property on the control.
19775
19776 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19777
19778         * ComboBox.cs: Some CB.ObjectCollection methods must throw
19779         ArgumentNullReferenceException when the argument is null.
19780
19781 2006-08-21  Jackson Harper  <jackson@ximian.com>
19782
19783         * Timer.cs: Track the thread that the timer is started in (NOT
19784         CREATED), this way messages for it will only be triggered on its
19785         queue.
19786         * XEventQueue.cs: Track the timers here, this makes timers per
19787         thread, like MS.
19788         * XplatUIX11.cs: The timers are moved to the XEventQueue.
19789
19790 2006-08-19  Chris Toshok  <toshok@ximian.com>
19791
19792         * XplatUIX11.cs: after further communication with pdb, we get the
19793         best of both worlds.  SetZOrder working for un-Mapped windows, and
19794         no X errors for un-mapped windows.
19795
19796 2006-08-19  Chris Toshok  <toshok@ximian.com>
19797
19798         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
19799         as it was causing pdn toolbars to not have the correct stacking.
19800
19801 2006-08-18  Mike Kestner  <mkestner@novell.com> 
19802
19803         * ListView.cs : guard against negative ClientArea.Width in scrollbar
19804         calculation.  Not sure why control should ever be setting a negative
19805         width though.  Fixes #78931.
19806
19807 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19808
19809         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
19810         null items in ObjectCollection class.
19811         * ListBox.cs.: Likewise.
19812
19813 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
19814
19815         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
19816           as the base method in ThemeWin32Classic should work fine.
19817           Fixed bug #78607.
19818
19819 2006-08-18  Jackson Harper  <jackson@ximian.com>
19820
19821         * Binding.cs: When validating if the value entered doesn't convert
19822         properly reset to the old value.
19823         * RadioButton.cs: Don't fire click when we get focus.
19824
19825 2006-08-18  Jackson Harper  <jackson@ximian.com>
19826
19827         * FileDialog.cs: Paint the selection on the directory combobox the
19828         same way as on MS. 
19829
19830 2006-08-17  Jackson Harper  <jackson@ximian.com>
19831
19832         * ErrorProvider.cs: Don't allow the error control to be selected.
19833         * Control.cs: Don't send the SetFocus messages, the control
19834         activation will do this, and if we do it blindly here validation
19835         does not work.
19836
19837 2006-08-17  Jackson Harper  <jackson@ximian.com>
19838
19839         * Control.cs:
19840         * ContainerControl.cs: Make validation events fire in the correct
19841         order.  TODO: For some reason the first validation event is not
19842         getting fired.
19843
19844 2006-08-17  Mike Kestner  <mkestner@novell.com> 
19845
19846         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
19847
19848 2006-08-17  Mike Kestner  <mkestner@novell.com> 
19849
19850         * ComboBox.cs : implement scroll wheel support for popped-down
19851         state. Fixes #78945. 
19852
19853 2006-08-17  Jackson Harper  <jackson@ximian.com>
19854
19855         * TreeView.cs: Specify treeview actions (old patch that didn't get
19856         committed for some reason).
19857         - Don't let the mouse wheel scroll us too far.  Just want to make
19858         the bottom node visible, not scroll it all the ways to the top.
19859
19860 2006-08-17  Jackson Harper  <jackson@ximian.com>
19861
19862         * XplatUIX11.cs: Mouse wheel events go to the focused window.
19863
19864 2006-08-17  Mike Kestner  <mkestner@novell.com> 
19865
19866         * ComboBox.cs : don't do mouseover selection in simple mode.
19867
19868 2006-08-16  Jackson Harper  <jackson@ximian.com>
19869
19870         * Form.cs: Fire the closing events for all the mdi child windows
19871         when a window is closed.  If the cancel args are set to true, the
19872         main window still gets the event fired, but it doesn't not close.
19873         * MdiWindowManager.cs: Do this closing cleanup in a Closed
19874         handler, instead of when the button is clicked, so cancelling the
19875         close works correctly.
19876         * ComboBox.cs: Send the mouse down to the scrollbar.
19877
19878 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19879
19880         * ListBox.cs: When passing 'null' to SelectedItem,
19881         set SelectedIndex to -1, to unselect items. This is the
19882         observed behaviour in .Net.
19883
19884 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
19885
19886         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
19887           MS flags saying there won't be any. (fixes #78800)
19888         * Control.cs (HandleClick): Made virtual
19889
19890 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
19891
19892         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
19893           cultures. Fixed bug #78399.
19894
19895 2006-08-16  Jackson Harper  <jackson@ximian.com>
19896
19897         * Form.cs: Use the MdiClients MdiChildren property to access
19898         MdiChildren instead of creating the array from the child controls.
19899         * MdiClient.cs: Maintain a separate array of the mdi children, so
19900         that insertion order is maintained when the Z-order is changed.
19901
19902 2006-08-16  Mike Kestner  <mkestner@novell.com> 
19903
19904         * ListView.cs : add an ItemComparer and default to it for sorting.
19905         Fixes #79076, but sorting needs a complete overhaul to be compat with
19906         MS.
19907
19908 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
19909
19910         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
19911
19912 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
19913
19914         * Hwnd.cs (Mapped): Properly traverse the tree
19915
19916 2006-08-15  Chris Toshok  <toshok@ximian.com>
19917
19918         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
19919         pass manager.Current.GetType() to ParseData.  It has to be the
19920         property type.  So, hold off doing the ParseData until we're in
19921         SetPropertyValue where we know the type.  This fixes the crash in
19922         #78821 but the textbox is still empty.
19923
19924 2006-08-15  Chris Toshok  <toshok@ximian.com>
19925
19926         * DataGrid.cs:
19927         - when we're scrolling, only call Edit() again if the
19928         current cell is still unobscured. Fixes bug #78927.
19929         - when handling mousedown on a cell, ensure the cell is visible
19930         before calling Edit.
19931         - remove the properties from DataGridRow, and remove the
19932         DataGridParentRow class altogether.
19933         
19934
19935 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
19936
19937         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
19938           fire OnTextChanged by ourselves. There's no point calling base,
19939           we don't set the base value anywhere else. Fixes #78773.
19940
19941 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19942
19943         * ListBox.cs: Call CollectionChanged when modifying
19944         an item from Items indexer, to update the actual items
19945         in the list box.
19946
19947 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19948
19949         * PrintDialog.cs: Small fixes for focus and a pair of checks,
19950         to match .Net behaviour.
19951
19952 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
19953
19954         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
19955
19956 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
19957
19958         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
19959
19960 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
19961
19962         * MessageBox.cs: Prevent potential NRE exception.
19963         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
19964
19965 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
19966
19967         * MessageBox.cs: Calculate the owner of a messagebox, also make
19968           it topmost. Fixes #78753
19969
19970 2006-08-14  Chris Toshok  <toshok@ximian.com>
19971
19972         * XplatUIX11.cs: A couple of fixes so that metacity will let us
19973         programmatically move windows.  first, set the PPosition hint as
19974         well as the USPosition hint.  Second include some code from pdb
19975         that sets the window type to NORMAL when we set the transient for
19976         hint.  This is because, in the absence of a window type, metacity
19977         thinks any window with TransientFor set is a dialog, and refuses
19978         to let us move it programmatically.  fascists.
19979
19980 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
19981
19982         * XplatUIX11.cs: When setting normal hints, take into consideration
19983           an different hints previously set so we don't delete them (fixes #78866)
19984
19985 2006-08-12  Chris Toshok  <toshok@ximian.com>
19986
19987         * ToolBarButton.cs: make Layout return a boolean, if something to
19988         do with the button's layout changed.
19989
19990         * ToolBar.cs:
19991         - add another parameter to Redraw, @force, which all existing
19992           calls set to true.
19993         - make the Layout function return a boolean which is true if the
19994           layout has actually changed.  Redraw now uses this (and @force)
19995           to determine when to invalidate.  At present the only place
19996           where @force can be false is the call from OnResize, when
19997           background_image == null.  So, resizing a toolbar when the
19998           layout doesn't change results in no drawing.
19999
20000 2006-08-12  Chris Toshok  <toshok@ximian.com>
20001
20002         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
20003         the VScrollBar and HScrollbar reversed.  oops.
20004
20005         * DataGrid.cs: fix the logic that assigns sizes to the implicit
20006         scrollbars.  we were assigning them twice (once in
20007         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
20008         therefore causing two scrollbar resizes (and redraws?) to happen
20009         per grid resize.
20010
20011 2006-08-12  Chris Toshok  <toshok@ximian.com>
20012
20013         * ToolBarButton.cs: redraw the entire button if the theme tells us
20014         to.
20015
20016         * Theme.cs: add ToolBarInvalidateEntireButton.
20017
20018         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
20019         buttons, just the border.
20020
20021         * ThemeNice.cs: redraw the entire toolbar button since we need to
20022         draw the highlight image.
20023
20024         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
20025         we need to redraw the entire button (not just the border).
20026
20027 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
20028
20029         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
20030           for vertical bars. Fixes the mismatches shown by #78513
20031
20032 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
20033
20034         * FileDialog.cs: If a saved/remembered path doesn't exist
20035           anymore, fall back to "Desktop".
20036
20037 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
20038
20039         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
20040           parent. It's apparently legal to not have one
20041         * XplatUIX11.cs:
20042           - SetZOrder: Don't try to set Z-Order on an unmapped window
20043           - CreateWindow: 0,0 are legal coordinates for a window. don't move
20044             it unless the coordinates are negative
20045
20046 2006-08-10  Mike Kestner  <mkestner@novell.com>
20047
20048         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
20049         when setting to null per msdn docs.  Fixes #78854.
20050
20051 2006-08-10  Chris Toshok  <toshok@ximian.com>
20052
20053         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
20054         flickering by setting a clip rectangle on the Graphics when we
20055         need to redraw just a particular menuitem.  Also, rename "OnClick"
20056         to "OnMouseDown" to reflect what it actually is.
20057         
20058         * Form.cs: track the OnMouseDown change.
20059
20060 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
20061
20062         * CommonDialog.cs: Properly inherit the CreateParams from the form
20063           and only change what we need. Fixes #78865
20064
20065 2006-08-10  Chris Toshok  <toshok@ximian.com>
20066
20067         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
20068         flickering in flat mode (and most of the flickering in general) by
20069         only invalidating the button border (and not the entire rectangle)
20070         when the state changes.  A couple of cases still flicker:
20071         ToggleButtons, and the dropdown arrow case when the user mouse
20072         ups.
20073
20074 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
20075
20076         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
20077           for german keyboards. Numlock state shouldn't affect the behaviour
20078           of the Del key. Fixes bug #78291.
20079
20080 2006-08-10  Chris Toshok  <toshok@ximian.com>
20081
20082         * ListControl.cs: remove the items.Clear line from BindDataItems,
20083         as this is the first thing done by both subclasses in their
20084         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
20085         passed -1, refresh the list.  This gets databinding working when
20086         the datasource is set on the list before the datasource is
20087         populated (as in wf-apps/ReportBuilder.)
20088
20089         * ComboBox.cs: remove the argument to BindDataItems.  This call
20090         should really go away, and be initiated by the ListControl code.
20091
20092         * ListBox.cs: same.
20093
20094 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
20095
20096         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
20097           if no data is in the document when the control is displayed
20098
20099 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
20100
20101         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
20102           yes (fixes #78806)
20103         * TextControl.cs: 
20104           - PositionCaret: Allow positioning of caret but don't call methods 
20105             requiring a handle if the window isn't created yet
20106           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
20107           - owner_HandleCreated: Don't position the caret, just update it's 
20108             location. User might have already set a different position
20109
20110 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
20111
20112         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
20113           windows. Screws up the returned coordinates for child windows. 
20114           Fixes #78825. I'm hoping this doesn't break something, since the
20115           code was explicitly put in 8 months ago, but no bug was attached.
20116           Menus still seem to work properly.
20117
20118 2006-08-08  Chris Toshok  <toshok@ximian.com>
20119
20120         * DataGrid.cs: make BeginInit/EndInit actually do what they're
20121         supposed to do - delay data binding until the EndInit call.  Also,
20122         make the table style collection's CollectionChangeAction.Refresh
20123         work properly.
20124
20125         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
20126         (with action = Refresh) when a consituent table's MappingName is
20127         changed.
20128
20129 2006-08-08  Chris Toshok  <toshok@ximian.com>
20130
20131         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
20132         Invalidate, since changing the text can change the size of the all
20133         toolbar buttons.
20134
20135 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
20136
20137         * Form.cs (AddOwnedForm): Still need to add the form to our listif
20138           we don't have it yet
20139
20140 2006-08-08  Chris Toshok  <toshok@ximian.com>
20141
20142         * PrintControllerWithStatusDialog.cs: don't .Close() the status
20143         dialog, as this causes X errors later on, since we actually
20144         destroy the window.  Instead, .Hide() it.
20145
20146 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
20147
20148         * ComboBox.cs: Added focus reflection for popup window
20149         * XplatUIX11.cs: 
20150           - Removed transient setting for non-app windows for now, not sure it
20151             was needed
20152           - Fixed logic checking if we have captions when deciding 
20153             override_redirect, WS_CAPTION is two bits and a 0 check was not
20154             sufficient
20155           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
20156             complicated
20157         * Form.cs: 
20158           - AddOwnedForm: Don't just add the form to the list, call the property
20159             to ensure the driver is informed about the ownership as well
20160           - CreateHandle: Set the TopMost status in the driver if we have an owner
20161         * XplatUI.cs: Fixed debug statement
20162
20163 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
20164         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
20165           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
20166           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
20167           TrackBarRenderer.cs: Make constructor private.
20168         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
20169         * ProfessionalColorTable.cs: Make properties virtual.
20170
20171 2006-08-06  Duncan Mak  <duncan@novell.com>
20172
20173         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
20174         is not changing.
20175
20176 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
20177         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
20178           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
20179           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
20180           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
20181           Initial import of new 2.0 classes.
20182
20183 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
20184         * Application.cs: Add 2.0 VisualStyles properties.
20185
20186 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
20187         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
20188           XplatUIX11.cs: Create property to allow access to existing private
20189           variable "themes_enabled"
20190
20191 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20192
20193         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
20194         file size, as otherwise our class libraries fail using windows. Fixes
20195         bug #78759.
20196
20197 2006-08-04  Jackson Harper  <jackson@ximian.com>
20198
20199         * Form.cs:
20200         * XplatUIX11.cs: Move the toolwindow window manager creation into
20201         the X11 driver, this way on win32 we can let windows create/handle
20202         the toolwindows.
20203
20204 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20205
20206         * PrintDialog.cs: Remove some redundant checks, add some others,
20207         clean some code, and move the focus to the text boxes when the
20208         values are incorrect.
20209
20210 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
20211
20212         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
20213
20214 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
20215
20216         * NumericUpDown.cs: Setting the Minimum and Maximum is now
20217           handled correctly. Fixes bug #79001.
20218
20219 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20220
20221         * PrintDialog.cs: The "Copies" numeric up down must have
20222         set the Minimum property to 1; only if the value is bigger
20223         than 1, activate "Collate" check box. This is the behaviour of .Net.
20224         Also modify the Document elements only if it is not null.
20225
20226 2006-08-03  Jackson Harper  <jackson@ximian.com>
20227
20228         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
20229         length. (We have a larger array then actual node count).
20230                 
20231 2006-08-03  Jackson Harper  <jackson@ximian.com>
20232
20233         * ComboBox.cs: Don't show selection by default.
20234         - The SelectAll isn't needed here, since the focus code should do
20235         that
20236         - DDL style lists to manual selection drawing, so when they
20237         get/lose focus they have to invalidate.
20238
20239 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
20240
20241         * TextBoxBase.cs: Don't always show all selections by default.
20242
20243 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
20244         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
20245           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
20246           Fixed various typos.
20247
20248 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
20249
20250         * Control.cs: Removing the controls in a ControlCollection with
20251           Clear now hides the controls as expected. Fixes bug #78804. 
20252
20253 2006-08-03  Jackson Harper  <jackson@ximian.com>
20254
20255         * Control.cs: Revert previous focus patch, it breaks reflector.
20256
20257 2006-08-03  Jackson Harper  <jackson@ximian.com>
20258
20259         * ComboBox.cs: Cleanup selection and focus with the combobox.
20260         This also eliminates some duplicated keyboard code, since now
20261         everything is handled by the main class.
20262         - Make list selection work on mouse up instead of down, to match
20263         MS.
20264
20265 2006-08-02  Jackson Harper  <jackson@ximian.com>
20266
20267         * Control.cs: Setting focus needs to go through the whole
20268         selection mechanism.
20269
20270 2006-08-02  Chris Toshok  <toshok@ximian.com>
20271
20272         * PrintPreviewDialog.cs: change MinimumSize to use
20273         base.MinimumSize so it works.
20274
20275 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
20276
20277         * TextControl.cs:
20278           - UpdateCaret: Added sanity check in case caret isn't defined yet
20279           - Line.Delete: Now updating selection and caret markers if we're
20280             transfering a node (Properly fixes #78323)
20281           - SetSelectionEnd: Added sanity check
20282         * TextBoxBase.cs: Removed broken attempt to fix #78323
20283
20284 2006-08-01  Chris Toshok  <toshok@ximian.com>
20285
20286         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
20287         Close() call is handled in Form, not here.
20288
20289 2006-08-01  Chris Toshok  <toshok@ximian.com>
20290
20291         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
20292         layout/rendering.
20293
20294         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
20295         for sizes < 100% zoom.  The code now aggressively attempts to keep
20296         from calling document.Print (), and tries not to use the scaling
20297         g.DrawImage whenever possible (it still does if you scale to >
20298         100%, since usually that involves huge images).
20299
20300         * PrintPreviewControl.cs: hook up the close button.
20301
20302 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
20303         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
20304           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
20305           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
20306           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
20307           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
20308           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
20309           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
20310           Removed [Serializable] for 2.0 Event Handlers.
20311
20312 2006-07-31  Jackson Harper  <jackson@ximian.com>
20313
20314         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
20315         * TextControl.cs: Uncomment out the body of this method.
20316
20317 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
20318
20319         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
20320           standard cursors.
20321
20322 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
20323
20324         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
20325           that embed TextBox and need selections visible even if textbox is not
20326           focused to enforce that behaviour.
20327         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
20328           selection drawing
20329
20330 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
20331
20332         * TextControl.cs:
20333           - Added new SetSelectionStart/SetSelectionEnd overloads
20334           - Fixed viewport width assignment to be accurate
20335           - Adjusted alignment line shift calculations to allow cursor on right
20336             aligned lines to be always visible at the right border (like MS)
20337         * TextBoxBase.cs:
20338           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
20339           - TextBoxBase_SizeChanged: recalculating canvas on size changes
20340           - CalculateScrollBars: Use ViewPort size instead of window size, to
20341             properly consider space occupied by the border and scrollbars 
20342             (Fixes #78661)
20343           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
20344             calculations; no longer leaves artifacts
20345           - CaretMoved: Adjusted window scrolling to match MS and fixed several
20346             calculation bugs (Still missing right/center align calculations)
20347
20348 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
20349
20350         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
20351           use of both scroll rect and clip rect, as they do the same.
20352
20353 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
20354
20355         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
20356           in the event handler (fixes #78912)
20357
20358 2006-07-31  Chris Toshok  <toshok@ximian.com>
20359
20360         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
20361         grid.ListManager.Count, since grid.ListManager might be null.
20362         This of course begs the question "why are we drawing rows for a
20363         grid with no list manager (and therefor no rows)?"  Fixes the
20364         crash in bug #78929.
20365
20366 2006-07-31  Chris Toshok  <toshok@ximian.com>
20367
20368         * RelatedPropertyManager.cs: Don't always chain up to the parent
20369         ctor.  instead, call SetDataSource if the parent's position is !=
20370         -1.  Fixes the crash in #78822.
20371
20372 2006-07-31  Chris Toshok  <toshok@ximian.com>
20373
20374         * DataGrid.cs (get_ListManager): use field instead of property
20375         accessors for datasource and datamember.
20376         (RowsCount): make internal again.
20377         (OnMouseDown): end edits before resizing columns/rows.
20378         (OnMouseUp): restart edits after resizing columns/rows.
20379
20380 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
20381
20382         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
20383           This fixes the situation where the last set cursor is displayed
20384           whenever the mouse is over scrollbars.
20385
20386 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20387
20388         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
20389         Document properties, as well as initial values.
20390
20391 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
20392
20393         * XplatUIWin32.cs (SetBorderStyle): Setting both border
20394           and ClientEdge results in a 3-pixel border, which is
20395           wrong.
20396
20397 2006-07-28  Jackson Harper  <jackson@ximian.com>
20398
20399         * TreeNodeCollection.cs: Fix the clear method.
20400         - Fix the Shrink also
20401
20402 2006-07-27  Jackson Harper  <jackson@ximian.com>
20403
20404         * TreeView.cs: Make sure the visible order is computed when we
20405         attempt to size the scrollbars (for trees that mess with the
20406         scrolling when they shouldn't.
20407         - Make sure to give the scrollbars valid values.
20408
20409 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
20410
20411         * XplatUIX11.cs: Move motion compression code to where it
20412           has less performance impact
20413
20414 2006-07-26  Jackson Harper  <jackson@ximian.com>
20415
20416         * UpDownBase.cs: When the control is selected make the child
20417         controls non selectable, so that a click on them won't do a
20418         focus/unfocus cycle.
20419         - Don't give focus to the text box when the spinner is selected.
20420         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
20421
20422 2006-07-26  Chris Toshok  <toshok@ximian.com>
20423
20424         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
20425         satisfied with this solution.  If the bitmaps are small, we should
20426         just cache them in the PrintPreviewDialog and draw them here.
20427         Also, the layout is broken for the 2-up and 3-up cases.
20428
20429         * Theme.cs: add PrintPReviewControlPaint.
20430
20431         * PrintPreviewDialog.cs: first pass implementation.
20432
20433         * PrintPreviewControl.cs: first pass implementation.  No
20434         scrollbars yet.
20435
20436         * PrintDialog.cs: only validate fields if that particular portion
20437         of the UI is enabled.  Also, set the document's controller to a
20438         PrintControllerWithStatusDialog wrapping the document's print
20439         controller.
20440
20441         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
20442         bring up a SaveFileDialog (i hope we don't want to match the
20443         behavior of the crappy windows file entry) and set the
20444         PrinterSettings.PrintFileName accordingly.
20445
20446 2006-07-26  Jackson Harper  <jackson@ximian.com>
20447
20448         * ContainerControl.cs: Add a field that disables auto selecting
20449         the next control in a container when the container is activated.
20450         * UpDownBase.cs: Don't select the text box when the up down is
20451         selected.
20452
20453 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
20454
20455         * XEventQueue.cs: Added methods for peeking (used for compression
20456           of successive events)
20457         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
20458           mouse move events (fixes #78732)
20459
20460 2006-07-25  Jackson Harper  <jackson@ximian.com>
20461
20462         * UpDownBase.cs: Use an internal class for the textbox so that we
20463         can control focus.  the updown control should always have focus,
20464         if either the text area or the buttons are clicked.
20465         - Send the key messages to the textbox, since it never actually
20466         has focus
20467         - Activate and decativate the textbox caret.
20468
20469 2006-07-24  Jackson Harper  <jackson@ximian.com>
20470
20471         * Control.cs: Use the directed select when selecting a control,
20472         this way the container controls override will get called and the
20473         whole ActiveControl chain will get triggered.  TODO: probably need
20474         to make sure this gets done everywhere instead of the old
20475         Select(Control).
20476         * ContainerControl.cs: Implement the directed Select method to
20477         find and activate the correct child control.    
20478         
20479 2006-07-22  Mike Kestner  <mkestner@novell.com>
20480
20481         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
20482         menu handling code so that clicks without a grab work too.
20483         [Fixes #78914]
20484
20485 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
20486
20487         * FileDialog.cs: Enable the BackButton when dirstack has one element.
20488           Added some small optimizations.
20489
20490 2006-07-21  Matt Hargett  <matt@use.net>
20491
20492         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
20493
20494 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
20495
20496         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
20497           tests pass and match MS in some strange border cases.
20498
20499 2006-07-21  Chris Toshok  <toshok@ximian.com>
20500
20501         * ThemeWin32Classic.cs: handle drawing of the relation links and
20502         parent row buttons.
20503
20504         * Theme.cs: change args to DataGridPaintParentRow.
20505
20506         * DataGrid.cs: Don't use controls for the relation links and
20507         parent buttons, so we have to handle all their interactions in
20508         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
20509         when we're navigating through child tables, so we can reinstate
20510         selection, expanded state, current cell, etc.
20511
20512 2006-07-20  Chris Toshok  <toshok@ximian.com>
20513
20514         * ToolBar.cs: When we redraw a button, for whatever reason,
20515         there's no reason to redraw the entire toolbar.  Also, don't call
20516         Control.Refresh from within Redraw, as it's much heavier than
20517         Invalidate (which is really what we want).
20518
20519 2006-07-20  Chris Toshok  <toshok@ximian.com>
20520
20521         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
20522         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
20523         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
20524         traces from within a debug IBindingList datasource
20525         (in mono/winforms/datagrid) for *days*, I've finally gotten things
20526         to work in a similar fashion.
20527
20528 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20529
20530         * ListBox.cs: Don't call Sort () when setting 
20531         the Sorted property to false (avoid an unnecessary sort).
20532
20533 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20534
20535         * ListControl.cs: DataSource should throw an ArgumentException
20536         instead of a normal exception when the argument is not of the 
20537         correct type.
20538
20539 2006-07-20  Mike Kestner  <mkestner@novell.com>
20540
20541         * Control.cs: add InternalPreProcessMessage to allow us to steal
20542         key events before MWF gets its paws on them.  Adapted from a
20543         suggestion by eno.
20544         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
20545         up/down/left/right navigation. Override the new internal control
20546         method to steal the events since they never make it to WndProc.
20547         * ToolBarButton.cs: don't worry about pushed when setting hilight
20548         since the drawing code prefers pushed to hilight. Invalidate on 
20549         Hilight changes. Fixes #78547 and #78525.
20550
20551 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
20552
20553         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
20554           the canvas size. Fixes #78868
20555
20556 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
20557
20558         * Splitter.cs: Track requested split position until first layout
20559           is performed. Fixes #78871
20560
20561 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
20562
20563         * Application.cs: Removed code that forces 1.x for the version
20564           number if the version started with 0. Not sure why that code was
20565           there and I couldn't find any bugs that indicated we needed it.
20566           Fixes #78869
20567
20568 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
20569
20570         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
20571           ResetDefaults(), just write some output to the console until it's
20572           implemented. Fixes bug #78907 for now. Eliminated two warnings.
20573
20574 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
20575
20576         * PropertyGridView.cs: set StartPosition of drop down forms
20577         so they appear in correct initial spot.  Fixes #78190.
20578
20579 2006-07-19  Mike Kestner  <mkestner@novell.com>
20580
20581         * ThemeWin32Classic.cs: use parent background color when drawing
20582         flat toolbars.  Restructure the conditionals to make sure non-flat
20583         non-Divider toolbars are filled too.  Fixes #78837.
20584
20585 2006-07-19  Mike Kestner  <mkestner@novell.com>
20586
20587         * ListBox.cs: Sort on collection changes even if the handle
20588         isn't created yet.  Fixes #78813.
20589
20590 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20591
20592         * ListControl.cs: DisplayMember should never be null,
20593         and now we assign String.Empty when null is passed to it (this
20594         is the .Net way).
20595
20596 2006-07-17  Mike Kestner  <mkestner@novell.com>
20597
20598         * ListViewItem.cs: restructure Font and subitem Font handling 
20599         to hold a specific font and refer back to owner on null.
20600         Fixes #78761.
20601
20602 2006-07-17  Mike Kestner  <mkestner@novell.com>
20603
20604         * ToolBar.cs: bandaid for side-effect of previous patch which was
20605         discarding explicit heights for non-AutoSize toolbars.  Need to
20606         extend my format tester to deal with AutoSize=false. Fixes #78864.
20607
20608 2006-07-15  Jackson Harper  <jackson@ximian.com>
20609
20610         * LabelEditTextBox.cs:
20611         * TreeView.cs: Use a new LabelEdit class for node editing, this
20612         class automatically 'closes' itself when it gets the enter key or
20613         loses focus.
20614         - Use the client rectangle when setting the trees scrollbars, so
20615         border style is taken into account.
20616         
20617 2006-07-14  Jackson Harper  <jackson@ximian.com>
20618
20619         * TreeNode.cs:
20620         * TreeView.cs: Make the editing work similar to MSs, firing the
20621         events correctly and ending edits correctly.
20622
20623 2006-07-14  Mike Kestner  <mkestner@novell.com>
20624
20625         * ToolBarButton.cs:
20626         * ToolBar.cs: layout restructuring and redraw enhancements to support
20627         formatting changes gracefully, like setting TextAlign, ImageList, 
20628         ButtonSize, and Appearance.  Handles explicit button sizing quirks
20629         of the MS controls.  Things like flat toolbars ignoring button size
20630         but becoming constant sized at the largest button's size.  Normal
20631         toolbars with an image set cannot be shrunk smaller than the image,
20632         but text can be clipped/ignored.
20633         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
20634         is zero.  Seems like DrawString should be smart enough to not put
20635         anything on screen though. Also trim labels and ellipsize at the char
20636         boundary, not word.
20637         Fixes #78711 and #78483.
20638
20639 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
20640
20641         * FolderBrowserDialog.cs: Disable "New Folder" button and
20642           "New Folder" contextmenu menuitem if a folder like "My Computer"
20643           is selected.
20644
20645 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
20646
20647         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
20648         * FolderBrowserDialog.cs:
20649           - Use MWFConfig to store and read size and position settings
20650           - Added code to create a new folder (button or context menu).
20651             Use TreeView labeledit to change the name of the new folder.
20652
20653 2006-07-14  Jackson Harper  <jackson@ximian.com>
20654
20655         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
20656         when the tree is scrolled we end editing.
20657
20658 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
20659
20660         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
20661           Down arrows
20662
20663 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
20664
20665         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
20666         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
20667         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
20668         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
20669         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
20670         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
20671         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
20672         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
20673         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
20674         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
20675         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
20676         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
20677         ListViewItemSelectionChangedEventHandler.cs,
20678         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
20679         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
20680         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
20681         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
20682         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
20683         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
20684         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
20685         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
20686         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
20687         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
20688         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
20689         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
20690         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
20691         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
20692         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
20693         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
20694         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
20695         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
20696         WebBrowserNavigatingEventHandler.cs, 
20697         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
20698
20699 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
20700
20701         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
20702         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
20703         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
20704         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
20705         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
20706         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
20707         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
20708         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
20709         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
20710         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
20711         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
20712         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
20713         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
20714         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
20715         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
20716         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
20717         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
20718         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
20719         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
20720         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
20721         ListViewItemStates.cs, MaskFormat.cs: Added
20722
20723 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
20724
20725         * PropertyGridView.cs: Fix keyboard navigation of drop down.
20726         Patch from eno for bug 78558.
20727         
20728 2006-07-13  Jackson Harper  <jackson@ximian.com>
20729
20730         * TreeView.cs: When an edit is finished make sure that the
20731         selected node is visible.
20732         - When setting the top/bottom use the scrollbars is_visible, so
20733         everything will be set correctly even if the tree isn't visible
20734         yet.
20735
20736 2006-07-13  Jackson Harper  <jackson@ximian.com>
20737
20738         * ComboBox.cs: Revert the item->index part of my previous patch.
20739         * TreeView.cs: Use LostFocus instead of Leave for detecting when
20740         the edit box has lost focus (duh).
20741         - Just make the edit box not visible when we get return, that will
20742         take the focus, which will call EndEdit
20743         * TreeNode.cs When we start editing, notify the treeview.
20744
20745 2006-07-12  Jackson Harper  <jackson@ximian.com>
20746
20747         * ComboBox.cs: Clear out old items before setting the item list.
20748         This prevents databound controls from having their items added
20749         twice.
20750         - Switch the combobox to use indices whereever possible instead of
20751         using Item's.  This allows usto navigate through lists that have
20752         more then one item with the same string value (ie a, b, b, a).
20753         - Scroll the listboxes scrollbar when a non visible item is
20754         highlighted
20755         - Allow keypress to cycle through all the possible values. For
20756         example if you have b1, b2, b3 and hold down the B key all the
20757         values will be cycled through.
20758         
20759 2006-07-12  Jackson Harper  <jackson@ximian.com>
20760
20761         * TextBoxBase.cs:
20762         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
20763         this using the internal methods.
20764         * Control.cs: Add OnGotFocusInternal.  A new method that allows
20765         controls to "override" OnGotFocus and change focus behavior if
20766         needed.
20767         - Same thing for LostFocus
20768         * ComboBox.cs: Pass off focus to the text control properly.
20769
20770 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
20771
20772         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
20773         * FolderBrowserDialog.cs: Almost a complete rewrite.
20774           - Better support for Environment.Specialfolders
20775           - Added support for MWFVFS
20776           - Made setting SelectedPath work
20777
20778 2006-07-12  Jackson Harper  <jackson@ximian.com>
20779
20780         * Control.cs: Optimze getting all the controls.
20781
20782 2006-07-11  Jackson Harper  <jackson@ximian.com>
20783
20784         * ContainerControl.cs: Override SETFOCUS in the container control,
20785         so that it is not selected on mouse click.
20786
20787 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
20788
20789         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
20790           Hopefully we will have a better way once all of focus is complete.
20791
20792 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
20793
20794         * ThemeWin32Classic.cs: Commented out some debug code and fixed
20795           a compile error with csc.
20796
20797 2006-07-11  Jackson Harper  <jackson@ximian.com>
20798
20799         * Control.cs: When hiding a control only select the next control
20800         if the current control was focused.
20801         - Don't handle enter/leave when setting/killing focus, this is
20802         done by the container control.
20803         - Remove is_selected, it's not needed anymore.
20804         - Add utility methods for selecting a child control, and for
20805         firing the Enter/Leave events.
20806         * ContainerControl.cs: When a control is activated fire the
20807         enter/leave events.
20808         - Don't wrap when processing the tab key, so that focus can be
20809         moved outside of the container.
20810         - Use the correct active control
20811
20812 2006-07-11  Jackson Harper  <jackson@ximian.com>
20813
20814         * ComboBox.cs: Remove some debug code that was blinding me.
20815         * UpDownBase.cs: These controls actually aren't implicit, they are
20816         visible to the user.
20817
20818 2006-07-10  Chris Toshok  <toshok@ximian.com>
20819
20820         * DataGrid.cs: move back to the is_adding boolean field.  god i
20821         hate this is_editing/is_adding/is_changing stuff.
20822
20823 2006-07-10  Chris Toshok  <toshok@ximian.com>
20824
20825         * DataGridTableStyle.cs: just check if the property type is bool.
20826         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
20827         Don't use CanRenderType.
20828
20829         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
20830         if our text == NullText.  Remove CanRenderType.
20831
20832         * DataGridBoolColumn.cs: nuke CanRenderType.
20833
20834         * DataGrid.cs: reenable some code to end the current edit inside
20835         of set_CurrentCell.  This fixes the other 1.1.16 regression.
20836         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
20837         Also, remove the visible_row_count arg from CalcRowHeaders, since
20838         we don't need to worry about the actual height of the area.
20839
20840 2006-07-10  Chris Toshok  <toshok@ximian.com>
20841
20842         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
20843         mode, just return.
20844
20845         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
20846         the real sense of the IsInEditOrNavigateMode property (true =
20847         navigate, false = edit).  Also, update OnKeyPress to reflect this.
20848
20849         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
20850         column style exists, we still need to set its property descriptor
20851         to match up with our list manager.
20852
20853 2006-07-10  Chris Toshok  <toshok@ximian.com>
20854
20855         * ThemeWin32Classic.cs: implement the new row/header painting
20856         approach.  The parent row painting will likely go away and
20857         replaced with label controls, but the rest seems to work ok (and
20858         efficiently).
20859
20860         * Theme.cs: change the way we draw datagrid rows.  we don't draw
20861         the row headers as a block now.  Instead we draw them in the
20862         normal draw-row loop.  Add some calls for drawing parent rows and
20863         relation rows.
20864
20865         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
20866         a default table style.  Set the defaults from ThemeEngine.Current,
20867         not SystemColors.  Fix lots of misc issues with property setters.
20868
20869         * DataGrid.cs: move loads of style information out of this class
20870         as it's being duplicated with DataGridTableStyle.  keep track of a
20871         special DataGridTableStyle for the properties we used to mirror
20872         here.  Switch all the style properties to access this table style
20873         instead of instance fields of this class.  Also add a internal
20874         class to represent parent rows (more needs to be stored here, like
20875         the selection state from the parent table, as well as the
20876         expansion state.)  Also, for datasources with relations, do the
20877         right thing for collapse/expand, and add support for the
20878         navigation/parent row buttons.
20879
20880         Lastly, fix the crash in the 1.1.16 build.
20881
20882         * GridTableStylesCollection.cs: make the explicit interface
20883         implementations call the class's methods as opposed to duplicating
20884         them.
20885
20886         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
20887         0 so the text doesn't jump around when we move the cursor.
20888
20889 2006-07-10  Jackson Harper  <jackson@ximian.com>
20890
20891         * TextBoxBase.cs:
20892         * ListBox.cs: Match MS's ToString (this makes debugging focus
20893         stuff infinitely easier).
20894
20895 2006-07-10  Jackson Harper  <jackson@ximian.com>
20896
20897         * Control.cs (SelectNextControl): When checking the control's
20898         parent use this instead of ctrl.parent so that null can be passed
20899         to SelectNextControl. (I have unit tests for this).
20900         - Remove unused var.
20901
20902 2006-07-10  Chris Toshok  <toshok@ximian.com>
20903
20904         * CurrencyManager.cs: correct one regression, the removal of the
20905         finalType field.  Also, add a MonoTODO on CanAddRows, implement
20906         Refresh() correctly, and fix some event emission in
20907         ListChangedHandler.
20908
20909 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
20910
20911         * FileDialog.cs: Don't use brackets for new folders if they exist
20912           under *nix. Instead use -(number of existing folders +1).
20913
20914 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
20915
20916         * FileDialog.cs:
20917           - Fixed really nasty bug #78771
20918           - Don't block the whole GUI when reading directories with a lot of
20919             entries. Use an other thread instead and call BeginInvoke to
20920             update the ListView in MWFFileView
20921
20922 2006-07-07  Chris Toshok  <toshok@ximian.com>
20923
20924         * Control.cs (Dispose): release any Capture when disposing.
20925
20926 2006-07-07  Chris Toshok  <toshok@ximian.com>
20927
20928         * LinkLabel.cs (Select): if we chain up to the parent, set
20929         focused_index to -1 so we'll search for the first available link
20930         the next time the user tabs into us.  Also, if the direction is
20931         backward and focused_index == -1, start the search from the last
20932         element.
20933
20934 2006-07-07  Chris Toshok  <toshok@ximian.com>
20935
20936         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
20937         is beyond the end of the text, don't do anything.
20938         (CreateLinkPieces): set our ControlStyles.Selectable based on
20939         whether or not we have any links.
20940         (Link.Invalidate): use a loop instead of foreach.
20941         (Link.set_Start): null out owner.sorted_links so it'll be
20942         recreated by CreateLinkPieces.
20943
20944 2006-07-06  Chris Toshok  <toshok@ximian.com>
20945
20946         * LinkLabel.cs: revert the SetStyle change.
20947
20948 2006-07-06  Chris Toshok  <toshok@ximian.com>
20949
20950         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
20951         (OnEnableChanged): s/Refresh/Invalidate
20952         (OnGotFocus): if we have a focused index already, refocus it (so
20953         if we mouse out/in to the window it'll focus the right link).
20954         (OnKeyDown): move the tab handling out of here.
20955         (OnLostFocus): don't set focused_index to -1, so we can refocus it
20956         when we lose focus.
20957         (OnMouseDown): don't Capture here - Control handles it.  Also,
20958         focus the active link.
20959         (OnMouseUp): don't deal with Capture.
20960         (OnPaintBackgroundInternal): remove.
20961         (OnTextAlignChanged): CreateLinkPieces before calling the
20962         superclass's method.
20963         (OnTextChanged): call CreateLinkPieces before calling superclass's
20964         method.
20965         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
20966         move around.
20967         (Select): implement this, moving the selection between different
20968         links, and call parent.SelectNextControl if we don't have another
20969         link to focus in the given direction.
20970         (CreateLinkPieces): call Invalidate instead of Refresh.
20971         
20972 2006-07-06  Chris Toshok  <toshok@ximian.com>
20973
20974         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
20975         new LinkLabel internals.
20976
20977         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
20978         over pieces looking for active/focused/etc links.  also, deal with
20979         runs of text (and links) with embedded \n's in them, and use
20980         MeasureCharacterRanges instead of MeasureString to figure out the
20981         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
20982         two-step.
20983
20984 2006-07-04  Jackson Harper  <jackson@ximian.com>
20985
20986         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
20987         XKB or key auto repeat, do it manually.  Without key auto repeat,
20988         when a key is held down we get key press, key release, key press,
20989         key release, ... with auto repeat we get key press, key press, key
20990         press ..., and then a release when the key is actually released.
20991
20992 2006-07-03  Jackson Harper  <jackson@ximian.com>
20993
20994         * TabControl.cs:
20995         * ThemeWin32Classic.cs: Tabs do not obey normal background color
20996         rules, they are always control color regardless of the background
20997         color.
20998
20999 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
21000
21001         * FileDialog.cs: Added internal class MWFConfig.
21002           Removed Registry support and replaced it with support for the new
21003           MWFConfig class. See MWFConfig comments for more information.
21004
21005 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
21006
21007         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
21008           rectangle. Added some patches from eno from bug #78490 and fixed
21009           the arrow position for small up and down CPDrawScrollButtons.
21010
21011 2006-06-30  Jackson Harper  <jackson@ximian.com>
21012
21013         * InternalWindowManager.cs: Remove some debug code.
21014         * Form.cs: When an MdiParent is set to null, the window is
21015         "detatched" and becomes a normal window.
21016         * MdiClient.cs: Don't bring the new child form to the front until
21017         it is activated (setting it as active does this), this makes the
21018         previously active forms titlebar get redrawn as inactive.
21019
21020 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
21021
21022         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
21023           with later controls
21024
21025 2006-06-29  Mike Kestner  <mkestner@novell.com>
21026
21027         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
21028         arrow in keynav state.  Fixes #78682.
21029
21030 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
21031
21032         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
21033           order (fixes #78393)
21034
21035 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
21036
21037         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
21038           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
21039           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
21040           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
21041           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
21042           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
21043           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
21044           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
21045           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
21046           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
21047           enumerations (FlagsAttribute, SerializableAttribute, added/removed
21048           values)
21049
21050 2006-06-28  Mike Kestner  <mkestner@novell.com>
21051
21052         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
21053
21054 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
21055
21056         * PropertyGrid.cs,
21057           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
21058           item lines from other area (It also makes BackColor consistent and
21059           compatible with .NET). Fixed bug #78564.
21060
21061 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
21062
21063         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
21064         Patch from Eno for #78555.
21065
21066 2006-06-27  Chris Toshok  <toshok@ximian.com>
21067
21068         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
21069
21070         * DataGridColumnStyle.cs: same.
21071
21072         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
21073         
21074         * DataGridDrawingLogic.cs: nuke.
21075
21076 2006-06-27  Chris Toshok  <toshok@ximian.com>
21077
21078         * DataGridTableStyle.cs: clean up the constructors, and build the
21079         list of child relations for this table.  I have no idea if this is
21080         where we should be doing it (it probably isn't), but since we're
21081         already iterating over the properties..
21082
21083         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
21084         struct and array for keeping track of row information, similar to
21085         what's shown in a hack on
21086         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
21087
21088         * Theme.cs: be consistent about the naming of DataGrid methods,
21089         prefering ColumnWidths and RowHeights over columnsWidths and
21090         RowsHeights.
21091
21092         * ThemeWin32Classic.cs: same, and also add support for variable
21093         sized rows (and the +/- expansion icons for related rows).
21094
21095 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
21096
21097         * TextBoxBase.cs: Applied Eno's patch from #78660
21098
21099 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
21100
21101         * Form.cs (ScaleCore): We don't want to scale our form if it's
21102           state is minimized or maximized, but we still need to scale our
21103           child windows. Also, added try/finally block to ensure layout
21104           gets reset (Fixes #78697)
21105
21106 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
21107
21108         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
21109
21110 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
21111
21112         * Form.cs: Fixed c+p error and added check to resize form if minimum
21113           size is bigger than current size (Fixes #78709)
21114
21115 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
21116
21117         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
21118
21119 2006-06-26  Mike Kestner  <mkestner@novell.com>
21120
21121         * ComboBox.cs: only do Keypress handling in the combo when there  
21122         are items in the collection. Fixes #78710.
21123
21124 2006-06-26  Chris Toshok  <toshok@ximian.com>
21125
21126         * Binding.cs: make this work bi-directionally.  also, clear up
21127         other mixups between Push/Pull Data (e.g. we're supposed to pull
21128         data when validating).
21129
21130         * BindingManagerBase.cs: trim some fully qualified collection
21131         types.
21132
21133         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
21134
21135 2006-06-23  Chris Toshok  <toshok@ximian.com>
21136
21137         * PropertyManager.cs: It appears (according to the unit tests)
21138         that PropertyManager doesn't use
21139         PropertyDescriptor.AddValueChanged to track propery value changes
21140         in its datasource, but uses the same scheme as Binding, where it
21141         looks for a <Property>Changed event and binds to it.
21142
21143         Also, according to the docs, IsSuspended always returns false for
21144         a property manager with a non-null datasource.
21145
21146 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
21147
21148         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
21149           need to update the actual DialogResult. (Fixes #78613)
21150
21151 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
21152
21153         * Form.cs (ShowDialog): Release any captures before running the
21154           new message pump (fixes #78680)
21155
21156 2006-06-22  Mike Kestner  <mkestner@novell.com>
21157
21158         * ListView.cs: Layout column widths properly in details mode even 
21159         if HeaderStyle.None is set.  Fixes #78691.
21160
21161 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
21162
21163         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
21164
21165 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
21166
21167         * Control.cs (ContainsFocus): Using new driver method to get focused
21168           window, instead of trying to use internal tracking var, which can
21169           recursion issues (Fixes #78685)
21170         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
21171           XplatUIWin32.cs: Added GetFocus method to return focused window
21172
21173 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21174
21175         * ColorDialog.cs: when the mouse button is pressed inside the color
21176         matrix, don't let the cursor move out of it until the button is
21177         released, which is the behavior on windows. Changed 'colours' by
21178         'colors' to use the same word consistently.
21179
21180 2006-06-21  Chris Toshok  <toshok@ximian.com>
21181
21182         * DataGrid.cs: add in some basic navigation stuff (navigating to a
21183         child relation and back, using a stack).  Also, remove
21184         GetDataSource and the code that calls it - it's not needed.  Also,
21185         track CurrencyManager.ListName's removal.
21186
21187 2006-06-21  Chris Toshok  <toshok@ximian.com>
21188
21189         * CurrencyManager.cs: push some of the original type checking from
21190         BindingContext.CreateBindingManager to here, and remove some of
21191         the finalType stuff.  Need more tests to make sure I've got the
21192         ListName part right, and we might need more in SetDataSource.
21193
21194         * PropertyManager.cs: add a ctor that takes just the datasource,
21195         and no property name.  Make SetDataSource work with a null
21196         property_name, and make Current return the data_source if the
21197         property descriptor is null.  this makes 'string foo = "hi";
21198         BindingContext[foo].Current' return "hi" as it should.
21199
21200         * RelatedCurrencyManager.cs: make this code more generic - there's
21201         no reason the parent manager has to be CurrencyManager, and
21202         there's no reason to pass the DataRelation.  It suffices to use a
21203         BindingManagerBase and PropetyDescriptor.
21204
21205         * RelatedPropertyManager.cs: make a similar change here.
21206         
21207         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
21208         flower I knew it could be.
21209
21210 2006-06-20  Chris Toshok  <toshok@ximian.com>
21211
21212         * PropertyManager.cs: the PropertyChangedHandler is invoked when
21213         data in the source has changed and we need to update the control,
21214         so s/PullData/PushData.
21215
21216         * CurrencyManager.cs: Refresh is meant to update the control from
21217         data in the datasource.  So, s/PullData/PushData.
21218
21219         * BindingContext.cs: add more ugliness (we weren't handling the
21220         case where data_source = DataTable and data_member = column_name).
21221
21222         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
21223         from the perspective of the datasource.  PullData pulls from the
21224         control, PushData pushes to the control.
21225
21226 2006-06-20  Chris Toshok  <toshok@ximian.com>
21227
21228         * BindingContext.cs: rewrite the CreateBindingManager code to
21229         handle navigation paths more or less properly.  This could
21230         definitely stand some more work, in particular to push the
21231         recursion up to the toplevel.  But that relies on fixes in other
21232         places (System.Data comes to mind).
21233
21234         Also, move to a flat hashtable (and encode the twolevel nature of
21235         the dictionary into the hash key).  This lets us implement the
21236         IEnumerable.GetEnumerator method.
21237
21238         * RelatedCurrencyManager.cs: new class.  Update our view based on
21239         our relation and our parent CurrencyManager's position.
21240
21241         * CurrencyManager.cs: split out some logic from the ctor into
21242         SetView, so it can be called from the new RelatedCurrencyManager
21243         subclass.
21244
21245         * RelatedPropertyManager.cs: new class.  Update our datasource
21246         based on the position of our parent CurrencyManager.
21247
21248         * PropertyManager.cs: split out some logic from the ctor into
21249         SetDataSource, so it can be called from the new RelatedDataSource
21250         subclass.  Also, make the Current getter return the value
21251         of the PropertyDescriptor, not the data_source.
21252
21253         * Binding.cs: no need to duplicate the string splitting code here.
21254
21255 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
21256
21257         * Control.cs:
21258           - set_Enabled: OnEnabledChanged is not called if the inherited state 
21259             of the control is not altered, even though  we might be changing the
21260             internal state of the control (#78458)
21261           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
21262             OnEnabledChanged, to allow easy altering of any child window state
21263           - OnEnabledChanged: Added code to enable/disable driver window state
21264           - OnParentEnabledChanged: Instead of firing the event, call 
21265             OnEnabledChanged, which will fire the event and also a) set driver
21266             window state and pass the enabled state to any grandchildren (#78458)
21267
21268 2006-06-19  Jackson Harper  <jackson@ximian.com>
21269
21270         * InternalWindowManager.cs: We don't set the cursor explicitly
21271         thats done via the response to NCHITTESTs.
21272         - Don't need to adjust for titlebar heights anymore, the
21273         coordinates are coming in the correct coordinates now (see peters
21274         last patch).
21275
21276
21277 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
21278
21279         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
21280           being translated relative to whole window, instead of client window.
21281           That caused broken offsets on mouseclick (and caused gas for our
21282           InternalWindowManager)
21283
21284 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
21285
21286         * TextControl.cs:
21287           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
21288           - Undo(): Added replay of cursor move on DeleteChars action; added
21289             calling Undo() again if a recorded cursor move is invalid (to
21290             ensure that some action is performed on Undo)
21291         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
21292
21293 2006-06-16  Jackson Harper  <jackson@ximian.com>
21294
21295         * MdiClient.cs: Instead of just sizing maximized windows when
21296         there is a resize we also have to adjust the Y of minimized
21297         windows, so they stay pinned to the bottom of the mdi container.
21298         - Eliminate separate tracking of the active control, we can just
21299         get this from the controls collection.
21300         - Paint the decorations for the newly activated titlebar so we get
21301         a pretty blue bar.
21302         * InternalWindowManager.cs:
21303         * ThemeWin32Classic.cs: Minimized windows get all three buttons
21304         even if they are a tool window.
21305         
21306 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
21307
21308         * TextControl.cs (Undo): Handle non-existent cursor locations in the
21309           undo buffer, these can happen when text was deleted and the cursor
21310           was recorded first. Since we will also have a recorded cursor
21311           after the delete this is not an issue. (Fixes #78651)
21312
21313 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
21314
21315         * AccessibleObject.cs: Remove dependence on Control.is_selected;
21316           instead properly track control states internally (allows us to
21317           remove is_selected from Control)
21318
21319 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21320
21321         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
21322         whose width is not a multiple of 8.
21323
21324 2006-06-13  Jackson Harper  <jackson@ximian.com>
21325
21326         * MdiClient.cs:  Only maximize the next child if the current one
21327         is maximized.
21328
21329 2006-06-13  Chris Toshok  <toshok@ximian.com>
21330
21331         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
21332         modified.  Also, guard against grid or grid_drawing being null in
21333         Invalidate.
21334
21335         * DataGrid.cs: Reformat tons of getters/setters.  In the
21336         DataMember setter, just call SetNewDataSource instead of
21337         duplicating some of its functionality.  In SetNewDataSource, don't
21338         check ListManager for null, since the property getter creates the
21339         object if needed.
21340
21341         * DataGridTableStyle.cs: don't set TableStyle or call
21342         SetDataGridInternal on the column here, it's done in
21343         GridColumnStylesCollection.Add.
21344
21345         * GridColumnStylesCollection.cs: fix all the explicit interface
21346         implementations to just call our methods.  Nuke AddInternal() and
21347         move the body of it to Add().  Also, add a call to
21348         column.SetDataGridInternal to Add().
21349
21350         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
21351         base()+duplicate code.  Also, use the Format property instead of
21352         format to generate an Invalidate ala MS.  Lastly, create the
21353         textbox here, unconditionally.
21354         (set_Format): call Invalidate.
21355         (get_TextBox): no need to call EnsureTextBox.
21356         (Commit): remove the message box.
21357         (Edit) remove the call to EnsureTextBox.
21358         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
21359         (EnterNullValue): no need to check textbox for null.
21360         (HideEditBox): no need to check textbox for null.
21361         (SetDataGridInColumn): add the textbox to the grid's controls.
21362         (EnsureTextBox): nuke.
21363         
21364 2006-06-13  Jackson Harper  <jackson@ximian.com>
21365
21366         * MdiWindowManager.cs: Hook up to the maximized menus paint event
21367         and redraw the buttons when needed. Unhook when the window is
21368         unmaximized.
21369         * MainMenu.cs: Add an internal Paint event, the mdi window manager
21370         needs this so that it can redraw its buttons when the menu is
21371         repainted.
21372         * InternalWindowManager.cs:
21373         * Form.cs: The method order has changed for DrawMaximizedButtons,
21374         so that it can be a PaintEventHandler.
21375         
21376 2006-06-13  Jackson Harper  <jackson@ximian.com>
21377
21378         * MdiClient.cs: When we close a maximized mdi window, the next mdi
21379         window is activated and maximized, even if it wasn't before.
21380         - When  a new window is activated repaint the decorations of the
21381         old one, so that it no longer has the Active "look" (the blue
21382         titlebar).
21383         * InternalWindowManager.cs: Open up CreateButtons to base classes
21384         so they can recreate the buttons on state changes.
21385         - If a window is maximized give it all three buttons
21386         * MdiWindowManager.cs: Create the titlebar buttons when the state
21387         is changed, this is needed because a toolwindow will not have all
21388         three buttons until it is maximized.
21389
21390 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
21391
21392         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
21393           Fixed bug #78609.
21394
21395 2006-06-12  Jackson Harper  <jackson@ximian.com>
21396
21397         * KeysConverter.cs: Make sure we handle the Ctrl special case
21398         if its the only key.
21399         
21400 2006-06-12  Jackson Harper  <jackson@ximian.com>
21401
21402         * Theme.cs: Add a method to get the size of a managed window
21403         toolbar button.
21404         * InternalWindowManager.cs: Remove the ButtonSize property, this
21405         should be retrieved from the theme.
21406         * MdiWindowManager.cs: Get the button size from the theme
21407         * ThemeWin32Classic.cs: Make the method to get the managed window
21408         titlebar button size public.
21409         - Handle the different button sizes of maximized toolwindows
21410         (should match any maximized window).
21411         - Get the titlebar height from the theme, not the WM (which gets
21412         it from the theme).
21413
21414 2006-06-12  Jackson Harper  <jackson@ximian.com>
21415
21416         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
21417         event down to the mdi window manager.
21418         - Expose some extra stuff to base classes
21419         - Make sure to end the Capture on an NC Mouse up, so that we can
21420         get double clicks properly, and the sizing doens't stick.
21421         - When doing PointToClient contain it in the workable desktop
21422         area, this prevents windows from changing size when the cursor is
21423         pulled outside of the working area while sizing.
21424         * MdiWindowManager.cs: When we get a double click maximize the
21425         window.
21426         - Reset the cursor after handling mode changes.
21427
21428 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
21429
21430         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
21431           current desktop, instead of just assuming a 0, 0 origin. This
21432           is needed for our internal window manager, to know the top
21433           margin of the desktop
21434
21435 2006-06-12  Chris Toshok  <toshok@ximian.com>
21436
21437         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
21438         we need this to get rid of the selected background in the bool
21439         column.
21440         (CancelEditing): move the ConcedeFocus call to above the Abort
21441         call.  Also, set is_changing to false and invalidate the row
21442         header if we were changing before.
21443         (ProcessKeyPreviewInternal): remove, since noone outside this
21444         class calls it anymore.  Roll the code into ProcessKeyPreview.
21445         (EndEdit): remove the internal version.
21446         (InvalidateCurrentRowHeader): make private.
21447
21448         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
21449         Keys.Escape handling (and with it the last call to
21450         DataGrid.EndEdit from outside the class.)
21451
21452
21453 2006-06-12  Chris Toshok  <toshok@ximian.com>
21454
21455         * DataGridTextBox.cs (.ctor): isedit defaults to false.
21456         (OnKeyPress): set isedit to true.
21457         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
21458         already handled by the grid.
21459
21460         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
21461         right.  ugh.
21462         (set_DataSource): SetDataSource always returns true, so stop
21463         putting it in an if statement.
21464         (EndEdit): get rid of some {}'s
21465         (ProcessGridKey): return true in case Keys.Escape.
21466         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
21467         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
21468         PositionChanged, stopped connecting to CurrentChanged.
21469         (GetDataSource): simplify this a bunch.
21470         (SetDataSource): change return type from bool to void.
21471         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
21472         to this, and make sure we don't set ListManager.Position inside
21473         set_CurrentCell.
21474         (OnListManagerItemChanged): if we're passed an actual index,
21475         redraw that row.
21476
21477         * CurrencyManager.cs (set_Position): don't call PullData here.
21478
21479 2006-06-09  Jackson Harper  <jackson@ximian.com>
21480
21481         * TreeNode.cs:  Recalculate the visible order before doing the
21482         Expand/Collapse Below calls, because those calls generate an
21483         expose.
21484         - Reduce calls to the TreeView property, which is mildly expensive
21485         by using a local var.
21486         * Form.cs: Layout the MDI child windows when creating the parent
21487         form.
21488         - Don't use the internal constructor anymore
21489         * MdiClient.cs: use the parent form width/height (if available)
21490         when laying out the child windows, we do this because the
21491         mdiclient isn't docked yet when the initial layout is done.
21492         - Don't need an internal constructor anymore.
21493
21494 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21495
21496         * FileDialog.cs: handle access errors when trying to create a folder
21497         or changing to a directory. No need to initialize out parameters.
21498
21499 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
21500
21501         * FileDialog.cs: Append a number when creating a new folder if the
21502           folder already exists (use parenthesis instead of square brackets)
21503
21504 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
21505
21506         * FileDialog.cs:
21507           - Disabled registry support for windows and added better registry
21508             error checking for other systems (need to investigate why it
21509             works perfectly on my system)
21510           - If a folder already exist show an error MessageBox instead of
21511             trying to create an indexed name.
21512           - Fixed a non intentional typo.
21513
21514 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21515
21516         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
21517
21518 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
21519
21520         * FileDialog.cs: When creating a new folder don't crash if the
21521           folder already exists.
21522
21523 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
21524
21525         * FileDialog.cs: Allmost a complete rewrite.
21526           - added a "virtual" file system that handles the differences
21527             between unix and windows file systems (especially the directory
21528             structure). Moved most of the directory and file handling code
21529             into the vfs.
21530             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
21531             UnixFileSystem and FSEntry.
21532           - Recently used folder/directory, size, location and used file names
21533             (file name ComboBox) are now stored in the registry and get read
21534             before the dialog shows up (fixes part 6 of bug #78446).
21535           - Creation of new folders/directories is now possible (context menu
21536             or ToolBar). Added TextEntryDialog for this that fills in the gap
21537             until ListView.LabelEdit works.
21538           - Fixed cursor handling (bug #78527) and focus handling for
21539             PopupButtonPanel
21540           - Various "Search in" ComboBox enhancements. The content of the
21541             dropdown listbox now almost matches ms.
21542           - Changed the behaviour when the user switches to SpecialFolder
21543             Recent to show the ListView in View.Details.
21544           - Beside using the ToolBar to change the View property of the
21545             file ListView it is now possible to use the context menu too.
21546
21547 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
21548
21549         * ComboBox.cs: Don't create a new ObjectCollection when an item
21550           gets inserted. Just insert the item in the existing object_items
21551           ArrayList.
21552
21553 2006-06-08  Jackson Harper  <jackson@ximian.com>
21554
21555         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
21556         that the treeview and root node checks are done also, this fixes a
21557         regression i caused in the unit tests.
21558
21559 2006-06-07  Wade Berrier <wberrier@novell.com> 
21560
21561         * RichTextBox.cs: More ISO8859-1 -> unicode
21562
21563 2006-06-07  Mike Kestner  <mkestner@novell.com>
21564
21565         * ComboBox.cs : use items to hold highlight/selection so that
21566         collection insertions don't require synchronization.
21567
21568 2006-06-07  Jackson Harper  <jackson@ximian.com>
21569
21570         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
21571         routine.  We now always keep the sized edge at the cursor instead
21572         of computing movement and adjusting rects.  There is one buglet
21573         with this method though when the cursor is moved over area that
21574         the window can not expand too (such as the toolbars on the desktop).
21575
21576 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21577
21578         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
21579         here. Fixes crash on startup in AlbumSurfer.
21580
21581 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
21582
21583         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
21584           values
21585
21586 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21587
21588         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
21589         statement to avoid calling XNextEvent which will block if another thread
21590         took the event that we were expecting. Fixes bug #78605.
21591
21592 2006-06-07  Mike Kestner  <mkestner@novell.com>
21593
21594         * ListView.cs : isolated checkbox clicking from the selection logic.
21595         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
21596
21597 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
21598
21599         * Form.cs: Check that the value passed to Form.DialogResult
21600         is a valid enum value.
21601
21602 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21603
21604         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
21605         Computer'. Clicking it in the network view goes to 'My Computer'.
21606         Added CIFS filesystem type. Display the mount point of filesystems.
21607         Avoid duplicate mount points (happens for me with CIFS);
21608
21609 2006-06-06  Jackson Harper  <jackson@ximian.com>
21610
21611         * InternalWindowManager.cs: Draw the maximized windows buttons
21612         when resizing.
21613
21614 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21615
21616         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
21617         all other dialogs. Fixes bug #78585.
21618
21619 2006-06-06  Mike Kestner  <mkestner@novell.com>
21620
21621         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
21622         Only invalidate checkbox on checkstate changes to avoid flicker.
21623         * ListBox.cs : avoid unselect/select when clicking selected item.
21624         avoid reselection flicker for already multiselected items.
21625         Fixes #78382.
21626
21627 2006-06-06  Jackson Harper  <jackson@ximian.com>
21628
21629         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
21630         the parent form so that the menu is removed if needed.
21631
21632 2006-06-06  Mike Kestner  <mkestner@novell.com>
21633
21634         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
21635         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
21636
21637 2006-06-06  Mike Kestner  <mkestner@novell.com>
21638
21639         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
21640
21641
21642 2006-06-06  Jackson Harper  <jackson@ximian.com>
21643
21644         * Control.cs: Use the property (instead of the field) to get the
21645         default cursor so it is instantiated correctly.
21646         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
21647         resizes so we need to manually repaint the window decorations here.
21648         - Set the titlebar button locations as soon as they are created,
21649         otherwise they are not set correctly on win32.
21650         
21651 2006-06-06  Chris Toshok  <toshok@ximian.com>
21652
21653         * CurrencyManager.cs (set_Position): call PullData before
21654         OnCurrentChanged.
21655         (AddNew): after calling IBindingList.AddNew, update our
21656         listposition, and call OnCurrentChanged/OnPositionChanged (without
21657         calling PullData).
21658         (OnCurrentChanged): remove the call to PullData from here.
21659         (OnItemChanged): remove the call to PushData from here.
21660         (OnPositionChanged): change the test from == null to != null to
21661         match the other methods.
21662         (ListChangedHandler): the grossest part of the patch.  Implement
21663         this such that it passes the unit tests in CurrencyManagerTest and
21664         the output more or less matches that of MS's implementation.
21665  
21666 2006-06-06  Mike Kestner  <mkestner@novell.com>
21667
21668         * ListView.cs : only update check state on single click.
21669         * ThemeWin32Classic.cs : fix focus drawing for details view without
21670         fullrowselect.  Fixes #78454.
21671         * XplatUIX11.cs : fix for double click emission.
21672
21673 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
21674
21675         * PropertyGridView.cs : Applied Atsushi's patch to fix
21676         font dialog bug  (#78197).
21677
21678 2006-06-05  Jackson Harper  <jackson@ximian.com>
21679
21680         * TreeNode.cs: Compute the next node for expanding/collapsing
21681         correctly. We now factor in nodes without a NextNode
21682         correctly. (Fixes somes cases in nunit-gui).
21683         * InternalWindowManager.cs: Set the bounds when updating the
21684         virtual position of a tool window.
21685         
21686 2006-06-05  Chris Toshok  <toshok@ximian.com>
21687
21688         * DataGrid.cs: rename cached_currencymgr to list_manager.
21689         (set_CurrentCell): move SetCurrentCell code here, and clean it up
21690         some.
21691         (CurrentRow, CurrentColumn): single accessors so we can make the
21692         cursor movement code a lot easier to understand.
21693         (CurrentRowIndex): implement this in terms of CurrentRow.
21694         (BeginEdit): clean this up a bit.
21695         (CancelEditing): sort out the is_editing/is_changing/is_adding
21696         stuff a little.
21697         (EndEdit): minor changes.
21698         (OnKeyDown): add a comment about a (most likely) unnecessary
21699         check.
21700         (OnMouseDown): cancel editing when we click on a row header.  And
21701         use the CurrentRow setter, not CurrentCell.
21702         (ProcessDialogKey): directly call ProcessGridKey.
21703         (UpdateSelectionAfterCursorMove): factor out this common block of
21704         code (it's used everywhere that we move the cursor by updating row
21705         or column).
21706         (ProcessGridKey): pretty substantial overhaul.  Use the
21707         CurrentRow/CurrentColumn properties to make the code a lot more
21708         readable.  Only use the CurrentCell property when we have to
21709         modify both row and column at once.  Tab behavior is still broken,
21710         and Delete is untested.
21711         (Select): if we have no selected rows, set selection_start to
21712         @row.
21713         (EditCurrentCell): rename EditCell this.  It was only ever invoked
21714         with CurrentCell as the arg, so drop the arg and rename it.
21715
21716         * DataGridColumnStyle.cs: clean up the constructors a little, and
21717         drop CommonConstructor().
21718
21719         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
21720         actually get notified when the user hits it.
21721         (ProcessKeyMessage): *substantially* simplify this method.
21722         There's no reason (that I can see) for the textbox to be making
21723         calls into the datagrid at all.  Remove all of them but the ones
21724         for Enter handling.  those will take some more work.
21725
21726         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
21727         calling HideEditBox.
21728         (HideEditBox): if we have an active textbox, render it invisible
21729         without causing a re-layout of the datagrid.
21730
21731 2006-06-05  Mike Kestner  <mkestner@novell.com>
21732
21733         * ListView.cs : fix NRE crasher when focuseditem is cleared by
21734         collection changes by resetting it to Items[0].  Fixes #78587.
21735
21736 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21737
21738         * MessageBox.cs: if the height of the text is larger than the icon_size,
21739         use that. Fixes bug #78575.
21740
21741 2006-06-05  Jackson Harper  <jackson@ximian.com>
21742
21743         * TreeView.cs: Fix line drawing when scrolling.  To do this each
21744         node is basically responsible for drawing its entire horizontal
21745         area.  When drawing a node it draws its parent node lines if
21746         needed.
21747         - Adjust the clip area to the viewport rectangle
21748         - Fix Left/Right key handling to match MS. (It expand/collapses
21749         and moves to parents/first child but does not move selection to
21750         sibling nodes).
21751         - Fix SetTop to work with new bound calculation code
21752         - When scrollbars are no longer needed we need to reset scrolling
21753         vars and recalculate the visible order so the redraw is correct
21754         * TreeNode.cs: We can't expand/collapse nodes with no children.
21755
21756 2006-06-03  John Luke  <john.luke@gmail.com> 
21757
21758         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
21759         so the colors work without dev packages
21760         
21761 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
21762
21763         * Control.cs 
21764           - Select: Implemented to just use activate. Seems to match MS 
21765             behaviour closest. Documented to only do actual control walking 
21766             based on it's parameters if in a container control so I moved 
21767             the code there.
21768           - Removed selection check logic from our internal Select() method
21769         * ContainerControl.cs:
21770           - Select: Moved selection logic from Control here, since MS documents
21771             that containers obey the bool arguments. No longer calling base
21772
21773 2006-06-02  Jackson Harper  <jackson@ximian.com>
21774
21775         * TreeView.cs: If the selected node isn't changed when we get
21776         focus update the previously selected node so that we see the
21777         selection box.
21778
21779 2006-06-02  Mike Kestner  <mkestner@novell.com>
21780
21781         * ComboBox.cs: restructure grab and general mouse event handling.
21782         Make the composite control raise mouse events like it was a single
21783         control for leaves/enters/motion/up/down events.  fix dropdown list
21784         coordinate mangling and refactor it into the scrollbar subclass to
21785         reduce code duplication.  Fixes #78282 #78361 and #78457.
21786
21787 2006-06-02  Mike Kestner  <mkestner@novell.com>
21788
21789         * ScrollBar.cs: remove Capture setting/clearing, as it happens
21790         automatically in the Control.WndProc.
21791
21792 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21793
21794         * FileDialog.cs: fix crash when running SharpChess, which sets the
21795         FilterIndex to 2 with only one Filter.
21796
21797 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21798
21799         * ToolBar.cs: add SizeSpecified property.
21800         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
21801         try to figure out our real size, otherwise fallback to what the
21802         container says.
21803
21804 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
21805
21806         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
21807         * Control.cs (WndProc): MS always calls the DefWndProc to pass
21808           up the event
21809
21810 2006-06-01  Mike Kestner  <mkestner@novell.com>
21811
21812         * ListView.cs: revamp the focus management in ListView.  It still
21813         causes churn of LostFocus/GotFocus emissions on clicks, but it's
21814         better than not handling focus at all.  Will revisit when pdb feels
21815         the general focus handling is solid.  Fixes #78526.
21816
21817 2006-06-01  Jackson Harper  <jackson@ximian.com>
21818
21819         * TreeView.cs: Set the default border style in the constructor.
21820         - Move painting to use OnPaintInternal instead of capturing
21821         WM_PAINT, this is the correct way of doing things
21822         - UpdateBelow shouldn't invalidate the scrollbar area
21823         - Cap the top on update below in case the node was above the top
21824         of the viewport rectangle.
21825         - ExpandBelow and Collapse below need to obey Begin/End Update.
21826         * TreeNode.cs: Make is_expanded internal so the treenode
21827         collection can change it without firing the whole event chain.
21828         * TreeNodeCollection.cs: When clearing all the child nodes make
21829         sure to recalc the visible order.
21830         - Improve algo for remove the top node
21831
21832 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
21833
21834         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
21835           SendMessage directly calling window procedures, which in turn might
21836           call SetFocus()
21837
21838 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
21839
21840         * Control.cs: Don't handle WM_SETFOCUS if the same window already
21841           has focus (works around X11 sending a FocusIn after our SetFocus)
21842         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
21843
21844 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
21845
21846         * Mime.cs: Fix for the NET_2_0 build.
21847           NameValueCollection needs StringComparer now.
21848
21849 2006-05-31  Chris Toshok  <toshok@ximian.com>
21850
21851         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
21852         return (via an out parameter) the starting X of the column.
21853         (UpdateVisibleColumn): track change to FromPixelToColumn.
21854         (HitTest): add a ColumnResize case here.
21855         (DrawResizeLine): new function, probably poorly named.
21856
21857         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
21858         only need to keep one reference.
21859         (set_ListManager): same.
21860         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
21861         Also, add support for HitTestType.ColumnResize.
21862         (OnMouseMove): add column resize behavior here, and change the
21863         cursor to the correct one as we move around the datagrid.
21864         (OnMouseUp): terminate the column resize if we're resizing.
21865         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
21866         for the current cell.
21867         (ConnectListManagerEvents): use cached_currencymgr.
21868         (DisconnectListManagerEvents): fill this in, using
21869         cached_currencymgr.
21870         (SetCurrentCell): remove cached_currencymgr_events handling.
21871         (SetDataMember): only call DisconnectListManagerEvents if
21872         cached_currencymgr is != null.
21873         (SetDataSource): same.
21874         (OnListManagerCurrentChanged): cached_currencymgr_events ->
21875         cached_currencymgr.
21876
21877 2006-05-31  Jackson Harper  <jackson@ximian.com>
21878
21879         * BindingManagerBase.cs: Remove somedebug code that creeped into
21880         SVN.
21881         * TreeNode.cs: We get the indent level dynamically right now, so
21882         don't track it as a member.
21883         * TreeNodeCollection.cs: Make sure all nodes added to the list
21884         have parents, treeviews/topnodes setup properly.
21885         - Don't attempt to track indent level.
21886
21887 2006-05-30  Jackson Harper  <jackson@ximian.com>
21888
21889         * BindingContext.cs: Create the currency manager tables here.
21890         This allows us to more easily create null tables (when bad data
21891         members are used), and more easily create related currency
21892         managers.
21893         * CurrencyManager.cs: All the table creation stuff is done by the
21894         binding context now.
21895         - Current should throw an exception if listposition is -1.
21896         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
21897         been bound yet.
21898
21899 2006-05-30  Mike Kestner  <mkestner@novell.com>
21900
21901         * ListView.cs: allow reexpansion of zero-width column headers.
21902         Fixes #78528.
21903
21904 2006-05-28  Chris Toshok  <toshok@ximian.com>
21905
21906         * CurrencyManager.cs (get_Current): after the late binding
21907         listposition = -1 fix, we need to guard against it here and return
21908         null, otherwise we raise an exception (which is swallowed
21909         elsewhere, and breaks datagrid databinding.)
21910
21911 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
21912
21913         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
21914           than WM_SYSKEY, don't throw if get something unexpected (#78507)
21915
21916 2006-05-26  Jackson Harper  <jackson@ximian.com>
21917
21918         * ControlPaint.cs:
21919         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
21920         values, it's faster and it's all we care about (we don't care if
21921         the names aren't equal).
21922         * KeyboardLayouts.cs: Eliminate some dead code.
21923         - Lazy init things
21924         * X11Keyboard.cs: Lazy init keyboard detection.
21925         - Cleanup access modifiers a little.
21926
21927 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
21928
21929         * XplatUIX11.cs: Once again, attempting to get layout just right.
21930
21931 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
21932
21933         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
21934           the sizes of each link section, that will result in sizes that
21935           match DrawString's layout (Fixes #78391)
21936
21937 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
21938
21939         * FileDialog.cs: If AddExtension property is true autocomplete the
21940           extensions in SaveFileDialog correctly. Fixes bug #78453.
21941           Set MyNetwork and MyComputer to "C:\" for windows. This should
21942           fix part 8 of bug #78446 for now.
21943
21944 2006-05-26  Chris Toshok  <toshok@ximian.com>
21945
21946         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
21947         invalidate the current row header if we need to, but presumably
21948         we'll invalidate the row corrsponding to the bounds or
21949         editingControl.
21950         (GridHScrolled): switch back to this method, as it's part of the
21951         public api.  *sigh*.
21952         (GridVScrolled): same.
21953         (OnMouseWheel): hack up something that more or less works.  Call
21954         GridHScrolled/GridVScrolled directly, instead of duplicating much
21955         of their code here.
21956         (EnsureCellVisibility): reinstate a bunch of this code, since we
21957         can't just set the scrollbar Value and expect to do all the work
21958         in the ValueChanged handler.  Also, Call Update() after scrolling
21959         in one direction so the other XplatX11.ScrollWindow call has the
21960         proper stuff in the proper places.
21961         (EditCell): set is_editing to true before calling .Edit.
21962
21963         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
21964         don't bother comparing first.
21965         (OnKeyPress): call grid.ColumnStartedEditing before calling
21966         base.OnKeyPress.  this will set is_changing and invalidate the row
21967         header if necessary.
21968         (ProcessKeyMessage): for WM_CHAR messages, call
21969         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
21970         and WM_KEYDOWN.
21971         
21972         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
21973         it's done in the DataGrid.
21974         (NextState): call grid.ColumnStartedEditing, which takes care of
21975         invalidating the row header (and setting is_changing).
21976
21977         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
21978         here.  it's done in the DataGrid.
21979
21980 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21981
21982         * Control.cs: allow changing the cursor when the mouse position is
21983         out of bounds but Capture is set.
21984         * LinkLabel.cs: handle the case when the mouse button is pressed on the
21985         linklabel but released somewhere else.
21986
21987 2006-05-25  Jackson Harper  <jackson@ximian.com>
21988
21989         * TreeView.cs: When we get focus if there is no selected node make
21990         it the top node
21991         - Remove some uneeded setup code from Draw.
21992         * TreeNodeCollection.cs: If the tree doesn't have a top node when
21993         a new node is inserted make the new node the top.
21994         * XplatUIX11.cs:
21995         * Timer.cs: Use Utc time so that no local time zone stuff needs to
21996         be used (should be faster).
21997         
21998 2006-05-25  Chris Toshok  <toshok@ximian.com>
21999
22000         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
22001         problem with the last commit.
22002
22003 2006-05-25  Chris Toshok  <toshok@ximian.com>
22004
22005         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
22006         need the invalidate call here, while scrolling right-to-left via
22007         the left arrow key (i.e. moving the editing cell while scrolling).
22008
22009         * DataGrid.cs (.ctor): remove the initialization of
22010         ctrl_pressed/shift_pressed.  We no longer track them using key
22011         up/down handlers, but by using Control.ModifierKeys.  Also, switch
22012         to using ValueChanged handlers on the scrollbars instead of
22013         Scrolled event handlers.  This simplifies a bunch of the scrolling
22014         code.
22015         (GridHValueChanged): rename from GridHScrolled, and change it to
22016         work with the new event args.
22017         (GridVValueChanged): same.
22018         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
22019         (OnMouseWheel): actually scroll the datagrid.  Don't change the
22020         selected cell.
22021         (ProcessGridKey): correct all the keyboard navigation stuff I
22022         could find.  Ctrl up/down/left/right/home/end work now.
22023         (EnsureCellVisibility): correct method name spelling.  Also,
22024         simplify this a touch by not explicitly calling the
22025         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
22026         scrollbar value.
22027         (OnKeyUpDG): no need for this method now.
22028         
22029 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22030
22031         * LinkLabel.cs: display the OverrideCursor when hovering the label.
22032         Fixes bug #78392.
22033
22034 2006-05-25  Chris Toshok  <toshok@ximian.com>
22035
22036         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
22037         r61019.
22038
22039 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
22040
22041         * Application.cs: Moved setting of is_modal and closing to before
22042           we create the control, to allow the event handlers called as a
22043           result of creation affect closing. Also removed Gonzalo's previous
22044           change to setting DialogResult, the behaviour has been moved to 
22045           Form.ShowDialog()
22046         * Form.cs: 
22047           - ShowDialog(): Removed explicit creation of the form, let RunLoop
22048             handle it instead
22049           - ShowDialog(): If no dialog result is set, we need to return Cancel
22050           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
22051             the close is cancelled
22052
22053 2006-05-25  Jackson Harper  <jackson@ximian.com>
22054
22055         * StatusBar.cs: We only need to update the sizes of the other
22056         panels when we have auto size contents.  Also we are only updating
22057         the contents of the panel, not the borders, so compensate for the
22058         border width (TODO: get this width from the theme somehow).
22059         * TreeView.cs: Scrollable is true by default
22060         - Use invalidate instead of refresh where needed
22061         - Factor the scrollable value into scrollbar updating
22062         - Update the scrollbars if the Scrollable property is altered
22063         - Update the selected node if its ImageIndex is changed
22064         - Handle null nodes in UpdateNode (mainly so we don't have to
22065         check if selected is null when updating it
22066         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
22067         are factored into the visible count
22068         - Use VisibleCount for clarity in the code
22069         - When the font is changed we need to recurse through all the
22070         nodes and invalidate their sizes
22071         
22072 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22073
22074         * Application.cs: set the DialogResult to fixed when the main form is
22075         hidden or destroyed while being modal.
22076
22077 2006-05-25  Miguel de Icaza  <miguel@novell.com>
22078
22079         * Theme.cs: Use Tangoified messagebox icons. 
22080
22081         (GetSizedResourceImage): Also cope with width = 0 and do not
22082         trigger a warning in that case (0 means "give me your icon from
22083         the resouce, no special size needed).
22084
22085 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
22086
22087         * Application.cs: Leave runloop if the the main modal form is 
22088           hidden (fixes #78484)
22089
22090 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
22091
22092         * BindingContext.cs : reject null datasource in Contains() and
22093           Item[].
22094         * CurrencyManager.cs : check data_member validity when data_source
22095           is dataset. When it is late binding, the initial position is -1.
22096
22097 2006-05-24  Jackson Harper  <jackson@ximian.com>
22098
22099         * TreeNodeCollection.cs: Dont't recalculate the visible order on
22100         inserted nodes that aren't visible.  This changes the
22101         max_visible_order which confuses scrollbar settings.
22102         - Use the enumerator to get the prev node instead of duplicating
22103         code.
22104         * TreeView.cs: Use new method for setting scrollbar values
22105         - Don't set the bounds every time the scrollbar is updated
22106         - When updating below the root node use an invalidate instead of a
22107         refresh to prevent the child controls (scrollbars) from being
22108         refreshed. (UpdateBelow still needs to be reworked anyways).
22109         - Reenable SetBottom now that visible orders are set correctly,
22110         added some debug code incase we ever get bad values there again.
22111         - Set the scrollbar max to 2 less then the max value, this
22112         compensates for the max value being one above the node count, and
22113         for scrollbars adding one extra "notch".
22114         - When drawing image nodes if there is an imagelist we draw the
22115         first image in the list if the supplied image index is out of the
22116         image list's bounds.
22117         
22118 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
22119
22120         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
22121           we receive a size change from the WM (Fixes #78503)
22122
22123 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
22124
22125         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
22126           rectangle (Fixes #78501)
22127
22128 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
22129
22130         * ButtonBase.cs: 
22131           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
22132             as a bitfield.
22133           - Fixed MouseMove to no longer switch pressed state unless the left
22134             mouse button is pressed. Atsushi provided the original patch (#78485)
22135           
22136 2006-05-24  Jackson Harper  <jackson@ximian.com>
22137
22138         * ScrollBar.cs: New internal methods that allow us to change a
22139         couple values on the scrollbar (the most common case is maximum
22140         and large change) without getting multiple invalidates.
22141
22142 2006-05-24  Chris Toshok  <toshok@ximian.com>
22143
22144         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
22145         (Edit): save off the original state in oldState, and set
22146         grid.is_editing to true.
22147         (OnKeyDown): abort editing if escape is pressed.  also, call
22148         NextState if space is pressed.
22149         (OnMouseDown): call NextState.
22150         (NextState): factor out shared code from OnKeyDown and OnMouseDown
22151         here.  Also, only invalidate the row header once (on the initial
22152         is_changing switch) to save on redraws.
22153
22154 2006-05-24  Chris Toshok  <toshok@ximian.com>
22155
22156         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
22157         if the value in the cell is different than it was before.  This
22158         keeps us from triggering a layout when we move around a datarid
22159         with a highlighted cell.
22160         (Edit): suspend layout when creating/positining the text box, and
22161         resume passing false so we don't ever actually re-layout.
22162         (ReleaseHostedControl): same.
22163         (EnsureTextBox): reformat slightly, and set WordWrap to false.
22164
22165         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
22166         control-key sequences should go to the datagrid - remove that
22167         lock.  Also, modify the conditions under which we move between
22168         cells when moving the cursor within a cell, and remove the "this"
22169         and "base" from field accesses.  We weren't even consistent, given
22170         they all were in the base class.
22171
22172 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
22173
22174         * Binding.cs : (.ctor)
22175           An obvious NRE fix for BindingTest.CtorNullTest().
22176
22177 2006-05-23  Chris Toshok  <toshok@ximian.com>
22178
22179         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
22180         them between lines.  This fixes some quirks editing cells in the
22181         datagrid.
22182
22183 2006-05-23  Jackson Harper  <jackson@ximian.com>
22184
22185         * TreeView.cs: Use begin/end update when doing expand/collapse all
22186         so that we don't get flicker on the scrollbar.
22187
22188 2006-05-23  Jackson Harper  <jackson@ximian.com>
22189
22190         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
22191         treenode calculations to be independant of the painting code. To
22192         do this nodes track a visible order which is calculated by the
22193         treeview.
22194         - Call new methods for expanding/collapsing nodes.  These methods
22195         use scrollwindow so we don't have to update everything below the
22196         node.
22197         * TreeView.cs: Refactored drawing and scrolling code.  We don't
22198         need to update nodes when drawing anymore or calculate scrollbar
22199         stuff.
22200         - Added new methods for expanding/collapsing nodes. These methods
22201         use ScrollWindow so as to not have to redraw all the nodes below.
22202         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
22203         we add/remove nodes or sort.
22204         - Handle removing the selected and the top node properly.
22205
22206 2006-05-23  Chris Toshok  <toshok@ximian.com>
22207
22208         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
22209         maybe this should actually happen in the datagrid code?
22210         (EndEdit): no need to invalidate anything, given that
22211         ReleaseHostedControl causes the datagrid to relayout, which
22212         invalidates everything anyway.
22213
22214         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
22215         in SetCurrentCell).
22216         (set_SelectionBackColor): call InvalidateSelection instead of
22217         Refresh.
22218         (set_SelectionForeColor): same.
22219         (BeginEdit): Flesh this out a bit.
22220         (CancelEditing): only do any of this if we're editing/adding.
22221         (EndEdit): same.
22222         (OnMouseDown): there's no need to cancel editing here, it's done
22223         in SetCurrentCell.
22224         (SetCurrentCell): only invalidate the current row header if it's a
22225         different row than the new one.
22226         (ShiftSelection): fix this to work like MS does.
22227         (ResetSelection): factor out the invalidation of selected_rows to
22228         InvalidateSelection.
22229         (SetDataSource): cancel any editing that's going on.
22230
22231         * DataGridColumnStyle.cs
22232         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
22233         call the non-interface version.
22234
22235         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
22236         header rectangle with the clip rectangle so we don't redraw the
22237         entire header for just a small area.  Gets rid of the last flicker
22238         when horizontally scrolling.
22239         (DataGridPaintRow): same.
22240
22241 2006-05-23  Mike Kestner  <mkestner@novell.com>
22242
22243         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
22244         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
22245         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
22246         Critical bug report.
22247
22248 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
22249
22250         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
22251           and this fixes #78493
22252
22253 2006-05-23  Miguel de Icaza  <miguel@novell.com>
22254
22255         * Theme.cs (GetSizedResourceImage): Scale images if the proper
22256         size is not found.  
22257         
22258         * FileDialog.cs: Do not change the background for the side bar as
22259         it wont work nicely with the theme, and also reduces the artifacts
22260         in rendering the icons (which I want to fix too).
22261
22262         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
22263         resources, not resgen resources. 
22264
22265         (PlatformDefaultHandler): Pull images using the new API.
22266
22267 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
22268
22269         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
22270           a reference to the hwnd and will not remove it unless there are
22271           no pending exposures (fixes #78341)
22272         * XplatUI.cs: Improved debug
22273
22274 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
22275
22276         * MenuAPI.cs : don't handle OnClick event when it was not the left
22277           button. Fixed bug #78487.
22278
22279 2006-05-23  Mike Kestner  <mkestner@novell.com>
22280
22281         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
22282         prefer submenus to the top menu for item lookup, to avoid popping down
22283         top-row items.
22284
22285 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
22286
22287         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
22288           Graphics.FillRectangle as the visual results are really bad (even
22289           on win). We now draw perfect arrows (and perfect shadows when the
22290           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
22291           Pen.DashPattern to draw the dots of each line.
22292
22293 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
22294
22295         * FileDialog.cs: Update the filename combobox when navigating through
22296           the ListView with the cursor keys. Fixes part 7 of bug #78446.
22297
22298 2006-05-22  Mike Kestner  <mkestner@novell.com>
22299
22300         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
22301         Fixes #78463.
22302
22303 2006-05-22  Mike Kestner  <mkestner@novell.com>
22304
22305         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
22306         requests. Fix a misspelled parameter and a copy paste exception error
22307         in Select.
22308
22309 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
22310
22311         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
22312           to get the same width/height (5/13) on X11 as the default font has on
22313           win32. This means that our DefaultFont emSize is smaller than the 
22314           the MS SWF equivalent (even thought the width/height stays the same)
22315
22316 2006-05-20  Jackson Harper  <jackson@ximian.com>
22317
22318         * MdiClient.cs:
22319         * MdiWindowManager.cs:
22320         * InternalWindowManager.cs: Make sure to use the border width from
22321         the theme.
22322
22323 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
22324
22325         * PrintDialog.cs: Implements printer details
22326
22327 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
22328
22329         * FileDialog.cs: Added focus handling for PopupButtonPanel.
22330           Fixes part 1 and 2 of bug #78446
22331
22332 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
22333
22334         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
22335           instead of sticking to the first ever calculated value
22336
22337 2006-05-19  Mike Kestner  <mkestner@novell.com>
22338
22339         * ComboBox.cs: fix mouse motion selection to use MousePosition and
22340         PointToClient, since Capture is set. Fixes #78344.
22341
22342 2006-05-19  Mike Kestner  <mkestner@novell.com>
22343
22344         * ListView.cs: match MS behavior in Details view where items are not
22345         drawn if Columns.Count == 0. 
22346         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
22347         Use a separate pen to draw the check, since changing the width affects
22348         the box as well.  Fixes #78454.
22349
22350 2006-05-18  Miguel de Icaza  <miguel@novell.com>
22351
22352         * ListView.cs: ArgumentOutOfRangeException, single versions of the
22353         exception should throw the name of the invalid argument.
22354
22355         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
22356         there are no files listed. 
22357
22358 2006-05-18  Jackson Harper  <jackson@ximian.com>
22359
22360         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
22361         up.
22362
22363 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
22364
22365         * Control.cs: Brought back our old UpdateZOrder method as a private
22366           function and switched our calls from UpdateZOrder to the new one.
22367           This fixes the Paint.Net canvas disappearing bug.
22368
22369 2006-05-18  Jackson Harper  <jackson@ximian.com>
22370
22371         * Theme.cs:
22372         * ThemeWin32Classic.cs:
22373         * InternalWindowManager.cs: Move the drawing into the theme,
22374         expose everything the theme should need from the window manager.
22375
22376 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
22377
22378         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
22379           from the call to NativeWindow to avoid walking up the parent chain
22380           further than needed (speeds up setting cursors and avoids setting
22381           the wrong cursor if a parent has another cursor defined)
22382         * Cursor.cs: When loading an icon as cursor, MS uses the center of
22383           the icon as hotspot, not what's contained as hotspot in the icon
22384           file. This fixes the perceived drawing offset seen with Paint.Net
22385         
22386 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
22387
22388         * XplatUIX11.cs: 
22389           - Store the calculated rectangle in Hwnd object and use it when 
22390             setting the client size
22391           - Force Toolwindows to always be type Dock, to ensure they're on top
22392
22393 2006-05-18  Mike Kestner  <mkestner@novell.com>
22394
22395         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
22396         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
22397         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
22398         Substantial refactoring to remove confusing nested classes. Coding
22399         standard and Get+Set->property refactorings.  Shift to index based
22400         highlighting in ComboListBox instead of constantly using IndexOf and
22401         Items[]. Add invalidations on resize for DropDownList to fix ugliness
22402         in FileDialog growth.  Draw borders manually since Simple mode needs
22403         to look like two independent controls.  Make listbox border
22404         conditional to DropDownStyle.  Improved OwnerDraw support.
22405
22406 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
22407
22408         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
22409         Don't set the disposed graphics to null, so we can throw the "right"
22410         exception if the graphics is reused later (added a flag to avoid 
22411         double disposing). Some behaviours are different under 2.0 and are
22412         filled under bug #78448.
22413
22414 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
22415
22416         * Control.cs: When double-buffering is enabled, we need to reset
22417           our graphics context between paint calls. Otherwise, any 
22418           transformations and other alterations on the context will 
22419           become cumulative (#77734)
22420
22421 2006-05-18  Mike Kestner  <mkestner@novell.com>
22422
22423         * ListView.cs: do focused item selection like MS on clicks. 
22424         Rework focus handling for ItemControl so LostFocus invalidates as
22425         well.
22426         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
22427         the ListView ItemControl has focus.
22428
22429 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
22430
22431         * XplatUIX11.cs: If client_window ends up being width or height zero
22432           due to border settings, move it off window inside whole_window (#78433)
22433
22434 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
22435
22436         * Mime.cs: Shrink the mime file cache correctly.
22437
22438 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
22439
22440         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
22441
22442 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
22443
22444         * XplatUIX11.cs (AddExpose): More sanity checks
22445
22446 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
22447
22448         * XplatUIX11.cs:
22449           - AddExpose: Don't add expose ranges outside the size of our
22450             window
22451           - Cast opacity values to Int32 to avoid crashes with certain
22452             values
22453           - Added disabled code paths that protect against illegal cross-
22454             thread painting (Developers.exe)
22455
22456 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
22457
22458         * ProgressBar.cs: Invalidate the control when it's resized
22459           since block size is based on control size. (#78388)
22460
22461 2006-05-16  Miguel de Icaza  <miguel@novell.com>
22462
22463         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
22464         of setting the incoming argument to the "reset" value, we set the
22465         this.datamember to string.empty (before we were invalidating the
22466         incoming data).   
22467
22468         Fixes 78420
22469
22470 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
22471
22472         * Form.cs: Only apply transparency settings after the form
22473           is created. (Fixes #77800)
22474
22475 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
22476
22477         * ApplicationContext.cs: Grab the HandleDestroyed event so
22478           we know when to fire OnMainFormClosed 
22479
22480 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
22481
22482         * Application.cs: Introduced sub-class to allow tracking of
22483           threads and centralized triggering of the event mess for
22484           ThreadExit, AppExit, etc..  (#76156)
22485
22486 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
22487
22488         * MimeIcon.cs:
22489           - Do not return a null icon index value for a mime subclass.
22490             Instead try the main mime type class too.
22491           - Seems that some newer distributions don't have a link to some
22492             gnome default icons anymore. So check the default gnome dir too.
22493           
22494
22495 2006-05-16  Jackson Harper  <jackson@ximian.com>
22496
22497         * MdiClient.cs: Don't paint the parent background image if we have
22498         our own background image.
22499
22500 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
22501
22502         * Control.cs:
22503           - PerformLayout: Do not shrink space filled by DockStyle.Fill
22504             controls, all filled controls are supposed to overlap (#78080)
22505           - UpdateZOrder is supposed to update the control's z-order in the
22506             parent's z-order chain. Fixed to behave like that
22507           - BringToFront: Removed obsolete code
22508           - SendToBack: Simplyfied
22509           - SetChildIndex: Trigger layout calculations when Z-order changes
22510             since layout is done by z-order
22511
22512 2006-05-16  Chris Toshok  <toshok@ximian.com>
22513
22514         [ fixes bug #78410 ]
22515         * DataGrid.cs (set_AlternatingBackColor): use
22516         grid_drawing.InvalidateCells instead of Refresh().
22517         (set_BackColor): call grid_drawing.InvalidateCells.
22518         (set_BackgroundColor): use Invalidate instead of Refresh.
22519
22520         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
22521         invalidate the cell area.
22522
22523 2006-05-15  Chris Toshok  <toshok@ximian.com>
22524
22525         [ fixes bug #78011 ]
22526         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
22527         on to DataGridPaintRow.
22528         (DataGridPaintRow): take a clip argument, and only draw the cells
22529         which intersect it.  same with the not_usedarea.
22530
22531         * Theme.cs (DataGridPaintRow) add @clip parameter.
22532
22533         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
22534         XplatUI.ScrollWindow.
22535         (ScrollToRow): same.
22536
22537         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
22538         with last column which was causing a gray swath to appear with the
22539         XplatUI.ScrollWindow code.
22540
22541 2006-05-15  Chris Toshok  <toshok@ximian.com>
22542
22543         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
22544         use XplatUI.ScrollWindow.
22545         (VerticalScrollEvent): use XplatUI.ScrollWindow.
22546
22547 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
22548
22549         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
22550
22551 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
22552
22553         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
22554           file since there are no equivalent X11 cursors
22555
22556 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
22557
22558         * MonthCalendar.cs : DateTimePicker should reflect selected date
22559           on mouse*up*, not mouse*down*. Fixed originally reported part of
22560           bug #76474.
22561
22562 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
22563
22564         * TabControl.cs : When argument index is equal or more than tab
22565           count, just ignore. Fixed bug #78395.
22566
22567 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
22568
22569         * Control.cs: Dispose all child controls when control is diposed (#78394)
22570
22571 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
22572
22573         * ColorDialog.cs: Finally it is possible to select the color with
22574           the text boxes
22575
22576 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
22577
22578         * PrintDialog.cs: Fix typo
22579
22580 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
22581
22582         * PrintDialog.cs: PrintDialog is not resizable
22583         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
22584           color. Made some ToolBar drawing methods protected virtual.
22585
22586 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
22587
22588         * PrintDialog.cs: Implementation of the PrintDialog
22589
22590 2006-05-12  Chris Toshok  <toshok@ximian.com>
22591
22592         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
22593         thumb, instead use MoveThumb.  This has the side effect of making
22594         most of the other thumb moving machinery use MoveThumb as well.
22595         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
22596         need to actually invalidate the rectangle where the new thumb will
22597         go.
22598         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
22599         We force an Update() after, so it's not as fast as it could be,
22600         but at least there's zero flicker and no droppings.
22601         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
22602         (UpdateThumbPos): add another argument (dirty), which says whether
22603         or not to calculate/add dirty regions which we later invalidate.
22604         For cases where we know we're going to use MoveThumb, we pass
22605         false for this.  Otherwise, pass true.
22606
22607 2006-05-12  Jackson Harper  <jackson@ximian.com>
22608
22609         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
22610         the status bar.
22611         
22612 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
22613
22614         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
22615           and GetClipRegion methods and UserClipWontExposeParent property.
22616         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
22617           overriding UserClipWontExposeParent property, setting to false, since
22618           Win32 handles the required expose messages to draw our clipped parent
22619           areas internally
22620         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
22621           PaintEventStart to set the user clip region if set.
22622         * Control.cs: 
22623           - Now internally tracking the Region for the control since we need to
22624             store it if the handle is not yet created and only set it when it
22625             becomes created. Before setting the region forced handle creation
22626           - Added code to draw the parents underneath a user-clipped region
22627         * Hwnd.cs: Added UserClip property
22628
22629 2006-05-12  Chris Toshok  <toshok@ximian.com>
22630
22631         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
22632         (set_Maximum): same.
22633         (set_Minimum): same.
22634         (set_SmallChange): same.
22635         (OnMouseUpSB): remove the call to refresh when releasing the
22636         thumb.  We shouldn't need it.
22637         
22638 2006-05-12  Miguel de Icaza  <miguel@novell.com>
22639
22640         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
22641         AutoSize set to None, we do not need to relayout everything, we
22642         just need to invalidate the current region.
22643
22644         (Draw): Do not draw the entire ClientArea, just redraw the
22645         clip area being passed.
22646
22647         * MdiClient.cs: Make MdiClient constructor with the Form argument
22648         internal. 
22649
22650 2006-05-12  Jackson Harper  <jackson@ximian.com>
22651
22652         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
22653         parents background image,  but strangely not their own.
22654         - (DrawStatusBarPanel): Take into account horizontal alignment
22655         when drawing the strings and icons.
22656
22657 2006-05-12  Mike Kestner  <mkestner@novell.com>
22658
22659         * ListBox.cs: avoid invalidations for focus when the collection is
22660         empty. 
22661
22662 2006-05-12  Chris Toshok  <toshok@ximian.com>
22663
22664         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
22665         invalidate the entire thumb area.  Call InvalidateDirty which
22666         limits the redraw to the thumb itself and surrounding pixels.
22667
22668         * XplatUIX11.cs (ScrollWindow): optimize copying.
22669         
22670 2006-05-12  Chris Toshok  <toshok@ximian.com>
22671
22672         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
22673         Figure out the positioning/layout in a single pass instead of
22674         multiple recursive invocations.  Speeds up the initial display of
22675         the data grid.  Also, make many things private that were
22676         originally public but unused outside this class.
22677
22678 2006-05-11  Jackson Harper  <jackson@ximian.com>
22679
22680         * MdiClient.cs: Improved layout code.
22681
22682 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
22683
22684         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
22685           not SelectedObject.
22686
22687 2006-05-11  Chris Toshok  <toshok@ximian.com>
22688
22689         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
22690         union of that will always be {0,0,width,height}.
22691
22692 2006-05-11  Jackson Harper  <jackson@ximian.com>
22693
22694         * Form.cs: Match MS's DefaultSize for forms (they must have
22695         changed the size in sp2).
22696
22697 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
22698
22699         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
22700
22701 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
22702
22703         * TextControl.cs : Fixed bug #78109. This incorrect position
22704           comparison caused crash on automatic line split.
22705         * TextBoxBase.cs : reduce duplicate code.
22706
22707 2006-05-10  Jackson Harper  <jackson@ximian.com>
22708
22709         * MdiClient.cs: Active form is only sent to the back when using
22710         the Next form functionality, when a form is clicked the current
22711         active shouldn't be sent to the back.
22712         - Layout the mdi windows when the container is first made visible.
22713         * Form.cs: Give the MdiClient a ref to the containing form when we
22714         create it.
22715         
22716 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
22717
22718         * LinkLabel.cs : link_font could be uninitialized, so populate one
22719           before actual use. Fixed bug #78340.
22720
22721 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
22722
22723         * XplatUIX11.cs : clipboard format native value is IntPtr.
22724           Fixed bug #78283.
22725
22726 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
22727
22728         * Control.cs: 
22729           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
22730             which is passed up the parent chain by DefWndProc
22731           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
22732             to DefWndProc (#77956)
22733         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
22734
22735 2006-05-10  Jackson Harper  <jackson@ximian.com>
22736
22737         * MdiClient.cs: We need to remove the controls from the mdi
22738         collection, when we close the window.
22739         * MdiWindowManager.cs: Special handling of closing mdi windows.
22740         * InternalWindowManager.cs: Make the close method virtual so the
22741         mdi window manager can handle it specially.
22742
22743 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
22744
22745         * DataGrid.cs:
22746           - Recalculate grid when the data source has changed
22747           - Matches styles provided by user from all data sources types
22748         * DataGridTableStyle.cs: For columns that provided by the user set the
22749         with the preferred value is there was unassigned.
22750         * CurrencyManager.cs: throw OnItemChanged event
22751
22752 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
22753
22754         * PictureBox.cs: Don't animate until handle is created. Start animation
22755           when handle is created.
22756
22757 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
22758
22759         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
22760           current codebase.
22761         * XEventQueue.cs: We don't need to provide the extra info
22762
22763 2006-05-10  Jackson Harper  <jackson@ximian.com>
22764
22765         * MdiClient.cs: If the mdi clients parent form has a background
22766         image set, we draw that background image for the mdi area's
22767         background.
22768
22769 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
22770
22771         * TextBoxBase.cs: Set IBeam cursor (#78347)
22772
22773 2006-05-10  Mike Kestner  <mkestner@novell.com>
22774
22775         * ToolBar.cs: fix some text padding issues with ButtonSize
22776         calculation. Update the default size to match MS documentation.
22777         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
22778         button size. Fixes #78296.
22779
22780 2006-05-10  Mike Kestner  <mkestner@novell.com>
22781
22782         * ListBox.cs: use is_visible for scrollbar positioning in case the
22783         control isn't on screen yet.  Fix off by one with Right vs Width
22784         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
22785         
22786 2006-05-10  Jackson Harper  <jackson@ximian.com>
22787
22788         * X11Dnd.cs: Drop to a control with another control on top of it.
22789         * ToolBar.cs: Work on a copy of the buttons list, so that it can
22790         be modified in click handlers. TODO: Look for similar problems in
22791         other controls.
22792
22793 2006-05-09  Jackson Harper  <jackson@ximian.com>
22794
22795         * Form.cs: Window managers need the old window state when setting
22796         window state now.
22797         * InternalWindowManager.cs: Allow the base mdi window manager to
22798         handle more of the MDI only stuff (like maximize buttons).
22799         * MdiWindowManager.cs: Fix some snafus in changing the window
22800         state.  Add all the menu functionality, for both popup and
22801         maximized menus.
22802         * MdiClient.cs: When a new form is selected the currently
22803         activated form is sent to the back, this matches MS.
22804         - Implement a new method to activate the next mdi child window.
22805
22806 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
22807
22808         * Control.cs: 
22809           - Added new InternalCapture method to allow controls to prevent
22810             the capture behaviour on the click handlers
22811           - Switched to use InternalCapture
22812         * ComboBox.cs:
22813           - Using InternalCapture to prevent mouse captures from being released
22814             on mouse button release (Fixes #78100)
22815         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
22816           returns Form borders if a caption is present. (Fixes #78310)
22817
22818 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
22819
22820         * TreeNode.cs: Changed serialization .ctor to not require every field
22821           to be present. (#78265)
22822         * OwnerDrawPropertyBag.cs: Added serialization .ctor
22823
22824 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
22825
22826         * MimeIcon.cs: for is faster than foreach for strings.
22827
22828 2006-05-05  Mike Kestner  <mkestner@novell.com>
22829
22830         * CheckedListBox.cs: update check handling code to not use selected.
22831         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
22832         behavior for visual feedback, motion response, shift/ctrl handling,
22833         and properly deal with all 4 selection modes. Updates to bounds
22834         handling logic.  Add scroll wheel support. [Fixes #77842]
22835
22836 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
22837
22838         * ListView.cs:
22839           - Moved adding of Implicit controls into .ctor. That way, subsequent
22840             creation of the controls will not cause them to think they are 
22841             toplevel windows (fixes #78200 header problem)
22842           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
22843           - Switched visibility setting of header control to use internal field
22844             to avoid triggering handle creation
22845           - Now checking if handle is created before causing a refresh when items
22846             are added (This makes us now match handle creation time with MS)
22847         * Splitter.cs: Removed loading of private splitter cursor, switched to
22848           Cursors version now that that is loading the right ones
22849         * Cursors.cs: Load proper splitter cursors from resources
22850         * Cursor.cs: Added second method of loading resource cursors for the 
22851           VS.Net users amongst us
22852
22853 2006-05-05  Mike Kestner  <mkestner@novell.com>
22854
22855         * ListView.cs: give header_control a minimum size based on the
22856         ListView size.
22857
22858 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
22859
22860         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
22861           window seems to do that with metacity, so set that type. (#78120)
22862
22863 2006-05-05  Mike Kestner  <mkestner@novell.com>
22864
22865         * ListViewItem.cs: fix Details mode checkbox layout bug.
22866         * ThemeWin32Classic.cs: draw a ListView column header for unused space
22867         at the end of the header, if it exists. [Fixes for #78200]
22868
22869 2006-05-04  Jackson Harper  <jackson@ximian.com>
22870
22871         * MdiClient.cs: Add a helper property to get the container form.
22872         * MdiWindowManager.cs: We have to make sure to use the menu origin
22873         when drawing the icons and buttons, this fixes maximized window
22874         icons/buttons on win32.
22875         * InternalWindowManager.cs: Reset the restore captions when a
22876         window goes from Maximized to Minimized and vice versa. Move the
22877         DrawMaximizedButtons into the MdiWindowManager source, tool
22878         windows can't be maximized. NOTE: This could use a little
22879         refactoring if time ever permits.
22880         
22881 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
22882
22883         * TextBox.cs: Add MWFCategoryAttributes
22884         * TextBoxBase.cs: Add MWFCategoryAttributes
22885         * Form.cs: Add MWFCategoryAttributes
22886
22887 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
22888
22889         * Control.cs: Add MWFCategoryAttributes
22890         * ScrollableControl.cs: Add MWFCategoryAttributes
22891
22892 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
22893
22894         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
22895           Divider is true. Fix a little glitch in PropertyToolBar
22896           drawing code
22897
22898 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
22899
22900         * Control.cs:
22901           - Dispose: Call base.Dispose, this causes the disposed event
22902             to be fired (and probably other, more important stuff)
22903           - SetVisibleCore: Set is_visible to true after creating the
22904             window so that the window still gets created invisible (if
22905             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
22906             to generate a WM_ACTIVE message
22907         * Form.cs: Call Dispose when we want to destroy the window, instead of
22908           just destroying the handle (Dispose will do that for us)
22909         * XplatUIX11.cs:
22910           - RootWindow also needs a queue, so we can properly process the
22911             property change events from RootWindow (like Activate)
22912           - Generatic synthetic WM_ACTIVE message when the active window is
22913             being destroyed
22914
22915 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
22916
22917         * LinkLabel.cs: Trigger a recalc of our label dimensions when
22918           bounds are changed
22919
22920 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
22921
22922         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
22923           for determining width and height (image might not be assigned if
22924           we're drawing an imagelist)
22925
22926 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
22927
22928         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
22929         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
22930           height from system
22931         * Theme.cs: No longer returns hardcoded menu height, instead calls
22932           new driver method
22933         * Form.cs (OnLoad): Scaling happens before triggering Load events 
22934           on MS (# 78257)
22935
22936 2006-05-01  Mike Kestner  <mkestner@novell.com>
22937
22938         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
22939
22940 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
22941
22942         * TextBoxBase.cs: Removed Fixme
22943         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
22944
22945 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
22946
22947         * XplatUIX11.cs:
22948           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
22949             the rectangle relative to the parent, considering borders. We
22950             don't really want that.
22951           - ScrollWindow: Fixed warning to be more understandable
22952         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
22953           scrollbars and scroll only the visible area
22954         * RichTextBox.cs: Removed debug output
22955
22956 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
22957
22958         * NumericUpDown.cs (Text): Just use base
22959         * UpDownBase.cs: Ensure txtView is created before using it
22960
22961 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
22962
22963         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
22964           casting to IntPtr to avoid 64bit overflow errors
22965
22966 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
22967
22968         * Control.cs:
22969           - AllowDrop: Don't force handle creation.
22970           - CreateHandle: Added call to tell driver if we're allowed to drop
22971
22972 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
22973
22974         * FileDialog.cs: Remember the last directory not only for the
22975           current instance but also for new FileDialog instances.
22976
22977 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
22978         
22979         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
22980           broke sending async messages
22981
22982 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
22983
22984         * XplatUIX11.cs:
22985           - ScrollWindow: Fixed method. We finally generate expose events again
22986             for scrolled areas. This was causing 'garbage' when scrolling
22987             textbox and other controls that used ScrollWindow
22988           - Switched from using the regular queue for paint events to the MS 
22989             model of 'generating' paint events when the queue is empty.
22990             We use the new XQueueEvent.Paint subclass to store which windows
22991             need painting.
22992           - AddExpose now takes the x/y/width/height of the exposed area
22993             and inserts the window into the paint queue if not already there
22994           - InvalidateWholeWindow: Switched to use new AddExpose method
22995           - UpdateMessageQueue: Added which queue to monitor for paint events
22996           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
22997             the unlikely case nothing above handles it. We reset the expose
22998             pending states to get them off the queue.
22999           - GetMessage: Now pulls a paint event if no other events are in the
23000             queue
23001           - Invalidate: Switched to new AddExpose method
23002           - PeekMessage: Updated to understand pending paint events
23003           - UpdateWindow: Fixed logic bug. We were only updating if the window
23004             didn't need updating. Also switched to sending WM_PAINT directly,
23005             like MS does.
23006         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
23007           and random access Remove(). The random access is needed to handle
23008           UpdateWindow() where a WM_PAINT is sent directly without accessing
23009           the queue.
23010         * ScrollBar.cs: Added Update() calls to cause immediate updates to
23011           allow for better feedback when scrolling. Scrollbars are small and
23012           the immediate update should make it 'feel' more responsive without
23013           slowing things down. ScrollBar still needs it's invaliate logic
23014           updated to not always invalidate the whole bar on certain changes.
23015
23016 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23017
23018         * Control.cs:
23019         (BackColor): if the control does not support a transparent background,
23020         return the default backcolor when the parent backcolor is transparent.
23021
23022 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
23023
23024         * Application.cs: Updated to new StartLoop/GetMessage API
23025         * RichTextBox.cs: Provide some output on RTF parsing errors
23026         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
23027           new queue_id argument to GetMessage and PeekMessage to allow faster
23028           handling of per-thread queues in drivers.
23029         * Hwnd.cs: Added Queue tracking and property
23030         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
23031         * XEventQueue.cs: Added thread trackingA
23032         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
23033         * XplatUIX11.cs:
23034           - Implemented new per-thread queue
23035           - GetMessage: Fixed return/break behaviour on several cases. We were
23036             returning stale messages in some cases, instead of just processing
23037             the next message
23038
23039 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
23040
23041         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
23042
23043 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
23044
23045         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
23046           fixed off-by-one comparisons between Width/Height and Right/Bottom.
23047
23048 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
23049
23050         * PropertyGridView.cs: Fix drop down width.
23051
23052 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
23053
23054         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
23055           a mess in DrawToolBar, so I removed one of them.
23056
23057 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
23058
23059         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
23060           needed (clip). Otherwise we get artifacts.
23061
23062 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
23063
23064         * FixedSizeTextBox.cs: Added constructor to allow specifying which
23065           dimension is fixed
23066         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
23067           and switched FixedSizeTextBox to only be fixed vertical (#78116)
23068         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
23069           if it matches the scale base font (avoids unneeded scaling)
23070
23071 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
23072
23073         * X11DesktopColors.cs: One gtk_init_check should be enough
23074
23075 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
23076
23077         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
23078           match MS behaviour
23079
23080 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
23081
23082         * TextBoxBase.cs: 
23083           - Generate OnTextChanged for Backspace even if we're only deleting
23084             the current selection
23085           - When setting the Text property, only select all text if the
23086             control does not have focus when it is being set. Otherwise
23087             just place the cursor at the beginning of the control
23088
23089 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
23090
23091         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
23092           Added a little helper to draw PropertyGrid ToolBar with a different
23093           border and a different BackColor.
23094         * PropertyGrid.cs: Some background parts didn't get painted with the
23095           correct background color. Added a class that helps us to draw the
23096           correct border for PropertyGridView and a class that helps us to
23097           draw ToolBars with a different backcolor
23098         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
23099
23100 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
23101
23102         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
23103         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
23104
23105 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
23106
23107         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
23108           into the palette entries. Also, since we're working on a copy
23109           we needed to copy the palette back onto the bitmap.
23110         * Cursor.cs: Same fix as XplatUIWin32.cs.
23111
23112 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
23113
23114         * ImageListStreamer.cs: Need to read the var (or we're off)
23115
23116 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
23117
23118         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
23119           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
23120           TextBoxBase.cs: Unused var fixes
23121         * AxHost.cs: Small 2.0 fix
23122         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
23123           as it seems that is what at least Metacity expects. This will make
23124           icons show up on 64bit platforms. We still have some 64bit size
23125           issues, though, since the startup app window size still won't match.
23126
23127 2006-04-25  Mike Kestner  <mkestner@novell.com>
23128
23129         * *.cs: cleanup newly reported exception var unused warnings.
23130
23131 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
23132
23133         * ThemeWin32Classic.cs: Button image alignment now matches exactly
23134           ms
23135
23136 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
23137
23138         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
23139           image. The image position is always the same, no matter if the
23140           button is pressed or not.
23141
23142 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
23143
23144         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
23145           selection and set the correct filename for SaveFileDialog.
23146           Patch by Emery Conrad.
23147
23148 2006-04-24  Mike Kestner  <mkestner@novell.com>
23149
23150         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
23151         check for item.X outside the ClientRect instead of item.Y. Fixes
23152         #78151.
23153
23154 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23155
23156         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
23157         trust that value blindly and do some sanity check. Fixes bug #77814.
23158
23159 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23160
23161         * ImageListStreamer.cs: save the mask as a 1bpp image.
23162
23163 2006-04-21  Mike Kestner  <mkestner@novell.com>
23164
23165         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
23166         pass Checked and Indeterminate to the Theme Engine. Improve
23167         encapsulation with ListBox.
23168         * ListBox.cs: Keep a StringFormat instead of calculating it every item
23169         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
23170         nested types.  Move all CheckState functionality to CheckedListBox.
23171         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
23172         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
23173         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
23174         single base list. Fix scrollbar sizing and placement to mirror MS.
23175         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
23176         used.
23177         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
23178         for CheckedListBox by using new DrawItemState info.  Center the
23179         checkboxes on the items. Use new StringFormat property.
23180
23181 2006-04-18  Jackson Harper  <jackson@ximian.com>
23182
23183         * Form.cs: MdiChildren don't do default locations the same way as
23184         regular forms.  This prevents a crash when trying to position the
23185         mdi windows.
23186
23187 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
23188
23189         * PropertyGridTextBox.cs: Formatting, copyright
23190         * PropertiesTab.cs: Formatting
23191         * PropertyGrid.cs: Formatting
23192         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
23193           click toggling of values
23194           
23195 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
23196
23197         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
23198         * Control.cs (.ctor): verify_thread_handle is static, don't reset
23199           every time a control is created
23200         * Application.cs: Removed obsolete EnableRTLMirroring method
23201
23202 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
23203
23204         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
23205         SelectedIndex to -1. Fixes bug #78121.
23206
23207 2006-04-17  Jackson Harper  <jackson@ximian.com>
23208
23209         * Binding.cs: Handle null values for Current and BindingContext.
23210         This occurs when binding is a little delayed.
23211         * CurrencyManager.cs: return null for Current when there are no
23212         items in the list.
23213         - Hookup to the listchanged event on the DataView and update
23214         bindings when the list is changed.  This fixes late binding of
23215         controls.
23216
23217 2006-04-17  Jackson Harper  <jackson@ximian.com>
23218
23219         * X11Dnd.cs:
23220         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
23221         Ringenbach.
23222
23223 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
23224
23225         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
23226           place
23227         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
23228           with the correct ButtonState
23229
23230 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
23231
23232         * XplatUIX11.cs: Improved distinguishing between window types to
23233           tell the WM a type closer to what the app wants (Fixes #78107)
23234
23235 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
23236
23237         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
23238           GrabHandle
23239
23240 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
23241
23242         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
23243           drawing code to reflect the size grip changes
23244
23245 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23246
23247         * ImageListStreamer.cs: fix handling of the mask that follows the main
23248         bitmap when deserializing and serialize it properly. The generated mask
23249         should better be a 1bpp image, but I'll do that later.
23250
23251 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
23252
23253         * FileDialog.cs: Show something in the DirComboBox on *nix if the
23254           path doesn't fit into some of our Current.Places
23255
23256 2006-04-13  Jackson Harper  <jackson@ximian.com>
23257
23258         * ComboBox.cs: Use borders instead of drawing our own decorations,
23259         try to obey correct rules for heights.
23260         * Theme.cs:
23261         * ThemeNice.cs:
23262         * ThemeClearLooks.cs:
23263         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
23264         this is now handled by borders.
23265         - Remove unused DrawListBoxDecorationSize method.
23266         
23267 2006-04-13  Mike Kestner  <mkestner@novell.com>
23268
23269         * MenuAPI.cs: null guarding for the disbled click check fixes crash
23270         reported by Alex.
23271
23272 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
23273
23274         * ThemeWin32Classic.cs: 
23275           - Fixed CPDrawStringDisabled
23276           - Corrected drawing of disabled menu items
23277           - Fixed drawing of disabled radio buttons (bug #78095)
23278           - Draw check in a disabled CheckBox with color ControlDark 
23279
23280 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
23281
23282         * Form.cs: Use the provided width when calculating the menu size;
23283           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
23284           and ClientSize.Width won't be updated yet
23285         * Application.cs: Use Visible instead of Show() to make form visible,
23286           this way we create the handle later and menusize is considered
23287
23288 2006-04-12  Mike Kestner  <mkestner@novell.com>
23289
23290         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
23291         reporting.
23292
23293 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
23294
23295         * TextBox.cs: Implemented context menu
23296
23297 2006-04-12  Mike Kestner  <mkestner@novell.com>
23298
23299         * ListView.cs: implement box selection. fixes #77838.
23300         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
23301
23302 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
23303
23304         * XplatUIX11.cs: Added setting of window type when transient window
23305           is created (metacity would move it otherwise)
23306         * X11Structs.cs: Added WINDOW_TYPE atoms
23307         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
23308           background (the control is Opaque but still wants transparent
23309           backgrounds)
23310
23311 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
23312
23313         * Control.cs: Added OnPaintBackgroundInternal to allow controls
23314           that set Opaque but don't mean it (like all ButtonBase-derived
23315           controls) to still draw their background
23316         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
23317           the background
23318
23319 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
23320
23321         * Control.cs (PaintControlBackground): Set the graphics object
23322           on our PaintEvent to null to prevent it from being disposed
23323           when the PaintEvent gets disposed
23324
23325 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
23326
23327         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
23328         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
23329
23330 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
23331
23332         * Control.cs: 
23333           - Added transparency check to BackColor property. Transparent
23334             backgrounds are only allowed if the control styles permit it
23335           - Added recursive painting of parent control background and
23336             foreground if a control with a transparent backcolor is drawn
23337             (Thanks to Tim Ringenback for providing his 'hack' as a base
23338              for this patch) Fixes #77985 and #78026.
23339           - Added Opaque style check before calling OnPaintBackground, no
23340             need to draw the background if the control is opaque
23341           - Removed ControlAccessibleObject owner variable (inherited from
23342             base, no need to define again)
23343           - Added some documentation links explaining the drawing events
23344             and styles
23345
23346 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
23347
23348         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
23349           that the affected control is the located at the left border of our
23350           parent (Fixes #77936)
23351
23352 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
23353
23354         * TextBoxBase.cs: When rendering disabled or readonly controls,
23355           draw the background with 'Control' instead of 'Window' color as
23356           long as the user hasn't specifically set a color
23357
23358 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
23359
23360         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
23361           since that won't be updated if the user types text (only if it's
23362           programatically set)
23363
23364 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
23365
23366         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
23367           layout changes do to app-triggered resizes will have the proper
23368           display rectangle for layout
23369
23370 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
23371
23372         * ThemeWin32Classic.cs:
23373           - Make use of the SystemBrushes and SystemPens wherever possible
23374           - Corrected some highlight colors
23375           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
23376             drawing
23377         * Theme.cs: Added Empty field to CPColor struct
23378
23379 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
23380
23381         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
23382           is displayed when calculating the display rectangle. Thanks to Mike
23383           for teaching me the err of my ways.
23384
23385 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
23386
23387         * ScrollableControl.cs:
23388           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
23389             (instead of 0,0) and we now return the real width/height instead of
23390             just the clientrectangle, adjusted for padding. The rectangle is
23391             now cached and created by the new CalculateDisplayRectangle method.
23392           - Created new CalculateDisplayRectange method, which basically does
23393             what get_DisplayRectangle() did originally, but now using the 
23394             right edge instead of DisplayRectangle to determine the size of
23395             our scrollbars
23396           - get_Canvas(): Fixed it to properly calculate canvas for 
23397             right/bottom controls which seem to be placed to the right/bottom
23398             of any controls that have a fixed location
23399           - Removed TODO that's taken care of
23400           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
23401             and SetDisplayRectLocation according to new MSDN2 docs
23402           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
23403             event when that is called, this is added for compatibility
23404           - ScrollControlIntoView(): Implemented.
23405           - Switched scrollbars to be implicit, they shouldn't be selectable
23406         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
23407           call it when the active control is set/changed
23408         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
23409         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
23410           implicit_control variable (used for native Win32 message generation)
23411         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
23412           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
23413         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
23414         * XplatUIStructs.cs: Added ScrollBarCommands enum
23415
23416 2006-04-10  Jackson Harper  <jackson@ximian.com>
23417
23418         * ButtonBase.cs:
23419         * CheckedListBox.cs:
23420         * ComboBox.cs:
23421         * DataGrid.cs:
23422         * DataGridView.cs:
23423         * Form.cs:
23424         * GroupBox.cs:
23425         * ListBox.cs:
23426         * PrintPreviewControl.cs:
23427         * ProgressBar.cs:
23428         * PropertyGrid.cs:
23429         * Splitter.cs:
23430         * StatusBar.cs:
23431         * TrackBar.cs:
23432         * UpDownBase.cs: Fixup base event overrides.
23433         
23434 2006-04-06  Mike Kestner  <mkestner@novell.com>
23435
23436         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
23437         all user-initiated value changes to min <= value <= max-thumbsz+1.
23438         (set_Value): check for vert/horiz when calculating new thumb position.
23439         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
23440         like MS does.
23441         (OnMouseMoveSB): refactor the thumb dragging code and refine
23442         invalidation logic to reduce flicker.
23443         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
23444         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
23445         (UpdateThumbPosition): small code readability cleanup
23446
23447 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
23448
23449         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
23450           different
23451
23452 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
23453
23454         * ThemeNice.cs: Use a better graphics effect when a button is pressed
23455
23456 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
23457
23458         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
23459         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
23460           This dramatically reduces the number of Pen.Dispose calls. 
23461           Where possible call ResPool methods only once instead of calling it
23462           over and over again (for example for the same color).
23463
23464 2006-04-06  Mike Kestner  <mkestner@novell.com>
23465
23466         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
23467         Also remove an unused private field on the collection. Fixes #77972.
23468
23469 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
23470
23471         * ThemeNice.cs: Added ToolBar drawing code
23472
23473 2006-04-06  Mike Kestner  <mkestner@novell.com>
23474
23475         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
23476         I'm assuming that means we need to look up the toplevel for the
23477         provided control. Fixes the crash trace in #77911 but exposes another
23478         crash in some strange reflection usage in NDocGui.
23479
23480 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
23481
23482         * ThemeNice.cs: Gave it a little silver touch and added Images
23483           method
23484         * FontDialog.cs: FontDialog is not resizable
23485         * FileDialg.cs: Added SizeGripStyle.Show
23486
23487 2006-04-05  Jackson Harper  <jackson@ximian.com>
23488
23489         * KeyboardLayouts.cs: Remove warning.
23490
23491 2006-04-05  Jackson Harper  <jackson@ximian.com>
23492
23493         * Control.cs: Enable OnPaintInternal so we can use it for drawing
23494         all of our controls instead of Paint +=.
23495         * ListBox.cs:
23496         * ListView.cs:
23497         * MenuAPI.cs:
23498         * MessageBox.cs:
23499         * NotifyIcon.cs:
23500         * ProgressBar.cs:
23501         * ScrollBar.cs:
23502         * Splitter.cs:
23503         * StatusBar.cs:
23504         * TabControl.cs:
23505         * TextBoxBase.cs:
23506         * ToolBar.cs:
23507         * TrackBar.cs:
23508         * UpDownBase.cs:
23509         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
23510         use OnPaintInternal. Remove Width/Height and Visible checks in
23511         paint handler, this is done at a higher level now.
23512         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
23513         * PaintEventArgs.cs: Add a handled flag so controls that don't
23514         want anymore painting after OnPaintInternal can make sure OnPaint
23515         isn't called.
23516
23517 2006-04-05  Mike Kestner  <mkestner@novell.com>
23518
23519         * Form.cs: fix the menu WndProc hacks to respect the native enabled
23520         state of the form, so that we don't process events when Modal dialogs
23521         are up. Fixes #77922.
23522
23523 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
23524
23525         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
23526           checking is done.
23527
23528 2006-04-05  Mike Kestner  <mkestner@novell.com>
23529
23530         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
23531
23532 2006-04-05  Mike Kestner  <mkestner@novell.com>
23533
23534         * ListView.cs (HeaderMouseMove): null guarding for the over column
23535         when setting up the drag_to_index.  Fixes #78015.
23536
23537 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
23538
23539         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
23540           in the taskbar. Transient windows seem to accomplish that.
23541
23542 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
23543
23544         * Form.cs:
23545           - Re-enabled CreateParams.X/Y code for FormStartPosition
23546           - Added code for manual placement when creating the Control
23547           - Incomplete patch to treat MDI forms differently when
23548             setting the ClientSizeCore. (Still need to figure out handling
23549             x/y coords there)
23550         * XplatUIX11.cs:
23551           - When we're explicitly setting the X/Y position of a non-Child
23552             window, let the WM know. Metacity really wants this.
23553
23554 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
23555
23556         * ThemeNice.cs: Added CPDrawButton
23557
23558 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
23559
23560         * ThemeNice.cs: Changed the color for focused buttons and activated
23561           the arrows for small scroll buttons.
23562
23563 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
23564
23565         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
23566           anymore. Changed some method modifiers to protected (virtual)
23567         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
23568           changes
23569         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
23570           Updated drawing of menus, buttons and progressbars; added
23571           CPDrawBorder3D 
23572
23573 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
23574
23575         * ImageListStreamer.cs: implemented serialization/deserialization
23576         of the images.
23577
23578 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
23579
23580         * ThemeWin32Classic.cs:
23581           - Removed all the DrawFrameControl stuff; CPDrawButton,
23582             CPDrawCheckBox and CPDrawRadioButton are now handled directly
23583             inside the methods
23584           - Updated and corrected the drawing code of CPDrawButton,
23585             CPDrawCheckBox and CPDrawRadioButton to better match ms
23586           - Updated theme checkbox and radiobutton code to use the CP*
23587             methods
23588
23589 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
23590
23591         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
23592           bug is fixed
23593
23594 2006-03-31  Jackson Harper  <jackson@ximian.com>
23595
23596         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
23597         sometimes.
23598         * UpDownBase.cs: Don't CreateGraphics manually, use a
23599         Refresh. Ideally we would invalidate the correct areas here.
23600
23601 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
23602
23603         * XplatUIX11.cs: 
23604           - We now track the mapping state of windows. If a window (or 
23605             one of it's parents) is not mapped we no longer permit
23606             WM_PAINT messages to be generated since we'd otherwise get 
23607             lots of BadMatch X errors. Jackson did all the work figuring
23608             out the problem.
23609           - Destroying the caret if the window it's contained in is 
23610             destroyed. Can't use regular DestroyCaret method since it
23611             might fall into a drawing function (trying to remove the
23612             caret) and with that generate new BadMatch errors. Again,
23613             Jackson tracked this down.
23614           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
23615             make sure we send the messages to all windows. (The old code
23616             would send the WM_DESTROY to the window, and then all child
23617             windows would be 'gone' because the WM_DESTROY handle lookup
23618             would no longer find the destroyed window)
23619         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
23620         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
23621
23622 2006-03-31  Jackson Harper  <jackson@ximian.com>
23623
23624         * ScrollableControl.cs: Dont recalc if we are not visible.
23625
23626 2006-03-31  Mike Kestner  <mkestner@novell.com>
23627
23628         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
23629         the visibility branch.
23630
23631 2006-03-31  Jackson Harper  <jackson@ximian.com>
23632
23633         * ScrollBar.cs: Cap values when incrementing/decrementing.
23634
23635 2006-03-31  Mike Kestner  <mkestner@novell.com>
23636
23637         * MenuAPI.cs: setup menu.tracker for popup/context menus.
23638         * ToolTip.cs: guard against timer expirations with no active control.
23639         Not sure why it happened.
23640
23641 2006-03-31  Mike Kestner  <mkestner@novell.com>
23642
23643         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
23644         text.
23645         * ToolTip.cs: Position the tooltip based on where the cursor is at
23646         popup time, not at MouseEnter time.  Add a Down state so that we don't
23647         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
23648         positioning offset. Lookup DisplaySize at positioning time, since it
23649         can theoretically change during invocation.
23650         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
23651         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
23652
23653 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
23654
23655         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
23656           Fixes behaviour when the Text property of the box is String.Empty
23657
23658 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
23659
23660         * XplatUIX11.cs: Only send mouseleave for our client windows, not
23661           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
23662           a window)
23663
23664 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
23665
23666         * FileDialog.cs: Visual enhancement for the popup buttons in 
23667           PopupButtonPanel
23668
23669 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
23670
23671         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
23672           code
23673
23674 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
23675
23676         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
23677           highlighted menu items to match ms
23678
23679 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
23680
23681         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
23682
23683 2006-03-30  Mike Kestner  <mkestner@novell.com>
23684
23685         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
23686         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
23687         go active to account for HotLight to Selected transition.
23688         * MenuItem.cs: add internal Selected prop. Fill out the Status
23689         property by calculating it from item info. Add HotLight,
23690         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
23691
23692 2006-03-30  Mike Kestner  <mkestner@novell.com>
23693
23694         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
23695
23696 2006-03-29  Jackson Harper  <jackson@ximian.com>
23697
23698         * Form.cs: Implement TODO.
23699
23700 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
23701
23702         * PrintPreviewDialog.cs: Implemented missing methods and events; still
23703           missing proper dialog setup in the constructor
23704
23705 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
23706
23707         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
23708         * Control.cs:
23709           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
23710           - Fixed ResetBindings and removed TODO
23711           - Added check for cross-thread calls to get_Handle()
23712           - Added Marshaller attribute for set_Font to satisfy class status
23713         * FontDialog.cs: Removed TODOs that seemed implemented
23714         * UpDownBase.cs: Removed unneeded TODO and Fixme
23715         * MessageBox.cs: Implemented support for Default button and removed TODO
23716         * FileDialog.cs: Removed obsolete TODO
23717         * DomainUpDown.cs: Removed obsolete TODO
23718         * ButtonBase.cs: Removed obsolete TODO
23719         * XplatUIWin32.cs: Removed obsolete TODO
23720         * Form.cs:
23721           - Removed obsolete TODO
23722           - Calling CheckAcceptButton when the acceptbutton is changed to allow
23723             internal status updates
23724           - Making sure the active control is selected when the control is created
23725         * CurrencyManager.cs: Removed obsolete TODO
23726
23727 2006-03-29  Mike Kestner  <mkestner@novell.com>
23728
23729         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
23730         of PrintPreviewDialog and RichTextBox.
23731
23732 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
23733
23734         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
23735           DarkDark, Light and LightLight colors for a specific color
23736         * ThemeWin32Classic.cs:
23737           - Use Button drawing code to draw RadioButtons and CheckBoxes with
23738             Appearance = Button 
23739           - Make use of the new ResPool helper CPColor
23740           - Draw ProgressBar and StatusBar with correct 3D borders
23741
23742 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
23743
23744         * ColorDialog.cs: Return selected color. Fixes bug #77940.
23745
23746 2006-03-28  Mike Kestner  <mkestner@novell.com>
23747
23748         * ListView.cs: fix Icon layout to plan for scrollbar widths when
23749         calculating col/row counts.
23750
23751 2006-03-28  Mike Kestner  <mkestner@novell.com>
23752
23753         * ColumnHeader.cs:
23754         * ListView.cs:
23755         * ListViewItem.cs:
23756         * Menu.cs: 
23757         switch to explicit interface method implementation for some methods
23758         corcompare identifies as inconsistent with MS.
23759
23760 2006-03-28  Mike Kestner  <mkestner@novell.com>
23761
23762         * MainMenu.cs: 
23763         * Menu.cs:
23764         add a few missing methods from the class status output.
23765
23766 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
23767
23768         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
23769           correct.
23770
23771 2006-03-28  Mike Kestner  <mkestner@novell.com>
23772
23773         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
23774
23775 2006-03-27  Mike Kestner  <mkestner@novell.com>
23776
23777         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
23778         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
23779
23780 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
23781
23782         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
23783
23784 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
23785
23786         * ThemeWin32Classic.cs:
23787           - GroupBox: Inserted a little gap between the text and the lines
23788             on the right side
23789           - Made the code in CPDrawBorder3D more readable
23790           - Corrected the drawing location of the up and down arrows in 
23791             CPDrawScrollButton
23792
23793 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
23794
23795         * ControlPaint.cs: Corrected line widths in DrawBorder for
23796           ButtonBorderStyle Inset and Outset
23797
23798 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
23799
23800         * ThemeWin32Classic.cs:
23801           - Rewrote the totally broken CPDrawBorder3D method. That was
23802             one of the main problems for the terrific ThemeWin32Classic
23803             look
23804           - Updated and corrected Button drawing
23805           - Correct the dimensions of the SizeGrip to match ms ones
23806           - Removed a small drawing glitch in DrawComboBoxEditDecorations
23807         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
23808           Border3DStyle.Sunken to match ms.
23809
23810 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
23811
23812         * ThemeWin32Classic.cs: First small part of the "de-uglify
23813           ThemeWin32Classic" effort, SizeGrip
23814
23815 2006-03-24  Jackson Harper  <jackson@ximian.com>
23816
23817         * XplatUIX11.cs: Give a max idle time of one second, this matches
23818         MS and forces an Idle event every second when there are no other
23819         events in the queue.
23820
23821 2006-03-24  Mike Kestner  <mkestner@novell.com>
23822
23823         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
23824         * ListView.Item.cs: fix layout issues with null image lists and images
23825         smaller than checkbox size.
23826         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
23827         mode like MS does.  It's weird, but consistent.  ;-)
23828         Fixes #77890.
23829
23830 2006-03-24  Mike Kestner  <mkestner@novell.com>
23831
23832         * ListView.cs: Scroll wheel support for the item control.  Fixes
23833         #77839.
23834
23835 2006-03-23  Jackson Harper  <jackson@ximian.com>
23836
23837         * ScrollableControl.cs: Special case negative sized areas, not
23838         zero.
23839         * MonthCalendar.cs: Save the rect of the clicked date so we can
23840         use it for invalidation.
23841         - Try to cut down on the number of invalidates
23842         - Invalidate the rect the mouse is over and was over when moving
23843         the mouse, so we get the focus box following the cursor.
23844
23845 2006-03-23  Mike Kestner  <mkestner@novell.com>
23846
23847         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
23848         focus rectangle drawing. Fixes #77835.
23849
23850 2006-03-23  Mike Kestner  <mkestner@novell.com>
23851
23852         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
23853         the if and else if and reverting back to the original == check on the
23854         None conditional.
23855
23856 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
23857
23858         * FontDialog.cs: Update the example panel if the selected index of
23859           the fontListBox changes.
23860
23861 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
23862
23863         * FileDialog.cs: Make FileDialog remember which directory it was in
23864           last in the same execution.
23865
23866 2006-03-22  Mike Kestner  <mkestner@novell.com>
23867
23868         * FileDialog.cs: make the DropDownMenu on the toolbar display
23869         RadioChecks since they are mutually exclusive and that's what MS does.
23870
23871 2006-03-22  Mike Kestner  <mkestner@novell.com>
23872
23873         * Theme.cs: add Color param to CPDrawMenuGlyph.
23874         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
23875         checks and radio marks and arrows are visible on highlighted items.
23876         * ControlPaint.cs: update to use new Theme signature.
23877
23878 2006-03-22  Mike Kestner  <mkestner@novell.com>
23879
23880         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
23881         is active. Fixes #77870.
23882
23883 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
23884
23885         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
23886           to be focused/selected after startup
23887
23888 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
23889
23890         * ColorDialog.cs: 
23891           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
23892             CustomColors and ShowHelp properties
23893           - Some internal rewrites to get better results when using the
23894             ColorMatrix
23895
23896 2006-03-22  Mike Kestner  <mkestner@novell.com>
23897
23898         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
23899         HoverSelection.  Fixes #77836.
23900
23901 2006-03-22  Mike Kestner  <mkestner@novell.com>
23902
23903         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
23904         ToggleButtons.  (De)Sensitize the Back button around a stack count of
23905         1, not 0.  Update ButtonSize based on a pixel count of the win32
23906         control.  Adjust the toolbar size/location for new button size.
23907
23908 2006-03-22  Jackson Harper  <jackson@ximian.com>
23909
23910         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
23911         true.
23912         * ScrollBar.cs: When doing increments and decrements we need to
23913         set the Value property so that ValueChanged gets raised. A
23914         possible optimization here would be to make an internal SetValue
23915         that doesn't invalidate immediately.
23916         * ToolTip.cs: Tooltips get added to their container (when
23917         supplied) so they get disposed when the container is disposed.
23918         - Don't create tooltips for String.Empty. This prevents all these
23919         little 2-3 pixel windows from showing up when running nunit-gui
23920         and driving me mad.
23921         * Form.cs: Don't set topmost when setting the owner if the handles
23922         haven't been created yet.  The topmost set will happen when the
23923         handles are created.
23924
23925 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
23926
23927         * XplatUIX11.cs:
23928           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
23929           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
23930             visible (to allow them to recalculate their sizes)
23931
23932 2006-03-21  Mike Kestner  <mkestner@novell.com>
23933
23934         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
23935         methods. Removed a ton of redundant code.  Still not really happy with
23936         the border rendering, but I think that's mainly because of the
23937         ControlDarkDark being black instead of a dark grey. Depending on how 
23938         close we want to be, we might want to revisit those color choices.
23939         Among the new features added during the refactor were DropDownArrow
23940         pressed rendering, Disabled image rendering.  Proper flat appearance
23941         boundary rendering.  Removed the Divider and Wrapping dividers since I
23942         can't figure out any combination of themes and conditions to make the
23943         MS control draw a horizontal line on a toolbar despite what the
23944         Divider property docs indicate.
23945         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
23946         conditions and incorrect layout.  Updated to coding standard.
23947         * ToolBarButton.cs: refactored layout and positioning code from
23948         ToolBar to here.  Invalidate wherever possible instead of forcing
23949         redraws of the whole toolbar. 
23950         (Known remaining issues: explicit ButtonSize smaller than provided
23951         images.)
23952
23953 2006-03-21  Mike Kestner  <mkestner@novell.com>
23954
23955         * ContextMenu.cs (Show): use the position parameter instead of just
23956         showing at the MousePosition.
23957
23958 2006-03-21  Jackson Harper  <jackson@ximian.com>
23959
23960         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
23961         control handle this.
23962         * TreeNodeCollection.cs: If we are clearing the root node we need
23963         to reset top_node so calcs can still happen.
23964         * ThemeWin32Classic.cs: This is a Flags so we need to check
23965         properly.
23966         
23967 2006-03-21  Jackson Harper  <jackson@ximian.com>
23968
23969         * DataGrid.cs: Create columns when the binding context has been
23970         changed.
23971         * X11Structs.cs: Keysyms are uints.
23972         - Add size to fix build.
23973
23974 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
23975
23976         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
23977           XplatUIOSX.cs: 
23978           - Added ResetMouseHover method to allow controls to retrigger
23979             hovering if they need it more than once
23980           - Implemented MouseHoverTime and MouseHoverSize properties
23981         * Timer.cs: Start() must reset the interval
23982         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
23983           properties
23984
23985 2006-03-21  Jackson Harper  <jackson@ximian.com>
23986
23987         * X11Keyboard.cs: improved layout detection. Move the nonchar
23988         tables into this file.
23989         * KeyboardLayouts.cs: Move the tables into resource files.
23990
23991 2006-03-21  Mike Kestner  <mkestner@novell.com>
23992
23993         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
23994
23995 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
23996
23997         * Mime.cs: Various speed optimizations. Looking up mime types
23998           is now 2 times faster than before
23999
24000 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
24001
24002         * CreateParams.cs: Added internal menu field
24003         * Control.cs: 
24004           - Switched call order for UpdateBounds; now we always call
24005             the one that also takes ClientSize, and we're calculating the 
24006             client size via driver method in the others. The previous
24007             method of tracking client size by difference wasn't working
24008             for forms where even the starting client size wouldn't match
24009             the overall form size (due to borders) (Part of fix for #77729)
24010           - CreateParams(): Do not use parent.Handle unless the handle is
24011             already created. Causes havoc with Nexxia and throws off our
24012             creation of controls
24013         * XplatUIX11.cs:
24014           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
24015           - Switched handling of ConfigureNotify over to new PerformNCCalc 
24016             method (consolidates code)
24017           - Changed RequestNCRecalc to use new PerformNCCalc method
24018           - Added calls to RequestNCRecalc when menus and borders are changed
24019             to allow app to set NC size. (Part of fix for #77729) This matches
24020             when MS send a WM_NCRECALC on Win32 windows.
24021           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
24022             (Part of fix for #77729). This matches what MS does, they also
24023             send that message when the form is made visible.
24024           - XException.GetMessage: Improved usability of X errors by including
24025             a translation of the window into Hwnd and Control class
24026           - Improved debug info for window creation, reparenting and destruction
24027           - Created helper method WindowIsMapped() [Currently not used]
24028         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
24029         * Form.cs:
24030           - CreateParams: Now setting our menu on the new internal menu field
24031           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
24032             avoid calculating the same property twice
24033         * Hwnd.cs:
24034           - Improved usability of ToString() for debugging purposes
24035           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
24036             determine the height of the menu, instead of just the font. This
24037             required to also create a graphics context and to keep a bmp 
24038             around (for performance reasons)
24039
24040 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
24041
24042         * MenuAPI.cs: Added OnMouseUp method
24043         * Form.cs:
24044           - Now remembering the requested client size, avoids size errors
24045           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
24046             instead of base if the menu is active. This is required due to
24047             control now capturing and releasing on down/up and it would
24048             prematurely release our menu capture
24049
24050 2006-03-17  Jackson Harper  <jackson@ximian.com>
24051
24052         * KeyboardLayouts.cs: Add the czech layouts.
24053
24054 2006-03-16  Jackson Harper  <jackson@ximian.com>
24055
24056         * Control.cs: Use the viewport space when sizing not the controls
24057         client size, so things like ScrollableControl that effect the
24058         viewport size (when scrollbars are added) are computed correctly.
24059         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
24060         of ManagerEntrys.
24061         - Handle creating BindingManagers for null data sources.
24062         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
24063         source, otherwise when rows are added they are added to the 'fake'
24064         datasource and we will crash when trying to set the position in
24065         those rows.
24066         - Use Implicit scrollbars on the datagrid so they arent
24067         selectable.
24068         
24069 2006-03-16  Jackson Harper  <jackson@ximian.com>
24070
24071         * Binding.cs:
24072         * InternalWindowManager.cs:
24073         * MdiWindowManager.cs:
24074         * X11Keyboard.cs: I really want Mike to love me again (fix
24075         compiler warnings).
24076
24077 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
24078
24079         * DataGrid.cs:
24080           - OnMouseDown: Switch to editing mode when clicking on the cell
24081                          even if we're clicking on the cell that's currently 
24082                          selected
24083           - ProcessGridKey: Left/Right now wrap like MS.Net does
24084           - ProcessGridKey: Tab now knows to add a new row when tab is
24085                             pressed in the cell of the last column of the 
24086                             last row
24087           - ProcessGridKey: Enter now adds another row  if pressed in the last
24088                             row and selectes the new row, same column cell
24089           - ProcessGridKey: Home/End navigate columns, not rows, like 
24090                             originally implemented
24091           - Broke ProcessKeyPreview code out into an extra Internal method
24092             so it can be called from the edit code
24093         * DataGridTextBox.cs (ProcessKeyMessage):
24094           - Switched to accept Tab keypresses
24095           - Added F2 handling to allow jumping to the end of the edited cell
24096           - Added logic to allow moving caret left/right inside edited cell
24097             and making the edited cell jump when the caret hits cell borders
24098           - Tab and Enter are now passed to the datagrid after being handled
24099         * TextBoxBase.cs:
24100           - Removed capture code now that Control handles it
24101           - set_SelectionStart now ensures caret is visible
24102
24103 2006-03-16  Jackson Harper  <jackson@ximian.com>
24104
24105         * TrackBar.cs: Debackwards the increment/decrement for handling
24106         mouse clicks on the bar with vertical trackbars.
24107         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
24108         bottom to match MS.
24109
24110 2006-03-16  Mike Kestner  <mkestner@novell.com>
24111
24112         * ListView.cs: make shift/ctrl keyboard and mouse selection 
24113         consistent with the MS control. Fix a bug in
24114         SelectedListViewItemCollection.Clear that was pissing me off for the
24115         better part of a day because the collection was being altered
24116         underneath us as we walked the list.
24117
24118 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
24119
24120         * Control.cs: Not sure how we could miss this so long, but it seems
24121           that MS.Net has Capture set all the way from before calling 
24122           OnMouseDown through sending the mouse events until after
24123           OnMouseUp. This will fix DataGrid's selection being set to end
24124           at the location of the MouseUp.
24125
24126 2006-03-15  Jackson Harper  <jackson@ximian.com>
24127
24128         * BindingContext.cs: Check the binding after its added so that it
24129           can initialize the binding managers and hookup to events.
24130         * Binding.cs: Data members seem to sometimes include rows/cols in
24131           the format Row.Column we now take this into account.
24132           - Hookup to the position changed event so we can update the
24133           control when the position has changed in the data set.
24134         * CurrencyManager.cs: Take into account the row/col naming
24135           convention when creating dataset tables.
24136         * BindingContext.cs: Using a newer better way of storing
24137           datasource/datamember pairs.  Hopefully this better matches MS for
24138           looking up binding managers.
24139
24140
24141 2006-03-15  Jackson Harper  <jackson@ximian.com>
24142
24143         * BindingContext.cs: The currency manager needs the data member
24144         name, if the member is a data set we use the name to find the
24145         correct table.
24146         * CurrencyManager.cs: When creating the list prefer an IList over
24147         an IListSource.
24148         - Attempt to create a DataTable from a DataSet (TODO: might need
24149         some better error checking here, although MS doesn't seem to have much)
24150         - If we have a DataTable create a view and use it as our list.
24151
24152 2006-03-15  Mike Kestner  <mkestner@novell.com>
24153
24154         * ListView.cs: keep a matrix of the icon mode layout to facilitate
24155         keyboard navigation. Support Up/Down/Left/Right selection correctly
24156         for all 4 View modes.
24157         * ListViewItem.cs: add internal row/col fields for icon layouts.
24158
24159 2006-03-15  Jackson Harper  <jackson@ximian.com>
24160
24161         * TabControl.cs: Redraw the tabs when we resize so their newly
24162         calculated sizes are drawn on screen.
24163         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
24164         composite characters.
24165         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
24166         - filter events so that composite characters can be created
24167         patches by peter
24168         * X11Structs.cs: Add XIMProperties enum.
24169
24170 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
24171
24172         * Control.cs (BringToFront, SendToBack): Don't use window or handle
24173           unless it's created
24174
24175 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
24176
24177         * Control.cs (PerformLayout): We don't need to consider visiblity
24178           for anchoring, only for docking. This fixes 'whacky' alignment
24179           in listbox and other controls that use implicit scrollbars after
24180           the previous PerformLayout patch
24181         * ListBox.cs: Switched to use implicit scrollbars
24182           
24183 2006-03-14  Mike Kestner  <mkestner@novell.com>
24184
24185         * ToolBar.cs: 
24186         * VScrollBar.cs:
24187         - chain up the "new event" overrides to base and use
24188         OnEvent to raise them.  Part of fix for bug #76509.
24189
24190 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
24191
24192         * FileDialog.cs: Do not select an item in the parent directory
24193           on backspace
24194
24195 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
24196
24197         * Control.cs (PerformLayout): It would seem that we considered
24198           invisible windows for our layout. Not quite the right thing
24199           to do. Now we don't any longer, thereby fixing bug #76889.
24200
24201 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
24202
24203         * Control.cs (CanFocus): I goofed. A control can have focus 
24204           even though it's not selectable. Made it match MS docs.
24205
24206 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
24207
24208         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
24209           center by default (fixes #76895)
24210         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
24211           all uses of Border3DSides.All with the explicit ORd together
24212           Left|Right|Top|Bottom because I assume that nobody was aware 
24213           that All also implies a center fill. Most places I checked had
24214           a fill right above.
24215         * ProgressBarStyle.cs: Added
24216
24217 2006-03-13  Mike Kestner  <mkestner@novell.com>
24218
24219         * ListView.cs: fix breakage in drag shadow header positioning 
24220         from Peter's csc compilation fix.
24221
24222 2006-03-13  Mike Kestner  <mkestner@novell.com>
24223
24224         * ListView.cs: fix NRE produced by backspacing twice in a focused
24225         FileDialog.
24226
24227 2006-03-13  Mike Kestner  <mkestner@novell.com>
24228
24229         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
24230
24231 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
24232
24233         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
24234           be changed
24235         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
24236           the allowed size before making programmatic size changes
24237
24238 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
24239
24240         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
24241           set, metacity is broken and will still use the emty sizes in 
24242           the struct. (Fix for #77089)
24243
24244 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
24245
24246         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
24247           WindowExStyles and marked both enums as Flags
24248         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
24249           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
24250           to match WindowStyles split
24251         * XplatUIX11.cs:
24252           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
24253           - Updated to match WindowStyles split
24254         * XplatUIWin32.cs:
24255           - Fixed FosterParent creation, was using ExStyle on the Style field
24256             (This should help with Popup focus issues)
24257           - Updated to match WindowStyles split
24258
24259 2006-03-13  Jackson Harper  <jackson@ximian.com>
24260
24261         * MdiWindowManager.cs: Use the system menu height. Fixes some
24262         strange sizing issues.
24263
24264 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
24265
24266         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
24267         * TextBoxBase.cs:
24268           - Scroll to caret after inserting text (#77672)
24269           - Make scroll range one pixel higher, fixes off-by-one error (and
24270             makes underlines visible on the last line)
24271
24272 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
24273
24274         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
24275           the keyboard state from being stuck with keys in 'pressed' state when
24276           focus is switched away via keyboard
24277         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
24278           reset the keyboard if no X11 KeyUp events are expected to come
24279         * X11Structs.cs: Switched type of Visible to bool to match driver
24280
24281 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
24282
24283         * TextControl.cs:
24284           - Switched caret to be just 1 pixel wide, matches MS and looks less
24285             clunky
24286           - Moved caret display 1 pixel down from the top of the control
24287             to improve view
24288           - InsertCharAtCharet: Update the selection start if moving the caret
24289             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
24290           - No longer always creating the caret when the caret methods are
24291             called. Only the actual ShowCaret/HideCaret will do that now
24292           - Only setting caret visible if the owner control has focus
24293           - UpdateView: Added invalidation-shortcut logic for center and right 
24294             aligned text. Previously we'd update all according to the left
24295             logic which caused drawing errors. Also fixed height of invalidated
24296             areas, now properly invalidating the whole area (was off-by-one)
24297           - owner_HandleCreated: Always generate the document when the
24298             handle is created; this ensures that 
24299         * TextBoxBase.cs:
24300           - Fixed situation where caret would disappear under the right
24301             window border, also improved scrolling behaviour on left-
24302             aligned textboxes
24303           - Fixed right-aligned textboxes to have a border to the
24304             right instead of the caret being under the right border
24305         * XplatUIX11.cs:
24306           - Switched from 'nested' to simple visible/not visible tracking 
24307             for caret (part of fix for #77671)
24308           - No longer passing through translated FocusIn/FocusOut messages
24309             since we were notifying too often and the wrong windows. Instead
24310             we just notify our focussed window of receiving or loosing focus
24311         * XplatUIWin32.cs: Switched from 'nested' show/hide 
24312           counting for caret to simple visible yes/no behaviour (part of 
24313           fix for #77671)
24314
24315 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
24316
24317         * Mime.cs: Remove debug code...
24318
24319 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
24320
24321         * MimeGenerated.cs: Removed
24322         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
24323           and subclasses) from /usr/(local/)share/mime and
24324           $HOME/.local/share/mime.
24325
24326 2006-03-10  Jackson Harper  <jackson@ximian.com>
24327
24328         * MdiWindowManager.cs: Recalc the NC area when a window is
24329         maximized/restored so that the menu area is drawn on forms that
24330         don't have a menu.
24331
24332 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
24333
24334         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
24335           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
24336           us to force a WM_NCCALCRESIZE message being sent. This is needed
24337           for MDI maximizing.
24338
24339 2006-03-10  Jackson Harper  <jackson@ximian.com>
24340
24341         * Form.cs: We need to use the ActiveMenu when calculating menu
24342         height.
24343         - Fix nullref when the window manager hasn't been created yet.
24344         * Control.cs: Fix nullref when we try to bring a control to the
24345         front that has no parent.
24346         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
24347         height.
24348         - Add a dummy item to the maximized menu so it always has the
24349         correct height. Otherwise when there are no menus we don't get our
24350         icon and buttons.
24351         
24352
24353 2006-03-10  Jackson Harper  <jackson@ximian.com>
24354
24355         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
24356         stuff.
24357         * Form.cs: Make the window_state internal so the window managers
24358         can track it.
24359         - When an MDI child is maximized let its window manager create the
24360         main menu (so it can add its icon).
24361         - Notify the window managers of state changes
24362         - Let the window manager paint its buttons and handle button
24363         clicks on the menu when it is maximized.
24364         * InternalWindowManager.cs: Move the prev_bounds into the mdi
24365         window manager, since tool windows don't use it, only mdi windows.
24366         - Tell the main form that we don't want it to handle NCPAINT
24367         itself to avoid extra painting.
24368         - Handle clicks on a maximized windows menu.
24369         - Handle window state changes
24370         - Handle minimize/maximize clicks correctly by setting the window state.
24371         * MdiWindowManager.cs: Add an icon menu that (the menu you get
24372         when clicking on the forms icon).
24373         - New method to create a forms maximized menu. This is its normal
24374         menu + an icon.
24375         - Handle window state changes.
24376         - Handle sizing of maximized windows.  Maximized windows are just
24377         drawn bigger then the parent visible area. All controls are still
24378         there, they are just outside the visible area (this matches windows).
24379         * MdiClient.cs: No scrollbars when a child window is maximized.
24380         - Let the children windows figure out how big they should be when
24381         sizing maximized windows.
24382         - Implement a version of ArrangeIconicWindows somewhat similar to
24383         Windows version.  There are some little differences, but I don't
24384         think any app will rely on the layout of minimized mdi windows.
24385
24386 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
24387
24388         * Padding.cs: Several fixes to allow compiling with csc 2.0
24389
24390 2006-03-09  Jackson Harper  <jackson@ximian.com>
24391
24392         * Menu.cs:
24393         * MenuItem.cs: Cheap hack so we can add items to the list without
24394         the events being raised.  This allows adding mdi items during
24395         drawing. TODO: Should probably find a better time to add the items.
24396
24397 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
24398
24399         * ThemeWin32Classic.cs:
24400           - CheckBox_DrawText: Added logic to not wrap if not enough space
24401             is available (Fix for bug #77727)
24402           - RadioButton_DrawText: Added logic not to wrap if not enough
24403             space is available (Fix for bug #77727). Also removed some
24404             duplicate code, DrawString always drawing the regular text
24405             before hitting the if statement.
24406
24407 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
24408
24409         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
24410
24411 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
24412
24413         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
24414         * ContainerControl.cs: Partial implementation of some 2.0 scaling
24415           methods. Moved the new 2.0 properties into alphabetical order with
24416           other properties and added MonoTODO tags
24417
24418 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
24419
24420         * AutoScaleMode.cs: Added. Fix build.
24421
24422 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
24423
24424         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
24425           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
24426           and was requiring premature handle creation for calls from above
24427         * Form.cs, Control.cs: Removed handle arguments from calls to
24428           CalculateClientRect()
24429
24430 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
24431
24432         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
24433           drag_column.column_rect is MarshalByRef and can't be used that way
24434
24435 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
24436
24437         * AxHost.cs: Added deserialization constructor for 
24438           AxHost+State (fixes 77743)
24439
24440 2006-03-09  Mike Kestner  <mkestner@novell.com>
24441
24442         * ListView.cs: 
24443         - Added column drag reordering for details view.
24444         - fixed behavior when mouse is dragged off column and
24445         AllowColumnReorder is false.
24446         * ColumnHeader.cs: clone the format too in Clone.
24447         * Theme.cs: add DrawListViewHeaderDragDetails method.
24448         * ThemeWin32Classic.cs:
24449         - impl new method for drawing drag column shadows and targets.
24450         - support column offset for details mode in DrawListViewItem.
24451
24452 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
24453
24454         * TextControl.cs: Reset the char_count when the document is cleared
24455           (Fixes bug reported on mono-winforms mailing list)
24456
24457 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
24458
24459         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
24460           of calling base we simply process the key ourselves, since both
24461           DefWindowProc and the handled method would set m.Result. 
24462           (Fixes #77732)
24463
24464 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
24465
24466         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
24467           method also moves the window; instead implemented a copy of
24468           Control.ScaleCore (Part of fix for #77456)
24469         * TextBoxBase.cs: 
24470           - Created new CreateGraphicsInternal method to allow providing
24471             a graphics context when no handle is created without triggering
24472             handle creation. (Part of fix for #77456)
24473           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
24474         * TextControl.cs: 
24475           - Switched Constructor to require TextBoxBase instead of Control (to
24476             allow uncast access to CreateGraphicsInternal)
24477           - Safeguarded use of owner.Handle property. No longer accessing it
24478             unless the handle is already created.
24479           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
24480           - Now triggering a recalc when owning control becomes visible
24481         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
24482           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
24483           premature handle creation (Part of fix for #77456)
24484         * Control.cs:
24485           - We now only destroy our double-buffering buffers when the
24486             control is resized or disposed, but not when visibility
24487             changes. (The code even re-created them twice every time)
24488           - Now requiring a redraw of the buffer on visibility changes
24489             (fixes bug 77654 part 2)
24490           - Not passing OnParentVisibleChanged up unless the control
24491             is visible
24492           - CanFocus: Fixed to match MS documentation
24493           - Focus: Fixed to return actual focus state and to check if
24494             setting focus is legal before setting it
24495
24496 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
24497
24498         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
24499           when to draw focus rectangle by looking at parent focus and
24500           selected state instead. This fixes TabPages on Linux sometimes
24501           having none or multiple focus rectangles.
24502         * XplatUIX11.cs (SetFocus): 
24503           - Don't set the focus if the same window already has focus
24504           - Use SendMessage instead of PostMessage (like it's Win32
24505             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
24506             to match MS behaviour
24507         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
24508           are not selectable.
24509
24510 2006-03-07  Jackson Harper  <jackson@ximian.com>
24511
24512         * PictureBox.cs: Revert line I accidently committed last week.
24513
24514 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
24515
24516         * Control.cs: 
24517           - Added new IsRecreating and ParentIsRecreating properties to
24518             allow testing if RecreateHandle has been called on ourselves
24519             or one of our parents
24520           - WndProc(WM_DESTROY): If our control handle is being recreated
24521             we immediately need to create the handle when receiving the
24522             destroy, that way our child windows find a valid parent handle
24523             when they themselves are being recreated upon WM_DESTROY receipt
24524             (fix for bug #77654 part 1)
24525         * XplatUIX11.cs:
24526           - DestroyWindow: WM_DESTROY must be sent to our own window before
24527             notifying any child windows. MS documents that child windows
24528             are still valid when WM_DESTROY is received. (Control now relies on
24529             this behaviour)
24530           - Added some fine-grain debug options
24531
24532 2006-03-06  Jackson Harper  <jackson@ximian.com>
24533
24534         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
24535         box and base calculations off this.
24536         * MdiChildContext.cs:
24537         * MdiWindowManager.cs: Don't need to ensure scrollbars here
24538         anymore.
24539         
24540 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
24541
24542         * Splitter.cs: In situations where the affected control is added
24543           to the parent's control list after the splitter, we would not
24544           populate affected. Now we try populating it on mousedown, if
24545           it's not already set, and force it to be re-set whenever our
24546           parent changes.
24547
24548 2006-03-03  Matt Hargett  <matt@use.net>
24549
24550         * Control.cs: implement Control.Padding
24551         * Padding.cs: -Padding.All returns -1 when constructing with the
24552         implicit default ctor
24553         -Padding.ToString() matches MS.NET
24554         * ContainerControl.cs: implement
24555         ContainerControl.AutoScaleDimensions
24556         * ListControl.cs: implement ListControl.FormattingEnabled
24557         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
24558         * ButtonBase.cs:
24559         * TabPage.cs: Implement UseVisualStyleBackColor.
24560         * PictureBox.cs: Implement PictureBox.InitialImage.
24561
24562 2006-03-03  Mike Kestner  <mkestner@novell.com>
24563
24564         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
24565         event declarations to proxy to base event.
24566         * ListViewItem.cs: update to use ItemControl.
24567         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
24568         * ThemeWin32Classic.cs: update to new ListView theme API and fix
24569         column header label rendering for 0 width columns.
24570
24571 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
24572
24573         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
24574           that causes the control to be created. Fixes #77476.
24575
24576 2006-03-02  Jackson Harper  <jackson@ximian.com>
24577
24578         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
24579         expose_pending.
24580
24581 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
24582
24583         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
24584           passed in for the EventArgs (fixes #77690)
24585
24586 2006-03-01  Jackson Harper  <jackson@ximian.com>
24587
24588         * ScrollBar.cs: Refresh afterbeing resized.
24589
24590 2006-02-28  Mike Kestner  <mkestner@novell.com>
24591
24592         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
24593         Clean up a tracker compile warning.
24594         * MenuItem.cs: add internal PerformPopup method.
24595         [Fixes #77457]
24596
24597 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
24598
24599         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
24600           implicit expose) when the text is set to null
24601
24602 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
24603
24604         * RichTextBox.cs (FlushText): When newline is true, we always
24605           need to split the line, even if no text is on it and we may
24606           never eat newlines. (Fixes #77669)
24607
24608 2006-02-28  Mike Kestner  <mkestner@novell.com>
24609
24610         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
24611         and set Selected instead.
24612         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
24613         collections.
24614
24615 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
24616
24617         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
24618
24619 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
24620
24621         * FontDialog.cs:
24622           - Got rid of the panel. All controls are now directly added to
24623             the dialog form
24624           - It is now possible to set a font with the Font property
24625           - MinSize and MaxSize property do now what they should
24626           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
24627           - Searching and selecting a font with the font textbox works now,
24628             the same applies to the style and size textbox
24629           - Draw the correct 3D border in the example panel
24630           - Fixed a little mem leak (unused fonts didn't get disposed)
24631           - Many other internal updates/rewrites...
24632           - Fix typo
24633
24634 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
24635
24636         * TextControl.cs: 
24637           - InsertRTFFromStream: Added 'number of characters inserted' argument
24638           - set_SelectedRTF: Now using the number of characters to calculate
24639             the new location for the selection and cursor (x/y cannot be used
24640             due to potentially already wrapped text)
24641
24642 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
24643
24644         * TextControl.cs: Added property and implemented means to allow 
24645           disabling recalculation of a document (can be used to speed up
24646           multiple inserts and is needed to make RTF inserts predictable, see
24647           bug #77659)
24648         * RichTextBox.cs: Using the new NoRecalc property of Document to
24649           keep x/y insert locations predictable. Also makes it faster inserting
24650           large chunks of RTF
24651
24652 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
24653
24654         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
24655           it's easier for a child control to handle the other messages without
24656           having to duplicate the special functionality
24657         * TextBoxBase.cs
24658           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
24659             code to handle processing the key ourselves, in order to get 
24660             access to the result of KeyEventArgs.Handled. We now only call 
24661             ProcessKey if they key hasn't been handled already. Fixes #77526.
24662           - set_Text: If null or empty string is given, just clear the 
24663             document. Fixes part of #77526
24664
24665 2006-02-27  Jackson Harper  <jackson@ximian.com>
24666
24667         * SizeGrip.cs: Paint the background color before painting the grip
24668         so things look right.
24669         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
24670
24671 2006-02-27  Mike Kestner  <mkestner@novell.com>
24672
24673         * ListView.cs:
24674           - Restructure layout and invalidation model to remove a ton of
24675           flicker from the control and speed up performance in general.
24676           - Add manual column resize, flickers like crazy, but I already have
24677           some ideas on how I'll fix that. (#76822)
24678           - Merge the three Icon-based views into a single layout method.
24679           - Move item selection interaction logic from the item since 
24680           interaction with the collections is more appropriate to the view.
24681           - Deselection on non-item clicks.
24682         * ListViewItem.cs:
24683           - Encapsulate most of the layout. Add some internal props to trigger
24684           layout.  Move to a model where Items invalidate themselves instead
24685           of just invalidating the whole control every time something changes.
24686           - Invalidate on Text/Caption changes.
24687           - switch to an offset based layout model to avoid having to absolute
24688           position every element on item moves.
24689           - correct checkbox layout to conform to MS layout.
24690         * ThemeWin32Classic.cs:
24691           - refactor some column header drawing code.
24692           - fix string justification for column headers (#76821)
24693           - make SmallIcon labels top justified for compat with MS impl.
24694         * ThemeClearlooks.cs:
24695           - adjust to new ListViewItem internal checkbox bounds api.
24696
24697 2006-02-27  Jackson Harper  <jackson@ximian.com>
24698
24699         * Control.cs:  Change where implicit controls fall in the zorder.
24700         They are now on top of all children.
24701         - Synced AddImplicit code with Add
24702         - Removed unused enumerator.
24703         * SizeGrip.cs: Remove the TODO as its been TODONE.
24704
24705 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
24706
24707         * TextControl.cs(Insert): Combine the last lines unless the insertion
24708           string ends with \n\n, otherwise we leave one line too many (Fixes
24709           something I noticed with the testapp for #77526; the bug itself was
24710           already fixed in the previous checkin)
24711
24712 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
24713
24714         * RichTextBox.cs:
24715           - SelectionColor and SelectionFont methods no longer set absolute
24716             styles. Instead, the keep font or color respectively (This 
24717             resolves a long-standing FIXME in the code)
24718           - When flushing RTF text, the insert code now considers text trailing
24719             behind the insertion point (Fixes the bug where when replacing
24720             the selected text via SelectedRTF the remainder of the line behind 
24721             the selection would stay on the first insertion line)
24722         * TextBoxBase.cs:
24723           - AppendText now updates the selection points after inserting text
24724           - AppendText now ensures that the last tag (sometimes 0-length) of
24725             the document is used for the style information (Fixes part of 
24726             bug #77220)
24727         * TextControl.cs:
24728           - Created new FontDefiniton class to allow describing partial style
24729             changes
24730           - StreamLine() now takes a lines argument, to allow it to decide
24731             whether an encountered zero-length tag is the last in the document
24732             (which must be kept to not loose the font/color contained in it,
24733             for later appends)
24734           - Created Combine() and Split() methods for Marker structs, to 
24735             support marker updates due to reformatted documents (soft line
24736             wraps)
24737           - Implemented Document.CaretTag setter
24738           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
24739             of the last line (Not the cause, but also exposed by bug #77220)
24740           - Added LineTag argument to InsertString method, to allow callers
24741             to force a certain tag to be used (required to force use of the
24742             trailing zero-length tag of a document)
24743           - Now updating markers in Combine(), to avoid stale tag markers
24744           - Added some method descriptions to aid maintenance
24745           - Implemented new FormatText concept, allowing additive/subtractive
24746             formatting by only specifying the components that are to be 
24747             changed. This was needed for resolving the RTB.SelectedColor/
24748             RTB.SelectedFont fixmes
24749           - Added Break() support method to allow breaking up linetags (used
24750             for partial formatting)
24751           - Added GenerateTextFormat() method. It is used for partial 
24752             formatting and allows to generate a full font/color from given
24753             attributes and an existing tag.
24754
24755 2006-02-26  Jackson Harper  <jackson@ximian.com>
24756
24757         * XplatUIX11.cs:  Use the correct caption height.
24758         - Translate hittest coordinates to screen coords to match MS.
24759         * XplatUIWin32.cs: When we create MDI windows we need to reset
24760         some of the style flags, so we get a nice blank window, and can
24761         draw all the decorations ourselves.
24762         - Set a clipping rectangle on the non client paint event, the
24763         window manager drawing code needs one.
24764         * Form.cs: The window manager needs to know when the window state
24765         has been updated.
24766         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
24767         don't need to factor in border and title sizes in these
24768         methods. TODO: Remove the args and fix the call points.
24769         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
24770         properly.
24771         - Let the driver set the cursors.
24772         - Improve active window handling
24773         - Correct sizes for title bars and buttons.
24774         - Match MS drawing better
24775         * MdiWindowManager.cs: We don't need to handle border style
24776         updates specially anymore.
24777         - Check for scrollbars when windows are done moving
24778         - Handle Active properly.
24779         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
24780         correctly. I am spewing the exception though, so we don't hide the
24781         bugs.
24782         
24783 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
24784
24785         * DataGridViewRowPostPaintEventArgs.cs,
24786           DataGridViewCellPaintingEventArgs.cs,
24787           DataGridViewRowCollection.cs,
24788           DataGridViewRowPrePaintEventArgs.cs,
24789           DataGridViewCell.cs: Clear a few warnings and implement a few
24790           exceptions that should be thrown.
24791
24792 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
24793
24794         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
24795           'inheriting' our parent's (non-default) cursor. (Part of
24796            the fix for #77479)
24797
24798 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
24799
24800         * XplatUIX11.cs: Fixed cast to make csc happy
24801
24802 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
24803
24804         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
24805           it's for the client area (part of fix for #77479 and needed
24806           for MDI window cursor handling)
24807         * XplatUIX11.cs
24808           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
24809             the appropriate default cursors and also passing the message
24810             up the parent chain 
24811           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
24812             for non-client areas
24813
24814 2006-02-15  Jackson Harper  <jackson@ximian.com>
24815
24816         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
24817         is a real MDI window
24818
24819 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
24820
24821         * X11DesktopColors.cs: Instead of checking the desktop session
24822           string for "KDE" check if it starts with "KDE"
24823
24824 2006-02-10  Jackson Harper  <jackson@ximian.com>
24825
24826         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
24827         systems).
24828
24829 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
24830
24831         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
24832           errors
24833         * ColorDialog.cs:
24834           - Got rid of the panel. All controls are now directly added to
24835             the dialog form
24836           - Changed to mono coding style
24837
24838 2006-02-10  Jackson Harper  <jackson@ximian.com>
24839
24840         * InternalWindowManager.cs: We don't need the set visibility to
24841         false hack anymore now that peter has written beautiful shutdown
24842         code.
24843
24844 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
24845
24846         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
24847           where already explicitly destroyed
24848
24849 2006-02-10  Jackson Harper  <jackson@ximian.com>
24850
24851         * MdiClient.cs: Handle the case where windows are too high or to
24852         the left and we need scrollbars.
24853
24854 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
24855
24856         * MimeIcon.cs: Added some icons
24857         * FileDialog.cs:
24858           - Fixed bug #77477
24859           - Got rid of the panel. All controls are now directly added to
24860             the dialog form
24861           - Changed to mono coding style
24862           - On Linux "My Computer" and "My Network" will now show some
24863             more usefull information. A new class, MasterMount, gathers
24864             this information from /proc/mount. Updated MWFFileView to make
24865             use of this information
24866           - Fixed a bug that caused FileDialog to crash when
24867             ".recently_used" file had a zero size
24868           - FilterIndex does now what it should
24869           - Some Refactoring
24870         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
24871             FileDialog changes
24872
24873 2006-02-09  Jackson Harper  <jackson@ximian.com>
24874
24875         * ComboBox.cs: Don't touch if null.
24876
24877 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
24878
24879         * Cursor.cs: 64bit safeness fix
24880         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
24881
24882 2006-02-09  Jackson Harper  <jackson@ximian.com>
24883
24884         * Form.cs: If a form is made into an MDI form update the styles so
24885         all the props can get set correctly.
24886         - Kill the mdi_container when we dont need it anymore.
24887         * InternalWindowManager.cs: Add missing NOT
24888
24889 2006-02-08  Jackson Harper  <jackson@ximian.com>
24890
24891         * InternalWindowManager.cs: Respek clipping when drawing MDi
24892         decorations.
24893
24894 2006-02-08  Jackson Harper  <jackson@ximian.com>
24895
24896         * Hwnd.cs: Add bits to track non client expose events.
24897         * XplatUIX11.cs: Track non client expose events on the hwnd. This
24898         gives us a proper invalid rect and will allow for some nice
24899         optimizations with NC client drawing
24900         - MDI windows are children windows, so move their style handling
24901         into the child window block.
24902         * InternalWindowManager.cs: Remove a state reset that was
24903         getting invoked at the wrong time. Fixes managed windows getting
24904         into a 'stuck' captured state.
24905
24906 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
24907
24908         * TextControl.cs (Document.ctor): Now initializing 
24909           selection_anchor. Fixes #77493
24910
24911 2006-02-07  Jackson Harper  <jackson@ximian.com>
24912
24913         * TrackBar.cs: The increment/decrements were backwards.
24914
24915 2006-02-07  Mike Kestner  <mkestner@novell.com>
24916
24917         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
24918         to the instance itself.
24919
24920 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
24921
24922         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
24923           on ulongs and pointers, the size differs between 32bit and 64bit
24924           systems. 
24925
24926 2006-02-07  Mike Kestner  <mkestner@novell.com>
24927
24928         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
24929         for 64 bit platforms to work around a metacity bug. 
24930
24931 2006-02-07  Jackson Harper  <jackson@ximian.com>
24932
24933         * TrackBar.cs: Process the input keys we need, and hookup to
24934         KeyDown instead of using WndProc, so we get key messages.
24935
24936 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
24937
24938         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
24939           machine we're on. 
24940         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
24941           we need to translate the XdndVersion atoms array before sending it
24942
24943 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
24944
24945         * XplatUIX11.cs: 
24946           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
24947             number of bits for the property, not the number of bytes. The
24948             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
24949             but would not crash since it specified 8 bits instead of 4 bits)
24950           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
24951             defined as XID -> long in the C headers)
24952           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
24953             references since those are now IntPtr to begin with
24954           - Switched all Atom.XXX 'int' casts to IntPtr casts
24955           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
24956           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
24957           - Added XChangeActivePointerGrab DllImport (for X11DnD)
24958         * X11Structs.cs:
24959           - Changed 'int' type for Atoms in XEvent structures to IntPtr
24960           - Changed atom in HoverStruct to be IntPtr
24961         * X11DnD.cs:
24962           - Removed local DllImports, switched code to use those from XplatUIX11
24963           - Removed/fixed casts related to the switch of Atom to be a IntPtr
24964
24965 2006-02-06  Mike Kestner  <mkestner@novell.com>
24966
24967         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
24968         method signatures in the import region.  There may still be some
24969         lingering struct marshaling issues, as I didn't drill down into those.
24970         Yet.
24971
24972 2006-02-06  Jackson Harper  <jackson@ximian.com>
24973
24974         * ComboBox.cs: Dont manually set the top_item, this is computed
24975         when the scrollbar position is set.
24976
24977 2006-02-06  Mike Kestner  <mkestner@novell.com>
24978
24979         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
24980         startup crashes on amd64.  There's other fixes needed.  All pinvoke
24981         usage of Atom needs to be mapped to IntPtr for example.  And there are
24982         likely other int/long issues to be addressed.
24983
24984 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
24985
24986         * FileDialog.cs: One more...
24987
24988 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
24989
24990         * FileDialog.cs: Next try
24991
24992 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
24993
24994         * FileDialog.cs: First part of fix for #77464
24995
24996 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
24997
24998         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
24999           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
25000           AcceptButton border drawing.
25001
25002 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
25003
25004         * Form.cs: Moved positioning of form after auto scaling is applied,
25005           otherwise it would possibly use wrong form size.
25006
25007 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
25008
25009         * Control.cs (RecreateHandle): No need to re-create any child
25010           controls, the child windows will get destroyed automatically by
25011           the windowing system or driver, and re-created when the handle
25012           is being accessed the first time. Fixes #77456
25013         * Form.cs: No longer setting the form to closing if the handle is 
25014           being recreated. This seems like the right thing to do, don't
25015           have a bug or testcase for this, though.
25016
25017 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
25018
25019         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
25020           controls to avoid unwanted side effects
25021
25022 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
25023
25024         * Control.cs: 
25025           - ScaleCore needs to scale the bounds, not the ClientSize of the 
25026             control. Fixes #77416.
25027           - DefaultSize is 0,0 for control
25028         * TextBoxBase.cs: 
25029           - DefaultSize is 100, 20
25030           - SetBoundsCore: Now enforcing the height, no matter if the provided
25031             height is more or less than the preferred one, as long as AutoSize
25032             is on
25033         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
25034
25035 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
25036
25037         * Control.cs:
25038           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
25039             call unless both performLayout is true *and* we have a pending
25040             layout change
25041           - ResumeLayout: MS does not completely nest Suspend and Resume,
25042             they bottom out at 0, fixed our code to match that.
25043           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
25044             SetBoundsCore, we were updating even when we shouldn't. This fixes
25045             swf-anchors mis-anchoring when resizing the app fast and lots.
25046           - UpdateDistances: Now only setting the left and top distance if 
25047             we have a parent and are not suspended, this is based on
25048             a suggestion by Don Edvaldson in bug #77355.
25049           - OnVisibleChanged: Fixed logic when to create the control. We may
25050             not create the control if we have no parent or if it's not visible;
25051             switched to using Visible property instead of is_visible field 
25052             since the property also considers parent states. This fixes a bug
25053             when starting Paint.Net
25054
25055 2006-02-02  Jackson Harper  <jackson@ximian.com>
25056
25057         * Form.cs: If the forms handle hasn't been created yet don't call
25058         into xplatui to make it top most, just set the topmost flag on the
25059         form in CreateParams
25060         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
25061
25062 2006-02-01  Jackson Harper  <jackson@ximian.com>
25063
25064         * ScrollableControl.cs: Refactored the Recalculate method a
25065         little, this wasn't handling all the variants of bottom and right
25066         bars needed to be added and added/removed based on their
25067         counterparts being added/removed (which changes the drawable
25068         size). Also we special case client widths and heights of 0 and
25069         don't add the scrollbar for those.
25070
25071 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
25072
25073         * XplatUIX11.cs: 
25074           - Added method to get AbsoluteGeometry(); currently unused, but might
25075             be used in the future, if we try again to figure out toplevel
25076             coordinates with some more crappy window managers
25077           - Added FrameExtents() method to retrieve the WM set decoration size
25078           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
25079             to deal with at least KDE, FVWM and metacity (Fixes #77092)
25080         * Hwnd.cs: 
25081           - Added whacky_wm tracking var for metacity
25082           - Added logic to have default menu height if the actual menu height
25083             has not yet been calculated (part of fix for #77426)
25084         * Form.cs: Keep track whether client size has been set and re-set 
25085           it if a menu is added/removed afterwards (Fixes #77426)
25086
25087 2006-01-31  Jackson Harper  <jackson@ximian.com>
25088
25089         * Control.cs: When a new Site is set on the component attempt to
25090         pull the AmbientProperties from it.
25091
25092 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
25093
25094         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
25095           in the background of the owning form. Fixes #77332
25096
25097 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
25098
25099         * MimeIcon.cs: Fix for #77409
25100
25101 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
25102
25103         * XplatUIX11GTK.cs: Initial import
25104
25105 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
25106
25107         * FixedSizeTextBox: fixes class signature
25108
25109 2006-01-30  Jackson Harper  <jackson@ximian.com>
25110
25111         * FixedSizeTextBox.cs: New internal class that represents a
25112         textBox that will not be scaled.
25113         * TreeView.cs:
25114         * ComboBox.cs:
25115         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
25116         standard TextBox.
25117                 
25118 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
25119
25120         * XplatUIX11.cs: Retrieve default screen number instead of
25121           assuming 0. Attempted fix for #77318
25122
25123 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
25124
25125         * XplatUIWin32.cs: 
25126           - GetWindowPos: When a window is parented by FosterParent, use 
25127             the desktop instead of FosterParent as the base to get coordinates
25128           - CreateWindow: Don't make FosterParent the parent window for Popups
25129             if we don't want a taskbar entry, Popups automatically don't get one
25130         * Hwnd.cs: Need to call remove to actually remove the key from the
25131           hash table
25132
25133 2006-01-30  Mike Kestner  <mkestner@novell.com>
25134
25135         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
25136
25137 2006-01-30  Jackson Harper  <jackson@ximian.com>
25138
25139         * TreeView.cs:
25140         * TreeNode.cs: Raise events no matter how the treenode is
25141         checked. Patch by Don Edvalson.
25142
25143 2006-01-30  Jackson Harper  <jackson@ximian.com>
25144
25145         * TreeNode.cs: Signature fix.
25146
25147 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
25148
25149         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
25150
25151 2006-01-20  Mike Kestner  <mkestner@novell.com>
25152
25153         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
25154         event forwarding when menus are active.
25155         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
25156         Most of the patch is pdb's with a little rework.
25157
25158 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
25159
25160         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
25161           Removed GetMenuDC and ReleaseMenuDC methods; replaced
25162           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
25163         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
25164         * InternalWindowManager.cs: Added use of PaintEventStart/End to
25165           handling of WM_NCPAINT message, now passing the PaintEventArgs to
25166           the PaintWindowDecorations method
25167         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
25168         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
25169         * MenuAPI.cs: Made tracker window invisible
25170         * XplatUIWin32.cs:
25171           - Removed GetMenuDC and ReleaseMenuDC methods
25172           - Implemented the client=false path for PaintEventStart and
25173             PaintEventEnd
25174
25175 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
25176
25177         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
25178         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
25179           styles
25180         * Form.cs: 
25181           - MaximizeBox, MinimizeBox: Recreate the handle when setting
25182             the style
25183           - CreateParams: Reworked the styles to match MS look'n'feel,
25184             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
25185             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
25186
25187 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
25188
25189         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
25190           window is not mapped, since otherwise every form that's being 
25191           created is considered minimized, which is wrong.
25192         * Form.cs: Catching the exception and returning our internal value
25193           instead
25194
25195 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
25196
25197         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
25198           SetWindowMinMax() to have means to tell the driver about the minimum,
25199           maximum and maximized state window sizes. (Part of the fix for #76485)
25200         * Form.cs:
25201           - Implemented tracking of minimum and maximum window size, now calling
25202             new SetWindowMinMax() driver method to tell the driver (Part of the
25203             fix for #76485)
25204           - Finished handling of WM_GETMINMAXINFO method, now setting all values
25205             (Completes fix for #76485)
25206           - Calling new SetWindowMinMax driver method when the handle for a 
25207             form is created, to make sure the driver knows about it even if
25208             the values have been set before the window was created
25209           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
25210             to avoid messing up our anchoring calculations (partial fix
25211             for #77355)
25212         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
25213         * XplatUIX11.cs:
25214           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
25215           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
25216             (and presumably other freedesktop.org compliant WMs). Left the
25217             assumption unmapped=minimized, needed for SetVisible to work.
25218           - Now setting the window state when creating windows
25219           - Fixed SetVisible to consider/set the window state when mapping
25220             a Form. We cannot set the state before it's mapped, and we cannot
25221             use Form.WindowState once it's mapped (since it would ask the
25222             driver and get 'normal'. Therefore, we grab the state before
25223             mapping, map, and then set state.
25224           - Implmemented SetWindowMinMax method; Metacity does not seem to
25225             honor the ZoomHints, though.
25226         * XplatUIWin32.cs:
25227           - Removed MINMAXINFO (moved to XplatUIStructs)
25228           - Added SetWindowMinMax stub (on Win32 the only way to set that
25229             information is in response to the WM_GETMINMAXINFO message, which
25230             is handled in Form.cs)
25231           - Added logic to SetVisible to set the proper window state when a 
25232             form is made visible (fixes #75720)
25233
25234 2006-01-26  Jackson Harper  <jackson@ximian.com>
25235
25236         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
25237         same way we handle them with Invoke.
25238
25239 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
25240
25241         * Form.cs:
25242           - Added tracking of window state so CreateParams can return
25243             the appropriate style
25244           - Moved setting of WS_CAPTION style in CreateParams to allow
25245             styles without caption
25246         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
25247           control if the TextBox property is accessed. Fixes #77345
25248         * Control.cs:
25249           - get_Created: now uses is_disposed and is_created to determine
25250             return value (suggested by Jackson)
25251           - CreateHandle: No longer exits if the handle is being recreated
25252           - RecreateHandle: If the handle is not yet created call the 
25253             appropriate method to create either control or handle. If the
25254             control is already created CreateHandle will simply exit instead
25255             of just creating the handle
25256         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
25257           now SendMessage WM_DESTROY directly to the control when DestroyWindow
25258           is called.
25259         * XplatUIX11.cs: 
25260           - When DestroyWindow is called, instead of waiting for the 
25261             DestroyNotification from X11, we directly post it to the WndProc
25262             and immediately dispose the hwnd object.
25263             Same applies to DestroyChildWindows, and this obsoletes the
25264             expose_pending tracking. Contrary to Win32 behaviour we destroy our
25265             child windows before our own, to avoid X11 errors.
25266           - Removed the direct sending of WM_PAINT on UpdateWindow
25267         * XplatUIWin32.cs:
25268           - Reworked DoEvents and GetMessage to allow access to internal queue
25269             even when trying non-blocking access to the queue.  Fixes #77335. 
25270             Based on a patch suggestion by Don Edvalson. The new private
25271             GetMessage can now also be used as a backend for a PeekMessage
25272             frontend version.
25273         * XplatUI.cs: Improved debug output for CreateWindow
25274
25275 2006-01-25  Jackson Harper  <jackson@ximian.com>
25276
25277         * Help.cs: Allow param to be null. Patch by Don Edvalson.
25278
25279 2006-01-24  Jackson Harper  <jackson@ximian.com>
25280
25281         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
25282         when we have a MaxDropItems lower then the selected index.
25283
25284 2006-01-24  Jackson Harper  <jackson@ximian.com>
25285
25286         * Control.cs: Don't allow selection of non visible controls, allow
25287         selection of controls without parents.
25288
25289 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
25290
25291         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
25292         * DataGridDrawingLogic.cs: Add editing row only when is necessary
25293
25294 2006-01-23  Jackson Harper  <jackson@ximian.com>
25295
25296         * UpDownBase.cs: Make the textbox handle all the selection and
25297         tabbing. This fixes tabing to updown controls.
25298
25299 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
25300
25301         * TextBoxBase.cs: fixes exception thown the object was null
25302
25303 2006-01-23  Jackson Harper  <jackson@ximian.com>
25304
25305         * ButtonBase.cs: Just use the base CreateParams. They set
25306         visibility and enabled correctly.
25307         * ComboBox.cs:
25308         * TrackBar.cs:
25309         * MonthCalendar.cs: Lets let the base set as much of the
25310         createparams as possible so we don't have duplicate code all over
25311         the place.
25312
25313 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
25314
25315         * ThemeGtk.cs: Added TrackBar and some experimental code to
25316           get double buffering back
25317
25318 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
25319
25320         * DataGrid.cs: Allows row number set internally higher than the last
25321         when creating a new row. Restores the editing functionality.
25322
25323 2006-01-20  Mike Kestner  <mkestner@novell.com>
25324
25325         * MimeIcon.cs: delay Image creation until the icons are accessed
25326         instead of creating 190 scaled images on GnomeHandler startup.
25327
25328 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
25329
25330         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
25331           first call base before processing the event. Fixes #77279
25332
25333 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
25334
25335         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
25336           that the stride for the GDI bitmap would match the stride of
25337           a DIB or a Cursor.
25338
25339 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
25340
25341         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
25342
25343 2006-01-19  Jackson Harper  <jackson@ximian.com>
25344
25345         * ComboBox.cs: Hookup the text controls keydown event so we get
25346         those when the text control has the focus.
25347
25348 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
25349
25350         * Label.cs: Now using the base events instead of defining new ones;
25351           this allows us to just call the base properties without having to
25352           duplicate all base property logic 
25353
25354 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
25355
25356         * Label.cs: A label by default is not a tabstop (Fixes one of our
25357           failing nunit tests)
25358
25359 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
25360
25361         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
25362         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
25363
25364 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
25365
25366         * Cursor.cs: Reimplemented creating cursor bitmaps without using
25367           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
25368           This fixes #77218
25369         * XplatUIWin32.cs: 
25370           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
25371             constructor creates images that can't be saved. Part of the fix
25372             for #76103
25373           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
25374           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
25375             bug fix for handling window state in forms properly)
25376
25377 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
25378
25379         * ThemeGtk.cs: Simplify ScrollBar drawing
25380
25381 2006-01-18  Jackson Harper  <jackson@ximian.com>
25382
25383         * Splitter.cs: Set the default dock style for the splitter control
25384         in the constructor.
25385
25386 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
25387
25388         * ThemeGtk.cs: Corrected StateType and ShadowType for
25389           gtk_paint_box
25390
25391 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
25392
25393         * Control.cs: Make use of Theme.DoubleBufferingSupported
25394         * ThemeGtk.cs:
25395           - Added drawing for flat style buttons
25396           - Added ScrollBar drawing
25397
25398 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
25399
25400         * ThemeClearlooks.cs: Removed some unneeded code.
25401         * ThemeGtk.cs: First part of ThemeGtk enhancements.
25402
25403 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
25404
25405         * LinkLabel.cs: We need to update the hover drawing when
25406           leaving the control as well.
25407
25408 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
25409
25410         * DataGrid.cs: Clicking on non empty areas in the columns
25411            area was giving an exception
25412
25413 2006-01-17  Jackson Harper  <jackson@ximian.com>
25414
25415         * ThemeWin32Classic.cs:
25416         * ListView.cs: Do not draw/clip the headers when the header style
25417         is None.
25418
25419 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
25420
25421         * DataGrid.cs: Fixes 77260
25422         
25423 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
25424
25425         * DataGrid.cs: Clicking on a column on a empty grid was giving
25426           an exception
25427
25428 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
25429
25430         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
25431           or any keypress will crash the grid.
25432
25433 2006-01-17  Mike Kestner  <mkestner@novell.com>
25434
25435         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
25436         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
25437         invisible/previously-visible items.
25438         [Fixes #76909]
25439
25440 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
25441
25442         * ThemeClearlooks.cs:
25443         - Added CL_Draw_Button method; now other theme controls that are 
25444           not derived from button or do not have a button can draw buttons
25445           too
25446         - Updated ComboBox drawing
25447         - Beautified RadioButton drawing
25448         - Corrected drawing of bottom and left tabs
25449         - Beautified DateTimePicker and MonthCalendar
25450         - Added CPDrawButton and CPDrawRadioButton
25451
25452 2006-01-16  Jackson Harper  <jackson@ximian.com>
25453
25454         * ComboBox.cs: Set the initial value of the scrollbar to the
25455         current index. Reduce the numbers of refreshs and IndexOfs called.
25456
25457 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
25458
25459         * FileDialog.cs: When the file listview is focused hitting the
25460           backspace key moves the fileview to the parent directory
25461
25462 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
25463
25464         * Form.cs: 
25465           - Added RecreateHandle call when changing taskbar visibility to 
25466             trigger reparenting in Win32 driver (Fixes #75719)
25467           - If a window has minimize or maximize buttons, it cannot have
25468             a help button
25469         * XplatUIWin32.cs:
25470           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
25471             the toplevel form with FosterParent (A toolwindow not on the
25472             taskbar) (Fixes #75719)
25473           - Made FosterParent a toolwindow
25474
25475 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
25476
25477         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
25478
25479 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
25480
25481         * ToolTip.cs: If SetToolTip is called from a control and the mouse
25482           is currently over that control, make sure that tooltip_window.Text
25483           gets updated
25484
25485 2006-01-13  Mike Kestner  <mkestner@novell.com>
25486
25487         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
25488
25489 2006-01-13  Jackson Harper  <jackson@ximian.com>
25490
25491         * TreeView.cs: On MS GetNodeAt never actually factors in the X
25492         value passed.  Also redraw the selected node when we recieve
25493         focus, so tabbing between trees works correctly.
25494
25495 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
25496
25497         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
25498           ~/.gconf/%gconf-tree.xml, so use
25499           .gconf/desktop/gnome/interface/%gconf.xml
25500
25501 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
25502
25503         * TextControl.cs: Draw text in gray if control is disabled
25504
25505 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
25506
25507         * TreeView.cs: Draw the focus rectangle outside the highlight, to
25508           make sure it's always visible. Fixes #76680.
25509
25510 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
25511
25512         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
25513
25514 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
25515
25516         * PageSetupDialog.cs: Added.
25517         * PrintDialog.cs: Attributes.
25518         * PrintPreviewControl.cs: Updates.
25519         * PrintPreviewDialog.cs: Updates.
25520         
25521 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
25522
25523         * Control.cs: Undid my selection check fix, since it's not needed
25524         * TextBoxBase.cs:
25525           - Now considering the presence of hscroll/vscroll when sizing
25526             vscroll/hscroll respectively. Fixed bug #77077
25527           - Added Left/Up/Down/Right to IsInputKey list to prevent
25528             ContainerControl from stealing them. This fixes what I broke
25529             with my last checkin.
25530
25531 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
25532
25533         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
25534           I finally understand how the property can be set without a setter :-)
25535
25536 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
25537
25538         * Application.cs:
25539           - Switched RunLoop to use static Message.Create to create a 
25540             Message object
25541           - Added PreProcessMessage call in runloop for keyboard events; this
25542             is part of the fix for #77219, I overlooked this originally in the
25543             MSDN doc for PreProcessMessage
25544         * Control.cs:
25545           - Removed call to PreProcessMessage from handling of keyboard 
25546             messages; it's supposed to be done in the message pump
25547           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
25548             per MSDN documentation.
25549           - IsInputChar: All chars are input chars by default; removed the 
25550             parent calling chain, MS does not document that
25551           - PreProcessMessage: If IsInputChar is true, we want to return false
25552             to allow dispatching of the message
25553           - When selecting the next control, now also check that we're not
25554             selecting ourselves again and therefore return a false positive.
25555         * TextBoxBase.cs:
25556           - Tried to match return values for IsInputKey and ProcessDialogKey
25557             to what MS returns; moved processing of our special keys outside
25558             ProcessDialogKey since MS does not seem to return true on those.
25559           - Moved code that previously was in ProcessDialogKey into new private
25560             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
25561           - Reworked handling of WM_CHAR to not have to duplicate code from
25562             Control.cs anymore, instead we simply call down to base.
25563            
25564 2006-01-12  Jackson Harper  <jackson@ximian.com>
25565
25566         * ComboBox.cs: We always need to refresh the text area when
25567         EndUpdate is called. Fixes the combobox in the file dialog.
25568         * Control.cs: Don't create the creator_thread until the controls
25569         handle is created.  Also in InvokeRequired we check if the
25570         creator_thread is null. This gives the effect of InvokeRequired
25571         returning true if the controls handle is not created yet, and
25572         matches MS.
25573
25574 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
25575
25576         * XplatUI.cs:
25577           - Added StartLoop() driver method. This is used to allow drivers to
25578             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
25579             loop for a particular thread
25580           - Added EndLoop() driver method. This is called once the message
25581             pump for the thread is shut down
25582           - Added SupportsTransparency method to allow the driver to indicate
25583             opacity support for windows
25584         * Form.cs:
25585           - Removed TODO attribute, completed AllowTransparency property
25586           - Added documented logic to Opacity
25587         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
25588           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
25589           versions of CompatibleTextRendering
25590         * X11Structs.cs: Added opacity atom to our atom enumeration
25591         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
25592           of a form might be set before it's reparented by the WM, and we need
25593           the opacity value without calling up to Form)
25594         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
25595           SupportsTransparency() driver methods
25596         * Application.cs: Now calling StartLoop and EndLoop driver methods
25597         * XplatUIX11.cs:
25598           - Added opacity atom registration
25599           - Added StartLoop()/EndLoop() methods. They're empty right now but
25600             will need to get implemented when we switch to a per-thread queue
25601           - Implemented SupportsTransparency() method
25602           - Implemented SetWindowTransparency() method
25603           - Added support for setting the opacity value when a window is
25604             reparented (since the opacity needs to be set on the WM frame)
25605         * XplatUIOSX.cs, XplatUIWin32.cs:
25606           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
25607
25608 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
25609
25610         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
25611
25612 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
25613
25614         * FileDialog.cs: Added ToolTip for MWFFileView
25615         * MimeIcon.cs: Rewrote GnomeHandler.
25616           - Get currently used gnome icon theme from
25617             ($HOME)/.gconf/%gconf-tree.xml
25618           - Make use of inherited icon themes
25619           - Support SVG icon themes like Tango via librsvg
25620
25621 2006-01-12  Miguel de Icaza  <miguel@novell.com>
25622
25623         Revert's Jackson's revert which broke 2.0 builds.   Fix both
25624         builds. 
25625         
25626         * Application.cs: Move the use_compatible_text_rendering outside
25627         the NET_2_0 define.  If we ever need to use the
25628         use_compatible_text_rendering on the individual controls they will
25629         access the variable from the common shared code paths.
25630
25631 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
25632
25633         * XplatUI.cs:
25634           - Added more granular debug options
25635           - Added method to print both window text and id
25636           - Switched debug output to use new Window() debug method
25637           - Added IsEnabled() driver method
25638           - Added EnableWindow() driver method
25639         * Form.cs:
25640           - Removed end_modal; no longer needed, new loop handles termination
25641             via 'closing' variable
25642           - If form is modal, setting DialogResult will now initiate loop
25643             termination via 'closing' variable
25644           - Added support for is_enabled/WS_DISABLED to CreateParams
25645           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
25646             does all the work
25647           - Removed code that's now in RunLoop from ShowDialog()
25648           - Added various documented sanity checks to ShowDialog()
25649           - Added handling of WM_DESTROY message; we set 'closing' on getting
25650             the message to indicate the message pump to terminate
25651           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
25652             send by the Application.ExitThread method. (We send the message
25653             to destroy the window after all other events have been
25654             processed through the queue, instead of destroying the handle 
25655             directly)
25656           - Moved code from Close() method to WM_CLOSE handler; added logic
25657             to only send close-related events if the form is not displayed
25658             modal
25659         * Splitter.cs (..ctor): Fixed typo in resource name
25660         * Control.cs:
25661           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
25662             brush now
25663           - set_Cursor: Now only setting calling into XplatUI if the handle for
25664             the control is already created; this avoids implict handle creation
25665             or crashes if it's not created
25666           - set_Enabled: Now setting the enabled state via the new driver method
25667             instead of just tracking it
25668           - CreateParams: Added logic to set WS_DISABLED based on enabled state
25669           - CreateControl: Reordered event firing and method calls to more
25670             closely fire events in the order MS does. Now setting the
25671             enabled state in the driver when creating the control.
25672           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
25673             match MS order
25674         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
25675           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
25676         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
25677         * Hwnd.cs:
25678           - Added tracking of window enabled state (get_Enabled/set_Enabled)
25679           - Added EnabledHwnd property to easily allow a driver to find the
25680             handle of the first enabled window in the parent chain (this is
25681             used by drivers to pass up input events of disabled windows)
25682         * XplatUIDriver.cs: Added IsEnabled() method
25683         * Application.cs:
25684           - Removed crude and obsolete exiting tracking variable
25685           - Removed internal ModalRun(); replaced by RunLoop()
25686           - Implemented private CloseForms() method to allow closing all 
25687             windows owned by a particular (or all) threads
25688           - Exit() now properly closes all windows without forcing the message
25689             pump to quit
25690           - Removed obsolete InternalExit() method
25691           - Changed Run() methods to use new RunLoop() message pump
25692           - Implemented new RunLoop() method for both modal and non-modal forms
25693         * CommonDialog.cs:
25694           - get_CreateParams: Added setting of WS_DISABLED
25695           - Simplified ShowDialog(); now all the work is done in RunLoop(),
25696             invoked via Form.ShowDialog()
25697         * NativeWindow.cs: We don't remove the window from the collection when
25698           the handle is destroyed; there might still be messages for it in the
25699           queue (mainly the resulting WM_DESTROY); instead it will be removed
25700           when Control calls InvalidateHandle in the WM_DESTROY handler
25701         * XplatUIX11.cs:
25702           - CreateWindow: Added logic to handle the WS_DISABLED window style
25703           - EnableWindow: Implemented based on Hwnd.Enabled
25704           - GetMessage: Reset PostQuitState so the method can be called again
25705           - Implemented support for disabled windows (passing messages to the
25706             first enabled parent) in handling all input messages
25707           - Added optimizations for handling Expose events
25708           - Implemeted new driver method IsEnabled()
25709           - Now always resetting paint pending tracking vars when we start paint
25710           - Re-implemented UpdateWindow via just sending a WM_PAINT message
25711         * XplatUIOSX.cs: Added IsEnabled method stub
25712         * XplatUIWin32.cs: Implemented new IsEnabled() method
25713
25714 2006-01-11  Jackson Harper  <jackson@ximian.com>
25715
25716         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
25717         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
25718         variables a little.
25719         * ColorDialog.cs: Clear out the old form before adding the new
25720         panel.  
25721
25722 2006-01-11  Jackson Harper  <jackson@ximian.com>
25723
25724         * X11Dnd.cs: Make sure to add all the text formats when adding
25725         strings to the data object.
25726         * TreeNodeCollection.cs: When adding to a sorted tree we need to
25727         do some redrawing too.  Also change the UpdateNode to an
25728         UpdateBelow so the newly added node gets painted.
25729         
25730 2006-01-11  Miguel de Icaza  <miguel@novell.com>
25731
25732         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
25733         LinkLabel.cs, PropertyGrid.cs: Implement the
25734         UseCompatibleTextRendering property for 2.x
25735
25736         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
25737
25738 2006-01-11  Jackson Harper  <jackson@ximian.com>
25739
25740         * TreeView.cs: Use the property for setting the selected node so
25741         the correct events get raised.
25742         * TreeNode.cs: Update the tree when the fore/back colours of a
25743         node are set.
25744
25745 2006-01-10  Jackson Harper  <jackson@ximian.com>
25746
25747         * TreeView.cs: Allow setting SelectedNode to null.
25748
25749 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25750
25751         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
25752
25753 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25754
25755         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
25756
25757 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25758
25759         * PrintDialog.cs: Added attributes and set default property values.
25760
25761 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25762
25763         * PrintControllerWithStatusDialog.cs: 
25764         Added PrintControllerWithStatusDialog.
25765
25766 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25767
25768         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
25769         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
25770
25771 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
25772
25773         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
25774
25775 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
25776
25777         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
25778         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
25779
25780 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
25781
25782         * MimeIcon.cs: Added internal class SVGUtil.
25783
25784 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
25785
25786         * FileDialog.cs: Don't crash if there are two files with the
25787           same name but different locations.
25788
25789 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
25790
25791         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
25792         dates across multiple month grids. Used to not highlight entire 
25793         month, but does now.
25794         
25795 2006-01-06  Jackson Harper  <jackson@ximian.com>
25796
25797         * MonthCalendar.cs: Removed DoEvents call to prevent a running
25798         message loop. Change timer intervals to numbers that seem more
25799         natural.
25800
25801 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
25802
25803         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
25804           object for location info since screen object is now implemented.
25805
25806 2006-01-05  Jackson Harper  <jackson@ximian.com>
25807
25808         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
25809         * AsyncMethodResult.cs: We no longer use a WeakReference for the
25810         AsyncMethodResult, this is because we ALWAYS want the
25811         ManualResetEvent to get set.
25812         * Control.cs: When disposing use an async invoke to call shutdown
25813         code, so that thigns don't block on the finalizer thread.  Also
25814         check if we even have a message loop before trying to send
25815         messages, if we don't then don't bother sending messages.
25816         - No more weak references for async methods
25817         * XplatUIDriver.cs: No more weak references for async methods.
25818
25819 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
25820
25821         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
25822           returns two FontFamily with the same name
25823
25824 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
25825
25826         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
25827           drawing disabled text. Instead using the ColorGrayText color
25828
25829 2006-01-04  Jackson Harper  <jackson@ximian.com>
25830
25831         * TreeNode.cs: redraw the node when its image index is changed.
25832
25833 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
25834
25835         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
25836           time I checked there are no others like it.
25837
25838 2006-01-04  Jackson Harper  <jackson@ximian.com>
25839
25840         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
25841         this gives the behavoir I was looking for.
25842         * Control.cs: Special case Invoking EventHandlers, this matches MS
25843         and fixes part of bug #76326.
25844
25845 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
25846
25847         * ThemeClearlooks.cs, FileDialog.cs:
25848           - Reflect the latest Theme class changes
25849           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
25850             with DateTime
25851             
25852 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
25853
25854         * Theme.cs: Cache UI resource images and resize them if needed
25855
25856 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
25857
25858         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
25859           is called. This fixes the crash in Nexxia when setting the font
25860           attributes in the chat. [However, RTF needs a look-over to make sure
25861           that all SelectionXXX methods handle the special case that selection
25862           is empty and therefore the change must be applied to all text starting
25863           at the cursor/selection start]
25864
25865 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
25866
25867         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
25868           XplatUIOSX.cs: Added SendMessage and PostMessage methods
25869         * X11Keyboard.cs: Switched to new way of calling PostMessage
25870
25871 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
25872
25873         * Theme.cs: Added theme interface for images to allow the theme to
25874           control what images are used for things like FileDialog, MessageBox
25875           icons, etc.
25876         * MessageBox.cs: Now uses the new Theme icon/image interfaces
25877
25878 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
25879
25880         * FileDialog.cs:
25881           - Removed some dead code
25882           - Opening a recently used file does work now
25883           - Small UI enhancements
25884           - Refactoring
25885
25886 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
25887
25888         * FileDialog.cs: Forgot too add __MonoCS__
25889
25890 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
25891
25892         * FileDialog.cs: We are able to read recently used files now let's
25893           go on and write them.
25894
25895 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
25896
25897         * FileDialog.cs: Breathe some life into "last open"/"recently used"
25898           button
25899         * MimeIcon.cs: Do a check for the top level media type also
25900
25901 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
25902
25903         * ThemeClearlooks.cs:
25904           - Added CPDrawStringDisabled
25905           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
25906             some chars if the text doesn't fit into text_rect
25907           - DrawListViewItem: If View = View.LargeIcon center the image;
25908             rewrote the drawing of ListViewItem.Text if View = 
25909             View.LargeIcon
25910
25911 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
25912
25913         * MimeIcon.cs: Use default KDE icon theme if there is no
25914           "48x48" directory for the current icon theme, fixes #77114
25915         * Mime.cs: Disable not working and actually not used code. 
25916         * ThemeWin32Classic.cs:
25917           - Replace "new SolidBrush" in GetControlBackBrush and
25918             GetControlForeBrush with ResPool.GetSolidBrush
25919           - Changed DrawListViewItem from private to protected virtual
25920         * FileDialog.cs:
25921           - Added form.MaximizeBox = true
25922           - Don't throw an exception if there is a broken symbolic link
25923
25924 2005-12-23  Jackson Harper  <jackson@ximian.com>
25925
25926         * TabControl.cs: Give the panels focus, keyboard navigation is
25927         fixed so this works correctly now.
25928         - We need these key events also.
25929         * ToolBar.cs: Remove some of the poor mans double buffering.
25930         
25931 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
25932
25933         * ComboBox.cs: The internal TextBox now returns the focus.
25934
25935 2005-12-23  Jackson Harper  <jackson@ximian.com>
25936
25937         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
25938
25939 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
25940
25941         * Control.cs: Removed debug code
25942         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
25943           implicit children
25944
25945 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
25946
25947         * Control.cs: When creating the control, update the Z-order after
25948           all it's children are created, too. (Fixes nexxia not showing
25949           picturebox bug)
25950
25951 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
25952
25953         * Control.cs: Do not update the anchoring distances if layout is
25954           suspended, instead do it once layout is resumed
25955
25956 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
25957
25958         * Control.cs: 
25959           - After many hours of debugging, for both Jackson and
25960             myself, it turns out that it helps to set the parent of a control
25961             if you want to actually see it onscreen. In the spirit of that
25962             discovery, we're now setting the parent of the control and
25963             it's children when the control's handle is created. This fix
25964             will make Lutz Roeder's Reflector run happily. 
25965           - now just creating the handle instead of the whole control when
25966             getting a graphics context for the control.
25967
25968 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
25969
25970         * ScrollableControl.cs: When calculating the canvas, don't consider
25971           the scrollbar widths. Instead, predict if horizontal scrollbar
25972           will affect canvas when deciding on vertical display and vice versa.
25973
25974 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
25975
25976         * RichTextBox.cs: Set default RTF font for documents that don't
25977           have a font table (Fixes #77076)
25978
25979 2005-12-22  Jackson Harper  <jackson@ximian.com>
25980
25981         * TextBoxBase.cs: It's difficult to do, but you can have an empty
25982         clipboard. This prevents a NullRef in that case.
25983         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
25984         clipboard. PRIMARY is for the currently selected text only. (We
25985         should implement PRIMARY at some point.
25986
25987 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
25988
25989         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
25990           a Unicode function with a structure that was defined in Ansi way.
25991           This fixes #76942.
25992
25993 2005-12-21  Jackson Harper  <jackson@ximian.com>
25994
25995         * StatusBar.cs: Statusbar handles its fore/back colours on it's
25996         on. Because thats how it rolls. (and this avoids it using ambient
25997         colours).
25998         * ThemeWin32Classic.cs: Use the proper back color for filling.
25999         * Menu.cs: Use the system menu bar color for drawing menu
26000         bars. Using the window back color will bring ambient colours into
26001         the picture.
26002
26003 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
26004
26005         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
26006           Bitmaps were created and not disposed.
26007
26008 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
26009
26010         * Control.cs (CreateControl): Don't do anything if the control is
26011           already created, otherwise we'd fire the OnCreated event more than
26012           once
26013
26014 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
26015
26016         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
26017           will always match. Instead return -1. Fixes #76464.
26018
26019 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
26020
26021         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
26022           neither the beginning nor the end of the line (Fixes bug #76479)
26023
26024 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
26025
26026         * Control.cs:
26027           - ControlNativeWindow.ControlFromHandle(): Now handling situation
26028             where handle is invalid
26029           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
26030             instead of slower linear search
26031         * NativeWindow.cs: Don't remove the window from the hashtable until
26032           after the driver has destroyed it (since the driver might use
26033           Control.FromHandle to lookup the control object
26034         * Hwnd.cs: Added DestroyPending property to track if a window is 
26035           already destroyed as far as the driver is concerned and only hasn't
26036           yet notified the control
26037         * XplatUIX11.cs:
26038           - Activate(): Check if the window is still valid before using the 
26039             handle
26040           - Implemented DestroyChildWindow() method to mark child windows as
26041             destroyed when a window is destroyed. This prevents situations 
26042             where we might call an X method based on queued events for a
26043             window that already has been destroyed but we haven't yet pulled
26044             the destroy method from the queue.
26045           - Added a call to the new DestroyChildWindow() method to the drivers
26046             DestroyWindow code. Also now marking the destroyed window itself
26047             as pending
26048
26049 2005-12-20  Jackson Harper  <jackson@ximian.com>
26050
26051         * StatusBar.cs:
26052         * StatusBarPanel.cs: Don't calculate panel sizes on draw
26053         anymore. Just do them when needed, also track the rects of panels
26054         so that we can optimize refreshing more in the future.
26055
26056 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
26057
26058         * ColorDialog.cs: Fixed focus drawing in small color controls
26059
26060 2005-12-19  Jackson Harper  <jackson@ximian.com>
26061
26062         * InternalWindowManager.cs:
26063         * MdiWindowManager.cs: Cleanup some coordinate system changes so
26064         moving windows works properly.
26065
26066 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
26067
26068         * Control.cs: 
26069           - Removed call to InitLayout() from SetBoundsCore(); doc says
26070             it's only called when a control is added to a container
26071           - Split InitLayout logic, moved to separate UpdateDistances() method
26072             since we need to perform those calculations more often than just
26073             when adding the control to a container. (Needed to fix #77022)
26074           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
26075           - Reduced the OnBindingContextChanged events count, don't send them
26076             unless the control is created, we still aren't totally matching
26077             MS, but I can't quite figure out some of their rules
26078
26079 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
26080
26081         * ThemeClearlooks.cs: Corrected distance between ProgressBar
26082           stripes
26083
26084 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
26085
26086         * ThemeClearlooks.cs:
26087           - Updated ProgressBar drawing
26088           - Corrected drawing of ScrollBars and scroll buttons
26089           - Some temporary fixes for minor pixel artefacts
26090
26091 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
26092
26093         * Control.cs:
26094           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
26095             cause events to be sent in the same order as MS does.
26096           - Added ChangeParent() method to trigger various OnXXXChanged events
26097             that need to be fired when a parent changes (This is a reworking
26098             of the patch from r54254, with the X11 errors fixed)
26099           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
26100             since on MS we get OnLayoutChanged events when calling Clear()
26101           - Changed Enabled property to consider parent state as well, if a
26102             parent is not enabled, the control will not be either
26103           - Changed Parent property to simply call Controls.Add() since that
26104             now does all the work required, this way we avoid code duplication
26105           - Threw in a few OnBindingsContextChanged calls to try and match
26106             when MS sends them. We seem to send a few too many, though.
26107           - Added call to CreateControl when adding the control to a parent.
26108             We were never calling CreateControl. Still needs some work, in
26109             some places we treat HandleCreated and ControlCreated as equal, 
26110             which is wrong
26111           - Removed obsolete commented out code from UpdateZOrder()
26112
26113 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
26114
26115         * ThemeClearlooks.cs: Updated TrackBar drawing.
26116
26117 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
26118
26119         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
26120
26121 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
26122
26123         * FileDialog.cs: Add the Help button and the open readonly
26124           checkbox only if needed
26125
26126 2005-12-16  Jackson Harper  <jackson@ximian.com>
26127
26128         * Control.cs: Make sure we have an active menu before trying to
26129         process commands on it. Prevents menu-less forms from crashing
26130         when Alt is pressed.
26131         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
26132         Dieter Bremes.
26133         * RichTextBox.cs: Expand statement to help out gmcs and fix the
26134         2.0 build.
26135
26136 2005-12-16  Jackson Harper  <jackson@ximian.com>
26137
26138         * InternalWindowManager.cs: Don't translate tool windows screen
26139         coordinates. This fixes windows 'bouncing' around when being moved.
26140
26141 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
26142
26143         * TextBoxBase.cs:
26144           - MaxLength now treats 2^31-1 equal to unlimited length (this is
26145             not quite MS compatible, MS uses that number only for single line
26146             and 2^32-1 for multi-line, but I figure it won't hurt keeping
26147             the limit at 2GB)
26148           - Now enforcing the MaxLength limit when entering characters
26149           - Added argument to internal Paste() method to track if it's called
26150             from programatically or via keyboard, since keyboard driven pastes
26151             need to enforce max-length
26152           - Added logic to Paste to only paste as many chars as MaxLength 
26153             allows
26154         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
26155         * TextControl.cs:
26156           - Added Length property to return number of characters in document
26157           - Added private CharCount property which only tracks actual chars
26158             in the document (no linefeeds) and fires event when CharCount
26159             changes
26160           - Added tracking of character count to all methods that alter it
26161           - Added LengthChanged event to allow applications to subscribe
26162             to any changes to the document
26163
26164 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
26165
26166         * TextBox.cs: 
26167           - Removed local password_char field (moved to TextBoxBase)
26168           - Now setting the document's password var when password is
26169             set
26170         * TextBoxBase.cs:
26171           - Added password_char field (needed here so MultiLine can
26172             access it)
26173           - Added logic to MultiLine property setter to set the document's
26174             variable when password display is allowed
26175           - Removed debug code and made some debug code conditional
26176         * TextControl.cs:
26177           - Added RecalculatePasswordLine() method to handle special password
26178             char only lines
26179           - Added PasswordChar property, also added related tracking vars
26180           - Draw() method now uses local text var for grabbing text to draw,
26181             this var is set to line.text unless we're doing password display,
26182             then it is set to the pre-generated all-password-chars line
26183           - Added calling RecalculatePasswordLine() method for password lines
26184
26185 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
26186
26187         * Hwnd.cs: 
26188           - Added Reparented property to allow tracking of Window Manager
26189             reparenting actions (which affect X/Y calculations of toplevel 
26190             windows)
26191           - Made ToString() print window handles in hex
26192         * XplatUIX11.cs:
26193           - AddConfigureNotify(): Now uses reparented state off Hwnd to
26194             determine if X/Y needs offsetting
26195           - AddConfigureNotify(): Fixed offset calculations
26196           - Now adds ReparentNotify messages into the queue
26197           - Now processes ReparentNotify messages and causes a 
26198             WM_WINDOWPOSCHANGED message to be sent upstream if a window
26199             is reparented (as most likely it's X/Y coordinates are changed
26200             due to that)
26201
26202 2005-12-14  Jackson Harper  <jackson@ximian.com>
26203
26204         * XplatUIX11.cs: Tool windows still need to respek focus.
26205
26206 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
26207
26208         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
26209           have a working release
26210
26211 2005-12-13  Jackson Harper  <jackson@ximian.com>
26212
26213         * Form.cs: Update styles after setting the border style regardless
26214         of whether or not the window is using a window manager.
26215
26216 2005-12-13  Jackson Harper  <jackson@ximian.com>
26217
26218         * Form.cs: We now hook into an internal window manager instead of just an
26219         MDI subsystem, this is so we can have properly behaving tool windows.
26220         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
26221         * InternalWindowManager.cs: New internal class that acts as a
26222         window manager for tool windows and as a base for mdi windows.
26223         * MdiWindowManager.cs: New class that acts as a window manager for
26224         mdi windows.
26225
26226 2005-12-12  Jackson Harper  <jackson@ximian.com>
26227
26228         * Control.cs: Updates so we match behavoir for for implicit
26229         controls. Fixes explosions in MDI.
26230
26231 2005-12-12  Jackson Harper  <jackson@ximian.com>
26232
26233         * Control.cs: Implement Invalidate (Region).
26234
26235 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
26236
26237         * Control.cs: 
26238           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
26239             the same events as MS does. MS fires events for each property 
26240             except, for unknown reasons, Cursor, when the control is reparented. 
26241             I can't seem to totally match add/remove since MS also fires some 
26242             VisibleChanged events, which makes no sense. Consolidated the
26243             parenting code into a separate method so it can be called from
26244             both Add and Remove. set_Parent no longer needs any special logic
26245             as it calls the parent's add method which implicitly fires
26246             all events
26247           - Removed some obsolete code and debug output
26248           - Enabled state is inherited from parents, if this is enabled
26249
26250 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
26251
26252         * Form.cs: Removed commented out code
26253
26254 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
26255
26256         * Control.cs:
26257           - Added internal version of Invoke, with additional argument 
26258             indicating if we're calling it from a Dispose() handler. That
26259             way we can avoid BeginInvoke throwing an exception if we're
26260             calling for an already destroyed window.
26261           - Added a dispose argument to BeginInvokeInternal, and made the
26262             check if a valid window handle chain exists conditional on
26263             it not being a dispose call
26264           - Removed code in DestroyHandle to destroy our children. Since we
26265             now handle the WM_DESTROY message we will catch all our children
26266             being destroyed.
26267           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
26268         * Form.cs:
26269           - Added a field to track the application context of the form.
26270           - No need to set closing variable as response to WM_CLOSE, instead
26271             we destroy the window. We also call PostQuitMessage if the form
26272             has an application context (which makes it the main app form,
26273             which, when closed terminates the app)
26274         * XplatUI.cs:
26275           - Dropped Exit() method, it's naming was confusing
26276           - Added PostQuitMessage() which causes GetMessage to return false
26277             once the message queue is empty
26278         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
26279           PostQuitMessage()
26280         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
26281           no longer a valid XplatUI method, but left it in since it's used
26282           internally. Added empty PostQuitMessage() method.
26283         * MenuAPI.cs: Replaced call to Exit() with call to
26284           PostQuitMessage, even though this is probably no longer needed.
26285         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
26286         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
26287         * Application.cs:
26288           - Replaced call to XplatUI.Exit() with PostQuitMessage()
26289           - Removed old debug code that would call XplatUI for exception
26290             display, enabled standard exception handling (Still not enabled
26291             though, until NativeWindow's ExternalExceptionHandler define
26292             is removed
26293         * NativeWindow.cs:
26294           - Added internal method to allow control to update NativeWindow
26295             after a window has been destroyed
26296           - Added handling of already destroyed windows when calling i
26297             DestroyWindow
26298           - Added removal of handle from list on ReleaseHandle
26299         * XplatUIX11.cs:
26300           - Dropped GetMessageResult var and related code
26301           - Added PostQuitState to field to track if PostQuitMessage has been
26302             called
26303           - Dropped Exit() method
26304           - Added PostQuitMessage() method
26305           - GetMessage now will return false if PostQuitState is set and no
26306             more messages are in the queue.
26307           - Expose handler will no longer generate WM_PAINT messages if we are
26308             in PostQuitState since it's very likely any windows have already
26309             been destroyed, and since Hwnd won't get updated until we have
26310             processed the DestroyNotify we'd be causing X errors.
26311         
26312 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
26313
26314         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
26315           Thanks to Mike for pointing out the err of my ways.
26316
26317 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
26318
26319         * Control.cs(PreProcessMessage): Moved menu handling back, but
26320           after all other key handling, to match MS (who handles Menu in
26321           DefWndProc)
26322         * Menu.cs (WndProc): Removed my brainfart
26323
26324 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
26325
26326         * Control.cs(PreProcessMessage): Removed special menu handling 
26327         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
26328
26329 2005-12-07  Mike Kestner  <mkestner@novell.com>
26330
26331         * Control.cs : special case SYSKEYUP so that we can adjust keynav
26332         state according in tracker.
26333         * Menu.cs : promote tracker field to base class and provide a tracker
26334         lookup capability.  Add/Remove shortcuts dynamically if the top menu
26335         has a tracker. Unparent items that are removed from the collection.
26336         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
26337         * Theme*.cs: add always_show_hotkeys field to support configurability
26338         of mnemonic display.  win32 doesn't show mnemonics until Alt is
26339         pressed.
26340
26341 2005-12-07  Jackson Harper  <jackson@ximian.com>
26342
26343         * MdiChildContext.cs: Use Control.ResetCursor.
26344         * Control.cs: ResetCursor needs to set the property so that the
26345         correct XplatUI call gets made.
26346
26347 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
26348
26349         * Control.cs: More fixes to make our key events match MS. We
26350           were not setting the modifier state on KeyData, and we were
26351           not generating any events when Alt was pressed with a key
26352           since handling of WM_SYSxxx was missing for the OnKey methods.
26353
26354 2005-12-07  Jackson Harper  <jackson@ximian.com>
26355
26356         * MdiChildContext.cs: reenable the sizing code.
26357         - When the mouse leaves a window reset its cursor.
26358
26359 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
26360
26361         * ThemeClearlooks.cs: Reflect latest Hwnd changes
26362
26363 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
26364
26365         * Hwnd.cs: Now using the theme 3d bordersize to calculate
26366           widths of Fixed3D borders
26367
26368 2005-12-07  Jackson Harper  <jackson@ximian.com>
26369
26370         * MdiClient.cs: Fix warnings. Earn Mike's love.
26371
26372 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
26373
26374         * ThemeClearlooks.cs:
26375           - Adjusted mouse over button color
26376           - Added first parts of CheckBox drawing
26377           - Added correct color for selected text background
26378           - Fixed ComboBox drawing
26379           - Added CPDrawBorder3D and CPDrawBorder
26380
26381 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
26382
26383         * XplatUIX11.cs: Added call to XBell for AudibleAlert
26384
26385 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
26386
26387         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
26388           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
26389           alert users via sound. We could add an enum arg with different
26390           types of alerts in the future
26391
26392 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
26393
26394         * Control.cs: Fix behaviour problems pointed out by Mike
26395
26396 2005-12-05  Mike Kestner  <mkestner@novell.com>
26397
26398         * StatusBarPanel.cs: add Invalidate method and hook it into all the
26399         prop setters.  Calls parent.Refresh for now, but could be maybe be
26400         optimized with an internal method on StatusBar at some point.
26401         [Fixes #76513]
26402
26403 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
26404
26405         * RichTextBox.cs: Implemented get_SelectionColor
26406
26407 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
26408
26409         * ThemeClearlooks.cs:
26410           - Removed dead code
26411           - Draw black button border only if button is Form.AcceptButton
26412           - Draw correct button color for pressed RadioButton if the mouse 
26413             has entered the button
26414           - Updated ProgressBar drawing!
26415           - Updated CPDrawSizeGrip drawing
26416           - Updated StatusBarPanel drawing
26417
26418 2005-12-05  Mike Kestner  <mkestner@novell.com>
26419
26420         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
26421         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
26422
26423 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
26424
26425         * ThemeClearlooks.cs: Initial check-in, activate with
26426           export MONO_THEME=clearlooks
26427         * ThemeEngine.cs: Added ThemeClearlooks
26428
26429 2005-12-03  Mike Kestner  <mkestner@novell.com>
26430
26431         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
26432         [Fixes #76897]
26433
26434 2005-12-02  Jackson Harper  <jackson@ximian.com>
26435
26436         * Form.cs: If the child form has no menu the default main menu is
26437         used as the active menu.
26438
26439 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
26440
26441         * ListBox.cs: Check if any items exist before trying to resolve 
26442           coordinates into items
26443
26444 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
26445
26446         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
26447           as the second color for the background hatch
26448
26449 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
26450
26451         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
26452         * RichTextBox.cs: FormatText position arguments are 1-based, now making
26453           sure that what we pass to FormatText is always 1-based. Fixes #76885
26454
26455 2005-11-29  Miguel de Icaza  <miguel@novell.com>
26456
26457         * NumericUpDown.cs (EndInit): When we are done initializing,
26458         reflect any updates on the UI.
26459
26460 2005-12-02  Jackson Harper  <jackson@ximian.com>
26461
26462         * ImplicitHScrollBar.cs:
26463         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
26464         their container controls.
26465         * TreeView.cs: Use the new implicit scrollbars.
26466
26467 2005-12-02  Jackson Harper  <jackson@ximian.com>
26468
26469         * TreeView.cs: Make top_node internal so the TreeNodeCollections
26470         can play with it.
26471         * TreeNodeCollection.cs: If we remove the topnode we need to
26472         update topnode to the next node in line.
26473         - When clearing nodes go through the same process as removing
26474         them, so they get depareneted and checked if they are top node.
26475
26476 2005-12-01  Jackson Harper  <jackson@ximian.com>
26477
26478         * TreeView.cs: When imagelists are used the image area is
26479         selectable as well as the text.
26480         - If there are no selected nodes select the first one.
26481         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
26482         so don't do it more then we need to.
26483
26484 2005-12-01  Jackson Harper  <jackson@ximian.com>
26485
26486         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
26487         that arrows can be scaled.
26488
26489 2005-12-01  Jackson Harper  <jackson@ximian.com>
26490
26491         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
26492         fail. Patch by Dieter Bremes
26493
26494 2005-11-30  Jackson Harper  <jackson@ximian.com>
26495
26496         * Form.cs: Property is 2.0 only
26497         * PrintDialog.cs: Signature fix.
26498
26499 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
26500
26501         * TextControl.cs: 
26502           - No longer artificially moves text 2 pixels down (now that we have
26503             borders this is no longer needed)
26504           - Added calcs for left, hanging and right indent
26505
26506 2005-11-23  Mike Kestner  <mkestner@novell.com>
26507
26508         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
26509
26510 2005-11-30  Jackson Harper  <jackson@ximian.com>
26511
26512         * MdiChildContext.cs: Set the cloned menus forms, as these don't
26513         get cloned as part of CloneMenu ().
26514         * Menu.cs: Make sure the parent of the items get set correctly
26515         when they are added.  And the owners are notified of the changes.
26516         * Form.cs: Create an ActiveMenu property, so that when MDI is used
26517         we can change the menu being displayed/handled by the form without
26518         changing the menu assosciated with the form.
26519         - Don't let Mdi children draw/handle menus.
26520         
26521 2005-11-30  Jackson Harper  <jackson@ximian.com>
26522
26523         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
26524         a MenuChanged event. Just to make the API a little more
26525         consistent.
26526         * MainMenu.cs:
26527         * MenuItem.cs: Use the new OnMenuChanged
26528         * MdiChildContext.cs: Handle menu merging.
26529         * Form.cs: Implement MergedMenu.
26530         
26531 2005-11-30  Jackson Harper  <jackson@ximian.com>
26532
26533         * Menu.cs: We were misusing Add. Add goes behind the specified
26534         index according to the docs, and does not replace the specified
26535         index. So I added an Insert method.
26536
26537 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
26538
26539         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
26540           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
26541           is for Jackson
26542         * RichTextBox.cs: Added calls to base for DnD events
26543
26544 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
26545
26546         * TextControl.cs:
26547           - Fixed drag-selection related crash; style fixes
26548           - Implemented undo class
26549             o Implemented method to capture document state for specified
26550               range in document tree
26551             o Implemented method to restore captured document state
26552             o Implemented cursor tracking
26553             o Implemented basic undo stack
26554           - Added undo cursor tracking to methods altering cursor location
26555           - Added undo tracking to selection deletion (still missing
26556             other text-altering hookups)
26557         * RichTextBox.cs:
26558           - Added SelectionLength property
26559           - Implemented CanPaste()
26560           - Implemented Paste()
26561           - Added missing protected methods
26562           - Fixed RTF->Document conversion; now uses font index 0 and color 
26563             index 0 as the default font for the parsed text
26564           - Fixed RTF<->Document font size translation
26565           - Fixed RTF generation, now properly handles cross-tag boundaries
26566             for single line selection
26567           - No longer always appends blank line to generated RTF
26568           - Removed TODOs
26569           - Added missing attributes
26570           - Hooked up undo-related methods
26571         * TextBoxBase.cs:
26572           - Implemented Copy()
26573           - Implemented Paste()
26574           - Implemented Cut()
26575           - Fixed caret mis-behaviour on backspace across line-boundaries
26576
26577 2005-11-29  Jackson Harper  <jackson@ximian.com>
26578
26579         * MdiClient.cs: Add a method for activating mdi children. Very
26580         basic right now. I imagine someday it might need more girth.
26581         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
26582         children windows names are added to the menu item.
26583         * ThemeWin32Classic.cs: Draw the arrow if the item is an
26584         mdilist. This happens regardless of whether or not there are any
26585         mdi windows to see in the list, and according to my tests happens
26586         before the items are even added. Also happens if there isn't even
26587         an mdi client to get windows from.
26588
26589 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
26590
26591         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
26592         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
26593
26594 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
26595
26596         * DataGridTableStyle.cs:
26597           - Create always the styles for the missing columns even if they are
26598             provided by the user (not default table style)
26599         * DataGrid.cs:
26600           - Fixes bug 76770
26601           - Fixes SetDataBinding (always re-attach source)
26602           - Fixes SetNewDataSource (only clear styles if they are not for 
26603             this source)
26604          -  Expands OnTableStylesCollectionChanged to handle style refresh 
26605             and remove properly
26606
26607 2005-11-29  Jackson Harper  <jackson@ximian.com>
26608
26609         * FileDialog.cs: Implement missing bits, remove some dead
26610         code.
26611         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
26612         creation of the panel so that the options set on the dialog are
26613         seen when the panel is created.
26614         * TreeView.cs: raise a click when items are clicked.
26615         
26616 2005-11-29  Jackson Harper  <jackson@ximian.com>
26617
26618         * MdiClient.cs: Pass some signature methods through to base.
26619
26620 2005-11-28  Jackson Harper  <jackson@ximian.com>
26621
26622         * ListView.cs: Raise the click event when items are clicked.
26623
26624 2005-11-28  Jackson Harper  <jackson@ximian.com>
26625
26626         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
26627         a nullref.
26628
26629 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
26630
26631         * ThemeNice.cs: - Removed 1 pixel bitmaps
26632           - Use SmoothingMode.AntiAlias where it makes sense
26633             (ScrollButton arrow for example)
26634           - Enhanced Button focus drawing
26635           - Fixed ComboBox drawing (no artefacts anymore, focus
26636             rectangle is back again, reduced size of ComboButton, etc.)
26637           - Fixed RadioButton focus drawing for Appearence.Button
26638           - Slight ScrollButton redesign
26639           - Some LinearGradientBrush size fixes
26640           - GroupBoxes have now rounded edges
26641           - Fixed StatusBar drawing
26642
26643 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
26644
26645         * ThemeNice.cs: - Remove dead code
26646           - use correct background colors for menus, etc.
26647           - Fake pixel drawing with 1 pixel bitmaps
26648
26649 2005-11-24  Jackson Harper  <jackson@ximian.com>
26650
26651         * MdiClient.cs: Size the scrollbars when resizing the window.
26652         - Resize the maximized windows when the client is resized
26653         * Form.cs: Make the child context available
26654         
26655 2005-11-23  Jackson Harper  <jackson@ximian.com>
26656
26657         * MdiChildContext.cs: Don't size windows if they are maximized.
26658
26659 2005-11-23  Mike Kestner  <mkestner@novell.com>
26660
26661         * ContextMenu.cs: use MenuTracker.
26662         * Control.cs: remove menu handle usage.
26663         * Form.cs: remove menu handle usage.
26664         * Hwnd.cs: remove menu handle usage.
26665         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
26666         motion and clicks to the new Tracker handlers.
26667         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
26668         and handle usage.
26669         * MenuAPI.cs: refactored to combine popup and menubar event handling.
26670         Killed the MENU and MENUITEM data types and associated collections
26671         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
26672         MenuTracker class that exposes the leftovers from the old MenuAPI
26673         static methods. Restructured Capture handling so that only one grab is
26674         done for the entire menu hierarchy instead of handing off grabs to
26675         submenus. Tracker now has an invisible control to Capture when active.
26676         * MenuItem.cs: add sizing accessors, kill Create
26677         and handle usage.
26678         * Theme.cs: remove menu handle and MENU(ITEM) usage.
26679         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
26680         MENU(ITEM). remove menu handle usage, use Menu directly.
26681         * XplatUIDriver.cs: remove menu handle usage.
26682         * XplatUIOSX.cs: remove menu handle usage.
26683         * XplatUIWin32.cs: remove menu handle usage.
26684         * XplatUIX11.cs: remove menu handle usage.
26685
26686 2005-11-22  Jackson Harper  <jackson@ximian.com>
26687
26688         * Hwnd.cs: Don't compute the menu size for
26689         DefaultClientRectangle.
26690         - Reenable menu sizes being computed for GetClienRectangle.
26691         * Form.cs: Remove comment of trechery
26692         
26693 2005-11-22  Jackson Harper  <jackson@ximian.com>
26694
26695         * Hwnd.cs: The adjustments for the menu bar are made when it is
26696         attached to the form.
26697
26698 2005-11-19  Jackson Harper  <jackson@ximian.com>
26699
26700         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
26701         (just like on windows).
26702
26703 2005-11-19  Jackson Harper  <jackson@ximian.com>
26704
26705         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
26706         use real buttons anymore because they are in non client area. The
26707         one TODO here is that I need to somehow invalidate a section of
26708         the non client area.
26709
26710 2005-11-18  Jackson Harper  <jackson@ximian.com>
26711
26712         * Control.cs: Put the enum check back in now that MDI doesnt have
26713         to use this to set border styles.
26714         * Form.cs: Only set mdi child windows borders if the handle has
26715         been created.
26716         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
26717         this directly on to the driver.
26718         - Get the move start position before adjusting for the titlebar
26719         height, this fixes the windows "skipping" when they are first
26720         moved.
26721
26722 2005-11-18  Jackson Harper  <jackson@ximian.com>
26723
26724         * XplatUIX11.cs: Just compute the mdi borders separately as they
26725         don't totally match up with normal form borders.
26726
26727 2005-11-18  Jackson Harper  <jackson@ximian.com>
26728
26729         * Control.cs: Set WS_ styles for borders, so that the driver does
26730         not have to retrieve the control instance to figure out what kind
26731         of borders it should have.
26732         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
26733         driver can know its an mdi child easily.
26734         * XplatUIX11.cs: Get the border styles and whether the window is
26735         MDI from the Styles and ExStyles params instead of having to get a
26736         control. This prevents a chicken and egg problem.       
26737
26738 2005-11-18  Jackson Harper  <jackson@ximian.com>
26739
26740         * MdiClient.cs: Fix typo so scrollbars show up correctly.
26741
26742 2005-11-18  Jackson Harper  <jackson@ximian.com>
26743
26744         * MdiClient.cs: Calculate when to add and remove scrollbars
26745         correctly.
26746         * MdiChildContext.cs: Adjust the y position to take the titlebar
26747         into account.
26748         - No height for FormBorderStyle.None
26749
26750 2005-11-18  Jackson Harper  <jackson@ximian.com>
26751
26752         * Control.cs: Allow non enum values to be used for
26753         InternalBorderStyle.  MDI does this to set a special border style.
26754         - New utility methods for converting points to/from client coords
26755         - Add the newly created control to the Controls collection before
26756         updating its style. This way UpdateStyle can walk the control
26757         heirarchy to find the control if needed.
26758         so I don't need to create a new Point object all the time.
26759         * Form.cs: Let MDI windows handle their border styles.
26760         - Set styles on MDI windows so the correct title style is derived.
26761         * MdiChildContext.cs: Move all the painting and window handling
26762         into the non client area.
26763         - Use correct sizing and put correct buttons on frames based on
26764         the FormBorderStyle.
26765         - Notify the mdi client about scrolling
26766         - Need to handle the buttons ourselves now, because they are all
26767         in non client areas and we can't add controls there.
26768         * MdiClient.cs: Halfway to scrolling, this implementation is
26769         somewhat broken though, we need to check to make sure other
26770         windows aren't causing scrolling before removing the bars. Also
26771         the bars need to be drawn on top, maybe I can switch implicit
26772         controls to be on top.
26773         * Hwnd.cs: caption_height and tool_caption_height are now
26774         properties of an hwnd, this way they can be set by the driver
26775         based on the type of window they are.  In X11 the window manager
26776         handles the decorations so caption_height is zero unless its an
26777         MDI window.
26778         - Add 3 pixel borders for MDI windows (0xFFFF).
26779         - Get rid of some code duplication, have DefaultClientRectanle
26780         just call GetClientRectangle.
26781         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
26782         Hwnd now.
26783         - Set border styles differently for mdi windows.
26784         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
26785         Hwnd now.
26786         
26787 2005-11-15  Mike Kestner  <mkestner@novell.com>
26788
26789         * Menu.cs: when adding an item to the collection, if item is already 
26790         parented, remove it from the parent.
26791
26792 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
26793
26794         * X11DesktopColors.cs: Added KDE support
26795
26796 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
26797
26798         * XplatUIWin32.cs: 
26799           - Clipboard methods now can translate Rtf format
26800           - No longer removes clipboard contents whenever a new format is added
26801             to allow placing multiple formats on the clipboard
26802         * Clipboard.cs: Clipboard now supports getting a IDataObject and
26803           will place all formats contained in it onto the clipboard. Also
26804           now cleans the clipboard before placing a new object onto it
26805         * RichTextBox.cs:
26806           - Implemented set_Rtf
26807           - Implemented set_SelectedRtf
26808           - Created InsertRTFFromStream() method to allow single code base
26809             for all properties and methods that insert RTF into document
26810           - Removed debug output
26811         * TextControl.cs:
26812           - Fixed Delete(int) to fix up line numbers
26813           - Fixed ReplaceSelection to combine start and end line
26814           - Fixed serious DeleteChars bug that would leave the document tree
26815             broken
26816           - Improved DumpTree with several logic checks to detect broken
26817             document trees
26818           - Removed debug lines
26819           - Fixed Caret.WordForward/WordBack moving code, now always also 
26820             updates caret.tag (fixes crash when word-selecting across tag
26821             boundaries via keyboard)
26822           - Added Insert() method for inserting multiline text into documents
26823           - Fixed DeleteChars() calculation errors that would cause a broken
26824             tag chain with multiple tag lines
26825           - DeleteChars() no longer crashes on multi-tag lines if not all tags
26826           - Split() no longer moves caret if split is at caret location
26827           - ReplaceSelection() now updates the cursor and re-displays it
26828           - ReplaceSelection() now uses new Insert() method to avoid code
26829             duplication
26830           - FormatText() can now handle formatting partial lines
26831         * TextBoxBase.cs:
26832           - Append now uses new TextControl.Insert() method (this avoids 
26833             duplicate code)
26834           - Implemented Ctrl-X (Cut) (
26835           - Implemented Ctrl-C (Copy)
26836           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
26837             regeneration when pasting text; roundtripping Copy&Paste within
26838             edit control still fails due to some calculation bugs in GenerateRTF)
26839           - The Delete key will now remove the current selection if it is visible
26840         * TextBox.cs: Removed debug lines
26841         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
26842           driver to be initialized and can't therefore be done via a static ctor)
26843
26844 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
26845
26846         * TextControl.cs: Added backend code for finding char arrays and strings
26847         * TextBoxBase.cs:
26848           - Added mouse wheel scroll support
26849           - Added support for VScroll and HScroll events
26850         * RichTextBox.cs:
26851           - Implemented all seven Find() variants
26852           - Implemented GetCharFromPosition()
26853           - Implemented GetCharIndexFromPosition()
26854           - Implemented GetLineFromIndex()
26855           - Implemented GetPositionFromCharIndex();
26856           - Implemented SaveFile for PlainText and UnicodeText
26857           - Fixed set_Font, now setting a new font applies that font to
26858             the whole document
26859           - Implemented generic Document to RTF converter
26860           - Implemented SaveFile for RichText format (still missing unicode
26861             conversion for non-ansi chars)
26862           - Implemented get_Rtf
26863           - Implemented get_SelectedRtf
26864
26865 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
26866
26867         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
26868           to allow any captures to be released before triggering OnClick. This
26869           way a click handler may capture the mouse without interference.
26870         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
26871           This way we send them even though X may not allow a grab (if the window
26872           isn't visible, for example)
26873
26874 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
26875
26876         * DataGridViewRowEventArgs.cs: DataGridView implementation
26877         * DataGridViewElement.cs: DataGridView implementation
26878         * DataGridViewComboBoxCell.cs: DataGridView implementation
26879         * DataGridViewDataErrorContexts.cs: DataGridView implementation
26880         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
26881         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
26882         * ImageLayout.cs: DataGridView implementation
26883         * DataGridViewComboBoxColumn.cs: DataGridView implementation
26884         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
26885         * DataGridViewSelectionMode.cs: DataGridView implementation
26886         * IDataGridViewEditingControl.cs: DataGridView implementation
26887         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
26888         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
26889         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
26890         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
26891         * DataGridViewColumnSortMode.cs: DataGridView implementation
26892         * DataGridView.cs: DataGridView implementation
26893         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
26894         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
26895         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
26896         * Padding.cs: DataGridView implementation
26897         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
26898         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
26899         * DataGridViewRowEventHandler.cs: DataGridView implementation
26900         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
26901         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
26902         * DataGridViewButtonCell.cs: DataGridView implementation
26903         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
26904         * DataGridViewEditMode.cs: DataGridView implementation
26905         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
26906         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
26907         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
26908         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
26909         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
26910         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
26911         * DataGridViewCellEventHandler.cs: DataGridView implementation
26912         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
26913         * DataGridViewCellStyleConverter.cs: DataGridView implementation
26914         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
26915         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
26916         * DataGridViewColumnEventArgs.cs: DataGridView implementation
26917         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
26918         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
26919         * QuestionEventArgs.cs: DataGridView implementation
26920         * IDataGridViewEditingCell.cs: DataGridView implementation
26921         * DataGridViewTriState.cs: DataGridView implementation
26922         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
26923         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
26924         * DataGridViewColumnCollection.cs: DataGridView implementation
26925         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
26926         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
26927         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
26928         * DataGridViewColumn.cs: DataGridView implementation
26929         * DataGridViewCellBorderStyle.cs: DataGridView implementation
26930         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
26931         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
26932         * DataGridViewRow.cs: DataGridView implementation
26933         * DataGridViewImageCellLayout.cs: DataGridView implementation
26934         * DataGridViewImageCell.cs: DataGridView implementation
26935         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
26936         * DataGridViewCheckBoxCell.cs: DataGridView implementation
26937         * DataGridViewHeaderCell.cs: DataGridView implementation
26938         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
26939         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
26940         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
26941         * DataGridViewTextBoxColumn.cs: DataGridView implementation
26942         * QuestionEventHandler.cs: DataGridView implementation
26943         * DataGridViewCellStyleScopes.cs: DataGridView implementation
26944         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
26945         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
26946         * DataGridViewCell.cs: DataGridView implementation
26947         * DataGridViewCellEventArgs.cs: DataGridView implementation
26948         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
26949         * DataGridViewCellStyle.cs: DataGridView implementation
26950         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
26951         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
26952         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
26953         * TextFormatFlags.cs: DataGridView implementation
26954         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
26955         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
26956         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
26957         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
26958         * DataGridViewButtonColumn.cs: DataGridView implementation
26959         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
26960         * HandledMouseEventArgs.cs: DataGridView implementation
26961         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
26962         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
26963         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
26964         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
26965         * DataGridViewRowCollection.cs: DataGridView implementation
26966         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
26967         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
26968         * DataGridViewHitTestType.cs: DataGridView implementation
26969         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
26970         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
26971         * DataGridViewColumnEventHandler.cs: DataGridView implementation
26972         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
26973         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
26974         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
26975         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
26976         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
26977         * DataGridViewContentAlignment.cs: DataGridView implementation
26978         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
26979         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
26980         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
26981         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
26982         * DataGridViewPaintParts.cs: DataGridView implementation
26983         * DataGridViewCellCollection.cs: DataGridView implementation
26984         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
26985         * DataGridViewImageColumn.cs: DataGridView implementation
26986         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
26987         * DataGridViewElementStates.cs: DataGridView implementation
26988         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
26989         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
26990         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
26991         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
26992         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
26993         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
26994         * DataGridViewRowHeaderCell.cs: DataGridView implementation
26995         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
26996         * DataGridViewTextBoxCell.cs: DataGridView implementation
26997         * DataGridViewBand.cs: DataGridView implementation
26998         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
26999         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
27000         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
27001         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
27002         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
27003         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
27004         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
27005         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
27006         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
27007         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
27008         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
27009
27010 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
27011
27012         * ThemeWin32Classic.cs: 
27013           - Draw the outside focus rectangle around buttons
27014           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
27015             doesn't use end caps for every dash of a line anymore. This
27016             workaround ignores the forecolor.
27017
27018 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
27019
27020         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
27021           endian safe.
27022
27023 2005-11-07  Jackson Harper  <jackson@ximian.com>
27024
27025         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
27026
27027 2005-11-07  Jackson Harper  <jackson@ximian.com>
27028
27029         * ScrollableControl.cs: Calculate the maximum and change vars
27030         (more) correctly so that scrollbars appear as a sensible size.
27031
27032 2005-11-04  Jackson Harper  <jackson@ximian.com>
27033
27034         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
27035         collection.
27036         * TreeView.cs: When the tree is sorted null out the top_node so
27037         that it is recalculated.
27038         - Use dotted lines instead of dashed lines to match MS better.
27039
27040 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
27041
27042         * ListView.cs: 
27043           - Implements key search for items. Useful when browsing files with FileDialog
27044           - When changing view mode or when clear the items reset scrollbar positions
27045
27046 2005-11-04  Jackson Harper  <jackson@ximian.com>
27047
27048         * CurrencyManager.cs: Implement the MetaDataChanged event, the
27049         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
27050         as to what the method may do as there is no real way of creating a
27051         derived CurrencyManager and calling the method. 
27052
27053 2005-11-03  Jackson Harper  <jackson@ximian.com>
27054
27055         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
27056         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
27057         method which seems to just be used internally to refresh the tabs.
27058
27059 2005-11-03  Jackson Harper  <jackson@ximian.com>
27060
27061         * TabControl.cs: Implement the remove method. Fix some broken
27062         comments.
27063
27064 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
27065
27066         * DateTimePicker.cs:
27067           - Added missing DateTimePickerAccessibleObject class
27068           - Added missing events
27069           - Added OnFontChanged method
27070         * Form.cs: Added missing attributes
27071         * TreeView.cs: Added missing attributes
27072
27073 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
27074
27075         * GridItemCollection.cs: Fix signatures
27076
27077 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
27078
27079         * XplatUI.cs: Updated build rev/date
27080         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
27081           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
27082         * Application.cs: Trigger context-specific ExitThread events
27083
27084 2005-11-03  Jackson Harper  <jackson@ximian.com>
27085
27086         * Menu.cs:
27087         * MainMenu.cs:
27088         * GridTableStylesCollection.cs:
27089         * Timer.cs:
27090         * TabPage.cs:
27091         * HelpProvider.cs:
27092         * StatusBar.cs:
27093         * MonthCalendar.cs: Signature fixes
27094
27095 2005-11-03  Jackson Harper  <jackson@ximian.com>
27096
27097         * TreeNodeCollection.cs: Remove should not be virtual.
27098         * TreeView.cs: Implement the last of the missing methods.
27099
27100 2005-11-03  Jackson Harper  <jackson@ximian.com>
27101
27102         * TreeNodeConverter.cs: Implement to get off my class-status back.
27103
27104 2005-11-03  Jackson Harper  <jackson@ximian.com>
27105
27106         * TreeView.cs: Hookup the bits for drag and drop.
27107         * TreeNode.cs: Don't cache the tree_view or index anymore, now
27108         that nodes can be moved from tree to tree easily this just causes
27109         all sorts of problems.
27110         * TreeNodeCollection: Don't need to give treenodes an index and
27111         treeview anymore when they are added, these are computed on the
27112         fly. Also make sure to remove a node before its added.
27113
27114 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
27115
27116         * TextControl.cs:
27117           - Added CaretSelection enum
27118           - Added comparison methods to Marker struct, makes selection code
27119             more readable
27120           - Added SelectionStart and SelectionEnd as 'moveable' location for
27121             the CaretDirection enum and handler
27122           - Added selection_prev variable to track optimized invalidation for
27123             word and line selection
27124           - Added SelectionVisible property (returns true if there is a valid 
27125             selection)
27126           - Switched CaretHasFocus to only display the caret if there is no
27127             visible selection
27128           - Avoiding StringBuilder.ToString to retrieve a single char, instead
27129             using the direct character index; should be much faster
27130           - Added various conditional debug statements
27131           - Fixed invalidation calculation for selection ranges
27132           - Added ExpandSelection() method to support word and line selection
27133           - Switched SetSelectionToCaret to use new Marker compare overloads
27134           - Added central IsWordSeparator() method to determine word 
27135             separators/whitespace and FindWordSeparator() to streamline common
27136             usage of IsWordSeparator()
27137         * TextBoxBase.cs:
27138           - Removed unneeded grabbed variable, it was just mirroring
27139             Control.Capture
27140           - No longer firing OnTextChanged event when Text setter is called,
27141             since the base will fire the event for us
27142           - Added handling of Ctrl-Up/Down selection
27143           - Added handling of Shift-Cursorkey selection
27144           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
27145             words
27146           - Added handling of Shift and Ctrl-Shift-Home/End selection
27147           - Removed some debug output
27148           - Added handling for single/double/tripple-click to place caret/
27149             select word/select line respectively (Fixes bug #76031)
27150           - Added support for drag expansion of word/line selection
27151         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
27152           current selection
27153
27154 2005-11-02  Jackson Harper  <jackson@ximian.com>
27155
27156         * X11Dnd.cs: If the drag is going to and from a MWF window just
27157         copy the data instead of sending it out through the X Selection
27158         mechanism.
27159
27160 2005-11-02  Jackson Harper  <jackson@ximian.com>
27161
27162         * X11Dnd.cs:
27163         * XplatUIX11.cs: When in a drag we don't want motion notify
27164         messages to get passed on to the other controls. This prevents
27165         mouse move messages from showing up in the drag source.
27166
27167 2005-11-02  Jackson Harper  <jackson@ximian.com>
27168
27169         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
27170         the correct button is release to end a drag.
27171         * XplatUIX11.cs: Make the button state internal so the drag system
27172         can access it.  Dragging needs to know about all button releases,
27173         not just left button.
27174
27175 2005-11-02  Miguel de Icaza  <miguel@novell.com>
27176
27177         * Form.cs (Icon): If the icon is null, reset the icon to the
27178         default value. 
27179
27180         * Cursor.cs: When writing the AND-mask bitmap do not include the
27181         number of colors, but hardcode those to two (black and white),
27182         fixes the loading of color cursors (Paint Dot Net).
27183
27184         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
27185         turn off autoscaling.
27186
27187         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
27188
27189 2005-11-02  Jackson Harper  <jackson@ximian.com>
27190
27191         * X11Dnd.cs: Make sure to send a status message if the pointer
27192         enters a control that can not accept a drop, otherwise the cursor
27193         isn't updated correctly. Also tried to compress the lines of code
27194         a bit.
27195
27196 2005-11-02  Jackson Harper  <jackson@ximian.com>
27197
27198         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
27199         set actions correctly.  This isn't perfect as XDND and win32 have
27200         some differences on how you allow actions. I'll clear this up by
27201         adding a path for drag from MWF to MWF windows.
27202         * XplatUIX11.cs: Hook into the dnd system.
27203
27204 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
27205
27206         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
27207         previously shown but they are no longer need it. Very obvious when 
27208         browsing files with FileDialog.
27209
27210 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
27211
27212         * Control.cs: We always need to call OnPaintBackground. We pretty much
27213           ignore AllPaintingInWmPaint and always do the painting there, whether 
27214           it's set or not, since we always ignore the WM_ERASEBKGND message 
27215           (which we don't generate on X11). This fixes #76616.
27216         * Panel.cs: Removed unneeded background painting. This happens properly
27217           in Control.cs already
27218
27219 2005-10-31  Mike Kestner  <mkestner@novell.com>
27220
27221         * Menu.cs: Add items to collection before setting their index.
27222         * MenuItem.cs : add range checking with ArgumentException like MS.
27223         [Fixes #76510]
27224
27225 2005-10-31  Jackson Harper  <jackson@ximian.com>
27226
27227         * ListBox.cs: Invalidate if the area is visible at all not just
27228         contained in the visible rect. Fixes unselection of semi visible
27229         items.
27230
27231 2005-10-31  Jackson Harper  <jackson@ximian.com>
27232
27233         * Control.cs: Consistently name the dnd methods. Make them
27234         internal so we can override them to match some MS behavoir
27235         internally.
27236         * Win32DnD.cs: Use the new consistent names.
27237
27238 2005-10-31  Jackson Harper  <jackson@ximian.com>
27239
27240         * TreeView.cs: Don't draw the selected node when we lose focus.
27241
27242 2005-10-31  Jackson Harper  <jackson@ximian.com>
27243
27244         * X11Dnd.cs: We still need to reset the state even though a full
27245         reset isn't being done, otherwise status's still get sent all over
27246         the place.
27247
27248 2005-10-31  Jackson Harper  <jackson@ximian.com>
27249
27250         * Control.cs: Make the dnd_aware flag internal so the dnd
27251         subsystem can check it. Catch exceptions thrown in dnd handlers to
27252         match MS behavoir.
27253         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
27254         * X11Dnd.cs: Handle null data in the converters. Set the XDND
27255         version when sending a XdndEnter. Use the control/hwnd dnd_aware
27256         flags to reduce the number of dnd enters/status's sent.
27257
27258 2005-10-31  Jackson Harper  <jackson@ximian.com>
27259
27260         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
27261
27262 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
27263
27264         * PictureBox.cs: Fixes 76512
27265
27266 2005-10-28  Jackson Harper  <jackson@ximian.com>
27267
27268         * X11Dnd.cs: Early implementation to support winforms being a drag
27269         source for data on X11. Also restructured the converters so they
27270         can go both ways now.
27271         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
27272         
27273 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
27274
27275         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
27276           clipboard requests
27277
27278 2005-10-27  Jackson Harper  <jackson@ximian.com>
27279
27280         * TreeNode.cs: Implement serialization so my DnD examples will work.
27281
27282 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
27283
27284         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
27285           TreeView.cs: Don't dispose objects that are not owned.
27286           
27287 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
27288
27289         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
27290           should retrieve the current cursor and report that, but XplatUI
27291           doesn't (yet) have an interface for that (and I'm not sure I even
27292           can, on X11)
27293         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
27294           until any message loop processing is done (and the WM_SETCURSOR
27295           replaces the cursor to the proper one)
27296         * XplatUIX11.cs: 
27297           - Fixed override behaviour, we can't set the cursor globally on X11, 
27298             just for our windows.
27299           - Invalidating the System.Drawing X11 display handle when we are
27300             shutting down
27301         * Control.cs: Fix to make csc happy
27302
27303 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
27304
27305         * TextBoxBase.cs: 
27306           - get_Text: Add last line (without trailing newline) to returned
27307             value (Fixes 76212)
27308           - get_TextLength: Count last line in returned length
27309           - ToString: Call Text property instead of duplicating code
27310
27311 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
27312
27313         * ImageList.cs: Dispose ImageAttributes objects.
27314
27315 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
27316
27317         * ImageList.cs: Use attribute constructors with less arguments where
27318           possible.
27319
27320 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
27321
27322         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
27323           Use typeof instead of strings when assembly is referenced. Added
27324           some more comments.
27325
27326 2005-10-21  Jackson Harper  <jackson@ximian.com>
27327
27328         * ListView.cs: Raise a double click event. Also tried to somewhat
27329         fix when the selectedindexchanged event is raised. Its still
27330         broken though.
27331
27332 2005-10-21  Jackson Harper  <jackson@ximian.com>
27333
27334         * TreeView.cs: New method to invalidate the plus minus area of a
27335         node without invalidating the whole node (maybe this can be used
27336         in some more places).
27337         * TreeNodeCollection.cs: When adding to an empty node we need to
27338         invalidate its plus minus area so the little block shows up.
27339         
27340 2005-10-21  Jackson Harper  <jackson@ximian.com>
27341
27342         * TreeView.cs: Make sure that when we invalidate a node the bounds
27343         are big enough to cover the selected box and the focus
27344         rectangle. Use a different colour for the lines connecting nodes
27345         so they show up with all themes.
27346
27347 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
27348
27349         * NativeWindow.cs: Don't call anything that could call into the driver,
27350           we might be on a different thread.
27351
27352 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
27353
27354         * Control.cs(Dispose): Since Dispose might run on a different thread,
27355           make sure that we call methods that could call into the driver via
27356           invoke, to avoid thread issues
27357
27358 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
27359
27360         * XplatUI.cs: Removed finalizer
27361         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
27362           not allowing to be called on the finalizer thread.
27363
27364 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
27365
27366         * ImageList.cs:
27367           - Reverted r51889 and r51891.
27368           - Added ImageListItem class that stores unmodified image items and image
27369             properties required to create list images until handle is created.
27370           - Added AddItem and moved image creation logic to AddItemInternal.
27371           - Added CreateHandle method that creates images based on unmodified items.
27372           - Added DestroyHandle that changes state to store unmodified items.
27373           - Add and AddStrip methods no more create handle.
27374           - ReduceColorDepth has no return value.
27375           - Dispose destroys handle.
27376           - Modified other methods to reflect the above changes.
27377           - Implemented key support.
27378           - Added profile 2.0 members and attributes.
27379           - Added private Reset and ShouldSerialize methods that provide the same
27380             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
27381             them as they are private.
27382           - Added some more comments about implementation details.
27383
27384 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
27385
27386         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
27387
27388 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
27389
27390         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
27391
27392 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
27393
27394         * DataGridDrawingLogic.cs: Fixes column hit calcultation
27395         * DataGridColumnStyle.cs: Remove debug message
27396
27397 2005-10-20  Jackson Harper  <jackson@ximian.com>
27398
27399         * TreeView.cs: We can always get input keys regardless of whether
27400         or not editing is enabled. They are used for navigation.
27401
27402 2005-10-20  Jackson Harper  <jackson@ximian.com>
27403
27404         * TreeNode.cs: Use the viewport rect for determining if a node
27405         needs to be moved for visibility. Don't use Begin/End edit. This
27406         calls a full refresh when its done.
27407         * TreeView.cs: New SetBottom works correctly.  Make the viewport
27408         rect property internal so the treenodes can see it. When clicking
27409         on a node we need to ensure that its visible because it might just
27410         be partly visible when clicked.
27411
27412 2005-10-20  Jackson Harper  <jackson@ximian.com>
27413
27414         * TreeNodeCollection.cs: Remove debug code.
27415
27416 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
27417
27418         * Datagrid.cs: Implements column sorting in Datagrid
27419         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
27420
27421 2005-10-20  Jackson Harper  <jackson@ximian.com>
27422
27423         * TreeNodeCollection.cs: Remove items properly. Update the correct
27424         area after removing them.
27425
27426 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
27427
27428         * Datagrid.cs: Should not call base.OnPaintBackground
27429
27430 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
27431
27432         * XplatUIX11.cs (GetMessage):
27433           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
27434             window instead of client window
27435           - Now properly calculates NC_xBUTTONUP message coordinates
27436           - ScreenToMenu now properly calculates it's coordinates of whole 
27437             window, since menus are in the whole window, not in the client
27438             window
27439           - Added WholeToScreen coordinate translation method
27440
27441 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
27442
27443         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
27444           want to return a message, loop back to the beginning of the function
27445           and grab the next real message to process instead.
27446
27447 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
27448
27449         * Splitter.cs: Properly set limits if no filler control is used
27450
27451 2005-10-19  Jackson Harper  <jackson@ximian.com>
27452
27453         * ColorDialog.cs: Don't show the help button if it is not enabled
27454         instead of disabling it (this is what MS does). Don't create the
27455         panel until the dialog is run, otherwise the vars (such as
27456         ShowHelp) are not set yet.
27457
27458 2005-10-19  Jackson Harper  <jackson@ximian.com>
27459
27460         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
27461         are reduced when adding nodes.
27462         * TreeNode.cs:
27463         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
27464         tree.
27465         
27466 2005-10-19  Jackson Harper  <jackson@ximian.com>
27467
27468         * FolderBrowserDialog.cs: End editing our treeview so the window
27469         actually gets refreshed.
27470
27471 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
27472
27473         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
27474           Obsoleted handling of WM_ERASEBKGND, now always draws our background
27475           inside of WM_PAINT
27476
27477 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
27478
27479         * MenuAPI.cs: Returns after Hidding window
27480         * XplatUIX11.cs: Added TODO found while debugging menu issues
27481
27482 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
27483
27484         * XplatUIX11.cs: Do not re-map the whole window when it's size
27485           becomes non-zero unless it's supposed to be actually visible
27486
27487 2005-10-18  Jackson Harper  <jackson@ximian.com>
27488
27489         * TreeView.cs: We don't need to keep a count anymore.
27490         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
27491         use the Grow method.
27492
27493 2005-10-18  Jackson Harper  <jackson@ximian.com>
27494
27495         * TreeNodeCollection.cs: Insert is not supported on arrays, so
27496         implement it manually here.
27497
27498 2005-10-18  Jackson Harper  <jackson@ximian.com>
27499
27500         * ImageList.cs: Dont kill the list when the colour depth is
27501         changed, just change the colour depth of all the images.
27502         - Same goes for setting the image size. Just resize them all
27503         instead of killing the list softly.
27504
27505 2005-10-18  Jackson Harper  <jackson@ximian.com>
27506
27507         * Control.cs: Don't invalidate empty rectangles.
27508
27509 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
27510
27511         * ListViewItem.cs:
27512           - Adds checked item to the Checked/Item lists (where empty before)
27513           - Do not add items to the Selected lists if they are already present
27514         * ListView.cs:
27515           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
27516           - When deleting items make sure that we delete them for the Selected
27517           and Checked list also.
27518
27519 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
27520
27521         * Label.cs: Dispose objects no longer used
27522         * ThemeWin32Classic.cs: Dispose objects no longer used
27523
27524 2005-10-18  Jackson Harper  <jackson@ximian.com>
27525
27526         * TabControl.cs: Don't refresh the whole control when the tabs are
27527         scrolled, we just need to refresh the tab area.
27528
27529 2005-10-17  Jackson Harper  <jackson@ximian.com>
27530
27531         * XplatUIX11.cs: Compress code a little bit. Only calculate the
27532         after handle when we need it.
27533
27534 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
27535
27536         * Control.cs: When the parent size changes, recalculate anchor 
27537           positions. Partial fix for #76462
27538
27539 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
27540
27541         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
27542           drawn. Fixes #76462
27543
27544 2005-10-17  Jackson Harper  <jackson@ximian.com>
27545
27546         * MonthCalendar.cs: Don't create the numeric up down until our
27547         handle is created. Otherwise our handle is created in the
27548         constructor and we don't know if we are a WS_CHILD or WS_POPUP
27549         yet.
27550
27551 2005-10-17  Jackson Harper  <jackson@ximian.com>
27552
27553         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
27554         correctly.
27555
27556 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
27557         * TreeNode.cs : small logical fix (was using local var instead of field)
27558         
27559 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
27560
27561         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
27562
27563 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
27564
27565         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
27566
27567 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
27568
27569         * Control.cs: 
27570           - Re-implemented anchoring code. My first version was really broken.
27571             This fixes bug #76033. Unlike the previous implementation we will
27572             no longer have round errors since all numbers are calculated from
27573             scratch every time. Removed various anchor-related obsolete vars.
27574           - InitLayout no longer causes layout event firing and layout to be 
27575             performed
27576
27577 2005-10-16  Jackson Harper  <jackson@ximian.com>
27578
27579         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
27580         which was broken).
27581
27582 2005-10-16  Jackson Harper  <jackson@ximian.com>
27583
27584         * TabControl.cs: Remove debug code.
27585
27586 2005-10-16  Jackson Harper  <jackson@ximian.com>
27587
27588         * XEventQueue.cs: Increase the default queue size (very simple
27589         apps needed to grow the queue).
27590         * Hwnd.cs: No finalizer so we don't need to suppress
27591         finalization. Compute the invalid area manually so a new rectangle
27592         does not newto be created.
27593         * ScrollableControl.cs: Don't set any params (otherwise visibility
27594         isn't set correctly).
27595         * MdiChildContext.cs: New constructor takes the mdi parent so it
27596         doesn't have to be computed and avoids a crash on windows. Draw
27597         the window icon properly, and allow the text to be seen.
27598         * Form.cs: Use new MdiChildContext constructor. Make sure the
27599         child context isn't null in wndproc.
27600         * TabControl.cs: Don't set focus, this is muddling keyboard
27601         behavoir. Expand the tab rows when a window size increase will
27602         allow extra tabs to be seen. Don't allow tabs smaller than the
27603         width of a window to be scrolled out of view.
27604         * TreeNode.cs:
27605         * TreeView.cs: Use measure string to calculate a nodes width, the
27606         width is cached and only updated when the text or the font is
27607         changed. Don't check for expand/collapse clicks on the first level
27608         nodes if root lines are disabled.
27609         
27610 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
27611
27612         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
27613
27614 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
27615
27616         * DataGridBoolColumn.cs: fixes warning
27617
27618 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
27619
27620         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
27621         to match more to match more precisely the MS Net behavior
27622
27623 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
27624
27625         * Hwnd.cs: Added field to track if window is mapped
27626         * XplatUIX11.cs: 
27627           - Unmap windows if they become 0-size, re-map when 
27628             they are >0 again; fixes #76035
27629           - Re-set our error handler after initializing X11Desktop
27630             to override any error handlers Gtk or whatever was called
27631             may have set.
27632
27633 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
27634
27635         * CheckedListBox.cs: Removed unused vars
27636         * ListView.cs: Fixed signatures
27637         * RichTextBox.cs: Removed unused vars
27638         * TextBoxBase.cs: Removed unused vars
27639         * XplatUIWin32.cs: Removed unused vars
27640         * XplatUIX11.cs: Removed unused vars
27641         * XplatUI.cs: Updated version and date to latest published
27642
27643 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
27644
27645         * Cursor.cs: Added private .ctor to work around a bug in
27646           resourceset (Thanks to Geoff Norton for the help on this)
27647         * SplitterEventArgs.cs: Made fields accessible so we don't
27648           waste boatloads of objects and can reuse the same one
27649           in Splitter
27650         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
27651           any captions and borders when generating screen coordinates
27652         * Splitter.cs: Reimplemented control, now fully complete, uses
27653           rubberband drawing, supports and obeys all properties, has
27654           proper cursors
27655
27656 2005-10-13  Miguel de Icaza  <miguel@novell.com>
27657
27658         * Form.cs (Form): Setup default values for autoscale and
27659         autoscale_base_size;  Make these instance variables, not static
27660         variables. 
27661
27662         (OnLoad): on the first load, adjust the size of the form.
27663
27664 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
27665
27666         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
27667           width argument to DrawReversibleRectangle()
27668         * XplatUIWin32.cs, XplatUIX11.cs: 
27669           - Implemented width for DrawReversibleRectangle()
27670           - Added logic to DrawReversibleRectangle that recognizes a zero
27671             width or height and only draws a line in that situation
27672         
27673 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
27674
27675         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
27676         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
27677         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
27678           method (it uses our FosterParent window to get a graphics context)
27679
27680 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
27681
27682         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
27683           and SetWindowBackground methods
27684         * Control.cs:
27685           - Setting proper ControlStyles
27686           - We no longer call XplatUI.SetWindowBackground and XplatUI.
27687             EraseWindowBackground, instead we draw the window background
27688             ourselves in PaintControlBackground. This behaviour is
27689             required to match MS, where, when OnPaintBackground is not
27690             called, the background is not drawn.
27691           - Removed unneeded Refresh() in set_Text
27692         * Hwnd.cs: Dropped the ErasePending support. No longer needed
27693         * XplatUIX11.cs:
27694           - Created DeriveStyles method to translate from CreateParams to
27695             FormBorderStyle and TitleStyle, also handles BorderStyle (which
27696             matches FormBorderStyle enum values)
27697           - Consolidated SetHwndStyles and CalculateWindowRect border/title
27698             style calculations into single DeriveStyles method
27699           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
27700             from redrawing the whole window on any resize or expose.
27701           - Fixed CreateWindow usage of SetWindowValuemask. Before not
27702             all styles were applied to our whole/client window appropriately
27703           - Removed EraseWindowBackground() and SetWindowBackground() methods
27704           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
27705             no longer clear/redraw the background through X
27706           - Removed handling of erase_pending bit, we have no use for it (or
27707             so it seems)
27708         * XplatUIOSX.cs:
27709           - Removed generation and handling of WM_ERASEBKGND message
27710           - Removed EraseWindowBackground() and SetWindowBackground() methods
27711           - Removed handling of hwnd.ErasePending flag
27712         * XplatUIWin32.cs:
27713           - Removed EraseWindowBackground() and SetWindowBackground() methods
27714           - We no longer call EraseWindowBackground on PaintEventStart, we 
27715             ignore the fErase flag, erasing is handled in Control in the
27716             background handler
27717         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
27718           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
27719           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
27720           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
27721           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
27722           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
27723           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
27724
27725 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
27726
27727         * PropertyGrids.cs: Get sub properties
27728         * PropertyGridView.cs: Fix drawing code
27729
27730 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
27731
27732         * ListBox.cs: Fixes 76383
27733
27734 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
27735
27736         * DataGridTextBoxColumn.cs: Sets location and size before attachment
27737         * ThemeWin32Classic.cs: Fixes border drawing and calculations
27738         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
27739
27740
27741 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
27742
27743         * ComboBox.cs: Fixes border drawing
27744
27745 2005-10-10  Miguel de Icaza  <miguel@novell.com>
27746
27747         * MimeIcon.cs: Ignore errors if the file can not be read.
27748
27749 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
27750
27751         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
27752          - Fixed border calculations
27753          - Fixed horizontal scrolling in single column listboxes
27754          - Fixed drawing issues
27755
27756 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
27757
27758         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
27759           FormBorderStyle enum
27760         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
27761           code to determine FormBorderStyles from CreateParams
27762         * Form.cs:
27763           - Fixed bug where we'd set the wrong window styles if we were
27764             not creating an MDI window
27765           - Added call to XplatUI.SetBorderStyle when form borders are set
27766         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
27767         * Hwnd.cs:
27768           - Removed obsolete edge style
27769           - Switched from BorderStyle to FormBorderStyle
27770         
27771 2005-10-10  Jackson Harper  <jackson@ximian.com>
27772
27773         * Form.cs: Use the property to get the window handle instead of
27774         accessing it directly. Prevents a null reference exception.
27775
27776 2005-10-10  Jackson Harper  <jackson@ximian.com>
27777
27778         * TreeView.cs: Don't adjust the rect given to DrawString now that
27779         our libgdiplus draws correctly.
27780
27781 2005-10-08  Jackson Harper  <jackson@ximian.com>
27782
27783         * TreeView.cs: Don't try to find the clicked on node if there are
27784         no nodes in the tree.
27785
27786 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
27787
27788         * RichTextBox.cs:
27789
27790           restore
27791
27792 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
27793
27794         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
27795           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
27796           ErrorProvider.cs:
27797           Use ResPool for brushes and dispose System.Drawing objects that
27798           are not used anymore.
27799
27800 2005-10-07  Jackson Harper  <jackson@ximian.com>
27801
27802         * MdiChildContext.cs: Use the new borders instead of drawing them
27803         ourselves.
27804
27805 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
27806
27807         * Calling UpdateBounds after changing the window's BorderStyle 
27808         since the style can change the ClientSize
27809
27810 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
27811
27812         * Control.cs: Made PaintControlBackground virtual
27813         * Panel.cs: Overriding PaintControlBackground instead of using paint
27814           event; paint event method was interfering with 'real' users of the
27815           event.
27816
27817 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
27818
27819         * ThemeWin32Classic.cs: remove border drawing since it is handled
27820         by the base control class now and was causing double border drawing.
27821
27822 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
27823
27824         * Panel.cs: Redraw our background on paint. Not a pretty solution,
27825           but it does seem to match MS behaviour. This fixes bug #75324
27826
27827 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
27828
27829         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
27830           somewhat hackish looking
27831
27832 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
27833
27834         * TextBoxBase.cs:
27835           - We now accept Enter even if AcceptEnter is false, if the containing
27836             form does not have an AcceptButton configured (fixes bug #76355)
27837           - Calculations are now fixed to no longer use Width/Height, but
27838             ClientSize.Width/Height, since we now support borders (this was
27839             a result of fixing borders and therefore bug #76166)
27840           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
27841             true (fixes bug #76354)
27842         
27843 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
27844
27845         * Control.cs: 
27846           - Defaulting BorderStyle and setting it in XplatUI when our window 
27847             is created
27848           - Added enum check to InternalBorderStyle setter
27849         * XplatUIX11.cs: 
27850           - Added drawing of window borders
27851           - Now properly calculates WM decorations offset for toplevel 
27852             windows (fixes bug #74763)
27853         * XplatUIWin32.cs: 
27854           - Implemented BorderStyles for windows (we're letting win32 draw 
27855             the border for us)
27856           - Fixed the signature for SetWindowLong
27857         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
27858           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
27859           setting borders
27860         * UpDownBase.cs: Remove drawing of borders, this is handled by
27861           the driver, outside the client area
27862         * ListView.cs: Removed bogus border calculations. The control should
27863           be oblivious to borders, since those are not part of the client
27864           area. 
27865         * X11DesktopColors.cs: Commented out (currently) unneeded variables
27866         * ThemeWin32Classic.cs: Removed border calculations from ListView 
27867           drawing code
27868
27869 2005-10-06  Jackson Harper  <jackson@ximian.com>
27870
27871         * MdiChildContext.cs: Clear out the old virtual position remove
27872         all the unneeded calls to CreateGraphics.
27873
27874 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
27875
27876         * TextControl.cs: Use proper color for highlighted text; fixes #76350
27877
27878 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
27879
27880         * Form.cs: 
27881           - Added loading and setting of our new default icon
27882           - Only set icon if window is already created
27883
27884 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
27885
27886         * Label.cs:
27887           - Do not explicitly set the foreground and background colors, to
27888             allow inheriting from parents (fixes #76302)
27889           - Use Control's InternalBorderStyle property to deal with borders
27890
27891 2005-10-06  Jackson Harper  <jackson@ximian.com>
27892
27893         * MdiChildContext.cs: Use the new xplatui function to draw a
27894         reversible rect.
27895
27896 2005-10-06  Jackson Harper  <jackson@ximian.com>
27897
27898         * Form.cs: Add the parent before creating the child context cause
27899         we need the parent when setting up the child.
27900
27901 2005-10-06  Jackson Harper  <jackson@ximian.com>
27902
27903         * FolderBrowserDialog.cs: redo the tree population code so a
27904         second thread isn't used. Should be a lot faster and more stable
27905         now.
27906
27907 2005-10-05  Jackson Harper  <jackson@ximian.com>
27908
27909         * TreeView.cs: There are no expand/collapse boxes if the node has
27910         no children.
27911
27912 2005-10-05  Jackson Harper  <jackson@ximian.com>
27913
27914         * X11DesktopColors.cs: Get menu colours for the gtk theme.
27915
27916 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
27917
27918         * FileDialog.cs: Fix InitialDirectory
27919
27920 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
27921
27922         * ComboBox.cs:
27923                 - Fixes changing between styles
27924                 - Fixes simple mode
27925                 - Fixes last item crashing when navigating with keyboard
27926
27927 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
27928
27929         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
27930
27931 2005-10-05  Jackson Harper  <jackson@ximian.com>
27932
27933         * TreeView.cs: If updating the root node do a full refresh.
27934         * TreeNode.cs: The root node should be expanded by default. Also
27935         added a utility prop to tell if we are the root node.
27936         * TreeNodeCollection.cs: Only refresh if the node we are being
27937         added to is expanded. Also added a comment on a potential
27938         optimization.
27939         
27940 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
27941
27942         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
27943           in dispose method. Fixes #76330
27944
27945 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
27946
27947         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
27948
27949                 - Implements vertical and horizontal scrolling using XplatUI
27950                 - Fixes keyboard navagation
27951                 - Fixes EnsureVisible
27952                 - Drawing fixes
27953                 - Handles and draws focus properly
27954
27955
27956 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
27957
27958         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
27959           Create handle. NET_2_0: Destroy handle when value is null.
27960
27961 2005-10-03  Jackson Harper  <jackson@ximian.com>
27962
27963         * ScrollBar.cs: My last scrollbar patch was broken. This is a
27964         revert and a new patch to prevent the thumb from refreshing so
27965         much.
27966
27967 2005-10-02  Jackson Harper  <jackson@ximian.com>
27968
27969         * ScrollBar.cs: Don't update position if it hasn't actually
27970         changed. This occurs when you hold down the increment/decrement
27971         buttons and the thumb gets to the max/min.
27972
27973 2005-10-01  Jackson Harper  <jackson@ximian.com>
27974
27975         * Form.cs:
27976         * MdiChildContext.cs:
27977         * MdiClient.cs: Implement ActiveMdiChild in Form.
27978
27979 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
27980
27981         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
27982
27983 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
27984
27985         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
27986           be found
27987
27988 2005-09-30  Jackson Harper  <jackson@ximian.com>
27989
27990         * ListBox.cs: Don't do a full refresh unless some data has
27991         actually changed.
27992
27993 2005-09-30  Jackson Harper  <jackson@ximian.com>
27994
27995         * TreeView.cs: Make sure that the checkboxes size is factored in
27996         even when not visible.
27997
27998 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
27999
28000         * FileDialog.cs: Fix Jordi's build break
28001
28002 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
28003
28004         * FileDialog.cs: 
28005                 - Use standard the Windows colours for the combobox as espected
28006                 - Dispose objects that use resouces when no longer need them
28007
28008 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
28009
28010         * X11DesktopColors.cs: Initial incomplete implementation
28011         * XplatUIX11.cs: Added call to initialize X11DesktopColors
28012
28013 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
28014
28015         * Theme.cs: 
28016           - Switched Theme color names to match the names defined in 
28017             System.Drawing.KnownColors. Life's hard enough, no need to make 
28018             it harder.
28019           - Added setters to all theme color properties so themes can set
28020             their color schemes. The setters also propagate the color changes
28021             to System.Drawing.KnownColors via reflection
28022         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
28023           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
28024           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
28025           use the new, more logical theme color names
28026         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
28027           post-NT colors
28028         * ThemeWin32Classic.cs:
28029           - Removed code to set the old classic Windows colors. Instead it
28030             now relies on the colors returned by System.Drawing.KnownColors
28031             which will be either modern static colors (Unix) or colors
28032             read from the user's configuration (Win32)
28033           - Updated to use the new, more logical theme color names
28034           - Switched DataGrid drawing code to use only Theme colors instead of
28035             a mix of System.Drawing.KnownColors and Theme colors
28036           - DrawFrameControl(): Removed code that fills the button area, the
28037             fill would overwrite any previous fill done by a control. This
28038             fixes bug #75338 
28039           - Added DrawReversibleRectangle() stub
28040         * ScrollableControl.cs: Set visible state to false when scrollbars
28041           are removed (pdn fix)
28042         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
28043           DrawReversibleRectangle() method to allow drawing primitive 
28044           'rubber bands'
28045         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
28046
28047 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
28048
28049         * ImageList.cs: Add(Icon): Create handle.
28050
28051 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
28052
28053         * ListView.cs:
28054         * ThemeWin32Classic.cs:
28055                 - Fixes detail mode
28056                 - Sets clippings
28057                 - Issues with drawing
28058
28059 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
28060
28061         * ImageList.cs: Moved RecreateHandle back to ImageList as event
28062           source has to be the ImageList.
28063
28064 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
28065
28066         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
28067
28068 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
28069
28070         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
28071
28072 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
28073
28074         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
28075
28076 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
28077         * GridItem.cs: Fixed TODOs
28078         * GridItemCollection.cs: Added ICollection interface
28079
28080 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
28081
28082         * ImageList.cs: Resize icons when needed.
28083
28084 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
28085
28086         * ListViewItem.cs
28087                 - Fixes GetBounds and returns on screen rects
28088         * ListView.cs:
28089                 - Fixes vertical and horzintal scrolling of items
28090         * ThemeWin32Classic.cs:
28091                 - Fixes drawing
28092                 
28093 2005-09-29  Raja R Harinath  <harinath@gmail.com>
28094
28095         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
28096
28097 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
28098
28099         * ImageList.cs: Added comments about handle creation. Moved Handle,
28100           HandleCreated and OnRecreateHandle implementations to ImageCollection.
28101           Handle is created in Add methods.
28102
28103 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
28104          
28105         * DataGridDrawingLogic.cs: 
28106                 - Takes rows into account on Colum calculations
28107                 - Returns the column when clickig
28108         * DataGrid.cs:
28109                 - Fixes default HitTestInfo values
28110                 - Fixes HitTestInfo.ToString
28111                 - Fixes ResetBackColor          
28112         
28113 2005-09-28  Jackson Harper  <jackson@ximian.com>
28114
28115         * MdiChildContext.cs: Obey rules for fixed sized windows (no
28116         sizing or cursor changes). Also added some temp code to draw the
28117         titlebars text (Makes dev a little easier).
28118
28119 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
28120
28121         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
28122
28123 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
28124          
28125         * ListBox.cs: Fixes bug 76253
28126
28127 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
28128
28129         * ImageList.cs: Added comments about the current implementation. Added
28130           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
28131           Format32bppArgb to preserve transparency and can use Graphics.FromImage
28132           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
28133           with Bitmap.LockBits for better performance. Revised the whole file to
28134           match MS.NET behaviour and provide better performance. Non-public
28135           interface members are calling public members even when they throw
28136           NotSupportedException for better maintainability. Moved ColorDepth,
28137           ImageSize, ImageStream and TransparentColor implementations to
28138           ImageCollection for better performance as these properties are not used
28139           by ImageList.
28140         * ImageListStreamer.cs: Added a new internal constructor that takes an
28141           ImageList.ImageCollection and serializes Images based on
28142           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
28143           match ImageList property name.
28144
28145 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
28146
28147         * ListBox.cs: Fixes IndexFromPoint for last item
28148
28149 2005-09-27  Jackson Harper  <jackson@ximian.com>
28150
28151         * Form.cs: Set the position of new mdi children correctly.
28152
28153 2005-09-27  Jackson Harper  <jackson@ximian.com>
28154
28155         * MdiClient.cs: New mdi children need to be added to the back of
28156         the controls collection so the zorder is set correctly. Also add a
28157         count of all the child windows that have been created.
28158
28159 2005-09-27  Jackson Harper  <jackson@ximian.com>
28160
28161         * Form.cs (CreateParams): Setup MDI forms correctly.
28162
28163 2005-09-27  Jackson Harper  <jackson@ximian.com>
28164
28165         * MdiChildContext.cs:
28166         * MonthCalendar.cs:
28167         * UpDownBase.cs:
28168         * ListBox.cs:
28169         * ListView.cs:
28170         * TextBoxBase.cs:
28171         * TreeView.cs:
28172         * ScrollableControl.cs:
28173         * ComboBox.cs: Add implicit controls using the new implict control
28174         functionality in ControlCollection. Also try to block multiple
28175         control add in a suspend/resume layout to save some cycles.
28176         
28177 2005-09-27  Jackson Harper  <jackson@ximian.com>
28178
28179         * Control.cs: Add functionality to the controls collection to add
28180         'implicit controls' these are controls that are created by the
28181         containing control but should not be exposed to the user. Such as
28182         scrollbars in the treeview.
28183         * Form.cs: The list var of the ControlsCollection is no longer
28184         available because of the potential of implicit controls getting
28185         ignored by someone accessing the list directly.
28186
28187 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
28188
28189         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
28190           loose it's parent. (Fixed bug introduced in r49103 when we added
28191           setting the child parent to null on Remove)
28192
28193 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
28194
28195         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
28196         * Splitter.cs: Added missing attributes for BorderStyle property.
28197         * TextBoxBase.cs: Marked Calculate* methods internal.
28198         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
28199         MS.NET.
28200
28201 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
28202          
28203         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
28204
28205 2005-09-25  Jackson Harper  <jackson@ximian.com>
28206
28207         * TreeView.cs: Update the node bounds correctly regardless of
28208         whether the node is visible.
28209
28210 2005-09-25  Jackson Harper  <jackson@ximian.com>
28211
28212         * ImageList.cs: Don't dispose the image after it is added to the
28213         image list. Only reformat images that need to be resized.
28214
28215 2005-09-25  Jackson Harper  <jackson@ximian.com>
28216
28217         * ImageList.cs: Don't set the format when changing the image.
28218
28219 2005-09-25  Jackson Harper  <jackson@ximian.com>
28220
28221         * TreeView.cs: We can't just assume the node has a font. Use the
28222         treeviews font if no node font is available.
28223
28224 2005-09-25  Jackson Harper  <jackson@ximian.com>
28225
28226         * TreeView.cs: Allow the scrollbars to be reset with negative
28227         values.
28228         - Don't add scrollbars to negative sized windows.
28229
28230 2005-09-23  Jackson Harper  <jackson@ximian.com>
28231
28232         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
28233         old Mono.Posix. Also remove some stray code that shouldn't have
28234         been committed.
28235
28236 2005-09-23  Jackson Harper  <jackson@ximian.com>
28237
28238         * TreeView.cs: Attempt at proper sizing of the horizontal
28239         scrollbar. Also don't resize the scrollbars unless they are
28240         visible.
28241
28242 2005-09-23  Jackson Harper  <jackson@ximian.com>
28243
28244         * TreeView.cs: We don't need to expand the invalid area when the
28245         selection changes, as this is all drawn in the node's bounding
28246         box. The area needs to be expanded (previous typo was contracting
28247         it) when the focus rect moves.
28248
28249 2005-09-23  Jackson Harper  <jackson@ximian.com>
28250
28251         * TreeView.cs: Display the selection box under the correct
28252         circumstances. We were rendering white text with no selection box
28253         before.
28254
28255 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
28256
28257         * TextControl.cs(Split): Now updates selection start/end if it points 
28258           into a line that's being split. Fixes a FIXME and bug #75258
28259
28260 2005-09-23  Jackson Harper  <jackson@ximian.com>
28261
28262         * Binding.cs:
28263         * ListControl.cs: Don't use the path when retrieving binding
28264         managers from the binding context. My bat sense tells me that the
28265         path is only used on insertion.
28266
28267 2005-09-22  Jackson Harper  <jackson@ximian.com>
28268
28269         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
28270
28271 2005-09-22  Jackson Harper  <jackson@ximian.com>
28272
28273         * Splitter.cs: There are special cursors used for splitting.
28274         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
28275
28276 2005-09-22  Jackson Harper  <jackson@ximian.com>
28277
28278         * Splitter.cs: Change the cursor appropriately when the splitter
28279         is moused over, so the user actually knows there is a splitter
28280         there.
28281
28282 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
28283
28284        * Label.cs : Fix ToString method to give same output as MS.NET
28285
28286 2005-09-22  Jackson Harper  <jackson@ximian.com>
28287
28288         * TreeView.cs: Create the scrollbars when the handle is created
28289         and add them right away, just make them invisble. Also account for
28290         the window being shrunk vertically to the point that the vert
28291         scrollbar needs to be added.
28292         - Remove some 0.5 adjustments to get around anti aliasing issues.
28293         
28294 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
28295          
28296         * MainMenu.cs: Fixes default value
28297         * MenuItem.cs: Fixes default value
28298
28299 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
28300
28301         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
28302
28303 2005-09-21  Jackson Harper  <jackson@ximian.com>
28304
28305         * Control.cs: Don't try to set the border style on the window if
28306         it hasn't been created. When the window is created the border
28307         style will be used.
28308
28309 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
28310
28311         * Control.cs (Update): Don't call XplatUI if we don't have a
28312           window handle yet
28313
28314 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
28315
28316         * ContainerControl.cs: Instead of throwing an exception, print
28317           a one-time warning about Validate not being implemented
28318         * XplatUIWin32.cs: Removed debug output
28319
28320 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
28321
28322         * Control.cs: Only set XplatUI background if we expect the windowing
28323           system to handle the background. This stops controls that draw their
28324           own background from flickering
28325
28326         * XplatUIX11.cs: Support custom visuals and colormaps for window 
28327           creation. This allows, amongst other things, using MWF X11 windows 
28328           with OpenGL.
28329
28330 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
28331
28332         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
28333           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
28334           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
28335           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
28336           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
28337           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
28338           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
28339           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
28340           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
28341           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
28342           GridColumnStylesCollection.cs, 
28343           IDataGridColumnStyleEditingNotificationService.cs,
28344           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
28345           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
28346           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
28347           TreeNodeCollection.cs, AmbientProperties.cs, 
28348           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
28349           DataObject.cs, ErrorProvider.cs, Splitter.cs,
28350           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
28351           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
28352           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
28353           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
28354           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
28355           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
28356           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
28357           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
28358           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
28359           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
28360           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
28361           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
28362           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
28363           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
28364           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
28365           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
28366           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
28367           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
28368           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
28369           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
28370           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
28371           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
28372           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
28373           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
28374           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
28375           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
28376           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
28377           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
28378           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
28379           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
28380           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
28381           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
28382           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
28383           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
28384           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
28385
28386 2005-09-21  Jackson Harper  <jackson@ximian.com>
28387
28388         * TreeNode.cs: Call Before/After Expand not Collapse when
28389         expanding.
28390
28391 2005-09-20  Jackson Harper  <jackson@ximian.com>
28392         
28393         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
28394
28395 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
28396          
28397         * ListViewItem.cs:
28398                 - Fixes bug 76120
28399                 - Fixes proper storing of subitems
28400                 - Fixes not updated items
28401
28402 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
28403
28404         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
28405           things if our window handle isn't created yet. Also disabled 
28406           debug for TextBoxBase
28407
28408 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
28409
28410         * MenuAPI.cs: Remove filtering of events to allow menu usage
28411
28412 2005-09-20  Miguel de Icaza  <miguel@novell.com>
28413
28414         * Cursor.cs: Allow null to be passed to Cursor.Current.
28415
28416 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
28417
28418         * ThemeWin32Classic.cs:
28419           - Change some private methods/fields to protected virtual so that 
28420             they can be accessed and overriden in derived classes
28421           - First refactoring of some methods. Derived themes now don't 
28422             need to duplicate the complete code from ThemeWin32Classic
28423         * ThemeNice.cs:
28424           - Added nice StatusBar
28425           - Derive from ThemeWin32Classic and not Theme
28426           - Removed duplicate ThemeWin32Classic code
28427
28428 2005-09-20  Miguel de Icaza  <miguel@novell.com>
28429
28430         * Control.cs (ControlCollection.Add): If the value null is passed
28431         the control is ignored. 
28432
28433         Optimize this loop.
28434
28435 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
28436
28437         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
28438           PostQuitMessage state.
28439         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
28440
28441 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
28442
28443         * Application.cs: Our constructor will never get called, move 
28444           initialization to fields; fixes bug #75933
28445
28446 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
28447
28448         * FileDialog.cs :
28449                 - Allow files to be selected properly using file name
28450                 combo box.
28451                 - Add ability to change diretory (absolute / relative)
28452                 using file name combo box.
28453
28454 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
28455          
28456         * ListBox.cs: 
28457                 - Fixes Multicolumn listboxes item wrong calculations
28458                 - Allows to click when only one item is in the listbox
28459                 - Fixes crash when no items using keyboard navigation
28460
28461 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
28462
28463         * ComboBox.cs: Reverted almost everything from the latest patch which
28464           broke ComboBox
28465
28466 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
28467         
28468         * ToolTip.cs:
28469                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
28470         * ComboBox.cs:
28471                 - When DropDownStyle is Simple, it does not show scrollbar 
28472                 to the last item of the list.
28473                 - When DropDownStyle is Simple, it crashed when the list was 
28474                 scrolled down with the down cursor key.
28475                 - Fixed a bug that when DropDownStyle is DropDownList, the 
28476                 selected item was not shown.
28477                 - The position of the selected item was not preserved when 
28478                 the next dropdown happened.
28479         * ThemeWin32Classic.cs:
28480                 - Items were wrapped at the right end.
28481         * CheckedListBox.cs:
28482                 - Fixed Add method
28483         * ListBox.cs:
28484                 - Items should be fully shown.
28485                 - When resizing and vertical scrollbar disappeared, the item 
28486                 of index 0 should be on the top of the list.
28487                 - GetItemRectangle should consider the size of ver. scrollbar
28488         * StatusBar.cs:
28489                 - SizingGrip area should not be allocated when it is not 
28490                 displayed.
28491                 - Now it reflects MinWidth of the containing panel and 
28492                 fixed a crash that happens when its width becomes so small.
28493
28494 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
28495
28496         * CheckedListBox.cs: Fixes bug 76028
28497         * ListBox.cs: Fixes bug 76028
28498
28499 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
28500
28501         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
28502         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
28503
28504 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
28505
28506         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
28507
28508 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
28509
28510         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
28511
28512 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
28513
28514         * IRootGridEntry.cs: Added
28515         * PropertyGridCommands.cs: Added
28516         * PropertiesTab.cs: Added missing methods and property
28517         * PropertyGridView.cs: Made class internal
28518         * PropertyGridTextBox.cs: Made class internal
28519
28520 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
28521
28522         * MimeIcon.cs: Try to check some other environment variables
28523           if "DESKTOP_SESSION" returns "default"
28524
28525 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
28526
28527         * ThemeNice.cs: Corrected background colors (e.g. menus)
28528         * ColorDialog.cs: Use correct background colors for controls
28529
28530 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
28531
28532         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
28533
28534 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
28535
28536         * RichTextBox.cs: Added initial implementation
28537         * lang.cs: Removed. Was accidentally checked in long time ago
28538         * TODO: Removed. Contents were obsolete
28539
28540 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
28541                                                                                 
28542         * PropertiesTab.cs : Added
28543
28544 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
28545                                                                                 
28546         * PropertyGrid.cs : Update
28547         * PropertyGridView.cs : Update
28548         * System.Windows.Forms.resx : Added images and strings
28549
28550 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
28551
28552         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
28553  
28554 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
28555
28556         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
28557           a busy loop right after the Ungrab the X11 display is otherwise 
28558           blocked
28559
28560 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
28561
28562         * ThemeWin32Classic.cs: Optimise the use of clipping
28563
28564 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
28565
28566         * DataGrid.cs: fixes recursion bug
28567
28568 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
28569
28570         * ThemeNice.cs: 
28571           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
28572           - Cleanup
28573
28574 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
28575
28576         * ThemeNice.cs: Draw nice ProgressBars
28577
28578 2005-09-01  Miguel de Icaza  <miguel@novell.com>
28579
28580         * VScrollBar.cs: Another buglet found by Aaron's tool. 
28581
28582         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
28583         bug finder.
28584
28585 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
28586
28587         * ThemeNice.cs:
28588           - Added nicer menu drawing
28589           - Updated DrawTab
28590           - some refactoring
28591
28592 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
28593
28594         * CreateParams.cs (ToString): Made output match MS
28595         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
28596             handle is already created (to avoid forcing window creation)
28597         * XplatUIX11.cs: Set window text to caption after creating window,
28598           in case Text was set before window was created
28599         * Form.cs: Use this.Text instead of a static string as caption
28600
28601 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
28602
28603         * NotifyIcon.cs: Don't set the window to visible; this screws
28604           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
28605           OnPaint without a bitmap)
28606         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
28607           happen very often anyway; we could add the check to the WM_PAINT 
28608           event generation code
28609
28610 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
28611
28612         * NotifyIcon.cs: Fill the icon area with a background color, to 
28613           avoid 'residue' when transparent icons are drawn
28614         * XplatUIX11.cs:
28615           - Handle whole_window == client_window when destroying windows
28616           - SystrayAdd(): Set client_window to whole_window value to
28617             get mouse and other events passed to NotifyIcon
28618
28619 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
28620
28621         * Form.cs: Set proper default for Opacity property
28622         * NotifyIcon.cs:
28623           - ShowSystray(): Don't bother creating telling the OS
28624             about the systray item if no icon is provided
28625           - Now handles WM_NCPAINT message to deal with whole/client window
28626             split
28627           - Create window as visible to not get caught by Expose optimization
28628         * Hwnd.cs: Removed debug message
28629         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
28630           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
28631             PaintEventStart/End to use new client argument
28632         * TextBoxBase.cs:
28633           - Commented out debug messages
28634           - Switched PaintEventStart/End to use new client argument
28635         * XplatUI.cs: Added client window bool to PaintEventStart()/
28636           PaintEventEnd() calls, to support drawing in non-client areas
28637         * XplatUIDriver.cs: 
28638           - Added client window bool to PaintEventStart()/PaintEventEnd() 
28639             calls, to support drawing in non-client areas
28640           - Added conditional compile to allow using MWF BeginInvoke 
28641             on MS runtime
28642         * XplatUIX11.cs:
28643           - Added some conditional debug output
28644           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
28645             whole/client window split
28646           - Implemented handling of client argument to PaintEventStart()/End()
28647         * Control.cs:
28648           - Throw exception if BeginInvoke() is called and the window handle
28649             or one of the window's parent handles is not created
28650           - Added conditional compile to allow using MWF BeginInvoke on
28651             MS runtime
28652           - get_Parent(): Only sets parent if handle is created. This avoids
28653             forcing window handle creation when parent is set.
28654           - Now fires Layout and Parent changed events in proper order
28655           - Switched to use Handle instead of window.Handle for Z-Order setting,
28656             the get_Parent() patch above causes us to possibly get null for 'window'
28657           - Implemented handling of client argument to PaintEventStart()/End()
28658           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
28659             default handling)
28660           - Now sends a Refresh() to all child windows when Refresh() is called
28661
28662 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
28663
28664         * Form.cs: Added (non-functional) Opacity property
28665         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
28666
28667 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
28668         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
28669           use export MONO_THEME=nice to activate it.
28670           Currently supported controls:
28671           - Button
28672           - ComboBox
28673           - ScrollBar
28674           - TabControl (TabAlignment.Top only, other will follow)
28675         * ThemeEngine.cs: Add theme nice
28676         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
28677           if enabled
28678
28679 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
28680
28681         * Splitter.cs: Resize docked control and its neighbor.
28682
28683 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
28684         -- Making Windows with Menus layout correctly --
28685         * Form.cs : The first leg of the fix
28686                 Menu setter - adjust Client Size as needed to make space for the menu
28687                 SetClientSizeCore - doesn't call base version to be able to pass the 
28688                         menu handle to XplatUI.CalculateWindowRect
28689         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
28690         * XplatUIX11.cs: The critical second leg of the fix
28691                 GetWindowPos needs to use a recalculated client_rect
28692                 so that resizing the window doesn't break layout of child controls. 
28693                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
28694                 Lots of \t\n killed
28695
28696 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
28697
28698         * Label.cs: Now properly recalculates width and height on Font and Text
28699           changes if AutoSize is set
28700
28701 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
28702         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
28703
28704 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
28705
28706         * ImageList.cs: Makes ToString method compatible with MS
28707
28708 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
28709
28710         * MenuAPI.cs: fixes bug 75716
28711
28712 2005-08-11 Umadevi S <sumadevi@novell.com>
28713         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
28714
28715 2005-08-11 Umadevi S <sumadevi@novell.com>
28716         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
28717
28718 2005-08-10  Umadevi S <sumadevi@novell.com>
28719         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
28720
28721 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
28722
28723         * Menu.cs: fixes bug 75700
28724         * MenuAPI.cs: fixes navigation issues
28725
28726 2005-08-09  Umadevi S <sumadevi@novell.com>
28727         * CheckedListBox.cs - simple fix for GetItemChecked.
28728
28729 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
28730
28731         * ComboBox.cs: Serveral fixes
28732         * ListBox.cs: Serveral fixes
28733
28734 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
28735
28736         * ComboBox.cs: Fixes FindString methods and GetItemHeight
28737         * ListBox.cs: Fixes FindString methods
28738
28739 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
28740
28741         * DataGrid.cs: fixes bugs exposed by new tests
28742
28743 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
28744
28745         * Mime.cs: Compile Mono assembly references only if compiling
28746           with Mono (Allows to build with VS.Net again)
28747
28748 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
28749
28750         * Control.cs (PaintControlBackground): Draw background image
28751         corrrectly.
28752         (CheckForIllegalCrossThreadCalls): Stubbed.
28753         
28754         * Form.cs (OnCreateControl): Center when should be centered.
28755         
28756         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
28757
28758 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
28759
28760         * Binding.cs: Binding to properties should be case unsensitive
28761
28762 2005-07-18 vlindos@nucleusys.com
28763
28764         * DataGrid.cs: fixes setmember order
28765
28766 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
28767
28768         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
28769         * FileDialog.cs: FileDialog is now resizable and uses the new
28770           MimeIconEngine
28771
28772 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
28773
28774         * DataGridTextBoxColumn.cs: default value
28775         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
28776         * GridTableStylesCollection.cs: fixes checking MappingName
28777         * DataGridDrawingLogic.cs: fixes drawing logic issues
28778         * DataSourceHelper.cs: rewritten to make compatible with more data sources
28779         * DataGrid.cs: fixes    
28780
28781 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
28782
28783         * MimeGenerated.cs: Use case sensitive comparer for
28784           NameValueCollections
28785
28786 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
28787
28788         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
28789         * ThemeWin32Classic.cs: bug fixes, code refactoring
28790         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
28791         * DataGrid.cs: bug fixes, code refactoring
28792         * DataGridTextBox.cs: bug fixes, code refactoring
28793         * DataGridColumnStyle.cs:  bug fixes, code refactoring
28794         * Theme.cs:  bug fixes, code refactoring
28795
28796 2005-07-01  Peter Bartok  <pbartok@novell.com> 
28797
28798         * TextControl.cs: Quick fix for the reported crash on ColorDialog
28799           and other text box usage
28800
28801 2005-07-01  Jackson Harper  <jackson@ximian.com>
28802
28803         * TabControl.cs: Make sure the bottom of the tab covers the pages
28804         border.
28805
28806 2005-06-30  Peter Bartok  <pbartok@novell.com> 
28807
28808         * Form.cs (ShowDialog): Assign owner of the dialog
28809         * TextBoxBase.cs: Always refresh caret size when deleting, caret
28810           might have been moved to a tag with different height
28811
28812 2005-06-30  Jackson Harper  <jackson@ximian.com>
28813
28814         * Form.cs: Don't create an infinite loop when setting focus
28815         * MenuItem.cs: Don't dirty the parents if we don't have any
28816
28817 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
28818
28819         * LibSupport.cs: Rename
28820
28821 2005-06-29  Peter Bartok  <pbartok@novell.com>
28822
28823         * TextBoxBase.cs: Re-align caret after deleting a character
28824         * TextControl.cs:
28825           - DeleteChars(): Ensure that tag covers the provided position
28826           - StreamLine(): Drop reference for dropped tag
28827
28828 2005-06-29  Peter Bartok  <pbartok@novell.com> 
28829
28830         * TextControl.cs: 
28831           - Selections now work properly, anchoring at the initial location
28832             and properly extending in either direction (SetSelectionToCaret(),
28833             SetSelectionStart() and SetSelectionEnd())
28834           - No longer redraws the whole control on selection change, now
28835             calculates delta between previous and new selection and only
28836             invalidates/redraws that area
28837           - Fixed FindPos() math off-by-one errors
28838           - Changed DeleteChars() to verify the provided tag covers the
28839             provided position, selections may have a tag that doesn't cover
28840             the position if the selection is at a tag border
28841           - Fixed off-by-one errors in DeleteChars()
28842           - Added missing streamlining check in DeleteChars() to remove
28843             zero-length tags
28844           - Implemented Invalidate() method, now properly calculates exposures
28845             between two given lines/positions
28846           - Implemented SetSelection()
28847           - Obsoleted and removed FixupSelection()
28848           - Improved RecalculateDocument() logic, removing code duplication
28849
28850 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28851
28852         * LibSupport.cs: changes to match different input/output arguments.
28853
28854 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
28855
28856         * LibSupport.cs: added libsupport.so init routine.
28857
28858 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
28859         
28860         * ControlBindingsCollection.cs
28861                 - Throws an exception on null datasource when adding
28862                 - Checks for duplicated bindings when adding
28863
28864 2005-06-28  Jackson Harper  <jackson@ximian.com>
28865
28866         * TreeView.cs (OnKeyDown): Support left and right properly
28867         (navigates as well as expanding and collapsing.
28868         - Add support for Multiply, this expands all the selected nodes
28869         children.
28870         - Fix some tabbing.
28871
28872 2005-06-28  Jackson Harper  <jackson@ximian.com>
28873
28874         * TreeView.cs: Implement keyboard navigation, currently supports,
28875         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
28876         support for toggling checkboxes with the space bar.
28877
28878 2005-06-28  Jackson Harper  <jackson@ximian.com>
28879
28880         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
28881         tree.
28882
28883 2005-06-28  Jackson Harper  <jackson@ximian.com>
28884
28885         * TreeView.cs: Add missing event.
28886
28887 2005-06-27  Peter Bartok  <pbartok@novell.com> 
28888
28889         * TextControl.cs:
28890           - Made line ending size configurable (now allows for counting 
28891             lineendings as \n or \r\n)
28892           - Added margin to viewport to keep caret visible on right side
28893           - Fixed translation routines for line/pos to documentpos to consider
28894             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
28895           - Fixed some line-endings to be unix style
28896           - Fixed Document.FormatText to perform it's calculations 1-based
28897           - Added descriptions for a few methods that might otherwise get 
28898             used wrong
28899           - Added NOTE section with some basic conventions to remember at 
28900             the top of the file
28901           - Major fixup for RichTextBox selection drawing:
28902             * Fixed crashes when multiple tags on a single line were selected
28903             * fixed selection box drawing not overlaying text
28904             * fixed bogus offset calculation for tags not starting at index 1
28905             * Switched behaviour from using multiple Substrings of a 
28906               StringBuilder.ToString() to using multiple 
28907               StringBuilder.ToString(start, length) statements, hoping this is
28908               faster (kept original version commented out in the code, in case
28909               original version was faster)
28910         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
28911           alignment != Left
28912         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
28913           call it as well
28914
28915 2005-06-27  Jackson Harper  <jackson@ximian.com>
28916
28917         * TabControl.cs: Move to the left and right with the arrow
28918         keys. These keys don't cycle beyond first and last like
28919         tab. Refresh all the tabs when scrolling them to the left or
28920         right.
28921
28922 2005-06-27  Jackson Harper  <jackson@ximian.com>
28923
28924         * TabControl.cs:
28925           - ToString: Added method
28926           - CreateParams: Remove TODO and comment
28927           - OnKeyDown: Cycle through bounds properly.
28928           - SelectedIndex: Scroll to the right or left if we need to
28929           display the newly selected tab.
28930
28931 2005-06-23  Jackson Harper  <jackson@ximian.com>
28932
28933         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
28934         set.
28935
28936 2005-06-23  Jackson Harper  <jackson@ximian.com>
28937
28938         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
28939         CTRL-SHIFT-TAB, and HOME, END are there any others?
28940
28941 2005-06-23  Jackson Harper  <jackson@ximian.com>
28942
28943         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
28944
28945 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
28946         
28947         * DataGridTextBoxColumn.cs: fixes and enhancements
28948         * ThemeWin32Classic.cs: fixes and enhancements
28949         * DataGridBoolColumn.cs:  fixes and enhancements
28950         * DataGridDrawingLogic.cs:  fixes and enhancements
28951         * CurrencyManager.cs: fixes and enhancements
28952         * DataGrid.cs: fixes and enhancements
28953         * DataGridColumnStyle.cs:  fixes and enhancements
28954
28955 2005-06-22  Jackson Harper  <jackson@ximian.com>
28956
28957         * TabControl.cs: Add some missing methods that just call into the
28958         base. Make the TabPageCollection's IList interface behave in the
28959         same manner as the MS implementation.
28960
28961 2005-06-22  Peter Bartok  <pbartok@novell.com> 
28962
28963         * TextControl.cs: Added sanity check
28964         * TextBoxBase.cs: 
28965           - Fixed wrapping behaviour, don't set wrap on single line controls
28966             (this fixes the breakage of colordialog introduced in an earlier
28967              checkin)
28968           - Added rudimentary support for autoscrolling right-aligned controls
28969             (still needs fixing, also, center alignment scroll is missing)
28970
28971 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
28972         
28973         * ScrollBar.cs: Fixes thumbpos on Maximum values
28974
28975 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
28976         
28977         * PropertyGridView.cs: Pass context information to UITypeEditors 
28978
28979 2005-06-21  Peter Bartok  <pbartok@novell.com> 
28980
28981         * TextBoxBase.cs:
28982           - Now calling PositionCaret with absolute space coordinates
28983           - Enabled vertical scrolling
28984           - Better tracking of scrollbar changes, tied into WidthChange
28985             event
28986           - Improved cursor tracking
28987           - Removed debug output
28988         * TextControl.cs:
28989           - PositionCaret coordinates are now works in absolute space, not 
28990             the canvas
28991           - Improved tracking of document size
28992           - Added events for width and height changes
28993
28994 2005-06-21  Peter Bartok  <pbartok@novell.com>
28995
28996         * Form.cs: Set focus to active control when form is activated
28997         * TextControl.cs: 
28998           - Added word-wrap functionality to RecalculateLine() 
28999           - Added some short function descriptions for VS.Net to aid in
29000             writing dependent controls
29001           - Added Caret property, returning the current coords of the caret
29002           - Added ViewPortWidth and ViewPortHeight properties
29003           - Added Wrap property
29004           - Added CaretMoved event
29005           - Removed some old debug code
29006           - Split() can now create soft splits
29007           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
29008           - Added method to format existing text
29009           - Fixed size/alignment calculations to use viewport
29010           - RecalculateDocument now can handle changing line-numbers while
29011             calculating lines
29012
29013         * TextBox.cs:
29014           - Added some wrap logic, we don't wrap if alignment is not left
29015           - Added casts for scrollbar var, base class switched types to
29016             also support RichTextBoxA
29017           - Implemented handling of scrollbar visibility flags
29018
29019         * TextBoxBase.cs:
29020           - Switched scrollbars type to RichTextBoxScrollBars to support
29021             RichTextBox
29022           - Added tracking of canvas width/height
29023           - Switched scrollbars to be not selectable (to keep focus on text)
29024           - Added central CalculateDocument() method to handle all redraw
29025             requirements
29026           - Added ReadOnly support
29027           - Added WordWrap support
29028           - Fixed handling of Enter key (we now treat it as a DialogKey)
29029           - Fixed caret positioning when h or v scroll is not zero
29030           - Fixed placing/generation of vertical scrollbar
29031           - Added CalculateScrollBars() method to allow updating scrollbar
29032             limits and visibility
29033           - Fixed handling of horizontal scroll
29034           - Added handling of vertical scroll
29035           - Implemented auto-'jump' when caret moves to close to a left or
29036             right border and there is text to be scrolled into view (currently
29037             there's the potential for a stack overflow, until a bug in
29038             scrollbar is fixed)
29039
29040 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
29041         
29042         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
29043
29044 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
29045
29046         * Mime.cs:
29047         - added inodes.
29048         - return application/x-zerosize for files with size zero
29049           (if no extension pattern matches).
29050         - check matches collection for strings too.
29051         - return only the first mime type if the name value
29052           collection has more than one mime type.
29053
29054 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
29055         
29056         * PropertyGrid.cs: Cleaned up some TODOs
29057         * PropertyGridView.cs: Added support for UITypeEditors
29058
29059 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
29060         
29061         * DataGrid.cs: clears cached value
29062
29063 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
29064
29065         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
29066         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
29067         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
29068         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
29069         
29070 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
29071
29072         * ThemeWin32Classic.cs: fixes colour
29073
29074 2005-06-15  Peter Bartok  <pbartok@novell.com>
29075
29076         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
29077         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
29078         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
29079         * Control.cs: Added some MWFCategory and MWFDescription attributes
29080         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
29081
29082 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
29083
29084         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
29085         usage
29086
29087 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
29088
29089         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
29090         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
29091         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
29092         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
29093         * DataGrid.cs: default datagrid settings for Default Styles, fixes
29094         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
29095
29096 2005-06-13  Jackson Harper  <jackson@ximian.com>
29097
29098         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
29099         isn't printed when the user enables dropping. (X11 does accept
29100         drops).
29101         
29102 2005-06-13  Jackson Harper  <jackson@ximian.com>
29103
29104         * TreeView.cs: Remove some TODOS.
29105
29106 2005-06-13  Jackson Harper  <jackson@ximian.com>
29107
29108         * Form.cs: Hook into the mdi framework.
29109         * MdiClient.cs: Use the base control collections add method so
29110         parents get setup correctly. Set the default back colour and dock
29111         style.
29112         * MdiChildContext.cs: New class, this bad actor handles an
29113         instance of an MDI window. Right now there is only basic
29114         support. You can drag, close, and resize windows. Minimize and
29115         Maximize are partially implemented.
29116
29117 2005-06-13  Jackson Harper  <jackson@ximian.com>
29118
29119         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
29120         freaky when both vals are negative. NOTE: There are probably other
29121         places in XplatUIX11 that this needs to be done.
29122
29123 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
29124
29125         * DataGrid.cs: implement missing methods, move KeyboardNavigation
29126         * DataGridColumnStyle.cs: fixes signature
29127
29128 2005-06-12  Jackson Harper  <jackson@ximian.com>
29129
29130         * XplatUIX11.cs: Use sizing cursors similar to the ones on
29131         windows.
29132
29133 2005-06-11  Jackson Harper  <jackson@ximian.com>
29134
29135         * StatusBarPanel.cs: Signature cleanups. Implement
29136         BeginInit/EndInit.
29137
29138 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
29139
29140         * DataGridTextBoxColumn.cs: Honors aligment
29141         * GridColumnStylesCollection.cs: Contains is case unsensitive
29142         * GridTableStylesCollection.cs: several fixes
29143         * DataGridTableStyle.cs: default column creation
29144         * DataGridDrawingLogic.cs: fixes
29145         * CurrencyManager.cs: ListName property
29146         * DataGrid.cs: multiple styles support
29147         * DataGridColumnStyle.cs: fixes
29148         
29149
29150 2005-06-10  Peter Bartok  <pbartok@novell.com>
29151
29152         * Control.cs(Select): Moved SetFocus call to avoid potential
29153           loops if controls change the active control when getting focus
29154         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
29155           the up/down buttons
29156
29157 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
29158
29159         * ImageListConverter.cs: Implemented
29160
29161 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
29162
29163         * MonthCalendar.cs: Wired in NumericUpDown control for year
29164
29165 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
29166
29167         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
29168           DoubleClick events, since they are not meant to be fired.
29169
29170 2005-06-09  Peter Bartok  <pbartok@novell.com>
29171
29172         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
29173           Jonathan's standalone controls into MWF, implemented missing
29174           events, attributes and methods; added xxxAccessible classes
29175         * AccessibleObject.cs: Made fields internal so other classes
29176           can change them if needed
29177
29178 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
29179
29180         * UpDownBase.cs: Complete implementation
29181         * NumericUpDown.cs: Complete implementation
29182         * DomainUpDown.cs: Complete implementation
29183
29184 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
29185
29186         * DataGridTextBoxColumn.cs: drawing fixes
29187         * DataGridCell.cs: fixes ToString method to match MSNet
29188         * DataGridTableStyle.cs: fixes
29189         * DataGridBoolColumn.cs: fixes, drawing
29190         * DataGridDrawingLogic.cs: fixes, new methods
29191         * DataGridTextBox.cs: Keyboard and fixes
29192         * DataGrid.cs:
29193                 - Keyboard navigation
29194                 - Scrolling fixes
29195                 - Row selection (single, multiple, deletion, etc)
29196                 - Lots of fixes
29197         
29198 2005-06-07  Jackson Harper  <jackson@ximian.com>
29199
29200         * ThemeWin32Classic.cs: Clear the background area when drawing
29201         buttons.
29202
29203 2005-06-06  Peter Bartok  <pbartok@novell.com>
29204
29205         * ImageListStreamer.cs: Fixed signature for GetData
29206         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
29207         * ComboBox.cs:
29208           - Added missing ChildAccessibleObject class
29209           - Added missing OnXXXFocus overrides, switched to using those
29210             instead of the event handler
29211         * Control.cs:
29212           - Added Parent property for ControlAccessibleObject
29213           - Fixed signatures
29214           - Fixed attributes
29215           - Added ResetBindings()
29216         * ListBindingConverter.cs: Implemented some methods
29217         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
29218         * ImageList.cs: Implemented basic handle scheme, removed TODOs
29219         * ContainerControl.cs: Fixed signature, now subscribing to the
29220           ControlRemoved event instead of overriding the handler, LAMESPEC
29221         * CurrencyManager.cs: Added missing attribute
29222         * MonthCalendar.cs: Added missing properties
29223
29224 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
29225
29226         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
29227         
29228 2005-06-06  Gaurav Vaish and Ankit Jain
29229
29230         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
29231         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
29232         
29233 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
29234
29235         * Control.cs: fixes CreateParams Width / Height.
29236
29237 2005-06-05  Peter Bartok  <pbartok@novell.com>
29238
29239         * Win32DnD.cs: Removed compilation warnings
29240
29241 2005-06-05  Peter Bartok  <pbartok@novell.com>
29242
29243         * Control.cs (CreateParams): Since we don't know if one of the
29244           properties we use is overridden, lets make sure if we fail accessing
29245           we continue with a backup plan
29246
29247 2005-06-05  Peter Bartok  <pbartok@novell.com>
29248
29249         * Win32DnD.cs:
29250           - Removed debug output
29251           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
29252             struct
29253           - Plugged resource leak
29254         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
29255           MS size
29256
29257 2005-06-05  Peter Bartok  <pbartok@novell.com>
29258
29259         * XplatUIWin32.cs: Removed DnD code
29260         * Win32DnD.cs: Implemented drop source and drop target functionality
29261
29262 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
29263
29264         * UpDownBase.cs: remove duplicate addition of event, enable some code
29265         that was commented out.
29266         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
29267         Validate input when a key is pressed. It works fine now for every
29268         combination of Hexadecimal. Only missing some drawing love when sharing
29269         space with other controls.
29270
29271 2005-06-04  Peter Bartok  <pbartok@novell.com>
29272
29273         * Control.cs:
29274           - We need to pass a window for DragDrop, so enable callback events
29275           - Added DnD callback events when being a DragSource
29276         * XplatUI.cs (StartDrag): Added window handle argument
29277         * XplatUIDriver.cs (StartDrag): Added window handle argument
29278         * QueryContinueDragEventArgs: Made fields internally accessible so
29279           drivers can set them
29280         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
29281           can set them
29282
29283 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
29284
29285         * DataGridTextBoxColumn.cs: column text editing
29286         * DataGridTableStyle.cs: Respect columns styles created by the user
29287         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
29288         * DataGridBoolColumn.cs: bool column editing
29289         * DataGrid.cs: fixes to scrolling, properties, etc
29290         * DataGridTextBox.cs: handle keyboard
29291         * DataGridColumnStyle.cs: fixes
29292
29293 2005-06-02  Jackson Harper  <jackson@ximian.com>
29294
29295         * ImageListStreamer.cs: Somewhat broken implementation of
29296         GetObjectData. The RLE needs some work to match MS properly.
29297
29298 2005-06-02  Jackson Harper  <jackson@ximian.com>
29299
29300         * X11Dnd.cs: Attempting to keep at least one file in MWF
29301         monostyled.
29302
29303 2005-06-02  Peter Bartok  <pbartok@novell.com>
29304
29305         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
29306           that way
29307
29308 2005-06-02  Peter Bartok  <pbartok@novell.com>
29309
29310         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
29311         * XplatUI.cs: Added DoDragDrop() method
29312         * XplatUIDriver.cs: Added DoDragDrop() method
29313
29314 2005-06-02  Jackson Harper  <jackson@ximian.com>
29315
29316         * Splitter.cs: Implement BorderStyle.
29317
29318 2005-06-02  Jackson Harper  <jackson@ximian.com>
29319
29320         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
29321         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
29322         X11 using XDND.
29323
29324 2005-06-02  Peter Bartok  <pbartok@novell.com>
29325
29326         * DataObject.cs:
29327           - Added Data setter
29328           - Fixed broken insertion code for SetData, now also
29329             overwrites any existing entry of the same format name
29330         * Hwnd.cs: Added list of pointers that automatically gets
29331           freed when the window is disposed
29332         * XplatUI.cs: Call driver initialization method when loading
29333           a driver
29334         * Control.cs:
29335           - OnDragLeave takes EventArgs, not DragEventArgs
29336           - Added setting of WS_EX_ACCEPTFILES style when dropping is
29337             supported
29338           - Forces style update when drop state changes
29339         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
29340           not perfect since we cannot (yet) call the IDataObject.GetData()
29341           method, we keep getting 0x80004005 error, dunno why)
29342
29343 2005-06-02  Peter Bartok  <pbartok@novell.com>
29344
29345         * DragEventArgs.cs: Make fields internal so we can cache the
29346           object and re-set the fields from XplatUI
29347
29348 2005-06-02  Jackson Harper  <jackson@ximian.com>
29349
29350         * Control.cs: Add some internal methods so the DnD subsystem can
29351         raise DnD events. Also call into the driver when AllowDrop is set.
29352         * XplatUI.cs:
29353         * XplatUIDriver.cs: New method for setting whether or not a window
29354         is allowed to accept drag and drop messages.
29355                 
29356 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
29357         
29358         * ScrollBar.cs: Make sure that values sent in Scroll events
29359         are always between Maximum and Minimum.
29360
29361 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
29362
29363         * Menu.cs: Call MenuChanged when menuitem visibility has been
29364         changed.
29365         * MenuItem.cs: Rebuild menu when item is (not) visible.
29366         * MainMenu.cs: MainMenu has special MenuChanged.
29367         * Theme.cs: Caption and FrameBorderSize are not fixed.
29368         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
29369         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
29370         * XplatUIX11.cs,
29371         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
29372         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
29373
29374 2005-05-30  Jackson Harper  <jackson@ximian.com>
29375
29376         * DataFormat.cs: We can't statically initialize this stuff because
29377         it calls into the xplatui and could create a loop. So we lazy init
29378         it.
29379
29380 2005-05-28  Jackson Harper  <jackson@ximian.com>
29381
29382         * Control.cs: Proper implementation of Product(Name/Version).
29383
29384 2005-05-27  Jackson Harper  <jackson@ximian.com>
29385
29386         * DataObject.cs: Dont crash if no data is found.
29387
29388 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
29389         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
29390                 as per status page, guessing it should be set to true
29391
29392 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
29393
29394         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
29395         * DataGridTableStyle.cs: set proper formatting text, def header text
29396         * ThemeWin32Classic.cs: new themable paramaters
29397         * DataGridBoolColumn.cs: paint check box, get data, fixes
29398         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
29399         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
29400         * DataGridColumnStyle.cs: fixes
29401         * Theme.cs: new themable paramaters
29402                 
29403 2005-05-26  Peter Bartok  <pbartok@novell.com>
29404
29405         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
29406
29407 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29408         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
29409
29410 2005-05-24  Peter Bartok  <pbartok@novell.com>
29411
29412         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
29413           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
29414           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
29415           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
29416           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
29417           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
29418           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
29419           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
29420           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
29421           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
29422           missing attributes, etc
29423         * DataGridPreferredColumnWidthTypeConverter.cs: Added
29424
29425 2005-05-24  Peter Bartok  <pbartok@novell.com>
29426
29427         * Help.cs: Added, implemented trivial functions, throws up MessageBox
29428           when user tries to get help
29429         * DataObject.cs, DataFormats.cs, LinkArea.cs,
29430           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
29431           to suppress warnings
29432         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
29433           avoid unreachable code warning
29434
29435 2005-05-20  Peter Bartok  <pbartok@novell.com>
29436
29437         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
29438
29439 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
29440
29441         * DataGridTextBoxColumn.cs: Basic painting methods
29442         * DataGridTableStyle.cs: Set table style in the column
29443         * ThemeWin32Classic.cs: Use Theme for colors
29444         * DataGridDrawingLogic.cs: Implement more drawing
29445         * DataGrid.cs: drawing, theming, enhacements, fixes
29446         * DataGridColumnStyle.cs: fixes, drawing
29447         * Theme.cs: theming for Datagrid
29448
29449 2005-05-20  Peter Bartok  <pbartok@novell.com>
29450
29451         * Cursor.cs: Implemented GetObjectData() method
29452
29453 2005-05-20  Peter Bartok  <pbartok@novell.com>
29454
29455         * Cursors.cs: Added setting of cursor name
29456         * Cursor.cs:
29457           - Implemented constructors
29458           - Implemented Draw and DrawStretched
29459           - Implemented Current property
29460           - Implemented == and != operators
29461           - Implemented Dispose()
29462           - Implemented ToString
29463           - Added missing attributes
29464         * XplatUIX11.cs:
29465           - Added missing reset for OverrideCursor when DoEvents is called
29466           - Fixed creation of cursor, logic was wrong
29467         * XplatUIWin32.cs:
29468           - Added missing reset for OverrideCursor when DoEvents is called
29469           - Fixed creation of cursor, bit arrays were swapped
29470         * Clipboard.cs: Removed obsolete MonoTODO attribute
29471
29472 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
29473
29474         * ComboBox.cs: fixes OnSelectedItemChanged
29475         * ControlBindingsCollection.cs: fixes item range check
29476
29477 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
29478
29479         * UpDownBase.cs:
29480                 - Calc preferred height properly
29481                 - Implement missing properties
29482                 
29483         * NumericUpDown.cs: Implement missing events
29484
29485 2005-05-19  Jackson Harper  <jackson@ximian.com>
29486
29487         * TabControl.cs: New method that resizes the tab pages before
29488         redrawing them. This as needed as the control is double buffered
29489         and sizing will not be recalculated unless ResizeTabPages is
29490         called.
29491         * TabPage.cs: Set base.Text instead of Text in the constructor so
29492         that UpdateOwner does not get called. Use the new Redraw method of
29493         TabControl instead of Refresh so the sizing is recalculated.
29494         * ThemeWin32Classic.cs: Draw the text for button tabs.
29495
29496 2005-05-19  Jackson Harper  <jackson@ximian.com>
29497
29498         * Control.cs: Paint control background images. Fix typo where
29499         PaintControlBackground was not getting called correctly.
29500
29501 2005-05-19  Peter Bartok  <pbartok@novell.com>
29502
29503         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
29504           I can investigate, apparently I broke FileDialog
29505
29506 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
29507
29508         * AxHost.cs: Some simple properties.
29509         * Control.cs: window must be accessible after ctor.
29510         * Form.cs: Added TransparencyKey property.
29511         * TextBoxBase.cs: Implemented Clear. Text property can be null.
29512         * XplatUIWin32.cs: SetBorderStyle implemented.
29513
29514 2005-05-18  Peter Bartok  <pbartok@novell.com>
29515
29516         * DataObject.cs: Entries are not global but particular to the
29517           DataObject, now it behaves that way
29518         * XplatUIWin32.cs: Implemented Clipboard methods
29519         * Clipboard.cs: Implemented
29520         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
29521         * XplatUIOSX.cs: Updated to final clipboard prototypes
29522         * XplatUIX11.cs: Implemented Clipboard methods
29523         * XplatUIDriver.cs: Updated to final clipboard prototypes
29524         * XplatUIStructs.cs:
29525           - Added BITMAPINFOHEADER struct
29526           - Added ClipboardFormats enum
29527         * X11Structs.cs:
29528           - Added ClipboardStruct
29529           - Added Atom enum items for clipboard types
29530           - Fixed atom types for Selection event structures
29531         * DataFormats.cs:
29532           - Added internal properties and methods for drivers to enumerate
29533             all known formats
29534           - Switched initialization method to allow drivers to assign their
29535             own IDs even for the MS predefined clipboard IDs
29536         * XplatUI.cs: Updated to final clipboard interface
29537
29538 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29539         * PropertyGridView.cs: Fixed compiler warnings.
29540
29541 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
29542         * PropertyGrid.cs: Added some event calls
29543         * PropertyGridView.cs: Change drawing code to use double buffering
29544         * PropertyGridTextBox.cs: Changed Text property name
29545         * GridItem.cs: Added Bounds property.
29546         * GridEntry.cs: Added Bounds property.
29547
29548 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
29549
29550         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
29551         since GetType() may not return the correct type if the object is
29552         a remoting proxy.
29553
29554 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
29555
29556         * TreeNodeCollection.cs: fixes get/set item ranges
29557         
29558 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
29559
29560         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
29561                 
29562 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
29563
29564         * ComboBox.cs: Fix item range comparation
29565         * ListView.cs: Fix item range comparation
29566
29567 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
29568
29569         * FontDialog.cs:
29570           - Clear example panel when OnPaint is called
29571           - Better solution for displaying the example panel text
29572           - Select default indexes in the ListBoxes
29573
29574 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
29575
29576         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
29577
29578 2005-05-11  Peter Bartok  <pbartok@novell.com>
29579
29580         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
29581         * SelectionRangeConverter.cs: Implemented
29582         * PropertyGrid.cs: Fixed attribute value
29583         * Control.cs:
29584           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
29585           - Added Sebastien Pouliot's CAS Stack Propagation fixes
29586         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
29587           that's common to all drivers. First methods to go there are
29588           Sebastien Pouliot's CAS Stack Propagation helper methods
29589         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
29590           Sebastien Pouliot for CAS Stack Propagation
29591
29592 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
29593
29594         * OSXStructs.cs:
29595           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
29596
29597 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
29598
29599         * DataGridTextBoxColumn.cs: fixed some members
29600         * GridColumnStylesCollection.cs: indexed column is case insensitive
29601         * DataGridTableStyle.cs: fixes
29602         * ThemeWin32Classic.cs: add new theme parameter
29603         * Theme.cs: add new theme parameter
29604         * DataGridDrawingLogic.cs: Datagrid's drawing logic
29605         * DataGrid.cs: fixes, new internal properties, etc.
29606         * DataGridColumnStyle.cs: allows to set grid value
29607         *
29608
29609 2005-05-10  Peter Bartok  <pbartok@novell.com>
29610
29611         * AccessibleObject.cs:
29612           - Removed MonoTODO attribute on help, method is correct
29613           - Fixed Bounds property
29614         * AxHost.cs: Moved MonoTODO
29615         * ButtonBase.cs: Now setting AccessibleObject properties
29616         * RadioButton.cs: Setting proper AccessibleObject role
29617         * CheckBox.cs: Setting proper AccessibleObject role
29618         * ControlBindingsCollection.cs: Added properties, methods and attributes
29619         * DataFormats.cs: Fixed awkward internal API, and changed to enable
29620           userdefined DataFormats.Format items as well
29621         * ListControl.cs: Removed data_member from the public eye
29622         * OpenFileDialog.cs:
29623           - Made class sealed
29624           - Added missing attributes
29625         * SaveFileDialog.cs: Added missing attributes
29626         * ImageListStreamer.cs: Fixed code that caused warnings
29627         * LinkLabel.cs: Removed unreachable code
29628         * TreeView.cs: Fixed code that caused warnings
29629         * PropertyGridView.cs: Fixed code that caused warnings
29630         * GridColumnStylesCollection.cs: Added missing attributes
29631         * GridTableStylesCollection: Added missing attribute
29632         * PropertyManager: Added .ctor
29633         * SecurityIDType: Added
29634         * DataObject.cs: Implemented class
29635         * LinkArea.cs: Added missing attribute
29636
29637 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
29638
29639         * RadioButton.cs: call base method to allow to fire OnClick event
29640         * UpDownBase.cs: OnMouseUp call base method
29641         * CheckedListBox.cs: call base method before returning
29642         * TrackBar.cs: call base method before returning
29643         
29644
29645 2005-05-10  Peter Bartok  <pbartok@novell.com>
29646
29647         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
29648           for messages
29649
29650 2005-05-10  Peter Bartok  <pbartok@novell.com>
29651
29652         * DataFormats.cs: Implemented
29653         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
29654           XplatUIX11.cs: Added Clipboard APIs
29655         * XplatUIWin32.cs: Implemented Clipboard APIs
29656         * FolderBrowserDialog.cs: Added missing event, attributes
29657
29658 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
29659
29660         * CheckBox.cs: call base method to allow to fire OnClick event
29661
29662 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
29663
29664         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
29665
29666 2005-05-06  Peter Bartok  <pbartok@novell.com>
29667
29668         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
29669         * Screen.cs: Implemented
29670         * HelpNavigator.cs: Added
29671         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
29672           property
29673         * HelpProvider.cs: Implemented all we can do until we have a CHM
29674           help library (which means that "What's This" does work now)
29675
29676 2005-05-06  Jackson Harper  <jackson@ximian.com>
29677
29678         * XplatUIX11.cs: Fix waking up the main loop.
29679                 
29680 2005-05-05  Peter Bartok  <pbartok@novell.com>
29681
29682         * XplatUI.cs: Updated revision
29683         * Form.cs: Removed enless loop
29684         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
29685         * Label.cs (OnPaint): Added call to base.OnPaint()
29686         * ToolTip.cs: Made ToolTipWindow reusable for other controls
29687         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
29688         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
29689         * AxHost.cs: Added
29690         * ButtonBase.cs: Moved base.OnPaint() call to end of method
29691         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
29692           to ToolTip.ToolTipWindow for drawing and size methods; this allows
29693           reuse of ToolTipWindow by other controls
29694         * SizeGrip.cs: Moved base.OnPaint() call to end of method
29695         * XplatUIX11.cs: Now clipping drawing area (experimental)
29696         * PictureBox.cs: Moved base.OnPaint() call to end of method
29697         * Theme.cs: Fixed ToolTip abstracts to match new format
29698         * ErrorProvider.cs: Implemented
29699
29700 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
29701
29702         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
29703         * LinkLabel.cs:
29704                 - Adds cursors
29705                 - Handles focus
29706                 - Implements LinkBehavior
29707                 - Fixes many issues
29708
29709 2005-05-03  Jackson Harper  <jackson@ximian.com>
29710
29711         * ListView.cs: Calculate the scrollbar positioning on resize and
29712         paint, so they get put in the correct place.
29713
29714 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
29715
29716         * ColorDialogs.cs: The small color panels are now handled by
29717           SmallColorControl. This fixes drawing of the focus rectangle
29718           and adds a 3D border.
29719
29720 2005-05-03  Peter Bartok  <pbartok@novell.com>
29721
29722         * Control.cs: Modified version of Jonathan Chamber's fix for
29723           double-buffering
29724
29725 2005-05-03  Jackson Harper  <jackson@ximian.com>
29726
29727         * ListView.cs: Remove redraw variable. Control now handles whether
29728         or not a redraw needs to be done, and will only raise the paint
29729         event if redrawing is needed.
29730
29731 2005-05-03  Jackson Harper  <jackson@ximian.com>
29732
29733         * Splitter.cs: No decorations for the splitter form. Cache the
29734         hatch brush.
29735
29736 2005-05-03  Jackson Harper  <jackson@ximian.com>
29737
29738         * TreeView.cs: Use dashed lines to connect nodes. Use the
29739         ControlPaint method for drawing the focus rect instead of doing
29740         that in treeview.
29741
29742 2005-05-02  Peter Bartok  <pbartok@novell.com>
29743
29744         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
29745
29746 2005-04-29  Jackson Harper  <jackson@ximian.com>
29747
29748         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
29749         entire image buffer. Just clear the clipping rectangle.
29750
29751 2005-04-29  Jackson Harper  <jackson@ximian.com>
29752
29753         * ThemeWin32Classic.cs: Don't draw list view items that are
29754         outside the clipping rectangle.
29755
29756 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
29757
29758         * ListBox.cs: added horizontal item scroll
29759
29760 2005-04-29  Jackson Harper  <jackson@ximian.com>
29761
29762         * ThemeWin32Classic.cs: Remove some old debug code that was
29763         causing flicker with the new double buffering code.
29764
29765 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
29766
29767         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
29768         behave like combobox and comboboxlist (still not sure if this is
29769         correct though).
29770
29771 2005-04-28  Jackson Harper  <jackson@ximian.com>
29772
29773         * ThemeWin32Classic.cs: Don't fill the middle of progress
29774         bars. This fills areas outside of the clip bounds that don't need
29775         to be filled.
29776
29777 2005-04-28  Jackson Harper  <jackson@ximian.com>
29778
29779         * Control.cs: Don't expose functionality to touch the image buffers.
29780         * ProgressBar.cs:
29781         * ListView.cs: We do not need to (and no longer can) manipulate
29782         the image buffers directly. All of this is handled by Control.
29783
29784 2005-04-28  Peter Bartok  <pbartok@novell.com>
29785
29786         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
29787           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
29788           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
29789
29790 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
29791
29792         * Combobox:
29793                 - Adjust control's height for non-simple comboboxes (bug fix)
29794                 - Remove dead code
29795         * MenuAPI.cs: remove unused var
29796         * ScrollBar.cs: remove unsed var
29797                  
29798         * ListBox.cs: unselect items when clearing
29799
29800 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
29801
29802         * ListControl.cs: honors OnPositionChanged and default Selected Item
29803         * ListBox.cs: unselect items when clearing
29804
29805 2005-04-27  Jackson Harper  <jackson@ximian.com>
29806
29807         * X11Keyboard.cs: Initialize a default keyboard and give a warning
29808         if a "correct" keyboard is not found. This will make us not crash,
29809         but might give some users bad keyboard layouts...seems to be the
29810         same thing rewind does.
29811
29812 2005-04-27  Jackson Harper  <jackson@ximian.com>
29813
29814         * BindingManagerBase.cs: Attach the current/position changed
29815         handlers to their respective events.
29816
29817 2005-04-27  Jackson Harper  <jackson@ximian.com>
29818
29819         * Control.cs: Make sure that the first WM_PAINT does a full draw,
29820         not just a blit.
29821         * ThemeWin32Classic.cs: Don't fill the background for picture
29822         boxes. This could overright user drawing.
29823         * ComboBox.cs: Just fill the clipping rect not the entire client
29824         rect when drawing the background. This prevents pieces of the
29825         image buffer from getting overwritten and is theoretically faster.
29826
29827 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
29828
29829         * ComboBox.cs: Databinding support fixes, fire missing events
29830         * ListControl.cs: implement missing methods and properties, fixes
29831         * ThemeWin32Classic.cs: Databiding support on Drawing
29832         * CheckedListBox.cs: Databinding support fixes, fire missing events
29833         * ListBox.cs: Databinding support fixes, fire missing events
29834         
29835 2005-04-25  Peter Bartok  <pbartok@novell.com>
29836
29837         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
29838
29839 2005-04-25  Jackson Harper  <jackson@ximian.com>
29840
29841         * TreeView.cs: Use the horizontal scrollbars height not width when
29842         determining how much of the client area is available.
29843
29844 2005-04-25  Jackson Harper  <jackson@ximian.com>
29845
29846         * Control.cs: Double buffering is handled differently now. As per
29847         the spec, the extra buffer is created in the WM_PAINT message and
29848         passed down to the control's drawing code.
29849         * GroupBox.cs:
29850         * Label.cs:
29851         * CheckBox.cs:
29852         * ProgressBar.cs:
29853         * RadioButton.cs:
29854         * ColorDialog.cs:
29855         * ComboBox.cs:
29856         * PropertyGridView.cs:
29857         * UpDownBase.cs:
29858         * MessageBox.cs:
29859         * MenuAPI.cs:
29860         * ListView.cs:
29861         * ButtonBase.cs:
29862         * SizeGrip.cs:
29863         * ScrollBar.cs:
29864         * ListBox.cs:
29865         * TrackBar.cs:
29866         * ToolBar.cs:
29867         * PictureBox.cs:
29868         * DateTimePicker.cs:
29869         * StatusBar.cs:
29870         * TreeView.cs: Update to new double buffering system.
29871         * MonthCalendar.cs: Uncomment block, as Capture is now
29872         working. Update to new double buffering
29873         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
29874         * PaintEventArgs.cs: New internal method allows us to set the
29875         graphics object. This is used for double buffering.
29876         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
29877         rectangle. The internal paint_area var has been removed from
29878         StatusBar. The clipping rect should be used instead.
29879         * Theme.cs: Give the PictureBox drawing method a clipping rect.
29880         * TabPage.cs: The RefreshTabs method was removed, so just call the
29881         tab controls Refresh method now.
29882         * TabControl.cs: Update to new double buffering. Make sure the
29883         handle is created before sizing the tab pages, otherwise we will
29884         get stuck in a loop.
29885
29886 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
29887
29888         * LinkLabel.cs: Fix typo, bug #74719; patch
29889           from Borja Sanchez Zamorano
29890
29891 2005-04-22  Jackson Harper  <jackson@ximian.com>
29892
29893         * TreeNode.cs: Implement Handle stuff.
29894         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
29895
29896 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
29897
29898         * DataGridTextBoxColumn.cs: call base constructors, fixes
29899         * GridColumnStylesCollection.cs: missing events, methods, and functionality
29900         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
29901         * DataGridTableStyle.cs: implements create default column styles
29902         * DataGridBoolColumn.cs: which types can handle
29903         * DataGrid.cs: missing methods, fixes, new functionality
29904         * DataGridColumnStyle.cs: fixes
29905
29906 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
29907         * FolderBrowserDialog.cs:
29908         - Use a thread to fill the TreeView
29909         - Adjusted some sizes
29910
29911 2005-04-19  Peter Bartok  <pbartok@novell.com>
29912
29913         * LinkLabel.cs: (Re-)create the pieces when setting the Text
29914           property. Fixes #74360.
29915
29916 2005-04-19  Jackson Harper  <jackson@ximian.com>
29917
29918         * XEventQueue.cs: Lock when getting the lockqueue size.
29919         * PictureBox.cs: Call base OnPaint
29920         
29921 2005-04-19  Peter Bartok  <pbartok@novell.com>
29922
29923         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
29924           messages were no longer being processed (this broke BeginInvoke)
29925
29926           
29927 2005-04-18  Jackson Harper  <jackson@ximian.com>
29928
29929         * TreeView.cs: buglet that caused node images to get drawn
29930         regardless of whether or not they were in the clipping rectangle.
29931
29932 2005-04-18  Jackson Harper  <jackson@ximian.com>
29933
29934         * CurrencyManager.cs: There are four rules for GetItemProperties:
29935         - If the type is an array use the element type of the array
29936         - If the type is a typed list, use the type
29937         - If the list contains an Item property that is not an object, use
29938         that property
29939         - use the first element of the list if there are any elements in
29940         the list.
29941         
29942 2005-04-17  Jackson Harper  <jackson@ximian.oom>
29943
29944         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
29945         click. This handles offsets for scrolling properly and reduces
29946         memory. Also fixed GetNode to not offset now that TopNode works
29947         properly.
29948         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
29949         
29950 2005-04-17  Jackson Harper  <jackson@ximian.com>
29951
29952         * CursorConverter.cs: Initial implementation.
29953
29954 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
29955
29956         * ListControl.cs: work towards complex data binding support on ListControl
29957         * CurrencyManager.cs: work towards complex data binding support on ListControl
29958         * ListBox.cs: work towards complex data binding support on ListControl
29959
29960
29961 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
29962
29963         * GridTableStylesCollection.cs: fixes name and constructor
29964         * DataGridTableStyle.cs: fixes
29965         * DataGridBoolColumn.cs: fixes names and constructors
29966         * DataGrid.cs: define methods and properties. Some init implementations
29967         * DataGridCell.cs: define methods and properties. Some init implementations
29968         * GridTablesFactory.cs: Define methods and properties
29969
29970 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
29971
29972         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
29973         graphics port changes.  We still want the coordinates in global screen
29974         coordinates.
29975
29976 2005-04-14  Jackson Harper  <jackson@ximian.com>
29977
29978         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
29979         check plus minus or checkbox clicks unless those features are enabled.
29980
29981 2005-04-14  Jackson Harper  <jackson@ximian.com>
29982
29983         * TreeView.cs: Add methods for setting the top and bottom visible
29984         nodes. TreeNode::EnsureVisible uses these methods.
29985         * TreeNode.cs: Implement EnsureVisible
29986
29987 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
29988
29989         * Form.cs: Pospone menu assignation if the window has not been created yet
29990         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
29991         size and position
29992
29993 2005-04-12  Jackson Harper  <jackson@ximian.com>
29994
29995         * TreeView.cs: Set the TopNode properly when scrolling
29996         occurs. This has the added benifit of reducing the amount of
29997         walking that needs to be done when drawing. Also removed an old
29998         misleading TODO.
29999         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
30000         
30001 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
30002
30003         * Timer.cs: fixes interval setting when the timer is already enabled
30004         
30005 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
30006
30007         * FolderBrowserDialog.cs: First approach
30008
30009 2005-04-09  Peter Bartok  <pbartok@novell.com>
30010
30011         * FolderBrowserDialog: Added
30012
30013 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
30014
30015         * LinkLabel.cs: move drawing code into the theme
30016         * ThemeWin32Classic.cs: drawing code and painting background bugfix
30017         * Theme.cs: define DrawLinkLabel method
30018
30019 2005-04-05  Jackson Harper  <jackson@ximian.com>
30020
30021         * BindingContext.cs: Use weak references so these bad actors don't
30022         stay alive longer then they need to.
30023
30024 2005-04-05  Jackson Harper  <jackson@ximian.com>
30025
30026         * ListControl.cs: Basic implementation of complex databinding.
30027         * ComboBox.cs:
30028         * ListBox.cs: Add calls to ListControl databinding methods.
30029
30030 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
30031
30032         * FileDialog.cs:
30033           - Don't change PopupButtonState to Normal when the
30034             PopupButton gets pressed several times.
30035           - Renamed ButtonPanel to PopupButtonPanel
30036
30037 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
30038
30039         * ColorDialog.cs: Use cached objects instead of creating them
30040         * LinkLabel.cs: Use cached objects instead of creating them
30041         * Splitter.cs: Use cached objects instead of creating them
30042         * FontDialog.cs: Use cached objects instead of creating them
30043         * PropertyGridView.cs: Use cached objects instead of creating them
30044         * MessageBox.cs: Use cached objects instead of creating them
30045         * FileDialog.cs: Use cached objects instead of creating them
30046         * ThemeWin32Classic.cs: Use cached objects instead of creating them
30047         * TreeView.cs: Use cached objects instead of creating them
30048         
30049 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
30050
30051         * Control.cs: use Equals to compare the font since no == op
30052         * ScrollBar.cs: use Equals to compare the font since no == op
30053
30054 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
30055
30056         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
30057
30058 2005-04-01  Jackson Harper  <jackson@ximian.com>
30059
30060         * Binding.cs: Implement IsBinding.
30061         * BindingManagerBase.cs:
30062         * PropertyManager.cs:
30063         * CurrencyManager.cs: Add IsSuspended property.
30064
30065 2005-04-01  Jackson Harper  <jackson@ximian.com>
30066
30067         * Binding.cs: Had some IsAssignableFrom calls backwards.
30068
30069 2005-04-01  Jackson Harper  <jackson@ximian.com>
30070
30071         * Binding.cs: Handle null data members when pulling data.
30072         * PropertyManager.cs: Handle the data member being a property that
30073         does not exist.
30074
30075 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
30076
30077         * DataGridTextBoxColumn.cs: fixes signature
30078         * DataGrid.cs: calls right constructor
30079
30080 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
30081
30082         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
30083         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
30084         * GridTableStylesCollection.cs: implements GridTableStylesCollection
30085         * DataGridTableStyle.cs: implements DataGridTableStyle
30086         * DataGridBoolColumn.cs: implements DataGridBoolColumn
30087         * DataGridTextBox.cs: implements DataGridTextBox
30088         * DataGridColumnStyle.cs: implements DataGridColumnStyle
30089
30090 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
30091
30092         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
30093
30094 2005-03-29  Peter Bartok  <pbartok@novell.com>
30095
30096         * Application.cs:
30097           - Properly implemented CompanyName property
30098           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
30099             returns a path that includes CompanyName, ProductName and
30100             Version (fixes bug #70330)
30101
30102 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
30103
30104         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
30105           fixes bug #72588.
30106
30107 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
30108
30109         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
30110         
30111           - Added ReadOnly CheckBox
30112           - Further refactoring: moved some code from Open-/SaveFileDialog
30113             to FileDialog
30114
30115 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
30116
30117         * OpenFileDialog.cs: Fixed CheckFileExists
30118         * FileDialog.cs:
30119           Moved FileView and DirComboBox outside FileDialog class.
30120           They can now be used outside FileDialog
30121
30122 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
30123
30124         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
30125         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
30126
30127 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
30128
30129         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
30130           - Added missing CreatePrompt property in SaveDialog
30131           - Overall SaveDialog handling should be better now
30132           - Added non standard ShowHiddenFiles property
30133           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
30134           - Added InitialDirectory and RestoreDirectory support
30135
30136 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
30137
30138         * FileDialog.cs: Made dirComboBox usable
30139
30140 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
30141
30142         * FileDialog.cs: Added Filter support (case sensitiv)
30143
30144 2005-03-24  Jackson Harper  <jackson@ximian.com>
30145
30146         * TabControl.cs: Need a couple more pixels for the lines.
30147
30148 2005-03-23  Jackson Harper  <jackson@ximian.com>
30149
30150         * TabControl.cs: Give the tab page focus when it is selected.
30151
30152 2005-03-23  Jackson Harper  <jackson@ximian.com>
30153
30154         * TabControl.cs: Account for the drawing of tabs borders when
30155         invalidating. If the slider was clicked dont do click detection on
30156         the tabs.
30157
30158 2005-03-23  Jackson Harper  <jackson@ximian.com>
30159
30160         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
30161
30162 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
30163
30164         * CategoryGridEntry.cs: Added
30165         * GridItem.cs: Added helper properties
30166         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
30167         * GridEntry.cs: Updated code for collection
30168         * PropertyGrid.cs: Cleaned up some formatting
30169         * PropertyGridView.cs: Added drop down functionality for enums.
30170         * GridItemCollection.cs: Added enumerator logic
30171         * PropertyGridEntry.cs: Added
30172
30173 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
30174
30175         * FileDialog.cs:
30176           - Removed unnecessary commented code
30177           - Fixed handling for entering the filename manually in the combobox
30178
30179 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
30180
30181         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
30182
30183 2005-03-18  Peter Bartok  <pbartok@novell.com>
30184
30185         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
30186           them being touching the border
30187
30188 2005-03-18  Peter Bartok  <pbartok@novell.com>
30189
30190         * TextControl.cs: Quick hack to center text better
30191
30192 2005-03-18  Peter Bartok  <pbartok@novell.com>
30193
30194         * ControlPaint.cs:
30195           - Don't throw NotImplemented exceptions, just print a notice once
30196             instead (requested by Miguel). This makes running existing SWF
30197             apps a bit easier
30198         * Control.cs:
30199           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
30200           - Added context menu trigger on right click
30201         * Panel.cs: Trigger invalidate on resize
30202         * StatusBar.cs:
30203           - Removed old double-buffer drawing
30204           - Added ResizeRedraw style to force proper update of statusbar
30205         * ListView.cs:
30206           - Removed debug output
30207         * ThemeWin32Classic.cs:
30208           - Fixed drawing of status bar, now draws Text property if there
30209             are no defined panels
30210
30211 2005-03-18  Jackson Harper  <jackson@ximian.com>
30212
30213         * ImageList.cs: When the image stream is set pull all the images
30214         from it.
30215         * ImageListStreamer.cs: Implement reading image list streams.
30216
30217 2005-03-18  Peter Bartok  <pbartok@novell.com>
30218
30219         * ThemeWin32Classic.cs (DrawPictureBox):
30220           - Fixed calculations for centered drawing
30221           - Fixed drawing for normal mode, not scaling the image on normal
30222
30223 2005-03-18  Peter Bartok  <pbartok@novell.com>
30224
30225         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
30226           textbox
30227         * FileDialog.cs:
30228           - Made Open/Save button the accept button for FileDialog
30229           - Tied the cancel button to the IButtonControl cancel button
30230           - Save/Open now properly builds the pathname
30231           - Now handles user-entered text
30232           - Preventing crash on right-click if no item is selected
30233           - Fixed Text property, now uses contents of textbox
30234           - Fixed SelectedText property, now just returns the text part that
30235             is selected in the text box
30236
30237 2005-03-18  Jackson Harper  <jackson@ximian.com>
30238
30239         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
30240         rect, make sure to de-adjust the interior rect after drawing the
30241         tab text.
30242
30243 2005-03-18  Peter Bartok  <pbartok@novell.com>
30244
30245         * MenuAPI.cs: Remove menu *before* executing selected action to
30246           prevent the menu from 'hanging around'
30247           
30248 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
30249
30250         * XplatUIOSX.cs: Implemented WorkingArea property
30251
30252 2005-03-17  Peter Bartok  <pbartok@novell.com>
30253
30254         * XplatUIX11.cs: Fixed menu coord calculations
30255         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
30256           for calculating offsets
30257
30258 2005-03-17  Peter Bartok  <pbartok@novell.com>
30259
30260         * Hwnd.cs: Do not consider menu presence for default client
30261           rectangle location/size
30262         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
30263           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
30264           translation functions
30265         * FileDialog.cs: Fixed (what I presume is a) typo
30266
30267 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
30268
30269         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
30270           X access (avoids X-Async errors)
30271
30272 2005-03-16  Jackson Harper  <jackson@ximian.com>
30273
30274         * TabControl.cs: Raise the SelectedIndexChanged event.
30275
30276 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
30277
30278         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
30279           - Removed vertical ToolBar and replaced it with a custom panel
30280             (desktop and home button already work)
30281           - Added Help button (some controls get resized or relocated then)
30282           - Draw correct text depending on Open or Save.
30283           - Fixed some typos...
30284
30285 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
30286
30287         * ScrollBar.cs:
30288           - Only change Maximum and Minimum when need it (bug fix)
30289
30290 2005-03-15  Peter Bartok  <pbartok@novell.com>
30291
30292         * Form.cs: Use Handle for icon, to trigger creation if
30293           the window does not yet exist
30294         * Control.cs:
30295           - CanSelect: Slight performance improvement
30296           - Focus(): Preventing possible recursion
30297           - Invalidate(): Removed ControlStyle based clear flag setting
30298           - WM_PAINT: fixed logic for calling OnPaintBackground
30299           - WM_ERASEBKGND: Fixed logic, added call to new driver method
30300             EraseWindowBackground if the control doesn't paint background
30301         * XplatUIWin32.cs:
30302           - Moved EraseWindowBackground() method to internal methods
30303           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
30304             is sent via SendMessage on BeginPaint call on Win32
30305         * XplatUIX11.cs:
30306           - Added EraseWindowBackground() method
30307           - No longer sends WM_ERASEBKGND on .Expose, but on call to
30308             PaintEventStart, which more closely matches Win32 behaviour
30309           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
30310           - Fixed SetFocus() to properly deal with client and whole windows
30311         * Hwnd.cs: Added ErasePending property
30312         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
30313         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
30314
30315 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
30316
30317         * XplatUIOSX.cs:
30318           - Fix hard loop when timers exist.
30319           - Fix bugs with middle and right click for 3 button mice.
30320
30321 2005-03-11  Peter Bartok  <pbartok@novell.com>
30322
30323         * XplatUIX11.cs:
30324           - get_WorkingArea: Need to call X directly, GetWindowPos only
30325             returns cached data now
30326           - Added sanity check to GetWindowPos hwnd usage
30327
30328 2005-03-11  Jackson Harper  <jackson@ximian.com>
30329
30330         * BindingManagerBase.cs: This method isn't used anymore as
30331         PullData now updates the data in the control.
30332
30333 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
30334
30335         * Form.cs: fixes menu drawing on X11
30336         * MenuAPI.cs:  fixes menu drawing on X11
30337
30338 2005-03-11  Peter Bartok  <pbartok@novell.com>
30339
30340         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
30341           from Jonathan Gilbert; should fix bug #73606
30342         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
30343           in Screen coordinates. Thanks, Jordi.
30344         * Form.cs: Added missing attribute
30345
30346 2005-03-11  Peter Bartok  <pbartok@novell.com>
30347
30348         * Form.cs:
30349           - Rudimentary Mdi support
30350           - Removed outdated FormParent code
30351           - Implemented lots of missing properties and methods, still missing
30352             transparency support
30353           - Added missing attributes
30354           - Implemented support for MaximumBounds
30355           - Added firing of various events
30356         * XplatUI.cs: Added SetIcon() method
30357         * XplatUIDriver.cs: Added SetIcon() abstract
30358         * XplatUIOSX.cs: Stubbed out SetIcon() method
30359         * XplatUIX11.cs:
30360           - Implemented SetIcon() support
30361           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
30362           - Switched to unix line endings
30363         * XplatUIWin32.cs:
30364           - Made POINT internal so for can access it as part of MINMAX
30365           - Implemented SetIcon() support
30366           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
30367             native Mdi support again, might have to go managed)
30368         * Control.cs: Now fires the StyleChanged event
30369         * MdiClient.cs: Added; still mostly empty
30370
30371 2005-03-10  Peter Bartok  <pbartok@novell.com>
30372
30373         * SaveFileDialog.cs: Added emtpy file
30374
30375 2005-03-08  Peter Bartok  <pbartok@novell.com>
30376
30377         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
30378           in turn triggers OnCreateContro) when creating a handle for the
30379           first time.
30380         * TextControl.cs: Fixed endless loop in certain cases when
30381           replacing the current selection
30382
30383 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
30384
30385         * ScrollBar.cs:
30386           - Honors NewValue changes in Scroll events allowing apps to change it
30387           - Adds First and Last Scroll events
30388           - Fixes Thumb events
30389
30390 2005-03-07  Peter Bartok  <pbartok@novell.com>
30391
30392         * Hwnd.cs: Added DefaultClientRectangle property
30393         * XplatUI.cs: Now using the X11 driver Where() method, which provides
30394           more detailed debug information
30395         * XplatUIX11.cs:
30396           - Fixed size-change feedback loop, where we would pull an old size
30397             off the queue and mistakenly change our window's size to an
30398             earlier value
30399           - Now compressing ConfigureNotify events, to reduce looping and
30400             redraw issues
30401         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
30402           is called
30403
30404 2005-03-07  Jackson Harper  <jackson@ximian.com>
30405
30406         * Binding.cs: Push data pushes from data -> property. Check if the
30407         property is readonly when attempting to set it.
30408
30409 2005-03-07  Jackson Harper  <jackson@ximian.com>
30410
30411         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
30412         instead of IsSubclassOf. Pulling data now sets the value on the
30413         control.
30414         * PropertyManager.cs:
30415         * CurrencyManager.cs: Just need to pull data when updating now,
30416         because PullData will set the value on the control.
30417
30418 2005-03-04  Jackson Harper  <jackson@ximian.com>
30419
30420         * Binding.cs: Implement data type parsing and converting on pulled
30421         data. TODO: Are there more ways the data can be converted?
30422
30423 2005-03-04  Jackson Harper  <jackson@ximian.com>
30424
30425         * Binding.cs: Support <Property>IsNull checks. Also bind to the
30426         controls Validating method so we can repull the data when the
30427         control loses focus.
30428
30429 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
30430
30431         * ColumnHeader.cs:
30432           - Fixes null string format
30433           
30434         * ListView.cs:
30435           - Adds enum type checks
30436           - Fixes redrawing and recalc need after changing some properties
30437           - Fixes on focus_item set after the event
30438           - Fixes adding columns after the control has been created
30439           
30440         * ThemeWin32Classic.cs:
30441           - Fixes CheckBox focus rectangle
30442           - Fixes ColumnHeader drawing
30443
30444
30445 2005-03-03  Jackson Harper  <jackson@ximian.com>
30446
30447         * Binding.cs: Bind to <Property>Changed events so we can detect
30448         when properties are changed and update the data.
30449
30450 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
30451
30452         * ImageList.cs:
30453           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
30454           - Fixes ImageList constructor with ImageList container
30455           - Fixes image scaling (wrong parameters at DrawImage)
30456
30457 2005-02-02  Jackson Harper  <jackson@ximian.com>
30458
30459         * Binding.cs: Make property searches case-insensitive. Eliminate
30460         some duplicated code.
30461
30462 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
30463
30464         * ComboBox.cs:
30465                 - Handle focus event
30466                 - Fix scrollbar events
30467                 - Discard highlighted item if remove it
30468                 - Fixes SelectedItem with strings
30469
30470 2005-03-01  Peter Bartok  <pbartok@novell.com>
30471
30472         * Control.cs:
30473           - Fixed Visible property, now follows (once again) parent chain
30474             to return false if any control in the chain is visible=false
30475           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
30476           - Fixed several places where is_visible instead of Visible was used
30477           - Implemented FIXME related to focus selection when setting focused
30478             control to be invisible
30479
30480         * XplatUIWin32.cs: Now using proper method to find out if window is
30481           visible. Thanks to Jordi for pointing it out
30482
30483 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
30484
30485         * ComboBox.cs: show/hide scrollbar instead of creating it
30486
30487 2005-02-27  Jackson Harper  <jackson@ximian.com>
30488
30489         * CurrencyManager.cs: Add PositionChanged stuff.
30490
30491 2005-02-27  Peter Bartok  <pbartok@novell.com>
30492
30493         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
30494         * XplatUIOSX.cs: Added GetMenuOrigin() stub
30495         * XplatUIWin32.cs: Implemented GetMenuOrigin()
30496         * XplatUIX11.cs:
30497           - Implemented GetMenuDC()
30498           - Implemented GetMenuOrigin()
30499           - Implemented ReleaseMenuDC()
30500           - Implemented generation of WM_NCPAINT message
30501           - Implemented generation and handling of WM_NCCALCSIZE message
30502         * Form.cs: Added debug helper message for Jordi's menu work
30503         * Hwnd.cs:
30504           - Modified ClientRect property; added setter, fixed getter to handle
30505             setting of ClientRect
30506           - Added MenuOrigin property
30507
30508 2005-02-26  Peter Bartok  <pbartok@novell.com>
30509
30510         * XplatUIX11.cs:
30511           - Destroys the caret if a window that's being destroyed contains it
30512           - Ignores expose events coming from the X11 queue for windows that
30513             already are destroyed
30514           - Now uses the proper variable for handling DestroyNotify, before we
30515             marked the wrong window as destroyed
30516           - Improved/added some debug output
30517
30518 2005-02-26  Peter Bartok  <pbartok@novell.com>
30519
30520         * X11Keyboard.cs: Fixes to work on 64bit systems
30521
30522 2005-02-26  Peter Bartok  <pbartok@novell.com>
30523
30524         * Control.cs:
30525           - Now calling OnHandleDestroyed from DestroyHandle()
30526             instead of Dispose()
30527           - Removed bogus call to controls.Remove() from DestroyHandle()
30528
30529 2005-02-26  Peter Bartok  <pbartok@novell.com>
30530
30531         * Control.cs: Properly destroy child windows when our handle is
30532           destroyed
30533
30534 2005-02-25  Peter Bartok  <pbartok@novell.com>
30535
30536         * XplatUI.cs:
30537           - Added 'DriverDebug' define to allow tracing XplatUI API calls
30538           - Alphabetized Static Methods and Subclasses
30539
30540         * XplatUIX11.cs:
30541           - Added XException class to allow custom handling of X11 exceptions
30542           - Created custom X11 error handler, tied into XException class
30543           - Added support for MONO_XEXCEPTIONS env var to allow the user
30544             to either throw an exception on X errors or continue running
30545             after displaying the error
30546           - Added handling of DestroyNotify message
30547           - Added handler for CreateNotify message (still disabled)
30548           - Improved (tried to at least) Where method to provide file and lineno
30549         * X11Structs.cs:
30550           - Added XErrorHandler delegate
30551           - Added XRequest enumeration (to suppor translation of errors)
30552
30553 2005-02-25  Jackson Harper  <jackson@ximian.com>
30554
30555         * PropertyManager.cs: Implement editing features
30556         * CurrencyManager.cs:
30557         * Binding.cs: First attempt at UpdateIsBinding
30558         * BindingManagerBase.cs: Call UpdateIsBinding before
30559         pushing/pulling data.
30560
30561 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
30562
30563         * MenuAPI.cs: Respect disabled items
30564         * ThemeWin32Classic.cs
30565                 - Caches ImageAttributes creation for DrawImageDisabled
30566                 - Fixes vertical menu line drawing
30567                 - Draws disabled arrows in disable menu items
30568
30569 2005-02-24  Peter Bartok  <pbartok@novell.com>
30570
30571         * Hwnd.cs:
30572           - Added UserData property to allow associating arbitrary objects
30573             with the handle
30574           - Fixed leak; now removing Hwnd references from static windows array
30575         * XplatUIWin32.cs:
30576           - Fixed Graphics leak in PaintEventEnd
30577           - Removed usage of HandleData, switched over to Hwnd class
30578         * HandleData.cs: Removed, obsoleted by Hwnd.cs
30579
30580 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
30581
30582         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
30583         * ScrollBar.cs: Fixes bug
30584         * TrackBar.cs: removes death code, clipping, mimize refreshes,
30585          keyboard navigation enhancements
30586
30587 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
30588
30589         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
30590         * GroupBox.cs: Add control styles
30591         * Label.cs: Add control styles
30592         * UpDownBase.cs: Add control styles
30593         * ListBox.cs: Add control styles
30594         * XplatUIWin32.cs: Fixes wrong parameter order
30595
30596
30597 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
30598
30599         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
30600
30601 2005-02-23  Jackson Harper  <jackson@ximian.com>
30602
30603         * PropertyManager.cs: Implement property binding. This doesn't
30604         seem to work yet though as (I think) there are some bugs in
30605         System.ComponentModel.PropertyDescriptor.
30606         * BindingContext.cs: Use new PropertyManager constructor.
30607
30608 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
30609
30610         * ProgressBar.cs: use clip region in ProgressBar
30611         * ThemeWin32Classic.cs: use clip region in ProgressBar
30612
30613 2004-02-22  Jackson Harper  <jackson@ximian.com>
30614
30615         * BindingsCollection.cs: Remove some debug code.
30616
30617 2005-02-22  Jackson Harper  <jackson@ximian.com>
30618
30619         * BindingContext.cs:
30620         * ControlBindingsCollection.cs:
30621         * CurrencyManager.cs:
30622         * Binding.cs:
30623         * BindingManagerBase.cs: Initial implementation
30624         * BindingsCollection.cs: Add an internal contains method that the
30625         BindingManagerBase uses to ensure bindings aren't added twice to
30626         the collection.
30627         * PropertyManager.cs: Stubbed out.
30628         * Control.cs:
30629         * ContainerControl.cs: Hook up databinding
30630         
30631 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
30632
30633         * XplatUIOSX.cs:
30634           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
30635           Fixed Invalidate/Update chain.
30636           Fixed tons of other minor bugs (this is almost a complete rewrite).
30637
30638 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
30639
30640         * ComboBox.cs: do subcontrol creation when the control is created
30641
30642 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
30643
30644         * Label.cs: fixes image drawing (image and imagelist)
30645         * ThemeWin32Classic.cs: cache brushes
30646         
30647 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
30648
30649         * Form.cs: Move menu drawing code to Theme class
30650         * ComboBox.cs: Move ComboBox drawing code to Theme class
30651         * MenuItem.cs: Move menu drawing code to Theme class
30652         * MenuAPI.cs: Move menu drawing code to Theme class
30653         * ThemeWin32Classic.cs: New methods
30654         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
30655         * ListBox.cs: Move Listbox drawing code to Theme class
30656         * Theme.cs: New methods
30657
30658 2005-02-20  Peter Bartok  <pbartok@novell.com>
30659
30660         * Control.cs:
30661           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
30662             only process mnemonics on those)
30663           - Fixed event sequence for key handling; first calling
30664             ProcessKeyEventArgs now
30665         * TextBoxBase.cs:
30666           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
30667             for processing non-character keys
30668           - Fixed WM_CHAR to generate proper event sequence before processing
30669         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
30670           generation
30671
30672 2005-02-19  Peter Bartok  <pbartok@novell.com>
30673
30674         * UserControl.cs: Added TextChanged event; added attributes
30675         * SizeGrip.cs: Implemented resizing and optional display of grip
30676         * Form.cs: Fixed attribute
30677         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
30678           Changed meaning of ScrollWindow bool argument; instead of the
30679           clear attribute (which will be true usually anyway), it gives the
30680           option of moving child controls as well.
30681         * XplatUIX11.cs:
30682           - Changed to match new ScrollWindow argument
30683           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
30684             now handles the implicit parent window a WM puts around us
30685         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
30686           to work)
30687         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
30688         * TreeView.cs: Adjusted to new ScrollWindow arguments
30689
30690 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
30691
30692         * Form.cs: Menu integration with non-client area
30693         * MenuItem.cs: Menu integration with non-client area
30694         * MenuAPI.cs: Menu integration with non-client area
30695
30696 2005-02-18  Peter Bartok  <pbartok@novell.com>
30697
30698         * MethodInvoker.cs: Added
30699         * MdiLayout.cs: Added
30700         * SendKeys.cs: Started implementation
30701         * ErrorIconAlignment.cs: Added
30702
30703 2005-02-18  Peter Bartok  <pbartok@novell.com>
30704
30705         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
30706         * Form.cs: Added handling for Menu-related Non-client messages
30707
30708 2005-02-17  Peter Bartok  <pbartok@novell.com>
30709
30710         * UpDownBase.cs: Fixed typo, compilation errors
30711         * DomainUpDown.cs: Fixed attribute value
30712
30713 2005-02-16  Miguel de Icaza  <miguel@novell.com>
30714
30715         * UpDownBase.cs: Attach entry events.
30716         Propagate events.
30717         Add ForeColor property, Focused, InterceptArrowKeys (interception
30718         does not work yet).
30719
30720 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
30721
30722         * Form.cs:
30723                 - Redraw non client are on Setmenu
30724                 - Calc proper menu starting point
30725
30726 2005-02-17  Peter Bartok  <pbartok@novell.com>
30727
30728         * Application.cs: Fixed message_filter check
30729
30730 2005-02-17  Peter Bartok  <pbartok@novell.com>
30731
30732         * Application.cs: Now calls registered message filters
30733         * DockStyle.cs: Fixed attribute
30734         * Form.cs: Fixed attribute
30735         * Menu.cs: Fixed attribute
30736         * ToolTip.cs: Fixed attribute
30737         * TreeNode.cs: Added missing attributes and arranged in regions
30738         * PropertyGrid.cs: Fixed signatures
30739         * TreeNodeCollection.cs: Added attributes
30740         * Splitter.cs: Added missing attributes; arranged into regions
30741         * TabPage.cs: Added missing attributes; arranged into regions
30742         * TextBoxBase.cs: Added missing attributes
30743         * TextBox.cs: Added missing attributes
30744         * ArrangeDirection.cs: Added missing attributes
30745         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
30746         * ToolBarButton.cs: Fixed attributes
30747         * AnchorStyles.cs: Fixed attribute
30748         * TrackBar.cs: Fixed attributes
30749         * TabControl.cs: Added missing attributes and arranged into regions
30750         * ToolBar.cs: Fixed attribute
30751         * StatusBar.cs: Fixed signature, organized into regions and added
30752           attributes
30753         * StatusBarPanel.cs: Fixed attributes
30754         * ContentsResizedEventArgs.cs: Implemented
30755         * ContentsResizedEventHandler.cs: Implemented
30756         * DateBoldEventArgs.cs: Implemented
30757         * DateBoldEventHandler.cs: Implemented
30758         * UpDownEventArgs.cs: Implemented
30759         * UpDownEventHandler.cs: Implemented
30760         
30761 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
30762
30763         * Form.cs: first Menu NC refactoring
30764         * MenuAPI.cs: first Menu NC refactoring
30765         
30766 2005-02-16  Peter Bartok  <pbartok@novell.com>
30767
30768         * ImeMode.cs: Added missing attributes
30769         * Menu.cs: Fixed attribute
30770         * GroupBox.cs: Fixed attribute
30771         * Label.cs: Fixed attribute
30772         * ColorDialog.cs (RunDialog): Removed TODO attribute
30773         * ComboBox.cs: Fixed attributes
30774         * ListControl.cs: Added missing attributes
30775         * PropertyGrid.cs: Fixed attributes
30776         * Control.cs: Fixed attributes
30777         * ListViewItem.cs: Added TypeConverter attribute
30778         * NotifyIcon.cs: Fixed attributes
30779         * ListView.cs: Fixed attributes
30780         * ButtonBase.cs: Fixed attribute
30781         * ImageList.cs: Added missing attributes
30782         * ContainerControl.cs: Fixed signature
30783         * CheckedListBox.cs: Fixed attribute; added missing attributes
30784         * Panel.cs: Fixed attributes
30785         * PropertyTabChangedEventArgs.cs: Added missing attribute
30786         * PropertyValueChangedEventArgs.cs: Added missing attribute
30787         * Binding.cs: Fixed attribute
30788         * ListViewItemConverter: Implemented ListViewSubItemConverter class
30789         * ListBox.cs: Fixed attribute; added missing attributes;
30790         * ScrollableControl.cs: Added missing attributes
30791         * PictureBox.cs: Added missing attributes; implemented missing property
30792         * DateTimePicker.cs: Added missing attributes
30793         * Theme.cs (ToolWindowCaptionHeight): Fixed type
30794         * MonthCalendar.cs: Fixed attributes
30795         * StatusBarPanel.cs: Added missing attributes
30796         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
30797
30798 2005-02-16  Peter Bartok  <pbartok@novell.com>
30799
30800         * TextBoxBase.cs: The previous method to enforce height yet remember
30801           the requested high was less than ideal, this is an attempt to do
30802           it better.
30803         * Control.cs: Added comment about possible problem
30804         * Copyright: Updated format
30805         * GridItemType.cs: Fixed swapped values
30806
30807 2005-02-15  Jackson Harper  <jackson@ximian.com>
30808
30809         * BaseCollection.cs: Use property so we never access an
30810         uninitialized list. Also initialize the list in the property.
30811
30812 2005-02-15  Peter Bartok  <pbartok@novell.com>
30813
30814         * GroupBox.cs (ProcessMnemonic): Implemented
30815         * Label.cs (ProcessMnemonic): Implemented
30816         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
30817           hotkeys
30818
30819 2005-02-15  Peter Bartok  <pbartok@novell.com>
30820
30821         * RadioButton.cs (ProcessMnemonic): Implemented
30822         * CheckBox.cs (ProcessMnemonic): Implemented
30823         * Control.cs:
30824           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
30825             handling
30826           - Added internal method to allow calling ProcessMnemonic from other
30827             controls
30828         * ContainerControl.cs:
30829           - Started support for handling validation chain handling
30830           - Implemented ProcessMnemonic support
30831           - Added Select() call to Active, to make sure the active control
30832             receives focus
30833         * Form.cs: Setting toplevel flag for Forms (this was lost in the
30834           FormParent rewrite)
30835         * ThemeWin32Classic.cs:
30836           - DrawCheckBox(): Fixed stringformat to show hotkeys
30837           - DrawRadioButton(): Fixed stringformat to show hotkeys
30838         * CommonDialog.cs: Removed WndProc override, not needed
30839
30840 2005-02-14  Peter Bartok  <pbartok@novell.com>
30841
30842         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
30843           missed those in the rewrite
30844
30845 2005-02-14  Miguel de Icaza  <miguel@novell.com>
30846
30847         * NumericUpDown.cs (Increment, ToString): Add.
30848         (DecimalPlaces): implement.
30849         
30850         Add attributes.
30851         
30852         * UpDownBase.cs: Add the designer attributes.
30853
30854 2005-02-13  Peter Bartok  <pbartok@novell.com>
30855
30856         * Panel.cs: Removed border_style, now in Control
30857         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
30858           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
30859
30860 2005-02-13  Peter Bartok  <pbartok@novell.com>
30861
30862         * MouseButtons.cs: Added missing attributes
30863         * XplatUIStructs.cs: Added enumeration for title styles
30864         * LeftRightAlignment.cs: Added missing attributes
30865         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
30866           it compatible with Graphics.FromHwnd()
30867         * SelectedGridItemChangedEventArgs.cs: Fixed property type
30868         * Keys.cs: Added missing attributes
30869         * SelectionRange.cs: Added missing attributes
30870         * SelectionRangeConverter.cs: Added
30871         * XplatUI.cs:
30872           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
30873             ReleaseMenuDC methods
30874           - Renamed ReleaseWindow to UngrabWindow
30875           - Added proper startup notice to allow version identification
30876         * Form.cs:
30877           - Added missing attributes
30878           - Removed FormParent concept
30879         * Label.cs: Removed border_style field, now in Control
30880         * RadioButton.cs: Now properly selects RadioButton when focus is
30881           received
30882         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
30883         * Control.cs:
30884           - Added missing attributes
30885           - Added borderstyle handling
30886           - Removed FormParent concept support
30887           - Fixed calls to XplatUI to match changed APIs
30888           - Fixed bug that would case us to use disposed Graphics objects
30889           - Removed unneeded internal methods
30890           - PerformLayout(): Fixed to handle DockStyle.Fill properly
30891           - SelectNextControl(): Fixed to properly check common parents
30892         * TextBoxBase.cs: Removed border_style field (now in Control)
30893         * MessageBox.cs:
30894           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
30895             fixed calculations for form size
30896           - Added support for localized strings and icons
30897           - Improved form size calculations, added border
30898         * ListView.cs: Removed border_style field (now in Control)
30899         * X11Structs.cs: Moved several structs from X11 driver here
30900         * X11Keyboard.cs: Changed debug message
30901         * Application.cs: Removed FormParent concept support
30902         * CommonDialog.cs:
30903           - Resetting end_modal flag
30904           - Removed FormParent concept support
30905         * NativeWindow.cs: Removed FormParent concept support
30906         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
30907           Client area and Non-Client whole window to allow support for WM_NC
30908           messages
30909         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
30910           prevent using it until it supports Hwnd as per Geoff Norton's request
30911         * ToolBar.cs: Fixed drawing, was not doing proper drawing
30912         * PictureBox.cs: Removed border_style field, now in Control
30913         * XplatUIWin32.cs: Added new driver methods
30914
30915 2005-02-12  Peter Bartok  <pbartok@novell.com>
30916
30917         * OpacityConverter.cs: Implemented
30918         * Hwnd.cs: Internal class to support drivers that need to emulate
30919           client area/non-client area window behaviour
30920
30921 2005-02-11  Peter Bartok  <pbartok@novell.com>
30922
30923         * KeysConverter.cs: Implemented
30924
30925 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
30926
30927         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
30928         * LinkLabel: Added missing attributes
30929         * MainMenu.cs: fixes ToString
30930         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
30931         * ListBox.cs: fixes event position
30932         * TrackBar.cs: adds missing attributes and events
30933         
30934 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
30935
30936         * MenuItem.cs: Use SystemInformation and bug fixes
30937         * MenuAPI.cs: Use SystemInformation and bug fixes
30938
30939 2005-02-09  Jackson Harper  <jackson@ximian.com>
30940
30941         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
30942         their keystate otherwise things like VK_MENU get stuck "on".
30943
30944 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
30945
30946         * ListBox.cs: Fixes AddRange bug
30947         
30948 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
30949
30950         * ProgressBar.cs
30951                 - Add missing attributes
30952                 - Add missing method
30953                 
30954         * CheckedListBox.cs: Added missing attributes
30955                 - Add missing attributes
30956                 - Remove extra method
30957         
30958         * ComboBox.cs: Added missing attributes
30959         * VScrollBar.cs: Added missing attributes
30960         * ScrollBar.cs:  Added missing attributes
30961         * ListBox.cs: Fixes signature, add missing consts
30962         * LinkArea.cs:   Added missing attributes
30963         
30964
30965 2005-02-08  Peter Bartok  <pbartok@novell.com>
30966
30967         * Menu.cs: Added missing attributes
30968         * MainMenu.cs: Added missing attributes
30969         * GroupBox.cs: Added missing attributes
30970         * Label.cs: Added missing attributes
30971         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
30972         * ColorDialog.cs:
30973           - Added Instance and Options properties
30974           - Added missing attributes
30975         * Cursor.cs: Made Serializable
30976         * NotifyIcon: Added missing attributes
30977         * MenuItem.cs: Added missing attributes
30978         * TextBoxBase.cs: Implemented AppendText() and Select() methods
30979         * Panel.cs: Added Missing attributes
30980         * MonthCalendar.cs: Fixed CreateParams
30981
30982 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
30983         
30984         * LinkLabel.cs:
30985                 - Fixes signature
30986                 - Fixes issues with links
30987                 - Adds the class attributes
30988
30989 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
30990         
30991         * ComboBox.cs:
30992                 - Fixes button when no items available in dropdown
30993                 - Fixes repainting problems
30994                 - Adds the class attributes
30995                 
30996 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
30997
30998         * XplatUIOSX.cs: Detect the menu bar and title bar height from
30999         the current theme.  Cache these on startup.
31000
31001 2005-02-07  Jackson Harper  <jackson@ximian.com>
31002
31003         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
31004         the scrollbar buttons when they are depressed.
31005
31006 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
31007
31008         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
31009         Get the display size from the main displayid.  We currently dont
31010         support multiple display configurations.
31011
31012 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
31013
31014         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
31015
31016 2005-02-07  Miguel de Icaza  <miguel@novell.com>
31017
31018         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
31019
31020 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
31021
31022         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
31023
31024 2005-02-04  Jackson Harper  <jackson@ximian.com>
31025
31026         * ThemeWin32Classic.cs: Respect the clipping rect when
31027         drawing. Only fill the intersection of clips and rects so there
31028         isn't a lot of large fills.
31029         * ScrollBar.cs: Pass the correct clipping rect to the theme
31030         engine. Remove some debug code.
31031
31032 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
31033         
31034         * DateTimePicker.cs:
31035                 - Fixed crash on DateTime.Parse, use Constructor instead
31036
31037 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
31038         
31039         * MenuItem.cs:
31040         * MenuAPI.cs:
31041                 - Owner draw support (MeasureItem and DrawItem)
31042
31043 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
31044         
31045         *  Menu.cs:
31046                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
31047                 - Fixes MenuItems.Add range
31048         * MenuItem.cs:
31049                 - MergeMenu and Clone and CloneMenu functions
31050
31051 2005-02-03  Jackson Harper  <jackson@ximian.com>
31052
31053         * ScrollBar.cs: Make abstract
31054         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
31055         is abstract.
31056
31057 2005-02-03  Jackson Harper  <jackson@ximian.com>
31058
31059         * ScrollBar.cs: First part of my scrollbar fixups. This removes
31060         all the unneeded refreshes and uses invalidates with properly
31061         computed rects.
31062
31063 2005-02-03  Peter Bartok  <pbartok@novell.com>
31064
31065         * ComponentModel.cs: Added
31066         * IDataGridEditingService.cs: Added
31067         * Timer.cs: Added missing attributes
31068         * ToolTip.cs: Added missing attributes
31069
31070 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
31071
31072         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
31073
31074 2005-02-03  Peter Bartok  <pbartok@novell.com>
31075
31076         * ListBox.cs: Added missing attributes
31077
31078 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
31079         
31080         * ListBox.cs:
31081                 - Fixes font height after font change
31082                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
31083                 
31084 2005-02-02  Peter Bartok  <pbartok@novell.com>
31085
31086         * HandleData.cs: Introduced static methods to allow class
31087           to be more self-contained and track it's own HandleData objects
31088         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
31089           HandleData to use new static methods
31090
31091 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
31092
31093         * Combobox.cs:
31094                 - Fixes default size and PreferredHeight
31095                 - Missing events
31096                 - ObjectCollection.Insert implementation
31097                 
31098         * ListControl.cs
31099                 - Fixes signature
31100         * ListBox.cs:
31101                 - Several fixes
31102                 - ObjectCollection.Insert implementation
31103                 - No selection after clean
31104                 - Small fixes
31105
31106 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
31107
31108         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
31109
31110 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
31111
31112         * Combobox.cs:
31113                 - Caches ItemHeight calculation for OwnerDrawVariable
31114                 - Handles dropdown properly
31115                 - Fixes several minor bugs
31116
31117 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
31118
31119         * ListBox.cs:
31120                 - Fixes 71946 and 71950
31121                 - Fixes changing Multicolumn on the fly
31122                 - Fixes keyboard navigation on Multicolumn listboxes
31123
31124 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
31125         
31126         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
31127         crash reporter log.
31128
31129 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
31130
31131         * XplatUIOSX.cs: Allow applications to actually exit.
31132
31133 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
31134
31135         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
31136         their parent at creation time rather than lazily later.  Fixes a major
31137         regression we were experiencing.
31138
31139 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
31140
31141         * ThemeWin32Classic.cs: more date time picker painting fixes
31142         * DateTimePicker.cs: more monthcalendar drop down fixes
31143         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
31144
31145 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
31146
31147         * ScrollBar.cs:
31148                 - When moving the thumb going outside the control should stop the moving
31149                 - Adds the firing of missing events
31150                 - Fixes no button show if Size is not specified
31151                 - End / Home keys for keyboard navigation
31152
31153 2005-01-30  Peter Bartok  <pbartok@novell.com>
31154
31155         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
31156           sanity check to prevent theoretical loop
31157         * XplatUIWin32.cs (SetVisible): Removed debug output
31158         * XplatUIX11.cs (SystrayChange): Added sanity check
31159         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
31160         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
31161           behaviour, valid until the X11 client window rewrite is done
31162         * TextBox.cs (ctor): Setting proper default foreground and background
31163           colors
31164
31165 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
31166
31167         * Theme: Added DrawDateTimePicker to interface
31168         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
31169         * DateTimePicker.cs: Created (still needs keys and painting code)
31170         * DateTimePickerFormat.cs: added
31171         * MonthCalendar.cs: fixed CreateParams for popup window mode
31172           
31173 2005-01-29  Peter Bartok  <pbartok@novell.com>
31174
31175         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
31176           this should also the calculations for ligher/darker
31177         * Theme.cs: Fixed defaults for ScrollBar widths/heights
31178
31179 2005-01-29  Peter Bartok  <pbartok@novell.com>
31180
31181         * ArrangeDirection.cs: Added
31182         * ArrangeStartingPositon.cs: Added
31183         * SystemInformation.cs: Implemented
31184         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
31185           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
31186           used by SystemInformation class
31187         * X11Strucs.cs: Added XSizeHints structure
31188         * MenuAPI.cs:
31189           - Fixed CreateParams to make sure the menu window is always visible
31190           - TrackPopupMenu: Added check to make sure we don't draw the
31191             menu offscreen
31192
31193 2005-01-29  Peter Bartok  <pbartok@novell.com>
31194
31195         * HandleData.cs: Added method for altering invalid area
31196         * TextBoxBase.cs: Implemented TextLength
31197
31198 2005-01-28  Peter Bartok  <pbartok@novell.com>
31199
31200         * XplatUIX11.cs: Improvement over last patch, not sending
31201           the WM_PAINT directly anymore, instead we scroll any pending
31202           exposed areas and let the system pick out the WM_PAINT later
31203
31204 2005-01-28  Peter Bartok  <pbartok@novell.com>
31205
31206         * SWF.csproj: Deleted, no longer used. Instead,
31207           Managed.Windows.Forms/SWF.csproj should be used
31208         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
31209           directly, to avoid a potential race condition with the next
31210           scroll
31211
31212 2005-01-28  Peter Bartok  <pbartok@novell.com>
31213
31214         * XplatUI.cs: Made class internal
31215
31216 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
31217
31218         * CheckedListBox.cs:
31219                 - Draw focus
31220                 - Fixed Drawing
31221                 - Missing methods and events
31222
31223 2005-01-27  Peter Bartok  <pbartok@novell.com>
31224
31225         * Application.cs (Run): Don't use form if we don't have one
31226
31227 2005-01-27  Peter Bartok  <pbartok@novell.com>
31228
31229         * TextBoxBase.cs (get_Lines): Fixed index off by one error
31230
31231 2005-01-27  Peter Bartok  <pbartok@novell.com>
31232
31233         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
31234         * GridItem.cs: Added; Patch by Jonathan S. Chambers
31235         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
31236         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
31237         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
31238         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
31239         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31240         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
31241         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31242         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31243         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
31244         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
31245
31246 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
31247
31248         * Combobox.cs:
31249                 - Draw focus on Simple Combobox
31250                 - Fixes drawing issues
31251                 - fixes 71834
31252
31253 2005-01-27  Peter Bartok  <pbartok@novell.com>
31254
31255         * Form.cs:
31256           - Place window in default location, instead of hardcoded 0/0
31257           - Send initial LocationChanged event
31258         * Control.cs:
31259           - UpdateBounds after creation to find out where the WM placed us
31260           - Make sure that if the ParentForm changes location the Form
31261             is notified
31262         * XplatUIX11.cs: XGetGeometry will not return the coords relative
31263             to the root, but to whatever the WM placed around us.
31264             Translate to root coordinates before returning toplevel
31265             coordinates
31266         * XplatUIWin32.cs: Removed debug output
31267         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
31268           flag to GetWindowPos, to allow translation of coordinates on X11
31269
31270 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
31271
31272         * ListBox.cs: connect LostFocus Event
31273
31274 2005-01-27  Peter Bartok  <pbartok@novell.com>
31275
31276         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
31277           XplatUIX11.cs: Extended the Systray API
31278         * Form.cs: Removed debug output
31279         * Application.cs: Fixed focus assignment, always need to call
31280           XplatUI.Activate() since Form.Activate() has rules that may
31281           prevent activation
31282         * NotifyIcon.cs: Should be complete now
31283         * ToolTip.cs: Worked around possible timer bug
31284
31285 2005-01-27  Jackson Harper  <jackson@ximian.com>
31286
31287         * TabControl.cs:
31288         - Only invalidate the effected tabs when the
31289         selected index changes. This reduces drawing and gets rid of some
31290         flicker.
31291         - Only refresh if the tabs need to be shifted, otherwise only
31292         invalidate the slider button.
31293         - On windows the tabs are not filled to right if the slider is
31294         visible.
31295         
31296 2005-01-27  Jackson Harper  <jackson@ximian.com>
31297
31298         * TabControl.cs: Only refresh on mouseup if we are showing the
31299         slider. Also only invalidate the button whose state has changed.
31300
31301 2005-01-26  Peter Bartok  <pbartok@novell.com>
31302
31303         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
31304         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
31305           and SystrayRemove() methods
31306         * XplatUIOSX.cs: Stubbed Systray methods
31307         * XplatUIX11.cs:
31308           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
31309             methods
31310           - Fixed broken XChangeProperty calls (marshalling messed up things)
31311         * X11Structs.cs: Added enums and structs required for Size hinting
31312         * NotifyIcon.cs: Added & implemented
31313
31314 2005-01-26  Jackson Harper  <jackson@ximian.com>
31315
31316         * TabControl.cs: Space vertically layed out tabs properly.
31317
31318 2005-01-26  Peter Bartok  <pbartok@novell.com>
31319
31320         * Form.cs (CreateClientParams): Always set the location to 0,0
31321           since we're a child window.
31322
31323         * Control.cs (SetVisibleCore): Always explicitly setting the location
31324           of a toplevel window, apparently X11 doesn't like to move windows
31325           while they're not mapped.
31326
31327 2005-01-26  Jackson Harper  <jackson@ximian.com>
31328
31329         * TabControl.cs: Implement FillToRight size mode with vertically
31330         rendered tabs.
31331
31332 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
31333
31334         * ControlPaint.cs, ThemeWin32Classic.cs
31335                 - Fixes DrawFocusRectangle
31336
31337 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
31338
31339         * MenuAPI.cs:
31340                 - MenuBar tracking only starts when item is first clicked
31341                 - Fixes menu hidding for multiple subitems
31342                 - Unselect item in MenuBar when item Executed
31343                 - Fixes bug 71495
31344
31345 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
31346
31347         * ListControl.cs:
31348                 - IsInputKey for ListBox
31349         * ListBox.cs:
31350                 - Focus item
31351                 - Shift and Control item selection
31352                 - Implement SelectionMode.MultiExtended
31353                 - Fixes RightToLeft
31354         * ComboBox.cs:
31355                 - IsInputKey implemented
31356                 - Do not generate OnTextChangedEdit on internal txt changes
31357                 
31358 2005-01-23  Peter Bartok  <pbartok@novell.com>
31359
31360         * AccessibleObject.cs: Partially implemented Select()
31361         * MonthCalendar.cs: Added missing attributes and events
31362         * Form.cs: Fixed CreateParams behaviour, now controls derived from
31363           form can properly override CreateParams.
31364         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
31365           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
31366           Control performs Invalidate & Update
31367         * NativeWindow (CreateHandle): Added special handling for Form
31368           and Form.FormParent classes to allow overriding of From.CreateParams
31369         * Control.cs:
31370           - ControlNativeWindow: Renamed 'control' variable to more intuitive
31371             name 'owner'
31372           - ControlNativeWindow: Added Owner property
31373           - Removed usage of Refresh() on property changes, changed into
31374             Invalidate(), we need to wait until the queue is processed for
31375             updates, direct calls might cause problems if not all vars for
31376             Paint are initialized
31377           - Added call to UpdateStyles() when creating the window, to set any
31378             styles that CreateWindow might have ignored.
31379           - Added support for Form CreateParent overrides to UpdateStyles()
31380         * MessageBox.cs: Removed no longer needed FormParent override stuff,
31381           CreateParams are now properly overridable
31382         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
31383           CreateParams are now properly overridable
31384
31385 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
31386
31387         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
31388         OnTextBoxChanged.
31389
31390         Capture LostFocus and OnTextBoxChanged.  The later introduces a
31391         recursive invocation that I have not figured out yet.
31392
31393         Reset the timer when not using (it was accumulating).
31394
31395
31396         (OnTextBoxChanged): Set UserEdit to true here to track whether the
31397         user has made changes that require validation.
31398
31399         Reset changing to avoid loops.
31400
31401 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
31402
31403         * NumericUpDown.cs: Display value at startup.
31404
31405         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
31406         ValidateEditText.
31407
31408         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
31409         filled in.  Added some basic parsing of text.
31410
31411         Still missing the OnXXX method overrides, and figuring out the
31412         events that must be emitted.
31413
31414         * UpDownBase.cs: Handle UserEdit on the Text property.
31415         
31416 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
31417
31418         * ComboBox.cs:
31419           - Fixes IntegralHeight
31420           - ToString method
31421
31422 2005-01-21  Jackson Harper  <jackson@ximian.com>
31423
31424         * TabControl.cs: Set the SelectedIndex property when SelectedTab
31425         is set so that the page visibility is updated and the tabs are
31426         sized correctly.
31427
31428 2005-01-21  Jackson Harper  <jackson@ximian.com>
31429
31430         * TabControl.cs: Use cliping rectangle for blitting. Give the
31431         theme the clipping rect so we can do clipping while
31432         drawing. Remove some debug code.
31433
31434 2005-01-21  Jackson Harper  <jackson@ximian.com>
31435
31436         * TabPage.cs: Add a new method so tab pages can force the tab
31437         control to recalculate the tab page sizes.
31438         * TabControl.cs: UpdateOwner needs to make the tab control recalc
31439         sizes.
31440
31441 2005-01-20  Jackson Harper  <jackson@ximian.com>
31442
31443         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
31444
31445 2005-01-20  Jackson Harper  <jackson@ximian.com>
31446
31447         * TreeView.cs: Set the bounds for nodes properly. They were
31448         getting screwed up when checkboxes were not enabled, but images
31449         were.
31450
31451 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
31452
31453         * ListBox.cs:
31454                 - Owner draw support
31455                 - Fixes
31456                 
31457 2005-01-20  Jackson Harper  <jackson@ximian.com>
31458
31459         * XplatUIStructs.cs: More misc keys
31460         * X11Keyboard.cs: Ignore some control keys.
31461
31462 2005-01-20  Jackson Harper  <jackson@ximian.com>
31463
31464         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
31465         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
31466
31467 2005-01-19  Peter Bartok  <pbartok@novell.com>
31468
31469         * Control.cs: Un-selecting the control when it is loosing focus
31470
31471 2005-01-19  Jackson Harper  <jackson@ximian.com>
31472
31473         * TreeView.cs: Hook up to the text controls leave event so we can
31474         end editing when the users clicks outside the text box.
31475         
31476 2005-01-19  Jackson Harper  <jackson@ximian.com>
31477
31478         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
31479         get set in the conversion array.
31480
31481 2005-01-19  Peter Bartok  <pbartok@novell.com>
31482
31483         * Application.cs (ModalRun): Added a call to CreateControl to ensure
31484           focus is properly set
31485         * Button.cs:
31486           - Added missing attributes
31487           - removed styles, those are already set in the base class
31488         * ButtonBase.cs:
31489           - Added missing attributes
31490           - Added clip window styles
31491         * CheckBox.cs: Added missing attributes
31492         * CommonDialog.cs:
31493           - FormParentWindow.CreateParams: Added required clip styles
31494         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
31495           also filters modifier keys
31496         * MessageBox.cs:
31497           - Added assignment of Accept and Cancel button to enable Enter
31498             and Esc keys in MessageBox dialogs
31499           - FormParentWindow.CreateParams: Added required clip styles
31500         * RadioButton.cs: Added missing attributes
31501         * TextControl.cs: No longer draws selection if control does not
31502           have focus
31503         * TextBoxBase.cs:
31504           - Now draws simple rectangle around test area to make it obvious
31505             there's a control. This is a hack until we properly support borders
31506           - A few simple fixes to support selections better, now erases selected
31507             text when typing, and resets selection when using movement keys
31508
31509 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
31510
31511         * UpDownBase.cs: Added some new properties.
31512
31513         * DomainUpDown.cs: Implement a lot to get my test working.
31514
31515 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
31516
31517         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
31518
31519 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
31520
31521         * OSXStructs (WindowAttributes): Fixed csc complaints
31522
31523 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
31524
31525         * XplayUIOSX.cs:
31526           OSXStructs.cs: Initial refactor to move enums and consts into
31527           OSXStructs and use them in the driver for greater readability.
31528
31529 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
31530
31531         * XplatUIOSX.cs: Initial support for Standard Cursors.
31532         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
31533
31534 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
31535
31536         * ComboBox.cs: ability to change style when the ctrl is already
31537         created, missing methods and events, bug fixes, signature fixes
31538
31539 2005-01-19  Peter Bartok  <pbartok@novell.com>
31540
31541         * Cursors.cs (ctor): Added ctor to fix signature
31542
31543 2005-01-18  Peter Bartok  <pbartok@novell.com>
31544
31545         * Button.cs: Implemented DoubleClick event
31546         * ButtonBase.cs:
31547           - Fixed keyboard handling to behave like MS, where the press of
31548             Spacebar is equivalent to a mousedown, and the key release is
31549             equivalent to mouseup. Now a spacebar push will give the same
31550             visual feedback like a mouse click.
31551           - Added missing attributes
31552           - Added ImeModeChanged event
31553           - Added support for generating DoubleClick event for derived classes
31554         * CheckBox.cs:
31555           - Implemented DoubleClick event
31556           - Added missing attributes
31557         * CommonDialog.cs: Added missing attribute
31558         * ContextMenu.cs: Added missing attributes
31559         * RadioButton.cs:
31560           - AutoChecked buttons do not allow to be unselected when clicked
31561             (otherwise we might end up with no selected buttons in a group)
31562           - Added missing attributes
31563           - Implemented DoubleClickEvent
31564         * ThreadExceptionDialog.cs: Enabled TextBox code
31565
31566 2005-01-18  Peter Bartok  <pbartok@novell.com>
31567
31568         * Form.cs: Removed debug output
31569         * Button.cs: Added support for DoubleClick method
31570
31571 2005-01-18  Peter Bartok  <pbartok@novell.com>
31572
31573         * Form.cs:
31574           - Added method to parent window that allows triggering size
31575             calculations when a menu is added/removed
31576           - set_Menu: Cleaned up mess from early days of Form and Control,
31577             now properly triggers a recalc when a menu is added/removed
31578           - Added case to select form itself as focused form if no child
31579             controls exist
31580           - Added PerformLayout call when showing dialog, to ensure properly
31581             placed controls
31582         * Control.cs:
31583           - Select(): Made internal so Form can access it
31584           - Focus(): Only call Xplat layer if required (avoids loop), and sets
31585             status
31586         * Application.cs (Run): Removed hack and calls PerformLayout instead
31587           to trigger calculation when Form becomes visible
31588
31589 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
31590
31591         * ComboBox.cs: fixes for ownerdraw
31592
31593 2005-01-18  Peter Bartok  <pbartok@novell.com>
31594
31595         * TextControl.cs:
31596           - Sentinel is no longer static, each Document gets it's own, this
31597             avoids locking or alternatively overwrite problems when more
31598             than one text control is used simultaneously.
31599           - Switched to use Hilight and HilightText brushes for text selection
31600
31601         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
31602
31603 2005-01-18  Peter Bartok  <pbartok@novell.com>
31604
31605         * Control.cs:
31606           - Hooked up the following events:
31607                 o ControlAdded
31608                 o ControlRemoved
31609                 o HandleDestroyed
31610                 o ImeModeChanged
31611                 o ParentChanged
31612                 o TabStopChanged
31613                 o Invalidated
31614                 o SystemColorsChanged
31615                 o ParentFontChanged
31616                 o Move
31617           - Removed debug output
31618           - Added a call to the current theme's ResetDefaults when a color change
31619             is detected
31620         * Form.cs: Now setting the proper ImeMode
31621         * Theme.cs: Defined a method to force recreation of cached resources
31622           and rereading of system defaults (ResetDefaults())
31623         * ThemeWin32Classic.cs: Added ResetDefaults() stub
31624
31625 2005-01-17  Peter Bartok  <pbartok@novell.com>
31626
31627         * Control.cs: Added missing attributes
31628
31629 2005-01-17  Jackson Harper  <jackson@ximian.com>
31630
31631         * TreeNode.cs: Implement editing. Add missing properties selected
31632         and visible.
31633         * TreeView.cs: Implement node editing. Also some fixes to use
31634         Invalidate (invalid area) instead of Refresh when selecting.
31635
31636 2005-01-17  Peter Bartok  <pbartok@novell.com>
31637
31638         * Control.cs:
31639           - Implemented InvokeGotFocus() method
31640           - Implemented InvokeLostFocus() method
31641           - Implemented InvokePaint() method
31642           - Implemented InvokePaintBackground() method
31643           - Implemented InvokeClick() method
31644           - Implemented FindForm() method
31645           - Implemented RectangleToClient() method
31646           - Implemented ClientToRectangle() method
31647           - Implemented ResetBackColor() method
31648           - Implemented ResetCursor() method
31649           - Implemented ResetFont() method
31650           - Implemented ResteForeColor() method
31651           - Implemented ResetImeMode() method
31652           - Implemented ResetLeftToRight() method
31653           - Implemented ResetText() method
31654           - Implemented Scale() methods
31655           - Implemented ScaleCore() method
31656           - Implemented Update() method
31657           - Removed unused variables
31658           - Stubbed AccessibilityNotifyClients and
31659             ControlAccessibleObject.NotifyClients() methods (dunno what to do
31660             with those yet)
31661           - Now setting proper default for RightToLeft property
31662           - Fixed bug in SetClientSizeCore that would cause windows to get
31663             really big
31664           - Now sending Click/DoubleClick events
31665           - Now selecting controls when left mouse button is clicked on
31666             selectable control
31667         * AccessibleEvents.cs: Added
31668         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
31669         * XplatUIOSX.cs: Stubbed UpdateWindow() method
31670         * XplatUIWin32.cs: Implemented UpdateWindow() method
31671         * XplatUIX11.cs: Implemented UpdateWindow() method
31672         * Form.cs: Removed stray semicolon causing CS0162 warning
31673         * ThemeWin32Classic.cs: Fixed unused variable warnings
31674         * ScrollableControl.cs: Now calls base method for ScaleCore
31675         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
31676           style to avoid interference with internal click handler (which is
31677           different than standard Control click handling)
31678         * RadioButton.cs:
31679           - Now unchecks all sibling radio buttons when control is
31680             selected (Fixes #68756)
31681           - Removed internal tabstop variable, using the one inherited from
31682             Control
31683
31684 2005-01-17  Jackson Harper  <jackson@ximian.com>
31685
31686         * NavigateEventArgs.cs: Fix base type.
31687         * LinkLabel.cs: Sig fix
31688         
31689 2005-01-17  Jackson Harper  <jackson@ximian.com>
31690
31691         * TreeView.cs: Only invalidate the effected nodes bounds when
31692         selecting nodes.
31693
31694 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
31695
31696         * XplatUIWin32.cs: fixes Win32 marshaling
31697         * XplatUIX11.cs: fixes method signature
31698
31699 2005-01-17  Peter Bartok  <pbartok@novell.com>
31700
31701         * XplatUIX11.cs: Clean up resources when we no longer need them
31702
31703 2005-01-17  Peter Bartok  <pbartok@novell.com>
31704
31705         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
31706           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
31707           and DestroyCursor() methods.
31708         * Cursor.cs: Partially implemented, now supports standard cursors;
31709           still contains some debug code
31710         * Cursors.cs: Implemented class
31711         * Control.cs:
31712           - WndProc(): Added handling of WM_SETCURSOR message, setting the
31713             appropriate cursor
31714           - Implemented Cursor property
31715           - Replaced break; with return; more straightforwar and possibly
31716             faster
31717           - Now properly setting the result for WM_HELP
31718         * X11Structs.cs: Added CursorFontShape enum
31719         * XplatUIStructs.cs:
31720           - Added StdCursor enum (to support DefineStdCursor() method)
31721           - Added HitTest enum (to support sending WM_SETCURSOR message)
31722         * XplatUIX11.cs:
31723           - Now sends the WM_SETCURSOR message
31724           - Implemented new cursor methods
31725         * XplatUIOSX.cs: Stubbed new cursor methods
31726         * XplatUIWin32.cs:
31727           - Implemented new cursor methods
31728           - Added GetSystemMetrics function and associated enumeration
31729
31730 2005-01-15  Peter Bartok  <pbartok@novell.com>
31731
31732         * Control.cs:
31733           - WndProc(): Now handles EnableNotifyMessage
31734           - SelectNextControl(): Fixed bug where if no child or sibling
31735             controls exist we looped endlessly
31736
31737 2005-01-14  Jackson Harper  <jackson@ximian.com>
31738
31739         * TreeView.cs: Recalculate the tab pages when a new one is added
31740         so that the proper bounding rects are created.
31741
31742 2005-01-14  Jackson Harper  <jackson@ximian.com>
31743
31744         * TreeView.cs: Draw a gray box instead of a grip in the lower
31745         right hand corner when there are both horizontal and vertical
31746         scroll bars.
31747
31748 2005-01-14  Jackson Harper  <jackson@ximian.com>
31749
31750         * Control.cs: When erasing backgrounds use FromHwnd instead of
31751         FromHdc when there is a NULL wparam. This occurs on the X driver.
31752         * XplatUIX11.cs: Set the wparam to NULL.
31753
31754 2005-01-13  Jackson Harper  <jackson@ximian.com>
31755
31756         * PictureBox.cs: Implement missing methods (except ToString, need
31757         to test that on windows) and events. When visibility is changed we
31758         need to redraw the image because the buffers are killed. When size
31759         is changed refresh if the sizemode needs it.
31760
31761 2005-01-13  Peter Bartok  <pbartok@novell.com>
31762
31763         * Control.cs (SelectNextControl): Was using wrong method to select
31764           a control
31765
31766 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
31767
31768         * ComboBox.cs: fixes dropstyle
31769
31770 2005-01-13  Peter Bartok  <pbartok@novell.com>
31771
31772         * Form.cs:
31773           - Implemented Select() override
31774           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
31775           - Now sets keyboard focus on startup
31776         * Control.cs (SelectNextControl): Now properly handles directed=true
31777         * TextBoxBase.cs:
31778           - WndProc: Now passes tab key on to base if AcceptTabChar=false
31779           - Added (really bad) focus rectangle (mostly for testing)
31780         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
31781           to enforce redraw on focus changes
31782         * ContainerControl.cs:
31783           - Fixed detection of Shift-Tab key presses
31784           - Fixed traversal with arrow keys
31785         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
31786           gonna keep this or if it's complete yet
31787         
31788 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
31789
31790         * ComboBox.cs: missing properties, fixes
31791
31792 2005-01-13  Peter Bartok  <pbartok@novell.com>
31793
31794         * Panel.cs (ctor): Setting Selectable window style to off
31795         * Splitter.cs (ctor): Setting Selectable window style to off
31796         * GroupBox.cs (ctor): Setting Selectable window style to off
31797         * Label.cs (ctor): Setting Selectable window style to off
31798
31799 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
31800
31801         * UpDownBase.cs (InitTimer): If the timer has been already
31802         created, enable it.
31803
31804         Use a TextBox instead of a Label.
31805
31806 2005-01-12  Jackson Harper  <jackson@ximian.com>
31807
31808         * TreeView.cs: Refresh the tree after sorting the nodes. Always
31809         draw the connecting node lines (when ShowLines is true).
31810         * TreeNode.cs: The nodes index can now be updated. This is used
31811         when a node collection is sorted.
31812         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
31813         insert or an existing unsorted node collection can be sorted.
31814         
31815 2005-01-12  Peter Bartok  <pbartok@novell.com>
31816
31817         * ContainerControl.cs: Implemented ProcessDialogKeys()
31818
31819 2005-01-12  Peter Bartok  <pbartok@novell.com>
31820
31821         * Control.cs:
31822           - Implemented SelectNextControl() method
31823           - Several focus related bug fixes
31824           - Fixed Docking calculations to match MS documentation and
31825             behaviour
31826
31827 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
31828
31829         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
31830         bug fixes
31831
31832 2005-01-12  Peter Bartok  <pbartok@novell.com>
31833
31834         * Control.cs:
31835           - Fixed broken Contains() method
31836           - Implemented GetNextControl() method. Finally. This is the pre-
31837             requisite for focus handling.
31838
31839 2005-01-12  Peter Bartok  <pbartok@novell.com>
31840
31841         * OSXStrucs.cs: Added
31842
31843 2005-01-12  Peter Bartok  <pbartok@novell.com>
31844
31845         * XplatUIWin32.cs:
31846           - Removed PeekMessageFlags
31847           - Implemented SetWindowStyle() method
31848         * XplatUIStructs.cs: Added PeekMessageFlags
31849         * X11Structs: Added missing border_width field to XWindowChanges struct
31850         * XplatUIX11.cs:
31851           - PeekMessage: Now throws exception if flags which are not yet
31852             supported are passed
31853           - Implemented SetWindowStyle() method
31854           - Fixed SetZOrder to handle AfterHwnd properly
31855         * XplatUI.cs: Added SetWindowStyle() method
31856         * XplatUIDriver.cs: Added SetWindowStyle() abstract
31857         * Control.cs:
31858           - Implemented UpdateStyles() method
31859           - Implemented UpdateZOrder() method
31860         * XplatUIOSX.cs: Added SetWindowStyle() stub
31861
31862 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
31863
31864         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
31865         button mouse).
31866
31867
31868 2005-01-11  Jackson Harper  <jackson@ximian.com>
31869
31870         * TreeView.cs: Still need to draw lines to siblings even if out of
31871         the current node is out of the clip.
31872
31873 2005-01-11  Jackson Harper  <jackson@ximian.com>
31874
31875         * TreeView.cs: When setting the hbar/vbar/grip position use
31876         SetBounds so that perform layout is only called once. Also suspend
31877         and resume layout so layout is only done once for all controls.
31878         - Removed some debug fluff
31879         * SizeGrip.cs: Call base implmentation in overriding methods.
31880         - When visibility is changed the drawing buffers are killed so we
31881         need to redraw.
31882
31883 2005-01-11  Jackson Harper  <jackson@ximian.com>
31884
31885         * TreeView.cs: Calculate the open node count while drawing. This
31886         saves us an entire tree traversal for every paint operation. Use
31887         a member var for the open node count so less vars are passed around.
31888
31889 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
31890
31891         * MonthCalendar.cs:
31892         - fixed selection to use mousemove, not mouse polling on timer
31893         * ThemeWin32Classic.cs
31894         - removed redundant unused variable "no_more_content"
31895         
31896 2005-01-11  Peter Bartok  <pbartok@novell.com>
31897
31898         * XplatUIX11.cs (DoEvents): Needs to return when no more events
31899           are pending, so it now calls PeekMessage instead of GetMessage;
31900           implemented a incomplete version of PeekMessage
31901         
31902 2005-01-11  Peter Bartok  <pbartok@novell.com>
31903
31904         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
31905           I18n issues
31906         * TextBoxBase.cs: Added sending of TextChanged event
31907
31908 2005-01-10  Jackson Harper  <jackson@ximian.com>
31909
31910         * TreeView.cs: Try not to draw outside the clipping rectangle on
31911         each node element.
31912
31913 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
31914
31915         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
31916
31917 2005-01-10  Jackson Harper  <jackson@ximian.com>
31918
31919         * TreeView.cs:
31920         - Implement fast scrolling. Now only the newly
31921         exposed nodes are drawn and the old image is moved using the
31922         XplatUI::ScrollWindow method.
31923         - Factor in height of nodes when calculating whether or not the
31924         node is in the clipping rect.
31925
31926 2005-01-10  Jackson Harper  <jackson@ximian.com>
31927
31928         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
31929
31930 2005-01-10  Peter Bartok  <pbartok@novell.com>
31931
31932         * Application.cs: Added temporary hack to resolve all our resize
31933           required issues on startup. This will get fixed properly at
31934           some point in the future
31935
31936 2005-01-10  Jackson Harper  <jackson@ximian.com>
31937
31938         * SizeGrip.cs: New internal class that is used as a sizing
31939         grip control...hence the name.
31940
31941 2005-01-10  Peter Bartok  <pbartok@novell.com>
31942
31943         * Control.cs: Implemented proper TabIndex handling, now assigning
31944           a tabindex when a control is added to a container
31945         * GroupBox.cs (ctor): Now sets the Container style bit, required
31946           for Control.GetNextControl()
31947
31948 2005-01-09  Jackson Harper  <jackson@ximian.com>
31949
31950         * TextBoxBase.cs: Clear window when scrolling (fixes build).
31951
31952 2005-01-09  Peter Bartok <pbartok@novell.com>
31953
31954         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
31955           XplatUIX11.cs: Added ability to control ScrollWindow expose and
31956           an overload for ScrollWindow to allow only scrolling a rectangle
31957
31958 2005-01-09  Peter Bartok <pbartok@novell.com>
31959
31960         * Form.cs:
31961           - Implemented SetDesktopBounds method
31962           - Implemented SetDesktopLocation method
31963
31964 2005-01-08  Jackson Harper  <jackson@ximian.com>
31965
31966         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
31967         the node count has changed, this removes to VScroll::Refresh calls
31968         when drawing.
31969
31970 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
31971
31972         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
31973
31974 2005-01-07  Jackson Harper  <jackson@ximian.com>
31975
31976         * TreeNode.cs: Just update the single node when it is
31977         checked. Don't refresh after toggling, the Expand/Collapse already
31978         handles this.
31979         * TreeView.cs: Respect clipping a little more when drawing. Try
31980         not to redraw things that don't need to be redrawn. Just hide the
31981         scrollbars when they are no longer needed instead of removing
31982         them, so they don't have to be created again and again.
31983         
31984 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
31985
31986         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
31987         coordinates to window space to place the caret properly, FIXED.
31988         Implement GetWindowState & SetWindowState
31989
31990 2005-01-06  Peter Bartok <pbartok@novell.com>
31991
31992         * Form.cs:
31993           - Implemented ClientSize property
31994           - Implemented DesktopBounds property
31995           - Implemented DesktopLocation property
31996           - Implemented IsRestrictedWindow property
31997           - Implemented Size property
31998           - Implemented TopLevel property
31999           - Implemented FormWindowState property
32000         * Control.cs:
32001           - Implemented GetTopLevel() method
32002           - Implemented SetTopLevel() method
32003         * X11Structs.cs (Atom):
32004           - Added AnyPropertyType definition
32005           - Added MapState definiton and updated XWindowAttribute struct
32006         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
32007         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
32008         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
32009         * XplatUIWin32.cs:
32010           - Implemented GetWindowState() and SetWindowState() methods
32011           - Fixed Win32GetWindowLong return type
32012         * XplatUIX11.cs:
32013           - Introduced central function for sending NET_WM messages
32014           - Implemented GetWindowState() and SetWindowState() methods
32015         * TextBoxBase.cs (set_Lines):
32016           - Now uses Foreground color for text added via Text property (Duh!)
32017           - Added code to remember programmatically requested size (fixes
32018             behaviour when Multiline is set after Size)
32019           - Added AutoSize logic
32020
32021 2005-01-06  Jackson Harper  <jackson@ximian.com>
32022
32023         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
32024
32025 2005-01-06  Jackson Harper  <jackson@ximian.com>
32026
32027         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
32028         set to less then 0.
32029
32030 2005-01-06  Jackson Harper  <jackson@ximian.com>
32031
32032         * ScrollableControl.cs: Lazy init the scrollbars.
32033         
32034 2005-01-06  Jackson Harper  <jackson@ximian.com>
32035
32036         * Theme.cs: Speed up getting pens and solid brushes, by using
32037         their ARGB as a hash instead of tostring and not calling Contains.
32038
32039 2005-01-06  Peter Bartok <pbartok@novell.com>
32040
32041         * Form.cs:
32042           - Implemented OnActivated and OnDeactivate event trigger
32043           - Implemented Activate() method
32044           - Fixed ShowDialog() to activate the form that was active before
32045             the dialog was shown
32046         * XplatUIX11.cs:
32047           - Added global active_window var that tracks the currently active
32048             X11 window
32049           - Now always grabs Property changes from the root window to always
32050             catch changes on the active window property
32051           - Added code to PropertyNotify handler to send Active/Inactive
32052             messages when state changes. This puts X11 and Win32 en par on
32053             WM_ACTIVATE notifications (except for double notifications when
32054             the user clicks away from our modal window to another one of our
32055             windows)
32056
32057 2005-01-05  Jackson Harper  <jackson@ximian.com>
32058
32059         * ImageList.cs: Implment ctor
32060
32061 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
32062
32063         * XplatUIOSX.cs: Implement Activate/SetTopmost
32064
32065 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
32066
32067         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
32068
32069 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
32070
32071         * XplatUIOSX.cs: Implement GetActive/SetFocus.
32072
32073 2005-01-05  Peter Bartok <pbartok@novell.com>
32074
32075         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
32076           XplatUIOSX.cs: Added GetActive method to return the currently
32077           active window for the application (or null, if none is active)
32078         * Form.cs:
32079           - Implemented ActiveForm
32080           - Commented out owner assignment for modal dialogs (causes problems
32081             on Win32, since the owner will be disabled)
32082           - Reworked some Active/Focus handling (still incomplete)
32083         * CommonDialog.cs: Commented out owner assignment for modal dialogs
32084           (causes problems on Win32, since the owner will be disabled)
32085         * IWin32Window: Added ComVisible attribute
32086
32087 2005-01-05  Peter Bartok <pbartok@novell.com>
32088
32089         * ToolTip.cs (WndProc): Enable setting focus now that we have the
32090           required XplatUI functions.
32091
32092 2005-01-05  Peter Bartok <pbartok@novell.com>
32093
32094         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
32095           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
32096           to implement focus and activation handling; still incomplete and
32097           with debug output
32098
32099 2005-01-04  Peter Bartok <pbartok@novell.com>
32100
32101         * TextBoxBase.cs: Changed access level for Document property to
32102           match switch to internal for TextControl
32103
32104 2005-01-04  Peter Bartok <pbartok@novell.com>
32105
32106         * AccessibleObject: Added ComVisible attribute
32107
32108 2005-01-04  Jackson Harper  <jackson@ximian.com>
32109
32110         * X11Keyboard.cs: Remove unneeded var.
32111
32112 2005-01-04  Jackson Harper  <jackson@ximian.com>
32113
32114         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
32115         but PAINT.
32116         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
32117         ClientMessage. This makes apps exit cleanly (more often).
32118         
32119 2005-01-04  Jackson Harper  <jackson@ximian.com>
32120
32121         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
32122         handling focus, return correct colors and fonts,
32123         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
32124         handle selection, horizontal scrolling, and mouse interaction.
32125
32126 2005-01-04  Peter Bartok <pbartok@novell.com>
32127
32128         * ICommandExecutor.cs: Added
32129         * IDataGridColumnStyleEditingNotificationService.cs: Added
32130         * IFeatureSupport.cs: Added
32131         * IFileReaderService.cs: Added
32132         * IDataObject.cs: Added ComVisible attribute
32133         * AmbientProperties.cs: Added
32134         * BaseCollection.cs: Added missing attributes
32135         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
32136         * BaseCollection.cs: Added missing attributes
32137         * Binding.cs: Added TypeConverter attribute
32138         * BindingContext.cs: Added DefaultEvent attribute
32139         * BindingsCollection.cs: Added DefaultEvent attribute
32140         * Button.cs: Added DefaultValue attribute
32141         * DragEventArgs.cs: Added ComVisible attribute
32142         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
32143         * KeyEventArgs.cs: Added ComVisible attribute
32144         * KeyPressEventArgs.cs: Added ComVisible attribute
32145         * MouseEventArgs.cs: Added ComVisible attribute
32146         * NavigateEventArgs.cs: Added
32147         * NavigateEventHandler.cs: Added
32148         * FeatureSupport.cs: Added
32149         * OSFeature.cs: Added
32150         * Theme.cs: Added abstract Version property to support OSFeature
32151         * ThemeWin32Classic.cs: Added Version property to
32152           support OSFeature.Themes
32153         * ProgressBar.cs: Removed OnPaintBackground override, not required since
32154           the proper styles to avoid background drawing are set, also doesn't
32155           match MS signature
32156         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
32157         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
32158         * ScrollEventArgs.cs: Added ComVisible attribute
32159         * SplitterEventArgs.cs: Added ComVisible attribute
32160         * AccessibleSelection.cs: Added Flags attribute
32161         * Appearance.cs: Added ComVisible attribute
32162         * Border3DSide.cs: Added ComVisible attribute
32163         * Border3DStyle.cs: Added ComVisible attribute
32164         * BorderStyle.cs: Added ComVisible attribute
32165         * DragAction.cs: Added ComVisible attribute
32166         * ErrorBlinkStyle.cs: Added
32167         * ScrollEventType.cs: Added ComVisible attribute
32168         * AnchorStyles.cs: Added Editor attribute
32169         * DockStyle.cs: Added Editor attribute
32170         * HorizontalAlignment.cs: Added ComVisible attribute
32171         * HelpEventArgs.cs: Added ComVisible attribute
32172         * PaintEventArgs.cs: Added IDisposable
32173
32174 2005-01-04  Peter Bartok <pbartok@novell.com>
32175
32176         * TextControl.cs: Switched Line, LineTag and Document classes to
32177           internal
32178
32179 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
32180
32181         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
32182         Simple mode, fixes, IntegralHeight, etc.
32183
32184 2005-01-04  Peter Bartok <pbartok@novell.com>
32185
32186         * TextBoxBase.cs: Using proper font variable now
32187
32188 2005-01-04  Peter Bartok <pbartok@novell.com>
32189
32190         * Form.cs (ShowDialog): Set parent to owner, if provided
32191         * GroupBox.cs: Removed unused vars
32192         * TextControl.cs:
32193           - Added GetHashCode() for Document and LineTag classes
32194           - Removed unused variables
32195           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
32196             to allow translation between continuous char position and line/pos
32197         * CheckBox.cs: Removed vars that are provided by base class
32198         * RadioButton.cs: Removed vars that are provided by base class, added
32199           new keyword where required
32200         * LinkLabel.cs: Added new keyword where required
32201         * Control.cs (WndProc): Removed unused variable
32202         * TextBoxBase.cs:
32203           - Finished SelectionLength property
32204           - Implemented SelectionStart property
32205           - Implemented Text property
32206           - Removed unused vars
32207         * MessageBox.cs: Added new keyword where required
32208         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
32209           WndProc signature
32210         * MenuAPI.cs: Added new keyword where required
32211         * ButtonBase.cs: Removed vars that are provided by base class, added
32212           new keyword where required
32213         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
32214           argument to double, to allow compiling with csc 2.0 (Atsushi ran
32215           into this)
32216         * Application.cs (Run): Now triggers the ThreadExit event
32217         * CommonDialog.cs: Added new keyword where required; now properly sets
32218           parent (owner) for dialog
32219         * XplatUIX11.cs: Commented out unused vars
32220         * StatusBar.cs: Fixed signature for Text property
32221         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
32222
32223 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
32224
32225         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
32226         TrackBar.cs, MonthCalendar.cs: remove unused vars
32227
32228 2005-01-03  Jackson Harper  <jackson@ximian.com>
32229
32230         * ThemeWin32Classic.cs:
32231         * X11Keyboard.cs: Remove unused vars.
32232
32233 2005-01-03  Peter Bartok  <pbartok@novell.com>
32234
32235         * TextBox.cs:
32236           - set_Text: Tied into TextControl
32237           - set_TextAlignment: Tied into TextControl
32238         * TextControl.cs:
32239           - Added alignment properties and implemented alignment handling
32240             and drawing (still has a bug, not generating proper expose events)
32241           - Added new Line() constructor to allow passing the line alignment
32242           - Fixed selection setting, properly handling end<start now
32243           - Added aligment considerations to RecalculateDocument()
32244         * TextBoxBase.cs:
32245           - Now properly enforces control height for single line controls
32246           - Added support for CharacterCasing
32247           - Added IsInputKey override
32248           - Fixed Keys.Enter logic
32249           - Added SetBoundsCore override
32250           - Fixed mouse selection handling
32251
32252 2005-01-03  Jackson Harper  <jackson@ximian.com>
32253
32254         * TreeView.cs:
32255           - Collapse and uncheck all nodes when CheckBoxes is disabled.
32256           - Checkboxes are always aligned to the bottom of the node,
32257           regardless of item height.
32258           - Use the node bounds to draw the text so we can center it when
32259           the item height is greater then the font height.
32260           - Node::Bounds are only the text part of the node.
32261         * TreeNode.cs: New method to combine collapsing and unchecking all
32262           nodes recursively.
32263
32264 2005-01-02  Jackson Harper  <jackson@ximian.com>
32265
32266         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
32267         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
32268         tree when a check is changed. TODO: Only refresh the checked node.
32269
32270 2004-12-30  Jackson Harper  <jackson@ximian.com>
32271
32272         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
32273         * TreeNode.cs: When collapsing make sure to never collapse the
32274         root node.
32275
32276 2004-12-29  Jackson Harper  <jackson@ximian.com>
32277
32278         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
32279         
32280 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
32281
32282         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
32283
32284 2004-12-28  Peter Bartok  <pbartok@novell.com>
32285
32286         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
32287           not yet assigned
32288
32289 2004-12-28  Peter Bartok  <pbartok@novell.com>
32290
32291         * Control.cs (WndProc): Added WM_HELP handler, now generates
32292           HelpRequested event
32293         * Form.cs: Added HelpButton property and required support code
32294         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
32295
32296 2004-12-28  Peter Bartok  <pbartok@novell.com>
32297
32298         * CommonDialog.cs:
32299           - Made DialogForm.owner variable internal
32300           - Added check to ensure owner form is set before setting
32301             owner properties in CreateParams
32302
32303 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
32304
32305         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
32306           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
32307           GetCursorPos.  Fix major visibility issues.  Rework the windowing
32308           system to support borderless/titleless windows (implements menus).
32309           Fix GetWindowPos.  Implement initial background color support for
32310           views.
32311
32312 2004-12-28  Peter Bartok  <pbartok@novell.com>
32313
32314         * Form.cs (get_CreateParams): Make sure we have an owner before using
32315           the owner variable. Implement proper default if no owner exists
32316
32317 2004-12-28  Peter Bartok  <pbartok@novell.com>
32318
32319         * In preparation for making Managed.Windows.Forms the default build target
32320           for System.Windows.Forms, the following stubbed files were added.
32321           Dialogs are currently being implemented by contributors and are only
32322           short-term place holders.
32323         * ColorDialog.cs: Initial check-in (minmal stub)
32324         * DataGrid.cs: Initial check-in (minimal stub)
32325         * DataGridLineStyle.cs: Initial check-in (minimal stub)
32326         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
32327         * DataGridTableStyle.cs: Initial check-in (minimal stub)
32328         * FontDialog.cs: Initial check-in (minimal stub)
32329         * FileDialog.cs: Initial check-in (minimal stub)
32330         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
32331         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
32332         * OpenFileDialog: Initial check-in (minimal stub)
32333         * IComponentEditorPageSite.cs: Initial check-in
32334         * Splitter.cs: Initial check-in (for Jackson)
32335         * SplitterEventArgs.cs: Initial check-in (for Jackson)
32336         * SplitterEventHandler.cs: Initial check-in (for Jackson)
32337         * TextBox.cs: Initial check-in; still needs some wiring to
32338           TextControl backend
32339         * Form.cs: Implemented ControlBox property
32340         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
32341         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
32342         * TextControl.cs: Added selection functionality; added todo header
32343         * TextBoxBase.cs:
32344           - Implemented Lines property
32345           - Implemented TextHeight property
32346           - Implemented SelectedText property
32347           - Implemented SelectionLength property
32348           - Implemented SelectAll method
32349           - Implemented ToString method
32350           - Removed and cleaned up some debug code
32351           - Implemented (still buggy) mouse text selection
32352
32353 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
32354
32355         * ComboBox.cs: Complete DropDownList implementation, fixes.
32356
32357 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
32358
32359         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
32360         * ComboBoxStyle.cs: ComboBoxStyle enum
32361         * ComboBox.cs: Initial work on ComboBox control
32362
32363 2004-12-21  Peter Bartok  <pbartok@novell.com>
32364
32365         * Control.cs (ctor, CreateParams): Moved setting of is_visible
32366           forward so that anything that creates a window gets the default,
32367           also no longer uses Visible property in CreateParams to avoid
32368           walking up the parent chain and possibly get the wrong visible
32369           status. Fixed IsVisible to no longer walk up to the parent.
32370
32371 2004-12-21  Peter Bartok  <pbartok@novell.com>
32372
32373         * Form.cs (ShowDialog): Unset modality for the proper window
32374  
32375 2004-12-20  Peter Bartok  <pbartok@novell.com>
32376
32377         * CommonDialog.cs: Initial check-in
32378
32379 2004-12-20  Peter Bartok  <pbartok@novell.com>
32380
32381         * Control.cs (Visible): Now uses the parent window instead of the
32382           client area window for the property
32383
32384         * Form.cs
32385           - ShowDialog(): Now uses the proper window for modality
32386           - The default visibility state for the form parent is now false. This
32387             will prevent the user from seeing all the changes to the form and
32388             its controls before the application hits Application.Run()
32389           - Removed some stale commented out code
32390
32391         * NativeWindow.cs:
32392           - Added FindWindow() method to have a method to check for existence
32393             of a window handle
32394           - Added ability to override default exception handling (for example
32395             when debugging with VS.Net; to do this the ExternalExceptionHandler
32396             define must be set
32397           - Removed some useless debug output
32398
32399         * XplatUIX11.cs:
32400           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
32401             not working as expected
32402           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
32403             property to allow switching back to the modal window if focus is
32404             given to another one of our windows (Application Modal)
32405           - Now only sets override_redirect if we create a window
32406             without WS_CAPTION
32407           - Moved EventMask selection before mapping of newly created window
32408             so we can catch the map event as well
32409           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
32410           - Added various Atom related DllImports
32411           - Implemented Exit() method
32412           - .ctor() : No longer shows window if WS_VISIBLE is not defined
32413             in the CreateParams
32414
32415         * MessageBox.cs: Now properly deals with the FormParent window by
32416           providing an override the FormParent CreateParams property to
32417           set as POPUP instead of OVERLAPPED window.
32418
32419 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
32420
32421         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
32422         Minor code cleanup.
32423
32424 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
32425         
32426         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
32427
32428 2004-12-18  Peter Bartok  <pbartok@novell.com>
32429
32430         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
32431           implementing SetModal() method
32432
32433 2004-12-18  Peter Bartok  <pbartok@novell.com>
32434
32435         * X11Structs.cs (XGCValues): Fixed type of function element
32436         * XplatUI.cs: Added ScrollWindow() method
32437         * XplatUIDriver.cs: Added ScrollWindow() abstract
32438         * XplatUIWin32.cs: Implemented ScrollWindow() method
32439         * XplatUIX11.cs: Implemented ScrollWindow() method
32440         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
32441
32442 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
32443
32444         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
32445         Some more keyboard support (INCOMPLETE)
32446
32447 2004-12-17  Peter Bartok  <pbartok@novell.com>
32448
32449         * TextControl.cs:
32450         - Added color attribute to line tags.
32451         - Added color argument to all functions dealing with tags
32452         - Added color argument support to various functions
32453         - Fixed miss-calculation of baseline/shift in certain circumstances
32454
32455         * TextBoxBase.cs: Added new color option to test code
32456
32457 2004-12-17  Jackson Harper  <jackson@ximian.com>
32458
32459         * TreeNode.cs:
32460         * MonthCalendar.cs: Signature fixes
32461
32462 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
32463
32464         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
32465         keyboard event moved it.  Create a new graphics context for each paint resolves this
32466
32467 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
32468
32469         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
32470         Make caret exist and go blink blink.  Initial keyboard support.
32471         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
32472         works.
32473
32474 2004-12-17  Jackson Harper  <jackson@ximian.com>
32475
32476         * XplatUIStructs.cs: Updated set of virtual keycodes.
32477         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
32478
32479 2004-12-17  Jackson Harper  <jackson@ximian.com>
32480
32481         * XplatUIX11.cs: Prune old keyboard code.
32482
32483 2004-12-17  Jackson Harper  <jackson@ximian.com>
32484
32485         * XplatUIX11.cs: When generating mouse wparams get the modifier
32486         keys from the ModifierKeys property.
32487
32488 2004-12-17  Jackson Harper  <jackson@ximian.com>
32489
32490         * X11Keyboard.cs: Send up/down input when generating
32491         messages. Remove some unused vars.
32492
32493 2004-12-17  Jackson Harper  <jackson@ximian.com>
32494
32495         * TabControl.cs:
32496         * TreeView.cs: get rid of warnings.
32497
32498 2004-12-17  Jackson Harper  <jackson@ximian.com>
32499
32500         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
32501
32502 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
32503
32504         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
32505           CheckedListBox.cs: Implementation
32506
32507 2004-12-17  Peter Bartok  <pbartok@novell.com>
32508
32509         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
32510
32511 2004-12-16  Peter Bartok  <pbartok@novell.com>
32512
32513         * TextControl.cs:
32514           - InsertCharAtCaret(): Fixed start pos fixup
32515           - CaretLine_get: No longer derives the line from the tag, the tag
32516             could be stale if lines in the document have been added or deleted
32517           - RebalanceAfterDelete(): Fixed bug in balancing code
32518           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
32519           - Line.Streamline(): Now can also elminate leading empty tags
32520           - DumpTree(): Added a few more tests and prevented exception on
32521             uninitialized data
32522           - Added Debug section for Combining lines
32523           - Delete(): Now copies all remaining properties of a line
32524           
32525         * TextBoxBase.cs:
32526           - Left mousebutton now sets the caret (and middle button still acts
32527             as formatting tester, which must go away soon)
32528           - Added Debug section for Deleting/Combining lines
32529           - Fixed calculations for UpdateView after Combining lines
32530
32531 2004-12-16  Peter Bartok  <pbartok@novell.com>
32532
32533         * TextControl.cs: Now properly aligns text on a baseline, using the
32534           new XplatUI.GetFontMetrics() method. Simplified several calculations
32535         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
32536           defined
32537
32538 2004-12-16  Peter Bartok  <pbartok@novell.com>
32539
32540         * XplatUI.cs: Added GetFontMetrics() method
32541         * XplatUIDriver.cs: Added GetFontMetrics() abstract
32542         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
32543           into libgdiplus, our private GetFontMetrics function
32544         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
32545         * XplatUIWin32.cs: Implemented GetFontMetrics() method
32546
32547 2004-12-16  Jackson Harper  <jackson@ximain.com>
32548
32549         * XplatUIStruct.cs: Add enum for dead keys
32550         * X11Keyboard.cs: Map and unmap dead keys.
32551
32552 2004-12-16  Jackson Harper  <jackson@ximian.com>
32553
32554         * X11Keyboard.cs: Detect and use the num lock mask.
32555
32556 2004-12-16  Peter Bartok  <pbartok@novell.com>
32557
32558         * Control.cs (CreateGraphics): Added check to make sure the
32559           handle of the window exists before calling Graphics.FromHwnd()
32560
32561 2004-12-16  Peter Bartok  <pbartok@novell.com>
32562
32563         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
32564           contains a lot of code that's not supposed to be there for the
32565           real thing, but required for developing/testing the textbox
32566           backend.
32567
32568 2004-12-16  Peter Bartok  <pbartok@novell.com>
32569
32570         * TextControl.cs:
32571         - Fixed Streamline method
32572         - Added FindTag method to Line
32573         - Added DumpTree method for debugging
32574         - Added DecrementLines() method for deleting lines
32575         - Fixed UpdateView to update the cursor to end-of-line on single-line
32576           updates
32577         - Added PositionCaret() method
32578         - Fixed MoveCaret(LineDown) to move into the last line, too
32579         - Added InsertChar overload
32580         - Fixed InsertChar tag offset calculations
32581         - Added DeleteChar() method
32582         - Added Combine() method for folding lines
32583         - Fixed Delete() method, no longer allocates wasted Line object and
32584           now copies all properties when swapping nodes
32585         - Delete() method now updates document line counter
32586
32587 2004-12-15  Jackson Harper  <jackson@ximian.com>
32588
32589         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
32590         * X11Keyboard.cs: Expose the currently selected modifier keys
32591         through a property.
32592
32593 2004-12-15  Peter Bartok  <pbartok@novell.com>
32594
32595         * TextControl.cs: Initial check-in. Still incomplete
32596
32597 2004-12-15  Jackson Harper  <jackson@ximian.com>
32598
32599         * TreeNode.cs:
32600         * TreeView.cs: Fix build on csc (second time today ;-))
32601
32602 2004-12-15  Jackson Harper  <jackson@ximian.com>
32603
32604         * TreeView.cs: Store the treenodes plus/minus box bounds when it
32605         is calculated and use this for click testing.
32606         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
32607
32608 2004-12-15  Jackson Harper  <jackson@ximian.com>
32609
32610         * TreeView.cs: Pass the nodes image index to the image list when
32611         drawing that image.
32612
32613 2004-12-15  Jackson Harper  <jackson@ximian.com>
32614
32615         * X11Keyboard.cs: Set messages hwnd.
32616         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
32617         post_message calls.
32618
32619 2004-12-15  Jackson Harper  <jackson@ximian.com>
32620
32621         * X11Keyboard.cs: Fix to compile with csc.
32622         
32623 2004-12-15  Jackson Harper  <jackson@ximian.com>
32624
32625         * X11Structs.cs: Add key mask values
32626         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
32627         * X11Keyboard.cs: New file - Extrapolates and interpolates key
32628         down/up foo into WM_CHAR foo
32629         * KeyboardLayouts.cs: Common keyboard layouts
32630         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
32631         post messages into the main queue.
32632
32633 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
32634
32635         * Button.cs: implement ProcessMnemonic
32636         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
32637           brushes everytime
32638         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
32639         * ButtonBase.cs: Show HotkeyPrefix (not the &)
32640
32641 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
32642         
32643         * MonthCalendar.cs: Implemented click-hold for next/previous month
32644           and date selection
32645           
32646 2004-12-11  Peter Bartok  <pbartok@novell.com>
32647
32648         * X11Structs.cs:
32649           - Added XKeyboardState (moved from XplatUIX11.cs)
32650           - Added XCreateGC related enums and structures
32651           - Added GXFunction for XSetFunction
32652
32653         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
32654
32655         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
32656           CaretVisible() calls
32657
32658         * ToolTip.cs: Added code to prevent stealing focus from app windows
32659
32660         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
32661           DestroyCaret, SetCaretPos and CaretVisible)
32662
32663         * XplatUIX11.cs:
32664           - Added implementation for caret functions
32665           - Moved hover variables into a struct, to make it a bit easier
32666             on the eyes and to debug
32667           - Removed XKeyboardState (moved to XplatUIX11.cs)
32668           - Moved Keyboard properties into the properties region
32669
32670         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
32671           call to get a graphics context for our control
32672
32673         * XplatUIOSX.cs: Added empty overrides for the new caret functions
32674
32675         * TreeView.cs: Fixed bug. No matter what color was set it would always
32676           return SystemColors.Window
32677
32678         * XplatUIWin32.cs: Implemented caret overrides
32679
32680 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
32681
32682         * ListBox.cs: fire events, implement missing methods and properties,
32683         sorting.
32684
32685 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
32686
32687         * MonthCalendar.cs: invalidation bug fixing
32688         * ThemeWin32Classic.cs: paint fixing
32689
32690 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
32691
32692         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
32693         prepare the CGContextRef there now.
32694
32695 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
32696
32697         * MonthCalendar.cs:
32698           - optimisationL only invalidate areas that have changed
32699         * ThemeWin32Classic.cs:
32700           - only paint parts that intersect with clip_area
32701
32702 2004-12-09  Peter Bartok  <pbartok@novell.com>
32703
32704         * Application.cs: Undid changes from r37004 which cause problems
32705         on X11
32706
32707 2004-12-09  Ravindra  <rkumar@novell.com>
32708
32709         * ToolBar.cs: Added support for displaying ContextMenu
32710         attached to a button on ToolBar.
32711         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
32712         property.
32713
32714 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
32715
32716         * Label.cs: autosize works in text change and removes unnecessary
32717         invalidate
32718
32719 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
32720
32721         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
32722         remove warnings
32723
32724 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
32725
32726         * XplatUIOSX.cs: Added mouse move/click/grab support
32727         Remove some debugging WriteLines not needed anymore.
32728         Add window resizing/positioning.
32729         Fix visibility on reparenting.
32730
32731 2004-12-08  Peter Bartok  <pbartok@novell.com>
32732
32733         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
32734
32735 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
32736
32737         * XplatUIOSX.cs: Initial checkin
32738         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
32739
32740 2004-12-03  Ravindra <rkumar@novell.com>
32741
32742         * ListView.cs: Added some keybindings and fixed scrolling.
32743         ScrollBars listen to ValueChanged event instead of Scroll
32744         Event. This would let us take care of all changes being
32745         done in the scrollbars' values programmatically or manually.
32746         * ListView.cs (CanMultiselect): Added a check for shift key.
32747         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
32748         * ListViewItem.cs (Clone): Fixed. We need to make a copy
32749         of ListViewSubItemCollection as well.
32750
32751 2004-12-06  Peter Bartok <pbartok@novell.com>
32752
32753         * Control.cs (Parent): Added check and exception to prevent
32754         circular parenting
32755
32756 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
32757
32758         * ListBox.cs: implemented clipping, selection single and multiple,
32759         bug fixing
32760
32761 2004-12-03  Ravindra <rkumar@novell.com>
32762
32763         * ListView.cs (ListView_KeyDown):
32764         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
32765         when CTRL key is pressed.
32766         * ListViewItem.cs (Selected): Fixed setting the property.
32767
32768 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
32769
32770         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
32771
32772         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
32773         MinimizeBox, ShowInTaskbar, TopMost properties.
32774
32775         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
32776         will be implemented).
32777
32778 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
32779
32780         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
32781
32782         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
32783         tests.
32784         
32785         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
32786         
32787         * TreeView.cs: BackColor is Colors.Window.
32788
32789 2004-12-01  Jackson Harper  <jackson@ximian.com>
32790
32791         * TreeView.cs: When resizing the tree if the user is making it
32792         smaller we don't get expose events, so we need to handle adding
32793         the horizontal scrollbar in the size changed handler as well as
32794         the expose handler.
32795
32796 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
32797
32798         * DrawItemState.cs: fixes wrong enum values
32799
32800 2004-12-01  Jackson Harper  <jackson@ximian.com>
32801
32802         * TreeView.cs: Resize the hbar as well as the vbar on resize.
32803
32804 2004-12-01  Jackson Harper  <jackson@ximian.com>
32805
32806         * NodeLabelEditEventArgs.cs:
32807         * NodeLabelEditEventHandler.cs:
32808         * OpenTreeNodeEnumerator.cs:
32809         * TreeNode.cs:
32810         * TreeNodeCollection.cs:
32811         * TreeView.cs:
32812         * TreeViewAction.cs:
32813         * TreeViewCancelEventArgs.cs:
32814         * TreeViewCancelEventHandler.cs:
32815         * TreeViewEventArgs.cs:
32816         * TreeViewEventHandler.cs: Initial implementation.
32817
32818 2004-12-01  Ravindra <rkumar@novell.com>
32819
32820         * ListView.cs (CalculateListView): Fixed scrolling related
32821         calculations. Also, removed some debug statements from other
32822         places.
32823         * ListViewItem.cs: Changed access to 'selected' instance variable
32824         from private to internal.
32825         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
32826
32827 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
32828
32829         * ThemeWin32Classic.cs: remove cache of brush and pens for
32830         specific controls and use the global system, fixes scrollbutton
32831         bugs (for small sizes, disabled, etc)
32832         
32833         * ScrollBar.cs: does not show the thumb for very small controls
32834         (as MS) and allow smaller buttons that the regular size
32835
32836 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
32837
32838         * UpDownBase.cs: Add abstract methods for the interface.
32839         Add new virtual methods (need to be hooked up to TextEntry when it
32840         exists).
32841         Add override methods for most features.
32842         Computes the size, forces the height of the text entry.
32843
32844         * NumericUpDown.cs: Put here the current testing code.
32845
32846         * Set eol-style property on all files that do not have mixed line
32847         endings, to minimize the future problems.  There are still a few
32848         files with mixed endings, and someone should choose whether they
32849         want to move it or not.
32850
32851 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
32852
32853         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
32854         System.Colors
32855         
32856 2004-11-30  Ravindra <rkumar@novell.com>
32857
32858         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
32859         drawing and replaced use of SystemColors by theme colors.
32860         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
32861         * ListView.cs (ListViewItemCollection.Add): Throw exception when
32862         same ListViewItem is being added more than once.
32863
32864 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
32865
32866         * MonthCalendar.cs:
32867           - ControlStyles love to make the control not flicker
32868           
32869 2004-11-30  Peter Bartok  <pbartok@novell.com>
32870
32871         * CharacterCasing.cs: Added
32872
32873 2004-11-29  Peter Bartok  <pbartok@novell.com>
32874
32875         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
32876           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
32877           I am removing these files as they conflict with already completed
32878           work. While it is fantastic to get contributions to MWF, I
32879           respectfully ask that everyone please coordinate their contributions
32880           through mono-winforms-list or #mono-winforms at this time. We're
32881           explicitly avoiding stubbing and don't want controls that don't have
32882           their basic functionality implemented in svn. Please also see
32883           http://www.mono-project.com/contributing/winforms.html
32884
32885
32886 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
32887
32888         * Application.cs (ModalRun): Don't hang after exit.
32889
32890         * Theme.cs: New TreeViewDefaultSize property.
32891
32892         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
32893         with less hardcoded SystemColors constant.
32894         Implemented TreeViewDefaultSize.
32895
32896         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
32897         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
32898
32899
32900 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
32901
32902         * MonthCalendar.cs:
32903           - Fix NextMonthDate and PrevMonthDate click moving calendar
32904
32905 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
32906
32907         * MonthCalendar.cs:
32908           - Fix usage of ScrollChange Property when scrolling months
32909
32910 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
32911
32912         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
32913          - Fixes menu destroying
32914          - Support adding and removing items on already created menus
32915
32916 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
32917
32918         * MonthCalendar.cs:
32919           - Re-worked all bolded dates handling to match win32
32920         * ThemeWin32Classic.cs:
32921           - Fixed rendering with bolded dates
32922
32923 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
32924
32925         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
32926         - Horizontal scroolbar
32927         - Multicolumn
32928         - Fixes
32929
32930
32931 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
32932
32933         * MonthCalendar.cs:
32934           - Fix Usage of MaxSelectionCount from SelectionRange
32935           - Fixed Shift + Cursor Selection
32936           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
32937           - Fixed normal cursor selection to be compat with win32
32938           - Fixed Shift + Mouse Click selection
32939
32940 2004-11-24  Peter Bartok <pbartok@novell.com>
32941
32942         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
32943         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
32944         * XplatUIX11.cs:
32945           - CreatedKeyBoardMsg now updates keystate with Alt key
32946           - Added workaround for timer crash to CheckTimers, Jackson will
32947             develop a proper fix and check in later
32948           - Implemented DispatchMessage
32949           - Removed calling the native window proc from GetMessage (call
32950             now moved to DispatchMessage)
32951
32952         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
32953           the keydata (Fixes bug #69831)
32954
32955         * XplatUIWin32.cs:
32956           - (DispatchMessage): Switched to return IntPtr
32957           - Added DllImport for SetFocus
32958
32959 2004-11-24  Ravindra <rkumar@novell.com>
32960
32961         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
32962         background drawing.
32963         * ListViewItem.cs: Fixed various properties, calculations
32964         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
32965         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
32966         and some internal properties. Fixed MouseDown handler and Paint
32967         method.
32968
32969 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
32970
32971         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
32972
32973 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
32974
32975         * ContainerControl.cs: correct accidental check in of local changes
32976
32977 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
32978
32979         * ThemeWin32Classic.cs:
32980                 - Fixed Drawing Last month in grid (sometimes not showing)
32981         * MonthCalendar.cs:
32982                 - Fixed title width calculation bug (makeing title small)
32983
32984 2004-11-23  Peter Bartok <pbartok@novell.com>
32985
32986         * XplatUIX11.cs:
32987           - Added generation of WM_MOUSEHOVER event
32988           - Added missing assignment of async_method atom
32989           - Fixed WM_ERASEBKGND; now only redraws the exposed area
32990
32991 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
32992
32993         * ThemeWin32Classic.cs:
32994                 - Fixed Drawing of today circle when showtodaycircle not set
32995                 - fixed drawing of first and last month in the grid (gay dates)
32996         * MonthCalendar.cs:
32997                 - Fixed Drawing of today circle
32998                 - Fixed drawing of grady dates
32999                 - Fixed HitTest for today link when ShowToday set to false
33000                 - Fixed DefaultSize to obey ShowToday
33001
33002 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
33003
33004         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
33005         * System.Windows.Forms/Theme.cs
33006         * MonthCalendar.cs: added for MonthCalendar
33007         * SelectionRange.cs: added for MonthCalendar
33008         * Day.cs: added for MonthCalendar: added for MonthCalendar
33009         * DateRangeEventArgs.cs: added for MonthCalendar
33010         * DateRangeEventHandler.cs: added for MonthCalendar
33011
33012 2004-11-22  Ravindra <rkumar@novell.com>
33013
33014         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
33015         property.
33016
33017 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
33018
33019         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
33020         event handler.
33021         
33022         * NumericUpDown.cs: Added new implementation.
33023         * UpDownBase.cs: Added new implementation.
33024
33025         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
33026         implementations.
33027         
33028         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
33029         implementations.
33030
33031         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
33032         methods.
33033
33034 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
33035
33036         * Timer.cs  (Dispose): Should call the base dispose when
33037         overriding.
33038
33039 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
33040
33041         * ScrollBar.cs: updates thumb position when max, min or increment
33042         is changed
33043
33044 2004-11-21  Ravindra <rkumar@novell.com>
33045
33046         * ListView.cs: Implemented item selection, activation and
33047         column header style. Fixed properties to do a redraw, if
33048         required. Added support for MouseHover, DoubleClick, KeyDown
33049         and KeyUp event handling and some minor fixes.
33050         * ListViewItem.cs: Fixed constructor.
33051         * ThemeWin32Classic.cs: Improved drawing for ListView.
33052
33053 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
33054
33055         * ThemeWin32Classic.cs: initial listbox drawing code
33056         * DrawMode.cs: new enumerator
33057         * ListControl.cs: stubbed class
33058         * ListBox.cs: initial implementation
33059         * Theme.cs: new methods definitions
33060         * SelectionMode.cs: new enumerator
33061
33062 2004-11-17  Peter Bartok  <pbartok@novell.com>
33063
33064         * XplatUIWin32.cs: Added double-click events to the class style
33065         * Control.cs (WndProc):
33066           - Added handling of click-count to MouseDown/ MouseUp events.
33067           - Added handling of middle and right mouse buttons
33068           - Removed old debug code
33069
33070 2004-11-17  Jackson Harper  <jackson@ximian.com>
33071
33072         * XplatUIX11.cs: Use the new Mono.Unix namespace.
33073
33074 2004-11-17  Ravindra <rkumar@novell.com>
33075
33076         * ListView.cs: Added event handling for MouseMove/Up/Down.
33077         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
33078         * ThemeWin32Classic.cs: We need to clear the graphics context and
33079         draw column header in a proper state.
33080
33081
33082 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
33083
33084         *  Menu.cs: fixes signature
33085
33086 2004-11-16  Peter Bartok  <pbartok@novell.com>
33087
33088         * XplatUIX11.cs (GetMessage): Implemented generation of
33089           double click mouse messages
33090
33091 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
33092
33093         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
33094         not by menu
33095
33096 2004-11-11  Peter Bartok  <pbartok@novell.com>
33097
33098         * HandleData.cs: Added Visible property
33099         * XplatUIX11.cs (IsVisible): Now uses Visible property from
33100           HandleData
33101         * XplatUIX11.cs: Removed old debug leftovers
33102         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
33103         * Control.cs (WndProc): Removed old debug leftovers,
33104           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
33105           needed WM_SIZE handling
33106
33107 2004-11-11  Jackson Harper  <jackson@ximian.com>
33108
33109         * OwnerDrawPropertyBag.cs:
33110         * TreeViewImageIndexConverter.cs: Initial implementation
33111
33112 2004-11-10  Jackson Harper  <jackson@ximian.com>
33113
33114         * ThemeWin32Classic.cs:
33115         * TabControl.cs: instead of moving tabs by the slider pos just
33116         start drawing at the tab that is offset by the slider. This way
33117         scrolling always moves by exactly one tab.
33118
33119 2004-11-10  Jackson Harper  <jackson@ximian.com>
33120
33121         * TabControl.cs: You can only scroll left when the slider has
33122         already ben moved right.
33123         
33124 2004-11-10  Jackson Harper  <jackson@ximian.com>
33125
33126         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
33127         the clip area.
33128         
33129 2004-11-10  Jackson Harper  <jackson@ximian.com>
33130
33131         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
33132         clip area.
33133         
33134 2004-11-09  Jackson Harper  <jackson@ximian.com>
33135
33136         * TabControl.cs (CalcXPos): New helper method so we can determine
33137         the proper place to start drawing vertical tabs.
33138         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
33139         
33140 2004-11-09  Jackson Harper  <jackson@ximian.com>
33141
33142         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
33143         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
33144         and Bottom, left and right are illegal values for this and
33145         multiline is enabled when the alignment is set to left or right.
33146         (DrawTab): Each alignment block should draw the text itself now
33147         because Left requires special love. Also add rendering for Left
33148         aligned tabs.
33149         
33150 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
33151
33152         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
33153         does not destroy the windows, removes debugging messages
33154
33155 2004-11-09  jba  <jba-mono@optusnet.com.au>
33156
33157         * ThemeWin32Classic.cs
33158         (DrawButtonBase): Fix verticle text rect clipping in windows
33159         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
33160         rendering and incorrect text rect clipping
33161         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
33162         rendering and incorrect text rect clipping
33163         
33164 2004-11-08  Jackson Harper  <jackson@ximian.com>
33165
33166         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
33167         bottom when they are bottom aligned so the bottoms of the tabs get
33168         displayed.
33169         * TabControl.cs (DropRow): Move rows up instead of down when the
33170         tab control is bottom aligned.
33171
33172 2004-11-08 13:59  pbartok
33173
33174         * XplatUIX11.cs:
33175           - Added handling for various window styles
33176           - Added handling for popup windows
33177           - Added SetTopmost handling
33178
33179 2004-11-08 13:55  pbartok
33180
33181         * XplatUIWin32.cs:
33182           - Added argument to SetTopmost method
33183           - Fixed broken ClientToScreen function
33184
33185 2004-11-08 13:53  pbartok
33186
33187         * XplatUIStructs.cs:
33188           - Added missing WS_EX styles
33189
33190 2004-11-08 13:53  pbartok
33191
33192         * XplatUI.cs, XplatUIDriver.cs:
33193           - Added argument to SetTopmost
33194
33195 2004-11-08 13:52  pbartok
33196
33197         * X11Structs.cs:
33198           - Added XSetWindowAttributes structure
33199           - Improved XWindowAttributes structure
33200           - Added SetWindowValuemask enum
33201           - Added window creation arguments enum
33202           - Added gravity enum
33203           - Added Motif hints structure
33204           - Added various Motif flags and enums
33205           - Added PropertyMode enum for property functions
33206
33207 2004-11-08 13:50  pbartok
33208
33209         * Form.cs:
33210           - Fixed arguments for updated SetTopmost method
33211
33212 2004-11-08 13:49  pbartok
33213
33214         * ToolTip.cs:
33215           - Fixed arguments for updated SetTopmost function
33216           - Fixed usage of PointToClient
33217
33218 2004-11-08 13:44  pbartok
33219
33220         * MenuAPI.cs:
33221           - Added Clipping of children and siblings
33222
33223 2004-11-08 13:41  pbartok
33224
33225         * MainMenu.cs:
33226           - Removed SetMenuBarWindow call. We do this in Form.cs
33227
33228 2004-11-08 13:40  jackson
33229
33230         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
33231           scrolling jimmi in the correct location with bottom aligned tabs
33232
33233 2004-11-08 13:36  pbartok
33234
33235         * ContainerControl.cs:
33236           - Implemented BindingContext
33237           - Implemented ParentForm
33238
33239 2004-11-08 12:46  jackson
33240
33241         * TabControl.cs: Put bottom rendered tabs in the right location
33242
33243 2004-11-08 07:15  jordi
33244
33245         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
33246           removes dead code
33247
33248 2004-11-05 17:30  jackson
33249
33250         * TabControl.cs: When selected tabs are expanded make sure they
33251           don't go beyond the edges of the tab control
33252
33253 2004-11-05 14:57  jackson
33254
33255         * TabControl.cs: Reset show_slider so if the control is resized to
33256           a size where it is no longer needed it's not displayed anymore
33257
33258 2004-11-05 13:16  jackson
33259
33260         * TabControl.cs: Make tab pages non visible when added to the
33261           control
33262
33263 2004-11-05 12:42  jackson
33264
33265         * TabControl.cs: Implement SizeMode.FillToRight
33266
33267 2004-11-05 12:16  jackson
33268
33269         * Control.cs: Do not call CreateHandle if the handle is already
33270           created
33271
33272 2004-11-05 11:46  jackson
33273
33274         * TabControl.cs: Remove superflous call to CalcTabRows
33275
33276 2004-11-05 09:07  jackson
33277
33278         * XplatUIX11.cs: Update for Mono.Posix changes
33279
33280 2004-11-05 07:00  ravindra
33281
33282         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
33283           scrolling.
33284
33285 2004-11-04 22:47  jba
33286
33287         * ThemeWin32Classic.cs:
33288           - Fix Button rendering for FlatStyle = Flat or Popup
33289           - Fix RadioButton and CheckBox rendering when Appearance = Button
33290             (normal and flatstyle).
33291           - Correct outer rectangle color when drawing focus rectangle
33292           - Adjust button bounds to be 1 px smaller when focused
33293           - Make button not draw sunken 3d border when pushed (windows compat)
33294           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
33295           - Offset the text in RadioButton and Checkbox when being rendered as
33296           a button.
33297           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
33298           radiobuttons
33299           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
33300           - Fixed disabled text rendering for normally rendered radiobuttons
33301
33302 2004-11-04 10:26  jackson
33303
33304         * TabControl.cs: Recalculate tab rows when resizing
33305
33306 2004-11-04 07:47  jordi
33307
33308         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
33309           collection completion, drawing issues, missing features
33310
33311 2004-11-04 05:03  ravindra
33312
33313         * ScrollBar.cs:
33314                 - We need to recalculate the Thumb area when
33315                 LargeChange/maximum/minimum values are changed.
33316           - We set the 'pos' in UpdatePos() method to minimum, if it's less
33317                 than minimum. This is required to handle the case if large_change is
33318                 more than max, and use LargeChange property instead of large_change
33319                 variable.
33320           - We return max+1 when large_change is more than max, like MS does.
33321
33322 2004-11-04 04:29  ravindra
33323
33324         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
33325                 - Changed default value signatures (prefixed all with ListView).
33326                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
33327                 ListView.
33328           - Fixed calculations for ListViewItem and implemented Clone()
33329           method.
33330
33331 2004-11-04 04:26  ravindra
33332
33333         * Theme.cs, ThemeWin32Classic.cs:
33334                 - Changed default ListView values signatures (prefixed all with
33335                 ListView).
33336           - Fixed default size values for VScrollBar and HScrollBar.
33337                 - Fixed DrawListViewItem method.
33338
33339 2004-11-04 04:05  ravindra
33340
33341         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
33342
33343 2004-11-04 04:04  ravindra
33344
33345         * ImageList.cs: Implemented the missing overload for Draw method.
33346
33347 2004-11-03 19:29  jackson
33348
33349         * TabControl.cs: Handle dropping rows on selection properly
33350
33351 2004-11-03 11:59  jackson
33352
33353         * TabControl.cs: remove debug code
33354
33355 2004-11-03 11:52  jackson
33356
33357         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
33358           the scrolly widgerywoo
33359
33360 2004-11-02 13:52  jackson
33361
33362         * TabControl.cs: Resize the tab pages and tabs when the tab control
33363           is resized
33364
33365 2004-11-02 13:40  jackson
33366
33367         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
33368           selected tab to the bottom
33369
33370 2004-11-02 13:39  jackson
33371
33372         * TabPage.cs: Store the tab pages row
33373
33374 2004-11-02 12:33  jordi
33375
33376         * MenuItem.cs: fixes handle creation
33377
33378 2004-11-02 11:42  jackson
33379
33380         * TabControl.cs: signature fix
33381
33382 2004-11-02 08:56  jackson
33383
33384         * TabControl.cs: Calculate whether the tab is on an edge properly.
33385           Remove top secret debugging code
33386
33387 2004-11-01 19:57  jackson
33388
33389         * TabControl.cs: Add click handling, and proper sizing
33390
33391 2004-11-01 19:47  jackson
33392
33393         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
33394           tab controls
33395
33396 2004-11-01 19:39  jackson
33397
33398         * TabPage.cs: add internal property to store the bounds of a tab
33399           page
33400
33401 2004-10-30 04:23  ravindra
33402
33403         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
33404           values.
33405
33406 2004-10-30 04:21  ravindra
33407
33408         * ListView.cs, ListViewItem.cs: Added support for scrolling and
33409           fixed calculations.
33410
33411 2004-10-30 03:06  pbartok
33412
33413         * XplatUIX11.cs:
33414           - Removed extension of DllImported libs
33415
33416 2004-10-29 09:55  jordi
33417
33418         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
33419           navigation, itemcollection completion, menu fixes
33420
33421 2004-10-27 22:58  pbartok
33422
33423         * XplatUIX11.cs:
33424           - Now throws a nice error message when no X display could be opened
33425
33426 2004-10-26 13:51  jordi
33427
33428         * ListView.cs: removes warning
33429
33430 2004-10-26 03:55  ravindra
33431
33432         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
33433           ThemeWin32Classic.cs: Some formatting for my last checkins.
33434
33435 2004-10-26 03:36  ravindra
33436
33437         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
33438           control and default values.
33439
33440 2004-10-26 03:35  ravindra
33441
33442         * Theme.cs: Added some default values for ListView control.
33443
33444 2004-10-26 03:33  ravindra
33445
33446         * ToolBar.cs: ToolBar should use the user specified button size, if
33447           there is any. Added a size_specified flag for the same.
33448
33449 2004-10-26 03:33  ravindra
33450
33451         * ColumnHeader.cs: Added some internal members and calculations for
33452           ColumnHeader.
33453
33454 2004-10-26 03:32  ravindra
33455
33456         * ListViewItem.cs: Calculations for ListViewItem.
33457
33458 2004-10-26 03:31  ravindra
33459
33460         * ListView.cs: Added some internal members and calculations for
33461           ListView.
33462
33463 2004-10-22 13:31  jordi
33464
33465         * MenuAPI.cs: speedup menus drawing
33466
33467 2004-10-22 13:16  jackson
33468
33469         * XplatUIX11.cs: Make sure to update exposed regions when adding an
33470           expose event
33471
33472 2004-10-22 11:49  jackson
33473
33474         * Control.cs: oops
33475
33476 2004-10-22 11:41  jackson
33477
33478         * Control.cs: Check to see if the window should have its background
33479           repainted by X when drawing.
33480
33481 2004-10-22 11:31  jackson
33482
33483         * XplatUIX11.cs: When invalidating areas only use XClearArea if
33484           clear is true, this way we do not get flicker from X repainting the
33485           background
33486
33487 2004-10-22 11:28  jackson
33488
33489         * XEventQueue.cs: Queue properly
33490
33491 2004-10-21 09:38  jackson
33492
33493         * XEventQueue.cs: Fix access modifier
33494
33495 2004-10-21 09:36  jackson
33496
33497         * XEventQueue.cs: Don't loose messages
33498
33499 2004-10-21 09:22  jackson
33500
33501         * XEventQueue.cs: Don't loose messages
33502
33503 2004-10-20 04:15  jordi
33504
33505         * BootMode.cs: enum need it by SystemInfo
33506
33507 2004-10-19 21:58  pbartok
33508
33509         * XplatUIWin32.cs:
33510           - Small sanity check
33511
33512 2004-10-19 21:56  pbartok
33513
33514         * Form.cs:
33515           - Added private FormParentWindow class which acts as the container
33516             for our form and as the non-client area where menus are drawn
33517           - Added/Moved required tie-ins to Jordi's menus
33518           - Fixed/Implemented the FormStartPosition functionality
33519
33520 2004-10-19 21:52  pbartok
33521
33522         * Control.cs:
33523           - Removed unneeded locals
33524           - Added code to all size and location properties to understand and
33525             deal with the parent container of Form
33526
33527 2004-10-19 21:33  pbartok
33528
33529         * Application.cs:
33530           - Fixed to deal with new Form subclasses for menus
33531
33532 2004-10-19 17:48  jackson
33533
33534         * XEventQueue.cs: commit correct version of file
33535
33536 2004-10-19 16:50  jackson
33537
33538         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
33539
33540 2004-10-19 16:15  jordi
33541
33542         * MenuAPI.cs: MenuBarCalcSize returns the height
33543
33544 2004-10-19 08:31  pbartok
33545
33546         * Control.cs:
33547           - Added missing call to PreProcessMessage before calling OnXXXKey
33548           methods
33549
33550 2004-10-19 00:04  ravindra
33551
33552         * ToolTip.cs: Fixed constructor.
33553
33554 2004-10-18 09:31  jordi
33555
33556         * MenuAPI.cs: menuitems in menubars do not have shortcuts
33557
33558 2004-10-18 09:26  jordi
33559
33560         * MenuItem.cs: fixes MenuItem class signature
33561
33562 2004-10-18 08:56  jordi
33563
33564         * MenuAPI.cs: prevents windows from showing in the taskbar
33565
33566 2004-10-18 00:28  ravindra
33567
33568         * ToolTip.cs: Suppressed a warning message.
33569
33570 2004-10-18 00:27  ravindra
33571
33572         * Control.cs: Default value of visible property must be true.
33573
33574 2004-10-17 23:19  pbartok
33575
33576         * ToolTip.cs:
33577           - Complete implementation
33578
33579 2004-10-17 23:19  pbartok
33580
33581         * XplatUIX11.cs:
33582           - Added EnableWindow method
33583           - Added SetModal stub
33584           - Added generation of WM_ACTIVATE message (still needs testing)
33585           - Added SetTopMost stub
33586           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
33587
33588 2004-10-17 23:17  pbartok
33589
33590         * XplatUIWin32.cs:
33591           - Removed VirtualKeys to XplatUIStructs
33592           - Implemented SetTopMost method
33593           - Implemented EnableWindow method
33594           - Bugfix in ScreenToClient()
33595           - Bugfixes in ClientToScreen()
33596
33597 2004-10-17 22:51  pbartok
33598
33599         * XplatUIStructs.cs:
33600           - Added WS_EX styles to WindowStyles enumeration
33601
33602 2004-10-17 22:50  pbartok
33603
33604         * XplatUI.cs, XplatUIDriver.cs:
33605           - Added method for enabling/disabling windows
33606           - Added method for setting window modality
33607           - Added method for setting topmost window
33608
33609 2004-10-17 22:49  pbartok
33610
33611         * ThemeWin32Classic.cs:
33612           - Added ToolTip drawing code
33613
33614 2004-10-17 22:49  pbartok
33615
33616         * Theme.cs:
33617           - Added ToolTip abstracts
33618
33619 2004-10-17 22:47  pbartok
33620
33621         * Form.cs:
33622           - Fixed Form.ControlCollection to handle owner relations
33623           - Added Owner/OwnedForms handling
33624           - Implemented Z-Ordering for owned forms
33625           - Removed unneeded private overload of ShowDialog
33626           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
33627             so I hope)
33628           - Fixed Close(), had wrong default
33629           - Added firing of OnLoad event
33630           - Added some commented out debug code for Ownership handling
33631
33632 2004-10-17 22:16  pbartok
33633
33634         * Control.cs:
33635           - Fixed/implemented flat list of controls
33636
33637 2004-10-17 22:14  pbartok
33638
33639         * Application.cs:
33640           - Added code to simulate modal dialogs on Win32
33641
33642 2004-10-17 16:11  jordi
33643
33644         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
33645           mouse event
33646
33647 2004-10-17 13:39  jordi
33648
33649         * MenuAPI.cs: menu drawing fixes
33650
33651 2004-10-15 09:10  ravindra
33652
33653         * StructFormat.cs: General Enum.
33654
33655 2004-10-15 09:09  ravindra
33656
33657         * SizeGripStyle.cs: Enum for Form.
33658
33659 2004-10-15 09:08  ravindra
33660
33661         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
33662           in Theme for ListView.
33663
33664 2004-10-15 09:06  ravindra
33665
33666         * ColumnHeader.cs: Flushing some formatting changes.
33667
33668 2004-10-15 09:05  ravindra
33669
33670         * ListViewItem.cs: Implemented GetBounds method and fixed coding
33671           style.
33672
33673 2004-10-15 09:03  ravindra
33674
33675         * ListView.cs: Implemented Paint method and fixed coding style.
33676
33677 2004-10-15 07:34  jordi
33678
33679         * MenuAPI.cs: fix for X11
33680
33681 2004-10-15 07:32  ravindra
33682
33683         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
33684                 - Renamed Paint() method to Draw() for clarity. Also, moved
33685                 DrawImage() to OnPaint().
33686
33687 2004-10-15 07:25  ravindra
33688
33689         * CheckBox.cs, RadioButton.cs:
33690                 - Removed Redraw (), we get it from ButtonBase.
33691                 - Implemented Paint (), to do class specific painting.
33692
33693 2004-10-15 07:16  ravindra
33694
33695         * ButtonBase.cs:
33696                 - Redraw () is not virtual now.
33697                 - Added an internal virtual method Paint (), so that
33698                 derived classes can do their painting on their own.
33699                 - Modified OnPaint () to call Paint ().
33700
33701 2004-10-15 06:43  jordi
33702
33703         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
33704           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
33705
33706 2004-10-15 00:30  ravindra
33707
33708         * MessageBox.cs:
33709                 - MessageBox on windows does not have min/max buttons.
33710                 This change in CreateParams fixes this on Windows. We
33711                 still need to implement this windowstyle behavior in
33712                 our X11 driver.
33713
33714 2004-10-14 05:14  ravindra
33715
33716         * ToolBar.cs:
33717                 - Changed Redraw () to do a Refresh () always.
33718                 - Fixed the MouseMove event handling when mouse is pressed,
33719                 ie drag event handling.
33720                 - Replaced the usage of ToolBarButton.Pressed property to
33721                 ToolBarButton.pressed internal variable.
33722
33723 2004-10-14 05:10  ravindra
33724
33725         * ToolBarButton.cs:
33726                 - Added an internal member 'inside' to handle mouse move
33727                 with mouse pressed ie mouse drag event.
33728                 - Changed 'Pressed' property to return true only when
33729                 'inside' and 'pressed' are both true.
33730                 - Some coding style love.
33731
33732 2004-10-14 00:17  ravindra
33733
33734         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
33735           public method.
33736
33737 2004-10-14 00:15  ravindra
33738
33739         * ButtonBase.cs: Redraw () related improvements.
33740
33741 2004-10-14 00:14  ravindra
33742
33743         * MessageBox.cs: Moved InitFormSize () out of Paint method and
33744           removed unnecessary calls to Button.Show () method.
33745
33746 2004-10-13 17:50  pbartok
33747
33748         * XplatUIX11.cs:
33749           - Formatting fix
33750           - Removed destroying of window until we solve the problem of X
33751             destroying the window before us on shutdown
33752
33753 2004-10-13 16:32  pbartok
33754
33755         * ButtonBase.cs:
33756           - Now Redraws on MouseUp for FlatStyle Flat and Popup
33757
33758 2004-10-13 14:18  pbartok
33759
33760         * XplatUIX11.cs:
33761           - Added code to destroy the X window
33762
33763 2004-10-13 14:18  pbartok
33764
33765         * XplatUIWin32.cs:
33766           - Added code to destroy a window
33767
33768 2004-10-13 14:12  pbartok
33769
33770         * ButtonBase.cs:
33771           - Added the Redraw on Resize that got dropped in the last rev
33772
33773 2004-10-13 09:06  pbartok
33774
33775         * ThemeWin32Classic.cs:
33776           - Path from John BouAntoun:
33777             * Fix check rendering (centre correctly for normal style, offset
33778               correctly for FlatStyle).
33779             * Fix border color usage (use backcolor) for FlatStyle.Popup
33780             * Use checkbox.Capture instead of checkbox.is_pressed when
33781               rendering flatstyle states.
33782
33783 2004-10-12 21:48  pbartok
33784
33785         * ThemeWin32Classic.cs:
33786           - Removed all occurences of SystemColors and replaced them with the
33787             matching theme color
33788
33789 2004-10-12 21:41  pbartok
33790
33791         * ThemeWin32Classic.cs:
33792           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
33793             him using the function for flatstyle drawing
33794           - Changed functions to use the new version of CPDrawBorder3D
33795
33796 2004-10-12 21:15  pbartok
33797
33798         * ControlPaint.cs:
33799           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
33800             match MS documentation. They need to return defined colors if the
33801             passed color matches the configured control color. Thanks to John
33802             BouAntoun for pointing this out.
33803
33804 2004-10-12 20:57  pbartok
33805
33806         * Control.cs:
33807           - Fix from John BouAntoun: Raise ForeColorChanged event when text
33808             color is changed
33809
33810 2004-10-12 20:46  pbartok
33811
33812         * CheckBox.cs:
33813           - Fix from John BouAntoun: Now properly sets the Appearance property
33814
33815 2004-10-12 20:45  pbartok
33816
33817         * ThemeWin32Classic.cs:
33818           - Fixes from John BouAntoun: now handles forecolors and backcolors
33819             for flatstyle rendered controls much better; It also fixes normal
33820             checkbox rendering when pushed or disabled.
33821
33822 2004-10-08 02:50  jordi
33823
33824         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
33825           work
33826
33827 2004-10-07 08:56  jordi
33828
33829         * ThemeWin32Classic.cs: Removes deletion of cached brushes
33830
33831 2004-10-06 03:59  jordi
33832
33833         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
33834           XplatUIWin32.cs: removes warnings from compilation
33835
33836 2004-10-05 12:23  jackson
33837
33838         * RadioButton.cs: Fix ctor
33839
33840 2004-10-05 11:10  pbartok
33841
33842         * MessageBox.cs:
33843           - Partial implementation by Benjamin Dasnois
33844
33845 2004-10-05 10:15  jackson
33846
33847         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
33848           by John BouAntoun
33849
33850 2004-10-05 03:07  ravindra
33851
33852         * ToolBar.cs:
33853                 - Removed a private method, Draw ().
33854                 - Fixed the ButtonDropDown event handling.
33855                 - Fixed MouseMove event handling.
33856
33857 2004-10-05 03:04  ravindra
33858
33859         * ThemeWin32Classic.cs:
33860                 - Added DrawListView method and ListViewDefaultSize property.
33861                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
33862                 - Changed DOS style CRLF to Unix format (dos2unix).
33863
33864 2004-10-05 03:03  ravindra
33865
33866         * Theme.cs:
33867                 - Added DrawListView method and ListViewDefaultSize property.
33868
33869 2004-10-05 02:42  ravindra
33870
33871         * ToolBarButton.cs: Added an internal member dd_pressed to handle
33872           clicks on DropDown arrow.
33873
33874 2004-10-04 22:56  jackson
33875
33876         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
33877           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
33878           Control handle the buffers, derived classes should not have to
33879           CreateBuffers themselves.
33880
33881 2004-10-04 21:20  jackson
33882
33883         * StatusBar.cs: The control handles resizing the buffers now.
33884
33885 2004-10-04 21:18  jackson
33886
33887         * Control.cs: When resizing the buffers should be invalidated. This
33888           should be handled in Control not in derived classes.
33889
33890 2004-10-04 14:45  jackson
33891
33892         * TabPage.cs: oops
33893
33894 2004-10-04 02:14  pbartok
33895
33896         * LeftRightAlignment.cs:
33897           - Initial check-in
33898
33899 2004-10-04 01:09  jordi
33900
33901         * ThemeWin32Classic.cs: fixes right button position causing right
33902           button not showing on horizontal scrollbars
33903
33904 2004-10-02 13:12  pbartok
33905
33906         * XplatUIX11.cs:
33907           - Simplified the Invalidate method by using an X call instead of
33908             generating the expose ourselves
33909           - Added an expose when the window background is changed
33910           - Implemented ClientToScreen method
33911
33912 2004-10-02 13:08  pbartok
33913
33914         * XplatUIWin32.cs:
33915           - Added Win32EnableWindow method (test for implementing modal
33916           dialogs)
33917           - Added ClientToScreen method and imports
33918
33919 2004-10-02 13:07  pbartok
33920
33921         * XplatUI.cs, XplatUIDriver.cs:
33922           - Added ClientToScreen coordinate translation method
33923
33924 2004-10-02 13:06  pbartok
33925
33926         * KeyPressEventArgs.cs:
33927           - Fixed access level for constructor
33928
33929 2004-10-02 13:06  pbartok
33930
33931         * NativeWindow.cs:
33932           - Changed access level for the window_collection hash table
33933
33934 2004-10-02 13:05  pbartok
33935
33936         * Form.cs:
33937           - Added KeyPreview property
33938           - Added Menu property (still incomplete, pending Jordi's menu work)
33939           - Implemented ProcessCmdKey
33940           - Implemented ProcessDialogKey
33941           - Implemented ProcessKeyPreview
33942
33943 2004-10-02 13:02  pbartok
33944
33945         * Control.cs:
33946           - Added private method to get the Control object from the window
33947           handle
33948           - Implemented ContextMenu property
33949           - Implemented PointToScreen
33950           - Implemented PreProcessMessage
33951           - Implemented IsInputChar
33952           - Implemented IsInputKey
33953           - Implemented ProcessCmdKey
33954           - Completed ProcessKeyEventArgs
33955           - Fixed message loop to call the proper chain of functions on key
33956           events
33957           - Implemented ProcessDialogChar
33958           - Implemented ProcessDialogKey
33959           - Implemented ProcessKeyMessage
33960           - Implemented ProcessKeyPreview
33961           - Added RaiseDragEvent stub (MS internal method)
33962           - Added RaiseKeyEvent stub (MS internal method)
33963           - Added RaiseMouseEvent stub (MS Internal method)
33964           - Added RaisePaintEvent stub (MS Internal method)
33965           - Added ResetMouseEventArgs stub (MS Internal method)
33966           - Implemented RtlTranslateAlignment
33967           - Implemented RtlTranslateContent
33968           - Implemented RtlTranslateHorizontal
33969           - Implemented RtlTranslateLeftRight
33970           - Added generation of KeyPress event
33971
33972 2004-10-02 05:57  ravindra
33973
33974         * ListViewItem.cs: Added attributes.
33975
33976 2004-10-02 05:32  ravindra
33977
33978         * ListView.cs: Added attributes.
33979
33980 2004-10-01 11:53  jackson
33981
33982         * Form.cs: Implement the Close method so work on MessageBox can
33983           continue.
33984
33985 2004-09-30 14:06  pbartok
33986
33987         * XplatUIX11.cs:
33988           - Bug fixes
33989
33990 2004-09-30 11:34  jackson
33991
33992         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
33993
33994 2004-09-30 07:26  ravindra
33995
33996         * ListViewItemConverter.cs: Converter for ListViewItem.
33997
33998 2004-09-30 07:26  ravindra
33999
34000         * SortOrder.cs: Enum for ListView control.
34001
34002 2004-09-30 07:25  ravindra
34003
34004         * ColumnHeader.cs: Supporting class for ListView control.
34005
34006 2004-09-30 07:24  ravindra
34007
34008         * ListView.cs, ListViewItem.cs: Initial implementation.
34009
34010 2004-09-30 07:20  ravindra
34011
34012         * ItemActivation.cs: Enum for ListView Control.
34013
34014 2004-09-29 20:29  pbartok
34015
34016         * XplatUIX11.cs:
34017           - Added lookup of pixel value for background color; tries to get a
34018             color 'close' to the requested color, it avoids having to create a
34019             colormap.  Depending on the display this could mean the used color
34020             is slightly off the desired color. Might have to change it to a more
34021             resource intensive colormap approach, but it will work as a
34022           workaround to avoid red screens.
34023
34024 2004-09-29 14:27  jackson
34025
34026         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
34027
34028 2004-09-28 12:44  pbartok
34029
34030         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
34031           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
34032           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
34033           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
34034           TrackBar.cs, VScrollBar.cs:
34035           - Streamlined Theme interfaces:
34036             * Each DrawXXX method for a control now is passed the object for
34037               the control to be drawn in order to allow accessing any state the
34038               theme might require
34039
34040             * ControlPaint methods for the theme now have a CP prefix to avoid
34041               name clashes with the Draw methods for controls
34042
34043             * Every control now retrieves it's DefaultSize from the current
34044             theme
34045
34046 2004-09-28 12:17  jackson
34047
34048         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
34049           drawing
34050
34051 2004-09-24 14:57  jackson
34052
34053         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
34054           Gives us a nice little performance boost.
34055
34056 2004-09-24 12:02  jackson
34057
34058         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
34059           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
34060           Control and supporting classes. Initial checkin
34061
34062 2004-09-23 13:08  jackson
34063
34064         * Form.cs: Temp build fixage
34065
34066 2004-09-23 01:39  ravindra
34067
34068         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
34069           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
34070           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
34071           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
34072           EventHandlers needed by ListView Control.
34073
34074 2004-09-22 14:12  pbartok
34075
34076         * ScrollableControl.cs:
34077           - Implemented DockPadding property
34078           - Implemented AutoScroll property
34079           - Implemented AutoScrollMargin property
34080           - Implemented AutoScrollMinSize property
34081           - Implemented AutoScrollPosition property
34082           - Implemented DisplayRectangle property (still incomplete)
34083           - Implemented CreateParams property
34084           - Implemented HScroll property
34085           - Implemented VScroll property
34086           - Implemented OnVisibleChanged property
34087
34088 2004-09-22 14:09  pbartok
34089
34090         * Form.cs:
34091           - Added Form.ControllCollection class
34092           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
34093             RemoveOwnedForm (still incomplete, missing on-top and common
34094             minimize/maximize behaviour)
34095           - Added StartPosition property (still incomplete, does not use when
34096             creating the form)
34097           - Added ShowDialog() methods (still incomplete, missing forcing the
34098             dialog modal)
34099
34100 2004-09-22 14:05  pbartok
34101
34102         * Application.cs:
34103           - Added message loop for modal dialogs
34104
34105 2004-09-22 14:02  pbartok
34106
34107         * GroupBox.cs:
34108           - Fixed wrong types for events
34109
34110 2004-09-22 14:00  pbartok
34111
34112         * Shortcut.cs, FormWindowState.cs:
34113           - Fixed wrong values
34114
34115 2004-09-22 12:01  jackson
34116
34117         * Control.cs: Text is never null
34118
34119 2004-09-20 22:14  pbartok
34120
34121         * XplatUIWin32.cs:
34122           - Fixed accessibility level for Idle handler
34123
34124 2004-09-20 18:54  jackson
34125
34126         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34127           XplatUIX11.cs: New message loop that uses poll so we don't get a
34128           busy loop
34129
34130 2004-09-17 10:43  pbartok
34131
34132         * ScrollBar.cs:
34133           - Fixed behaviour of arrow buttons. Now properly behaves like
34134             Buttons (and like Microsoft's scrollbar arrow buttons)
34135
34136 2004-09-17 10:14  pbartok
34137
34138         * ScrollBar.cs:
34139           - Added missing release of keyboard/mouse capture
34140
34141 2004-09-17 06:18  jordi
34142
34143         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
34144           Theme.cs: Very early menu support
34145
34146 2004-09-16 17:45  pbartok
34147
34148         * XplatUIWin32.cs:
34149           - Fixed sending a window to the front
34150           - Added overload for SetWindowPos to avoid casting
34151
34152 2004-09-16 17:44  pbartok
34153
34154         * Control.cs:
34155           - Added SendToBack and BringToFront methods
34156
34157 2004-09-16 07:00  ravindra
34158
34159         * Copyright: Added Novell URL.
34160
34161 2004-09-16 07:00  ravindra
34162
34163         * ToolBar.cs: Invalidate should be done before redrawing.
34164
34165 2004-09-15 21:19  ravindra
34166
34167         * ColumnHeaderStyle.cs: Enum for ListView Control.
34168
34169 2004-09-15 21:18  ravindra
34170
34171         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
34172           ListView Control.
34173
34174 2004-09-13 18:26  jackson
34175
34176         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
34177           properly
34178
34179 2004-09-13 18:13  jackson
34180
34181         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
34182           a second thread and post messages into the main threads message
34183           queue. This makes timing much more consistent. Both win2K and XP
34184           have a minimum timer value of 15 milliseconds, so we now do this
34185           too.
34186
34187 2004-09-13 15:18  pbartok
34188
34189         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34190           XplatUIX11.cs:
34191           - Added Z-Ordering methods
34192
34193 2004-09-13 10:56  pbartok
34194
34195         * Form.cs:
34196           - Fixed #region names
34197           - Moved properties and methods into their proper #regions
34198
34199 2004-09-13 10:51  pbartok
34200
34201         * Form.cs:
34202           - Added Accept and CancelButton properties
34203           - Added ProcessDialogKey() method
34204
34205 2004-09-13 08:18  pbartok
34206
34207         * IWindowTarget.cs:
34208           - Initial check-in
34209
34210 2004-09-10 21:50  pbartok
34211
34212         * Control.cs:
34213           - Added DoDragDrop() [incomplete]
34214           - Properly implemented 'Visible' handling
34215           - Added SetVisibleCore()
34216           - Implemented FindChildAtPoint()
34217           - Implemented GetContainerControl()
34218           - Implemented Hide()
34219
34220 2004-09-10 19:28  pbartok
34221
34222         * Control.cs:
34223           - Moved methods into their appropriate #regions
34224           - Reordered methods within regions alphabetically
34225
34226 2004-09-10 18:57  pbartok
34227
34228         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
34229           - Added method to retrieve text from window
34230
34231 2004-09-10 18:56  pbartok
34232
34233         * Control.cs:
34234           - Moved some internal functions into the internal region
34235           - Implemented FontHeight
34236           - Implemented RenderRightToLeft
34237           - Implemented ResizeRedraw
34238           - Implemented ShowFocusCues
34239           - Implemented ShowKeyboardCues
34240           - Implemented FromChildHandle
34241           - Implemented FromHandle
34242           - Implemented IsMnemonic
34243           - Implemented ReflectMessage
34244           - All public and protected Static Methods are now complete
34245
34246 2004-09-10 16:54  pbartok
34247
34248         * Control.cs:
34249           - Implemented remaining missing public instance properties
34250           - Alphabetized some out of order properties
34251
34252 2004-09-10 05:51  ravindra
34253
34254         * PictureBox.cs: Added a check for null image.
34255
34256 2004-09-10 00:59  jordi
34257
34258         * GroupBox.cs: remove cvs tag
34259
34260 2004-09-09 05:25  ravindra
34261
34262         * ToolBar.cs: Make redraw accessible from ToolBarButton.
34263
34264 2004-09-09 05:23  ravindra
34265
34266         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
34267           parent redraw.
34268
34269 2004-09-09 02:28  pbartok
34270
34271         * ThemeWin32Classic.cs:
34272           - Improve disabled string look
34273
34274 2004-09-09 01:15  jordi
34275
34276         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
34277           args and handler
34278
34279 2004-09-08 23:56  ravindra
34280
34281         * ItemBoundsPortion.cs: It's enum, not a class!
34282
34283 2004-09-08 23:47  ravindra
34284
34285         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
34286           Enums for Form.
34287
34288 2004-09-08 21:13  ravindra
34289
34290         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
34291           ListView control.
34292
34293 2004-09-08 21:03  ravindra
34294
34295         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
34296           avoid crash.
34297
34298 2004-09-08 21:01  ravindra
34299
34300         * ScrollableControl.cs: Removed unreachable code.
34301
34302 2004-09-08 06:45  jordi
34303
34304         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
34305
34306 2004-09-08 01:00  jackson
34307
34308         * XplatUIX11.cs: Only run the timers when updating the message
34309           queue. This effectively gives X messages a higher priority then
34310           timer messages. Timers still need love though
34311
34312 2004-09-07 14:01  jackson
34313
34314         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
34315           this for us and the handle is no longer valid.
34316
34317 2004-09-07 13:59  jackson
34318
34319         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
34320           loop that manages to not crash. TODO: Add poll and cleanup timers
34321
34322 2004-09-07 11:12  jordi
34323
34324         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
34325
34326 2004-09-07 03:40  jordi
34327
34328         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
34329           fixes, methods, multiple links
34330
34331 2004-09-06 06:55  jordi
34332
34333         * Control.cs: Caches ClientRectangle rectangle value
34334
34335 2004-09-05 02:03  jordi
34336
34337         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
34338           certain situations
34339
34340 2004-09-04 11:10  jordi
34341
34342         * Label.cs: Refresh when font changed
34343
34344 2004-09-02 16:24  pbartok
34345
34346         * Control.cs:
34347           - Added sanity check to creation of double buffer bitmap
34348
34349 2004-09-02 16:24  pbartok
34350
34351         * ButtonBase.cs:
34352           - Fixed selection of text color
34353           - Fixed handling of resize event; now properly recreates double
34354             buffering bitmap
34355           - Added missing assignment of TextAlignment
34356           - Added proper default for TextAlignment
34357
34358 2004-09-02 14:26  pbartok
34359
34360         * RadioButton.cs:
34361           - Added missing RadioButton.RadioButtonAccessibleObject class
34362
34363 2004-09-02 14:26  pbartok
34364
34365         * Control.cs:
34366           - Added missing Control.ControlAccessibleObject class
34367           - Started to implement Select()ion mechanisms, still very incomplete
34368
34369 2004-09-02 14:25  pbartok
34370
34371         * AccessibleObject.cs:
34372           - Added missing methods
34373
34374 2004-09-02 14:23  pbartok
34375
34376         * AccessibleNavigation.cs, AccessibleSelection.cs:
34377           - Initial check-in
34378
34379 2004-09-02 10:32  jordi
34380
34381         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
34382           pool for pens, brushes, and hatchbruses
34383
34384 2004-09-01 15:30  jackson
34385
34386         * StatusBar.cs: Fix typo
34387
34388 2004-09-01 14:44  pbartok
34389
34390         * RadioButton.cs:
34391           - Fixed state
34392
34393 2004-09-01 14:39  pbartok
34394
34395         * Button.cs, RadioButton.cs:
34396           - Functional initial check-in
34397
34398 2004-09-01 14:01  pbartok
34399
34400         * CheckBox.cs:
34401           - Added missing default
34402           - Added missing region mark
34403
34404 2004-09-01 09:10  jordi
34405
34406         * Label.cs: fixes method signatures, new methods, events, fixes
34407           autosize
34408
34409 2004-09-01 07:19  jordi
34410
34411         * Control.cs: Init string variables with an empty object
34412
34413 2004-09-01 04:20  jordi
34414
34415         * Control.cs: fires OnFontChanged event
34416
34417 2004-08-31 20:07  pbartok
34418
34419         * ButtonBase.cs:
34420           - Enabled display of strings
34421
34422 2004-08-31 20:05  pbartok
34423
34424         * Form.cs:
34425           - Added (partial) implementation of DialogResult; rest needs to be
34426             implemented when the modal loop code is done
34427
34428 2004-08-31 19:55  pbartok
34429
34430         * CheckBox.cs:
34431           - Fixed to match the removal of the needs_redraw concept
34432
34433 2004-08-31 19:55  pbartok
34434
34435         * ButtonBase.cs:
34436           - Removed the rather odd split between 'needs redraw' and redrawing
34437           - Now handles the events that require regeneration (ambient
34438             properties and size)
34439
34440 2004-08-31 19:41  pbartok
34441
34442         * Control.cs:
34443           - Added firing of BackColorChanged event
34444           - Added TopLevelControl property
34445           - Fixed handling of WM_ERASEBKGRND message
34446
34447 2004-08-31 12:49  pbartok
34448
34449         * ButtonBase.cs:
34450           - Removed debug
34451           - Minor fixes
34452
34453 2004-08-31 12:48  pbartok
34454
34455         * CheckBox.cs:
34456           - Finished (famous last words)
34457
34458 2004-08-31 04:35  jordi
34459
34460         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
34461           scrolling bugs, adds new methods
34462
34463 2004-08-30 14:42  pbartok
34464
34465         * CheckBox.cs:
34466           - Implemented CheckBox drawing code
34467
34468 2004-08-30 14:42  pbartok
34469
34470         * ButtonBase.cs:
34471           - Made Redraw() and CheckRedraw() virtual
34472           - Improved mouse up/down/move logic to properly track buttons
34473
34474 2004-08-30 09:44  pbartok
34475
34476         * CheckBox.cs:
34477           - Updated to fix broken build. Not complete yet.
34478
34479 2004-08-30 09:28  pbartok
34480
34481         * CheckState.cs:
34482           - Initial checkin
34483
34484 2004-08-30 09:17  pbartok
34485
34486         * Appearance.cs:
34487           - Initial check-in
34488
34489 2004-08-27 16:12  ravindra
34490
34491         * ToolBarButton.cs: Added TypeConverter attribute.
34492
34493 2004-08-27 16:07  ravindra
34494
34495         * ImageIndexConverter.cs: Implemented.
34496
34497 2004-08-27 14:17  pbartok
34498
34499         * Control.cs:
34500           - Removed unneeded stack vars
34501           - First attempt to fix sizing issues when layout is suspended
34502
34503 2004-08-25 15:35  jordi
34504
34505         * ScrollBar.cs: more fixes to scrollbar
34506
34507 2004-08-25 14:04  ravindra
34508
34509         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
34510           Added the missing divider code and grip for ToolBar Control.
34511
34512 2004-08-25 13:20  pbartok
34513
34514         * Control.cs:
34515           - Control now properly passes the ambient background color to child
34516             controls
34517
34518 2004-08-25 13:20  jordi
34519
34520         * ScrollBar.cs: small bug fix regarding bar position
34521
34522 2004-08-25 12:33  pbartok
34523
34524         * Timer.cs:
34525           - Now only calls SetTimer or KillTimer if the enabled state has
34526           changed
34527
34528 2004-08-25 12:33  pbartok
34529
34530         * XplatUIWin32.cs:
34531           - Fixed timer handling, now seems to work
34532           - Improved error message for window creation
34533
34534 2004-08-25 12:32  pbartok
34535
34536         * Control.cs:
34537           - Fixed generation of MouseUp message
34538
34539 2004-08-25 12:29  jordi
34540
34541         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
34542           and fixes for progressbar
34543
34544 2004-08-24 18:43  ravindra
34545
34546         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
34547           in ToolBar control.
34548
34549 2004-08-24 17:15  pbartok
34550
34551         * Panel.cs:
34552           - Added #region
34553           - Added missing events
34554           - Alphabetized
34555
34556 2004-08-24 17:14  pbartok
34557
34558         * StatusBar.cs, PictureBox.cs:
34559           - Now uses Control's CreateParams
34560
34561 2004-08-24 16:36  pbartok
34562
34563         * XplatUIX11.cs:
34564           - Fixed background color handling
34565           - Fixed sending of enter/leave events on a grab
34566
34567 2004-08-24 16:35  pbartok
34568
34569         * X11Structs.cs:
34570           - Refined definitions for CrossingEvent
34571
34572 2004-08-24 12:37  jordi
34573
34574         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
34575           formmating, methods signature, and adds missing events
34576
34577 2004-08-24 12:24  jordi
34578
34579         * Control.cs: fire OnEnabledChanged event
34580
34581 2004-08-24 11:17  pbartok
34582
34583         * XplatUIWin32.cs:
34584           - Implemented SetTimer() and KillTimer()
34585
34586 2004-08-24 11:16  pbartok
34587
34588         * XplatUIX11.cs:
34589           - Now uses Remove instead of Add to kill the timer
34590
34591 2004-08-24 10:16  jackson
34592
34593         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
34594           picture boxes in the theme now. Draw picture box borders and obey
34595           sizing modes
34596
34597 2004-08-24 05:49  jackson
34598
34599         * Timer.cs: Remove top secret debugging code
34600
34601 2004-08-24 05:34  jackson
34602
34603         * PictureBox.cs: Temp hack to make picture boxes draw their full
34604           image
34605
34606 2004-08-24 05:29  jackson
34607
34608         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34609           XplatUIX11.cs: Move timers to the driver level. On X they are
34610           queued by the driver and checked on idle.
34611
34612 2004-08-24 01:07  jackson
34613
34614         * XplatUIX11.cs: Use a queue for async messages instead of passing
34615           them as ClientMessages since that was totally broken. Also simply
34616           check for events and return an idle message if none are found. This
34617           gives us an idle handler, and prevents deadlocking when no messages
34618           are in the queue.
34619
34620 2004-08-23 18:19  ravindra
34621
34622         * XplatUIWin32.cs: Removed the unwanted destructor.
34623
34624 2004-08-23 17:27  pbartok
34625
34626         * ButtonBase.cs:
34627           - Finishing touches. Works now, just needs some optimizations.
34628
34629 2004-08-23 16:53  jordi
34630
34631         * ScrollBar.cs: small fix
34632
34633 2004-08-23 16:45  pbartok
34634
34635         * Application.cs:
34636           - Removed debug output
34637           - Simplifications
34638
34639 2004-08-23 16:43  jordi
34640
34641         * ScrollBar.cs: [no log message]
34642
34643 2004-08-23 16:10  pbartok
34644
34645         * Form.cs:
34646           - Fixed handling of WM_CLOSE message
34647           - Removed debug output
34648
34649 2004-08-23 16:09  pbartok
34650
34651         * Application.cs:
34652           - Added handling of Idle event
34653           - Added handling of form closing
34654           - Fixed reporting of MessageLoop property
34655           - Removed some unneeded code, should provide a bit of a speedup
34656
34657 2004-08-23 15:22  pbartok
34658
34659         * Control.cs:
34660           - Added InitLayout() method
34661           - Added code to properly perform layout when Anchor or Dock property
34662             is changed
34663           - Changed 'interpretation' of ResumeLayout. MS seems to have a
34664             LAMESPEC, tried to do it in a way that makes sense
34665
34666 2004-08-23 14:10  jordi
34667
34668         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
34669           properties and methods
34670
34671 2004-08-23 13:55  pbartok
34672
34673         * Control.cs:
34674           - Properly fixed Jordi's last fix
34675           - Now uses Cursor's Position property instead of calling XplatUI
34676           directly
34677
34678 2004-08-23 13:44  jordi
34679
34680         * PaintEventHandler.cs: Adding missing attribute
34681
34682 2004-08-23 13:39  pbartok
34683
34684         * Cursor.cs:
34685           - Implemented Position property
34686
34687 2004-08-23 13:39  pbartok
34688
34689         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
34690           - Added method to move mouse cursor
34691
34692 2004-08-23 13:39  pbartok
34693
34694         * XplatUIX11.cs:
34695           - Fixed setting of background color
34696           - Added method to move mouse cursor
34697
34698 2004-08-23 13:16  jordi
34699
34700         * Control.cs: avoids null exception
34701
34702 2004-08-22 17:46  jackson
34703
34704         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
34705           PictureBox
34706
34707 2004-08-22 17:40  jackson
34708
34709         * XplatUIX11.cs: Add some missing locks
34710
34711 2004-08-22 15:10  pbartok
34712
34713         * Control.cs, Form.cs:
34714           - Removed OverlappedWindow style from Control, instead it's default
34715             now is child
34716           - Made form windows OverlappedWindow by default
34717
34718 2004-08-22 13:34  jackson
34719
34720         * ScrollBar.cs: Update the position through the Value property so
34721           the OnValueChanged event is raised.
34722
34723 2004-08-22 12:04  pbartok
34724
34725         * SWF.csproj:
34726           - Added Cursor.cs and UserControl.cs
34727
34728 2004-08-22 12:03  pbartok
34729
34730         * Cursor.cs:
34731           - Started implementation, not usable yet
34732
34733 2004-08-22 12:00  pbartok
34734
34735         * UserControl.cs:
34736           - Implemented UserControl (complete)
34737
34738 2004-08-21 19:20  ravindra
34739
34740         * ToolBar.cs: Correcting the formatting mess of VS.NET.
34741
34742 2004-08-21 18:49  ravindra
34743
34744         * ToolBar.cs: Probably this completes the missing attributes in
34745           toolbar control.
34746
34747 2004-08-21 18:03  ravindra
34748
34749         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
34750           Fixed toolbar control signatures.
34751
34752 2004-08-21 16:32  pbartok
34753
34754         * LinkLabel.cs:
34755           - Signature Fixes
34756
34757 2004-08-21 16:30  pbartok
34758
34759         * Label.cs:
34760           - Signature fixes
34761
34762 2004-08-21 16:19  pbartok
34763
34764         * Control.cs, Label.cs:
34765           - Signature fixes
34766
34767 2004-08-21 15:57  pbartok
34768
34769         * ButtonBase.cs:
34770           - Added loads of debug output for development
34771           - Fixed typo in method name
34772
34773 2004-08-21 15:52  pbartok
34774
34775         * ToolBarButtonClickEventArgs.cs:
34776           - Added missing base class
34777
34778 2004-08-21 14:53  pbartok
34779
34780         * Control.cs:
34781           - Updated to match new GrabWindow signature
34782
34783 2004-08-21 14:51  pbartok
34784
34785         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34786           - Added method to get default display size
34787
34788 2004-08-21 14:23  pbartok
34789
34790         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34791           - Added method to query current grab state
34792           - Added argument to allow confining a grab to a window
34793
34794 2004-08-21 14:22  pbartok
34795
34796         * Keys.cs:
34797           - Added [Flags] attribute so that modifiers can be used in bitwise
34798           ops
34799
34800 2004-08-21 14:21  pbartok
34801
34802         * TrackBar.cs, ScrollBar.cs:
34803           - Replaced direct XplatUI calls with their Control counterpart
34804
34805 2004-08-21 13:32  pbartok
34806
34807         * Control.cs:
34808           - Implemented Created property
34809
34810 2004-08-21 13:28  pbartok
34811
34812         * Control.cs:
34813           - Implemented ContainsFocus
34814
34815 2004-08-21 13:26  pbartok
34816
34817         * Control.cs:
34818           - Implemented CausesValidation
34819
34820 2004-08-21 13:21  pbartok
34821
34822         * Control.cs:
34823           - Implemented CanFocus
34824           - Implemented CanSelect
34825           - Implemented Capture
34826
34827 2004-08-21 12:35  pbartok
34828
34829         * XplatUIWin32.cs:
34830           - Fixed bug with Async message handling
34831           - Implemented getting the ModifierKeys
34832
34833 2004-08-21 12:32  jackson
34834
34835         * AsyncMethodResult.cs: Make sure we have the mutex before we
34836           release it. Fixes BeginInvoke on windows
34837
34838 2004-08-21 11:31  pbartok
34839
34840         * XplatUIWin32.cs, XplatUIX11.cs:
34841           - Drivers now return proper mouse state
34842
34843 2004-08-21 10:54  jackson
34844
34845         * Control.cs: Implement EndInvoke
34846
34847 2004-08-21 10:48  jackson
34848
34849         * Timer.cs: Remove unneeded finalizer
34850
34851 2004-08-20 19:52  ravindra
34852
34853         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
34854           in mouse event handling in the ToolBar control.
34855
34856 2004-08-20 19:50  ravindra
34857
34858         * ImageList.cs: Changed draw method to use the arguments passed in
34859           to draw the image.
34860
34861 2004-08-20 18:58  pbartok
34862
34863         * XplatUIStructs.cs:
34864           - Added private message for async communication
34865
34866 2004-08-20 17:38  ravindra
34867
34868         * Control.cs: Made RightToLeft property virtual and removed a
34869           Console.WriteLine.
34870
34871 2004-08-20 14:39  jordi
34872
34873         * ThemeGtk.cs: use style_attach
34874
34875 2004-08-20 14:39  pbartok
34876
34877         * XplatUIWin32.cs:
34878           - Added jackson's Async code from X11 to Win32
34879
34880 2004-08-20 14:09  pbartok
34881
34882         * SWF.csproj:
34883           - Added all new files
34884
34885 2004-08-20 14:09  pbartok
34886
34887         * Control.cs:
34888           - Added call to set window background color
34889
34890 2004-08-20 14:03  pbartok
34891
34892         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
34893           - Added method for setting the window background
34894
34895 2004-08-20 14:02  pbartok
34896
34897         * XplatUIWin32.cs:
34898           - Added method for setting the background color
34899           - Added handling for erasing the window background
34900
34901 2004-08-20 13:45  jordi
34902
34903         * TrackBar.cs: fixes timer, new properties and methods
34904
34905 2004-08-20 13:34  jackson
34906
34907         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
34908           correct thread
34909
34910 2004-08-20 13:22  jackson
34911
34912         * Timer.cs: Timer Tick events are now handed through Controls Async
34913           mechanism so the callbacks are executed in the same thread as X
34914
34915 2004-08-20 13:19  jackson
34916
34917         * XplatUIDriver.cs: Expose functionality to send async messages
34918           through the driver
34919
34920 2004-08-20 13:18  jackson
34921
34922         * Control.cs: Implement Begininvoke
34923
34924 2004-08-20 13:14  jackson
34925
34926         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
34927           messages through the driver
34928
34929 2004-08-20 13:12  jackson
34930
34931         * XplatUIX11.cs: Lock before all X operations. Also added Async
34932           method functionality through XSendEvent
34933
34934 2004-08-20 13:11  jackson
34935
34936         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
34937           This will screw up on 64 bit systems)
34938
34939 2004-08-20 13:10  jackson
34940
34941         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
34942           Async messages through X/Win32
34943
34944 2004-08-19 19:39  pbartok
34945
34946         * XplatUIX11.cs:
34947           - Updated code to match new HandleData.DeviceContext type
34948
34949 2004-08-19 19:38  pbartok
34950
34951         * HandleData.cs:
34952           - Made DeviceContext a generic object to allow usage from various
34953           drivers
34954           - Added support for queueing Windows messages
34955
34956 2004-08-19 19:37  pbartok
34957
34958         * XplatUIWin32.cs:
34959           - Added generation of MouseEnter, MouseLeave and MouseHover events
34960           - Added cleanup on EndPaint
34961
34962 2004-08-19 19:17  pbartok
34963
34964         * Control.cs:
34965           - Added handling of WM_MOUSEHOVER
34966           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
34967           code
34968
34969 2004-08-19 18:55  jordi
34970
34971         * ThemeGtk.cs: fixes button order
34972
34973 2004-08-19 18:12  jordi
34974
34975         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
34976
34977 2004-08-19 17:09  pbartok
34978
34979         * Control.cs:
34980           - Added Right property
34981           - Added RightToLeft property
34982
34983 2004-08-19 16:27  jordi
34984
34985         * ThemeGtk.cs: experimental GTK theme support
34986
34987 2004-08-19 16:26  jordi
34988
34989         * ITheme.cs, Theme.cs: move themes from an interface to a class
34990
34991 2004-08-19 16:25  jordi
34992
34993         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
34994           theme enhancaments
34995
34996 2004-08-19 16:04  pbartok
34997
34998         * XplatUIX11.cs:
34999           - Added colormap basics
35000           - Added a way to re-initialize with a different display handle
35001           - Fixed setting of the window background color
35002           - Added various X11 imports related to colors and colormaps
35003
35004 2004-08-19 15:51  pbartok
35005
35006         * X11Structs.cs:
35007           - Removed packing hints (Paolo suggested this a while back)
35008           - fixed colormap type
35009           - Added default Atom types
35010           - Added Screen and color structs and enums
35011
35012 2004-08-19 15:39  pbartok
35013
35014         * ImageList.cs:
35015           - Added missing Draw() method
35016           - Added missing RecreateHandle event
35017
35018 2004-08-19 15:30  pbartok
35019
35020         * Form.cs:
35021           - Added handling of WM_CLOSE
35022
35023 2004-08-18 13:16  jordi
35024
35025         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
35026           a table
35027
35028 2004-08-18 09:56  jordi
35029
35030         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
35031
35032 2004-08-17 15:31  ravindra
35033
35034         * SWF.csproj: Updated project.
35035
35036 2004-08-17 15:25  pbartok
35037
35038         * Control.cs:
35039           - Drawing improvement; don't call UpdateBounds if we are not visible
35040             (or have been minimized)
35041
35042 2004-08-17 15:24  pbartok
35043
35044         * XplatUIWin32.cs:
35045           - Finished IsVisible
35046           - Added Win32GetWindowPlacement
35047
35048 2004-08-17 15:08  jackson
35049
35050         * Panel.cs: Initial checkin of the Panel
35051
35052 2004-08-17 14:25  pbartok
35053
35054         * Control.cs:
35055           - Fixed broken handling of default window sizes
35056
35057 2004-08-17 13:29  jackson
35058
35059         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
35060           has a large startup time.
35061
35062 2004-08-17 10:25  jackson
35063
35064         * HandleData.cs: union areas properly
35065
35066 2004-08-17 10:12  jackson
35067
35068         * HandleData.cs: union areas properly
35069
35070 2004-08-16 20:00  ravindra
35071
35072         * ToolBar.cs, ToolBarButton.cs: Added attributes.
35073
35074 2004-08-16 18:48  ravindra
35075
35076         * ToolBar.cs: Added attributes.
35077
35078 2004-08-16 17:17  ravindra
35079
35080         * SWF.csproj: Updated project.
35081
35082 2004-08-16 17:16  jackson
35083
35084         * XplatUIX11.cs: Check for more expose events before sending a
35085           WM_PAINT so they can all be grouped together. This makes dragging a
35086           window across another window redraw in a sane way.
35087
35088 2004-08-16 15:47  pbartok
35089
35090         * Control.cs:
35091           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
35092             support OnMouseEnter/Leave()
35093           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
35094             exposure handling
35095
35096 2004-08-16 15:46  pbartok
35097
35098         * XplatUIStructs.cs, XplatUIX11.cs:
35099           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
35100           OnMouseEnter/Leave()
35101
35102 2004-08-16 15:34  jackson
35103
35104         * XplatUIX11.cs: Group multiple expose events in HandleData, make
35105           sure messages get the message field set to WM_NULL if they are not
35106           handled.
35107
35108 2004-08-16 15:24  jackson
35109
35110         * HandleData.cs: HandleData is used for storing message information
35111           for window handles
35112
35113 2004-08-15 17:23  ravindra
35114
35115         * ColorDepth.cs: Added attribute.
35116
35117 2004-08-15 17:23  ravindra
35118
35119         * SWF.csproj: Updated project for ToolBar Control.
35120
35121 2004-08-15 17:20  ravindra
35122
35123         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
35124           control and also dos2unix format.
35125
35126 2004-08-15 17:13  ravindra
35127
35128         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
35129           ToolBarButtonClickEventArgs.cs,
35130           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
35131           ToolBarTextAlign.cs: First Implementation of ToolBar control.
35132
35133 2004-08-15 15:31  pbartok
35134
35135         * ButtonBase.cs:
35136           - First (mostly) working version
35137
35138 2004-08-13 16:15  pbartok
35139
35140         * Control.cs:
35141           - Fixed Anchor default
35142
35143 2004-08-13 15:43  pbartok
35144
35145         * Control.cs:
35146           - Changed GetCursorPos signature
35147
35148 2004-08-13 15:42  pbartok
35149
35150         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
35151           - Changed signature for GetCursorPos
35152
35153 2004-08-13 15:25  pbartok
35154
35155         * XplatUIX11.cs:
35156           - Cleanup
35157           - Fixed resizing/exposure handling
35158
35159 2004-08-13 15:22  jordi
35160
35161         * ThemeWin32Classic.cs: removes redundant code and fixes issues
35162           with tickposition
35163
35164 2004-08-13 14:55  jordi
35165
35166         * TrackBar.cs: change from wndproc to events
35167
35168 2004-08-13 13:00  jordi
35169
35170         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35171           XplatUIX11.cs: implements PointToClient (ScreenToClient)
35172
35173 2004-08-13 12:53  pbartok
35174
35175         * XplatUIWin32.cs:
35176           - Changed GetWindowPos to also provide client area size
35177           - Fixed broken prototypes for several win32 functions
35178
35179 2004-08-13 12:53  pbartok
35180
35181         * XplatUI.cs, XplatUIDriver.cs:
35182           - Changed GetWindowPos to also provide client area size
35183
35184 2004-08-13 12:52  pbartok
35185
35186         * XplatUIX11.cs:
35187           - Added generation of WM_POSCHANGED
35188           - Changed GetWindowPos to also provide client area size
35189
35190 2004-08-13 12:52  pbartok
35191
35192         * Control.cs:
35193           - Added Dispose() and destructor
35194           - Fixed resizing and bounds calculation
35195           - Fixed Layout
35196           - Added memory savings for invisible windows
35197
35198 2004-08-13 12:46  jordi
35199
35200         * TrackBar.cs: adds timer and grap window
35201
35202 2004-08-13 10:25  jackson
35203
35204         * Timer.cs: SWF Timer
35205
35206 2004-08-12 16:59  pbartok
35207
35208         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35209           - Implemented method to get current mouse position
35210
35211 2004-08-12 14:29  jordi
35212
35213         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
35214           enhancement, fix mouse problems, highli thumb, etc
35215
35216 2004-08-12 13:31  pbartok
35217
35218         * Control.cs:
35219           - Fixed Anchoring bugs
35220
35221 2004-08-12 13:01  jackson
35222
35223         * StatusBar.cs: Don't forget things
35224
35225 2004-08-12 12:54  jackson
35226
35227         * ThemeWin32Classic.cs: Handle owner draw status bars
35228
35229 2004-08-12 12:54  jackson
35230
35231         * StatusBar.cs: Implement missing properties, events, and methods.
35232           Handle mouse clicking
35233
35234 2004-08-12 10:19  jackson
35235
35236         * StatusBarPanelClickEventArgs.cs,
35237           StatusBarPanelClickEventHandler.cs: Classes for handling status
35238           bar panel click events
35239
35240 2004-08-12 10:10  jackson
35241
35242         * Control.cs: Add missing properties
35243
35244 2004-08-12 09:46  pbartok
35245
35246         * BindingsManagerBase.cs:
35247           - Name changed to BindingManagerBase.cs
35248
35249 2004-08-12 09:25  jordi
35250
35251         * ScrollableControl.cs: calls ctrlbase instead of exeception
35252
35253 2004-08-11 16:28  pbartok
35254
35255         * InputLanguageChangingEventArgs.cs:
35256           - Never check in before compiling. Fixes the last check-in
35257
35258 2004-08-11 16:26  pbartok
35259
35260         * InputLanguageChangingEventArgs.cs:
35261           - More signature fixes
35262
35263 2004-08-11 16:20  pbartok
35264
35265         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
35266           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
35267           ImageListStreamer.cs, InputLanguage.cs,
35268           InputLanguageChangedEventArgs.cs,
35269           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
35270           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
35271           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
35272           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35273           - Signature fixes
35274
35275 2004-08-11 16:16  pbartok
35276
35277         * Application.cs:
35278           - Fixed Signature
35279           - Added .Net 1.1 method
35280
35281 2004-08-11 15:25  pbartok
35282
35283         * SWF.csproj:
35284           - Fixed BindingManagerBase.cs filename
35285
35286 2004-08-11 15:22  pbartok
35287
35288         * BindingManagerBase.cs:
35289           - Was checked in with wrong filename
35290
35291 2004-08-11 14:50  pbartok
35292
35293         * SWF.csproj:
35294           - Updated
35295
35296 2004-08-11 13:41  jordi
35297
35298         * XplatUIWin32.cs: Fixes ClientRect
35299
35300 2004-08-11 13:19  pbartok
35301
35302         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35303           XplatUIX11.cs:
35304           - We had SetWindowPos and MoveWindow to set window positions and
35305             size, removed MoveWindow. We have GetWindowPos, so it made sense to
35306             keep SetWindowPos as matching counterpart
35307           - Added some X11 sanity checking
35308
35309 2004-08-11 12:59  pbartok
35310
35311         * Control.cs:
35312           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
35313             (It seems that SetBounds is just a front for SetBoundsCore and
35314              SetBoundsCore updates the underlying window system and
35315              UpdateBounds is responsible for updating the variables associated
35316              with the Control and sending the events)
35317           - Major cleanup of Size handling; we now have two sizes, client_size
35318             and bounds. Bounds defines the window with decorations, client_size
35319             without them.
35320
35321 2004-08-11 12:55  pbartok
35322
35323         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35324           - Added method to calculate difference between decorated window and
35325             raw client area
35326
35327 2004-08-11 12:54  pbartok
35328
35329         * Label.cs:
35330           - Forcing redraw on resize
35331
35332 2004-08-11 11:43  pbartok
35333
35334         * ImageList.cs:
35335           - Removed disposing of the actual images when the list is disposed
35336
35337 2004-08-11 09:13  pbartok
35338
35339         * Control.cs:
35340           - Now properly reparents windows
35341
35342 2004-08-11 08:37  pbartok
35343
35344         * Control.cs:
35345           - Duh!
35346
35347 2004-08-11 07:47  pbartok
35348
35349         * Control.cs:
35350           - Rewrote the collection stuff. Might not be as fast now, not
35351             keeping the number of children around and accessible directly, but
35352             it's more straightforward
35353
35354 2004-08-11 07:44  pbartok
35355
35356         * AccessibleObject.cs:
35357           - Fixed to match ControlCollection rewrite
35358
35359 2004-08-11 07:43  pbartok
35360
35361         * ImageList.cs:
35362           - Added missing creation of the collection list
35363
35364 2004-08-10 20:08  jackson
35365
35366         * StatusBar.cs: Get the paint message from WndProc
35367
35368 2004-08-10 19:31  jackson
35369
35370         * ThemeWin32Classic.cs: Create Brushes as little as possible
35371
35372 2004-08-10 19:20  jackson
35373
35374         * UICues.cs: Add Flags attribute
35375
35376 2004-08-10 19:19  jackson
35377
35378         * StatusBarPanel.cs: Signature cleanup
35379
35380 2004-08-10 19:10  jackson
35381
35382         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
35383           Initial implementation of status bar item drawing
35384
35385 2004-08-10 17:27  jordi
35386
35387         * TrackBar.cs: add missing methods, properties, and restructure to
35388           hide extra ones
35389
35390 2004-08-10 16:24  jackson
35391
35392         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
35393           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
35394           attribute
35395
35396 2004-08-10 13:21  jordi
35397
35398         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
35399           enhancements and standarize on win colors defaults
35400
35401 2004-08-10 12:52  jackson
35402
35403         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
35404           ThemeWin32Classic.cs: Implement DrawItem functionality
35405
35406 2004-08-10 12:47  jordi
35407
35408         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
35409
35410 2004-08-10 12:32  jordi
35411
35412         * Control.cs: throw ontextchange event
35413
35414 2004-08-10 11:43  pbartok
35415
35416         * Control.cs:
35417           - Added more to the still unfinished Dock/Anchor layout code
35418
35419 2004-08-10 11:39  pbartok
35420
35421         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
35422           - Added GetWindowPos method
35423
35424 2004-08-10 11:36  pbartok
35425
35426         * XplatUIWin32.cs:
35427           - Implemented several methods
35428
35429 2004-08-10 09:47  jackson
35430
35431         * TrackBar.cs: Allow control to handle buffering
35432
35433 2004-08-10 09:41  jackson
35434
35435         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
35436
35437 2004-08-10 09:24  jackson
35438
35439         * Label.cs, LinkLabel.cs: Let Control handle buffering.
35440
35441 2004-08-10 09:09  jackson
35442
35443         * StatusBar.cs: Let Control handle all the buffering.
35444
35445 2004-08-10 09:08  jackson
35446
35447         * Control.cs: Control will now handle the buffering code, so each
35448           control does not have to implement this.
35449
35450 2004-08-10 08:34  jackson
35451
35452         * XplatUIDriver.cs: Use default colors from the theme
35453
35454 2004-08-09 17:12  pbartok
35455
35456         * ImageList.cs:
35457           - Fixed several bugs Ravindra pointed out
35458
35459 2004-08-09 16:11  pbartok
35460
35461         * Control.cs:
35462           - Added incomplete dock layout code
35463           - Added support for mouse wheel
35464
35465 2004-08-09 16:09  pbartok
35466
35467         * XplatUIX11.cs:
35468           - Added handling for middle and right mousebutton
35469           - Added handling for mouse wheel
35470           - Added handling for key state and mouse state and position
35471           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
35472           messages
35473
35474 2004-08-09 15:40  jackson
35475
35476         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
35477           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
35478           checkin
35479
35480 2004-08-09 15:37  jackson
35481
35482         * StatusBar.cs: Initial implementation of StatusBar
35483
35484 2004-08-09 15:36  jackson
35485
35486         * ITheme.cs: Add support for drawing status bar and getting status
35487           bar item sizes
35488
35489 2004-08-09 15:35  pbartok
35490
35491         * MouseButtons.cs:
35492           - Fixed values
35493
35494 2004-08-09 15:34  jackson
35495
35496         * ThemeWin32Classic.cs: Add support for drawing status bar and get
35497           status bar item sizes
35498
35499 2004-08-09 15:21  jackson
35500
35501         * ThemeWin32Classic.cs: Use known colors for default control
35502           colours
35503
35504 2004-08-09 15:12  jackson
35505
35506         * ThemeWin32Classic.cs: Make the default font static, it is static
35507           in control so this doesn't change functionality and creating fonts
35508           is sloooooow.
35509
35510 2004-08-09 14:56  pbartok
35511
35512         * X11Structs.cs:
35513           - Added GrabMode enum
35514
35515 2004-08-09 14:55  pbartok
35516
35517         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35518           - Removed Run method, was only required for initial development
35519
35520 2004-08-09 14:51  pbartok
35521
35522         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
35523           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
35524           capture
35525
35526 2004-08-09 13:48  pbartok
35527
35528         * XplatUIX11.cs:
35529           - Fixed default sizing for child windows
35530
35531 2004-08-09 12:56  pbartok
35532
35533         * XplatUIX11.cs:
35534           - Added generation of WM_DESTROY message
35535           - Added handling of window manager induced shutdown
35536
35537 2004-08-09 11:31  jackson
35538
35539         * ThemeWin32Classic.cs: New names for control properties
35540
35541 2004-08-09 11:25  jackson
35542
35543         * Control.cs: Use new color names
35544
35545 2004-08-09 11:02  jackson
35546
35547         * XplatUI.cs: Get default window properties from the theme
35548
35549 2004-08-09 11:01  jackson
35550
35551         * ITheme.cs: The theme engine now controls default window
35552           properties
35553
35554 2004-08-09 11:00  jackson
35555
35556         * ThemeWin32Classic.cs: Add default window color properties
35557
35558 2004-08-09 10:17  jackson
35559
35560         * ThemeWin32Classic.cs: Use correct default back color
35561
35562 2004-08-09 10:05  jackson
35563
35564         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
35565           the theme now.
35566
35567 2004-08-09 09:56  jackson
35568
35569         * XplatUI.cs: Remove defaults, these are handled by the theme now.
35570
35571 2004-08-09 09:54  jackson
35572
35573         * Control.cs: Get default properties from the theme.
35574
35575 2004-08-09 09:53  jackson
35576
35577         * ITheme.cs: Themes now handle default control properties
35578
35579 2004-08-09 09:53  jackson
35580
35581         * ThemeWin32Classic.cs: Themes now handle default control
35582           properties so coloring will be consistent
35583
35584 2004-08-08 16:54  jordi
35585
35586         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
35587
35588 2004-08-08 15:08  jordi
35589
35590         * XplatUIX11.cs: fixes keyboard crash
35591
35592 2004-08-08 13:47  jordi
35593
35594         * Label.cs: add cvs header info
35595
35596 2004-08-08 12:09  jackson
35597
35598         * ThemeWin32Classic.cs: Add pen_buttonface
35599
35600 2004-08-08 11:52  jordi
35601
35602         * Label.cs, LinkLabel.cs: [no log message]
35603
35604 2004-08-08 11:34  jordi
35605
35606         * ThemeWin32Classic.cs: Use Windows Standard Colours
35607
35608 2004-08-07 17:32  jordi
35609
35610         * TrackBar.cs: throw exceptions of invalid enums values
35611
35612 2004-08-07 17:31  jordi
35613
35614         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
35615           draw method name
35616
35617 2004-08-07 16:56  jackson
35618
35619         * HorizontalAlignment.cs: Initial checkin
35620
35621 2004-08-07 13:16  jordi
35622
35623         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
35624           methods
35625
35626 2004-08-07 13:05  jordi
35627
35628         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
35629           GetSysColor defines
35630
35631 2004-08-06 18:01  pbartok
35632
35633         * ThemeWin32Classic.cs:
35634           - Fixed some rounding issues with float/int
35635
35636 2004-08-06 18:00  jackson
35637
35638         * DockStyle.cs, AnchorStyles.cs:
35639
35640                   Add flags and serializable attributes.
35641
35642 2004-08-06 17:46  pbartok
35643
35644         * XplatUIX11.cs:
35645           - Implemented GetParent
35646
35647 2004-08-06 17:18  pbartok
35648
35649         * TrackBar.cs:
35650           - Fixed some rounding issues with float/int
35651
35652 2004-08-06 17:17  pbartok
35653
35654         * X11Structs.cs, XplatUIX11.cs:
35655           - Fixed Refresh and Invalidate
35656
35657 2004-08-06 15:30  pbartok
35658
35659         * Control.cs, X11Structs.cs, XplatUIX11.cs:
35660           - Fixed recursive loop when resizing
35661           - Improved/fixed redrawing on expose messages
35662
35663 2004-08-06 09:53  jordi
35664
35665         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
35666           keyboard navigation
35667
35668 2004-08-06 08:02  pbartok
35669
35670         * X11Structs.cs, XplatUIX11.cs:
35671           - Fixed reparenting
35672           - Fixed window border creation
35673
35674 2004-08-05 15:38  pbartok
35675
35676         * XplatUIX11.cs:
35677           - Attempted fix for reparenting problems
35678
35679 2004-08-04 15:14  pbartok
35680
35681         * Control.cs:
35682           - Fixed Invalidation bug (calculated wrong client area)
35683           - Added ClientSize setter
35684
35685 2004-08-04 15:13  pbartok
35686
35687         * Form.cs:
35688           - Added AutoScale properties
35689
35690 2004-08-04 15:13  pbartok
35691
35692         * SWF.csproj:
35693           - Added latest files
35694
35695 2004-08-04 14:11  pbartok
35696
35697         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
35698           XplatUIX11.cs:
35699           - Added Invalidate handling
35700
35701 2004-08-03 17:09  jordi
35702
35703         * XplatUIDriver.cs: fixes spelling mistake
35704
35705 2004-07-27 09:53  jordi
35706
35707         * TrackBar.cs: fixes trackbar events, def classname, methods
35708           signature
35709
35710 2004-07-27 09:29  jordi
35711
35712         * ScrollBar.cs: fixes scrollbar events
35713
35714 2004-07-27 04:38  jordi
35715
35716         * Control.cs: changes to be able to run winforms samples
35717
35718 2004-07-26 11:42  jordi
35719
35720         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
35721           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
35722
35723 2004-07-26 05:41  jordi
35724
35725         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
35726           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
35727           implementation
35728
35729 2004-07-22 09:22  jordi
35730
35731         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
35732           check link overlapping, implement events, and fixes
35733
35734 2004-07-21 10:28  jordi
35735
35736         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
35737
35738 2004-07-21 10:19  jordi
35739
35740         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
35741           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
35742           LinkLabelLinkClickedEventArgs.cs,
35743           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
35744           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
35745           implementation
35746
35747 2004-07-19 13:09  jordi
35748
35749         * Control.cs, Label.cs: label control re-written: added missing
35750           functionlity, events, and properties
35751
35752 2004-07-19 10:49  jordi
35753
35754         * Control.cs: fixes SetBounds logic
35755
35756 2004-07-19 01:29  jordi
35757
35758         * Control.cs: Call RefreshWindow only if the window has created
35759
35760 2004-07-15 14:05  pbartok
35761
35762         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
35763           - Implemented ImageList and ImageList.ImageCollection classes
35764           - Added ColorDepth enumeration
35765           - Updated SWF VS.Net project
35766
35767 2004-07-15 11:06  jordi
35768
35769         * XplatUIStructs.cs: added MsgButons enum
35770
35771 2004-07-15 11:03  jordi
35772
35773         * Control.cs: added basic mouse handeling events
35774
35775 2004-07-15 03:38  jordi
35776
35777         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
35778           Vertical TrackBar control implementation
35779
35780 2004-07-13 09:33  jordi
35781
35782         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
35783
35784 2004-07-13 09:31  jordi
35785
35786         * Control.cs, Form.cs: commit: new properties and fixes form size
35787           problems
35788
35789 2004-07-09 14:13  miguel
35790
35791         * ProgressBar.cs: Spelling
35792
35793 2004-07-09 11:25  pbartok
35794
35795         * ProgressBar.cs:
35796           - Removed usage of Rectangle for drawing. Miguel pointed out it's
35797           faster
35798
35799 2004-07-09 11:17  miguel
35800
35801         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
35802
35803                 * ProgressBar.cs: Fixed spelling for `block'
35804
35805                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
35806                 style guidelines.
35807
35808                 Avoid using the += on rect.X, that exposed a bug in the compiler.
35809
35810 2004-07-08 23:21  pbartok
35811
35812         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
35813           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
35814           BaseCollection.cs, Binding.cs, BindingContext.cs,
35815           BindingMemberInfo.cs, BindingsCollection.cs,
35816           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
35817           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
35818           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
35819           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
35820           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
35821           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
35822           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
35823           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
35824           FrameStyle.cs, GiveFeedbackEventArgs.cs,
35825           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
35826           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
35827           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
35828           InputLanguageChangedEventArgs.cs,
35829           InputLanguageChangedEventHandler.cs,
35830           InputLanguageChangingEventArgs.cs,
35831           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
35832           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
35833           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
35834           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
35835           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
35836           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
35837           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
35838           QueryAccessibilityHelpEventArgs.cs,
35839           QueryAccessibilityHelpEventHandler.cs,
35840           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
35841           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
35842           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
35843           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
35844           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
35845           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
35846           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
35847           XplatUIX11.cs, lang.cs:
35848           - Initial check-in
35849
35850