2007-01-03 Rolf Bjarne Kvinge <RKvinge@novell.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2
3         * MonthCalendar.cs: Added Click and DoubleClick events again,
4         but this time they only hide Control's Click and DoubleClick.
5         
6 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
7
8         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
9         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
10
11 2007-01-02  Jackson Harper  <jackson@ximian.com>
12
13         * TextBoxBase.cs: We move the caret with the split now, so we
14         don't need to explicitly move the caret after splitting.  This
15         fixes the caret bumping down an extra line on Enter.
16
17 2007-01-02  Miguel de Icaza  <miguel@novell.com>
18
19         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
20         2.72). 
21
22         * ScrollableControl.cs: Add Scroll event.
23
24 2007-01-02  Mike Kestner  <mkestner@novell.com>
25
26         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
27         to fix all hdr height padding codepaths.  Fixes #80207.
28
29 2007-01-02  Chris Toshok  <toshok@ximian.com>
30
31         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
32         setting it to the Control defaults anyway, and it being after the
33         Dock set was screwing up layout.
34         (set_Dock): don't short circuit out of setting base.Dock.  Also,
35         no need to call UpdateStatusBar here, as it'll be re-layed out if
36         it needs to be.
37
38 2007-01-02  Mike Kestner  <mkestner@novell.com>
39
40         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
41         to header height for width == -1. Fixes the rest of #80207.
42
43 2007-01-02  Mike Kestner  <mkestner@novell.com>
44
45         * ListView.cs: rework the mouse event forwarding everaldo added
46         to translate the coordinates to the parent control not
47         raise the parent events until after we've done our work. Hover
48         needs more work, in the case where HoverSelection is on, because
49         the item control receives more than one MouseHover per Enter
50         event, so we need to ensure only the "first" hover gets forwarded.
51         Opening a minor bug for that.
52
53 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
54
55         * CheckedListBox.cs: Fixed SelectionMode to match MS.
56         * ListControl.cs: Implemented AllowSelection property. Removed extra
57         tabs.
58         * ListBox.cs: Implemented AllowSelection property.
59
60 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
61
62         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
63         SelectedItem, it prevent for errors when you must disable item
64         before perform click. Fixes #80409.
65
66 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
67
68         * MenuAPI.cs: Prevent second level and beyond submenus to close
69         until first level when move out side of popup.
70         
71 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
72
73         * MenuAPI.cs:
74         - Down submenu positin in three pixels.
75         - Closes sub menu when mouse leaves from menu. Fixes #80402.
76
77 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
78
79         * ThemeWin32Classic.cs:
80         - Fix popup menu size adding one pixel on the top.
81         - Down menu item border from two to one to mimic Win32.
82         - Some source identation fixes. 
83
84 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
85
86         * ThemeWin32Classic.cs: Use float numbers to calculate size and
87         position of menu arrows, it fix wrong arrow size.
88
89 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
90
91         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
92         instead of line, it simplify draw operation and fix it using 3D
93         borders to mimic Win32.
94
95 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
96
97         * StatusStrip.cs: Add implementation of the sizing grip.
98
99         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
100         StatusStrip rendering.
101
102 2006-12-31  Chris Toshok  <toshok@ximian.com>
103
104         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
105         override the layout style (anchor/dock) of the control.  assign to
106         Dock instead.  Fixes bug #80416.
107
108         * ToolStrip.cs: same.
109
110 2006-12-31  Andreia Gaita  <avidigal@novell.com>
111
112         * ContainerControl.cs: Use ContainerSelected flag to check if 
113         a Container is directly selected, or if Select is called on a 
114         non-container. If a container is directly selected, focus events 
115         should not be raised.
116         Apply #80411 patch to throw exception on set_ActiveControl if 
117         control is the same as the current one.
118         
119         * Control.cs: Use ContainerSelected flag (see above).
120         Add invalidation check to raise event but not invalidate if 
121         dimensions are 0.       
122         Apply #80411 patch.
123         
124
125 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
126
127         * MenuAPI.cs: After click, dont close popup menu when menu is
128         ContextMenu. Fixes #80399.
129
130 2006-12-30  Chris Toshok  <toshok@ximian.com>
131
132         * ContainerControl.cs: make sure we throw the exception if the
133         container control doesn't contain the control we're setting
134         ActiveControl to.
135
136 2006-12-30  Chris Toshok  <toshok@ximian.com>
137
138         * Control.cs (SetTopLevel): fix the exception raised by
139         SetTopLevel for child controls.
140         (set_Anchor): call UpdateDistances when setting the anchor type.
141         This fixes bug #80336.
142
143 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
144
145         * Theme.cs: For now, revert back to 8pt font.
146
147 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
148
149         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
150         Fixes #80395.
151
152 2006-12-29  Chris Toshok  <toshok@ximian.com>
153
154         * Control.cs: reorder the code in OnResize to give the same event
155         ordering as MS.
156
157 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
158
159         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
160         TileHorizontally and TileVertically.
161         
162 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
163
164         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
165         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
166         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
167         Corrected copyright and email adress.
168
169 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
170
171         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
172         of Exception in FullPath property if no TreeView is associated with
173         the TreeNode.
174
175 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
176
177         * Theme.cs: Marked default_font as private, and initialize it in ctor
178         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
179         on 2.0 profile.
180         * ThemeGtk.cs: Removed default_font intialization.
181         * ThemeWin32Classic.cs: Removed default_font initialization.
182
183 2006-12-28  Chris Toshok  <toshok@ximian.com>
184
185         * Control.cs: fix a couple of place where we were creating handles
186         more aggressively than we should be.  Fixes ControlRefresh unit
187         tests.
188
189 2006-12-28  Chris Toshok  <toshok@ximian.com>
190
191         * Control.cs: contrary to what the comment said, Control.Dock does
192         not supercede Control.Anchor - the last one you assign to decides
193         the layout behavior.  so we need to keep track of which was the
194         last set.  Also, fix some of the affected property arguments in
195         PerformLayout calls, and remove an redundant parent.PerformLayout
196         call in OnResized.
197
198         Add a VisibleInternal property, which returns is_visible.  We
199         can/should get rid of all the usage of this field elsewhere.
200
201 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
202         
203         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
204         control style, not DoubleBuffer. Added UseDoubleBuffering property
205         that indicates whether doublebuffering is enabled and supported.
206         (comment from and code based on Gert Driesen's patch in #80324).
207         Fixes #80324.
208
209 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
210         
211         * Control.cs: Fixed a NRE.
212
213 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
214
215         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
216         for 2.0.
217
218 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
219
220         * Control.cs: Rewrote double buffering, now a seperate
221         class handles all the buffering, no Graphics is disposed of
222         until the painting is finished (earlier implementation 
223         would crash if the control was resized in the OnPaint, 
224         since it would cause the double buffer to be recreated
225         and the old one disposed), a separate Graphics is 
226         created for every paint (MS behaviour and anyways the state
227         of the Graphics would have to be saved and restored otherwise)
228         
229         * XplatUIDriver.cs: 
230         * XplatUIX11.cs:
231         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
232         so that we can get the graphics for the back buffer without
233         having to create a new one and remove the offscreen_dc parameter
234         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
235         
236 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
237
238         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
239         Also make virtual all the key-related methods.
240
241         * ListViewItem.cs: Make virtual the key related methods for
242         ListViewSubItemCollection.
243
244 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
245
246         * ListView.cs:
247         * ListViewItem.cs:
248         * ThemeWin32Classic.cs:
249         * Theme.cs: Initial support for Tile view in ListView,
250         as well as the implementation of the required bits for it (Item
251         and Subitem).
252
253 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
254
255         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
256         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
257         Provide useful exception messages.
258
259 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
260
261         * TrackBar.cs: Remove a warning.
262         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
263         when used by DateTimePicker, fixes #80287. This also requires that 
264         MonthCalendar implements it's own drawing for the yearly updown control,
265         otherwise the Capture tracking would be too complicated. Removed the Click 
266         and DoubleClick events (according to comments they were hiding the base class
267         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
268         raise these events, not that they cannot be raised. It is possible to raise 
269         them by calling OnClick and OnDoubleClick). Added two internal fields in 
270         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
271         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
272         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
273         event, no longer needed.
274         
275 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
276
277         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
278         true if new value differs from current value.
279
280 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
281
282         * Control.cs: ControlCollection.Count must be public. Fixed build of
283         unit tests.
284
285 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
286
287         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
288
289 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
290
291         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
292
293 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
294
295         * Control.cs: Invalidates control including when Width and Height is 
296         equal zero or is not visible, only Paint event must be care about 
297         this. Fixes #79913.
298
299 2006-12-26  Chris Toshok  <toshok@ximian.com>
300
301         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
302         more corcompare work.
303
304         * DataGridView.cs: fix compiler warning.
305
306         * ColumnHeader.cs: some corcompare work, and also take the
307         opportunity to make the internal fields private.
308
309         * ListView.cs: fix the fallout from the above field change.
310
311 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
312
313         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
314         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
315         ToolStripTextBox.cs: Fixes to events and corcompare.
316
317 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
318
319         * ListView.cs: Call owner.OnMousexx event to propagate events from
320         item to ListView. Fixes #80367.
321
322 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
323
324         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
325         if value is less than one. ItemHeight should not be set to a value
326         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
327         Removed extra tabs.
328
329 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
330
331         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
332         * ToolStripStatusLabel.cs: Add Spring for Moma.
333
334 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
335
336         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
337         Fixed code formatting. Removed debug code.
338         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
339
340 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
341
342         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
343         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
344         ArgumentOutOfRangeException if ColumnCount is negative. In 
345         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
346         less than 4 or higher than 32768.
347         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
348         Fixed FormatProvider to return CurrentCulture unless explicitly set.
349         Fixed IsFormatProviderDefault to return true if FormatProvider has
350         not been explicitly set.
351
352 2006-12-25  Chris Toshok  <toshok@ximian.com>
353
354         * Application.cs: add a couple of 2.0 events.
355
356 2006-12-25  Chris Toshok  <toshok@ximian.com>
357
358         * Control.cs: fix compiler warning.
359
360         * AxHost.cs: corcompare fixes.
361
362         * ApplicationContext.cs: corcompare fixes.
363
364 2006-12-25  Chris Toshok  <toshok@ximian.com>
365
366         * Control.cs: only update dist_right/dist_bottom if the
367         width/height is > 0.  this fixes anchored controls being resized
368         smaller until they disappear and then resized larger again.
369
370 2006-12-25  Chris Toshok  <toshok@ximian.com>
371
372         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
373         since they're nothing more than X/Left and Y/Top, respectively.
374
375         Also, move back to a per-control Bitmap/Graphics for
376         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
377         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
378         Height.
379
380 2006-12-25  Miguel de Icaza  <miguel@novell.com>
381
382         * MessageBox.cs: Implemented overload that takes a new "bool
383         displayHelpButton" by adding a new internal field "show_help".
384         When clicked this will raise the HelpRequested on the owner or the
385         main form. 
386
387         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
388         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
389
390         * ListView.cs: Add support ColumnWidthChanged and
391         ColumnWidthChanging. 
392
393         Add support for ColumnReordered event.
394         (ReorderColumn): Add NET_2_0 specific support for cancelling the
395         reorder.
396
397         Very nice codebase!
398
399         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
400
401         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
402
403 2006-12-24  Chris Toshok  <toshok@ximian.com>
404
405         * GridTablesFactory.cs: 2.0 corcompare work.
406
407         * ToolStripContainer.cs: add "override" to
408         ContextMenuStripChanged, and remove the local event object.
409
410         * ToolStripDropDown.cs: same with a couple properties.
411
412         * ToolStripPanel.cs: same with AutoSizeChanged event.
413
414         * TextBoxBase.cs: add "override" to AutoSizeChanged.
415
416         * Form.cs: add the remaining 2.0 events, and do some corcompare
417         attribute work.
418
419         * DateTimePicker.cs: add "new" to padding.
420
421         * ButtonBase.cs: use Control's use_compatible_text_rendering.
422
423         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
424
425         * DataGridView.cs: PaddingChanged is overridden.
426
427 2006-12-24  Chris Toshok  <toshok@ximian.com>
428
429         * Control.cs: corecompare work here too.
430
431         * DataGridViewElement.cs, DataGridView.cs,
432         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
433         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
434         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
435         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
436         work.
437
438 2006-12-24  Miguel de Icaza  <miguel@novell.com>
439
440         * Control.cs: Switched the error message on the console for a
441         todo.  A review of the code will have to cope with this anyways
442         (since its a large feature, it is in our radar) and it was
443         producing too much output when running PDN.
444
445         * ToolStripComboBox.cs: Set the text when the SelectedIndex
446         changes.  Applications depend on this (PDN 2.72)
447
448 2006-12-23  Chris Toshok  <toshok@ximian.com>
449
450         * TableLayoutSettings.cs: finish up the corcompare work for this
451         class.
452
453 2006-12-23  Chris Toshok  <toshok@ximian.com>
454
455         * Control.cs: make SetImplicitBounds internal, do some futzing
456         with LayoutEngine so that it's available in 1.1, and remove the
457         entire duplicated code mess from PerformLayout.  Use
458         System.Windows.Forms.Layout.DefaultLayout instead.
459
460         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
461
462 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
463
464         * Form.cs: Add MainMenuStrip property.
465
466 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
467
468         * Control.cs: Add ContextMenuStrip property and implementation.
469         Fix ContextMenu implementation to show menu centered on control when
470         activated using the keyboard instead of showing at screen (0,0).
471
472         * ToolStripDropDown.cs: Fix needed overload of Show ().
473
474 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
475
476         * Menu.cs: Name property added for 2.0 profile.
477         
478 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
479
480         * Menu.cs: Update information about FindMenuItem, method to be
481         implemented soon.
482
483 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
484
485         * MenuAPI.cs: When deselect items deselect also selected subitems.
486         
487 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
488
489         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
490         FindSubItemByCoord to found itens that is not active, also an
491         cheking added to FindSubItemByCoord to search for items only 
492         in visible popup windows. Fixes #80274.
493
494 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
495
496         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
497         internal property, it be care about change ExStyle. 
498
499 2006-12-22  Andreia Gaita  <avidigal@novell.com>
500
501         * ContainerControl.cs: set activeControl for parent forms up the 
502         tree when the new activecontrol is a container.
503         When validating the active control, if it is a container, also
504         raise up the validation for it's active control. Fixes #80280
505         
506         * Control.cs: Add internal property flag and check to prevent
507         Focus events from getting raised when Select() is called for
508         a ContainerControl. There are still too many focus events being
509         raised at the moment though.
510         Cleaned up the code a bit.
511
512 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
513
514         * Control.cs: Added all missing 2.0 events.and
515         fixed a couple of corcompare issues.
516         * TrackBar.cs: Implemented missing 2.0 bits.
517         * MonthCalendar.cs, 
518         * DateTimePicker.cs, 
519         * MdiClient.cs: Fixed some corcompare issues.
520
521 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
522
523         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
524         SplitterPanel.cs: corecompare work.
525
526 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
527
528         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
529         Clean up warnings for BackgroundImageChanged and PaddingChanged
530         events now that they are implemented in Control.cs.
531
532 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
533
534         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
535         
536         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
537         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
538         of TableLayoutPanel and supporting cast.
539
540 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
541
542         * XplatUIWin32.cs: 
543         - GrabWindow now confines the mouse pointer to the confine window.
544         - Added Win32ClipCursor and Win32GetClipCursor.
545
546         * Control.cs: 
547         - Added CaptureWithConfine to be able to capture and confine 
548         mouse pointer.
549         
550         * InternalWindowManager.cs: 
551         - Call CaptureWithConfine instead of Capture if we're an
552         MdiChild (fixes #79982).
553
554 2006-12-21  Chris Toshok  <toshok@ximian.com>
555
556         * DataGrid.cs: guard against the initial state of selection, where
557         selection_start == -1.  make sure we only select from index >= 0.
558         Fixes bug #80291.
559
560 2006-12-21  Chris Toshok  <toshok@ximian.com>
561
562         * Control.cs: we don't need to be so draconian with
563         UpdateDistances, and we thusly don't need to call it before
564         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
565
566 2006-12-21  Daniel Nauck  <dna@mono-project.de>
567
568         * ComboBox.cs,
569         TextBox.cs: Implemented AutoComplete properties.
570
571 2006-12-20  Chris Toshok  <toshok@ximian.com>
572
573         * DataGridView*.cs: some corecompare work.
574
575 2006-12-20  Jackson Harper  <jackson@ximian.com>
576
577         * XplatUIX11.cs: We need to hide the caret when deleting it,
578         otherwise you get carets left lying around everywhere.
579         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
580         prevents getting some weird half drawn caret tracers when
581         scrolling.
582         * TextControl.cs: Attempt to reduce the number of times we need to
583         recreate the caret.
584
585 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
586
587         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
588
589 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
590
591         * DateTimePicker.cs:
592         - Implemented missing 2.0 bits.
593         - Changed some default values to match MS.
594         
595 2006-12-20  Jackson Harper  <jackson@ximian.com>
596
597         * TextBoxBase.cs: When changing the font across the document we
598         can't recalculate after changing each line, since that will cahnge
599         the line count.
600         - PreferredHeight is a little different than i thought.
601         - When backspacing, move the caret before we do the actual char
602         delete, because when that delete crosses a wrap boundary the
603         positional information will change.
604
605 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
606
607         * Control.cs: Added some missing 2.0 bits: 
608         BackgroundImageLayout, BackgroundImageLayoutChanged, 
609         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
610         add IBindableComponent and IDropTarget implementation.
611         
612         * MonthCalendar.cs: 
613         - Added all missing 2.0 features:
614         BackgroundImageLayout, RightToLeftLayout, 
615         OnHandleDestroyed, RightToLeftLayoutChanged, 
616         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
617         PaddingChanged.
618         - Rewrote all the BoldDate code, it was completely broken.
619         - Fixed all the tests (the tests can now be re-enabled, the
620         problems were not with the tests, but with the control, it was
621         mostly broken).
622         
623         * DateTimePicker.cs: Changed the location where the 
624         MonthCalendar is shown.
625         
626 2006-12-19  Chris Toshok  <toshok@ximian.com>
627
628         * DataGridView.cs: add IDropTarget implementation.
629
630         * ToolStripPanel.cs: add IDropTarget implementation.
631
632 2006-12-19  Jackson Harper  <jackson@ximian.com>
633
634         * TextControl.cs: soft now means something different than what it
635         used to mean, we want to move the caret regardless of whether or
636         not this break was soft (would we really have wanted the caret
637         to not move with the break in the old context?)
638         * TreeView.cs: Make sure we factor in the vert scrollbar when
639         calculating the horizontal scrollbar's maximum.
640
641 2006-12-19  Andreia Gaita  <avidigal@novell.org>
642
643         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
644         check for keywords in alternate casing, close bug #80049.
645
646 2006-12-19  Chris Toshok  <toshok@ximian.com>
647
648         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
649         methods (which all do nothing).
650
651         * IDropTarget.cs: add the 4 missing methods.
652
653 2006-12-19  Chris Toshok  <toshok@ximian.com>
654
655         * TableLayoutRowStyleCollection.cs: corcompare work.
656         
657         * TableLayoutSettings.cs: same.
658
659         * TableLayoutStyle.cs: same.
660
661         * TableLayoutColumnStyleCollection.cs: same.
662
663 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
664
665         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
666         TableLayoutPanel I've had in my local tree for way too long.
667
668 2006-12-19  Miguel de Icaza  <miguel@novell.com>
669
670         * TableLayoutSettings.cs: Finish the public API (still needs all
671         the logic to update on changes). 
672
673         * TableLayoutPanelCellPosition.cs: new file.
674         
675         * TableLayoutRowStyleCollection.cs,
676         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
677         TableLayoutSettings.cs: Track the final 2.0 table api.
678
679 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
680
681         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
682         and Image List 2.0 members for ColummnHeader.
683         * ListView.cs: Add key-related 2.0 methods for
684         ColumnHeaderCollection.
685
686 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
687
688         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
689         ArgumentNullException if items argument is null. Ignore null item in
690         arrays. Removed extra tabs.
691
692 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
693
694         * MonthCalendar.cs: Fixed InvalidCastException.
695
696 2006-12-19  Jackson Harper  <jackson@ximian.com>
697
698         * TextControl.cs: Don't increment the position here.
699         - When calculating char positions only add in the line break size
700         for hard line breaks.
701
702 2006-12-19  Andreia Gaita  <avidigal@novell.org>
703
704         * SendKeys.cs: Changed some things to match ms.net behaviour
705         when parsing shifted capital letters.
706         
707         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
708         Add window handle as parameter to SendInput. X11 needs the 
709         window handle, and the handle being passed      to it in the keys 
710         queue is the active control handle (which windows needs), not 
711         the window handle.
712         
713         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
714         to support SendKeys on X.       
715         
716         * X11Keyboard: Implement helper method to lookup a linux keycode
717         given the virtual keycode. Added table of keycode-2-virtualkey
718         values to support this.
719
720 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
721
722         * ListView.cs: Add support for SelectedIndexCollection
723         and SelectedItemCollection 2.0 methods. Implement support
724         for ImageKey too.
725         * ListViewItem.cs: Add support for ListViewSubItemCollection
726         2.0 methods. Also, fix an incorrect behavior of AddRange method
727         (it shouldn't call Clear).
728         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
729
730 2006-12-19  Jackson Harper  <jackson@ximian.com>
731
732         * RichTextBox.cs: 
733         * TextBoxBase.cs: New args for FormatText
734         * TextControl.cs: Rewrote the main drawing method, this version
735         feels a little easier to understand and debug to me.  Hopefully it
736         does to others also
737         - Fix FormatText to OR in the new formating values.  Added
738         FormatSpecified param, basically this works in the same way as
739         BoundsSpecified in Control.
740         - Set the caret properties when the caret is positioned.
741         - When wrapping text make sure that we calculate the width of the
742         last character
743         - when calculating alignments we might have wrapped down to the
744         next line, so don't search for an individual tag, search for the
745         end of the line
746         - We need to invalidate the selection area when we replace the
747         selection.
748         
749 2006-12-19  Daniel Nauck  <dna@mono-project.de>
750
751         * Application.cs: add Restart () 2.0 support
752
753 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
754
755         * MenuItem.cs: Invalidate menu item rectangle after change Enable
756         property. Fixes #80268.
757         
758 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
759
760         * MenuAPI.cs: Dont trigger select event when closes top menu
761         item. Fixes #80270.
762
763 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
764
765         * MenuAPI.cs: When you click on menuitem only trigger onselect
766         event for top menu itens. Fixes #80271.
767         
768 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
769
770         * MdiWindowManager.cs: Make IconicBounds depend on
771         the bottom of MdiClient, not the top (fixes #80267)
772         
773 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
774
775         * MdiClient.cs: Added missing 2.0 attribute
776
777 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
778
779         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
780         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
781
782 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
783
784         * MenuAPI.cs: Fix click when menuitem is not popup,
785         this regression was caused by last commit (#80272).
786
787 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
788
789         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
790         fire click event or close menu. Fixes #80272.
791
792 2006-12-17  Daniel Nauck  <dna@mono-project.de>
793
794         * ListViewHitTestInfo.cs: add
795
796 2006-12-17  Daniel Nauck  <dna@mono-project.de>
797
798         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
799         * FlatButtonAppearance.cs: add
800         * DockingAttribute.cs: add
801
802 2006-12-17  Chris Toshok  <toshok@ximian.com>
803
804         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
805         and rebind our columns when it does - this way, if you make
806         changes to the DataTable (or set the Table attribute on a DataView
807         after setting it as the DataGrid's DataSource, the changes are
808         made visible.)  Fixes bug #80107.
809
810 2006-12-17  Daniel Nauck  <dna@mono-project.de>
811
812         * ListViewGroup.cs: add internal Location property for layouting.
813         * Theme.cs: add abstract ListViewGroupHeight function.
814         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
815
816 2006-12-16  Andreia Gaita  <avidigal@novell.com>
817
818         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
819         Added reset of selected index to 0 when adding first tab page.
820         Fixes #80264
821         
822         * NumericUpDown.cs: Fix NET_2_0 check
823
824 2006-12-16  Daniel Nauck  <dna@mono-project.de>
825
826         * ListViewGroup.cs: fixed DefaultValueAttribute value
827
828 2006-12-16  Daniel Nauck  <dna@mono-project.de>
829
830         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
831
832 2006-12-15  Miguel de Icaza  <miguel@novell.com>
833
834         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
835         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
836         ScrollableControl.cs: Add a handful of methods that are
837         overwritten in 2.0 
838
839 2006-12-15  Chris Toshok  <toshok@ximian.com>
840
841         * XplatUIWin32.cs: initial implementation of the Reversible
842         drawing functions.  there are some problems.  DrawReversibleFrame
843         doesn't seem to work at all for Dashed FrameStyle, and in the
844         Thick case there are drawing errors at the corners (we probably
845         need to bind Rectangle instead of doing moveto/lineto's.)
846
847 2006-12-16  Andreia Gaita  <avidigal@novell.com>
848         
849         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
850         to send blocks of key messages. Send accumulates keys to send with Flush, 
851         while SendWait sends all keys immediately.
852                 
853         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
854         XplatUIX11.cs,  XplatUIX11-new.cs:
855         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
856         to Win32 SendInput.
857         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
858         
859         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
860         testing for ms.net on this class is very tricky, as the tests run too fast 
861         to allow the hook to release, essentially freezing the keyboard and the 
862         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
863         category :p
864
865 2006-12-16  Daniel Nauck  <dna@mono-project.de>
866
867         * Padding.cs: fixed serialization compability to MS ("_var" field names),
868                         added missing attributes.
869  
870 2006-12-15  Daniel Nauck  <dna@mono-project.de>
871
872         * ListViewGroup.cs: Added missing attributes.
873         * ListViewGroupCollection.cs: Added missing attributes.
874
875 2006-12-15  Daniel Nauck  <dna@mono-project.de>
876
877         * ListViewItem.cs: fixed ListViewSubItem text property.
878
879 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
880         
881         * Control.cs: Added missing 2.0 attributes
882         
883 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
884         
885         * MdiClient.cs: Added missing 2.0 attribute.
886         * MonthCalendar.cs: Added some missing 2.0 attributes 
887         and properties.
888         
889 2006-12-15  Daniel Nauck  <dna@mono-project.de>
890
891         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
892
893 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
894
895         * MainMenu.cs: Add the new 2.0 constructor to help out people
896         using the MainMenu in VS2005.
897
898 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
899         
900         * MdiChildContext.cs: Removed it, no longer used.
901         * MdiClient.cs: Added missing 2.0 attributes.
902         
903 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
904         
905         * InternalWindowManager.cs: Fix a NullRef with previous 
906         changes for toolwindows.
907         
908 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
909
910         * Control.cs: 
911         - Added AfterTopMostControl to allow for certain controls 
912         to always stay on top when normal controls are brought to 
913         front.
914         
915         * XplatUIWin32.cs: 
916         - (DrawInversibleRectangle): Get window rectangle from Win32 
917         in stead of from control, since Win32 doesn't calculate
918         screen coords correctly from control's Location if it 
919         have docked siblings.
920         
921         * MdiWindowManager.cs:
922         - Correct the control menu popup location when clicked on
923         the maximized form icon. (fixes #80223.1)
924         - Don't show moving rectangle if mouse hasn't moved from
925         the original clicked point.
926         - Removed FormGotFocus handler (not used).
927         - Calculate the control buttons location from the main
928         window's size and not client size (fixes #79770).
929         - Form is now closed when the form icon is double-clicked
930         (fixes #79775). 
931         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
932         
933         * InternalWindowManager.cs:
934         - Moved some MDI-only methods to MdiWindowManager.
935         - Removed unused properties and methods.
936         - Unified method naming for methods handling wm messages.
937         - Moved all message handling to seperate methods for
938         each message.
939         
940         * ThemeWin32Classic.cs:
941         - DrawManagedWindowDecorations now draws the title bar 
942         with a gradient brush.
943         - Add a CPDrawButtonInternal that allows us to specify
944         light, normal and dark colors for the buttons (control 
945         buttons for MDI children were drawn with the same light
946         color as the background, therefore loosing the 3D effect).
947         
948         * SizeGrip.cs:
949         - Add a CapturedControl property that is used to 
950         determine the control to resize (defaults to parent). 
951         Needed for MdiClient, since its SizeGrip's parent is
952         MdiClient, but the control to resize is the main form.
953         
954         * MdiClient.cs:
955         - Set SizeGrip's CapturedControl to the main form in order
956         to resize the main form and not the MdiClient.
957         - Override AfterTopMostControl to leave the scrollbars 
958         always on top.
959
960 2006-12-15  Daniel Nauck  <dna@mono-project.de>
961
962         * ListView.cs: fixed ListViewItemCollection AddRange and
963                         implemented ListViewItemCollection AddRange 2.0 support.
964
965 2006-12-15  Daniel Nauck  <dna@mono-project.de>
966
967         * ListViewGroup.cs: Add.
968         * ListViewGroupCollection.cs: Add
969         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
970         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
971                                 stub for ImageKey 2.0 support.
972
973 2006-12-14  Mike Kestner  <mkestner@novell.com>
974
975         * ListView.cs: add text padding to the autocalculation for columns
976         of width -2.  Fixes #80207.
977  
978 2006-12-14  Mike Kestner  <mkestner@novell.com>
979
980         * ListView.cs: add some index guarding for partial row navigation 
981         logic.  Fixes #80250.
982
983 2006-12-14  Mike Kestner  <mkestner@novell.com>
984
985         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
986         are added or inserted to the collection.  Fixes #81099.
987
988 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
989
990         * MenuAPI.cs: Closes menu when right click out side of popup
991         it fix problem in ContextMenu and MainMenu. Fixes #80252.
992
993 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
994
995         * ListViewItem.cs: Fix dumb error.
996
997         * ListView.cs: Add Find and ContainsKey methods in 
998         ListViewItemCollection, and also return true for IsReadOnly
999         and IsFixedSize (changes for 2.0). 
1000
1001 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
1002
1003         * Control.cs: Allow Region to be set to null.
1004
1005 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1006
1007         * MdiWindowManager.cs: Remove unused (commented out) code.
1008         * Form.cs: When the MdiChild is maximized, the form needs 
1009         WM_NCMOUSELEAVE, so request it.
1010         * InternalWindowManager.cs: 
1011         - Added tooltips to control buttons.
1012         - Removed duplicated control button handling code.
1013         - Removed unused (commented out) code.
1014         
1015 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
1016
1017         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
1018         was used because we must set cursor without trigger ChangeCursor event
1019         and without change Cursor control property. Fixes #79963.
1020
1021 2006-12-12  Andreia Gaita  <avidigal@novell.com>
1022         
1023         * Control.cs: Check if Region setter value is null, and ignore
1024
1025 2006-12-12  Jackson Harper  <jackson@ximian.com>
1026
1027         * TextControl.cs: We were almost always drawing one more line then
1028         needed, since the GetLineByPixel will return the last line found
1029         at that pixel. In most cases though, we were invalidating up to
1030         the junction between two lines.
1031         - Improve debug code.
1032
1033 2006-12-12  Chris Toshok  <toshok@ximian.com>
1034
1035         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
1036         and FillReversibleRectangle.
1037
1038         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
1039         and FillReversibleRectangle.
1040
1041         * XplatUIWin32.cs: add stubs which do nothing for
1042         DrawReversibleFrame, DrawReversibleLine, and
1043         FillReversibleRectangle.
1044
1045         * XplatUIOSX.cs: add stubs which raise NIE for
1046         DrawReversibleFrame, DrawReversibleLine, and
1047         FillReversibleRectangle.
1048
1049         * XplatUIX11.cs: add working implementation for
1050         DrawReversibleFrame, DrawReversibleLine, and
1051         FillReversibleRectangle.
1052         
1053         * ControlPaint.cs: implement DrawReversibleFrame,
1054         DrawReversibleLine, and FillReversibleRectangle, by calling into
1055         the appropriate XplatUI method.
1056
1057 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1058
1059         * Form.cs: Make MdiClient have the focus even if it's
1060         not selectable, since it should receive WM_KEY* and WM_MOUSE 
1061         messages. Fixes #79907.
1062         
1063 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1064
1065         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
1066         queried after the window is created.
1067         
1068         * XplatUIX11.cs: Added SendParentNotify to implement 
1069         WM_PARENTNOTIFY logic. Fixes #79965.
1070         
1071         * Control.cs: Added MakeParam.
1072         
1073 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1074
1075         * MdiClient.cs: Resume Layout before setting window
1076         states (fixes #80201).
1077
1078 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1079
1080         * MenuAPI.cs: Deselect a menu item after performing
1081         the click (fixes #80197).
1082
1083 2006-12-11  Jackson Harper  <jackson@ximian.com>
1084
1085         * TextBoxBase.cs: We need to cap this value, since Maximum -
1086         ViewPortHeight can be less than zero.
1087         - Only do selection with the left mouse button.
1088         * TextBox.cs: Don't tell the world that we have a context menu.
1089         * Control.cs: New method so that we can control whether or not the
1090         context menu is visible outside MWF.
1091
1092 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
1093
1094         * ToolBarButton.cs: Fix text positon. 
1095
1096 2006-12-11  Miguel de Icaza  <miguel@novell.com>
1097
1098         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
1099
1100         * Control.cs (DoubleBuffered): Add implementation.
1101
1102         * Application.cs (OpenForms): Add.
1103
1104 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
1105
1106         * Form.cs: Use opacity instead of Opactiy to determine if we need
1107         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
1108
1109 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
1110
1111         * Control.cs: Fix NRE if Control.Site was set to null.
1112
1113 2006-12-11  Chris Toshok  <toshok@ximian.com>
1114
1115         * Control.cs: ControlCollection.Remove should return if the arg is
1116         null, and ControlCollection.SetChildIndex should raise a ANE.
1117
1118 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
1119
1120         * Control.cs: Verify value set for Dock property. Code formatting
1121         updates.
1122
1123 2006-12-11  Jackson Harper  <jackson@ximian.com>
1124
1125         * TextControl.cs: Draw the caret and the selection when a flag is
1126         set on the owner.
1127         * TextBoxBase.cs: We want to draw the caret and the selection for
1128         TextBox but not for TextBoxBase.
1129         - If the window is resized and scrolling is no longer needed (the
1130         whole doc is visible) set the scroll position to zero.
1131         - The default SelectWord (the one TextBox uses) should move the
1132         caret to the end of the word.
1133         - SelectAll moves the caret to the end of the selection.
1134         * TextBox.cs: We don't selectall on focus, we just do it when the
1135         control is created.
1136         
1137 2006-12-11  Mike Kestner  <mkestner@novell.com>
1138
1139         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
1140
1141 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1142
1143         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
1144         2.0 support.
1145         * ListViewItem.cs: Add Name 2.0 property.
1146
1147 2006-12-11  Andreia Gaita  <avidigal@novell.com>
1148
1149         * TabControl.cs: Set visibility on selected or default tab 
1150         when tabcontrol handle is created, so that it's contents
1151         actually show up (duh). Fixes #80193
1152         Don't redraw the control if there is no handle created, as
1153         the selected index might be completely invalid. Added some tests
1154         to check for this.
1155
1156 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
1157
1158         * ToolBar.cs: Uses maximun width and height of all buttons as 
1159         button rectangle when ButtonSize specified, it looks strange but
1160         is what happens in Win32. Fixes #80189.
1161
1162 2006-12-11  Jackson Harper  <jackson@ximian.com>
1163
1164         * TextControl.cs: Need to track undo levels ourself, since
1165         compound actions will mess them up.
1166
1167 2006-12-10  Andreia Gaita  <avidigal@novell.com>
1168
1169         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
1170         SelectedIndex value is changed (even if it's not valid).
1171         Reset SelectedIndex to 0 when the handle is created and if
1172         the current index is invalid.
1173         Fixes SelectdeIndex unit tests and #80128
1174
1175 2006-12-08  Chris Toshok  <toshok@ximian.com>
1176
1177         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
1178         calls EndEdit, it needs to be called before we set current_cell to
1179         its new value.  Otherwise, we end up committing the value in the
1180         textbox to the new cell as well.  Fixes bug #80160.
1181
1182 2006-12-08  Chris Toshok  <toshok@ximian.com>
1183
1184         * Form.cs (set_CancelButton): if the button's DialogResult is
1185         None, set it to Cancel.  Fixes bug 80180.
1186
1187 2006-12-08  Jackson Harper  <jackson@ximian.com>
1188
1189         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
1190         to watch ourselves when setting the canvas size and setting the
1191         scrollbar values.
1192
1193 2006-12-08  Chris Toshok  <toshok@ximian.com>
1194
1195         * DataGrid.cs: comment out the two MakeTransparent calls for the
1196         time being so people using trunk (and not 1.2.2) on windows can
1197         actually use the datagrid.  This deals with bug #80151.
1198
1199 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
1200
1201         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
1202         Graphics.DrawImage (image, int, int, int, int) overload instead
1203         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
1204         the dpi difference and was blurring images it drew.
1205         [Fixes bug #79960]
1206
1207 2006-12-08  Chris Toshok  <toshok@ximian.com>
1208
1209         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
1210         rowcnt is 0 (such as with an empty datasource), and make sure we
1211         initialize not_usedarea.Y to cells.Y, so we don't draw over the
1212         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
1213
1214 2006-12-08  Chris Toshok  <toshok@ximian.com>
1215
1216         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
1217         grid.
1218
1219 2006-12-08  Chris Toshok  <toshok@ximian.com>
1220
1221         [ Fixes bug #80167 ]
1222         
1223         * ThemeWin32Classic.cs: don't draw the image if the button's flat
1224         style is FlatStyle.System.
1225
1226         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
1227         ButtonBase.flat_style private, and switch uses of it to the public
1228         property.
1229         
1230 2006-12-08  Chris Toshok  <toshok@ximian.com>
1231
1232         [ Fixes bug #80121 ]
1233         
1234         * ThemeWin32Classic.cs: center the caption text in the datagrid
1235         when we draw it.
1236
1237         * DataGrid.cs: lessen the amount we add to the caption height from
1238         6 to 2.  6 was making it huge.
1239
1240 2006-12-08  Andreia Gaita  <avidigal@novell.com>
1241
1242         * UpDownBase: Handle MouseWheel call directly instead of capturing
1243         the inner textbox's OnMouseWheel. Fixes #80166
1244
1245 2006-12-08  Jackson Harper  <jackson@ximian.com>
1246
1247         * TextControl.cs: We need to invalidate the textbox when we empty
1248         it (how had this not been discovered before?)
1249
1250 2006-12-08  Jackson Harper  <jackson@ximian.com>
1251
1252         * TextBoxBase.cs: Reworked the mouse down code so I could get it
1253         to behave like MS, we now ignore the eventargs.Click and just
1254         track state ourself, which we were already doing anyways.
1255         - Constrain the double click handler to the double click size.
1256         
1257 2006-12-08  Chris Toshok  <toshok@ximian.com>
1258
1259         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
1260         direction if that scrollbar isn't shown.  fixes bug #80158.
1261
1262 2006-12-08  Andreia Gaita  <avidigal@novell.com>
1263
1264         * NumericUpDown.cs: Update value on getter. Fixes #79950
1265
1266 2006-12-08  Chris Toshok  <toshok@ximian.com>
1267
1268         * MenuItem.cs: add back in the event cloning code.  I didn't know
1269         how to do it in the face of the EventHandlerList work i'd done
1270         last week.  Fixes bug #80183.
1271
1272 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
1273
1274         * Control.cs: Add an invalidate to the BackgroundImage setter.
1275         [Fixes 80184]
1276
1277 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
1278
1279         * ToolStrip*: Add some small properties reported by MoMA, fix event
1280         firing and default properties based off of unit tests, and add some
1281         attributes based off of the class status page.
1282
1283 2006-12-07  Jackson Harper  <jackson@ximian.com>
1284
1285         * TextBoxBase.cs: Take HideSelection into account when determining
1286         whether or not to show the selection.
1287         * RichTextBox.cs: After inserting the RTF into the document move
1288         the cursor to the beginning of the document.
1289
1290 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
1291
1292         * Control.cs: Remove static ArrayList "controls" which maintained
1293         a reference to every control created.
1294         * Application.cs: Create a static FormCollection to maintain a reference
1295         to every form created.  Use it in places that formerly enumerated through
1296         the controls one looking for forms.
1297         * Form.cs: Add and remove self from above FormCollection.
1298
1299 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
1300
1301         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
1302           not libgdk (though it makes me wonder why I didn't have any
1303           problems)
1304
1305 2006-12-07  Chris Toshok  <toshok@ximian.com>
1306
1307         [ you had to know this was coming after that last commit...]
1308         
1309         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
1310         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
1311         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
1312         XCopyArea).
1313
1314 2006-12-07  Chris Toshok  <toshok@ximian.com>
1315
1316         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
1317         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
1318         all the behavior we need for double buffering.
1319
1320         * XplatUIDriver.cs: implement the 3 double buffer methods using a
1321         client side Bitmap, just like the old Control-based double buffer
1322         code did.  The methods are virtual, so each XplatUI driver
1323         subclass can replace the implementation to use a faster, platform
1324         specific approach.
1325
1326         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
1327         double buffer code, and clean things up a bit in the process.
1328
1329 2006-12-06  Chris Toshok  <toshok@ximian.com>
1330
1331         * Control.cs: reindent WndProc.
1332
1333 2006-12-06  Chris Toshok  <toshok@ximian.com>
1334
1335         [ I wanna be like BenM when I grow up ]
1336         
1337         * Hwnd.cs: create a single static Graphics object on the static
1338         Bitmap we create.  use this for our text measurements.
1339
1340         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
1341         This was causing us to allocate a backbuffer for every control,
1342         even when it wasn't flagged as double buffered.  Instead use the
1343         single graphics instance.  This might have implications for
1344         multithreaded applications.  If we run into problems we can switch
1345         to creating 1 Graphics per control, on the static Hwnd bitmap.
1346
1347         this change nets us a 7M savings in private dirty mappings when
1348         running FormsTest.exe.
1349
1350 2006-12-06  Chris Toshok  <toshok@ximian.com>
1351
1352         * ListView.cs: the BackgroundImage override is just to set
1353         attributes.  chain up to base.BackgroundImage.
1354
1355         * RichTextBox.cs: same.
1356
1357         * ToolBar.cs: same, but we need to also redraw the toolbar when it
1358         changes, so instead a handler for BackgroundImageChanged.
1359         
1360         * Control.cs: make background_image private.
1361
1362 2006-12-06  Chris Toshok  <toshok@ximian.com>
1363
1364         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
1365         sure we even need this assignment, but roll with it for now.
1366
1367         * Control.cs: make the cursor field private.
1368
1369 2006-12-06  Chris Toshok  <toshok@ximian.com>
1370
1371         * Form.cs: we don't need to explicitly set ImeMode to
1372         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
1373         behavior in the face of ImeMode.Inherit.
1374
1375         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
1376         change the ctor's assignment to use ImeMode instead of ime_mode.
1377
1378         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
1379         ImeModeInherit.  Only check for the parent's imemode (and return
1380         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
1381         This fixes the button unit test, which sets both ImeMode and
1382         DefaultImeMode to ImeMode.Disable.
1383
1384         also make the ime_mode field private.
1385
1386 2006-12-06  Chris Toshok  <toshok@ximian.com>
1387
1388         * Control.cs: make control_style private.
1389
1390         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
1391         setting the styles to true, then setting them to false instead of
1392         reverting to their previous values.
1393
1394         also, call SetStyle on the scrollbars instead of using
1395         control_style directly.
1396
1397 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
1398
1399         * FormCollection.cs: Implement. [2.0]
1400
1401 2006-12-06  Chris Toshok  <toshok@ximian.com>
1402
1403         * Control.cs: make tab_stop private.
1404
1405         * Label.cs: set TabStop, not tab_stop.  reformat some event
1406         add/remove methods to make them more compact.
1407
1408 2006-12-06  Chris Toshok  <toshok@ximian.com>
1409
1410         * RadioButton.cs: fix TabStop handling.
1411
1412 2006-12-06  Chris Toshok  <toshok@ximian.com>
1413
1414         * TextBox.cs: remove the explicit assignments to has_focus.
1415         Control does that.
1416
1417         * ButtonBase.cs: remove the assignment to has_focus.  Control will
1418         manage that.
1419         
1420 2006-12-06  Chris Toshok  <toshok@ximian.com>
1421
1422         * ButtonBase.cs: remove all uses of is_enabled from this code.
1423         it's always true when any of the code containing the checks is
1424         executed.
1425
1426 2006-12-06  Chris Toshok  <toshok@ximian.com>
1427
1428         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
1429         with different semantics (some are present in both 1.1 and 2.0
1430         profiles) so that we match MS's behavior in our unit tests.
1431
1432 2006-12-06  Jackson Harper  <jackson@ximian.com>
1433
1434         * TextControl.cs: Make this operation undoable.
1435         * TextBoxBase.cs: Factor the border width into the preferred
1436         height.
1437         - implement Modified as per the spec.
1438
1439 2006-12-06  Chris Toshok  <toshok@ximian.com>
1440
1441         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
1442
1443 2006-12-06  Chris Toshok  <toshok@ximian.com>
1444
1445         * Control.cs: make right_to_left and context_menu fields private.
1446
1447 2006-12-06  Chris Toshok  <toshok@ximian.com>
1448
1449         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
1450         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
1451         Control.child_controls private.  switch all uses over to
1452         Control.Controls.
1453
1454 2006-12-06  Chris Toshok  <toshok@ximian.com>
1455
1456         * System.Windows.Forms/GroupBox.cs,
1457         System.Windows.Forms/AccessibleObject.cs,
1458         System.Windows.Forms/ErrorProvider.cs,
1459         System.Windows.Forms/Control.cs,
1460         System.Windows.Forms/UpDownBase.cs,
1461         System.Windows.Forms/ScrollBar.cs,
1462         System.Windows.Forms/DateTimePicker.cs,
1463         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
1464         System.Windows.Forms/ToolTip.cs,
1465         System.Windows.Forms/RadioButton.cs,
1466         System.Windows.Forms/LinkLabel.cs,
1467         System.Windows.Forms/Splitter.cs,
1468         System.Windows.Forms/TextBoxBase.cs,
1469         System.Windows.Forms/ToolStripTextBox.cs,
1470         System.Windows.Forms/ContainerControl.cs,
1471         System.Windows.Forms/ThemeWin32Classic.cs,
1472         System.Windows.Forms/SizeGrip.cs,
1473         System.Windows.Forms/ToolStripDropDown.cs,
1474         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
1475         private.  switch all uses over to Control.Parent.
1476
1477 2006-12-06  Chris Toshok  <toshok@ximian.com>
1478
1479         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
1480         Control does this before calling emitting these events.
1481
1482         * TabControl.cs: same.
1483
1484         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
1485         Control.client_rect.
1486
1487         * ButtonBase.cs: use the ClientSize property instead of the
1488         client_size field.
1489
1490         * ScrollableControl.cs: same.
1491
1492         * Control.cs: another pass at making properties private.  also,
1493         move the initialization of tab_stop to the ctor.
1494
1495 2006-12-05  Andreia Gaita <avidigal@novell.com>
1496
1497         * TabControl.cs: Let the selected index be set freely if the 
1498         control handle is not yet created.
1499
1500 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
1501
1502         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
1503         internal until I can rewrite DefaultLayout.
1504         * ToolStrip.cs: Fix build error and some general cleaning.
1505         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
1506         Fix build errors caused by making some of Control's fields private.
1507
1508 2006-12-05  Jackson Harper  <jackson@ximian.com>
1509
1510         * TextControl.cs: Redo Insert a little so that it use IndexOf
1511         instead of Split, this prevents it from messing up on things like
1512         \n\n\n. Also more effecient since the split array doesn't need to
1513         be created.
1514         * TextBoxBase.cs: AppendText doesnt handle multiline and non
1515         multiline text differently, this is the first of many fixes that
1516         will make multiline/non-multiline the same thing as far as the
1517         TextBoxBase is concerned.
1518         - Don't split the text and insert lines, this can lose some line
1519         endings (like is the last line a soft or hard break). Instead use
1520         the new Insert.
1521         - Fix an off by one when combining all the lines in the Text
1522         getter.
1523         - Remove separate multiline handling from the Text getter/setter.
1524
1525 2006-12-05  Chris Toshok  <toshok@ximian.com>
1526
1527         * ButtonBase.cs: a few changes:
1528
1529         - don't reinitialize internal Control fields in the ctor when they
1530         have the same values as Control sets them.
1531
1532         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
1533         this before calling those methods.
1534
1535         - we don't need to call Refresh for anything.  use Invalidate
1536         instead.
1537
1538         - OnEnabledChanged doesn't need to redraw at all - Control.cs
1539         calls Refresh in its OnEnabledChanged.
1540         
1541         - several of the events we were registered for in the ctor to
1542         redraw ourselves already include calls to Invalidate in the
1543         property setters that raise the events.  remove the extra
1544         invalidation.
1545
1546         - reformat a switch statement that was 83274658 columns wide.
1547         
1548 2006-12-05  Mike Kestner  <mkestner@novell.com>
1549
1550         * ComboBox.cs: fix a unit test regression from a TextBox
1551         SelectionLength return of -1 when there's no selection.  
1552
1553 2006-12-05  Chris Toshok  <toshok@ximian.com>
1554
1555         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
1556         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
1557         cleaning up some of the internal Control fields being used by
1558         subclasses.
1559
1560 2006-12-05  Mike Kestner  <mkestner@novell.com>
1561
1562         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
1563         listbox after AddImplicit calls since it defaults to hidden. Add a 
1564         hack to preserve requested heights across DropDownStyle changes.
1565
1566 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
1567
1568         * PropertyGrid.cs: Hide FindFirstItem method from public API.
1569
1570 2006-12-05  Chris Toshok  <toshok@ximian.com>
1571
1572         * DataGridView.cs: fix compiler warnings.
1573
1574         * PrintControllerWithStatusDialog.cs: same.
1575
1576         * ToolBar.cs: same.
1577
1578         * FolderBrowserDialog.cs: same.
1579
1580         * Splitter.cs: same.
1581
1582         * DataGridViewComboBoxCell.cs: same.
1583
1584         * XplatUIWin32.cs: same.
1585
1586         * PictureBox.cs: same.
1587
1588         * Win32DnD.cs: same.
1589
1590         * PageSetupDialog.cs: same.
1591
1592         * FileDialog.cs: same.
1593
1594         * PrintDialog.cs: same.
1595
1596         * DataGridTextBoxColumn.cs: same.
1597
1598         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
1599
1600 2006-12-05  Chris Toshok  <toshok@ximian.com>
1601
1602         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
1603         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
1604         System.ComponentModel.EventHandlerList work.
1605
1606 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
1607
1608         * DrawTreeNodeEventArgs.cs: Added.
1609
1610 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1611         
1612         * InternalWindowManager.cs: Remove an unused field.
1613         
1614 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1615
1616         * InternalWindowManager.cs:
1617         - Save the point where the title bar is clicked.
1618         
1619         * MdiWindowManager.cs:
1620         - Only allow moving of the window as long as the 
1621         clicked point on the title bar does not get out of
1622         MdiClient's rectangle. Fixes #79982.
1623         
1624         * MdiClient.cs:
1625         - Added Horizontal/VerticalScrollbarVisible.
1626         - Simplified the scrollbar sizing algorithm.
1627         - Cache the difference in scrolled value in
1628         H/VBarValueChanged and move the calculation out
1629         of the for loop.
1630
1631 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1632
1633         * Control.cs: Make the Console.WriteLine in WndProc 
1634         write more info.
1635
1636 2006-12-05  Chris Toshok  <toshok@ximian.com>
1637
1638         * ToolStripManager.cs, ToolStripButton.cs,
1639         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
1640         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
1641         ToolStripSplitButton.cs, ToolStripSeparator.cs,
1642         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
1643         ToolStripProgressBar.cs, ToolStripContainer.cs,
1644         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
1645         to using System.ComponentModel.EventHandlerList.
1646
1647 2006-12-04  Chris Toshok  <toshok@ximian.com>
1648
1649         * LinkLabel.cs: fix up compiler warnings.
1650
1651         * TableLayoutSettings.cs: same.
1652
1653         * TreeView.cs: same.
1654
1655         * ToolBar.cs: same.
1656
1657         * TabControl.cs: same.
1658
1659         * RichTextBox.cs: same.
1660
1661         * ListViewItem.cs: same.
1662
1663         * PropertyGrid.cs: same.
1664
1665         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
1666
1667         * ToolTip.cs same.
1668
1669         * TextRenderer.cs: fix up compiler warnings.
1670
1671         * Label.cs: same.
1672
1673         * Form.cs: corcompare fixes.
1674
1675         * PictureBox.cs: fix up compiler warnings.
1676
1677         * ImageListStreamer.cs: same.
1678
1679         * TrackBar.cs: corcompare fix.
1680
1681         * Control.cs: fix up compiler warnings.
1682
1683         * SplitterPanel.cs: same.
1684
1685         * NumericTextBox.cs: same.
1686
1687         * ImageList.cs: same.
1688
1689         * StatusStrip.cs: same.
1690
1691         * ProgressBar.cs: corcompare fix.
1692
1693         * ToolStripButton.cs: fix up compiler warnings.
1694
1695         * ToolStripStatusLabel.cs: same.
1696
1697         * ToolStripSplitButton.cs: same.
1698
1699         * ToolStripSeparator.cs: same.
1700
1701         * ToolStripProgressBar.cs: same.
1702
1703         * ToolStripDropDownMenu.cs: same
1704
1705         * ToolStripDropDown.cs: same.
1706
1707         * ToolStripDropDownButton.cs: same.
1708
1709         * ToolStrip.cs: same.
1710
1711         * ToolStripControlHost.cs: same.
1712
1713         * ToolStripContentPanel.cs: same.
1714
1715         * ToolStripDropDown.cs: same.
1716
1717         * ToolStripContainer.cs: same.
1718
1719         * ToolStripPanel.cs: same, and add "new" where we need it to work
1720         with the new ArrangedElementCollection.
1721
1722         * ToolStripItemCollection.cs: add "new" where we need it to work
1723         with the new ArrangedElementCollection.
1724
1725 2006-12-04  Andreia Gaita <avidigal@novell.com>
1726
1727         * TabControl.cs: Fix default tab selection to after TabControl
1728         gets focus and not before. Fixes #80128
1729
1730 2006-12-04  Chris Toshok  <toshok@ximian.com>
1731
1732         * DataGridTableStyle.cs: remove the gross calling of
1733         datagrid.Refresh from here.  It's a broken idea and it doesn't
1734         work anyway.
1735
1736         * DataGrid.cs: instead, just register/unregister from the
1737         DataGridTableStyle events in CurrentTableStyle.  we play it
1738         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
1739         even though some would most likely not require it.  Fixes bug
1740         #80115 (and one portion of #80117 as a side effect).
1741
1742 2006-12-04  Chris Toshok  <toshok@ximian.com>
1743
1744         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
1745         so the textbox (if any) goes away.  Fixes bug #80117.
1746
1747 2006-12-04  Chris Toshok  <toshok@ximian.com>
1748
1749         * DataGridColumnStyle.cs: set the column's readonly property
1750         initially based on the property descriptor's IsReadOnly.  Fixes
1751         bug #80044.
1752
1753 2006-12-04  Chris Toshok  <toshok@ximian.com>
1754
1755         * ComboBox.cs: wrap the dropdown style changing work in
1756         SuspendLayout/ResumeLayout.  Fixes bug #79968.
1757
1758 2006-12-04  Jackson Harper  <jackson@ximian.com>
1759
1760         * TextBoxBase.cs: Fix off by one, since these are one-based.
1761         * TextBox.cs: Select all the text when we get focus.  The TextBox
1762         does this but the RTB does not.
1763
1764 2006-12-04  Chris Toshok  <toshok@ximian.com>
1765
1766         * DataGridTextBoxColumn.cs: remove some spew.
1767
1768         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
1769         but some part of me is saying "it shouldn't be here.."  At any
1770         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
1771         setting the value.
1772
1773 2006-12-04  Chris Toshok  <toshok@ximian.com>
1774
1775         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
1776         to reassign the propertydescriptor.
1777
1778 2006-12-04  Jackson Harper  <jackson@ximian.com>
1779
1780         * TextBoxBase.cs:
1781         * TextControl.cs: Remove some unused variables.  Maybe this will
1782         patch things up between mike and I.
1783         - don't split lines less then one char wide, if the viewport is
1784         that small text won't be visible anyways.
1785         
1786 2006-12-04  Jackson Harper  <jackson@ximian.com>
1787
1788         * TextBoxBase.cs: Default selection length is -1, need to do some
1789         more testing on windows to see when this is used for the property.
1790         - Redid the Lines [] property to that we properly remove soft line
1791         breaks
1792         - added support for preserving carriage returns
1793         -  CanUndo is not a variable like 'is undo enabled' it just returns
1794         true if there is undo operations available.
1795         - AppendText doesn't need to grab the last tag itself anymore,
1796         this happens automatically when we move the cursor.
1797         * TextControl.cs: Add CompoundActions to the undo class. This
1798         allows combining the other operations into one big option.  ie a
1799         paste will combine { delete old, insert new, move cursor }
1800         - Add InsertString undo operation
1801         - New method for deleting multiline text
1802         - Add carriage returns to lines. So we can preserve carriage
1803         returns when text is 'roundtripped'
1804
1805 2006-12-04  Chris Toshok  <toshok@ximian.com>
1806
1807         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
1808         minimum 0.  Fixes the scrollbar exception in bug #80136.
1809
1810 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1811
1812         * MdiClient.cs: 
1813         * MdiWindowManager: Removed unused fields and methods.
1814         
1815 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1816         
1817         * StatusBar.cs: Update all panels when a AutoSize=Contents
1818         panel needs updating.
1819         
1820         * StatusBarPanel.cs: Remove twidth and only use initialize.
1821         Fixes #80031.
1822                 
1823 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
1824
1825         * Form.cs: When a form's MdiParent is set add it directly
1826         on top of the z-order in stead of relying on MdiClient's
1827         ActivateChild to do it. Fixes #80135.
1828         
1829         * MdiClient.cs: 
1830         - Remove original_order, mdi_child_list is already doing
1831         the same thing.
1832         - Create mdi_child_list on construction in
1833         stead of first use (avoids a few null checks).
1834
1835         * MenuItem.cs: Use an already existing list of mdi children
1836         to get the correct order of children and remove the other
1837         redundant list.
1838
1839 2006-12-04  Chris Toshok  <toshok@ximian.com>
1840
1841         * PropertyGridView.cs: cached_splitter_location is only used in
1842         !DOUBLEBUFFER code.
1843
1844         * PropertyGrid.cs: implement the ComComponentNameChanged event
1845         using Events, hoping that would fix the warning.  Looks like a
1846         compiler bug instead (#80144).
1847
1848         * PropertyManager.cs: remove unused method.
1849
1850 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
1851
1852         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
1853         include parentesis to fix expression evaluation. Fixes #79634.
1854
1855 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
1856         
1857         * MenuAPI.cs:
1858         - Changes to fix behavior in Menu control, some reported in #80097
1859         and other detected during behavior refactory like a select event
1860         problems.
1861         - Remove unneded "if's" conditions.
1862         - Created an internal to flag when popup is active in control, we need 
1863         it because in .NET you can have menu active but without popup active
1864         when you active menu using popup without visible items.
1865         - Mimic win32 behavior for Select and Popup events.  
1866         - Dont open popup menu when you dont have visible subitems.
1867         - Do nothing when click on disabled menu item.
1868         - Some small changes to follow the coding style guidelines.
1869         - Unselect menu only when another control gives focus. Fixes #80097.
1870         - Remove unused code.
1871         
1872         * MenuItem.cs: internal VisibleItems method to check if menu
1873         theres visible subitems, it will be usefull to fix some 
1874         behavior in Menu control.
1875         
1876 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
1877         
1878         * Timer.cs: Tag property for 2.0 profile.
1879         
1880 2006-12-01  Chris Toshok  <toshok@ximian.com>
1881
1882         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
1883         
1884         * Win32DnD.cs: comment out some unused fields.
1885
1886         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
1887         some unused properties/methods.
1888
1889         * XplatUIX11.cs: fix MousePosition so we override the base class's
1890         property instead of conflicting with it.
1891
1892         * PictureBox.cs: comment out some unused fields
1893
1894         * OSXStructs.cs: make some struct fields public.
1895
1896         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
1897         MousePosition so we override the base class's property instead of
1898         conflicting with it.
1899
1900         * X11Dnd.cs: comment out some unused fields
1901
1902         * X11DesktopColors.cs: fix some struct field visibility to quiet
1903         the compiler.
1904
1905         * X11Dnd.cs: remove some debug code.
1906
1907         * ThemeClearlooks.cs: comment out unused field.
1908
1909         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
1910
1911         * ThemeGtk.cs: comment out some unused pinvokes.
1912
1913         * Timer.cs: remove some unused fields.
1914
1915         * ThemeClearlooks.cs: comment out unused field.
1916
1917         * UpDownBase.cs: comment out unused field.
1918
1919         * DataObject.cs: comment out unused field.
1920
1921         * DataGridBoolColumn.cs: reomve unused field.
1922
1923         * DataGrid.cs: remove unused field.
1924
1925         * Cursor.cs: remove old ToBitmap code.
1926
1927         * ControlPaint.cs: remove unused method.
1928
1929         * ScrollBar.cs: remove unused fields.
1930
1931         * ComboBox.cs: remove unused field, and chain up to
1932         AccessibleObject ctor.
1933
1934         * ListBox.cs: remove unused field.
1935
1936         * ButtonBase.cs: wrap a couple fields in NET_2_0.
1937
1938         * GridEntry.cs: remove unused fields.
1939
1940         * Binding.cs: remove unused fields.
1941
1942         * AxHost.cs: remove unused method.
1943
1944         * ContainerControl.cs: remove unused field.
1945
1946         * ScrollableControl.cs: remove unused fields.
1947
1948 2006-12-01  Chris Toshok  <toshok@ximian.com>
1949
1950         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
1951         the Where/WhereString stuff.  it's easy enough to CWL
1952         Environment.StackTrace.
1953
1954         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
1955         unused private fields.
1956
1957 2006-12-01  Jackson Harper  <jackson@ximian.com>
1958
1959         * TextControl.cs: Do not update the view while inserting multiline
1960         text. If we update the view we might wrap lines, before entering
1961         the new lines, which causes the new line insertion calculations to
1962         be totally fubared.
1963         - Remove an old TODO
1964         - Make debug output a little nicer
1965         
1966 2006-12-01  Chris Toshok  <toshok@ximian.com>
1967
1968         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
1969
1970 2006-12-01  Chris Toshok  <toshok@ximian.com>
1971
1972         [ fix the majority of the CS0108 warnings we've been suppressing ]
1973         
1974         * TreeView.cs: mark BackgroundImageChanged as 'new'.
1975
1976         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
1977         to "LayoutToolBar" to quiet mcs.
1978         
1979         * TabControl.cs: mark our ControlCollection class as 'new'.
1980
1981         * TextBoxBase.cs: mark some events as 'new'.
1982
1983         * Splitter.cs: TabStop is 'new'.
1984
1985         * ControlBindingsCollection.cs: mark a few methods as new since
1986         they change the visibility from protected to public.
1987
1988         * RadioButton.cs: DoubleClick -> base class, and remove unused
1989         HaveDoubleClick.
1990
1991         * MonthCalendar.cs: ImeMode property -> base class, and mark many
1992         events as new.
1993
1994         * NumericUpDown.cs: TextChanged -> base class.
1995
1996         * CheckedListBox.cs: mark our ObjectCollection class as new to
1997         quiet mcs.
1998
1999         * FolderBrowserDialog.cs: make HelpRequest event new and have it
2000         muck with the base class.
2001
2002         * StatusBar.cs: fix some mcs warnings about Update being the same
2003         name as a base class method.
2004
2005         * RichTextBox.cs: mark some events as new, and make them do things
2006         to the base class impl.
2007
2008         * UserControl.cs: mark TextChanged as new, and have it manipulate
2009         base.TextChanged.
2010
2011         * UpDownBase.cs: mark some things new.
2012
2013         * CheckBox.cs: mark DoubleClick "new", and add some text about
2014         what we need to look at.
2015
2016         * Panel.cs: make the events "new", and manipulate the base
2017         version.  these are just here for attributes.
2018
2019         * AccessibleObject.cs: make owner private.
2020
2021         * Control.cs: deal with AccessibleObject.owner being private.
2022         cache our own copy if we need it.
2023
2024         * Button.cs: add "new" to the DoubleClickEvent.
2025
2026         * ListBox.cs: no need to track our own has_focus here.  let
2027         Control.has_focus do it for us.  Also some other work to clear up
2028         warnings about not overriding base class methods of the same name.
2029         
2030         * ComboBox.cs: clear up some warnings about not override base
2031         class methods of the same name.
2032
2033 2006-12-01  Chris Toshok  <toshok@ximian.com>
2034
2035         * Form.cs: flag a few things as "new" to quiet some of the mcs
2036         warnings.
2037
2038         * AxHost.cs: same.
2039
2040         * PrintPreviewDialog.cs: same.
2041
2042         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
2043         now DGV isn't so horrible on the class status page.  also, move
2044         all events to using System.ComponentModel.EventHandlerList.  my
2045         wrists hurt.
2046
2047 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2048
2049         * MdiWindowManager.cs:
2050         - Set form to active mdi child if shown,
2051         and update the active mdi child to the next 
2052         remaining child in the z-order if the form is hidden.
2053
2054         * Form.cs: 
2055         - Track if the form has been visible and if its 
2056         visibility is beeing changed, so that the MdiClient
2057         can properly decide the ActiveMdiChild. The MdiClient 
2058         cannot track this since the form can change visibility 
2059         before MdiClient is created.
2060
2061         * MdiClient.cs:
2062         - Don't activate anything of the parent form is changing
2063         its visibility.
2064         - Rework ActiveMdiChild to only return visible mdi 
2065         children and take into account several other corner 
2066         cases.
2067
2068 2006-12-01  Chris Toshok  <toshok@ximian.com>
2069
2070         * IBindableComponent.cs: new 2.0 interface.
2071
2072 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
2073
2074         * DataGrid.cs: Font for caption area is bold by default.
2075
2076 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
2077
2078         * Menu.cs: Tag property for 2.0.
2079         
2080 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
2081
2082         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
2083         
2084 2006-12-01  Chris Toshok  <toshok@ximian.com>
2085
2086         * TreeView.cs: doh, the Begin* events should be
2087         TreeViewCancelEventHandler.
2088
2089 2006-12-01  Chris Toshok  <toshok@ximian.com>
2090
2091         * Form.cs: Form.ControlCollection already stores off the
2092         form_owner field.  don't access the base class's internal "owner"
2093         field.
2094
2095         * Control.cs: make all the fields in Control.ControlCollection
2096         private.  there's no need for any internal fields here.
2097
2098 2006-12-01  Chris Toshok  <toshok@ximian.com>
2099
2100         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
2101         OnHandleCreated.  Fixes bug #80109.
2102
2103 2006-12-01  Chris Toshok  <toshok@ximian.com>
2104
2105         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
2106         SplitContainer.cs, Control.cs, StatusStrip.cs,
2107         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
2108         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
2109         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
2110         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
2111         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
2112         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
2113         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
2114         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
2115         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
2116         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
2117
2118         do most of the work to convert our code over to use
2119         System.ComponentModel.Component.Events for
2120         adding/removing/dispatching events.
2121
2122
2123 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
2124
2125         * DataGridView.cs: Fix an ArgumentNullException reported 
2126         twice today in IRC.
2127
2128 2006-11-30  Mike Kestner  <mkestner@novell.com>
2129
2130         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
2131         grabbed listbox.  Fixes #80036 and #80101.
2132
2133 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
2134
2135         * Message.cs: Changed ToString() to match MS.
2136         
2137 2006-11-30  Jackson Harper  <jackson@ximian.com>
2138
2139         * TextBoxBase.cs: You can still change the selected text on a read
2140         only textbox.
2141         * TextControl.cs: Lower magic number for wrap calculations. This
2142         lets text get closer to the right (far) edge.
2143
2144 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
2145
2146         * Control.cs: Tweak 2.0 layout properties.
2147         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
2148         * TextRenderer.cs: Add a new overload.
2149         * ToolStrip*: Huge amount of changes and new features.
2150
2151 2006-11-30  Mike Kestner  <mkestner@novell.com>
2152
2153         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
2154         scroll range correct.  Fixes #79994.
2155
2156 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
2157
2158         * MdiWindowManager.cs: Update main form's text when
2159         a form is closed. (fixes #80038)
2160         
2161 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
2162
2163         * ToolBar.cs:
2164         - Fix an regression in ButtonSize.
2165         - Get ImeMode default value change to "Disable".
2166         - Get ShowTooltips default value change to true, default value is 
2167         "false" but after make a test in .NET we get "true" result as default.
2168         
2169 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
2170
2171         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
2172
2173 2006-11-29  Chris Toshok  <toshok@ximian.com>
2174
2175         * XplatUIWin32.cs (GetWindowTransparency): check return value of
2176         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
2177         SetWindowTransparency hasn't been called.
2178
2179 2006-11-29  Chris Toshok  <toshok@ximian.com>
2180
2181         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
2182         if it's supported.
2183         (set_AllowTransparency): reorder things a little so that the
2184         WS_EX_LAYERED style is removed properly.
2185
2186 2006-11-29  Chris Toshok  <toshok@ximian.com>
2187
2188         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
2189         
2190         * Form.cs: only call the XplatUI transparency method (get/set) if
2191         SupportsTransparency says it's supported. Otherwise fallback to
2192         doing nothing (in the set case) or returning the instance field we
2193         cache (in the get case).
2194
2195         * XplatUIStructs.cs: add TransparencySupport flag enum.
2196         
2197         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
2198         change to SupportsTransparency.
2199
2200         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
2201         TransparencySupport.None from SupportsTransparency.
2202
2203         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
2204         TransparencySupport.Set from SupportsTransparency.
2205
2206         * XplatUIWin32.cs: implement GetWindowTransparency calling
2207         GetLayeredWindowAttributes, and implement SupportsTransparency by
2208         checking whether or not both
2209         GetWindowTransparency/SetWindowTransparency are available
2210         entrypoints.  We need to do this since SetWindowTransparency is
2211         available as of win2k, but GetWindowTransparency requires winxp.
2212         yay win32 api.
2213
2214         * XplatUI.cs: Add GetWindowTransparency, and change
2215         SupportsTransparency to allow for either/both Get/Set.
2216
2217 2006-11-29  Chris Toshok  <toshok@ximian.com>
2218
2219         * DataGrid.cs: keep from going into an infinite loop redrawing a
2220         datagrid that has no datasource.  Fixes bug #80033.
2221
2222 2006-11-29  Chris Toshok  <toshok@ximian.com>
2223
2224         * MenuItem.cs: fix the NRE when we assign text (and therefore call
2225         Invalidate) before the mainmenu has been assigned to a control.
2226
2227 2006-11-29  Chris Toshok  <toshok@ximian.com>
2228
2229         * DataGrid.cs: detect when we should be double the double click
2230         row/column autosize stuff, although that codepath has yet to be
2231         written.  part of the work for bug #79891.
2232
2233 2006-11-29  Chris Toshok  <toshok@ximian.com>
2234
2235         * Binding.cs (SetControl): fix unit test.
2236
2237 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2238
2239         * PageSetupDialog.cs: Validate the margins and set them in
2240         PageSettings. 
2241         * NumericTextBox.cs: New class to mimic the behavior of the
2242         textboxes used in the printing dialogs.
2243
2244 2006-11-29  Andreia Gaita  <avidigal@novell.com>
2245         
2246         * Form.cs: Revert previous change (remove call UpdateBounds
2247         from form constructor), because it messes with the handle creation
2248         order, and that one needs lots and lots of love.
2249         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
2250         for valid printer and throw InvalidPrinterException if document
2251         is set but printer not valid), adding a MonoTODO. Once 
2252         handle creation is done properly, we can put this back in.
2253
2254 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
2255
2256         * MenuItem.cs: Create a invalidate method for menu item, to be
2257         calling from set text, it make text changes to imadiate update
2258         on screen. Fixes #80013. 
2259         
2260 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
2261
2262         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
2263         fixes bug #80070 and some other problem on toolbar buttons
2264         layout.
2265
2266 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
2267
2268         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
2269         with dotted brush.      Fixes #79564
2270         
2271 2006-11-28  Andreia Gaita  <avidigal@novell.com>
2272
2273         * Form.cs: Removed call to UpdateBounds on Form
2274         constructor, it was causing a call to CreateHandle
2275         before it was supposed to.
2276         * PrintControllerWithStatusDialog: Applied patch
2277         by Chris Toshok to hide controller when there are
2278         no printers available.
2279         PrintDialog.cs: initialize printer settings to 
2280         null - correct DefaultValues test #5
2281         * PrintPreviewControl.cs: Move PrintController
2282         initialization to GeneratePreview
2283         * PrintPreviewDialog.cs: 
2284         - Remove Preview generation     from Document_set(). It is 
2285         called on OnPaint
2286         - Throw InvalidPrinterException on CreateHandle if
2287         a Document is set but there are no printers or 
2288         printer is not valid.
2289         * ThemeWin32Classic: don't paint PrintPreviewControl
2290         if there is nothing to paint    
2291
2292 2006-11-28  Miguel de Icaza  <miguel@novell.com>
2293
2294         * Form.cs: Add another popular method.
2295
2296         * TabPage.cs: ditto.
2297
2298 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2299
2300         * MenuItem.cs: Fixed a warning.
2301         * InternalWindowManager: Fixed a warning.
2302
2303 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2304
2305         * MenuItem.cs:
2306         - When cloning a menu also clone MdiList and clone the 
2307           window menu items properly (as the forms and menuitems
2308           are kept in an internal hashtable, these need updating 
2309           as well)
2310         - Rewrote the window menu code, menu items are added in the
2311           order the forms were added to their parent, and they are
2312           updated every time the window menu is shown (before the
2313           list was only generated once, in the current order of the
2314           forms, and would never be updated). A checkmark is shown
2315           next to the item corresponding to the active mdi child.
2316
2317 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2318
2319         * XplatUIStructs.cs: 
2320         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
2321         
2322         * XplatUIWin32.cs: 
2323         - Added TME_NONCLIENT to TMEFlags.
2324         - Handles WM_NCMOUSEMOVE in GetMessage to 
2325           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
2326
2327         * MdiWindowManager:
2328         - Now merges mdi child menu to parent menu when maximized.
2329         - Recalculate NC areas of both mdi child and mdi parent. 
2330           Fixes #79757 (4).
2331           on window state and size changes.Fixes #79844 (3).
2332         - Handle WM_NCCALCSIZE to properly calculate borders.
2333
2334         * Form.cs:
2335         - Add/remove to the mdi containers list of mdi children 
2336           in the order they are added.
2337         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
2338           to the maximized mdi child.
2339         
2340         * InternalWindowManager.cs:
2341         - Only execute a click on the control buttons on the mouse up,
2342           not on the mouse down. Show the state of the button 
2343           (was only showing Normal state, never Pressed state). The
2344           pressed button now follows the mouse (if you click the Close 
2345           button and move the mouse over the Maximize button, the 
2346           Maximize button will be shown as pressed). Since Win32 does
2347           not generate WM_NCLBUTTONUP if you release the button outside
2348           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
2349           it as a mouse up.
2350         
2351         * ThemeWin32Classic.cs:
2352         - Draw a missing border around mdi child forms. Fixes #79844 (2).
2353
2354         * MdiClient.cs:
2355         - Added a list of forms which contains the order the forms are
2356           added to the mdi parent.
2357         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
2358         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
2359         - If the active form changes set the scrollbars to the top
2360           of the Z order, otherwise the form could hide them.
2361         - Scrollbars are now sized according to ClientSize, not 
2362           to Size, and they take into account the other scrollbar
2363           to determine maximum.
2364         
2365 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
2366         
2367         * XplatUI.cs:
2368         * XplatUIDriver.cs:
2369         * XplatUIX11.cs:
2370         * XplatUIWin32.cs:
2371         * XplatUIOSX.cs:
2372         - Added RequestAdditionalWM_NCMessages for windows to 
2373           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
2374           Currently only implemented in XplatUIWin32.
2375
2376 2006-11-27  Chris Toshok  <toshok@ximian.com>
2377
2378         * Hwnd.cs: only add the hwnd to the windows hash in
2379         set_WholeWindow and set_ClientWindow if whole_window/client_window
2380         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
2381
2382 2006-11-27  Mike Kestner  <mkestner@novell.com>
2383
2384         * ComboBox.cs: remove redundant OnDropDown call.  It is called
2385         from the ComboListBox.ShowWindow code. Fixes #79969.
2386
2387 2006-11-27  Chris Toshok  <toshok@ximian.com>
2388
2389         * Hwnd.cs: remove the setters for ExposePending and
2390         NCExposePending - noone uses them.
2391
2392 2006-11-27  Jackson Harper  <jackson@ximian.com>
2393
2394         * TextControl.cs: new param for ReplaceSelection which determines
2395         whether we select the new selection, or set the cursor to the end
2396         of the new selection.
2397         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
2398         pasting, select the new text.
2399         * RichTextBox.cs: Use new param for ReplaceSelection.
2400
2401 2006-11-27  Jackson Harper  <jackson@ximian.com>
2402
2403         * TextBoxBase.cs: Set the selection to the caret after the caret
2404         is moved, otherwise they get out of sync.
2405
2406 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
2407
2408         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
2409         it fixes #80015
2410
2411 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
2412
2413         * ThemeWin32Classic.cs: 
2414         - Fix toolbar drop down arrow position.
2415         - Fix drop down appearance when ToolBar.Appearance is normal,
2416         it fixes #80018.
2417         
2418 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
2419
2420         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
2421         * Control.cs: Same.
2422         * UpDownBase.cs: Same.
2423         * ButtonBase.cs: Same.
2424         * ScrollBar.cs: Same.
2425         * TrackBar.cs: Same.
2426         * PictureBox.cs: Same.
2427         * UserControl.cs: Same.
2428         * Label.cs: Same.
2429         * ListControl.cs: Same.
2430         * TextBoxBase.cs: Same.
2431         * ListView.cs: Same.
2432         * RichTextBox.cs: Same.
2433         * TreeView.cs: Same.
2434
2435 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
2436
2437         * PrintDialog.cs:
2438         - Text label for where 
2439         - Text label comment was not shown
2440
2441 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
2442
2443         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
2444
2445 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
2446
2447         * InternalWindowManager.cs: 
2448         - Handle WM_PARENTNOTIFY to activate the form
2449         if any child control is clicked.
2450         - The form is only sizable if not minimized.
2451
2452         * MdiWindowManager.cs:
2453         - Save the IconicBounds if the form is moved.
2454         - Rework SetWindowState, now the window bounds 
2455         are stored only if the old window state is Normal.
2456         
2457         * MdiClient.cs:
2458         - In SetWindowStates store the old window state if 
2459         the window is maximized and restore window state if
2460         the window looses focus.
2461         - Don't handle any scrollbar value changes if 
2462         initializing the scroll bars. Fixes #79771.
2463         - Reworked ArrangeIconicWindows. Current algorithm
2464         tests bounds agains all other minimized windows, if
2465         any intersections create new bounds (going left to 
2466         right, bottom to top) and then test again. When 
2467         successful the bounds are saved and never computed
2468         again. Fixes #79774.
2469
2470 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
2471
2472         * InternalWindowManager.cs: Added HandleTitleBarUp.
2473
2474 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
2475
2476         * NumericUpDown.cs: In .NET 1.1, user entered text is still
2477         hexadecimal in ParseUserEdit.
2478
2479         
2480 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
2481
2482         * MdiWindowManager.cs: 
2483         - Handle a click on the form's icon to show the 
2484         system menu (when maximized). Fixes #79775.
2485         - Change the existing click handler for the form's
2486         icon when not maximized to show on MouseUp.
2487         Fixes #79776.
2488
2489         * Form.cs: In OnResize only layout the mdi child's
2490         parent if it actually has a parent. Might not if
2491         the window is closing.
2492
2493
2494 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
2495
2496         * MdiClient.cs: Ignore active MDI client for text of parent, if
2497         child has no text set.
2498
2499 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
2500
2501         * ToolBar.cs: Fixed ToString to match MS.
2502
2503 2006-11-22  Andreia Gaita  <avidigal@novell.com>
2504
2505         * NumericUpDown: 
2506         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
2507         update inner values on set. Fixes #79966.
2508         - Override OnLostFocus to update value on NET 2. Fixes #79950.
2509         - Fix hexadecimal parsing.
2510         
2511         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
2512         parent. Fixes #79957
2513
2514 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2515
2516         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
2517         the actual size has to be queried, since if height /
2518         width is negative Win32 changes it to 0. 
2519         Fixes #79999 on Windows.
2520         
2521         * XplatUIX11.cs: Set height / width to 0 if negative
2522         in SetWindowPos. Fixes #79999 on Linux.
2523         
2524 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
2525
2526         * ThemeWin32Classic.cs: Fix text redenring when button is
2527         pressed.
2528
2529 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
2530
2531         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
2532         and later navigate by mouse. Fixes #79528.
2533
2534 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
2535
2536         * ToolBar.cs: Set default value for TabStop to false in
2537         constructor, it fixes remaining behavior of bug #79863.
2538
2539 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2540
2541         * MdiWindowManager.cs:
2542         * InternalWindowManager.cs:
2543         - Moved a few methods specific to Mdi from 
2544         InternalWindowManager to MdiWindowManager.
2545         Fixes #79996.
2546         
2547 2006-11-21  Chris Toshok  <toshok@ximian.com>
2548
2549         * XplatUIOSX.cs: stub out InvalidateNC.
2550
2551         * XplatUIWin32.cs: implement InvalidateNC using the call I found
2552         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
2553
2554         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
2555
2556         * XplatUIDriver.cs: add InvalidateNC abstract method.
2557
2558         * XplatUI.cs: add InvalidateNC.
2559
2560 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
2561
2562         * ToolBar.cs: Invalidate complete button area when pressed status 
2563         was changed.
2564         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
2565         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
2566         by 1 when button is pressed.
2567
2568 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
2569
2570         * ToolButton.cs: Invalidate middle of DropDown button when
2571         ToolBar theres DropDownArrows.
2572         * ThemeWin32Classic.cs: Change position of DropDown arrow and
2573         fix DropDown drawing operations.
2574
2575 2006-11-20  Chris Toshok  <toshok@ximian.com>
2576
2577         * NativeWindow.cs: fix the formatting of functions ('{' on the
2578         following line), and enable the thread exception dialog.
2579
2580         * Application.cs: remove the duplicate exception catching from
2581         here.
2582
2583 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
2584
2585         * Toolbar.cs: Triggers button click event when click on icon
2586         of dropdown ToolBarButton. Fixes #79912.
2587         
2588 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2589
2590         * Theme.cs:
2591         * ThemeWin32Classic.cs:
2592         - Added a property WindowBorderFont to enable themeing
2593           of mdi child windows' Text.
2594           
2595 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2596
2597         * InternalWindowManager.cs:
2598         * Form.cs:
2599         * MdiClient.cs:
2600         * MdiWindowManager.cs: 
2601         - If mdi child is maximized, set mdi parent's
2602           text to "Parent - [Child]". Fixes #79770.
2603         - If there is any maximized mdi child windows, only the active 
2604           window (and any new windows) is maximized, the rest are normal.
2605         - On a WindowState change only save mdi child's window bounds 
2606           if the old window state was normal. Fixes #79774.
2607         - The scroll bars are now calculated on hopefully all
2608           necessary events. Fixed #79771 / #79844->6 / #79906.
2609         - MdiClient.SizeScrollBars() now takes into account docked 
2610           controls in the parent when calculating available space.
2611         - InternalWindowManager now always repaints the entire title
2612           area. Fixes #79844->1/4/5.
2613         - Added RequestNCRecalc on mdi child windowstate changes.
2614           Fixes #79772.
2615
2616 2006-11-20  Mike Kestner  <mkestner@novell.com>
2617
2618         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
2619         in the MouseUp handler of the listbox and move the return handling
2620         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
2621
2622 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
2623
2624         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
2625
2626 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
2627
2628         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
2629           working in 1.2.x anymore. So, updated.
2630
2631 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
2632
2633         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
2634         NumberGroupSeparator of current culture instead of assuming en-US.
2635         Fixed bug #79967.
2636
2637 2006-11-17  Mike Kestner  <mkestner@novell.com>
2638
2639         * Control.cs: Add the concept of implicit bounds setting so that
2640         dock/undock round trips preserve explicitly set size/locations.
2641         Fixes #79313.
2642
2643 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
2644
2645         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
2646           can't handle those filters. (Fixes bug #79961)
2647
2648 2006-11-17  Chris Toshok  <toshok@ximian.com>
2649
2650         [ fixes the exit/crashes associated with #79835.  it's clearly
2651         suboptimal though, we need to figure out a better way to solve
2652         this. ]
2653         
2654         * PrintPreviewControl.cs: deal with the new invalid printer
2655         exceptions.
2656
2657         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
2658         and return false (so CommonDialog.ShowDialog doesn't actually show
2659         the form.)
2660
2661         * PrintDialog.cs: enable/disable the Ok button depending on
2662         whether or not the printer is valid.
2663
2664         * CommonDialog.cs (ShowDialog): only actually show the form if
2665         RunDialog returns true.
2666
2667 2006-11-17  Jackson Harper  <jackson@ximian.com>
2668
2669         * TextControl.cs: When soft splitting a line, mark it as a soft
2670         split line. Also carry over the current line break to the next
2671         line.
2672
2673 2006-11-17  Chris Toshok  <toshok@ximian.com>
2674
2675         * XplatUIX11.cs: when scrolling a window with an invalid area, we
2676         only want to shift the part of the invalid area that overlaps the
2677         area we're scrolling.  we also don't want to clear the invalid
2678         area unless the invalid area was entirely contained within the
2679         scrolling area.
2680
2681 2006-11-16  Chris Toshok  <toshok@ximian.com>
2682
2683         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
2684         also make sure to free the memory returned by XGetWindowProperty
2685         in GetText().
2686
2687         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
2688
2689 2006-11-16  Chris Toshok  <toshok@ximian.com>
2690
2691         * XplatUI.cs: add a new super secret way to get at the totally
2692         unsupported X11 backend.
2693
2694 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
2695
2696         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
2697
2698 2006-11-16  Jackson Harper  <jackson@ximian.com>
2699
2700         * TreeView.cs: Allow more explicit setting of top node position
2701         for scrollbars. Slower algo, but more accurate.
2702         - CollapseAll should maintain the current top node.
2703         * TextBoxBase.cs: When positioning the caret, use the line, pos
2704         method, since the x, y method does not grab the correct tag, and
2705         the caret height never gets set correctly. (Maybe I should just do
2706         away with the caret having its own height, and always use the
2707         carets current tag for height).
2708
2709 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
2710
2711         [Fixes 79778, 79923]
2712
2713         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
2714         Parent to the FosterParent instead.
2715
2716 2006-11-16  Jackson Harper  <jackson@ximian.com>
2717
2718         * TreeView.cs: Need to recalc the topnode when we expand or
2719         collapse. The scrolling methods can't handle this on their own,
2720         since they use differences between the last scroll position, and
2721         those difference get completely messed up since we are expanding
2722         nodes.  This problem should probably be fixed in the scrolling
2723         methods, so they can figure out exactly where they are, but this
2724         will slow things down a little.
2725         * ThemeWin32Classic.cs: Special case for groupboxes with empty
2726         strings, makes nunit-gui look a lot nicer.
2727
2728 2006-11-16  Chris Toshok  <toshok@ximian.com>
2729
2730         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
2731         the broken multithreaded event handling we have in here.  File
2732         this entry under "Why we should move to the new X11 backend".
2733
2734         Any thread can make it into UpdateMessageQueue, which gets events
2735         from the X socket - some of which could belong to hwnds being
2736         managed by a different thread.  We can also have multiple threads
2737         in UpdateMessageQueue at the same time, with each one reading from
2738         the X socket.  This leads to many problems, with the following
2739         solutions:
2740
2741         We can't use hwnd.Queue.Enqueue anywhere in here and must use
2742         EnqueueLocked.
2743
2744         The MotionNotify compression we do can't work across threads
2745         (without locking the entire queue, perhaps) since we call
2746         hwnd.Queue.Peek, so we just punt and don't compress motion events
2747         unless the owning thread is the one which got the X event.
2748
2749         ConfigureNotify is another fun one, since it modifies the hwnd's
2750         bounds and then enqueues the event.  We add a lock to Hwnd which
2751         is held when setting configure_pending to true (and enqueuing the
2752         event).
2753
2754         There is a race wrt the wake socket.  we need to make sure that
2755         only 1 thread is waiting on that socket, or else a thread could
2756         sleep waiting for data that never comes.  It's difficult (but not
2757         impossible) to make happen, because it seems to require something
2758         like the following:
2759
2760             1. Thread 1 polls on wake_receive
2761         
2762             2. poll returns saying there's data to be read on
2763                wake_receive.
2764         
2765             3. Thread 2 polls on wake_receive and immediately returns
2766                saying there's data to be read.
2767
2768             4. Thread 2 reads the wakeup byte from wake_receive
2769
2770             5. Thread 1 attempts to read the wakeup byte from
2771                wake_receive.
2772
2773             6. Thread 2 exits (due to a form closing, perhaps).
2774
2775             7. Thread 1 blocks forever.
2776         
2777         Fun, eh?
2778
2779         Fixing the Expose handling isn't done yet, and the races inherent
2780         in that piece of code are responsible for the drawing mistakes you
2781         see when generating expose events in a MT app (like NPlot).  This
2782         one is the likely to be the hardest to bandaid, and it doesn't
2783         appear to cause anything but drawing problems.  The other issues
2784         caused apps to exit or hang.
2785
2786         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
2787         called from a different thread than the one that should be calling
2788         these functions.
2789
2790         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
2791
2792 2006-11-15  Chris Toshok  <toshok@ximian.com>
2793
2794         * Application.cs: null out the context's MainForm when we exit
2795         RunLoop.  Fixes a newly checked in unit test as well as the last
2796         ODE from bug #79933.
2797
2798 2006-11-15  Chris Toshok  <toshok@ximian.com>
2799
2800         * Form.cs (set_Owner): allow a null value so we can clear the
2801         form's owner.
2802         (Dispose): set all our owned_form's Owner properties to null, and
2803         clear the owned_forms collection.
2804         (WM_CLOSE): clean up this a little bit.. still not right though.
2805
2806         * ApplicationContext.cs: OnMainFormClosed should only call
2807         ExitThreadCore if the main form isn't recreating.  Fixes unit
2808         test.
2809
2810 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
2811
2812         [Fixes 78346]
2813
2814         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
2815
2816 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
2817
2818         [Fixes 79433]
2819
2820         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
2821         keep popup window types from stealing focus from the main form
2822         on Windows.
2823
2824         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
2825
2826         * MenuAPI.cs: Set above flag to true.
2827
2828 2006-11-15  Chris Toshok  <toshok@ximian.com>
2829
2830         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
2831         the button being released is not in wParam.
2832
2833 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
2834
2835         * Form.cs: Add the released button to MouseEventArgs.Button
2836         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
2837         on Win32.
2838
2839 2006-11-15  Chris Toshok  <toshok@ximian.com>
2840
2841         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
2842         GetText().  untested because it's unused in our implementation.
2843         Control.Text always caches the text, even if
2844         ControlStyles.CacheText is not set.
2845
2846         fixes bug #79939.
2847
2848 2006-11-15  Chris Toshok  <toshok@ximian.com>
2849
2850         [ fixes #79933 ]
2851         
2852         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
2853         message.  no hiding, no disposing.
2854
2855         in the WM_CLOSE handler, hide the form if it's modal.
2856
2857 2006-11-15  Chris Toshok  <toshok@ximian.com>
2858
2859         * XplatUIX11.cs: use AddExpose instead of sending a message.
2860         fixes textbox border drawing.
2861
2862 2006-11-15  Chris Toshok  <toshok@ximian.com>
2863
2864         * PropertyGridView.cs: keep from crashing on mouse move/down when
2865         the property grid is empty.
2866
2867 2006-11-14  Jackson Harper  <jackson@ximian.com>
2868
2869         * TextControl.cs: Make PageUp and PageDown more like the MS
2870         versions.
2871         * TextBoxBase.cs: When we set the text property position the
2872         cursor at the beginning of the document.
2873
2874 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2875
2876         * Form.cs: if a mdi child's WindowState has changed
2877         before it's creation, it would display wrong control
2878         buttons.
2879         
2880 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
2881
2882         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
2883           (Fixes bug #79927)
2884
2885 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
2886
2887         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
2888         the window gets to paint its borders even if the window is
2889         getting smaller.
2890         
2891         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
2892         otherwise the old control buttons would still be painted 
2893         if the window gets bigger.
2894         
2895         * PaintEventArgs.cs: add an internal method so that the clip 
2896         rectangle can be changed.
2897         
2898 2006-11-13  Chris Toshok  <toshok@ximian.com>
2899
2900         [ fixes bug #79745 ]
2901         
2902         * NotifyIcon.cs: lots of cleanup.
2903
2904         * X11Structs.cs: add an enum for XEMBED messages.
2905
2906         * XplatUIX11.cs: reindent one of the giant switch statements, it
2907         was taking up an additional tab stop, and this file is already way
2908         too wide for my laptop's screen.
2909
2910         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
2911         we get it, resize the hwnd to the WMNormalHints max_width/height.
2912
2913 2006-11-13  Jackson Harper  <jackson@ximian.com>
2914
2915         * TextBoxBase.cs: Compute the value changes for the mouse wheel
2916         teh simple way.
2917
2918 2006-11-13  Chris Toshok  <toshok@ximian.com>
2919
2920         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
2921         #79898.  force a reference to the Region to stick around so the
2922         unmanaged object isn't collected (rendering our handle in the MSG
2923         stale).
2924
2925 2006-11-13  Chris Toshok  <toshok@ximian.com>
2926
2927         * XplatUIX11.cs: fix #79917 for window managers which support
2928
2929         using XStoreName on the raw utf8, and we need to convert to
2930         COMPOUND_TEXT if it's non-latin1.
2931
2932 2006-11-13  Chris Toshok  <toshok@ximian.com>
2933
2934         * Form.cs (set_DialogResult): we need to set closing to false if
2935         we're setting our result to None.  fixes bug #79908.
2936
2937 2006-11-13  Jackson Harper  <jackson@ximian.com>
2938
2939         * TextControl.cs: When formatting text, compute the adjusted tag
2940         lengths correctly, using FindTag for the end tag instead of trying
2941         to figure it out outselves.
2942         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
2943         the item, ItemHeight doesn't work, because trees with large
2944         imagelists use those for their height
2945         * TreeView.cs: ActualItemHeight factors in the image height
2946         - compute left edge of checkboxes correctly
2947         - when expanding/collapsing move the bottom down one pixel, so we
2948         aren't moving part of the node
2949
2950 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
2951
2952         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
2953         stack in PaintEventStart so that it won't get disposed by the gc
2954         before reaching PaintEventEnd.
2955
2956 2006-11-13  Jackson Harper  <jackson@ximian.com>
2957
2958         * TextBoxBase.cs: Don't select the word if we are on a line with
2959         no text.
2960         - We don't need to position the caret on mouse up, since the mouse
2961         move handler should be doing this
2962         - When double clicking a blank line, the caret is advanced to the
2963         next line.
2964
2965 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
2966
2967         * TreeNodeCollection.cs: Avoid duplicating indexer code.
2968
2969 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
2970
2971         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
2972         Fixes part of bug #79910.
2973
2974 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
2975
2976         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
2977           (bug #79903). Some minor string updates to match ms.
2978
2979 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
2980
2981         * FileDialog.cs: Don't add an extension if the filename
2982           already ends with that extension.
2983
2984 2006-11-10  Jackson Harper  <jackson@ximian.com>
2985
2986         * TreeView.cs: Use the currently highlighted node for the
2987         BeforeSelect event.
2988         * TextBoxBase.cs: There is no need to expand selection on
2989         MouseMove.
2990         - CanUndo means 'is there any undo operations', not 'is undo
2991         allowed on this textcontrol. Fixed ClearUndo unit test.
2992
2993 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
2994
2995         * Button.cs: only perform click when button is Selectable (so as 
2996         not to activate default buttons when they're disabled)
2997         
2998         * Control.cs: Rewrite of the SelectNextControl and related 
2999         methods. HandleClick now selects next control if the current one
3000         is being disabled.
3001         
3002         * Form.cs: OnActivated selects next active control only if Load 
3003         has already occurred. If Load hasn't run, there's no point in 
3004         selecting here, Load might change the state of controls.
3005         
3006         * FocusTest.cs: Tests marked as working again for these fixes
3007
3008 2006-11-10  Chris Toshok  <toshok@ximian.com>
3009
3010         * XplatUIX11.cs: a couple of fixes.
3011
3012         - use XInternAtoms with almost all the atoms we need to register,
3013         instead of many, many calls to XInternAtom.  should help a bit on
3014         startup time, at the expense of making the code look a little
3015         worse.
3016
3017         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
3018         isn't reparented (which seems to be a clue that we're running fon
3019         compiz) and they have an Owner form.  This fixes the tool windows
3020         in paint.net when running under compiz.
3021
3022         - when setting the opacity of a window, support both the case
3023         where the window has been reparented and also when it hasn't been.
3024         Since compiz/beryl doesn't seem to reparent windows, and these are
3025         the only window managers which support translucency, I'm not sure
3026         why we need the hwnd.reparented case at all.. but leave it in.
3027         now we get translucent windows in paint.net under compiz/beryl.
3028
3029 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
3030
3031         * FileDialog.cs: Always return the value for FilterIndex that
3032           was set. Internally convert it to values that make sense.
3033
3034 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
3035         
3036         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
3037
3038 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
3039
3040         * Toolbar.cs: Change default value of DropDownArrows to true, the 
3041         signature still using false to make it compatible with MS but the 
3042         initial value is true. Fixes #79855.
3043
3044 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
3045
3046         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
3047           only available on Linux.
3048
3049 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
3050
3051         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
3052         reduce number of calls to redraw method during toolbar creation.
3053
3054 2006-11-09  Mike Kestner  <mkestner@novell.com>
3055
3056         * ListView.cs : raise SelectedIndexChanged when an item is selected
3057         programmatically via the Item.Selected property.  Gert's nice 
3058         ListViewSelectedIndexChanged test fixture now runs clean.
3059
3060 2006-11-09  Mike Kestner  <mkestner@novell.com>
3061
3062         * ListView.cs : raise SelectedIndexChanged when a selected item is
3063         removed from the item collection using Remove or RemoveAt.
3064
3065 2006-11-09  Mike Kestner  <mkestner@novell.com>
3066
3067         * ListView.cs : raise SelectedIndexChanged once per selected item
3068         for compat with MS.  Fixes #79849+.
3069
3070 2006-11-09  Chris Toshok  <toshok@ximian.com>
3071
3072         * TabControl.cs: initialize row_count to 0, and set it to 1 when
3073         we need to (if we have any tab pages).  Fixes unit test.
3074
3075 2006-11-09  Chris Toshok  <toshok@ximian.com>
3076
3077         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
3078         width is 0, not 3.  Fixes a unit test.
3079
3080 2006-11-09  Mike Kestner  <mkestner@novell.com>
3081
3082         * ListView.cs : use Implicit scrollbars so that focus isn't 
3083         stolen from the listview when they are clicked. Fixes #79850.
3084
3085 2006-11-09  Chris Toshok  <toshok@ximian.com>
3086
3087         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
3088         have a root item.  Fixes #79879.
3089
3090 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
3091
3092         * FileDialog.cs:
3093           - Fix ToString ()
3094           - An ArgumentException is now thrown if a wrong filter
3095             is applied (matches ms). The previous filter doesn't change
3096             anymore if an exception is thrown.
3097           - Changing the FileName property also affects FileNames
3098         * ColorDialog.cs: The length of the CustomColors array is always
3099           16. It doesn't matter if we use a smaller array or null to update
3100           or change the custom colors property.
3101         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
3102           for RootFolder if we get a undefined value.
3103
3104 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3105
3106         * StatusBarPanel.cs: 
3107         - Width is set to MinWidth if Width is smaller than
3108         MinWidth. Fixes #79842.
3109         - MinWidth now always overrides Width (MSDN says MinWidth
3110         is set to Width when AutoSize = None, but they do not 
3111         behave like that).
3112         - Style has now the the correct default value.
3113         
3114 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3115  
3116         * TrackBar.cs: 
3117         - The control is completely invalidated on 
3118         Got/LostFocus to draw the focus rectangle correctly.
3119         - When AutoSize then height is always 45 (width for 
3120         vertical controls).
3121         
3122         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
3123         on the mouse when moved and it doesn't move when grabbed
3124         until the mouse moves as well. Also fixed some wrong 
3125         calculations when clicking on the thumb (control thought
3126         click was outside of thumb and didn't grab it).
3127         Fixes some of the issues in #79718.
3128
3129 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
3130
3131         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
3132
3133 2006-11-08  Chris Toshok  <toshok@ximian.com>
3134
3135         * PropertyGridView.cs: only call ToggleValue if the item is not
3136         readonly.
3137
3138 2006-11-08  Jackson Harper  <jackson@ximian.com>
3139
3140         * TextBoxBase.cs: The RichTextBox and textbox have very different
3141         word selection methods.  Implement the textbox's simple word
3142         selection here, and let the RichTextBox override and provide it's
3143         own.
3144         - Don't do extra selection on mouseup
3145         * RichTextBox.cs: Use the documents word selection algorithm, I
3146         think ideally, this function will be pulled into the
3147         RichTextBox.cs code someday.
3148
3149 2006-11-08  Chris Toshok  <toshok@ximian.com>
3150
3151         * RootGridEntry.cs: new class to represent GridItemType.Root.
3152
3153         * CategoryGridEntry.cs: reformat, and add boilerplate.
3154         
3155         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
3156         returns the UI parent anyway, and we need special handling to
3157         implement the GetTarget method in the face of it.  Also, implement
3158         Select().
3159
3160         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
3161         a root grid item, and use that instead of PropertyGrid.grid_items.
3162         Also, make use of TypeConverters (and add limitted support for
3163         ICustomTypeDescriptors) when initially populating the grid.
3164         Arrays now show up more or less properly.
3165
3166 2006-11-08  Chris Toshok  <toshok@ximian.com>
3167
3168         * Application.cs: set the modal dialog to non modal after we close
3169         it.  Fixes bug #79866.
3170
3171 2006-11-08  Jackson Harper  <jackson@ximian.com>
3172
3173         * TextControl.cs: When combining lines carry over the line end
3174         style from the end line.
3175         - Invalidate the selected area when setting it, if it is visible.
3176         * TextBoxBase.cs: Only rich text box can do full line selects.
3177         - Make sure to set the cursor position when there is a click,
3178         otherwise two clicks in separate areas could cause a large chunk
3179         to be selected.
3180
3181 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
3182
3183         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
3184         Fixes #79863.
3185
3186 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
3187
3188         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
3189         time. Remove tooltips when ToolButton click events.  Fixes #79856.
3190
3191 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
3192
3193         * MenuAPI.cs: Ignore right click for menu actions and fixes
3194         menu border when clicked.  Fixes #79846.
3195
3196 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
3197
3198         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
3199         MouseState after create wParam for message, this fixes mouse button 
3200         equal none in mouse up events.
3201         
3202 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
3203
3204         * Control.cs : Focus() now calls Select to set the Container's
3205         Active Control and to give it focus. To avoid infinite recursion
3206         (because ActiveControl also calls Focus at one point), a check 
3207         is made in Focus with the help of a new internal variable
3208         is_focusing.
3209
3210 2006-11-07  Mike Kestner  <mkestner@novell.com>
3211
3212         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
3213         if there's a selection.  Fixes #79849.
3214
3215 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
3216
3217         * PropertyGrid.cs: Avoid fixed height of help description label.
3218         Fixes part of bug #79829.
3219
3220 2006-11-07  Chris Toshok  <toshok@ximian.com>
3221
3222         * XplatUIX11.cs: fix #79790 again, by using the
3223         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
3224
3225 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
3226
3227         * ToolBar.cs: Fix left click checking.
3228
3229 2006-11-07  Chris Toshok  <toshok@ximian.com>
3230
3231         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
3232
3233 2006-11-07  Chris Toshok  <toshok@ximian.com>
3234
3235         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
3236         PropertyManager unit tests.
3237
3238         * PropertyManager.cs: make property_name internal.
3239
3240 2006-11-07  Chris Toshok  <toshok@ximian.com>
3241
3242         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
3243         pass a unit test.  Also, don't set image_index to anything in
3244         response to setting the ImageList property.
3245
3246 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
3247
3248         * ToolBar.cs: Ignore click events when mouse button is not a
3249         left button, only accepts other button for dropdown menus.  
3250         Fixes #79854.
3251
3252 2006-11-07  Chris Toshok  <toshok@ximian.com>
3253
3254         * DataGrid.cs: make the back and parent row buttons a little less
3255         ugly.
3256
3257 2006-11-07  Jackson Harper  <jackson@ximian.com>
3258
3259         * TextBoxBase.cs: When converting to Text don't put line breaks in
3260         for soft line breaks.
3261         * TextControl.cs: There is an initial "fake" line in the document,
3262         this is now a soft break line, so that an extra line feed doesn't
3263         get added to the end of documents.
3264
3265 2006-11-07  Chris Toshok  <toshok@ximian.com>
3266
3267         [ fix bug #79778 ]
3268         
3269         * CurrencyManager.cs: if the list is readonly, don't bother
3270         checking if IBindingList.AllowNew is true.
3271
3272         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
3273         for non-DataRowView datasources..  or rather, make it not crash.
3274         (DataGridPaintRelationRow): make sure we limit the row painting to
3275         the area not covered by the row header, and make our cell width at
3276         least large enough to cover the relation area.  This allows grids
3277         that have relations but no rows to render correctly.
3278         (DataGridPaintRowContents): same type of changes here.
3279         (SetDataSource): move back to always calling
3280         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
3281         navigating back through relations.
3282         (HitTest): handle the case where we have no cells but have
3283         relations.  Right now we generate a hit in cell 0 of whatever the
3284         row is, not sure if this is strictly correct, but it works for our
3285         purposes.
3286         
3287         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
3288         bother doing anything.
3289
3290 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
3291
3292         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
3293         early version of StatusStrip.  Not responsible for eaten
3294         application or firstborn children.
3295
3296 2006-11-06  Chris Toshok  <toshok@ximian.com>
3297
3298         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
3299         call GetTabRect with a -1 index.  Fixes #79847.
3300
3301 2006-11-06  Jackson Harper  <jackson@ximian.com>
3302
3303         * TreeNodeCollection.cs: Update scrollbars after clearing.
3304
3305 2006-11-06  Chris Toshok  <toshok@ximian.com>
3306
3307         * NumericUpDown.cs: fix the ToString method for some unit test
3308         love.
3309
3310 2006-11-06  Chris Toshok  <toshok@ximian.com>
3311
3312         * PropertyGrid.cs:
3313         - set the initial SelectedGridItem if we can.
3314
3315         - Exclude non-mergable properties only if we're merging > 1
3316         object.  Merging 1 object isn't really merging, obviously.
3317
3318         - Handle PropertySort.NoSort just like Alphabetical, which is
3319         wrong of course, but at least gets things on the screen.
3320         
3321         * PropertyGridView.cs:
3322         - Add method "FindFirstItem" which finds the first property grid
3323         item, so we can select it by default.
3324
3325         - make use of GridEntry.CanResetValue.
3326
3327         - Don't call RedrawBelowItemOnExpansion here anymore, the
3328         individual GridEntry's will do that.
3329
3330         - Remove the ITypeDescriptorContextImpl internal class.
3331         
3332         * GridEntry.cs:
3333         - this class needs to implement ITypeDescriptorContext, as it's
3334         what MS's PropertyDescriptorGridEntry does, which means we can
3335         remove the ITypeDescriptorContextImpl internal class from
3336         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
3337
3338         - keep a reference to our PropertyGridView, and move the call to
3339         RedrawBelowItemOnExpansion here from PGV.  This means
3340         programmaticly setting Expanded actually does something visible.
3341
3342         - add a CanResetValue() function which takes into account our
3343         possibly multiple "selected_objects" in the merged case.  Shifting
3344         PropertyGridView to use this method fixes another unreported
3345         crasher found running the test for #79829.
3346
3347         - when Top or Bounds is updated, make sure the PropertyGridTextBox
3348         is updated to reflect this.
3349
3350         * CategoryGridEntry.cs: the ctor takes the PGV now.
3351         
3352 2006-11-06  Jackson Harper  <jackson@ximian.com>
3353
3354         * TextControl.cs: These are 1 based.
3355         * TextBoxBase.cs: When setting the selected text, don't change the
3356         selected text tags, this is done by ReplaceText, just position the
3357         cursor at the end of the new text.
3358
3359 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
3360
3361         * ListView.cs: Allow label edit only when, when LabelEdit is
3362           set to true.
3363
3364 2006-11-06  Jackson Harper  <jackson@ximian.com>
3365
3366         * TextControl.cs: If a suitable wrapping position isn't found,
3367         just wrap right in the middle of a word.
3368
3369 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
3370
3371         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
3372           bug #79820.
3373
3374 2006-11-06  Jackson Harper  <jackson@ximian.com>
3375
3376         * TreeView.cs: Can't use the VisibleCount property when setting
3377         scrollbar heights, because this doesn't take into account whether
3378         or not the horz scrollbar just came visible.
3379
3380 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
3381
3382         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
3383         activated.  Fixes #79369, #79832.
3384
3385 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
3386
3387         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
3388           had to remove support for links that point to a directory. FileInfo
3389           returns no usefull information (means, the directory they point to)
3390           for such links. Replaced some empty string ("") with String.Empty.
3391
3392 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
3393
3394         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
3395         NullReferenceException when attempting to remove node that is not in
3396         collection. Throw NullReferenceException when null is passed to 
3397         Remove. Allow first element of the collection to be removed. Fixes
3398         bug #79831.  In GetEnumerator ().Current return null if positioned 
3399         before the first element of the collection. In GetEnumerator ().Reset,
3400         position before first element of the collection.
3401
3402 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
3403
3404         * PropertyGrid.cs: To match MS, remove default title and description
3405         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
3406         buttons.
3407
3408 2006-11-04  Chris Toshok  <toshok@ximian.com>
3409
3410         * Theme.cs: add a Clamp method, just for kicks.
3411
3412         * ThemeWin32Classic.cs: clamp all color components to [0..255].
3413
3414 2006-11-04  Chris Toshok  <toshok@ximian.com>
3415
3416         * Form.cs: if the form isn't visible, Close() does nothing.
3417
3418 2006-11-03  Chris Toshok  <toshok@ximian.com>
3419
3420         * Form.cs (Close): if the form is modal, don't Dispose of it, only
3421         Hide it.
3422         (WndProc): don't Dispose after handling the WM_CLOSE message.
3423
3424         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
3425         them as such, instead of using casts from Control to Form.  Also,
3426         don't Dispose of the modal dialog when we fall out of the loop -
3427         Close() it instead.
3428
3429         fixes bug #79813.
3430
3431 2006-11-03  Chris Toshok  <toshok@ximian.com>
3432
3433         * Control.cs (Dispose): only go through the dispose thing if we're
3434         @disposing, and we haven't already been disposed.  Fixes bug
3435         #79814.
3436
3437         * Form.cs: no reason to call "base.Dispose()" here instead of
3438         "Dispose()".
3439
3440 2006-11-03  Mike Kestner  <mkestner@novell.com>
3441
3442         * ComboBox.cs : use ToString instead of casts in AddItem for
3443         sorting functionality.  Fixes #79812.
3444
3445 2006-11-03  Chris Toshok  <toshok@ximian.com>
3446
3447         * Application.cs: pave the way for actually using the thread
3448         exception dialog.  it's ifdefed out at the moment.
3449
3450 2006-11-03  Chris Toshok  <toshok@ximian.com>
3451
3452         * ThreadExceptionDialog.cs: until we get a better layout, actually
3453         hide the details textbox and label when we shouldn't see them.
3454
3455 2006-11-03  Jackson Harper  <jackson@ximian.com>
3456
3457         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
3458         multiline textboxes anymore.  This method also determines the
3459         width/height of a textboxes canvas area.
3460         - Sorta a revert of the last patch.  For multiline just position
3461         the controls, then bail.  This way the scrollbar width won't be
3462         altered.
3463
3464 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
3465
3466         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
3467         it dont need.  Fixes #79537.
3468
3469 2006-11-02  Jackson Harper  <jackson@ximian.com>
3470
3471         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
3472         send the status after firing the DndOver event.
3473
3474 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3475
3476         * TrackBar.cs: Now orientation only switches height / width if
3477         the control's handle is created (Win32 does it like this). Also 
3478         fixed a typo in ToString() for a test to pass, changed the 
3479         exception thrown in set_LargeChange and set_SmallChange to 
3480         match Win32 behaviour, and added TrackBar tests to the unit 
3481         tests.
3482
3483 2006-11-02  Chris Toshok  <toshok@ximian.com>
3484
3485         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
3486         not _NET_WM_STATE_NO_TASKBAR.
3487
3488 2006-11-02  Jackson Harper  <jackson@ximian.com>
3489
3490         * TextControl.cs: Increment count by one, since in the update view
3491         count - 1 is used.
3492
3493 2006-11-02  Jackson Harper  <jackson@ximian.com>
3494
3495         * TextBoxBase.cs: Use client rectangle not bounds for checking if
3496         the mouse is in the client rectangle (duh).
3497
3498 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
3499         
3500         * TrackBar.cs: Fixed trackbar jumping around when clicking
3501         on it - the trackbar was not detecting correctly at which
3502         side of the thumb the click was done. (fixes #79718)
3503
3504 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
3505
3506         * ListBox.cs: scroll visible area when change SelectedIndex to
3507         a non visible area.  Fixes #79481.
3508
3509 2006-11-01  Jackson Harper  <jackson@ximian.com>
3510
3511         * TextControl.cs: When replacing the selection move the selection
3512         start/end/anchor to the end of the new text.
3513
3514 2006-11-01  Jackson Harper  <jackson@ximian.com>
3515
3516         * XplatUIWin32.cs: When setting the parent change the controls
3517         visibility to it's visibility flag, not to it's old parents
3518         visibility (.Visible walks the parent chain).
3519
3520 2006-11-01  Chris Toshok  <toshok@ximian.com>
3521
3522         * XplatUIX11.cs: revert the #79790 fix, as the simple.
3523         XSetTransientForHint fix breaks paint .net's tool windows.  more
3524         work needed for that one.
3525
3526 2006-11-01  Chris Toshok  <toshok@ximian.com>
3527
3528         * ScrollBar.cs: throw ArgumentException instead of Exception in
3529         LargeChange/SmallChange setters.  fixes unit tests.
3530
3531 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
3532
3533         * ContainerControl.cs: reverted rev.67183 (which was itself
3534         a reversion of rev.66853... eh).
3535         
3536         * Control.cs: Fixes Reflector hang by changing Focus() call
3537         to what it was before rev.66643 (calling Select() here sets 
3538         ActiveControl, which in some situations calls back Focus and 
3539         eventually does a stack overflow). Temp fix.    
3540         Changes to GetNextControl() to not look for children to select when
3541         parent cannot be selectable (so it looks for siblings instead)  
3542         
3543 2006-10-31  Mike Kestner  <mkestner@novell.com>
3544
3545         * CheckedListBox.cs : off by one error in returned index from
3546         ObjectCollection.Add.  Fixes #79758.
3547
3548 2006-10-31  Chris Toshok  <toshok@ximian.com>
3549
3550         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
3551         calls for the textbox/spinner, to keep from recursing to the point
3552         where we crash.  Fixes #79760.
3553
3554 2006-10-31  Chris Toshok  <toshok@ximian.com>
3555
3556         * ListControl.cs (set_SelectedValue): don't throw exceptions on
3557         null/"" value, just return.  matches ms's behavior and fixes some
3558         failing tests.
3559
3560 2006-10-31  Chris Toshok  <toshok@ximian.com>
3561
3562         * Control.cs (set_Capture): make a logic a little easier to
3563         follow.
3564
3565         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
3566         if it's being destroyed.  A necessary fix surely, but a bandaid
3567         also, to fix the stuck capture problem in bug #78413.
3568
3569 2006-10-31  Chris Toshok  <toshok@ximian.com>
3570
3571         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
3572         convention of clearing hwnd.ClientRect when we set the
3573         width/height (so it'll be recalculated by Hwnd).
3574
3575 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
3576
3577         * ContainerControl.cs: reversed Contains check from
3578         ActiveControl due to hanging problems. This fix
3579         partly regresses #79667 (button does not have
3580         initial focus), so this might be a symptom for 
3581         a larger parenting problem (set_ActiveControl
3582         is being called but the child control does
3583         not have the parent set yet?)   
3584         
3585 2006-10-31  Mike Kestner  <mkestner@novell.com>
3586
3587         * MenuAPI.cs : fix keynav when menu is click activated.
3588
3589 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
3590
3591         * ToolStrip*: Version 0.2.
3592
3593         * MenuStrip.cs: Version 0.1.
3594
3595         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
3596
3597 2006-10-30  Chris Toshok  <toshok@ximian.com>
3598
3599         [ fixes the oversized notify icon issue in bug #79745 ]
3600         
3601         * NotifyIcon.cs: scale the icon down to the size we're given by
3602         the XplatUI layer (this would be faster if we did it once instead
3603         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
3604         since it's never invoked.
3605
3606         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
3607         pixels high by default, so let's hardcode our systray icon to that
3608         size.  The SYSTEM_TRAY protocol should really have a way for
3609         client apps to query for the correct icon size.. but oh well.  A
3610         couple of patches to deal with the screwy client_window ==
3611         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
3612         instance, and also make sure we don't XSelectInput twice).
3613
3614 2006-10-30  Chris Toshok  <toshok@ximian.com>
3615
3616         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
3617         recreating forms.  Control recreation is the bane of my existence.
3618         Fix it in a way that keeps everyone happy.
3619
3620 2006-10-30  Chris Toshok  <toshok@ximian.com>
3621
3622         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
3623         just non-CHILD ones.  otherwise sometimes scrollbars end up with
3624         client_windows not being resized to the proper size (ReportBuilder
3625         shows this extremely well).
3626
3627 2006-10-30  Chris Toshok  <toshok@ximian.com>
3628
3629         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
3630         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
3631         showing up in the gnome taskbar.  Fixes bug #79790.
3632
3633 2006-10-30  Chris Toshok  <toshok@ximian.com>
3634
3635         * ApplicationContext.cs: guard against a NRE.
3636
3637         * Application.cs: null out the old MainForm for the context, so we
3638         don't try to use it again once it's disposed.  Fixes bug #79783.
3639
3640 2006-10-30  Chris Toshok  <toshok@ximian.com>
3641
3642         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
3643         BindingContext, set the data source directly, otherwise do the
3644         lazy approach - the actual ListManager will be created when we get
3645         a BindingContext. Fixes bug #79700.
3646
3647 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
3648
3649         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
3650           XplatUIX11.cs: Remove old 2 parameter SetVisible.
3651
3652         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
3653
3654 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
3655
3656         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
3657         of SetVisible that allows a window to be shown, but not activated.
3658         This is needed on Windows for MenuStrip, and can probably be used
3659         with MainMenu and ComboBox to fix the focus stealing issues on
3660         Windows.
3661
3662         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
3663
3664 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
3665
3666         * PictureBox.cs: Fix the output of the ToString method.
3667
3668 2006-10-29  Chris Toshok  <toshok@ximian.com>
3669
3670         * Control.cs (get_TopLevelControl): fix bug #79781.
3671
3672 2006-10-29  Chris Toshok  <toshok@ximian.com>
3673
3674         * ListControl.cs (set_DataSource): throw Exception here, not
3675         ArgumentException, to match MS behavior.
3676
3677 2006-10-29  Chris Toshok  <toshok@ximian.com>
3678
3679         * Form.cs: remove the try-catch's around calls to GetWindowState.
3680         We can just check the return value.
3681
3682         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
3683         Instead return -1.
3684
3685         * XplatUI.cs: Add note about additional return value for
3686         GetWindowState.
3687
3688 2006-10-29  Chris Toshok  <toshok@ximian.com>
3689
3690         * Control.cs (CreateHandle): when we create our handle, we also
3691         create the handles of our child controls.  Fixes one of the
3692         Control unit tests (CH11).
3693
3694 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
3695
3696         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
3697
3698 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
3699
3700         * ThemeClearlooks.cs: A little speedup.
3701
3702 2006-10-27  Chris Toshok  <toshok@ximian.com>
3703
3704         * Control.cs: implement Control.FromChildHandle in a way that
3705         matches the docs (and fixes the failed test.)
3706
3707 2006-10-27  Chris Toshok  <toshok@ximian.com>
3708
3709         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
3710         comments).
3711
3712         * DataGrid.cs: implement ResetForeColor such that the tests
3713         succeed.
3714         
3715 2006-10-27  Chris Toshok  <toshok@ximian.com>
3716
3717         * ToolBarButton.cs: setting text/tooltiptext to null results in it
3718         being set to "".  Fixes bug #79759.
3719
3720 2006-10-27  Jackson Harper  <jackson@ximian.com>
3721
3722         * TextControl.cs: We need to clear the entire selection area when
3723         setting the start, otherwise multiline selections are still
3724         visible.
3725
3726 2006-10-26  Chris Toshok  <toshok@ximian.com>
3727
3728         * PropertyGridView.cs: 
3729
3730         - ifdef all the code specific to the double
3731         buffer case, and provide some alternatives in the non-doublebuffer
3732         code, which makes heavy use of XplatUI.ScrollWindow to move things
3733         around without having to invalidate (and cause flicker).  There
3734         are still some drawing problems in the non-doublebuffered case, so
3735         DOUBLEBUFFER is defined by default.
3736
3737         - Fix the way dropdowns are handled.  now we explicitly watch for
3738         the events which might cause the dropdown to close, and break out
3739         of the nested event loop there.  This gets rid of all Capture
3740         code, at the expense of the Msg special casing.  Seems to work,
3741         though, and fixes bug #79743.
3742
3743 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
3744         * Control.cs: SetIsRecreating now recreates implicitly added
3745         child controls as well. Finally fixes #79629. The flag passed to 
3746         SetIsRecreating has also been removed since it wasn't used.
3747         
3748 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3749
3750         * PageSetupDialog.cs: Clean some code, fix some bits, 
3751         add some checks, and add a printer sub-dialog.
3752
3753 2006-10-26  Chris Toshok  <toshok@ximian.com>
3754
3755         * PropertyGrid.cs: make set_SelectedObject call
3756         set_SelectedObjects, and move the duplicate logic to the
3757         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
3758
3759         * PropertyGridView.cs: hide the textbox when we get a
3760         SelectedObjectsChanged event.
3761
3762         Fixes bug #79748.
3763
3764 2006-10-26  Chris Toshok  <toshok@ximian.com>
3765
3766         * PropertyGridView.cs: deal with the type converter not supporting
3767         GetStandardValues() or GetStandardValues() returning null, which
3768         is does in the default case.  Fixes #79742.
3769
3770 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
3771
3772         * CheckedListBox.cs: nunit no longer crashes when selecting 
3773         Project/Edit menu option
3774         
3775 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
3776
3777         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
3778         is no menu selected. fixes #79739
3779
3780 2006-10-25  Chris Toshok  <toshok@ximian.com>
3781
3782         * PropertyGridView.cs: factor out the splitter invalidation code
3783         into the SplitterPercent setter, and for kicks implement the
3784         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
3785         amount in either direction.
3786
3787 2006-10-25  Chris Toshok  <toshok@ximian.com>
3788
3789         * PropertyGridView.cs: do some cleanup of the brush used to draw
3790         text - read only fields should be grayed out.  not sure how to do
3791         this with the textbox, though.  but the textbox's should also be
3792         readonly now at least.  Also, hide/show the textbox when resizing
3793         the control.
3794         
3795         * CursorConverter.cs: use System.Reflection when getting the
3796         properties of Cursors, as TypeDescriptor.GetProperties isn't
3797         returning static properties.
3798
3799 2006-10-25  Chris Toshok  <toshok@ximian.com>
3800
3801         * PropertyGridView.cs: factor out the up/down handling, and reuse
3802         it for page up/down.  also add End/Home support.
3803
3804 2006-10-25  Chris Toshok  <toshok@ximian.com>
3805
3806         * PropertyGridView.cs:
3807
3808         - ensure the selected grid item is visible in the scrolled area,
3809         fixes bug #79572.
3810
3811         - fix Keys.Down handling when you're on the last item in the
3812         propertygrid.
3813
3814 2006-10-25  Mike Kestner  <mkestner@novell.com>
3815
3816         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
3817         clicks too.  Fixes #79725.
3818
3819 2006-10-24  Chris Toshok  <toshok@ximian.com>
3820
3821         * PropertyGrid.cs: use property.Converter instead of
3822         TypeDescriptor.GetConverter(property.PropertyType), so we catch
3823         TypeConverters declared on the property as well as on the
3824         PropertyType.  Fixes bug #79678.
3825
3826 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
3827
3828         * MimeIcon.cs, Mime.cs:
3829           Fallback to the default platform handler if no shared mime info
3830           stuff exists (fixes #79693).
3831
3832 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
3833         * ContainerControl.cs: Incorrect contains check in ActiveControl 
3834         from previous fix (duh).
3835
3836 2006-10-20  Chris Toshok  <toshok@ximian.com>
3837
3838         * PropertyGridView.cs: the dropdown should be MIN(number of items
3839         in list, 15).  Fixes #79551.
3840
3841 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
3842         Fixes #79384, #79394, #79652, #79667
3843         * Application.cs: 
3844         
3845         - Modal windows are now destroyed in the proper order for windows
3846         
3847         * ContainerControl.cs:
3848         
3849         - ActiveControl setter has more conditions on when to return:
3850                 - if we're reselecting the active control, but it actually
3851                 didn't have focus (window hidden or some such), it runs
3852                 - if the active control being selected doesn't actually 
3853                 exist in the container, it returns
3854         
3855         * Form.cs
3856         
3857         - The ShowDialog now gets the current form as the owner when
3858         invoking without parameters, and correctly activates the owner 
3859         when returning
3860         
3861         * MessageBox.cs
3862         
3863         - MessageBox now catches the Escape key to exit
3864
3865 2006-10-20  Chris Toshok  <toshok@ximian.com>
3866
3867         * PropertyGridView.cs: fix a number of issues (bug #78565, and
3868         most of bug #79676):
3869
3870         - you can navigate around the property grid with the arrow keys.
3871
3872         - the dropdown is sized properly when the pg has a vertical
3873         scrollbar.
3874
3875         - fix the indentation for subentries, and properly select the
3876         entire label rect.
3877
3878         - fix the gray bar's drawing (only draw it to the last element,
3879         not for the height of the control.  Also make sure we draw that
3880         last horizontal grid line.
3881
3882         - use the same mechanism the datagrid uses wrt the editing textbox
3883         when scrolling/resizing/etc.  Namely, we hide it first, do the
3884         operation, then show it again (if it's still visible).
3885         
3886         - aggressively remove a lot of unnecessary refreshes (and also
3887         calls to Invalidate(). call more limited variants, and only redraw
3888         what we need.)
3889         
3890         * PropertyGrid.cs:
3891
3892         - when we're populating the merged collection, fill in the UI
3893         parent with either the passed in item, or the category item we
3894         create.
3895
3896         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
3897
3898         * GridItem.cs: drop some fully qualified names.
3899         
3900         * GridEntry.cs: add a "UIParent", which is basically the parent
3901         treenode.
3902
3903         * GridItemCollection.cs: add an IndexOf method.
3904
3905 2006-10-20  Mike Kestner  <mkestner@novell.com>
3906
3907         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
3908         a working win32 NC invalidation mechanism, we can't invalidate
3909         menus.  [Fixes #79705]
3910
3911 2006-10-20  Mike Kestner  <mkestner@novell.com>
3912
3913         * ListBox.cs : don't update the VScrollbar if the list is empty,
3914         just hide it.  [Fixes #79692]
3915
3916 2006-10-20  Jackson Harper  <jackson@ximian.com>
3917
3918         * RichTextBox.cs: Handle some special chars better, and don't skip
3919         the entire group when we encounter a special char that we don't
3920         handle correctly.
3921
3922 2006-10-18  Chris Toshok  <toshok@ximian.com>
3923
3924         * PropertyGridView.cs: address a number of issues from bug #79676,
3925         mostly of the cosmetic variety.
3926
3927         - The highlight rectangle for indented items not extends all the
3928         way to the left.
3929
3930         - Indented items aren't indented so much.
3931
3932         - the dropdown is properly sized width-wise if the pg has a
3933         vertical scrollbar.
3934
3935 2006-10-18  Chris Toshok  <toshok@ximian.com>
3936
3937         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
3938         systray stuff is rather convoluted to begin with.
3939
3940         systray icons are a single window for some reason (that I haven't
3941         figured out yet), and for them, client_window == whole_window.
3942         Given the way the tests are structured elsewhere to determine
3943         which paints are pending (client vs. nc), that situation will
3944         always yield PAINT, not NCPAINT.  So, if we have a pending
3945         nc_expose and no pending expose, remove the hwnd from the paint
3946         queue, and also set nc_expose_pending to false, to keep us from
3947         blocking further expose's adding the hwnd to the paint queue.
3948
3949         phew.  like i said, a rather convoluted change.  Fixes the
3950         notifyicon repaint issues in bug #79645.
3951
3952 2006-10-18  Chris Toshok  <toshok@ximian.com>
3953
3954         * Form.cs: when getting the backcolor of the form, don't get
3955         base.BackColor, as this allows parents to influence the background
3956         color.  This breaks mdi forms.  Instead, if the background_color
3957         is empty, return the default.
3958
3959 2006-10-18  Chris Toshok  <toshok@ximian.com>
3960
3961         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
3962         to being private instead of internal static.
3963
3964         * Control.cs: remove all the stupid ParentWaitingOnRecreation
3965         crap, it wasn't working for more deeply nested controls anyway,
3966         and we already have the is_recreating flag - use that instead.
3967         Before calling DestroyHandle in RecreateHandle, recurse through
3968         the control tree setting it to true.  this returns the recreate
3969         code to much of its original simplicity, while now guaranteeing we
3970         actually recreate everything we're supposed to.  This change gets
3971         fyireporting actually showing mdi children.
3972
3973 2006-10-17  Chris Toshok  <toshok@ximian.com>
3974
3975         * Form.cs: remove some debug spew, and collapse some duplicate
3976         code at the end of SetClientSizeCore.
3977
3978         * XplatUIX11.cs: 
3979         - add some more debug spew here too wrt Destroy handling.
3980         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
3981         in Control's handling of WM_DESTROY.
3982         - Remove the handling of zombie window DestroyNotifies from the
3983         event loop - we don't need it.  Now the only DestroyNotifies we
3984         actually handle are ones generated by X.
3985         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
3986         match gtk's (functioning) handling of this. This keep metacity
3987         from leaving droppings in the form of wm borders with no window
3988         contents all over the place.
3989
3990         * Control.cs:
3991         - add a bunch of debug spew wrt control recreation.
3992         - fix a bug where we weren't tracking Visible properly on
3993         recreated hwnds.
3994         - fixed the WM_PAINT double buffer handling to support re-entrant
3995         calls (yes, i know it's gross, but it's happening to us).
3996
3997 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
3998         * ThemeWin32Classic.cs: changed drawing of selected days
3999         to make them look better.
4000
4001 2006-10-16  Chris Toshok  <toshok@ximian.com>
4002
4003         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
4004         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
4005
4006         * XplatUIX11.cs: move away from using hwnd.client_dc and
4007         hwnd.non_client_dc and on to a stack of dc's (and in window's
4008         case, PAINTSTRUCT's), so we can deal with nested Paint calls
4009         without puking or not disposing of Graphics objects.
4010
4011         * XplatUIOSX.cs: same.
4012
4013         * XplatUIWin32.cs: same.
4014
4015 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
4016
4017         * FileDialog.cs: Don't call on_directory_changed inside
4018           OnSelectedIndexChanged (it changes the SelectedIndex too).
4019           Instead move it to OnSelectionChangeCommitted.
4020
4021 2006-10-13  Chris Toshok  <toshok@ximian.com>
4022
4023         * XplatUIX11.cs: more Destroy work.  the current code does the
4024         following things, in order:
4025
4026         1. Enumerates all handles of all controls at or below the one
4027         being destroyed, in pre-order.  As it is doing this, it marks the
4028         handles as zombie and clears all references to them.
4029         
4030         2. calls XDestroyWindow on the window passed in.
4031
4032         3. SendMessage's WM_DESTROY to all he handles in the accumulated
4033         list.
4034
4035 2006-10-13  Chris Toshok  <toshok@ximian.com>
4036
4037         * XplatUIX11.cs: set hwnd.zombie to true before calling
4038         SendMessage (WM_DESTROY).  this keeps us from marking the new
4039         window a zombie, and also keeps us from calling sendmessage at
4040         all.
4041
4042 2006-10-13  Jackson Harper  <jackson@ximian.com>
4043
4044         * TextControl.cs: Do not show the caret and selection at the same
4045         time.  Reduces ugliness by 35%.
4046
4047 2006-10-13  Chris Toshok  <toshok@ximian.com>
4048
4049         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
4050         zombie after we do the recursive call, so we actually do call
4051         SendMessage on the children controls.
4052         (GetMessage): if we find a pending paint event for a zombie hwnd,
4053         remove the hwnd from the paint queue, or else it will always be
4054         there (and we'll effectively loop infinitely)
4055
4056 2006-10-13  Mike Kestner  <mkestner@novell.com>
4057
4058         * MenuItem.cs : add Selected format under keynav too.
4059         Fixes #79528.
4060
4061 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
4062
4063         * PropertyGrid.cs: Fixed some NRE's and small difference between our
4064         implementation and that of MS.
4065
4066 2006-10-13  Chris Toshok  <toshok@ximian.com>
4067
4068         * Control.cs (OnInvalidated) only futz with the invalid_region if
4069         the control is double buffered.  this fixes the apparent hang in
4070         the ListView unit tests.  Someone needs to make the
4071         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
4072
4073 2006-10-13  Chris Toshok  <toshok@ximian.com>
4074
4075         * PropertyGridView.cs:
4076
4077         - do a little refactoring so that only one place calls
4078         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
4079         else call that.  Also make it Refresh, since there are redraw bugs
4080         otherwise (we should take a look at that...)
4081
4082         - do a little more refactoring work to share the body of code
4083         involved with the drop down.  it was duplicated in the code
4084         dealing with the listbox handling and in the code dealing with the
4085         UITypeEditors.
4086
4087         - add a Capture to the dropdown form's control once it's
4088         displayed, and add a MouseDown handler that checks to make sure
4089         the position is inside the control.  If it's not, close the
4090         dropdown.  This fixes #78190.
4091
4092         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
4093         if the value is different than the initial value.
4094         
4095 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
4096
4097         * Control.cs: see #78650
4098         - Fixed GetNextControl for several cases:
4099                 - Changed FindFlatForward to return 
4100                 correct sibling control when more than one
4101                 control has same TabIndex as the currently 
4102                 focused one.
4103                 - Changed FindFlatBackward to loop children
4104                 from last to first and apply same logic as in
4105                 FindFlatForward
4106                 - Changed FindControlForward to search for
4107                 children when control is not a container
4108                 but has children, or search for siblings if
4109                 control is a container...
4110                 - Changed FindControlBackward   to continue
4111                 searching for child controls when hitting 
4112                 Panel-like parents
4113                 
4114         - Fixed Focus method to update ActiveControl
4115         (FocusTest.FocusSetsActive failure)
4116         
4117         * TabControl.cs:
4118         - Focus rectangle now refreshes when gaining
4119         or losing focus
4120         - Removed grab for Tab key on IsInputKey that 
4121         was keeping tab navigation from working (#78650)
4122
4123 2006-10-13  Chris Toshok  <toshok@ximian.com>
4124
4125         * PropertyGridView.cs:
4126         - Rewrite SetPropertyValue to loop over SelectedGridItem's
4127         SelectedObjects.
4128
4129         - Deal with GridItem.Value == null a few places.
4130
4131         * PropertyGrid.cs: 
4132         - replace the PopulateGridItemCollection with a pair of methods
4133         which compute the intersection of all the properties in the
4134         SelectedObjects array.  Fixes #79615.
4135
4136         - Throw ArgumentException from set_SelectedObjects if there's a
4137         null in the array.
4138
4139         - Add GetTarget method which can be used to traverse up the
4140         GridItem.Parent chain.  It depends on the assumption that
4141         selected_objects for different GridEntries are always in the same
4142         order (a safe assumption).  Use this method and loop over all the
4143         selected objects in the entry when calling RemoveValueChanged and
4144         AddValueChanged.
4145         
4146         * GridEntry.cs: Make this handle multiple selected objects.
4147         .Value returns null if not all the selected objects share the same
4148         value.
4149
4150 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
4151         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
4152           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
4153           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
4154           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
4155           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
4156         add additional functionality.
4157
4158 2006-10-12  Mike Kestner  <mkestner@novell.com>
4159
4160         * ErrorProvider.cs : new ToolTipWindow ctor sig.
4161         * HelpProvider.cs : new ToolTipWindow ctor sig.
4162         * ToolTip.cs : remove ToolTip param from Window sig since it is
4163         not used.
4164         * ToolBar.cs : add tooltip support.  Fixes #79565.
4165
4166 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
4167
4168         * ComboBox.cs: move the events in set_SelectedIndex to 
4169         after the call to HighlightIndex in order to avoid 
4170         possible recursion and subsequent problems with the call
4171         to HighlightIndex and include a range check in 
4172         set_HighlightIndex. Fixes #79588
4173         
4174 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
4175
4176         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
4177         to ui thread's settings instead of sunday. 
4178         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
4179
4180 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
4181
4182         * DateTimePicker.cs
4183         * MonthCalendar.cs
4184         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
4185         and implement missing functionality (selecting different parts 
4186         of the date and edit them individually with the keyboard).
4187         
4188 2006-10-11  Chris Toshok  <toshok@ximian.com>
4189
4190         * Control.cs (OnInvalidated): fix NRE relating to last change.
4191
4192 2006-10-11  Chris Toshok  <toshok@ximian.com>
4193
4194         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
4195         atoms in _NET_WM_STATE here if the window is maximized.  We need
4196         to do this because we're *replacing* the existing _NET_WM_STATE
4197         property, so those atoms will be lost otherwise, and any further
4198         call to GetWindowState will return Normal for a window which is
4199         actually maximized.  Fixes #79338.
4200
4201 2006-10-11  Jackson Harper  <jackson@ximian.com>
4202
4203         * TextControl.cs: Special case for setting selection end to
4204         selection start, we basically kill the anchor.
4205         - some todo comments.
4206
4207 2006-10-11  Chris Toshok  <toshok@ximian.com>
4208
4209         * Control.cs: switch to using an "invalid_region" to track which
4210         parts of the image buffer need updating.  This is more code than
4211         the simple fix from r66532.  That version just attempted to always
4212         fill the entire buffer on redraw, which turns out to be
4213         inefficient when invalidating small rectangles.  This version
4214         simply adds the invalid rectangle to the invalid region.  When we
4215         get any WM_PAINT message we see if it can be filled using the
4216         image buffer, and if it can't (if the paint event's clip rectangle
4217         is visible in the invalid region) we first fill the image buffer.
4218         So, the image buffer is still a cache, we just fill it lazily.
4219
4220         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
4221         need it any longer.
4222
4223 2006-10-11  Chris Toshok  <toshok@ximian.com>
4224
4225         * XplatUIX11.cs (SetWindowPos): we need to update both position as
4226         well as size after calling XMoveResizeWindow.  This keeps us from
4227         ignoring future SetWindowPos calls.  Fixes the disappearing
4228         DateTimePicker in the ToolBarDockExample from bug #72499.
4229
4230 2006-10-11  Chris Toshok  <toshok@ximian.com>
4231
4232         * TextBoxBase.cs: reorder things a bit when it comes to
4233         resizing-causing-recalculation.  we were recalculating the
4234         document when our position was changed, which shouldn't happen.
4235         We only care about size changes.  Clear up some more redundant
4236         recalculation calls while I'm at it.  This makes the toolbar dock
4237         example snappy when you're just dragging toolbars around (since it
4238         causes a relayout whenever you move one.)
4239
4240 2006-10-11  Chris Toshok  <toshok@ximian.com>
4241
4242         * ToolBarButton.cs (get_Rectangle): this only returns
4243         Rectangle.Empty if Visible == false, or Parent == null.
4244         Parent.Visible doesn't matter.
4245
4246 2006-10-10  Chris Toshok  <toshok@ximian.com>
4247
4248         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
4249         by .net 1.1, so switch to an internal method instead.
4250
4251 2006-10-10  Chris Toshok  <toshok@ximian.com>
4252
4253         * Control.cs (WM_PAINT): when a control is double buffered we draw
4254         initially to the ImageBuffer and then copy from there.  But when a
4255         parent control which has child controls is double buffered, the
4256         initial drawing doesn't encompass the entire ClientRectangle of
4257         the parent control, so we end up with uninitialized bits (this is
4258         easily seen by dragging the top toolbar in
4259         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
4260         manually set the ClipRectangle of the paint_event (only the one we
4261         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
4262         of the nastiness in bug #72499.
4263
4264         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
4265         which we use in Control.cs's WM_PAINT handling.
4266
4267 2006-10-10  Jackson Harper  <jackson@ximian.com>
4268
4269         * TextBoxBase.cs: Finish off the autoscrolling stuff.
4270
4271 2006-10-10  Chris Toshok  <toshok@ximian.com>
4272
4273         * Cursor.cs: Apply a slightly different patch to the one suggested
4274         in #79609.
4275
4276 2006-10-10  Jackson Harper  <jackson@ximian.com>
4277
4278         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
4279         not the parent form.
4280         * TextControl.cs: use difference in old line count vs new count to
4281         calculate how many lines were added, this takes into account soft
4282         line breaks properly.
4283
4284 2006-10-10  Chris Toshok  <toshok@ximian.com>
4285
4286         * LinkLabel.cs: don't call MeasureCharacterRanges against a
4287         rectangle located at 0,0 and the size of the text.  Use
4288         ClientRectangle instead.  This fixes rendering of non-left aligned
4289         link labels.
4290
4291 2006-10-10  Jackson Harper  <jackson@ximian.com>
4292
4293         * TextBoxBase.cs: When we set the selection start position the
4294         caret.
4295         * TextControl.cs: Need to update the caret when we decrement it to
4296         zero.
4297         - Make sure that the selection_visible flag gets reset to false if
4298         the selection isn't visible.  Before this you could get it set to
4299         visible by changing the selection start, then changing the end to
4300         equal the start.
4301
4302 2006-10-09  Jackson Harper  <jackson@ximian.com>
4303
4304         * TreeView.cs: Don't update scrollbars when we aren't visible.
4305         * TreeNodeCollection.cs: Only need to update scrollbars if being
4306         added to an expanded visible node or the root node.
4307
4308 2006-10-09  Chris Toshok  <toshok@ximian.com>
4309
4310         * XplatUIX11.cs (SendMessage): fix NRE.
4311
4312 2006-10-09  Jackson Harper  <jackson@ximian.com>
4313
4314         * TextBoxBase.cs: Implement horizontal autoscrolling.
4315         * TextControl.cs: Add a movement types that allows moving forward
4316         and backwards without wrapping.
4317
4318 2006-10-09  Mike Kestner  <mkestner@novell.com>
4319
4320         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
4321         with focus "expansion" of labels.  Fixes #79532 and then some.
4322         * ThemeWin32Classic.cs : add LineLimit to ListView label format
4323         when wrapping.
4324
4325 2006-10-09  Jackson Harper  <jackson@ximian.com>
4326
4327         * TextBoxBase.cs: Set the default max values to MaxValue since
4328         we use the scrollbar for autoscrolling and the default value is
4329         100.  If we don't do this the caret won't keep up with typing
4330         after about 18 characters.
4331         * TextControl.cs: Make sure the selection is offset by the
4332         viewport x.  This fixes selection when using auto scrolling.
4333
4334 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
4335         
4336         * Form.cs: The active control should be selected after the 
4337         OnLoad so that any child control initialization that affects
4338         the selection is done. Fixes #79406
4339
4340 2006-10-06  Chris Toshok  <toshok@ximian.com>
4341
4342         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
4343         to have no evil effects.
4344
4345         - Stop selecting StructureNotifyMask on non-toplevel windows.
4346
4347           The only way children should be resized is by using the SWF api,
4348           and we already send WM_WINDOWPOSCHANGED messages in those cases.
4349           Toplevel windows can be interacted with via the window manager,
4350           and so we keep the input mask there.
4351
4352           The other event StructureNotifyMask gives us (that we care
4353           about) is DestroyNotify.  The code is already structured such
4354           that it assumes we won't be getting a DestroyNotify event for
4355           the window we pass to XDestroyWindow (which is what
4356           StructureNotifyMask is supposed to guarantee.)  So, that code
4357           shouldn't be affected by this either.
4358
4359         - Stop selecting VisibilityChangeMask altogether.
4360
4361           We weren't doing anything with the resulting events anyway.
4362         
4363         This vastly reduces the number of X requests and events we see
4364         when resizing/laying out a large ui.
4365
4366 2006-10-06  Chris Toshok  <toshok@ximian.com>
4367
4368         * ScrollableControl.cs (DisplayRectangle): we need to take into
4369         account the DockPadding regardless of whether or not auto_scroll
4370         == true.  rework this slightly to this effect, and fix bug #79606,
4371         and part of #72499 (you can now see the drag handles and drag
4372         toolbars around).
4373
4374 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
4375
4376         * ListViewItem.cs: Collections of selected and checked items are now
4377         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
4378         we mark the collection "dirty".
4379         * ListView.cs: Marked collections readonly. Modified UpdateSelection
4380         to only clear SelectedItems when a new item is selected and MultiSelect
4381         is enabled. CheckedItems and SelectedItems now subscribe to Changed
4382         event of ListViewItemCollection, and mark its list dirty whenever
4383         that event is fire. This allows us to return selected/checked items 
4384         in the same order as they are in the Items collection. This matches
4385         the MS behavior.
4386
4387 2006-10-06  Chris Toshok  <toshok@ximian.com>
4388
4389         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
4390         right mouse clicks.  Fixes bug #79593.
4391
4392 2006-10-06  Chris Toshok  <toshok@ximian.com>
4393
4394         * Splitter.cs: doh, fix splitters that don't want to cancel the
4395         movement when you drag them.  Also, impose the limits on the
4396         values we send to the SplitterMovingEvent.  Fixes #79598.
4397
4398 2006-10-06  Jackson Harper  <jackson@ximian.com>
4399
4400         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
4401         since we use this for auto scrolling also.
4402
4403 2006-10-05  Chris Toshok  <toshok@ximian.com>
4404
4405         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
4406         beginning to think that most datagrid column types don't need this
4407         method.  Fixes bug #79392.
4408
4409 2006-10-05  Chris Toshok  <toshok@ximian.com>
4410
4411         * DataGrid.cs: move back to a more lazy scheme for creating the
4412         CurrencyManager, so we aren't updating it every time you set
4413         either DataSource or DataMember.  Also, don't call
4414         RecreateDataGridRows if the currency manager hasn't changed.
4415
4416 2006-10-05  Chris Toshok  <toshok@ximian.com>
4417
4418         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
4419         emitted, SelectedIndex should already be updated.  Fixes bug
4420         #78929.
4421
4422 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
4423
4424         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
4425           ToolStripTextBox.cs: Initial commit.
4426         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
4427
4428 2006-10-05  Jackson Harper  <jackson@ximian.com>
4429
4430         * TabControl.cs: We need to invalidate the tab control area when
4431         new ones are added (duh).
4432
4433 2006-10-03  Chris Toshok  <toshok@ximian.com>
4434
4435         * Form.cs (ProcessDialogKey): if the focused control is in this
4436         form and is a button, call its PerformClick method here.  Fixes
4437         #79534.
4438
4439 2006-10-04  Jackson Harper  <jackson@ximian.com>
4440
4441         * TabPage.cs: Ignore setting of Visible, and add an internal
4442         method for setting the controls visibility.  TabPage's Visible
4443         property is a little strange on MS, this seems to make us
4444         compatible, and fixes cases where people set all the tab pages to
4445         visible.
4446         * TabControl.cs: Use the new internal setting on tab pages
4447         visibility.
4448
4449 2006-10-03  Mike Kestner  <mkestner@novell.com>
4450
4451         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
4452
4453 2006-10-03  Mike Kestner  <mkestner@novell.com>
4454
4455         * ListView.cs : use is_visible instead of Visible to check if 
4456         scrollbars should be placed/sized.  Also some max_wrap_width
4457         love for LargeIcon view.  [Fixes #79533]
4458
4459 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
4460
4461         * TextControl.cs :
4462           Make set_TextAlign() do actually update the align. Fixed #78403.
4463
4464 2006-10-03  Chris Toshok  <toshok@ximian.com>
4465
4466         * DataGrid.cs: fix a crash when switching datasources if the
4467         vertical scrollbar is at someplace other than Value = 0.  Also,
4468         reduce the number of recalculation passes we do in SetDataSource
4469         from 2 to 1.
4470
4471 2006-10-03  Jackson Harper  <jackson@ximian.com>
4472
4473         * TextBoxBase.cs: Move the if value the same bail check up, we
4474         don't want to empty the document if it is already empty, this
4475         seems to severly mess up the caret.  TODO: I should probably fix
4476         the empty statement to update teh caret somehow.
4477
4478 2006-10-03  Chris Toshok  <toshok@ximian.com>
4479
4480         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
4481         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
4482         reflection, an internal row type, properties on said type, etc.)
4483         will work with our datagrid.  Fixes #79531.
4484
4485 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
4486
4487         * FileDialog.cs: Don't crash if a path is not accessible
4488           (System.UnauthorizedAccessException). Fixes #79569.
4489         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
4490           a ':' too. Return unknown icon for those paths/files.
4491
4492 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
4493
4494         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
4495         GetContainerControl returns null.
4496
4497 2006-10-02  Chris Toshok  <toshok@ximian.com>
4498
4499         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
4500         call to XGetWindowAttributes instead of "handle".  fixes an X
4501         error using notifyicon after the NotifyIconWindow to Form base
4502         class switch.
4503
4504 2006-10-02  Chris Toshok  <toshok@ximian.com>
4505
4506         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
4507         server grab and looping we need to do to get down to the most
4508         deeply nested child window.
4509         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
4510         QueryPointer again after the WarpPointer so we can generate a
4511         proper (fake) MotionNotify event to be enqueued in the destination
4512         window's queue.
4513         (GetCursorPos): call QueryPointer.
4514
4515         Fixes #79556.
4516
4517 2006-10-02  Jackson Harper  <jackson@ximian.com>
4518
4519         * NotifyIcon.cs: Derive the notify icon from a form, so things
4520         like FindForm work on it.
4521         - Swallow the WM_CONTEXTMENU message, since that is generated on
4522         mouse down, and context menu is a mouse up kinda guy.  I believe
4523         the correct fix here is probably to make the notify icon entirely
4524         NC area, but this seems to work fine for anyone not manipulating
4525         WndProc.
4526
4527 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
4528
4529         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
4530           ToolStripItemCollection.cs, ToolStripLabel.cs,
4531           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
4532           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
4533           Initial implementation.
4534         * TextRenderer.cs: Provide padding to MeasureText.
4535
4536 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
4537
4538         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
4539         of ButtonBaseAccessibleObject. Fix bug #79552.
4540
4541 2006-10-02  Jackson Harper  <jackson@ximian.com>
4542
4543         * MdiWindowManager.cs: When maximizing use the containers client
4544         rect, not it's bounds, so nc area is accounted correctly.
4545         - Use the parent form's size for the menu position, since the
4546         client isn't always the full form size.
4547
4548 2006-10-01  Chris Toshok  <toshok@ximian.com>
4549
4550         * ScrollableControl.cs: make sure neither right_edge or
4551         bottom_edge are < 0, since they're used as LargeChange for the
4552         horiz/vert scrollbars respectively.  Fixes #79539.
4553
4554 2006-10-01  Chris Toshok  <toshok@ximian.com>
4555
4556         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
4557         the xplatuix11 code can cause us to destroy/recreate our handle.
4558
4559         * XplatUIX11.cs
4560         (SystrayAdd):
4561         - this code can be invoked many times for the same Hwnd.  Make
4562           sure we only destroy the client window once (the first time this
4563           method is called).  This fixes bug #79544.
4564         - Remove the call to the improperly bound XSync.  why we had two
4565           bindings to this, I will never know, but this call resulted in
4566           events being discarded from the queue(!).
4567         - correct a misunderstanding of _XEMBED_INFO - the second atom is
4568           not our current state but the state we wish to be in.  So, 0 if
4569           we don't want to be mapped.  Change it to 1.
4570         (SystrayRemove): The XEMBED spec makes mention of the fact that
4571         gtk doesn't support the reparent of client windows away from the
4572         embedder.  Looking at gtksocket-x11.c seems to agree with this.
4573         The only avenue we have for removing systray icons is to destroy
4574         them.  We don't want the handle to go away for good, though, so
4575         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
4576         #79545.
4577         
4578 2006-10-01  Chris Toshok  <toshok@ximian.com>
4579
4580         * Form.cs (WndProc): inline the native_enabled variable usage into
4581         the cases in which it's used.  Fixes #79536.
4582
4583 2006-09-29  Mike Kestner  <mkestner@novell.com>
4584
4585         * ListView.cs : toggle the selection state for ctrl clicks in 
4586         multiselect mode. [Fixes #79417]
4587
4588 2006-09-29  Mike Kestner  <mkestner@novell.com>
4589
4590         * ListView.cs : kill CanMultiSelect and refactor the selection
4591         code to support multiselection in the absence of mod keys. Steal
4592         arrow/home/end keys by overriding InternalPreProcessMessage to
4593         restore regressed keynav behavior.
4594         [Fixes #79416]
4595
4596 2006-09-29  Jackson Harper  <jackson@ximian.com>
4597
4598         * MdiClient.cs: Repaint the titlebars when the active window is
4599         changed.
4600
4601 2006-09-29  Chris Toshok  <toshok@ximian.com>
4602
4603         * Application.cs: when entering a runloop with a modal, make sure
4604         the hwnd is enabled.  Fixes #79480.
4605
4606 2006-09-29  Chris Toshok  <toshok@ximian.com>
4607
4608         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
4609         when ListManager.CanAddRows == false, bump us back one.
4610
4611         * DataGridColumnStyle.cs (ParentReadOnly): remove the
4612         listmanager.CanAddRows check.  This makes ArrayLists uneditable
4613         using a datagrid, which is not right.
4614         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
4615         is an IEditable, but call property_descriptor.SetValue regardless.
4616         fixes #79435.
4617
4618 2006-09-29  Chris Toshok  <toshok@ximian.com>
4619
4620         * DataGridBoolColumn.cs: we need to test equality in the face of
4621         possible null values (as is the case with the default NullValue).
4622         This patch keeps us from crashing in that case.
4623
4624 2006-09-29  Jackson Harper  <jackson@ximian.com>
4625
4626         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
4627         here, since it will get called for every node collection in the
4628         tree. This is now done in the treeview once the sorting is
4629         finished.
4630         * TreeView.cs: Recalculate the visible order, and update the
4631         scrollbars after sorting, set the top nope to the root so that the
4632         recalc actually works.
4633
4634 2006-09-29  Chris Toshok  <toshok@ximian.com>
4635
4636         * LinkLabel.cs: more handling of the default link collection in
4637         the face of LinkArea manipulation.  The default link collection
4638         contains 1 element (start=0,length=-1).  If the user sets LinkArea
4639         to anything and the links collection is the default, clear it.
4640         Then only add the link if its nonempty.  Fixes #79518.
4641
4642 2006-09-29  Chris Toshok  <toshok@ximian.com>
4643
4644         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
4645         piece correctly when we hit a '\n'.  Fixes #79517.
4646
4647 2006-09-29  Chris Toshok  <toshok@ximian.com>
4648
4649         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
4650         change the binding of gdk_init_check to take two IntPtr's, and
4651         pass IntPtr.Zero for both of them.  Fixes #79520.
4652
4653 2006-09-29  Mike Kestner  <mkestner@novell.com>
4654
4655         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
4656         [Fixes #78779]
4657
4658 2006-09-28  Jackson Harper  <jackson@ximian.com>
4659
4660         * XplatUIX11.cs: When translating NC messages make sure we go from
4661         whole window to screen, not client window to screen.
4662         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
4663         method doesn't exist
4664         - Skip over controls that aren't forms when arranging.
4665
4666 2006-09-28  Jackson Harper  <jackson@ximian.com>
4667
4668         * XplatUIWin32.cs: Clip the rect to the parent window.
4669         * XplatUIStructs.cs: Add clipping modes struct.
4670         * InternalWindowManager.cs: New private method that factors title
4671         bar heights in when calculating the pos of an NC mouse message.
4672         - Use SendMessage to force a paint when the form's size is changed
4673         instead of painting the decorations immediately.
4674         - Don't let the NC button click messages get to DefWndProc,
4675         because they will attempt to handle windowing themself, and this
4676         messes up z-order (it will put them in front of the scrollbars).
4677         * XplatUIX11.cs: Make sure that we don't reset window managers if
4678         we already have one (ie the window is an MDI window).
4679
4680 2006-09-28  Chris Toshok  <toshok@ximian.com>
4681
4682         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
4683         menu code really needs going over.
4684
4685 2006-09-27  Chris Toshok  <toshok@ximian.com>
4686
4687         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
4688         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
4689         window is maximizable.  So, we need to make sure that even if we
4690         clear the border/wm frame of those functions, they're still
4691         available (basically, we remove the decoration without removing
4692         the function).  Half the fix for #79338.
4693
4694 2006-09-27  Chris Toshok  <toshok@ximian.com>
4695
4696         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
4697         Fixes bug #79515.
4698
4699 2006-09-27  Chris Toshok  <toshok@ximian.com>
4700
4701         * Splitter.cs: reorder things a bit so that we don't actually
4702         draw/move the splitter until after calling OnSplitterMoving.  This
4703         lets users cancel/disallow the movement by explicitly setting
4704         event.SplitX/SplitY.  Fixes #79372.
4705
4706 2006-09-27  Jackson Harper  <jackson@ximian.com>
4707
4708         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
4709         because it is most likely on a window being destroyed, and that
4710         will give us an X11 error.
4711
4712 2006-09-27  Chris Toshok  <toshok@ximian.com>
4713
4714         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
4715         the dropdown button now toggles between showing and hiding the
4716         dropdown.  Also, get rid of dropdown_form_showing and just use
4717         dropdown_form.Visible.  We still don't do a grab, but I'll leave
4718         that part to someone who has handled Capture-fu before.
4719
4720 2006-09-27  Chris Toshok  <toshok@ximian.com>
4721
4722         * DataGrid.cs: return false if alt isn't pressed when '0' is
4723         pressed.  this keeps the '0' key from being swallowed, and fixes
4724         bug #79350.
4725
4726 2006-09-27  Chris Toshok  <toshok@ximian.com>
4727
4728         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
4729         Calling Refresh (in response to a scrollbar event) screws up the
4730         scrollbar painting.  Fixes bug #78923.
4731
4732 2006-09-27  Chris Toshok  <toshok@ximian.com>
4733
4734         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
4735         then insert into hashtable" blocks threadsafe.
4736
4737 2006-09-27  Chris Toshok  <toshok@ximian.com>
4738
4739         * MessageBox.cs (CreateParams): the styles should be |'ed with our
4740         baseclass's, since otherwise the
4741         ControlBox/MinimizeBox/MaximizeBox assignments above have no
4742         effect.  This gets the close button back in messageboxes.
4743
4744 2006-09-27  Chris Toshok  <toshok@ximian.com>
4745
4746         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
4747         flag, not just != 0.  this makes flags that are actually multiple
4748         bits (like WS_CAPTION) work.  fixes bug #79508.
4749
4750 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
4751
4752         * PageSetupDialog.cs: add support for getting and settings the 
4753         paper size, source and orientation.
4754
4755 2006-09-26  Chris Toshok  <toshok@ximian.com>
4756
4757         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
4758         and caption == "", we need to remove the resize handles as well as
4759         the title bar.
4760
4761         * Control.cs (set_Text): turns out that setting Text on a form
4762         should change the WM styles on the window, since if ControlBox ==
4763         false, the only way to get a window border is to have a non-""
4764         Text property.  check winforms/forms/text.cs for an example.  so,
4765         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
4766         update both window styles and title.  This fixes a lot of dialogs
4767         (including the preferences dialog in MonoCalendar.)
4768
4769 2006-09-26  Chris Toshok  <toshok@ximian.com>
4770
4771         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
4772         control isn't a Form), call Win32ShowWindow to hide the window,
4773         but don't update the control Visible property.  When we reparent
4774         back to a parent control, call SetVisible in order for the
4775         window's visibility to be reinstated.
4776
4777         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
4778         the FosterParent.
4779
4780         * Control.cs (ControlCollection.Remove): remove that value.Hide()
4781         call for good, since it breaks MonoCalendar (and other things I'm
4782         sure.) Also, set all_controls to null *after* the owner calls,
4783         which end up regenerating it.
4784         (ChangeParent): allow new_parent to be == null, passing
4785         IntPtr.Zero down to XplatUI.
4786
4787         this fixes #79294 the right way.
4788
4789 2006-09-26  Mike Kestner  <mkestner@novell.com>
4790
4791         * GridEntry.cs : internal SetParent method.
4792         * PropertyGrid.cs : attach to property changed on the proper
4793         target if we have a hierarchical grid with subobjects. Setup
4794         GridItem.Parent for hierarchical items.
4795         * PropertyGridView.cs : Set value on the correct target for
4796         hierarchical grids. [Fixes #78903]
4797
4798 2006-09-26  Chris Toshok  <toshok@ximian.com>
4799
4800         * Control.cs (ChildNeedsRecreating): this should return true if
4801         either we're being recreated and the child is in our list, or our
4802         parent is waiting for our recreation.
4803
4804 2006-09-26  Chris Toshok  <toshok@ximian.com>
4805
4806         * Control.cs (ControlCollection.Remove): reinstate the
4807         value.Hide() call as suggested in bug #79294.
4808
4809 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
4810
4811         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
4812         coordinates (versus a relative move).
4813
4814 2006-09-26  Chris Toshok  <toshok@ximian.com>
4815
4816         * Control.cs: rework child recreation a little bit.  It turns out
4817         that we race between the DestroyNotify the WM_DESTROY message.  If
4818         the parent gets its DestroyNotify before the child gets the
4819         WM_DESTROY message, the child ends up not recreating (since the
4820         parent finishes its recreation on DestroyNotify, and the child
4821         checks ParentIsRecreating.)
4822
4823         So, instead we store off a list of all the child controls which
4824         need to be recreated when the parent control starts to recreate
4825         itself.  Then, when child controls get their WM_DESTROY message we
4826         check to see if they're in the parent's pending recreation list,
4827         and if so, we recreate.  This removes all dependency on ordering
4828         from the code and fixes the initial MonoCalendar upgrade dialog.
4829         
4830 2006-09-26  Jackson Harper  <jackson@ximian.com>
4831
4832         * TextControl.cs: Use the Line to get the length of the line,
4833         since soft line breaks can change the end line.
4834
4835 2006-09-26  Chris Toshok  <toshok@ximian.com>
4836
4837         * Control.cs (ControlCollection.AddImplicit): don't add the
4838         control again if it's already in one of our lists.  This keeps us
4839         from adding controls over and over again for comboboxes when their
4840         handle gets recreated (as the combobox adds implicit controls in
4841         OnHandleCreated).  Fixes the X11 errors in bug #79480.
4842
4843 2006-09-26  Jackson Harper  <jackson@ximian.com>
4844
4845         * TextControl.cs: When deleting characters make sure that any
4846         orphaned zero lengthed tags get deleted.
4847         - Fix ToString for zero lengthed tags.
4848
4849 2006-09-25  Jackson Harper  <jackson@ximian.com>
4850
4851         * TextControl.cs: When getting a tag at the location there can be
4852         multiple tags at the same spot, these are 0-lengthed tags that
4853         appear when extra formatting has been stuck in a location.  We
4854         need to pull out the last of these 0 lengthed tags.
4855
4856 2006-09-25  Jackson Harper  <jackson@ximian.com>
4857
4858         * TextControl.cs: Fix print out in debug method.
4859         * TextBoxBase.cs: When text is set bail if we are setting to the
4860         previous value.
4861         
4862 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
4863
4864         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
4865           It is now possible to change the selected index in a FontXXXListBox
4866           with the up and down arrow keys from the FontXXXTextBoxes.
4867           Also, send the FontXXXTextBox mouse wheel event to the corresponding
4868           FontXXXListBoxes to match ms.
4869
4870 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
4871
4872         * SystemInformation.cs: Return a clone of the theme's MenuFont because
4873         anyone can dispose it, anytime. All other properties returns enums, 
4874         structs or basic types so they don't need such tricks.
4875
4876 2006-09-22  Jackson Harper  <jackson@ximian.com>
4877
4878         * XplatUI.cs:
4879         * XplatUIWin32.cs:
4880         * Clipboard.cs:
4881         * DataFormats.cs:
4882         * XplatUIOSX.cs:
4883         * XplatUIDriver.cs: Update interface to add a primary selection
4884         flag, so the driver can use the primary selection buffer if
4885         needed.
4886         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
4887
4888         * RichTextBox.cs: We need to supply the data object to paste now
4889         (so we can choose to supply CLIPBOARD or PRIMARY).
4890         * TextBoxBase.cs: Supply data object to paste (see above).
4891         - Middle click uses the primary selection data object.
4892         
4893 2006-09-21  Chris Toshok  <toshok@ximian.com>
4894
4895         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
4896         of SetWMStyles.  It's still a rat's nest and is largely
4897         order-dependent which I dislike immensely.  This also fixes the X
4898         button disappearing from toplevel forms.
4899
4900 2006-09-21  Mike Kestner <mkestner@novell.com>
4901
4902         * ListBox.cs: move Jordi's click/dblclick raising code to the
4903         mouse up handler.
4904
4905 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
4906
4907         * ListBox.cs: Fixes 79450
4908
4909 2006-09-21  Mike Kestner <mkestner@novell.com>
4910
4911         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
4912         to deal with people updating the TreeNodeCollection after the tree
4913         is disposed.  "Fixes" 79330.
4914
4915 2006-09-20  Jackson Harper <jackson@ximian.com>
4916
4917         * TextControl.cs: Push the cursor record onto the undo stack
4918         before the delete action. This fixes 78651.
4919
4920 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
4921
4922         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
4923         CreateParams. Fixes 79329.
4924
4925 2006-09-19  Chris Toshok  <toshok@ximian.com>
4926
4927         * XplatUIX11.cs: a couple of blanket code massage passes to clean
4928         things up a bit.  First, get rid of the NetAtoms array (and the NA
4929         enum), and just embed the atoms as static fields.  Also, add a
4930         couple of functions (StyleSet and ExStyleSet) to clean up all the
4931         bitmask testing of styles.
4932
4933         * X11Structs.cs: remove the NA enum, not needed anymore.
4934         
4935 2006-09-19  Chris Toshok  <toshok@ximian.com>
4936
4937         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
4938         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
4939         added cleanup to get MessageBox titles appearing again, which were
4940         broken by my earlier fix for caption-less/ControlBox-less windows.
4941
4942 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
4943
4944         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
4945           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
4946           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
4947           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
4948           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
4949           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
4950           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
4951           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
4952           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
4953           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
4954           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
4955             Inital import.
4956         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
4957           ToolStripButton.cs: Stubs needed for above.
4958         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
4959
4960 2006-09-15  Chris Toshok  <toshok@ximian.com>
4961
4962         * XplatUIX11.cs:
4963         - make the MessageQueues hashtable Synchronized.
4964         
4965         - SendMessage: if the Hwnd is owned by a different thread, use the
4966         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
4967         thread.  Fixes bug #79201.
4968
4969 2006-09-15  Chris Toshok  <toshok@ximian.com>
4970
4971         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
4972         ControlBox == false, we disallow maximize/minimize/close.  If the
4973         form Caption is "" we also disallow move (and get rid of the Title
4974         decoration).  Unfortunately, regardless of how things are set,
4975         we're stuck with the Title and WM menu.
4976
4977 2006-09-15  Chris Toshok  <toshok@ximian.com>
4978
4979         * Application.cs: add locking around the static message_filters
4980         ArrayList, part of #79196.
4981
4982 2006-09-15  Chris Toshok  <toshok@ximian.com>
4983
4984         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
4985         Form.ControlBox == false, the window has no titlebar nor resize
4986         handles.  fixes bug #79368.
4987
4988 2006-09-15  Chris Toshok  <toshok@ximian.com>
4989
4990         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
4991         >= 0.  Fixes bug #79370.
4992
4993 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
4994         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
4995         * Control.cs:
4996             Add properties: LayoutEngine, Margin, DefaultMargin.
4997             Add method: GetPreferredSize.
4998             Move layout logic from PerformLayout to layout engines. 
4999
5000 2006-09-13  Chris Toshok  <toshok@ximian.com>
5001
5002         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
5003         fix for #79326 broke #78718, so this change addresses that.
5004
5005         - in SendWMDestroyMessages remove the call to
5006         CleanupCachedWindows, since we might be recreating the control and
5007         need to maintain the references to right Hwnd handles.  Also, set
5008         the zombie flag to true for each of the children in the hierarchy
5009         instead of calling hwnd.Dispose.  This will cause GetMessage to
5010         ignore all events for the window except for DestroyNotify.
5011
5012         - In GetMessage, ignore messages except for DestroyNotify for
5013         zombie hwnds.
5014         
5015         * Control.cs: revert the is_recreating fix from the last
5016         ChangeLog.  It's definitely "right", but it breaks switching from
5017         an MDI form to a non-MDI form.  Will need to revisit that.
5018
5019         * Hwnd.cs: add a zombie flag, which means "the
5020         client_window/whole_window handles are invalid, but we're waiting
5021         for the DestroyNotify event to come in for them".  Set the flag to
5022         false explicitly if setting WholeWindow/ClientWindow, and also
5023         when Disposing.
5024         
5025 2006-09-13  Chris Toshok  <toshok@ximian.com>
5026
5027         * XplatUIX11.cs: rework window destruction slightly.
5028
5029         - when destroying the windows associated with a control, we don't
5030         need 2 separate XDestroyWindow calls.  Just the one for the
5031         whole_window (or for client_window if whole_window is somehow
5032         IntPtr.Zero -- can this happen?) is enough.
5033
5034         - reworked SendWMDestroyMessages slightly, so we always dispose
5035         the child control hwnd's after sending the messages.
5036         
5037         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
5038         the two places it was used (one was even using hwnd.Handle and the
5039         other hwnd.client_window.  ugh), adding another call in
5040         SendWMDestroyMessages.  We need this new call because now the
5041         DestroyNotify events in the queue will be ignored for the child
5042         controls (as their hwnd's were disposed, and the window id's
5043         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
5044
5045         - this fixes bug #79326.
5046
5047 2006-09-13  Chris Toshok  <toshok@ximian.com>
5048
5049         * Control.cs: don't always set is_recreating to false at the end
5050         of RecreateHandle, since sometimes we're not done (and won't be
5051         until WndProc handles the WM_DESTROY message).  Also, set
5052         is_recreating to false in the WM_DESTROY handling code.  Part of
5053         the fix for bug #79326.
5054
5055 2006-09-13  Miguel de Icaza  <miguel@novell.com>
5056
5057         * X11DesktopColors.cs: Start the droppage of debugging messages.
5058
5059         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
5060
5061 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
5062
5063         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
5064
5065 2006-09-12  Chris Toshok  <toshok@ximian.com>
5066
5067         * DataGrid.cs (get_ListManager): if the list_manager is null, try
5068         to create it using SetDataSource.  Fixes bug #79151.
5069
5070 2006-09-11  Chris Toshok  <toshok@ximian.com>
5071
5072         * XEventQueue.cs: add a DispatchIdle property.
5073
5074         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
5075         either the queue is null, or the queue has DispatchIdle set to
5076         true.
5077         (DoEvents): set queue.DispatchIdle to false around the
5078         peek/translate/dispatch message loop in this method.  This keeps
5079         Application.Doevents from emitting idle events.  Part of the fix
5080         for #78823.
5081
5082 2006-09-11  Chris Toshok  <toshok@ximian.com>
5083
5084         * DataGrid.cs (set_DataSource): make this work for both the
5085         winforms/datagrid test and ReportBuilder.  It seems as though when
5086         we've created a ListManager (or maybe it's if we have a
5087         BindingContext?), when we set the DataSource it clears the
5088         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
5089         #79333.
5090
5091 2006-09-11  Chris Toshok  <toshok@ximian.com>
5092
5093         * XplatUIX11.cs: deal with queue being null, which happens in all
5094         the Clipboard functions.  Fixes one of the two problems mentioned
5095         in #78612.
5096
5097 2006-09-11  Chris Toshok  <toshok@ximian.com>
5098
5099         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
5100         button on various spots (including outside the menu) works closer
5101         to MS, and doesn't crash.  Fixes #79343.
5102
5103 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
5104
5105         * ListView.cs: Do not initialize item_sorter in init. To match MS,
5106         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
5107         and the internal comparer is set. When a new ListViewItemSorter is set,
5108         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
5109         was specified. No further processing is necessary if SortOrder is set
5110         to it's current value. If Sorting is modified to None, and View is
5111         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
5112         (either custom or our internal ItemComparer) to null, on 1.0 profile
5113         only set item_sorter to null if its our internal IComparer. If Sorting
5114         is modified to Ascending or Descending, then use our internal IComparer
5115         if none is set, and if the current IComparer is our internal one then:
5116         on 2.0 profile always replace it with one for new Sorting, and on 1.0
5117         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
5118         Enum.IsDefined to verify whether a valid View value is specified in
5119         its setter. Automatically sort listview items when listview is
5120         created. In Sort, do nothing if ListView is not yet created, or if
5121         no item_sorter is set (no Sorting was set, Sorting was explicitly set
5122         to None or ListViewItemSorter was set to null). Added Sort overload
5123         taking a bool to indicate whether the ListView should be redrawn when
5124         items are sorted (we use this in ListViewItemCollection to avoid double
5125         redraws). Modified our internal IComparer to take the sort order into
5126         account. In Add and AddRange methods of ListViewItemCollection, also
5127         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
5128         view), but use overload with noredraw option to avoid double redraw.
5129         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
5130         true when View is Tile, and do the same when attempting to set View to
5131         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
5132         for selected/checked indices, as it involves overhead when sorting is
5133         done while these collections are not used all that often. Instead
5134         we'll build the indices on demand. Modified IList implementation of
5135         CheckedIndexCollection to use public methods if object is int.
5136         Modified CheckedListViewItemCollection to hide checked items if
5137         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
5138         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
5139         IList implementation in SelectedIndexCollection to use public methods
5140         if object is int. Modified SelectedListViewItemCollection to hide
5141         selected items if listview is not yet created.
5142         * ListViewItem.cs: CheckedIndices list no longer needs to be
5143         maintained separately (see ListView changes). Also clone font, fixes
5144         test failure.
5145
5146 2006-09-11  Mike Kestner  <mkestner@novell.com>
5147
5148         * ComboBox.cs: if we are updating the contents of the currently
5149         selected index, refresh the control or the textbox selection.
5150         [Fixes #79066]
5151
5152 2006-09-11  Mike Kestner  <mkestner@novell.com>
5153
5154         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
5155         the 'specified' logic has been moved there.  This seems like a bug 
5156         in Control.cs, since our current SetBoundsCore completely ignores 
5157         the specified parameter.  Peter's commit seems to indicate that is 
5158         the way the MS control implementation works.  [Fixes #79325]
5159
5160 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
5161
5162         * XplatUI.cs: Set default_class_name to be composed
5163         of current domain id. This allows MWF to be loaded in multiple
5164         domains on Win32.
5165
5166 2006-09-09  Miguel de Icaza  <miguel@novell.com>
5167
5168         * X11Keyboard.cs: If we are unable to obtain the input method, do
5169         not call CreateXic to create the input context.   Should fix
5170         #78944/79276.
5171
5172 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
5173
5174         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
5175           Simplified gnome support by adding more pinvokes to get the
5176           icon for a file or mime type.
5177
5178 2006-09-08  Jackson Harper  <jackson@ximian.com>
5179
5180         * MenuAPI.cs: Deslect popup context menu items before closing the
5181         window, so that you don't see the previously selected item
5182         selected when you reopen the menu.
5183         * TextControl.cs: Update the cursor position even if we don't have
5184         focus.  This fixes typing in things like the ComboBox.  I'm not
5185         totally sure we should always set the visibility if we don't have
5186         focus, but couldn't find any corner cases where the cursor showed
5187         up when it shouldn't.
5188
5189 2006-09-08  Chris Toshok  <toshok@ximian.com>
5190
5191         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
5192         our arrays are length 256.  & 0xff before indexing.  Fixes the
5193         crash in bug #78077.
5194         
5195 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5196
5197         * ThemeWin32Classic.cs: 
5198         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
5199         is true. Handle that check box too.
5200
5201 2006-09-07  Chris Toshok  <toshok@ximian.com>
5202
5203         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
5204         79244.
5205
5206 2006-09-07  Chris Toshok  <toshok@ximian.com>
5207
5208         * Control.cs: in set_BackColor only do the work if
5209         background_color != value.
5210
5211         * XplatUIX11.cs: move the clearing of invalid areas (both client
5212         and nc) to the same block of code where we set (nc_)expose_pending
5213         to false.  That is, move it from PaintEventEnd to PaintEventStart,
5214         so things that cause invalidates from within OnPaint will trigger
5215         another call to OnPaint.  Fixes bug #79262.
5216
5217 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
5218
5219         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
5220         * FileDialog.cs: Fix typo
5221
5222 2006-09-07  Jackson Harper  <jackson@ximian.com>
5223
5224         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
5225         for tab pages if they have any.
5226
5227 2006-09-06  Mike Kestner  <mkestner@novell.com>
5228
5229         * Splitter.cs: use the "current" rect when finishing drag handle
5230         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
5231
5232 2006-09-06  Mike Kestner  <mkestner@novell.com>
5233
5234         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
5235         support offset splitters. [Fixes #79298]
5236
5237 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
5238
5239         * Mime.cs: Fixed a bug that could override the global mime type
5240           result.
5241
5242 2006-09-05  Jackson Harper  <jackson@ximian.com>
5243
5244         * TabControl.cs: Better calculation method for setting the slider
5245         pos. Prevents crashes on really wide tabs.
5246         - Draw Image on tab pages if an image list is used.
5247
5248 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5249
5250         * MonthCalendar.cs: When Font changes, the Size should be
5251         updated to fit the new font's space requirements.
5252
5253 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
5254
5255         * ListBox.cs: If the items are cleared with Items.Clear set
5256           top_index to 0.
5257
5258 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5259
5260         * MonthCalendar.cs: Handle arrow keys as input keys. Also
5261         fire DateChanged event instead of DateSelected event when
5262         the date was changed by keyboard interaction.
5263
5264 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5265
5266         * DateTimePicker.cs: Handle DateChanged for the associated
5267         month_calendar control, and set month_calendar.Font from 
5268         OnFontChanged method, as well as resize the height of the
5269         control when needed. Make PreferredHeight proportional.
5270
5271 2006-09-01  Chris Toshok  <toshok@ximian.com>
5272
5273         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
5274         properties.
5275
5276         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
5277
5278 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
5279
5280         * FileDialog.cs: Set ClientSize instead of window size, to allow space
5281           for decorations (Fixes #79219)
5282
5283 2006-09-01  Mike Kestner  <mkestner@novell.com>
5284
5285         * ComboBox.cs: first stab at sorting plus some selection handling
5286         fixes to bring us more in line with MS behavior.  Also switches back
5287         to index based selection.  Alternative patches for index-based 
5288         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
5289         and latency@gmx.de on bug 78848.  I assume they were similar to this
5290         code I've had simmering in my tree forever.
5291         [Fixes #78848]
5292
5293 2006-09-01  Chris Toshok  <toshok@ximian.com>
5294
5295         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
5296         when setting list position guard against ending up with a -1 index
5297         (the other part of the fix for #78812).  Should probably make sure
5298         we don't need the analogous fix in the ItemDeleted case.
5299
5300         * DataGrid.cs:
5301         - in SetDataSource, work around the fact that the way
5302         OnBindingContextChanged is invoked will cause us to re-enter this
5303         method.  I'll remove the hack once I investigate
5304         OnBindingContextChanged.
5305
5306         - fix the logic in set_DataSource and set_DataMember (basically
5307         what to do if the other of the two is null.)
5308         
5309         - in OnListManagerItemChanged, we need to take into account the
5310         edit row when deciding whether or not to call RecreateDataGridRows
5311         (part of the fix for #78812).
5312
5313 2006-09-01  Jackson Harper  <jackson@ximian.com>
5314
5315         * Splitter.cs: Don't do anything if there is no control to affect
5316         (prevents us from crashing in weird tet cases).
5317         * TreeView.cs: Bounding box for the mouse movement reverting
5318         focus/selection back to previously selected node.  This matches
5319         MS, and makes the tree a lot more useable.
5320         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
5321         use clipping so they are not drawn.  This fixes when the control
5322         is set to have a transparent background, or if it was over an
5323         image.
5324
5325 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
5326
5327         * MimeIcon.cs: Improved handling for reading default icons when
5328           using gnome (2.16 made it necessary). Check and read svg icons
5329           first, then 48x48 and then 32x32 icons.
5330
5331 2006-08-31  Chris Toshok  <toshok@ximian.com>
5332
5333         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
5334         visible.
5335
5336         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
5337         ProcessKeyPreview.  Fixes part of #77806.
5338
5339         * DataGrid.cs: big patch.
5340
5341         - revert the queueing up of DataSource/DataMember if inside
5342         BeginInit/EndInit calls.  That's not the way the datagrid achieves
5343         its delayed databinding.  Instead, call SetDataSource in
5344         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
5345         #78811.
5346
5347         - Also, it wasn't mentioned in #78811, but the test case exhibits
5348         behavior that was lacking in our datagrid implementation - Columns
5349         that have mapping names that don't exist in the datasource's
5350         properties aren't shown.  Yuck.  To fix this I added the bound
5351         field to the column style, and basically any calculation to figure
5352         out anything about columns uses a loop to find the bound columns.
5353         still need to investigate if I can cache an array of the bound
5354         columns or if the indices must be the same.
5355
5356         - When setting CurrentCell, we no longer abort if the cell being
5357         edited was in the add row.  This fixes the other part of #77806.
5358
5359         - The new code also fixes #78807.
5360         
5361         * ThemeWin32Classic.cs: perpetrate the same disgusting
5362         column.bound field hack, and only render bound fields.
5363
5364 2006-08-31  Chris Toshok  <toshok@ximian.com>
5365
5366         * DataGridColumnStyle.cs: add bound field.  this field is true if
5367         the datasource has a property corresponding to the mapping name.
5368
5369         * DataGridTableStyle.cs: set the bound field on the column styles
5370         depending on whether or not we have a column for that property.
5371
5372 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
5373
5374         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
5375           splitter control (fixes #79228)
5376
5377 2006-08-31  Chris Toshok  <toshok@ximian.com>
5378
5379         * DataGridColumnStyle.cs: we need to delay the assignment of
5380         property descriptor until the last possible moment due to the lazy
5381         databinding stuff in the datagrid.  Also, fix the exceptions
5382         thrown by CheckValidDataSource to match MS.
5383
5384 2006-08-31  Jackson Harper  <jackson@ximian.com>
5385
5386         * Form.cs: When activated select the active control, if there is
5387         no active control, we select the first control.
5388         * XplatUIX11.cs: If there is no focus control when we get a
5389         FocusIn event, find the toplevel form and activate it.  This
5390         occurs when you popup a window, it becomes the focus window, then
5391         you close that window, giving focus back to the main window.
5392
5393 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5394
5395         * MonthCalendar.cs: 
5396         * ThemeWin32Classic.cs: Cache Font in bold style, as well
5397         as StringFormat with Center alignments in MonthCalendar,
5398         instead of creating new ones when drawing the control. 
5399         Also, draw the month name in bold style.
5400
5401 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
5402
5403         * Control.cs:
5404           - PerformLayout(): It would seem MS performs the fill even if the 
5405             control is not visible (part of #79218 fix)
5406           - ResetBackColor(): Use the setter to reset the color, to allow
5407             overriders to catch the change.
5408         * Form.cs:
5409           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
5410           - CreateHandle(): dito (part of $79218 fix)
5411           - Don't set an icon if we have a dialog
5412         * ScrollableControl.cs:
5413           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
5414           - ScrollIntoView(): No need to scroll if control is already visible
5415             (resolves fixme and fixes #79218)
5416
5417 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5418
5419         * MonthCalendar.cs: Change proportions in SingleMonthSize
5420         to match the aspect of the original control.
5421
5422 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
5423
5424         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
5425           get updated when they get maximized.
5426
5427 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
5428
5429         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
5430
5431 2006-08-29  Chris Toshok  <toshok@ximian.com>
5432
5433         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
5434
5435 2006-08-29  Jackson Harper  <jackson@ximian.com>
5436
5437         * TreeView.cs: Need to track selected node and highlighted node,
5438         they aren't always the same thing, when the mouse is down on a
5439         node it is hilighted, but not selected yet.
5440         - Do the HideSelection stuff right
5441         - Need to focus on rbutton mouse down. And redraw selection when
5442         right click is mouse upped.
5443
5444 2006-08-29  Mike Kestner  <mkestner@novell.com>
5445
5446         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
5447         when SubItems.Count < Columns.Count.  [Fixes #79167]
5448
5449 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
5450
5451         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
5452
5453 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
5454
5455         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
5456           from X. Only send based on ConfigureNotify if we don't have the
5457           correct location in hwnd (if the window manager moved us)
5458
5459 2006-08-28  Mike Kestner  <mkestner@novell.com>
5460
5461         * ListView.cs: remove a TODO. 
5462         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
5463         [Fixes ListView part of #79166]
5464
5465 2006-08-28  Mike Kestner  <mkestner@novell.com>
5466
5467         * ListView.cs: move wheel handler to parent since it is focused
5468         instead of the item_control now.  [Fixes #79177]
5469
5470 2006-08-28  Mike Kestner  <mkestner@novell.com>
5471
5472         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
5473         when the control is focused. [Fixes #79171]
5474
5475 2006-08-28  Mike Kestner  <mkestner@novell.com>
5476
5477         * ListView.cs: size the item and header controls for empty and
5478         unscrollable views.
5479         * ThemeWin32Classic.cs: draw disabled backgrounds.
5480         [Fixes #79187]
5481
5482 2006-08-28  Chris Toshok  <toshok@ximian.com>
5483
5484         * Form.cs: remove unused "active_form" static field.
5485
5486         * Hwnd.cs: lock around accesses to static windows collection.
5487
5488         * Application.cs: lock threads in Exit ().
5489
5490 2006-08-28  Chris Toshok  <toshok@ximian.com>
5491
5492         * NativeWindow.cs: lock around accesses to window_collection.
5493         
5494 2006-08-28  Chris Toshok  <toshok@ximian.com>
5495
5496         * Control.cs: err, fix this the right way, by locking on controls
5497         when using it.  not by making it synchronized.
5498
5499 2006-08-28  Chris Toshok  <toshok@ximian.com>
5500
5501         * Control.cs: make the static "controls" field synchronized, as it
5502         gets updated from multiple threads.
5503
5504 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
5505
5506         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
5507           Prevent other threads from exiting when calling thread sets quit state.
5508         * XEventQueue.cs: Added PostQuitState property
5509
5510 2006-08-27  Chris Toshok  <toshok@ximian.com>
5511
5512         * AsyncMethodData.cs: add a slot for the window handle.
5513
5514         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
5515         window (the destination control's window, not the foster window).
5516
5517         * Control.cs (BeginInvokeInternal): store the window's handle in
5518         the AsyncMethodData.
5519         
5520
5521 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
5522
5523         * XplatUIX11.cs:
5524           - PostQuitMessage: Removed resetting S.D display handle, we might have
5525             another loop started after calling PostQuitMessage (Fixes #79119)
5526           - Created destructor to reset S.D handle
5527
5528 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
5529
5530         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
5531
5532 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
5533
5534         * TextControl.cs (Insert): Update the caret position even if we don't
5535           have a handle yet, just don't call the driver in that case.
5536         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
5537           to the end of the new selection text (Fixes #79184)
5538
5539 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
5540
5541         * Form.cs (Activate): Only activate if the handle is created)
5542         * Control.c:
5543           - Mark window as invisible when it's disposed
5544           - Check if window handle is created when setting window visible, 
5545             instead of relying just on the is_created variable
5546           - Check if object is disposed when creating the control (Fixes #79155)
5547
5548 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
5549
5550         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
5551           when allowing layout again. Otherwise we re-generate the anchoring 
5552           distance to the border again and actually alter what the user wanted
5553           This is ugly, it'd be better if we used DisplayRectangle instead of
5554           ClientRectangle for Control.UpdateDistances, but that causes us to
5555           have other problems (initial anchoring positons would be wrong)
5556           (Fixes #78835)
5557
5558 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
5559
5560         * Control.cs:
5561           - The size and location setters shouldn't go directly to 
5562             SetBoundsCore, but to SetBounds, which triggers layout on the
5563             parent, then calls SetBoundsCore. (Related to fix for #78835)
5564           - SetBounds: Moved actual location update code into this function
5565             from SetBoundsCore, to match MS. Added call to PerformLayout if
5566             we have a parent (to trigger resizing of anchored parents if the 
5567             child size has changed (see testcase for #78835) 
5568         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
5569           new control code
5570         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
5571
5572 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
5573
5574         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
5575           System.Drawing when a toplevel window gets closed; there might
5576           be other toplevel windows belonging to the same app (Fixes #78052)
5577
5578 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
5579
5580         * FileDialog.cs: After reading FileDialog settings from mwf_config
5581           use Desktop prefix only if a real folder doesn't exist anymore.
5582         * FontDialog.cs: Added char sets.
5583           It is now possible to select the font, size or style with the
5584           textboxes.
5585
5586 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
5587
5588         * PrintPreviewDialog.cs: Use assembly name constants.
5589
5590 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
5591
5592         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
5593           scrollbar from whacking it's buttons)
5594
5595 2006-08-24  Chris Toshok  <toshok@ximian.com>
5596
5597         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
5598         in this patch (aggregating setting Left/Top/Width/Height to
5599         setting Bounds on the scrollbars), but the crux of the fix is in
5600         Recalculate, where we scroll by the remaining scroll_position if
5601         we're hiding a scrollbar.  The 2*$5 reward in the comment is
5602         serious.
5603
5604 2006-08-24  Jackson Harper  <jackson@ximian.com>
5605
5606         * MdiClient.cs:
5607         * MdiWindowManager.cs: If the form is made a non-mdi window we
5608         need to remove the form closed event so that closing forms works
5609         correctly.
5610
5611 2006-08-24  Jackson Harper  <jackson@ximian.com>
5612
5613         * Control.cs: Make IsRecreating internal so that the driver can
5614         check it
5615         - Temporarily remove the Hide when controls are removed, its
5616         making a whole bunch of things not work because visibility isn't
5617         getting reset elsewhere correctly
5618         * Form.cs: Need to do a full handle recreation when the mdi parent
5619         is set.
5620         * XplatUIX11.cs: If we are recreating handles don't dispose the
5621         HWNDs.  What was happening is the handles were being recreated in
5622         SendWMDestroyMessages, but then flow continued on in that method
5623         and destroyed the new handles.
5624
5625 2006-08-23  Jackson Harper  <jackson@ximian.com>
5626
5627         * Form.cs: MdiClient is always at the back of the bus
5628         * Control.cs: When the order of items in the collection is changed
5629         we need to reset the all_controls array
5630         - do the same sorta setup thats done when adding a control when a
5631         control is set on the collection.
5632
5633 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
5634
5635         * TextBoxBase.cs (get_Text): Return an empty array if our document
5636           is empty (fixes #79052)
5637
5638 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
5639
5640         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
5641           on WM_SYSCHAR messages (fixes #79053)
5642
5643 2006-08-23  Chris Toshok  <toshok@ximian.com>
5644
5645         * DataGrid.cs: fix flickering when scrolling vertically.
5646
5647 2006-08-23  Chris Toshok  <toshok@ximian.com>
5648
5649         * DataGrid.cs (EndEdit): only invalidate the row header when we
5650         need to.
5651
5652 2006-08-23  Chris Toshok  <toshok@ximian.com>
5653
5654         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
5655         methods.  fixes the flicker when scrolling around.
5656
5657 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
5658
5659         * FileDialog.cs: Making sure the control is created before we get a 
5660           chance to use it with BeginInvoke (Fixes #79096)
5661
5662 2006-08-23  Chris Toshok  <toshok@ximian.com>
5663
5664         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
5665         width to use when painting the rows.
5666
5667 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
5668
5669         * TextBoxBase.cs:
5670           - Throw ArgumentException if a negative value is passed to SelectionLength
5671           - Update the selection end if start is moved. end needs to be always
5672             after start. (Fixes #79095)
5673           - Track selection length; MS keeps the selection length even if start
5674             is changed; reset on all other operations affection selection
5675
5676 2006-08-22  Jackson Harper  <jackson@ximian.com>
5677
5678         * TreeView.cs: Make sure both scrollbars get displayed and sized
5679         correctly when the other bar is visible.
5680         - Use the original clip rectangle for checking if the area between
5681         the two scrollbars is visible, not the viewport adjusted clipping
5682         rectangle.
5683
5684 2006-08-22  Jackson Harper  <jackson@ximian.com>
5685
5686         * Binding.cs: We don't use IsBinding because it requires the
5687         control to be created, which really shouldn't be necessary just to
5688         set a property on the control.
5689
5690 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5691
5692         * ComboBox.cs: Some CB.ObjectCollection methods must throw
5693         ArgumentNullReferenceException when the argument is null.
5694
5695 2006-08-21  Jackson Harper  <jackson@ximian.com>
5696
5697         * Timer.cs: Track the thread that the timer is started in (NOT
5698         CREATED), this way messages for it will only be triggered on its
5699         queue.
5700         * XEventQueue.cs: Track the timers here, this makes timers per
5701         thread, like MS.
5702         * XplatUIX11.cs: The timers are moved to the XEventQueue.
5703
5704 2006-08-19  Chris Toshok  <toshok@ximian.com>
5705
5706         * XplatUIX11.cs: after further communication with pdb, we get the
5707         best of both worlds.  SetZOrder working for un-Mapped windows, and
5708         no X errors for un-mapped windows.
5709
5710 2006-08-19  Chris Toshok  <toshok@ximian.com>
5711
5712         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
5713         as it was causing pdn toolbars to not have the correct stacking.
5714
5715 2006-08-18  Mike Kestner  <mkestner@novell.com> 
5716
5717         * ListView.cs : guard against negative ClientArea.Width in scrollbar
5718         calculation.  Not sure why control should ever be setting a negative
5719         width though.  Fixes #78931.
5720
5721 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5722
5723         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
5724         null items in ObjectCollection class.
5725         * ListBox.cs.: Likewise.
5726
5727 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
5728
5729         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
5730           as the base method in ThemeWin32Classic should work fine.
5731           Fixed bug #78607.
5732
5733 2006-08-18  Jackson Harper  <jackson@ximian.com>
5734
5735         * Binding.cs: When validating if the value entered doesn't convert
5736         properly reset to the old value.
5737         * RadioButton.cs: Don't fire click when we get focus.
5738
5739 2006-08-18  Jackson Harper  <jackson@ximian.com>
5740
5741         * FileDialog.cs: Paint the selection on the directory combobox the
5742         same way as on MS. 
5743
5744 2006-08-17  Jackson Harper  <jackson@ximian.com>
5745
5746         * ErrorProvider.cs: Don't allow the error control to be selected.
5747         * Control.cs: Don't send the SetFocus messages, the control
5748         activation will do this, and if we do it blindly here validation
5749         does not work.
5750
5751 2006-08-17  Jackson Harper  <jackson@ximian.com>
5752
5753         * Control.cs:
5754         * ContainerControl.cs: Make validation events fire in the correct
5755         order.  TODO: For some reason the first validation event is not
5756         getting fired.
5757
5758 2006-08-17  Mike Kestner  <mkestner@novell.com> 
5759
5760         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
5761
5762 2006-08-17  Mike Kestner  <mkestner@novell.com> 
5763
5764         * ComboBox.cs : implement scroll wheel support for popped-down
5765         state. Fixes #78945. 
5766
5767 2006-08-17  Jackson Harper  <jackson@ximian.com>
5768
5769         * TreeView.cs: Specify treeview actions (old patch that didn't get
5770         committed for some reason).
5771         - Don't let the mouse wheel scroll us too far.  Just want to make
5772         the bottom node visible, not scroll it all the ways to the top.
5773
5774 2006-08-17  Jackson Harper  <jackson@ximian.com>
5775
5776         * XplatUIX11.cs: Mouse wheel events go to the focused window.
5777
5778 2006-08-17  Mike Kestner  <mkestner@novell.com> 
5779
5780         * ComboBox.cs : don't do mouseover selection in simple mode.
5781
5782 2006-08-16  Jackson Harper  <jackson@ximian.com>
5783
5784         * Form.cs: Fire the closing events for all the mdi child windows
5785         when a window is closed.  If the cancel args are set to true, the
5786         main window still gets the event fired, but it doesn't not close.
5787         * MdiWindowManager.cs: Do this closing cleanup in a Closed
5788         handler, instead of when the button is clicked, so cancelling the
5789         close works correctly.
5790         * ComboBox.cs: Send the mouse down to the scrollbar.
5791
5792 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5793
5794         * ListBox.cs: When passing 'null' to SelectedItem,
5795         set SelectedIndex to -1, to unselect items. This is the
5796         observed behaviour in .Net.
5797
5798 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
5799
5800         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
5801           MS flags saying there won't be any. (fixes #78800)
5802         * Control.cs (HandleClick): Made virtual
5803
5804 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
5805
5806         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
5807           cultures. Fixed bug #78399.
5808
5809 2006-08-16  Jackson Harper  <jackson@ximian.com>
5810
5811         * Form.cs: Use the MdiClients MdiChildren property to access
5812         MdiChildren instead of creating the array from the child controls.
5813         * MdiClient.cs: Maintain a separate array of the mdi children, so
5814         that insertion order is maintained when the Z-order is changed.
5815
5816 2006-08-16  Mike Kestner  <mkestner@novell.com> 
5817
5818         * ListView.cs : add an ItemComparer and default to it for sorting.
5819         Fixes #79076, but sorting needs a complete overhaul to be compat with
5820         MS.
5821
5822 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
5823
5824         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
5825
5826 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
5827
5828         * Hwnd.cs (Mapped): Properly traverse the tree
5829
5830 2006-08-15  Chris Toshok  <toshok@ximian.com>
5831
5832         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
5833         pass manager.Current.GetType() to ParseData.  It has to be the
5834         property type.  So, hold off doing the ParseData until we're in
5835         SetPropertyValue where we know the type.  This fixes the crash in
5836         #78821 but the textbox is still empty.
5837
5838 2006-08-15  Chris Toshok  <toshok@ximian.com>
5839
5840         * DataGrid.cs:
5841         - when we're scrolling, only call Edit() again if the
5842         current cell is still unobscured. Fixes bug #78927.
5843         - when handling mousedown on a cell, ensure the cell is visible
5844         before calling Edit.
5845         - remove the properties from DataGridRow, and remove the
5846         DataGridParentRow class altogether.
5847         
5848
5849 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
5850
5851         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
5852           fire OnTextChanged by ourselves. There's no point calling base,
5853           we don't set the base value anywhere else. Fixes #78773.
5854
5855 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5856
5857         * ListBox.cs: Call CollectionChanged when modifying
5858         an item from Items indexer, to update the actual items
5859         in the list box.
5860
5861 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5862
5863         * PrintDialog.cs: Small fixes for focus and a pair of checks,
5864         to match .Net behaviour.
5865
5866 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
5867
5868         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
5869
5870 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
5871
5872         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
5873
5874 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
5875
5876         * MessageBox.cs: Prevent potential NRE exception.
5877         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
5878
5879 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
5880
5881         * MessageBox.cs: Calculate the owner of a messagebox, also make
5882           it topmost. Fixes #78753
5883
5884 2006-08-14  Chris Toshok  <toshok@ximian.com>
5885
5886         * XplatUIX11.cs: A couple of fixes so that metacity will let us
5887         programmatically move windows.  first, set the PPosition hint as
5888         well as the USPosition hint.  Second include some code from pdb
5889         that sets the window type to NORMAL when we set the transient for
5890         hint.  This is because, in the absence of a window type, metacity
5891         thinks any window with TransientFor set is a dialog, and refuses
5892         to let us move it programmatically.  fascists.
5893
5894 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
5895
5896         * XplatUIX11.cs: When setting normal hints, take into consideration
5897           an different hints previously set so we don't delete them (fixes #78866)
5898
5899 2006-08-12  Chris Toshok  <toshok@ximian.com>
5900
5901         * ToolBarButton.cs: make Layout return a boolean, if something to
5902         do with the button's layout changed.
5903
5904         * ToolBar.cs:
5905         - add another parameter to Redraw, @force, which all existing
5906           calls set to true.
5907         - make the Layout function return a boolean which is true if the
5908           layout has actually changed.  Redraw now uses this (and @force)
5909           to determine when to invalidate.  At present the only place
5910           where @force can be false is the call from OnResize, when
5911           background_image == null.  So, resizing a toolbar when the
5912           layout doesn't change results in no drawing.
5913
5914 2006-08-12  Chris Toshok  <toshok@ximian.com>
5915
5916         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
5917         the VScrollBar and HScrollbar reversed.  oops.
5918
5919         * DataGrid.cs: fix the logic that assigns sizes to the implicit
5920         scrollbars.  we were assigning them twice (once in
5921         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
5922         therefore causing two scrollbar resizes (and redraws?) to happen
5923         per grid resize.
5924
5925 2006-08-12  Chris Toshok  <toshok@ximian.com>
5926
5927         * ToolBarButton.cs: redraw the entire button if the theme tells us
5928         to.
5929
5930         * Theme.cs: add ToolBarInvalidateEntireButton.
5931
5932         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
5933         buttons, just the border.
5934
5935         * ThemeNice.cs: redraw the entire toolbar button since we need to
5936         draw the highlight image.
5937
5938         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
5939         we need to redraw the entire button (not just the border).
5940
5941 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
5942
5943         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
5944           for vertical bars. Fixes the mismatches shown by #78513
5945
5946 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
5947
5948         * FileDialog.cs: If a saved/remembered path doesn't exist
5949           anymore, fall back to "Desktop".
5950
5951 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
5952
5953         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
5954           parent. It's apparently legal to not have one
5955         * XplatUIX11.cs:
5956           - SetZOrder: Don't try to set Z-Order on an unmapped window
5957           - CreateWindow: 0,0 are legal coordinates for a window. don't move
5958             it unless the coordinates are negative
5959
5960 2006-08-10  Mike Kestner  <mkestner@novell.com>
5961
5962         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
5963         when setting to null per msdn docs.  Fixes #78854.
5964
5965 2006-08-10  Chris Toshok  <toshok@ximian.com>
5966
5967         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
5968         flickering by setting a clip rectangle on the Graphics when we
5969         need to redraw just a particular menuitem.  Also, rename "OnClick"
5970         to "OnMouseDown" to reflect what it actually is.
5971         
5972         * Form.cs: track the OnMouseDown change.
5973
5974 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
5975
5976         * CommonDialog.cs: Properly inherit the CreateParams from the form
5977           and only change what we need. Fixes #78865
5978
5979 2006-08-10  Chris Toshok  <toshok@ximian.com>
5980
5981         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
5982         flickering in flat mode (and most of the flickering in general) by
5983         only invalidating the button border (and not the entire rectangle)
5984         when the state changes.  A couple of cases still flicker:
5985         ToggleButtons, and the dropdown arrow case when the user mouse
5986         ups.
5987
5988 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
5989
5990         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
5991           for german keyboards. Numlock state shouldn't affect the behaviour
5992           of the Del key. Fixes bug #78291.
5993
5994 2006-08-10  Chris Toshok  <toshok@ximian.com>
5995
5996         * ListControl.cs: remove the items.Clear line from BindDataItems,
5997         as this is the first thing done by both subclasses in their
5998         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
5999         passed -1, refresh the list.  This gets databinding working when
6000         the datasource is set on the list before the datasource is
6001         populated (as in wf-apps/ReportBuilder.)
6002
6003         * ComboBox.cs: remove the argument to BindDataItems.  This call
6004         should really go away, and be initiated by the ListControl code.
6005
6006         * ListBox.cs: same.
6007
6008 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
6009
6010         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
6011           if no data is in the document when the control is displayed
6012
6013 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
6014
6015         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
6016           yes (fixes #78806)
6017         * TextControl.cs: 
6018           - PositionCaret: Allow positioning of caret but don't call methods 
6019             requiring a handle if the window isn't created yet
6020           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
6021           - owner_HandleCreated: Don't position the caret, just update it's 
6022             location. User might have already set a different position
6023
6024 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
6025
6026         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
6027           windows. Screws up the returned coordinates for child windows. 
6028           Fixes #78825. I'm hoping this doesn't break something, since the
6029           code was explicitly put in 8 months ago, but no bug was attached.
6030           Menus still seem to work properly.
6031
6032 2006-08-08  Chris Toshok  <toshok@ximian.com>
6033
6034         * DataGrid.cs: make BeginInit/EndInit actually do what they're
6035         supposed to do - delay data binding until the EndInit call.  Also,
6036         make the table style collection's CollectionChangeAction.Refresh
6037         work properly.
6038
6039         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
6040         (with action = Refresh) when a consituent table's MappingName is
6041         changed.
6042
6043 2006-08-08  Chris Toshok  <toshok@ximian.com>
6044
6045         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
6046         Invalidate, since changing the text can change the size of the all
6047         toolbar buttons.
6048
6049 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
6050
6051         * Form.cs (AddOwnedForm): Still need to add the form to our listif
6052           we don't have it yet
6053
6054 2006-08-08  Chris Toshok  <toshok@ximian.com>
6055
6056         * PrintControllerWithStatusDialog.cs: don't .Close() the status
6057         dialog, as this causes X errors later on, since we actually
6058         destroy the window.  Instead, .Hide() it.
6059
6060 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
6061
6062         * ComboBox.cs: Added focus reflection for popup window
6063         * XplatUIX11.cs: 
6064           - Removed transient setting for non-app windows for now, not sure it
6065             was needed
6066           - Fixed logic checking if we have captions when deciding 
6067             override_redirect, WS_CAPTION is two bits and a 0 check was not
6068             sufficient
6069           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
6070             complicated
6071         * Form.cs: 
6072           - AddOwnedForm: Don't just add the form to the list, call the property
6073             to ensure the driver is informed about the ownership as well
6074           - CreateHandle: Set the TopMost status in the driver if we have an owner
6075         * XplatUI.cs: Fixed debug statement
6076
6077 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
6078         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
6079           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
6080           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
6081           TrackBarRenderer.cs: Make constructor private.
6082         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
6083         * ProfessionalColorTable.cs: Make properties virtual.
6084
6085 2006-08-06  Duncan Mak  <duncan@novell.com>
6086
6087         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
6088         is not changing.
6089
6090 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
6091         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
6092           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
6093           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
6094           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
6095           Initial import of new 2.0 classes.
6096
6097 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
6098         * Application.cs: Add 2.0 VisualStyles properties.
6099
6100 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
6101         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
6102           XplatUIX11.cs: Create property to allow access to existing private
6103           variable "themes_enabled"
6104
6105 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
6106
6107         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
6108         file size, as otherwise our class libraries fail using windows. Fixes
6109         bug #78759.
6110
6111 2006-08-04  Jackson Harper  <jackson@ximian.com>
6112
6113         * Form.cs:
6114         * XplatUIX11.cs: Move the toolwindow window manager creation into
6115         the X11 driver, this way on win32 we can let windows create/handle
6116         the toolwindows.
6117
6118 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6119
6120         * PrintDialog.cs: Remove some redundant checks, add some others,
6121         clean some code, and move the focus to the text boxes when the
6122         values are incorrect.
6123
6124 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
6125
6126         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
6127
6128 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
6129
6130         * NumericUpDown.cs: Setting the Minimum and Maximum is now
6131           handled correctly. Fixes bug #79001.
6132
6133 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6134
6135         * PrintDialog.cs: The "Copies" numeric up down must have
6136         set the Minimum property to 1; only if the value is bigger
6137         than 1, activate "Collate" check box. This is the behaviour of .Net.
6138         Also modify the Document elements only if it is not null.
6139
6140 2006-08-03  Jackson Harper  <jackson@ximian.com>
6141
6142         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
6143         length. (We have a larger array then actual node count).
6144                 
6145 2006-08-03  Jackson Harper  <jackson@ximian.com>
6146
6147         * ComboBox.cs: Don't show selection by default.
6148         - The SelectAll isn't needed here, since the focus code should do
6149         that
6150         - DDL style lists to manual selection drawing, so when they
6151         get/lose focus they have to invalidate.
6152
6153 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
6154
6155         * TextBoxBase.cs: Don't always show all selections by default.
6156
6157 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
6158         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
6159           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
6160           Fixed various typos.
6161
6162 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
6163
6164         * Control.cs: Removing the controls in a ControlCollection with
6165           Clear now hides the controls as expected. Fixes bug #78804. 
6166
6167 2006-08-03  Jackson Harper  <jackson@ximian.com>
6168
6169         * Control.cs: Revert previous focus patch, it breaks reflector.
6170
6171 2006-08-03  Jackson Harper  <jackson@ximian.com>
6172
6173         * ComboBox.cs: Cleanup selection and focus with the combobox.
6174         This also eliminates some duplicated keyboard code, since now
6175         everything is handled by the main class.
6176         - Make list selection work on mouse up instead of down, to match
6177         MS.
6178
6179 2006-08-02  Jackson Harper  <jackson@ximian.com>
6180
6181         * Control.cs: Setting focus needs to go through the whole
6182         selection mechanism.
6183
6184 2006-08-02  Chris Toshok  <toshok@ximian.com>
6185
6186         * PrintPreviewDialog.cs: change MinimumSize to use
6187         base.MinimumSize so it works.
6188
6189 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
6190
6191         * TextControl.cs:
6192           - UpdateCaret: Added sanity check in case caret isn't defined yet
6193           - Line.Delete: Now updating selection and caret markers if we're
6194             transfering a node (Properly fixes #78323)
6195           - SetSelectionEnd: Added sanity check
6196         * TextBoxBase.cs: Removed broken attempt to fix #78323
6197
6198 2006-08-01  Chris Toshok  <toshok@ximian.com>
6199
6200         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
6201         Close() call is handled in Form, not here.
6202
6203 2006-08-01  Chris Toshok  <toshok@ximian.com>
6204
6205         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
6206         layout/rendering.
6207
6208         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
6209         for sizes < 100% zoom.  The code now aggressively attempts to keep
6210         from calling document.Print (), and tries not to use the scaling
6211         g.DrawImage whenever possible (it still does if you scale to >
6212         100%, since usually that involves huge images).
6213
6214         * PrintPreviewControl.cs: hook up the close button.
6215
6216 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
6217         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
6218           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
6219           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
6220           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
6221           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
6222           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
6223           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
6224           Removed [Serializable] for 2.0 Event Handlers.
6225
6226 2006-07-31  Jackson Harper  <jackson@ximian.com>
6227
6228         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
6229         * TextControl.cs: Uncomment out the body of this method.
6230
6231 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
6232
6233         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
6234           standard cursors.
6235
6236 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
6237
6238         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
6239           that embed TextBox and need selections visible even if textbox is not
6240           focused to enforce that behaviour.
6241         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
6242           selection drawing
6243
6244 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
6245
6246         * TextControl.cs:
6247           - Added new SetSelectionStart/SetSelectionEnd overloads
6248           - Fixed viewport width assignment to be accurate
6249           - Adjusted alignment line shift calculations to allow cursor on right
6250             aligned lines to be always visible at the right border (like MS)
6251         * TextBoxBase.cs:
6252           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
6253           - TextBoxBase_SizeChanged: recalculating canvas on size changes
6254           - CalculateScrollBars: Use ViewPort size instead of window size, to
6255             properly consider space occupied by the border and scrollbars 
6256             (Fixes #78661)
6257           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
6258             calculations; no longer leaves artifacts
6259           - CaretMoved: Adjusted window scrolling to match MS and fixed several
6260             calculation bugs (Still missing right/center align calculations)
6261
6262 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
6263
6264         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
6265           use of both scroll rect and clip rect, as they do the same.
6266
6267 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
6268
6269         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
6270           in the event handler (fixes #78912)
6271
6272 2006-07-31  Chris Toshok  <toshok@ximian.com>
6273
6274         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
6275         grid.ListManager.Count, since grid.ListManager might be null.
6276         This of course begs the question "why are we drawing rows for a
6277         grid with no list manager (and therefor no rows)?"  Fixes the
6278         crash in bug #78929.
6279
6280 2006-07-31  Chris Toshok  <toshok@ximian.com>
6281
6282         * RelatedPropertyManager.cs: Don't always chain up to the parent
6283         ctor.  instead, call SetDataSource if the parent's position is !=
6284         -1.  Fixes the crash in #78822.
6285
6286 2006-07-31  Chris Toshok  <toshok@ximian.com>
6287
6288         * DataGrid.cs (get_ListManager): use field instead of property
6289         accessors for datasource and datamember.
6290         (RowsCount): make internal again.
6291         (OnMouseDown): end edits before resizing columns/rows.
6292         (OnMouseUp): restart edits after resizing columns/rows.
6293
6294 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
6295
6296         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
6297           This fixes the situation where the last set cursor is displayed
6298           whenever the mouse is over scrollbars.
6299
6300 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6301
6302         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
6303         Document properties, as well as initial values.
6304
6305 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
6306
6307         * XplatUIWin32.cs (SetBorderStyle): Setting both border
6308           and ClientEdge results in a 3-pixel border, which is
6309           wrong.
6310
6311 2006-07-28  Jackson Harper  <jackson@ximian.com>
6312
6313         * TreeNodeCollection.cs: Fix the clear method.
6314         - Fix the Shrink also
6315
6316 2006-07-27  Jackson Harper  <jackson@ximian.com>
6317
6318         * TreeView.cs: Make sure the visible order is computed when we
6319         attempt to size the scrollbars (for trees that mess with the
6320         scrolling when they shouldn't.
6321         - Make sure to give the scrollbars valid values.
6322
6323 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
6324
6325         * XplatUIX11.cs: Move motion compression code to where it
6326           has less performance impact
6327
6328 2006-07-26  Jackson Harper  <jackson@ximian.com>
6329
6330         * UpDownBase.cs: When the control is selected make the child
6331         controls non selectable, so that a click on them won't do a
6332         focus/unfocus cycle.
6333         - Don't give focus to the text box when the spinner is selected.
6334         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
6335
6336 2006-07-26  Chris Toshok  <toshok@ximian.com>
6337
6338         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
6339         satisfied with this solution.  If the bitmaps are small, we should
6340         just cache them in the PrintPreviewDialog and draw them here.
6341         Also, the layout is broken for the 2-up and 3-up cases.
6342
6343         * Theme.cs: add PrintPReviewControlPaint.
6344
6345         * PrintPreviewDialog.cs: first pass implementation.
6346
6347         * PrintPreviewControl.cs: first pass implementation.  No
6348         scrollbars yet.
6349
6350         * PrintDialog.cs: only validate fields if that particular portion
6351         of the UI is enabled.  Also, set the document's controller to a
6352         PrintControllerWithStatusDialog wrapping the document's print
6353         controller.
6354
6355         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
6356         bring up a SaveFileDialog (i hope we don't want to match the
6357         behavior of the crappy windows file entry) and set the
6358         PrinterSettings.PrintFileName accordingly.
6359
6360 2006-07-26  Jackson Harper  <jackson@ximian.com>
6361
6362         * ContainerControl.cs: Add a field that disables auto selecting
6363         the next control in a container when the container is activated.
6364         * UpDownBase.cs: Don't select the text box when the up down is
6365         selected.
6366
6367 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
6368
6369         * XEventQueue.cs: Added methods for peeking (used for compression
6370           of successive events)
6371         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
6372           mouse move events (fixes #78732)
6373
6374 2006-07-25  Jackson Harper  <jackson@ximian.com>
6375
6376         * UpDownBase.cs: Use an internal class for the textbox so that we
6377         can control focus.  the updown control should always have focus,
6378         if either the text area or the buttons are clicked.
6379         - Send the key messages to the textbox, since it never actually
6380         has focus
6381         - Activate and decativate the textbox caret.
6382
6383 2006-07-24  Jackson Harper  <jackson@ximian.com>
6384
6385         * Control.cs: Use the directed select when selecting a control,
6386         this way the container controls override will get called and the
6387         whole ActiveControl chain will get triggered.  TODO: probably need
6388         to make sure this gets done everywhere instead of the old
6389         Select(Control).
6390         * ContainerControl.cs: Implement the directed Select method to
6391         find and activate the correct child control.    
6392         
6393 2006-07-22  Mike Kestner  <mkestner@novell.com>
6394
6395         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
6396         menu handling code so that clicks without a grab work too.
6397         [Fixes #78914]
6398
6399 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
6400
6401         * FileDialog.cs: Enable the BackButton when dirstack has one element.
6402           Added some small optimizations.
6403
6404 2006-07-21  Matt Hargett  <matt@use.net>
6405
6406         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
6407
6408 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
6409
6410         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
6411           tests pass and match MS in some strange border cases.
6412
6413 2006-07-21  Chris Toshok  <toshok@ximian.com>
6414
6415         * ThemeWin32Classic.cs: handle drawing of the relation links and
6416         parent row buttons.
6417
6418         * Theme.cs: change args to DataGridPaintParentRow.
6419
6420         * DataGrid.cs: Don't use controls for the relation links and
6421         parent buttons, so we have to handle all their interactions in
6422         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
6423         when we're navigating through child tables, so we can reinstate
6424         selection, expanded state, current cell, etc.
6425
6426 2006-07-20  Chris Toshok  <toshok@ximian.com>
6427
6428         * ToolBar.cs: When we redraw a button, for whatever reason,
6429         there's no reason to redraw the entire toolbar.  Also, don't call
6430         Control.Refresh from within Redraw, as it's much heavier than
6431         Invalidate (which is really what we want).
6432
6433 2006-07-20  Chris Toshok  <toshok@ximian.com>
6434
6435         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
6436         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
6437         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
6438         traces from within a debug IBindingList datasource
6439         (in mono/winforms/datagrid) for *days*, I've finally gotten things
6440         to work in a similar fashion.
6441
6442 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6443
6444         * ListBox.cs: Don't call Sort () when setting 
6445         the Sorted property to false (avoid an unnecessary sort).
6446
6447 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6448
6449         * ListControl.cs: DataSource should throw an ArgumentException
6450         instead of a normal exception when the argument is not of the 
6451         correct type.
6452
6453 2006-07-20  Mike Kestner  <mkestner@novell.com>
6454
6455         * Control.cs: add InternalPreProcessMessage to allow us to steal
6456         key events before MWF gets its paws on them.  Adapted from a
6457         suggestion by eno.
6458         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
6459         up/down/left/right navigation. Override the new internal control
6460         method to steal the events since they never make it to WndProc.
6461         * ToolBarButton.cs: don't worry about pushed when setting hilight
6462         since the drawing code prefers pushed to hilight. Invalidate on 
6463         Hilight changes. Fixes #78547 and #78525.
6464
6465 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
6466
6467         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
6468           the canvas size. Fixes #78868
6469
6470 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
6471
6472         * Splitter.cs: Track requested split position until first layout
6473           is performed. Fixes #78871
6474
6475 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
6476
6477         * Application.cs: Removed code that forces 1.x for the version
6478           number if the version started with 0. Not sure why that code was
6479           there and I couldn't find any bugs that indicated we needed it.
6480           Fixes #78869
6481
6482 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
6483
6484         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
6485           ResetDefaults(), just write some output to the console until it's
6486           implemented. Fixes bug #78907 for now. Eliminated two warnings.
6487
6488 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
6489
6490         * PropertyGridView.cs: set StartPosition of drop down forms
6491         so they appear in correct initial spot.  Fixes #78190.
6492
6493 2006-07-19  Mike Kestner  <mkestner@novell.com>
6494
6495         * ThemeWin32Classic.cs: use parent background color when drawing
6496         flat toolbars.  Restructure the conditionals to make sure non-flat
6497         non-Divider toolbars are filled too.  Fixes #78837.
6498
6499 2006-07-19  Mike Kestner  <mkestner@novell.com>
6500
6501         * ListBox.cs: Sort on collection changes even if the handle
6502         isn't created yet.  Fixes #78813.
6503
6504 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6505
6506         * ListControl.cs: DisplayMember should never be null,
6507         and now we assign String.Empty when null is passed to it (this
6508         is the .Net way).
6509
6510 2006-07-17  Mike Kestner  <mkestner@novell.com>
6511
6512         * ListViewItem.cs: restructure Font and subitem Font handling 
6513         to hold a specific font and refer back to owner on null.
6514         Fixes #78761.
6515
6516 2006-07-17  Mike Kestner  <mkestner@novell.com>
6517
6518         * ToolBar.cs: bandaid for side-effect of previous patch which was
6519         discarding explicit heights for non-AutoSize toolbars.  Need to
6520         extend my format tester to deal with AutoSize=false. Fixes #78864.
6521
6522 2006-07-15  Jackson Harper  <jackson@ximian.com>
6523
6524         * LabelEditTextBox.cs:
6525         * TreeView.cs: Use a new LabelEdit class for node editing, this
6526         class automatically 'closes' itself when it gets the enter key or
6527         loses focus.
6528         - Use the client rectangle when setting the trees scrollbars, so
6529         border style is taken into account.
6530         
6531 2006-07-14  Jackson Harper  <jackson@ximian.com>
6532
6533         * TreeNode.cs:
6534         * TreeView.cs: Make the editing work similar to MSs, firing the
6535         events correctly and ending edits correctly.
6536
6537 2006-07-14  Mike Kestner  <mkestner@novell.com>
6538
6539         * ToolBarButton.cs:
6540         * ToolBar.cs: layout restructuring and redraw enhancements to support
6541         formatting changes gracefully, like setting TextAlign, ImageList, 
6542         ButtonSize, and Appearance.  Handles explicit button sizing quirks
6543         of the MS controls.  Things like flat toolbars ignoring button size
6544         but becoming constant sized at the largest button's size.  Normal
6545         toolbars with an image set cannot be shrunk smaller than the image,
6546         but text can be clipped/ignored.
6547         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
6548         is zero.  Seems like DrawString should be smart enough to not put
6549         anything on screen though. Also trim labels and ellipsize at the char
6550         boundary, not word.
6551         Fixes #78711 and #78483.
6552
6553 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
6554
6555         * FolderBrowserDialog.cs: Disable "New Folder" button and
6556           "New Folder" contextmenu menuitem if a folder like "My Computer"
6557           is selected.
6558
6559 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
6560
6561         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
6562         * FolderBrowserDialog.cs:
6563           - Use MWFConfig to store and read size and position settings
6564           - Added code to create a new folder (button or context menu).
6565             Use TreeView labeledit to change the name of the new folder.
6566
6567 2006-07-14  Jackson Harper  <jackson@ximian.com>
6568
6569         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
6570         when the tree is scrolled we end editing.
6571
6572 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
6573
6574         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
6575           Down arrows
6576
6577 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
6578
6579         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
6580         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
6581         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
6582         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
6583         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
6584         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
6585         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
6586         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
6587         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
6588         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
6589         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
6590         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
6591         ListViewItemSelectionChangedEventHandler.cs,
6592         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
6593         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
6594         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
6595         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
6596         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
6597         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
6598         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
6599         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
6600         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
6601         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
6602         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
6603         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
6604         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
6605         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
6606         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
6607         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
6608         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
6609         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
6610         WebBrowserNavigatingEventHandler.cs, 
6611         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
6612
6613 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
6614
6615         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
6616         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
6617         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
6618         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
6619         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
6620         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
6621         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
6622         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
6623         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
6624         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
6625         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
6626         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
6627         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
6628         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
6629         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
6630         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
6631         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
6632         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
6633         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
6634         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
6635         ListViewItemStates.cs, MaskFormat.cs: Added
6636
6637 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
6638
6639         * PropertyGridView.cs: Fix keyboard navigation of drop down.
6640         Patch from eno for bug 78558.
6641         
6642 2006-07-13  Jackson Harper  <jackson@ximian.com>
6643
6644         * TreeView.cs: When an edit is finished make sure that the
6645         selected node is visible.
6646         - When setting the top/bottom use the scrollbars is_visible, so
6647         everything will be set correctly even if the tree isn't visible
6648         yet.
6649
6650 2006-07-13  Jackson Harper  <jackson@ximian.com>
6651
6652         * ComboBox.cs: Revert the item->index part of my previous patch.
6653         * TreeView.cs: Use LostFocus instead of Leave for detecting when
6654         the edit box has lost focus (duh).
6655         - Just make the edit box not visible when we get return, that will
6656         take the focus, which will call EndEdit
6657         * TreeNode.cs When we start editing, notify the treeview.
6658
6659 2006-07-12  Jackson Harper  <jackson@ximian.com>
6660
6661         * ComboBox.cs: Clear out old items before setting the item list.
6662         This prevents databound controls from having their items added
6663         twice.
6664         - Switch the combobox to use indices whereever possible instead of
6665         using Item's.  This allows usto navigate through lists that have
6666         more then one item with the same string value (ie a, b, b, a).
6667         - Scroll the listboxes scrollbar when a non visible item is
6668         highlighted
6669         - Allow keypress to cycle through all the possible values. For
6670         example if you have b1, b2, b3 and hold down the B key all the
6671         values will be cycled through.
6672         
6673 2006-07-12  Jackson Harper  <jackson@ximian.com>
6674
6675         * TextBoxBase.cs:
6676         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
6677         this using the internal methods.
6678         * Control.cs: Add OnGotFocusInternal.  A new method that allows
6679         controls to "override" OnGotFocus and change focus behavior if
6680         needed.
6681         - Same thing for LostFocus
6682         * ComboBox.cs: Pass off focus to the text control properly.
6683
6684 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
6685
6686         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
6687         * FolderBrowserDialog.cs: Almost a complete rewrite.
6688           - Better support for Environment.Specialfolders
6689           - Added support for MWFVFS
6690           - Made setting SelectedPath work
6691
6692 2006-07-12  Jackson Harper  <jackson@ximian.com>
6693
6694         * Control.cs: Optimze getting all the controls.
6695
6696 2006-07-11  Jackson Harper  <jackson@ximian.com>
6697
6698         * ContainerControl.cs: Override SETFOCUS in the container control,
6699         so that it is not selected on mouse click.
6700
6701 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
6702
6703         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
6704           Hopefully we will have a better way once all of focus is complete.
6705
6706 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
6707
6708         * ThemeWin32Classic.cs: Commented out some debug code and fixed
6709           a compile error with csc.
6710
6711 2006-07-11  Jackson Harper  <jackson@ximian.com>
6712
6713         * Control.cs: When hiding a control only select the next control
6714         if the current control was focused.
6715         - Don't handle enter/leave when setting/killing focus, this is
6716         done by the container control.
6717         - Remove is_selected, it's not needed anymore.
6718         - Add utility methods for selecting a child control, and for
6719         firing the Enter/Leave events.
6720         * ContainerControl.cs: When a control is activated fire the
6721         enter/leave events.
6722         - Don't wrap when processing the tab key, so that focus can be
6723         moved outside of the container.
6724         - Use the correct active control
6725
6726 2006-07-11  Jackson Harper  <jackson@ximian.com>
6727
6728         * ComboBox.cs: Remove some debug code that was blinding me.
6729         * UpDownBase.cs: These controls actually aren't implicit, they are
6730         visible to the user.
6731
6732 2006-07-10  Chris Toshok  <toshok@ximian.com>
6733
6734         * DataGrid.cs: move back to the is_adding boolean field.  god i
6735         hate this is_editing/is_adding/is_changing stuff.
6736
6737 2006-07-10  Chris Toshok  <toshok@ximian.com>
6738
6739         * DataGridTableStyle.cs: just check if the property type is bool.
6740         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
6741         Don't use CanRenderType.
6742
6743         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
6744         if our text == NullText.  Remove CanRenderType.
6745
6746         * DataGridBoolColumn.cs: nuke CanRenderType.
6747
6748         * DataGrid.cs: reenable some code to end the current edit inside
6749         of set_CurrentCell.  This fixes the other 1.1.16 regression.
6750         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
6751         Also, remove the visible_row_count arg from CalcRowHeaders, since
6752         we don't need to worry about the actual height of the area.
6753
6754 2006-07-10  Chris Toshok  <toshok@ximian.com>
6755
6756         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
6757         mode, just return.
6758
6759         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
6760         the real sense of the IsInEditOrNavigateMode property (true =
6761         navigate, false = edit).  Also, update OnKeyPress to reflect this.
6762
6763         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
6764         column style exists, we still need to set its property descriptor
6765         to match up with our list manager.
6766
6767 2006-07-10  Chris Toshok  <toshok@ximian.com>
6768
6769         * ThemeWin32Classic.cs: implement the new row/header painting
6770         approach.  The parent row painting will likely go away and
6771         replaced with label controls, but the rest seems to work ok (and
6772         efficiently).
6773
6774         * Theme.cs: change the way we draw datagrid rows.  we don't draw
6775         the row headers as a block now.  Instead we draw them in the
6776         normal draw-row loop.  Add some calls for drawing parent rows and
6777         relation rows.
6778
6779         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
6780         a default table style.  Set the defaults from ThemeEngine.Current,
6781         not SystemColors.  Fix lots of misc issues with property setters.
6782
6783         * DataGrid.cs: move loads of style information out of this class
6784         as it's being duplicated with DataGridTableStyle.  keep track of a
6785         special DataGridTableStyle for the properties we used to mirror
6786         here.  Switch all the style properties to access this table style
6787         instead of instance fields of this class.  Also add a internal
6788         class to represent parent rows (more needs to be stored here, like
6789         the selection state from the parent table, as well as the
6790         expansion state.)  Also, for datasources with relations, do the
6791         right thing for collapse/expand, and add support for the
6792         navigation/parent row buttons.
6793
6794         Lastly, fix the crash in the 1.1.16 build.
6795
6796         * GridTableStylesCollection.cs: make the explicit interface
6797         implementations call the class's methods as opposed to duplicating
6798         them.
6799
6800         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
6801         0 so the text doesn't jump around when we move the cursor.
6802
6803 2006-07-10  Jackson Harper  <jackson@ximian.com>
6804
6805         * TextBoxBase.cs:
6806         * ListBox.cs: Match MS's ToString (this makes debugging focus
6807         stuff infinitely easier).
6808
6809 2006-07-10  Jackson Harper  <jackson@ximian.com>
6810
6811         * Control.cs (SelectNextControl): When checking the control's
6812         parent use this instead of ctrl.parent so that null can be passed
6813         to SelectNextControl. (I have unit tests for this).
6814         - Remove unused var.
6815
6816 2006-07-10  Chris Toshok  <toshok@ximian.com>
6817
6818         * CurrencyManager.cs: correct one regression, the removal of the
6819         finalType field.  Also, add a MonoTODO on CanAddRows, implement
6820         Refresh() correctly, and fix some event emission in
6821         ListChangedHandler.
6822
6823 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
6824
6825         * FileDialog.cs: Don't use brackets for new folders if they exist
6826           under *nix. Instead use -(number of existing folders +1).
6827
6828 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
6829
6830         * FileDialog.cs:
6831           - Fixed really nasty bug #78771
6832           - Don't block the whole GUI when reading directories with a lot of
6833             entries. Use an other thread instead and call BeginInvoke to
6834             update the ListView in MWFFileView
6835
6836 2006-07-07  Chris Toshok  <toshok@ximian.com>
6837
6838         * Control.cs (Dispose): release any Capture when disposing.
6839
6840 2006-07-07  Chris Toshok  <toshok@ximian.com>
6841
6842         * LinkLabel.cs (Select): if we chain up to the parent, set
6843         focused_index to -1 so we'll search for the first available link
6844         the next time the user tabs into us.  Also, if the direction is
6845         backward and focused_index == -1, start the search from the last
6846         element.
6847
6848 2006-07-07  Chris Toshok  <toshok@ximian.com>
6849
6850         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
6851         is beyond the end of the text, don't do anything.
6852         (CreateLinkPieces): set our ControlStyles.Selectable based on
6853         whether or not we have any links.
6854         (Link.Invalidate): use a loop instead of foreach.
6855         (Link.set_Start): null out owner.sorted_links so it'll be
6856         recreated by CreateLinkPieces.
6857
6858 2006-07-06  Chris Toshok  <toshok@ximian.com>
6859
6860         * LinkLabel.cs: revert the SetStyle change.
6861
6862 2006-07-06  Chris Toshok  <toshok@ximian.com>
6863
6864         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
6865         (OnEnableChanged): s/Refresh/Invalidate
6866         (OnGotFocus): if we have a focused index already, refocus it (so
6867         if we mouse out/in to the window it'll focus the right link).
6868         (OnKeyDown): move the tab handling out of here.
6869         (OnLostFocus): don't set focused_index to -1, so we can refocus it
6870         when we lose focus.
6871         (OnMouseDown): don't Capture here - Control handles it.  Also,
6872         focus the active link.
6873         (OnMouseUp): don't deal with Capture.
6874         (OnPaintBackgroundInternal): remove.
6875         (OnTextAlignChanged): CreateLinkPieces before calling the
6876         superclass's method.
6877         (OnTextChanged): call CreateLinkPieces before calling superclass's
6878         method.
6879         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
6880         move around.
6881         (Select): implement this, moving the selection between different
6882         links, and call parent.SelectNextControl if we don't have another
6883         link to focus in the given direction.
6884         (CreateLinkPieces): call Invalidate instead of Refresh.
6885         
6886 2006-07-06  Chris Toshok  <toshok@ximian.com>
6887
6888         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
6889         new LinkLabel internals.
6890
6891         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
6892         over pieces looking for active/focused/etc links.  also, deal with
6893         runs of text (and links) with embedded \n's in them, and use
6894         MeasureCharacterRanges instead of MeasureString to figure out the
6895         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
6896         two-step.
6897
6898 2006-07-04  Jackson Harper  <jackson@ximian.com>
6899
6900         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
6901         XKB or key auto repeat, do it manually.  Without key auto repeat,
6902         when a key is held down we get key press, key release, key press,
6903         key release, ... with auto repeat we get key press, key press, key
6904         press ..., and then a release when the key is actually released.
6905
6906 2006-07-03  Jackson Harper  <jackson@ximian.com>
6907
6908         * TabControl.cs:
6909         * ThemeWin32Classic.cs: Tabs do not obey normal background color
6910         rules, they are always control color regardless of the background
6911         color.
6912
6913 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
6914
6915         * FileDialog.cs: Added internal class MWFConfig.
6916           Removed Registry support and replaced it with support for the new
6917           MWFConfig class. See MWFConfig comments for more information.
6918
6919 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
6920
6921         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
6922           rectangle. Added some patches from eno from bug #78490 and fixed
6923           the arrow position for small up and down CPDrawScrollButtons.
6924
6925 2006-06-30  Jackson Harper  <jackson@ximian.com>
6926
6927         * InternalWindowManager.cs: Remove some debug code.
6928         * Form.cs: When an MdiParent is set to null, the window is
6929         "detatched" and becomes a normal window.
6930         * MdiClient.cs: Don't bring the new child form to the front until
6931         it is activated (setting it as active does this), this makes the
6932         previously active forms titlebar get redrawn as inactive.
6933
6934 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
6935
6936         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
6937           with later controls
6938
6939 2006-06-29  Mike Kestner  <mkestner@novell.com>
6940
6941         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
6942         arrow in keynav state.  Fixes #78682.
6943
6944 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
6945
6946         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
6947           order (fixes #78393)
6948
6949 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
6950
6951         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
6952           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
6953           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
6954           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
6955           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
6956           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
6957           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
6958           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
6959           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
6960           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
6961           enumerations (FlagsAttribute, SerializableAttribute, added/removed
6962           values)
6963
6964 2006-06-28  Mike Kestner  <mkestner@novell.com>
6965
6966         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
6967
6968 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
6969
6970         * PropertyGrid.cs,
6971           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
6972           item lines from other area (It also makes BackColor consistent and
6973           compatible with .NET). Fixed bug #78564.
6974
6975 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
6976
6977         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
6978         Patch from Eno for #78555.
6979
6980 2006-06-27  Chris Toshok  <toshok@ximian.com>
6981
6982         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
6983
6984         * DataGridColumnStyle.cs: same.
6985
6986         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
6987         
6988         * DataGridDrawingLogic.cs: nuke.
6989
6990 2006-06-27  Chris Toshok  <toshok@ximian.com>
6991
6992         * DataGridTableStyle.cs: clean up the constructors, and build the
6993         list of child relations for this table.  I have no idea if this is
6994         where we should be doing it (it probably isn't), but since we're
6995         already iterating over the properties..
6996
6997         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
6998         struct and array for keeping track of row information, similar to
6999         what's shown in a hack on
7000         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
7001
7002         * Theme.cs: be consistent about the naming of DataGrid methods,
7003         prefering ColumnWidths and RowHeights over columnsWidths and
7004         RowsHeights.
7005
7006         * ThemeWin32Classic.cs: same, and also add support for variable
7007         sized rows (and the +/- expansion icons for related rows).
7008
7009 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
7010
7011         * TextBoxBase.cs: Applied Eno's patch from #78660
7012
7013 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
7014
7015         * Form.cs (ScaleCore): We don't want to scale our form if it's
7016           state is minimized or maximized, but we still need to scale our
7017           child windows. Also, added try/finally block to ensure layout
7018           gets reset (Fixes #78697)
7019
7020 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
7021
7022         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
7023
7024 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
7025
7026         * Form.cs: Fixed c+p error and added check to resize form if minimum
7027           size is bigger than current size (Fixes #78709)
7028
7029 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
7030
7031         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
7032
7033 2006-06-26  Mike Kestner  <mkestner@novell.com>
7034
7035         * ComboBox.cs: only do Keypress handling in the combo when there  
7036         are items in the collection. Fixes #78710.
7037
7038 2006-06-26  Chris Toshok  <toshok@ximian.com>
7039
7040         * Binding.cs: make this work bi-directionally.  also, clear up
7041         other mixups between Push/Pull Data (e.g. we're supposed to pull
7042         data when validating).
7043
7044         * BindingManagerBase.cs: trim some fully qualified collection
7045         types.
7046
7047         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
7048
7049 2006-06-23  Chris Toshok  <toshok@ximian.com>
7050
7051         * PropertyManager.cs: It appears (according to the unit tests)
7052         that PropertyManager doesn't use
7053         PropertyDescriptor.AddValueChanged to track propery value changes
7054         in its datasource, but uses the same scheme as Binding, where it
7055         looks for a <Property>Changed event and binds to it.
7056
7057         Also, according to the docs, IsSuspended always returns false for
7058         a property manager with a non-null datasource.
7059
7060 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
7061
7062         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
7063           need to update the actual DialogResult. (Fixes #78613)
7064
7065 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
7066
7067         * Form.cs (ShowDialog): Release any captures before running the
7068           new message pump (fixes #78680)
7069
7070 2006-06-22  Mike Kestner  <mkestner@novell.com>
7071
7072         * ListView.cs: Layout column widths properly in details mode even 
7073         if HeaderStyle.None is set.  Fixes #78691.
7074
7075 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
7076
7077         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
7078
7079 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
7080
7081         * Control.cs (ContainsFocus): Using new driver method to get focused
7082           window, instead of trying to use internal tracking var, which can
7083           recursion issues (Fixes #78685)
7084         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
7085           XplatUIWin32.cs: Added GetFocus method to return focused window
7086
7087 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7088
7089         * ColorDialog.cs: when the mouse button is pressed inside the color
7090         matrix, don't let the cursor move out of it until the button is
7091         released, which is the behavior on windows. Changed 'colours' by
7092         'colors' to use the same word consistently.
7093
7094 2006-06-21  Chris Toshok  <toshok@ximian.com>
7095
7096         * DataGrid.cs: add in some basic navigation stuff (navigating to a
7097         child relation and back, using a stack).  Also, remove
7098         GetDataSource and the code that calls it - it's not needed.  Also,
7099         track CurrencyManager.ListName's removal.
7100
7101 2006-06-21  Chris Toshok  <toshok@ximian.com>
7102
7103         * CurrencyManager.cs: push some of the original type checking from
7104         BindingContext.CreateBindingManager to here, and remove some of
7105         the finalType stuff.  Need more tests to make sure I've got the
7106         ListName part right, and we might need more in SetDataSource.
7107
7108         * PropertyManager.cs: add a ctor that takes just the datasource,
7109         and no property name.  Make SetDataSource work with a null
7110         property_name, and make Current return the data_source if the
7111         property descriptor is null.  this makes 'string foo = "hi";
7112         BindingContext[foo].Current' return "hi" as it should.
7113
7114         * RelatedCurrencyManager.cs: make this code more generic - there's
7115         no reason the parent manager has to be CurrencyManager, and
7116         there's no reason to pass the DataRelation.  It suffices to use a
7117         BindingManagerBase and PropetyDescriptor.
7118
7119         * RelatedPropertyManager.cs: make a similar change here.
7120         
7121         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
7122         flower I knew it could be.
7123
7124 2006-06-20  Chris Toshok  <toshok@ximian.com>
7125
7126         * PropertyManager.cs: the PropertyChangedHandler is invoked when
7127         data in the source has changed and we need to update the control,
7128         so s/PullData/PushData.
7129
7130         * CurrencyManager.cs: Refresh is meant to update the control from
7131         data in the datasource.  So, s/PullData/PushData.
7132
7133         * BindingContext.cs: add more ugliness (we weren't handling the
7134         case where data_source = DataTable and data_member = column_name).
7135
7136         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
7137         from the perspective of the datasource.  PullData pulls from the
7138         control, PushData pushes to the control.
7139
7140 2006-06-20  Chris Toshok  <toshok@ximian.com>
7141
7142         * BindingContext.cs: rewrite the CreateBindingManager code to
7143         handle navigation paths more or less properly.  This could
7144         definitely stand some more work, in particular to push the
7145         recursion up to the toplevel.  But that relies on fixes in other
7146         places (System.Data comes to mind).
7147
7148         Also, move to a flat hashtable (and encode the twolevel nature of
7149         the dictionary into the hash key).  This lets us implement the
7150         IEnumerable.GetEnumerator method.
7151
7152         * RelatedCurrencyManager.cs: new class.  Update our view based on
7153         our relation and our parent CurrencyManager's position.
7154
7155         * CurrencyManager.cs: split out some logic from the ctor into
7156         SetView, so it can be called from the new RelatedCurrencyManager
7157         subclass.
7158
7159         * RelatedPropertyManager.cs: new class.  Update our datasource
7160         based on the position of our parent CurrencyManager.
7161
7162         * PropertyManager.cs: split out some logic from the ctor into
7163         SetDataSource, so it can be called from the new RelatedDataSource
7164         subclass.  Also, make the Current getter return the value
7165         of the PropertyDescriptor, not the data_source.
7166
7167         * Binding.cs: no need to duplicate the string splitting code here.
7168
7169 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
7170
7171         * Control.cs:
7172           - set_Enabled: OnEnabledChanged is not called if the inherited state 
7173             of the control is not altered, even though  we might be changing the
7174             internal state of the control (#78458)
7175           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
7176             OnEnabledChanged, to allow easy altering of any child window state
7177           - OnEnabledChanged: Added code to enable/disable driver window state
7178           - OnParentEnabledChanged: Instead of firing the event, call 
7179             OnEnabledChanged, which will fire the event and also a) set driver
7180             window state and pass the enabled state to any grandchildren (#78458)
7181
7182 2006-06-19  Jackson Harper  <jackson@ximian.com>
7183
7184         * InternalWindowManager.cs: We don't set the cursor explicitly
7185         thats done via the response to NCHITTESTs.
7186         - Don't need to adjust for titlebar heights anymore, the
7187         coordinates are coming in the correct coordinates now (see peters
7188         last patch).
7189
7190
7191 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
7192
7193         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
7194           being translated relative to whole window, instead of client window.
7195           That caused broken offsets on mouseclick (and caused gas for our
7196           InternalWindowManager)
7197
7198 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
7199
7200         * TextControl.cs:
7201           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
7202           - Undo(): Added replay of cursor move on DeleteChars action; added
7203             calling Undo() again if a recorded cursor move is invalid (to
7204             ensure that some action is performed on Undo)
7205         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
7206
7207 2006-06-16  Jackson Harper  <jackson@ximian.com>
7208
7209         * MdiClient.cs: Instead of just sizing maximized windows when
7210         there is a resize we also have to adjust the Y of minimized
7211         windows, so they stay pinned to the bottom of the mdi container.
7212         - Eliminate separate tracking of the active control, we can just
7213         get this from the controls collection.
7214         - Paint the decorations for the newly activated titlebar so we get
7215         a pretty blue bar.
7216         * InternalWindowManager.cs:
7217         * ThemeWin32Classic.cs: Minimized windows get all three buttons
7218         even if they are a tool window.
7219         
7220 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
7221
7222         * TextControl.cs (Undo): Handle non-existent cursor locations in the
7223           undo buffer, these can happen when text was deleted and the cursor
7224           was recorded first. Since we will also have a recorded cursor
7225           after the delete this is not an issue. (Fixes #78651)
7226
7227 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
7228
7229         * AccessibleObject.cs: Remove dependence on Control.is_selected;
7230           instead properly track control states internally (allows us to
7231           remove is_selected from Control)
7232
7233 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7234
7235         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
7236         whose width is not a multiple of 8.
7237
7238 2006-06-13  Jackson Harper  <jackson@ximian.com>
7239
7240         * MdiClient.cs:  Only maximize the next child if the current one
7241         is maximized.
7242
7243 2006-06-13  Chris Toshok  <toshok@ximian.com>
7244
7245         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
7246         modified.  Also, guard against grid or grid_drawing being null in
7247         Invalidate.
7248
7249         * DataGrid.cs: Reformat tons of getters/setters.  In the
7250         DataMember setter, just call SetNewDataSource instead of
7251         duplicating some of its functionality.  In SetNewDataSource, don't
7252         check ListManager for null, since the property getter creates the
7253         object if needed.
7254
7255         * DataGridTableStyle.cs: don't set TableStyle or call
7256         SetDataGridInternal on the column here, it's done in
7257         GridColumnStylesCollection.Add.
7258
7259         * GridColumnStylesCollection.cs: fix all the explicit interface
7260         implementations to just call our methods.  Nuke AddInternal() and
7261         move the body of it to Add().  Also, add a call to
7262         column.SetDataGridInternal to Add().
7263
7264         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
7265         base()+duplicate code.  Also, use the Format property instead of
7266         format to generate an Invalidate ala MS.  Lastly, create the
7267         textbox here, unconditionally.
7268         (set_Format): call Invalidate.
7269         (get_TextBox): no need to call EnsureTextBox.
7270         (Commit): remove the message box.
7271         (Edit) remove the call to EnsureTextBox.
7272         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
7273         (EnterNullValue): no need to check textbox for null.
7274         (HideEditBox): no need to check textbox for null.
7275         (SetDataGridInColumn): add the textbox to the grid's controls.
7276         (EnsureTextBox): nuke.
7277         
7278 2006-06-13  Jackson Harper  <jackson@ximian.com>
7279
7280         * MdiWindowManager.cs: Hook up to the maximized menus paint event
7281         and redraw the buttons when needed. Unhook when the window is
7282         unmaximized.
7283         * MainMenu.cs: Add an internal Paint event, the mdi window manager
7284         needs this so that it can redraw its buttons when the menu is
7285         repainted.
7286         * InternalWindowManager.cs:
7287         * Form.cs: The method order has changed for DrawMaximizedButtons,
7288         so that it can be a PaintEventHandler.
7289         
7290 2006-06-13  Jackson Harper  <jackson@ximian.com>
7291
7292         * MdiClient.cs: When we close a maximized mdi window, the next mdi
7293         window is activated and maximized, even if it wasn't before.
7294         - When  a new window is activated repaint the decorations of the
7295         old one, so that it no longer has the Active "look" (the blue
7296         titlebar).
7297         * InternalWindowManager.cs: Open up CreateButtons to base classes
7298         so they can recreate the buttons on state changes.
7299         - If a window is maximized give it all three buttons
7300         * MdiWindowManager.cs: Create the titlebar buttons when the state
7301         is changed, this is needed because a toolwindow will not have all
7302         three buttons until it is maximized.
7303
7304 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
7305
7306         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
7307           Fixed bug #78609.
7308
7309 2006-06-12  Jackson Harper  <jackson@ximian.com>
7310
7311         * KeysConverter.cs: Make sure we handle the Ctrl special case
7312         if its the only key.
7313         
7314 2006-06-12  Jackson Harper  <jackson@ximian.com>
7315
7316         * Theme.cs: Add a method to get the size of a managed window
7317         toolbar button.
7318         * InternalWindowManager.cs: Remove the ButtonSize property, this
7319         should be retrieved from the theme.
7320         * MdiWindowManager.cs: Get the button size from the theme
7321         * ThemeWin32Classic.cs: Make the method to get the managed window
7322         titlebar button size public.
7323         - Handle the different button sizes of maximized toolwindows
7324         (should match any maximized window).
7325         - Get the titlebar height from the theme, not the WM (which gets
7326         it from the theme).
7327
7328 2006-06-12  Jackson Harper  <jackson@ximian.com>
7329
7330         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
7331         event down to the mdi window manager.
7332         - Expose some extra stuff to base classes
7333         - Make sure to end the Capture on an NC Mouse up, so that we can
7334         get double clicks properly, and the sizing doens't stick.
7335         - When doing PointToClient contain it in the workable desktop
7336         area, this prevents windows from changing size when the cursor is
7337         pulled outside of the working area while sizing.
7338         * MdiWindowManager.cs: When we get a double click maximize the
7339         window.
7340         - Reset the cursor after handling mode changes.
7341
7342 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
7343
7344         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
7345           current desktop, instead of just assuming a 0, 0 origin. This
7346           is needed for our internal window manager, to know the top
7347           margin of the desktop
7348
7349 2006-06-12  Chris Toshok  <toshok@ximian.com>
7350
7351         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
7352         we need this to get rid of the selected background in the bool
7353         column.
7354         (CancelEditing): move the ConcedeFocus call to above the Abort
7355         call.  Also, set is_changing to false and invalidate the row
7356         header if we were changing before.
7357         (ProcessKeyPreviewInternal): remove, since noone outside this
7358         class calls it anymore.  Roll the code into ProcessKeyPreview.
7359         (EndEdit): remove the internal version.
7360         (InvalidateCurrentRowHeader): make private.
7361
7362         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
7363         Keys.Escape handling (and with it the last call to
7364         DataGrid.EndEdit from outside the class.)
7365
7366
7367 2006-06-12  Chris Toshok  <toshok@ximian.com>
7368
7369         * DataGridTextBox.cs (.ctor): isedit defaults to false.
7370         (OnKeyPress): set isedit to true.
7371         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
7372         already handled by the grid.
7373
7374         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
7375         right.  ugh.
7376         (set_DataSource): SetDataSource always returns true, so stop
7377         putting it in an if statement.
7378         (EndEdit): get rid of some {}'s
7379         (ProcessGridKey): return true in case Keys.Escape.
7380         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
7381         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
7382         PositionChanged, stopped connecting to CurrentChanged.
7383         (GetDataSource): simplify this a bunch.
7384         (SetDataSource): change return type from bool to void.
7385         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
7386         to this, and make sure we don't set ListManager.Position inside
7387         set_CurrentCell.
7388         (OnListManagerItemChanged): if we're passed an actual index,
7389         redraw that row.
7390
7391         * CurrencyManager.cs (set_Position): don't call PullData here.
7392
7393 2006-06-09  Jackson Harper  <jackson@ximian.com>
7394
7395         * TreeNode.cs:  Recalculate the visible order before doing the
7396         Expand/Collapse Below calls, because those calls generate an
7397         expose.
7398         - Reduce calls to the TreeView property, which is mildly expensive
7399         by using a local var.
7400         * Form.cs: Layout the MDI child windows when creating the parent
7401         form.
7402         - Don't use the internal constructor anymore
7403         * MdiClient.cs: use the parent form width/height (if available)
7404         when laying out the child windows, we do this because the
7405         mdiclient isn't docked yet when the initial layout is done.
7406         - Don't need an internal constructor anymore.
7407
7408 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7409
7410         * FileDialog.cs: handle access errors when trying to create a folder
7411         or changing to a directory. No need to initialize out parameters.
7412
7413 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
7414
7415         * FileDialog.cs: Append a number when creating a new folder if the
7416           folder already exists (use parenthesis instead of square brackets)
7417
7418 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
7419
7420         * FileDialog.cs:
7421           - Disabled registry support for windows and added better registry
7422             error checking for other systems (need to investigate why it
7423             works perfectly on my system)
7424           - If a folder already exist show an error MessageBox instead of
7425             trying to create an indexed name.
7426           - Fixed a non intentional typo.
7427
7428 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7429
7430         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
7431
7432 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
7433
7434         * FileDialog.cs: When creating a new folder don't crash if the
7435           folder already exists.
7436
7437 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
7438
7439         * FileDialog.cs: Allmost a complete rewrite.
7440           - added a "virtual" file system that handles the differences
7441             between unix and windows file systems (especially the directory
7442             structure). Moved most of the directory and file handling code
7443             into the vfs.
7444             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
7445             UnixFileSystem and FSEntry.
7446           - Recently used folder/directory, size, location and used file names
7447             (file name ComboBox) are now stored in the registry and get read
7448             before the dialog shows up (fixes part 6 of bug #78446).
7449           - Creation of new folders/directories is now possible (context menu
7450             or ToolBar). Added TextEntryDialog for this that fills in the gap
7451             until ListView.LabelEdit works.
7452           - Fixed cursor handling (bug #78527) and focus handling for
7453             PopupButtonPanel
7454           - Various "Search in" ComboBox enhancements. The content of the
7455             dropdown listbox now almost matches ms.
7456           - Changed the behaviour when the user switches to SpecialFolder
7457             Recent to show the ListView in View.Details.
7458           - Beside using the ToolBar to change the View property of the
7459             file ListView it is now possible to use the context menu too.
7460
7461 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
7462
7463         * ComboBox.cs: Don't create a new ObjectCollection when an item
7464           gets inserted. Just insert the item in the existing object_items
7465           ArrayList.
7466
7467 2006-06-08  Jackson Harper  <jackson@ximian.com>
7468
7469         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
7470         that the treeview and root node checks are done also, this fixes a
7471         regression i caused in the unit tests.
7472
7473 2006-06-07  Wade Berrier <wberrier@novell.com> 
7474
7475         * RichTextBox.cs: More ISO8859-1 -> unicode
7476
7477 2006-06-07  Mike Kestner  <mkestner@novell.com>
7478
7479         * ComboBox.cs : use items to hold highlight/selection so that
7480         collection insertions don't require synchronization.
7481
7482 2006-06-07  Jackson Harper  <jackson@ximian.com>
7483
7484         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
7485         routine.  We now always keep the sized edge at the cursor instead
7486         of computing movement and adjusting rects.  There is one buglet
7487         with this method though when the cursor is moved over area that
7488         the window can not expand too (such as the toolbars on the desktop).
7489
7490 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7491
7492         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
7493         here. Fixes crash on startup in AlbumSurfer.
7494
7495 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
7496
7497         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
7498           values
7499
7500 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7501
7502         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
7503         statement to avoid calling XNextEvent which will block if another thread
7504         took the event that we were expecting. Fixes bug #78605.
7505
7506 2006-06-07  Mike Kestner  <mkestner@novell.com>
7507
7508         * ListView.cs : isolated checkbox clicking from the selection logic.
7509         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
7510
7511 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7512
7513         * Form.cs: Check that the value passed to Form.DialogResult
7514         is a valid enum value.
7515
7516 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7517
7518         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
7519         Computer'. Clicking it in the network view goes to 'My Computer'.
7520         Added CIFS filesystem type. Display the mount point of filesystems.
7521         Avoid duplicate mount points (happens for me with CIFS);
7522
7523 2006-06-06  Jackson Harper  <jackson@ximian.com>
7524
7525         * InternalWindowManager.cs: Draw the maximized windows buttons
7526         when resizing.
7527
7528 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7529
7530         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
7531         all other dialogs. Fixes bug #78585.
7532
7533 2006-06-06  Mike Kestner  <mkestner@novell.com>
7534
7535         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
7536         Only invalidate checkbox on checkstate changes to avoid flicker.
7537         * ListBox.cs : avoid unselect/select when clicking selected item.
7538         avoid reselection flicker for already multiselected items.
7539         Fixes #78382.
7540
7541 2006-06-06  Jackson Harper  <jackson@ximian.com>
7542
7543         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
7544         the parent form so that the menu is removed if needed.
7545
7546 2006-06-06  Mike Kestner  <mkestner@novell.com>
7547
7548         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
7549         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
7550
7551 2006-06-06  Mike Kestner  <mkestner@novell.com>
7552
7553         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
7554
7555
7556 2006-06-06  Jackson Harper  <jackson@ximian.com>
7557
7558         * Control.cs: Use the property (instead of the field) to get the
7559         default cursor so it is instantiated correctly.
7560         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
7561         resizes so we need to manually repaint the window decorations here.
7562         - Set the titlebar button locations as soon as they are created,
7563         otherwise they are not set correctly on win32.
7564         
7565 2006-06-06  Chris Toshok  <toshok@ximian.com>
7566
7567         * CurrencyManager.cs (set_Position): call PullData before
7568         OnCurrentChanged.
7569         (AddNew): after calling IBindingList.AddNew, update our
7570         listposition, and call OnCurrentChanged/OnPositionChanged (without
7571         calling PullData).
7572         (OnCurrentChanged): remove the call to PullData from here.
7573         (OnItemChanged): remove the call to PushData from here.
7574         (OnPositionChanged): change the test from == null to != null to
7575         match the other methods.
7576         (ListChangedHandler): the grossest part of the patch.  Implement
7577         this such that it passes the unit tests in CurrencyManagerTest and
7578         the output more or less matches that of MS's implementation.
7579  
7580 2006-06-06  Mike Kestner  <mkestner@novell.com>
7581
7582         * ListView.cs : only update check state on single click.
7583         * ThemeWin32Classic.cs : fix focus drawing for details view without
7584         fullrowselect.  Fixes #78454.
7585         * XplatUIX11.cs : fix for double click emission.
7586
7587 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
7588
7589         * PropertyGridView.cs : Applied Atsushi's patch to fix
7590         font dialog bug  (#78197).
7591
7592 2006-06-05  Jackson Harper  <jackson@ximian.com>
7593
7594         * TreeNode.cs: Compute the next node for expanding/collapsing
7595         correctly. We now factor in nodes without a NextNode
7596         correctly. (Fixes somes cases in nunit-gui).
7597         * InternalWindowManager.cs: Set the bounds when updating the
7598         virtual position of a tool window.
7599         
7600 2006-06-05  Chris Toshok  <toshok@ximian.com>
7601
7602         * DataGrid.cs: rename cached_currencymgr to list_manager.
7603         (set_CurrentCell): move SetCurrentCell code here, and clean it up
7604         some.
7605         (CurrentRow, CurrentColumn): single accessors so we can make the
7606         cursor movement code a lot easier to understand.
7607         (CurrentRowIndex): implement this in terms of CurrentRow.
7608         (BeginEdit): clean this up a bit.
7609         (CancelEditing): sort out the is_editing/is_changing/is_adding
7610         stuff a little.
7611         (EndEdit): minor changes.
7612         (OnKeyDown): add a comment about a (most likely) unnecessary
7613         check.
7614         (OnMouseDown): cancel editing when we click on a row header.  And
7615         use the CurrentRow setter, not CurrentCell.
7616         (ProcessDialogKey): directly call ProcessGridKey.
7617         (UpdateSelectionAfterCursorMove): factor out this common block of
7618         code (it's used everywhere that we move the cursor by updating row
7619         or column).
7620         (ProcessGridKey): pretty substantial overhaul.  Use the
7621         CurrentRow/CurrentColumn properties to make the code a lot more
7622         readable.  Only use the CurrentCell property when we have to
7623         modify both row and column at once.  Tab behavior is still broken,
7624         and Delete is untested.
7625         (Select): if we have no selected rows, set selection_start to
7626         @row.
7627         (EditCurrentCell): rename EditCell this.  It was only ever invoked
7628         with CurrentCell as the arg, so drop the arg and rename it.
7629
7630         * DataGridColumnStyle.cs: clean up the constructors a little, and
7631         drop CommonConstructor().
7632
7633         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
7634         actually get notified when the user hits it.
7635         (ProcessKeyMessage): *substantially* simplify this method.
7636         There's no reason (that I can see) for the textbox to be making
7637         calls into the datagrid at all.  Remove all of them but the ones
7638         for Enter handling.  those will take some more work.
7639
7640         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
7641         calling HideEditBox.
7642         (HideEditBox): if we have an active textbox, render it invisible
7643         without causing a re-layout of the datagrid.
7644
7645 2006-06-05  Mike Kestner  <mkestner@novell.com>
7646
7647         * ListView.cs : fix NRE crasher when focuseditem is cleared by
7648         collection changes by resetting it to Items[0].  Fixes #78587.
7649
7650 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7651
7652         * MessageBox.cs: if the height of the text is larger than the icon_size,
7653         use that. Fixes bug #78575.
7654
7655 2006-06-05  Jackson Harper  <jackson@ximian.com>
7656
7657         * TreeView.cs: Fix line drawing when scrolling.  To do this each
7658         node is basically responsible for drawing its entire horizontal
7659         area.  When drawing a node it draws its parent node lines if
7660         needed.
7661         - Adjust the clip area to the viewport rectangle
7662         - Fix Left/Right key handling to match MS. (It expand/collapses
7663         and moves to parents/first child but does not move selection to
7664         sibling nodes).
7665         - Fix SetTop to work with new bound calculation code
7666         - When scrollbars are no longer needed we need to reset scrolling
7667         vars and recalculate the visible order so the redraw is correct
7668         * TreeNode.cs: We can't expand/collapse nodes with no children.
7669
7670 2006-06-03  John Luke  <john.luke@gmail.com> 
7671
7672         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
7673         so the colors work without dev packages
7674         
7675 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
7676
7677         * Control.cs 
7678           - Select: Implemented to just use activate. Seems to match MS 
7679             behaviour closest. Documented to only do actual control walking 
7680             based on it's parameters if in a container control so I moved 
7681             the code there.
7682           - Removed selection check logic from our internal Select() method
7683         * ContainerControl.cs:
7684           - Select: Moved selection logic from Control here, since MS documents
7685             that containers obey the bool arguments. No longer calling base
7686
7687 2006-06-02  Jackson Harper  <jackson@ximian.com>
7688
7689         * TreeView.cs: If the selected node isn't changed when we get
7690         focus update the previously selected node so that we see the
7691         selection box.
7692
7693 2006-06-02  Mike Kestner  <mkestner@novell.com>
7694
7695         * ComboBox.cs: restructure grab and general mouse event handling.
7696         Make the composite control raise mouse events like it was a single
7697         control for leaves/enters/motion/up/down events.  fix dropdown list
7698         coordinate mangling and refactor it into the scrollbar subclass to
7699         reduce code duplication.  Fixes #78282 #78361 and #78457.
7700
7701 2006-06-02  Mike Kestner  <mkestner@novell.com>
7702
7703         * ScrollBar.cs: remove Capture setting/clearing, as it happens
7704         automatically in the Control.WndProc.
7705
7706 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7707
7708         * FileDialog.cs: fix crash when running SharpChess, which sets the
7709         FilterIndex to 2 with only one Filter.
7710
7711 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7712
7713         * ToolBar.cs: add SizeSpecified property.
7714         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
7715         try to figure out our real size, otherwise fallback to what the
7716         container says.
7717
7718 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
7719
7720         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
7721         * Control.cs (WndProc): MS always calls the DefWndProc to pass
7722           up the event
7723
7724 2006-06-01  Mike Kestner  <mkestner@novell.com>
7725
7726         * ListView.cs: revamp the focus management in ListView.  It still
7727         causes churn of LostFocus/GotFocus emissions on clicks, but it's
7728         better than not handling focus at all.  Will revisit when pdb feels
7729         the general focus handling is solid.  Fixes #78526.
7730
7731 2006-06-01  Jackson Harper  <jackson@ximian.com>
7732
7733         * TreeView.cs: Set the default border style in the constructor.
7734         - Move painting to use OnPaintInternal instead of capturing
7735         WM_PAINT, this is the correct way of doing things
7736         - UpdateBelow shouldn't invalidate the scrollbar area
7737         - Cap the top on update below in case the node was above the top
7738         of the viewport rectangle.
7739         - ExpandBelow and Collapse below need to obey Begin/End Update.
7740         * TreeNode.cs: Make is_expanded internal so the treenode
7741         collection can change it without firing the whole event chain.
7742         * TreeNodeCollection.cs: When clearing all the child nodes make
7743         sure to recalc the visible order.
7744         - Improve algo for remove the top node
7745
7746 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
7747
7748         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
7749           SendMessage directly calling window procedures, which in turn might
7750           call SetFocus()
7751
7752 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
7753
7754         * Control.cs: Don't handle WM_SETFOCUS if the same window already
7755           has focus (works around X11 sending a FocusIn after our SetFocus)
7756         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
7757
7758 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
7759
7760         * Mime.cs: Fix for the NET_2_0 build.
7761           NameValueCollection needs StringComparer now.
7762
7763 2006-05-31  Chris Toshok  <toshok@ximian.com>
7764
7765         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
7766         return (via an out parameter) the starting X of the column.
7767         (UpdateVisibleColumn): track change to FromPixelToColumn.
7768         (HitTest): add a ColumnResize case here.
7769         (DrawResizeLine): new function, probably poorly named.
7770
7771         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
7772         only need to keep one reference.
7773         (set_ListManager): same.
7774         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
7775         Also, add support for HitTestType.ColumnResize.
7776         (OnMouseMove): add column resize behavior here, and change the
7777         cursor to the correct one as we move around the datagrid.
7778         (OnMouseUp): terminate the column resize if we're resizing.
7779         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
7780         for the current cell.
7781         (ConnectListManagerEvents): use cached_currencymgr.
7782         (DisconnectListManagerEvents): fill this in, using
7783         cached_currencymgr.
7784         (SetCurrentCell): remove cached_currencymgr_events handling.
7785         (SetDataMember): only call DisconnectListManagerEvents if
7786         cached_currencymgr is != null.
7787         (SetDataSource): same.
7788         (OnListManagerCurrentChanged): cached_currencymgr_events ->
7789         cached_currencymgr.
7790
7791 2006-05-31  Jackson Harper  <jackson@ximian.com>
7792
7793         * BindingManagerBase.cs: Remove somedebug code that creeped into
7794         SVN.
7795         * TreeNode.cs: We get the indent level dynamically right now, so
7796         don't track it as a member.
7797         * TreeNodeCollection.cs: Make sure all nodes added to the list
7798         have parents, treeviews/topnodes setup properly.
7799         - Don't attempt to track indent level.
7800
7801 2006-05-30  Jackson Harper  <jackson@ximian.com>
7802
7803         * BindingContext.cs: Create the currency manager tables here.
7804         This allows us to more easily create null tables (when bad data
7805         members are used), and more easily create related currency
7806         managers.
7807         * CurrencyManager.cs: All the table creation stuff is done by the
7808         binding context now.
7809         - Current should throw an exception if listposition is -1.
7810         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
7811         been bound yet.
7812
7813 2006-05-30  Mike Kestner  <mkestner@novell.com>
7814
7815         * ListView.cs: allow reexpansion of zero-width column headers.
7816         Fixes #78528.
7817
7818 2006-05-28  Chris Toshok  <toshok@ximian.com>
7819
7820         * CurrencyManager.cs (get_Current): after the late binding
7821         listposition = -1 fix, we need to guard against it here and return
7822         null, otherwise we raise an exception (which is swallowed
7823         elsewhere, and breaks datagrid databinding.)
7824
7825 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
7826
7827         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
7828           than WM_SYSKEY, don't throw if get something unexpected (#78507)
7829
7830 2006-05-26  Jackson Harper  <jackson@ximian.com>
7831
7832         * ControlPaint.cs:
7833         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
7834         values, it's faster and it's all we care about (we don't care if
7835         the names aren't equal).
7836         * KeyboardLayouts.cs: Eliminate some dead code.
7837         - Lazy init things
7838         * X11Keyboard.cs: Lazy init keyboard detection.
7839         - Cleanup access modifiers a little.
7840
7841 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
7842
7843         * XplatUIX11.cs: Once again, attempting to get layout just right.
7844
7845 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
7846
7847         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
7848           the sizes of each link section, that will result in sizes that
7849           match DrawString's layout (Fixes #78391)
7850
7851 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
7852
7853         * FileDialog.cs: If AddExtension property is true autocomplete the
7854           extensions in SaveFileDialog correctly. Fixes bug #78453.
7855           Set MyNetwork and MyComputer to "C:\" for windows. This should
7856           fix part 8 of bug #78446 for now.
7857
7858 2006-05-26  Chris Toshok  <toshok@ximian.com>
7859
7860         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
7861         invalidate the current row header if we need to, but presumably
7862         we'll invalidate the row corrsponding to the bounds or
7863         editingControl.
7864         (GridHScrolled): switch back to this method, as it's part of the
7865         public api.  *sigh*.
7866         (GridVScrolled): same.
7867         (OnMouseWheel): hack up something that more or less works.  Call
7868         GridHScrolled/GridVScrolled directly, instead of duplicating much
7869         of their code here.
7870         (EnsureCellVisibility): reinstate a bunch of this code, since we
7871         can't just set the scrollbar Value and expect to do all the work
7872         in the ValueChanged handler.  Also, Call Update() after scrolling
7873         in one direction so the other XplatX11.ScrollWindow call has the
7874         proper stuff in the proper places.
7875         (EditCell): set is_editing to true before calling .Edit.
7876
7877         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
7878         don't bother comparing first.
7879         (OnKeyPress): call grid.ColumnStartedEditing before calling
7880         base.OnKeyPress.  this will set is_changing and invalidate the row
7881         header if necessary.
7882         (ProcessKeyMessage): for WM_CHAR messages, call
7883         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
7884         and WM_KEYDOWN.
7885         
7886         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
7887         it's done in the DataGrid.
7888         (NextState): call grid.ColumnStartedEditing, which takes care of
7889         invalidating the row header (and setting is_changing).
7890
7891         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
7892         here.  it's done in the DataGrid.
7893
7894 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7895
7896         * Control.cs: allow changing the cursor when the mouse position is
7897         out of bounds but Capture is set.
7898         * LinkLabel.cs: handle the case when the mouse button is pressed on the
7899         linklabel but released somewhere else.
7900
7901 2006-05-25  Jackson Harper  <jackson@ximian.com>
7902
7903         * TreeView.cs: When we get focus if there is no selected node make
7904         it the top node
7905         - Remove some uneeded setup code from Draw.
7906         * TreeNodeCollection.cs: If the tree doesn't have a top node when
7907         a new node is inserted make the new node the top.
7908         * XplatUIX11.cs:
7909         * Timer.cs: Use Utc time so that no local time zone stuff needs to
7910         be used (should be faster).
7911         
7912 2006-05-25  Chris Toshok  <toshok@ximian.com>
7913
7914         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
7915         problem with the last commit.
7916
7917 2006-05-25  Chris Toshok  <toshok@ximian.com>
7918
7919         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
7920         need the invalidate call here, while scrolling right-to-left via
7921         the left arrow key (i.e. moving the editing cell while scrolling).
7922
7923         * DataGrid.cs (.ctor): remove the initialization of
7924         ctrl_pressed/shift_pressed.  We no longer track them using key
7925         up/down handlers, but by using Control.ModifierKeys.  Also, switch
7926         to using ValueChanged handlers on the scrollbars instead of
7927         Scrolled event handlers.  This simplifies a bunch of the scrolling
7928         code.
7929         (GridHValueChanged): rename from GridHScrolled, and change it to
7930         work with the new event args.
7931         (GridVValueChanged): same.
7932         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
7933         (OnMouseWheel): actually scroll the datagrid.  Don't change the
7934         selected cell.
7935         (ProcessGridKey): correct all the keyboard navigation stuff I
7936         could find.  Ctrl up/down/left/right/home/end work now.
7937         (EnsureCellVisibility): correct method name spelling.  Also,
7938         simplify this a touch by not explicitly calling the
7939         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
7940         scrollbar value.
7941         (OnKeyUpDG): no need for this method now.
7942         
7943 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7944
7945         * LinkLabel.cs: display the OverrideCursor when hovering the label.
7946         Fixes bug #78392.
7947
7948 2006-05-25  Chris Toshok  <toshok@ximian.com>
7949
7950         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
7951         r61019.
7952
7953 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
7954
7955         * Application.cs: Moved setting of is_modal and closing to before
7956           we create the control, to allow the event handlers called as a
7957           result of creation affect closing. Also removed Gonzalo's previous
7958           change to setting DialogResult, the behaviour has been moved to 
7959           Form.ShowDialog()
7960         * Form.cs: 
7961           - ShowDialog(): Removed explicit creation of the form, let RunLoop
7962             handle it instead
7963           - ShowDialog(): If no dialog result is set, we need to return Cancel
7964           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
7965             the close is cancelled
7966
7967 2006-05-25  Jackson Harper  <jackson@ximian.com>
7968
7969         * StatusBar.cs: We only need to update the sizes of the other
7970         panels when we have auto size contents.  Also we are only updating
7971         the contents of the panel, not the borders, so compensate for the
7972         border width (TODO: get this width from the theme somehow).
7973         * TreeView.cs: Scrollable is true by default
7974         - Use invalidate instead of refresh where needed
7975         - Factor the scrollable value into scrollbar updating
7976         - Update the scrollbars if the Scrollable property is altered
7977         - Update the selected node if its ImageIndex is changed
7978         - Handle null nodes in UpdateNode (mainly so we don't have to
7979         check if selected is null when updating it
7980         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
7981         are factored into the visible count
7982         - Use VisibleCount for clarity in the code
7983         - When the font is changed we need to recurse through all the
7984         nodes and invalidate their sizes
7985         
7986 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
7987
7988         * Application.cs: set the DialogResult to fixed when the main form is
7989         hidden or destroyed while being modal.
7990
7991 2006-05-25  Miguel de Icaza  <miguel@novell.com>
7992
7993         * Theme.cs: Use Tangoified messagebox icons. 
7994
7995         (GetSizedResourceImage): Also cope with width = 0 and do not
7996         trigger a warning in that case (0 means "give me your icon from
7997         the resouce, no special size needed).
7998
7999 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
8000
8001         * Application.cs: Leave runloop if the the main modal form is 
8002           hidden (fixes #78484)
8003
8004 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
8005
8006         * BindingContext.cs : reject null datasource in Contains() and
8007           Item[].
8008         * CurrencyManager.cs : check data_member validity when data_source
8009           is dataset. When it is late binding, the initial position is -1.
8010
8011 2006-05-24  Jackson Harper  <jackson@ximian.com>
8012
8013         * TreeNodeCollection.cs: Dont't recalculate the visible order on
8014         inserted nodes that aren't visible.  This changes the
8015         max_visible_order which confuses scrollbar settings.
8016         - Use the enumerator to get the prev node instead of duplicating
8017         code.
8018         * TreeView.cs: Use new method for setting scrollbar values
8019         - Don't set the bounds every time the scrollbar is updated
8020         - When updating below the root node use an invalidate instead of a
8021         refresh to prevent the child controls (scrollbars) from being
8022         refreshed. (UpdateBelow still needs to be reworked anyways).
8023         - Reenable SetBottom now that visible orders are set correctly,
8024         added some debug code incase we ever get bad values there again.
8025         - Set the scrollbar max to 2 less then the max value, this
8026         compensates for the max value being one above the node count, and
8027         for scrollbars adding one extra "notch".
8028         - When drawing image nodes if there is an imagelist we draw the
8029         first image in the list if the supplied image index is out of the
8030         image list's bounds.
8031         
8032 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
8033
8034         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
8035           we receive a size change from the WM (Fixes #78503)
8036
8037 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
8038
8039         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
8040           rectangle (Fixes #78501)
8041
8042 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
8043
8044         * ButtonBase.cs: 
8045           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
8046             as a bitfield.
8047           - Fixed MouseMove to no longer switch pressed state unless the left
8048             mouse button is pressed. Atsushi provided the original patch (#78485)
8049           
8050 2006-05-24  Jackson Harper  <jackson@ximian.com>
8051
8052         * ScrollBar.cs: New internal methods that allow us to change a
8053         couple values on the scrollbar (the most common case is maximum
8054         and large change) without getting multiple invalidates.
8055
8056 2006-05-24  Chris Toshok  <toshok@ximian.com>
8057
8058         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
8059         (Edit): save off the original state in oldState, and set
8060         grid.is_editing to true.
8061         (OnKeyDown): abort editing if escape is pressed.  also, call
8062         NextState if space is pressed.
8063         (OnMouseDown): call NextState.
8064         (NextState): factor out shared code from OnKeyDown and OnMouseDown
8065         here.  Also, only invalidate the row header once (on the initial
8066         is_changing switch) to save on redraws.
8067
8068 2006-05-24  Chris Toshok  <toshok@ximian.com>
8069
8070         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
8071         if the value in the cell is different than it was before.  This
8072         keeps us from triggering a layout when we move around a datarid
8073         with a highlighted cell.
8074         (Edit): suspend layout when creating/positining the text box, and
8075         resume passing false so we don't ever actually re-layout.
8076         (ReleaseHostedControl): same.
8077         (EnsureTextBox): reformat slightly, and set WordWrap to false.
8078
8079         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
8080         control-key sequences should go to the datagrid - remove that
8081         lock.  Also, modify the conditions under which we move between
8082         cells when moving the cursor within a cell, and remove the "this"
8083         and "base" from field accesses.  We weren't even consistent, given
8084         they all were in the base class.
8085
8086 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
8087
8088         * Binding.cs : (.ctor)
8089           An obvious NRE fix for BindingTest.CtorNullTest().
8090
8091 2006-05-23  Chris Toshok  <toshok@ximian.com>
8092
8093         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
8094         them between lines.  This fixes some quirks editing cells in the
8095         datagrid.
8096
8097 2006-05-23  Jackson Harper  <jackson@ximian.com>
8098
8099         * TreeView.cs: Use begin/end update when doing expand/collapse all
8100         so that we don't get flicker on the scrollbar.
8101
8102 2006-05-23  Jackson Harper  <jackson@ximian.com>
8103
8104         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
8105         treenode calculations to be independant of the painting code. To
8106         do this nodes track a visible order which is calculated by the
8107         treeview.
8108         - Call new methods for expanding/collapsing nodes.  These methods
8109         use scrollwindow so we don't have to update everything below the
8110         node.
8111         * TreeView.cs: Refactored drawing and scrolling code.  We don't
8112         need to update nodes when drawing anymore or calculate scrollbar
8113         stuff.
8114         - Added new methods for expanding/collapsing nodes. These methods
8115         use ScrollWindow so as to not have to redraw all the nodes below.
8116         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
8117         we add/remove nodes or sort.
8118         - Handle removing the selected and the top node properly.
8119
8120 2006-05-23  Chris Toshok  <toshok@ximian.com>
8121
8122         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
8123         maybe this should actually happen in the datagrid code?
8124         (EndEdit): no need to invalidate anything, given that
8125         ReleaseHostedControl causes the datagrid to relayout, which
8126         invalidates everything anyway.
8127
8128         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
8129         in SetCurrentCell).
8130         (set_SelectionBackColor): call InvalidateSelection instead of
8131         Refresh.
8132         (set_SelectionForeColor): same.
8133         (BeginEdit): Flesh this out a bit.
8134         (CancelEditing): only do any of this if we're editing/adding.
8135         (EndEdit): same.
8136         (OnMouseDown): there's no need to cancel editing here, it's done
8137         in SetCurrentCell.
8138         (SetCurrentCell): only invalidate the current row header if it's a
8139         different row than the new one.
8140         (ShiftSelection): fix this to work like MS does.
8141         (ResetSelection): factor out the invalidation of selected_rows to
8142         InvalidateSelection.
8143         (SetDataSource): cancel any editing that's going on.
8144
8145         * DataGridColumnStyle.cs
8146         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
8147         call the non-interface version.
8148
8149         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
8150         header rectangle with the clip rectangle so we don't redraw the
8151         entire header for just a small area.  Gets rid of the last flicker
8152         when horizontally scrolling.
8153         (DataGridPaintRow): same.
8154
8155 2006-05-23  Mike Kestner  <mkestner@novell.com>
8156
8157         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
8158         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
8159         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
8160         Critical bug report.
8161
8162 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
8163
8164         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
8165           and this fixes #78493
8166
8167 2006-05-23  Miguel de Icaza  <miguel@novell.com>
8168
8169         * Theme.cs (GetSizedResourceImage): Scale images if the proper
8170         size is not found.  
8171         
8172         * FileDialog.cs: Do not change the background for the side bar as
8173         it wont work nicely with the theme, and also reduces the artifacts
8174         in rendering the icons (which I want to fix too).
8175
8176         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
8177         resources, not resgen resources. 
8178
8179         (PlatformDefaultHandler): Pull images using the new API.
8180
8181 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
8182
8183         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
8184           a reference to the hwnd and will not remove it unless there are
8185           no pending exposures (fixes #78341)
8186         * XplatUI.cs: Improved debug
8187
8188 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
8189
8190         * MenuAPI.cs : don't handle OnClick event when it was not the left
8191           button. Fixed bug #78487.
8192
8193 2006-05-23  Mike Kestner  <mkestner@novell.com>
8194
8195         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
8196         prefer submenus to the top menu for item lookup, to avoid popping down
8197         top-row items.
8198
8199 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
8200
8201         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
8202           Graphics.FillRectangle as the visual results are really bad (even
8203           on win). We now draw perfect arrows (and perfect shadows when the
8204           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
8205           Pen.DashPattern to draw the dots of each line.
8206
8207 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
8208
8209         * FileDialog.cs: Update the filename combobox when navigating through
8210           the ListView with the cursor keys. Fixes part 7 of bug #78446.
8211
8212 2006-05-22  Mike Kestner  <mkestner@novell.com>
8213
8214         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
8215         Fixes #78463.
8216
8217 2006-05-22  Mike Kestner  <mkestner@novell.com>
8218
8219         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
8220         requests. Fix a misspelled parameter and a copy paste exception error
8221         in Select.
8222
8223 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
8224
8225         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
8226           to get the same width/height (5/13) on X11 as the default font has on
8227           win32. This means that our DefaultFont emSize is smaller than the 
8228           the MS SWF equivalent (even thought the width/height stays the same)
8229
8230 2006-05-20  Jackson Harper  <jackson@ximian.com>
8231
8232         * MdiClient.cs:
8233         * MdiWindowManager.cs:
8234         * InternalWindowManager.cs: Make sure to use the border width from
8235         the theme.
8236
8237 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
8238
8239         * PrintDialog.cs: Implements printer details
8240
8241 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
8242
8243         * FileDialog.cs: Added focus handling for PopupButtonPanel.
8244           Fixes part 1 and 2 of bug #78446
8245
8246 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
8247
8248         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
8249           instead of sticking to the first ever calculated value
8250
8251 2006-05-19  Mike Kestner  <mkestner@novell.com>
8252
8253         * ComboBox.cs: fix mouse motion selection to use MousePosition and
8254         PointToClient, since Capture is set. Fixes #78344.
8255
8256 2006-05-19  Mike Kestner  <mkestner@novell.com>
8257
8258         * ListView.cs: match MS behavior in Details view where items are not
8259         drawn if Columns.Count == 0. 
8260         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
8261         Use a separate pen to draw the check, since changing the width affects
8262         the box as well.  Fixes #78454.
8263
8264 2006-05-18  Miguel de Icaza  <miguel@novell.com>
8265
8266         * ListView.cs: ArgumentOutOfRangeException, single versions of the
8267         exception should throw the name of the invalid argument.
8268
8269         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
8270         there are no files listed. 
8271
8272 2006-05-18  Jackson Harper  <jackson@ximian.com>
8273
8274         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
8275         up.
8276
8277 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
8278
8279         * Control.cs: Brought back our old UpdateZOrder method as a private
8280           function and switched our calls from UpdateZOrder to the new one.
8281           This fixes the Paint.Net canvas disappearing bug.
8282
8283 2006-05-18  Jackson Harper  <jackson@ximian.com>
8284
8285         * Theme.cs:
8286         * ThemeWin32Classic.cs:
8287         * InternalWindowManager.cs: Move the drawing into the theme,
8288         expose everything the theme should need from the window manager.
8289
8290 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
8291
8292         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
8293           from the call to NativeWindow to avoid walking up the parent chain
8294           further than needed (speeds up setting cursors and avoids setting
8295           the wrong cursor if a parent has another cursor defined)
8296         * Cursor.cs: When loading an icon as cursor, MS uses the center of
8297           the icon as hotspot, not what's contained as hotspot in the icon
8298           file. This fixes the perceived drawing offset seen with Paint.Net
8299         
8300 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
8301
8302         * XplatUIX11.cs: 
8303           - Store the calculated rectangle in Hwnd object and use it when 
8304             setting the client size
8305           - Force Toolwindows to always be type Dock, to ensure they're on top
8306
8307 2006-05-18  Mike Kestner  <mkestner@novell.com>
8308
8309         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
8310         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
8311         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
8312         Substantial refactoring to remove confusing nested classes. Coding
8313         standard and Get+Set->property refactorings.  Shift to index based
8314         highlighting in ComboListBox instead of constantly using IndexOf and
8315         Items[]. Add invalidations on resize for DropDownList to fix ugliness
8316         in FileDialog growth.  Draw borders manually since Simple mode needs
8317         to look like two independent controls.  Make listbox border
8318         conditional to DropDownStyle.  Improved OwnerDraw support.
8319
8320 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
8321
8322         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
8323         Don't set the disposed graphics to null, so we can throw the "right"
8324         exception if the graphics is reused later (added a flag to avoid 
8325         double disposing). Some behaviours are different under 2.0 and are
8326         filled under bug #78448.
8327
8328 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
8329
8330         * Control.cs: When double-buffering is enabled, we need to reset
8331           our graphics context between paint calls. Otherwise, any 
8332           transformations and other alterations on the context will 
8333           become cumulative (#77734)
8334
8335 2006-05-18  Mike Kestner  <mkestner@novell.com>
8336
8337         * ListView.cs: do focused item selection like MS on clicks. 
8338         Rework focus handling for ItemControl so LostFocus invalidates as
8339         well.
8340         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
8341         the ListView ItemControl has focus.
8342
8343 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
8344
8345         * XplatUIX11.cs: If client_window ends up being width or height zero
8346           due to border settings, move it off window inside whole_window (#78433)
8347
8348 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
8349
8350         * Mime.cs: Shrink the mime file cache correctly.
8351
8352 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
8353
8354         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
8355
8356 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
8357
8358         * XplatUIX11.cs (AddExpose): More sanity checks
8359
8360 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
8361
8362         * XplatUIX11.cs:
8363           - AddExpose: Don't add expose ranges outside the size of our
8364             window
8365           - Cast opacity values to Int32 to avoid crashes with certain
8366             values
8367           - Added disabled code paths that protect against illegal cross-
8368             thread painting (Developers.exe)
8369
8370 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
8371
8372         * ProgressBar.cs: Invalidate the control when it's resized
8373           since block size is based on control size. (#78388)
8374
8375 2006-05-16  Miguel de Icaza  <miguel@novell.com>
8376
8377         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
8378         of setting the incoming argument to the "reset" value, we set the
8379         this.datamember to string.empty (before we were invalidating the
8380         incoming data).   
8381
8382         Fixes 78420
8383
8384 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
8385
8386         * Form.cs: Only apply transparency settings after the form
8387           is created. (Fixes #77800)
8388
8389 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
8390
8391         * ApplicationContext.cs: Grab the HandleDestroyed event so
8392           we know when to fire OnMainFormClosed 
8393
8394 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
8395
8396         * Application.cs: Introduced sub-class to allow tracking of
8397           threads and centralized triggering of the event mess for
8398           ThreadExit, AppExit, etc..  (#76156)
8399
8400 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
8401
8402         * MimeIcon.cs:
8403           - Do not return a null icon index value for a mime subclass.
8404             Instead try the main mime type class too.
8405           - Seems that some newer distributions don't have a link to some
8406             gnome default icons anymore. So check the default gnome dir too.
8407           
8408
8409 2006-05-16  Jackson Harper  <jackson@ximian.com>
8410
8411         * MdiClient.cs: Don't paint the parent background image if we have
8412         our own background image.
8413
8414 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
8415
8416         * Control.cs:
8417           - PerformLayout: Do not shrink space filled by DockStyle.Fill
8418             controls, all filled controls are supposed to overlap (#78080)
8419           - UpdateZOrder is supposed to update the control's z-order in the
8420             parent's z-order chain. Fixed to behave like that
8421           - BringToFront: Removed obsolete code
8422           - SendToBack: Simplyfied
8423           - SetChildIndex: Trigger layout calculations when Z-order changes
8424             since layout is done by z-order
8425
8426 2006-05-16  Chris Toshok  <toshok@ximian.com>
8427
8428         [ fixes bug #78410 ]
8429         * DataGrid.cs (set_AlternatingBackColor): use
8430         grid_drawing.InvalidateCells instead of Refresh().
8431         (set_BackColor): call grid_drawing.InvalidateCells.
8432         (set_BackgroundColor): use Invalidate instead of Refresh.
8433
8434         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
8435         invalidate the cell area.
8436
8437 2006-05-15  Chris Toshok  <toshok@ximian.com>
8438
8439         [ fixes bug #78011 ]
8440         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
8441         on to DataGridPaintRow.
8442         (DataGridPaintRow): take a clip argument, and only draw the cells
8443         which intersect it.  same with the not_usedarea.
8444
8445         * Theme.cs (DataGridPaintRow) add @clip parameter.
8446
8447         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
8448         XplatUI.ScrollWindow.
8449         (ScrollToRow): same.
8450
8451         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
8452         with last column which was causing a gray swath to appear with the
8453         XplatUI.ScrollWindow code.
8454
8455 2006-05-15  Chris Toshok  <toshok@ximian.com>
8456
8457         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
8458         use XplatUI.ScrollWindow.
8459         (VerticalScrollEvent): use XplatUI.ScrollWindow.
8460
8461 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
8462
8463         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
8464
8465 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
8466
8467         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
8468           file since there are no equivalent X11 cursors
8469
8470 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
8471
8472         * MonthCalendar.cs : DateTimePicker should reflect selected date
8473           on mouse*up*, not mouse*down*. Fixed originally reported part of
8474           bug #76474.
8475
8476 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
8477
8478         * TabControl.cs : When argument index is equal or more than tab
8479           count, just ignore. Fixed bug #78395.
8480
8481 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
8482
8483         * Control.cs: Dispose all child controls when control is diposed (#78394)
8484
8485 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
8486
8487         * ColorDialog.cs: Finally it is possible to select the color with
8488           the text boxes
8489
8490 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
8491
8492         * PrintDialog.cs: Fix typo
8493
8494 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
8495
8496         * PrintDialog.cs: PrintDialog is not resizable
8497         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
8498           color. Made some ToolBar drawing methods protected virtual.
8499
8500 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
8501
8502         * PrintDialog.cs: Implementation of the PrintDialog
8503
8504 2006-05-12  Chris Toshok  <toshok@ximian.com>
8505
8506         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
8507         thumb, instead use MoveThumb.  This has the side effect of making
8508         most of the other thumb moving machinery use MoveThumb as well.
8509         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
8510         need to actually invalidate the rectangle where the new thumb will
8511         go.
8512         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
8513         We force an Update() after, so it's not as fast as it could be,
8514         but at least there's zero flicker and no droppings.
8515         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
8516         (UpdateThumbPos): add another argument (dirty), which says whether
8517         or not to calculate/add dirty regions which we later invalidate.
8518         For cases where we know we're going to use MoveThumb, we pass
8519         false for this.  Otherwise, pass true.
8520
8521 2006-05-12  Jackson Harper  <jackson@ximian.com>
8522
8523         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
8524         the status bar.
8525         
8526 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
8527
8528         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
8529           and GetClipRegion methods and UserClipWontExposeParent property.
8530         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
8531           overriding UserClipWontExposeParent property, setting to false, since
8532           Win32 handles the required expose messages to draw our clipped parent
8533           areas internally
8534         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
8535           PaintEventStart to set the user clip region if set.
8536         * Control.cs: 
8537           - Now internally tracking the Region for the control since we need to
8538             store it if the handle is not yet created and only set it when it
8539             becomes created. Before setting the region forced handle creation
8540           - Added code to draw the parents underneath a user-clipped region
8541         * Hwnd.cs: Added UserClip property
8542
8543 2006-05-12  Chris Toshok  <toshok@ximian.com>
8544
8545         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
8546         (set_Maximum): same.
8547         (set_Minimum): same.
8548         (set_SmallChange): same.
8549         (OnMouseUpSB): remove the call to refresh when releasing the
8550         thumb.  We shouldn't need it.
8551         
8552 2006-05-12  Miguel de Icaza  <miguel@novell.com>
8553
8554         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
8555         AutoSize set to None, we do not need to relayout everything, we
8556         just need to invalidate the current region.
8557
8558         (Draw): Do not draw the entire ClientArea, just redraw the
8559         clip area being passed.
8560
8561         * MdiClient.cs: Make MdiClient constructor with the Form argument
8562         internal. 
8563
8564 2006-05-12  Jackson Harper  <jackson@ximian.com>
8565
8566         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
8567         parents background image,  but strangely not their own.
8568         - (DrawStatusBarPanel): Take into account horizontal alignment
8569         when drawing the strings and icons.
8570
8571 2006-05-12  Mike Kestner  <mkestner@novell.com>
8572
8573         * ListBox.cs: avoid invalidations for focus when the collection is
8574         empty. 
8575
8576 2006-05-12  Chris Toshok  <toshok@ximian.com>
8577
8578         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
8579         invalidate the entire thumb area.  Call InvalidateDirty which
8580         limits the redraw to the thumb itself and surrounding pixels.
8581
8582         * XplatUIX11.cs (ScrollWindow): optimize copying.
8583         
8584 2006-05-12  Chris Toshok  <toshok@ximian.com>
8585
8586         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
8587         Figure out the positioning/layout in a single pass instead of
8588         multiple recursive invocations.  Speeds up the initial display of
8589         the data grid.  Also, make many things private that were
8590         originally public but unused outside this class.
8591
8592 2006-05-11  Jackson Harper  <jackson@ximian.com>
8593
8594         * MdiClient.cs: Improved layout code.
8595
8596 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
8597
8598         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
8599           not SelectedObject.
8600
8601 2006-05-11  Chris Toshok  <toshok@ximian.com>
8602
8603         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
8604         union of that will always be {0,0,width,height}.
8605
8606 2006-05-11  Jackson Harper  <jackson@ximian.com>
8607
8608         * Form.cs: Match MS's DefaultSize for forms (they must have
8609         changed the size in sp2).
8610
8611 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
8612
8613         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
8614
8615 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
8616
8617         * TextControl.cs : Fixed bug #78109. This incorrect position
8618           comparison caused crash on automatic line split.
8619         * TextBoxBase.cs : reduce duplicate code.
8620
8621 2006-05-10  Jackson Harper  <jackson@ximian.com>
8622
8623         * MdiClient.cs: Active form is only sent to the back when using
8624         the Next form functionality, when a form is clicked the current
8625         active shouldn't be sent to the back.
8626         - Layout the mdi windows when the container is first made visible.
8627         * Form.cs: Give the MdiClient a ref to the containing form when we
8628         create it.
8629         
8630 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
8631
8632         * LinkLabel.cs : link_font could be uninitialized, so populate one
8633           before actual use. Fixed bug #78340.
8634
8635 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
8636
8637         * XplatUIX11.cs : clipboard format native value is IntPtr.
8638           Fixed bug #78283.
8639
8640 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
8641
8642         * Control.cs: 
8643           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
8644             which is passed up the parent chain by DefWndProc
8645           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
8646             to DefWndProc (#77956)
8647         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
8648
8649 2006-05-10  Jackson Harper  <jackson@ximian.com>
8650
8651         * MdiClient.cs: We need to remove the controls from the mdi
8652         collection, when we close the window.
8653         * MdiWindowManager.cs: Special handling of closing mdi windows.
8654         * InternalWindowManager.cs: Make the close method virtual so the
8655         mdi window manager can handle it specially.
8656
8657 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
8658
8659         * DataGrid.cs:
8660           - Recalculate grid when the data source has changed
8661           - Matches styles provided by user from all data sources types
8662         * DataGridTableStyle.cs: For columns that provided by the user set the
8663         with the preferred value is there was unassigned.
8664         * CurrencyManager.cs: throw OnItemChanged event
8665
8666 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
8667
8668         * PictureBox.cs: Don't animate until handle is created. Start animation
8669           when handle is created.
8670
8671 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
8672
8673         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
8674           current codebase.
8675         * XEventQueue.cs: We don't need to provide the extra info
8676
8677 2006-05-10  Jackson Harper  <jackson@ximian.com>
8678
8679         * MdiClient.cs: If the mdi clients parent form has a background
8680         image set, we draw that background image for the mdi area's
8681         background.
8682
8683 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
8684
8685         * TextBoxBase.cs: Set IBeam cursor (#78347)
8686
8687 2006-05-10  Mike Kestner  <mkestner@novell.com>
8688
8689         * ToolBar.cs: fix some text padding issues with ButtonSize
8690         calculation. Update the default size to match MS documentation.
8691         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
8692         button size. Fixes #78296.
8693
8694 2006-05-10  Mike Kestner  <mkestner@novell.com>
8695
8696         * ListBox.cs: use is_visible for scrollbar positioning in case the
8697         control isn't on screen yet.  Fix off by one with Right vs Width
8698         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
8699         
8700 2006-05-10  Jackson Harper  <jackson@ximian.com>
8701
8702         * X11Dnd.cs: Drop to a control with another control on top of it.
8703         * ToolBar.cs: Work on a copy of the buttons list, so that it can
8704         be modified in click handlers. TODO: Look for similar problems in
8705         other controls.
8706
8707 2006-05-09  Jackson Harper  <jackson@ximian.com>
8708
8709         * Form.cs: Window managers need the old window state when setting
8710         window state now.
8711         * InternalWindowManager.cs: Allow the base mdi window manager to
8712         handle more of the MDI only stuff (like maximize buttons).
8713         * MdiWindowManager.cs: Fix some snafus in changing the window
8714         state.  Add all the menu functionality, for both popup and
8715         maximized menus.
8716         * MdiClient.cs: When a new form is selected the currently
8717         activated form is sent to the back, this matches MS.
8718         - Implement a new method to activate the next mdi child window.
8719
8720 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
8721
8722         * Control.cs: 
8723           - Added new InternalCapture method to allow controls to prevent
8724             the capture behaviour on the click handlers
8725           - Switched to use InternalCapture
8726         * ComboBox.cs:
8727           - Using InternalCapture to prevent mouse captures from being released
8728             on mouse button release (Fixes #78100)
8729         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
8730           returns Form borders if a caption is present. (Fixes #78310)
8731
8732 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
8733
8734         * TreeNode.cs: Changed serialization .ctor to not require every field
8735           to be present. (#78265)
8736         * OwnerDrawPropertyBag.cs: Added serialization .ctor
8737
8738 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
8739
8740         * MimeIcon.cs: for is faster than foreach for strings.
8741
8742 2006-05-05  Mike Kestner  <mkestner@novell.com>
8743
8744         * CheckedListBox.cs: update check handling code to not use selected.
8745         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
8746         behavior for visual feedback, motion response, shift/ctrl handling,
8747         and properly deal with all 4 selection modes. Updates to bounds
8748         handling logic.  Add scroll wheel support. [Fixes #77842]
8749
8750 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
8751
8752         * ListView.cs:
8753           - Moved adding of Implicit controls into .ctor. That way, subsequent
8754             creation of the controls will not cause them to think they are 
8755             toplevel windows (fixes #78200 header problem)
8756           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
8757           - Switched visibility setting of header control to use internal field
8758             to avoid triggering handle creation
8759           - Now checking if handle is created before causing a refresh when items
8760             are added (This makes us now match handle creation time with MS)
8761         * Splitter.cs: Removed loading of private splitter cursor, switched to
8762           Cursors version now that that is loading the right ones
8763         * Cursors.cs: Load proper splitter cursors from resources
8764         * Cursor.cs: Added second method of loading resource cursors for the 
8765           VS.Net users amongst us
8766
8767 2006-05-05  Mike Kestner  <mkestner@novell.com>
8768
8769         * ListView.cs: give header_control a minimum size based on the
8770         ListView size.
8771
8772 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
8773
8774         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
8775           window seems to do that with metacity, so set that type. (#78120)
8776
8777 2006-05-05  Mike Kestner  <mkestner@novell.com>
8778
8779         * ListViewItem.cs: fix Details mode checkbox layout bug.
8780         * ThemeWin32Classic.cs: draw a ListView column header for unused space
8781         at the end of the header, if it exists. [Fixes for #78200]
8782
8783 2006-05-04  Jackson Harper  <jackson@ximian.com>
8784
8785         * MdiClient.cs: Add a helper property to get the container form.
8786         * MdiWindowManager.cs: We have to make sure to use the menu origin
8787         when drawing the icons and buttons, this fixes maximized window
8788         icons/buttons on win32.
8789         * InternalWindowManager.cs: Reset the restore captions when a
8790         window goes from Maximized to Minimized and vice versa. Move the
8791         DrawMaximizedButtons into the MdiWindowManager source, tool
8792         windows can't be maximized. NOTE: This could use a little
8793         refactoring if time ever permits.
8794         
8795 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
8796
8797         * TextBox.cs: Add MWFCategoryAttributes
8798         * TextBoxBase.cs: Add MWFCategoryAttributes
8799         * Form.cs: Add MWFCategoryAttributes
8800
8801 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
8802
8803         * Control.cs: Add MWFCategoryAttributes
8804         * ScrollableControl.cs: Add MWFCategoryAttributes
8805
8806 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
8807
8808         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
8809           Divider is true. Fix a little glitch in PropertyToolBar
8810           drawing code
8811
8812 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
8813
8814         * Control.cs:
8815           - Dispose: Call base.Dispose, this causes the disposed event
8816             to be fired (and probably other, more important stuff)
8817           - SetVisibleCore: Set is_visible to true after creating the
8818             window so that the window still gets created invisible (if
8819             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
8820             to generate a WM_ACTIVE message
8821         * Form.cs: Call Dispose when we want to destroy the window, instead of
8822           just destroying the handle (Dispose will do that for us)
8823         * XplatUIX11.cs:
8824           - RootWindow also needs a queue, so we can properly process the
8825             property change events from RootWindow (like Activate)
8826           - Generatic synthetic WM_ACTIVE message when the active window is
8827             being destroyed
8828
8829 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
8830
8831         * LinkLabel.cs: Trigger a recalc of our label dimensions when
8832           bounds are changed
8833
8834 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
8835
8836         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
8837           for determining width and height (image might not be assigned if
8838           we're drawing an imagelist)
8839
8840 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
8841
8842         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
8843         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
8844           height from system
8845         * Theme.cs: No longer returns hardcoded menu height, instead calls
8846           new driver method
8847         * Form.cs (OnLoad): Scaling happens before triggering Load events 
8848           on MS (# 78257)
8849
8850 2006-05-01  Mike Kestner  <mkestner@novell.com>
8851
8852         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
8853
8854 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
8855
8856         * TextBoxBase.cs: Removed Fixme
8857         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
8858
8859 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
8860
8861         * XplatUIX11.cs:
8862           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
8863             the rectangle relative to the parent, considering borders. We
8864             don't really want that.
8865           - ScrollWindow: Fixed warning to be more understandable
8866         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
8867           scrollbars and scroll only the visible area
8868         * RichTextBox.cs: Removed debug output
8869
8870 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
8871
8872         * NumericUpDown.cs (Text): Just use base
8873         * UpDownBase.cs: Ensure txtView is created before using it
8874
8875 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
8876
8877         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
8878           casting to IntPtr to avoid 64bit overflow errors
8879
8880 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
8881
8882         * Control.cs:
8883           - AllowDrop: Don't force handle creation.
8884           - CreateHandle: Added call to tell driver if we're allowed to drop
8885
8886 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
8887
8888         * FileDialog.cs: Remember the last directory not only for the
8889           current instance but also for new FileDialog instances.
8890
8891 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
8892         
8893         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
8894           broke sending async messages
8895
8896 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
8897
8898         * XplatUIX11.cs:
8899           - ScrollWindow: Fixed method. We finally generate expose events again
8900             for scrolled areas. This was causing 'garbage' when scrolling
8901             textbox and other controls that used ScrollWindow
8902           - Switched from using the regular queue for paint events to the MS 
8903             model of 'generating' paint events when the queue is empty.
8904             We use the new XQueueEvent.Paint subclass to store which windows
8905             need painting.
8906           - AddExpose now takes the x/y/width/height of the exposed area
8907             and inserts the window into the paint queue if not already there
8908           - InvalidateWholeWindow: Switched to use new AddExpose method
8909           - UpdateMessageQueue: Added which queue to monitor for paint events
8910           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
8911             the unlikely case nothing above handles it. We reset the expose
8912             pending states to get them off the queue.
8913           - GetMessage: Now pulls a paint event if no other events are in the
8914             queue
8915           - Invalidate: Switched to new AddExpose method
8916           - PeekMessage: Updated to understand pending paint events
8917           - UpdateWindow: Fixed logic bug. We were only updating if the window
8918             didn't need updating. Also switched to sending WM_PAINT directly,
8919             like MS does.
8920         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
8921           and random access Remove(). The random access is needed to handle
8922           UpdateWindow() where a WM_PAINT is sent directly without accessing
8923           the queue.
8924         * ScrollBar.cs: Added Update() calls to cause immediate updates to
8925           allow for better feedback when scrolling. Scrollbars are small and
8926           the immediate update should make it 'feel' more responsive without
8927           slowing things down. ScrollBar still needs it's invaliate logic
8928           updated to not always invalidate the whole bar on certain changes.
8929
8930 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
8931
8932         * Control.cs:
8933         (BackColor): if the control does not support a transparent background,
8934         return the default backcolor when the parent backcolor is transparent.
8935
8936 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
8937
8938         * Application.cs: Updated to new StartLoop/GetMessage API
8939         * RichTextBox.cs: Provide some output on RTF parsing errors
8940         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
8941           new queue_id argument to GetMessage and PeekMessage to allow faster
8942           handling of per-thread queues in drivers.
8943         * Hwnd.cs: Added Queue tracking and property
8944         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
8945         * XEventQueue.cs: Added thread trackingA
8946         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
8947         * XplatUIX11.cs:
8948           - Implemented new per-thread queue
8949           - GetMessage: Fixed return/break behaviour on several cases. We were
8950             returning stale messages in some cases, instead of just processing
8951             the next message
8952
8953 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
8954
8955         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
8956
8957 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
8958
8959         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
8960           fixed off-by-one comparisons between Width/Height and Right/Bottom.
8961
8962 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
8963
8964         * PropertyGridView.cs: Fix drop down width.
8965
8966 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
8967
8968         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
8969           a mess in DrawToolBar, so I removed one of them.
8970
8971 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
8972
8973         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
8974           needed (clip). Otherwise we get artifacts.
8975
8976 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
8977
8978         * FixedSizeTextBox.cs: Added constructor to allow specifying which
8979           dimension is fixed
8980         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
8981           and switched FixedSizeTextBox to only be fixed vertical (#78116)
8982         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
8983           if it matches the scale base font (avoids unneeded scaling)
8984
8985 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
8986
8987         * X11DesktopColors.cs: One gtk_init_check should be enough
8988
8989 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
8990
8991         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
8992           match MS behaviour
8993
8994 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
8995
8996         * TextBoxBase.cs: 
8997           - Generate OnTextChanged for Backspace even if we're only deleting
8998             the current selection
8999           - When setting the Text property, only select all text if the
9000             control does not have focus when it is being set. Otherwise
9001             just place the cursor at the beginning of the control
9002
9003 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
9004
9005         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
9006           Added a little helper to draw PropertyGrid ToolBar with a different
9007           border and a different BackColor.
9008         * PropertyGrid.cs: Some background parts didn't get painted with the
9009           correct background color. Added a class that helps us to draw the
9010           correct border for PropertyGridView and a class that helps us to
9011           draw ToolBars with a different backcolor
9012         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
9013
9014 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
9015
9016         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
9017         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
9018
9019 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
9020
9021         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
9022           into the palette entries. Also, since we're working on a copy
9023           we needed to copy the palette back onto the bitmap.
9024         * Cursor.cs: Same fix as XplatUIWin32.cs.
9025
9026 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
9027
9028         * ImageListStreamer.cs: Need to read the var (or we're off)
9029
9030 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
9031
9032         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
9033           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
9034           TextBoxBase.cs: Unused var fixes
9035         * AxHost.cs: Small 2.0 fix
9036         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
9037           as it seems that is what at least Metacity expects. This will make
9038           icons show up on 64bit platforms. We still have some 64bit size
9039           issues, though, since the startup app window size still won't match.
9040
9041 2006-04-25  Mike Kestner  <mkestner@novell.com>
9042
9043         * *.cs: cleanup newly reported exception var unused warnings.
9044
9045 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
9046
9047         * ThemeWin32Classic.cs: Button image alignment now matches exactly
9048           ms
9049
9050 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
9051
9052         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
9053           image. The image position is always the same, no matter if the
9054           button is pressed or not.
9055
9056 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
9057
9058         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
9059           selection and set the correct filename for SaveFileDialog.
9060           Patch by Emery Conrad.
9061
9062 2006-04-24  Mike Kestner  <mkestner@novell.com>
9063
9064         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
9065         check for item.X outside the ClientRect instead of item.Y. Fixes
9066         #78151.
9067
9068 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9069
9070         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
9071         trust that value blindly and do some sanity check. Fixes bug #77814.
9072
9073 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9074
9075         * ImageListStreamer.cs: save the mask as a 1bpp image.
9076
9077 2006-04-21  Mike Kestner  <mkestner@novell.com>
9078
9079         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
9080         pass Checked and Indeterminate to the Theme Engine. Improve
9081         encapsulation with ListBox.
9082         * ListBox.cs: Keep a StringFormat instead of calculating it every item
9083         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
9084         nested types.  Move all CheckState functionality to CheckedListBox.
9085         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
9086         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
9087         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
9088         single base list. Fix scrollbar sizing and placement to mirror MS.
9089         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
9090         used.
9091         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
9092         for CheckedListBox by using new DrawItemState info.  Center the
9093         checkboxes on the items. Use new StringFormat property.
9094
9095 2006-04-18  Jackson Harper  <jackson@ximian.com>
9096
9097         * Form.cs: MdiChildren don't do default locations the same way as
9098         regular forms.  This prevents a crash when trying to position the
9099         mdi windows.
9100
9101 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
9102
9103         * PropertyGridTextBox.cs: Formatting, copyright
9104         * PropertiesTab.cs: Formatting
9105         * PropertyGrid.cs: Formatting
9106         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
9107           click toggling of values
9108           
9109 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
9110
9111         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
9112         * Control.cs (.ctor): verify_thread_handle is static, don't reset
9113           every time a control is created
9114         * Application.cs: Removed obsolete EnableRTLMirroring method
9115
9116 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
9117
9118         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
9119         SelectedIndex to -1. Fixes bug #78121.
9120
9121 2006-04-17  Jackson Harper  <jackson@ximian.com>
9122
9123         * Binding.cs: Handle null values for Current and BindingContext.
9124         This occurs when binding is a little delayed.
9125         * CurrencyManager.cs: return null for Current when there are no
9126         items in the list.
9127         - Hookup to the listchanged event on the DataView and update
9128         bindings when the list is changed.  This fixes late binding of
9129         controls.
9130
9131 2006-04-17  Jackson Harper  <jackson@ximian.com>
9132
9133         * X11Dnd.cs:
9134         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
9135         Ringenbach.
9136
9137 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
9138
9139         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
9140           place
9141         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
9142           with the correct ButtonState
9143
9144 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
9145
9146         * XplatUIX11.cs: Improved distinguishing between window types to
9147           tell the WM a type closer to what the app wants (Fixes #78107)
9148
9149 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
9150
9151         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
9152           GrabHandle
9153
9154 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
9155
9156         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
9157           drawing code to reflect the size grip changes
9158
9159 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9160
9161         * ImageListStreamer.cs: fix handling of the mask that follows the main
9162         bitmap when deserializing and serialize it properly. The generated mask
9163         should better be a 1bpp image, but I'll do that later.
9164
9165 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
9166
9167         * FileDialog.cs: Show something in the DirComboBox on *nix if the
9168           path doesn't fit into some of our Current.Places
9169
9170 2006-04-13  Jackson Harper  <jackson@ximian.com>
9171
9172         * ComboBox.cs: Use borders instead of drawing our own decorations,
9173         try to obey correct rules for heights.
9174         * Theme.cs:
9175         * ThemeNice.cs:
9176         * ThemeClearLooks.cs:
9177         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
9178         this is now handled by borders.
9179         - Remove unused DrawListBoxDecorationSize method.
9180         
9181 2006-04-13  Mike Kestner  <mkestner@novell.com>
9182
9183         * MenuAPI.cs: null guarding for the disbled click check fixes crash
9184         reported by Alex.
9185
9186 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
9187
9188         * ThemeWin32Classic.cs: 
9189           - Fixed CPDrawStringDisabled
9190           - Corrected drawing of disabled menu items
9191           - Fixed drawing of disabled radio buttons (bug #78095)
9192           - Draw check in a disabled CheckBox with color ControlDark 
9193
9194 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
9195
9196         * Form.cs: Use the provided width when calculating the menu size;
9197           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
9198           and ClientSize.Width won't be updated yet
9199         * Application.cs: Use Visible instead of Show() to make form visible,
9200           this way we create the handle later and menusize is considered
9201
9202 2006-04-12  Mike Kestner  <mkestner@novell.com>
9203
9204         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
9205         reporting.
9206
9207 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
9208
9209         * TextBox.cs: Implemented context menu
9210
9211 2006-04-12  Mike Kestner  <mkestner@novell.com>
9212
9213         * ListView.cs: implement box selection. fixes #77838.
9214         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
9215
9216 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
9217
9218         * XplatUIX11.cs: Added setting of window type when transient window
9219           is created (metacity would move it otherwise)
9220         * X11Structs.cs: Added WINDOW_TYPE atoms
9221         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
9222           background (the control is Opaque but still wants transparent
9223           backgrounds)
9224
9225 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
9226
9227         * Control.cs: Added OnPaintBackgroundInternal to allow controls
9228           that set Opaque but don't mean it (like all ButtonBase-derived
9229           controls) to still draw their background
9230         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
9231           the background
9232
9233 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
9234
9235         * Control.cs (PaintControlBackground): Set the graphics object
9236           on our PaintEvent to null to prevent it from being disposed
9237           when the PaintEvent gets disposed
9238
9239 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
9240
9241         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
9242         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
9243
9244 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
9245
9246         * Control.cs: 
9247           - Added transparency check to BackColor property. Transparent
9248             backgrounds are only allowed if the control styles permit it
9249           - Added recursive painting of parent control background and
9250             foreground if a control with a transparent backcolor is drawn
9251             (Thanks to Tim Ringenback for providing his 'hack' as a base
9252              for this patch) Fixes #77985 and #78026.
9253           - Added Opaque style check before calling OnPaintBackground, no
9254             need to draw the background if the control is opaque
9255           - Removed ControlAccessibleObject owner variable (inherited from
9256             base, no need to define again)
9257           - Added some documentation links explaining the drawing events
9258             and styles
9259
9260 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
9261
9262         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
9263           that the affected control is the located at the left border of our
9264           parent (Fixes #77936)
9265
9266 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
9267
9268         * TextBoxBase.cs: When rendering disabled or readonly controls,
9269           draw the background with 'Control' instead of 'Window' color as
9270           long as the user hasn't specifically set a color
9271
9272 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
9273
9274         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
9275           since that won't be updated if the user types text (only if it's
9276           programatically set)
9277
9278 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
9279
9280         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
9281           layout changes do to app-triggered resizes will have the proper
9282           display rectangle for layout
9283
9284 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
9285
9286         * ThemeWin32Classic.cs:
9287           - Make use of the SystemBrushes and SystemPens wherever possible
9288           - Corrected some highlight colors
9289           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
9290             drawing
9291         * Theme.cs: Added Empty field to CPColor struct
9292
9293 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
9294
9295         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
9296           is displayed when calculating the display rectangle. Thanks to Mike
9297           for teaching me the err of my ways.
9298
9299 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
9300
9301         * ScrollableControl.cs:
9302           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
9303             (instead of 0,0) and we now return the real width/height instead of
9304             just the clientrectangle, adjusted for padding. The rectangle is
9305             now cached and created by the new CalculateDisplayRectangle method.
9306           - Created new CalculateDisplayRectange method, which basically does
9307             what get_DisplayRectangle() did originally, but now using the 
9308             right edge instead of DisplayRectangle to determine the size of
9309             our scrollbars
9310           - get_Canvas(): Fixed it to properly calculate canvas for 
9311             right/bottom controls which seem to be placed to the right/bottom
9312             of any controls that have a fixed location
9313           - Removed TODO that's taken care of
9314           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
9315             and SetDisplayRectLocation according to new MSDN2 docs
9316           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
9317             event when that is called, this is added for compatibility
9318           - ScrollControlIntoView(): Implemented.
9319           - Switched scrollbars to be implicit, they shouldn't be selectable
9320         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
9321           call it when the active control is set/changed
9322         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
9323         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
9324           implicit_control variable (used for native Win32 message generation)
9325         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
9326           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
9327         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
9328         * XplatUIStructs.cs: Added ScrollBarCommands enum
9329
9330 2006-04-10  Jackson Harper  <jackson@ximian.com>
9331
9332         * ButtonBase.cs:
9333         * CheckedListBox.cs:
9334         * ComboBox.cs:
9335         * DataGrid.cs:
9336         * DataGridView.cs:
9337         * Form.cs:
9338         * GroupBox.cs:
9339         * ListBox.cs:
9340         * PrintPreviewControl.cs:
9341         * ProgressBar.cs:
9342         * PropertyGrid.cs:
9343         * Splitter.cs:
9344         * StatusBar.cs:
9345         * TrackBar.cs:
9346         * UpDownBase.cs: Fixup base event overrides.
9347         
9348 2006-04-06  Mike Kestner  <mkestner@novell.com>
9349
9350         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
9351         all user-initiated value changes to min <= value <= max-thumbsz+1.
9352         (set_Value): check for vert/horiz when calculating new thumb position.
9353         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
9354         like MS does.
9355         (OnMouseMoveSB): refactor the thumb dragging code and refine
9356         invalidation logic to reduce flicker.
9357         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
9358         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
9359         (UpdateThumbPosition): small code readability cleanup
9360
9361 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
9362
9363         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
9364           different
9365
9366 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
9367
9368         * ThemeNice.cs: Use a better graphics effect when a button is pressed
9369
9370 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
9371
9372         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
9373         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
9374           This dramatically reduces the number of Pen.Dispose calls. 
9375           Where possible call ResPool methods only once instead of calling it
9376           over and over again (for example for the same color).
9377
9378 2006-04-06  Mike Kestner  <mkestner@novell.com>
9379
9380         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
9381         Also remove an unused private field on the collection. Fixes #77972.
9382
9383 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
9384
9385         * ThemeNice.cs: Added ToolBar drawing code
9386
9387 2006-04-06  Mike Kestner  <mkestner@novell.com>
9388
9389         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
9390         I'm assuming that means we need to look up the toplevel for the
9391         provided control. Fixes the crash trace in #77911 but exposes another
9392         crash in some strange reflection usage in NDocGui.
9393
9394 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
9395
9396         * ThemeNice.cs: Gave it a little silver touch and added Images
9397           method
9398         * FontDialog.cs: FontDialog is not resizable
9399         * FileDialg.cs: Added SizeGripStyle.Show
9400
9401 2006-04-05  Jackson Harper  <jackson@ximian.com>
9402
9403         * KeyboardLayouts.cs: Remove warning.
9404
9405 2006-04-05  Jackson Harper  <jackson@ximian.com>
9406
9407         * Control.cs: Enable OnPaintInternal so we can use it for drawing
9408         all of our controls instead of Paint +=.
9409         * ListBox.cs:
9410         * ListView.cs:
9411         * MenuAPI.cs:
9412         * MessageBox.cs:
9413         * NotifyIcon.cs:
9414         * ProgressBar.cs:
9415         * ScrollBar.cs:
9416         * Splitter.cs:
9417         * StatusBar.cs:
9418         * TabControl.cs:
9419         * TextBoxBase.cs:
9420         * ToolBar.cs:
9421         * TrackBar.cs:
9422         * UpDownBase.cs:
9423         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
9424         use OnPaintInternal. Remove Width/Height and Visible checks in
9425         paint handler, this is done at a higher level now.
9426         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
9427         * PaintEventArgs.cs: Add a handled flag so controls that don't
9428         want anymore painting after OnPaintInternal can make sure OnPaint
9429         isn't called.
9430
9431 2006-04-05  Mike Kestner  <mkestner@novell.com>
9432
9433         * Form.cs: fix the menu WndProc hacks to respect the native enabled
9434         state of the form, so that we don't process events when Modal dialogs
9435         are up. Fixes #77922.
9436
9437 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
9438
9439         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
9440           checking is done.
9441
9442 2006-04-05  Mike Kestner  <mkestner@novell.com>
9443
9444         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
9445
9446 2006-04-05  Mike Kestner  <mkestner@novell.com>
9447
9448         * ListView.cs (HeaderMouseMove): null guarding for the over column
9449         when setting up the drag_to_index.  Fixes #78015.
9450
9451 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
9452
9453         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
9454           in the taskbar. Transient windows seem to accomplish that.
9455
9456 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
9457
9458         * Form.cs:
9459           - Re-enabled CreateParams.X/Y code for FormStartPosition
9460           - Added code for manual placement when creating the Control
9461           - Incomplete patch to treat MDI forms differently when
9462             setting the ClientSizeCore. (Still need to figure out handling
9463             x/y coords there)
9464         * XplatUIX11.cs:
9465           - When we're explicitly setting the X/Y position of a non-Child
9466             window, let the WM know. Metacity really wants this.
9467
9468 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
9469
9470         * ThemeNice.cs: Added CPDrawButton
9471
9472 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
9473
9474         * ThemeNice.cs: Changed the color for focused buttons and activated
9475           the arrows for small scroll buttons.
9476
9477 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
9478
9479         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
9480           anymore. Changed some method modifiers to protected (virtual)
9481         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
9482           changes
9483         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
9484           Updated drawing of menus, buttons and progressbars; added
9485           CPDrawBorder3D 
9486
9487 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
9488
9489         * ImageListStreamer.cs: implemented serialization/deserialization
9490         of the images.
9491
9492 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
9493
9494         * ThemeWin32Classic.cs:
9495           - Removed all the DrawFrameControl stuff; CPDrawButton,
9496             CPDrawCheckBox and CPDrawRadioButton are now handled directly
9497             inside the methods
9498           - Updated and corrected the drawing code of CPDrawButton,
9499             CPDrawCheckBox and CPDrawRadioButton to better match ms
9500           - Updated theme checkbox and radiobutton code to use the CP*
9501             methods
9502
9503 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
9504
9505         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
9506           bug is fixed
9507
9508 2006-03-31  Jackson Harper  <jackson@ximian.com>
9509
9510         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
9511         sometimes.
9512         * UpDownBase.cs: Don't CreateGraphics manually, use a
9513         Refresh. Ideally we would invalidate the correct areas here.
9514
9515 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
9516
9517         * XplatUIX11.cs: 
9518           - We now track the mapping state of windows. If a window (or 
9519             one of it's parents) is not mapped we no longer permit
9520             WM_PAINT messages to be generated since we'd otherwise get 
9521             lots of BadMatch X errors. Jackson did all the work figuring
9522             out the problem.
9523           - Destroying the caret if the window it's contained in is 
9524             destroyed. Can't use regular DestroyCaret method since it
9525             might fall into a drawing function (trying to remove the
9526             caret) and with that generate new BadMatch errors. Again,
9527             Jackson tracked this down.
9528           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
9529             make sure we send the messages to all windows. (The old code
9530             would send the WM_DESTROY to the window, and then all child
9531             windows would be 'gone' because the WM_DESTROY handle lookup
9532             would no longer find the destroyed window)
9533         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
9534         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
9535
9536 2006-03-31  Jackson Harper  <jackson@ximian.com>
9537
9538         * ScrollableControl.cs: Dont recalc if we are not visible.
9539
9540 2006-03-31  Mike Kestner  <mkestner@novell.com>
9541
9542         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
9543         the visibility branch.
9544
9545 2006-03-31  Jackson Harper  <jackson@ximian.com>
9546
9547         * ScrollBar.cs: Cap values when incrementing/decrementing.
9548
9549 2006-03-31  Mike Kestner  <mkestner@novell.com>
9550
9551         * MenuAPI.cs: setup menu.tracker for popup/context menus.
9552         * ToolTip.cs: guard against timer expirations with no active control.
9553         Not sure why it happened.
9554
9555 2006-03-31  Mike Kestner  <mkestner@novell.com>
9556
9557         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
9558         text.
9559         * ToolTip.cs: Position the tooltip based on where the cursor is at
9560         popup time, not at MouseEnter time.  Add a Down state so that we don't
9561         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
9562         positioning offset. Lookup DisplaySize at positioning time, since it
9563         can theoretically change during invocation.
9564         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
9565         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
9566
9567 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
9568
9569         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
9570           Fixes behaviour when the Text property of the box is String.Empty
9571
9572 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
9573
9574         * XplatUIX11.cs: Only send mouseleave for our client windows, not
9575           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
9576           a window)
9577
9578 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
9579
9580         * FileDialog.cs: Visual enhancement for the popup buttons in 
9581           PopupButtonPanel
9582
9583 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
9584
9585         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
9586           code
9587
9588 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
9589
9590         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
9591           highlighted menu items to match ms
9592
9593 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
9594
9595         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
9596
9597 2006-03-30  Mike Kestner  <mkestner@novell.com>
9598
9599         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
9600         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
9601         go active to account for HotLight to Selected transition.
9602         * MenuItem.cs: add internal Selected prop. Fill out the Status
9603         property by calculating it from item info. Add HotLight,
9604         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
9605
9606 2006-03-30  Mike Kestner  <mkestner@novell.com>
9607
9608         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
9609
9610 2006-03-29  Jackson Harper  <jackson@ximian.com>
9611
9612         * Form.cs: Implement TODO.
9613
9614 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
9615
9616         * PrintPreviewDialog.cs: Implemented missing methods and events; still
9617           missing proper dialog setup in the constructor
9618
9619 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
9620
9621         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
9622         * Control.cs:
9623           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
9624           - Fixed ResetBindings and removed TODO
9625           - Added check for cross-thread calls to get_Handle()
9626           - Added Marshaller attribute for set_Font to satisfy class status
9627         * FontDialog.cs: Removed TODOs that seemed implemented
9628         * UpDownBase.cs: Removed unneeded TODO and Fixme
9629         * MessageBox.cs: Implemented support for Default button and removed TODO
9630         * FileDialog.cs: Removed obsolete TODO
9631         * DomainUpDown.cs: Removed obsolete TODO
9632         * ButtonBase.cs: Removed obsolete TODO
9633         * XplatUIWin32.cs: Removed obsolete TODO
9634         * Form.cs:
9635           - Removed obsolete TODO
9636           - Calling CheckAcceptButton when the acceptbutton is changed to allow
9637             internal status updates
9638           - Making sure the active control is selected when the control is created
9639         * CurrencyManager.cs: Removed obsolete TODO
9640
9641 2006-03-29  Mike Kestner  <mkestner@novell.com>
9642
9643         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
9644         of PrintPreviewDialog and RichTextBox.
9645
9646 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
9647
9648         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
9649           DarkDark, Light and LightLight colors for a specific color
9650         * ThemeWin32Classic.cs:
9651           - Use Button drawing code to draw RadioButtons and CheckBoxes with
9652             Appearance = Button 
9653           - Make use of the new ResPool helper CPColor
9654           - Draw ProgressBar and StatusBar with correct 3D borders
9655
9656 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
9657
9658         * ColorDialog.cs: Return selected color. Fixes bug #77940.
9659
9660 2006-03-28  Mike Kestner  <mkestner@novell.com>
9661
9662         * ListView.cs: fix Icon layout to plan for scrollbar widths when
9663         calculating col/row counts.
9664
9665 2006-03-28  Mike Kestner  <mkestner@novell.com>
9666
9667         * ColumnHeader.cs:
9668         * ListView.cs:
9669         * ListViewItem.cs:
9670         * Menu.cs: 
9671         switch to explicit interface method implementation for some methods
9672         corcompare identifies as inconsistent with MS.
9673
9674 2006-03-28  Mike Kestner  <mkestner@novell.com>
9675
9676         * MainMenu.cs: 
9677         * Menu.cs:
9678         add a few missing methods from the class status output.
9679
9680 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
9681
9682         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
9683           correct.
9684
9685 2006-03-28  Mike Kestner  <mkestner@novell.com>
9686
9687         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
9688
9689 2006-03-27  Mike Kestner  <mkestner@novell.com>
9690
9691         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
9692         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
9693
9694 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
9695
9696         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
9697
9698 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
9699
9700         * ThemeWin32Classic.cs:
9701           - GroupBox: Inserted a little gap between the text and the lines
9702             on the right side
9703           - Made the code in CPDrawBorder3D more readable
9704           - Corrected the drawing location of the up and down arrows in 
9705             CPDrawScrollButton
9706
9707 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
9708
9709         * ControlPaint.cs: Corrected line widths in DrawBorder for
9710           ButtonBorderStyle Inset and Outset
9711
9712 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
9713
9714         * ThemeWin32Classic.cs:
9715           - Rewrote the totally broken CPDrawBorder3D method. That was
9716             one of the main problems for the terrific ThemeWin32Classic
9717             look
9718           - Updated and corrected Button drawing
9719           - Correct the dimensions of the SizeGrip to match ms ones
9720           - Removed a small drawing glitch in DrawComboBoxEditDecorations
9721         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
9722           Border3DStyle.Sunken to match ms.
9723
9724 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
9725
9726         * ThemeWin32Classic.cs: First small part of the "de-uglify
9727           ThemeWin32Classic" effort, SizeGrip
9728
9729 2006-03-24  Jackson Harper  <jackson@ximian.com>
9730
9731         * XplatUIX11.cs: Give a max idle time of one second, this matches
9732         MS and forces an Idle event every second when there are no other
9733         events in the queue.
9734
9735 2006-03-24  Mike Kestner  <mkestner@novell.com>
9736
9737         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
9738         * ListView.Item.cs: fix layout issues with null image lists and images
9739         smaller than checkbox size.
9740         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
9741         mode like MS does.  It's weird, but consistent.  ;-)
9742         Fixes #77890.
9743
9744 2006-03-24  Mike Kestner  <mkestner@novell.com>
9745
9746         * ListView.cs: Scroll wheel support for the item control.  Fixes
9747         #77839.
9748
9749 2006-03-23  Jackson Harper  <jackson@ximian.com>
9750
9751         * ScrollableControl.cs: Special case negative sized areas, not
9752         zero.
9753         * MonthCalendar.cs: Save the rect of the clicked date so we can
9754         use it for invalidation.
9755         - Try to cut down on the number of invalidates
9756         - Invalidate the rect the mouse is over and was over when moving
9757         the mouse, so we get the focus box following the cursor.
9758
9759 2006-03-23  Mike Kestner  <mkestner@novell.com>
9760
9761         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
9762         focus rectangle drawing. Fixes #77835.
9763
9764 2006-03-23  Mike Kestner  <mkestner@novell.com>
9765
9766         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
9767         the if and else if and reverting back to the original == check on the
9768         None conditional.
9769
9770 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
9771
9772         * FontDialog.cs: Update the example panel if the selected index of
9773           the fontListBox changes.
9774
9775 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
9776
9777         * FileDialog.cs: Make FileDialog remember which directory it was in
9778           last in the same execution.
9779
9780 2006-03-22  Mike Kestner  <mkestner@novell.com>
9781
9782         * FileDialog.cs: make the DropDownMenu on the toolbar display
9783         RadioChecks since they are mutually exclusive and that's what MS does.
9784
9785 2006-03-22  Mike Kestner  <mkestner@novell.com>
9786
9787         * Theme.cs: add Color param to CPDrawMenuGlyph.
9788         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
9789         checks and radio marks and arrows are visible on highlighted items.
9790         * ControlPaint.cs: update to use new Theme signature.
9791
9792 2006-03-22  Mike Kestner  <mkestner@novell.com>
9793
9794         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
9795         is active. Fixes #77870.
9796
9797 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
9798
9799         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
9800           to be focused/selected after startup
9801
9802 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
9803
9804         * ColorDialog.cs: 
9805           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
9806             CustomColors and ShowHelp properties
9807           - Some internal rewrites to get better results when using the
9808             ColorMatrix
9809
9810 2006-03-22  Mike Kestner  <mkestner@novell.com>
9811
9812         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
9813         HoverSelection.  Fixes #77836.
9814
9815 2006-03-22  Mike Kestner  <mkestner@novell.com>
9816
9817         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
9818         ToggleButtons.  (De)Sensitize the Back button around a stack count of
9819         1, not 0.  Update ButtonSize based on a pixel count of the win32
9820         control.  Adjust the toolbar size/location for new button size.
9821
9822 2006-03-22  Jackson Harper  <jackson@ximian.com>
9823
9824         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
9825         true.
9826         * ScrollBar.cs: When doing increments and decrements we need to
9827         set the Value property so that ValueChanged gets raised. A
9828         possible optimization here would be to make an internal SetValue
9829         that doesn't invalidate immediately.
9830         * ToolTip.cs: Tooltips get added to their container (when
9831         supplied) so they get disposed when the container is disposed.
9832         - Don't create tooltips for String.Empty. This prevents all these
9833         little 2-3 pixel windows from showing up when running nunit-gui
9834         and driving me mad.
9835         * Form.cs: Don't set topmost when setting the owner if the handles
9836         haven't been created yet.  The topmost set will happen when the
9837         handles are created.
9838
9839 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
9840
9841         * XplatUIX11.cs:
9842           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
9843           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
9844             visible (to allow them to recalculate their sizes)
9845
9846 2006-03-21  Mike Kestner  <mkestner@novell.com>
9847
9848         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
9849         methods. Removed a ton of redundant code.  Still not really happy with
9850         the border rendering, but I think that's mainly because of the
9851         ControlDarkDark being black instead of a dark grey. Depending on how 
9852         close we want to be, we might want to revisit those color choices.
9853         Among the new features added during the refactor were DropDownArrow
9854         pressed rendering, Disabled image rendering.  Proper flat appearance
9855         boundary rendering.  Removed the Divider and Wrapping dividers since I
9856         can't figure out any combination of themes and conditions to make the
9857         MS control draw a horizontal line on a toolbar despite what the
9858         Divider property docs indicate.
9859         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
9860         conditions and incorrect layout.  Updated to coding standard.
9861         * ToolBarButton.cs: refactored layout and positioning code from
9862         ToolBar to here.  Invalidate wherever possible instead of forcing
9863         redraws of the whole toolbar. 
9864         (Known remaining issues: explicit ButtonSize smaller than provided
9865         images.)
9866
9867 2006-03-21  Mike Kestner  <mkestner@novell.com>
9868
9869         * ContextMenu.cs (Show): use the position parameter instead of just
9870         showing at the MousePosition.
9871
9872 2006-03-21  Jackson Harper  <jackson@ximian.com>
9873
9874         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
9875         control handle this.
9876         * TreeNodeCollection.cs: If we are clearing the root node we need
9877         to reset top_node so calcs can still happen.
9878         * ThemeWin32Classic.cs: This is a Flags so we need to check
9879         properly.
9880         
9881 2006-03-21  Jackson Harper  <jackson@ximian.com>
9882
9883         * DataGrid.cs: Create columns when the binding context has been
9884         changed.
9885         * X11Structs.cs: Keysyms are uints.
9886         - Add size to fix build.
9887
9888 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
9889
9890         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
9891           XplatUIOSX.cs: 
9892           - Added ResetMouseHover method to allow controls to retrigger
9893             hovering if they need it more than once
9894           - Implemented MouseHoverTime and MouseHoverSize properties
9895         * Timer.cs: Start() must reset the interval
9896         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
9897           properties
9898
9899 2006-03-21  Jackson Harper  <jackson@ximian.com>
9900
9901         * X11Keyboard.cs: improved layout detection. Move the nonchar
9902         tables into this file.
9903         * KeyboardLayouts.cs: Move the tables into resource files.
9904
9905 2006-03-21  Mike Kestner  <mkestner@novell.com>
9906
9907         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
9908
9909 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
9910
9911         * Mime.cs: Various speed optimizations. Looking up mime types
9912           is now 2 times faster than before
9913
9914 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
9915
9916         * CreateParams.cs: Added internal menu field
9917         * Control.cs: 
9918           - Switched call order for UpdateBounds; now we always call
9919             the one that also takes ClientSize, and we're calculating the 
9920             client size via driver method in the others. The previous
9921             method of tracking client size by difference wasn't working
9922             for forms where even the starting client size wouldn't match
9923             the overall form size (due to borders) (Part of fix for #77729)
9924           - CreateParams(): Do not use parent.Handle unless the handle is
9925             already created. Causes havoc with Nexxia and throws off our
9926             creation of controls
9927         * XplatUIX11.cs:
9928           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
9929           - Switched handling of ConfigureNotify over to new PerformNCCalc 
9930             method (consolidates code)
9931           - Changed RequestNCRecalc to use new PerformNCCalc method
9932           - Added calls to RequestNCRecalc when menus and borders are changed
9933             to allow app to set NC size. (Part of fix for #77729) This matches
9934             when MS send a WM_NCRECALC on Win32 windows.
9935           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
9936             (Part of fix for #77729). This matches what MS does, they also
9937             send that message when the form is made visible.
9938           - XException.GetMessage: Improved usability of X errors by including
9939             a translation of the window into Hwnd and Control class
9940           - Improved debug info for window creation, reparenting and destruction
9941           - Created helper method WindowIsMapped() [Currently not used]
9942         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
9943         * Form.cs:
9944           - CreateParams: Now setting our menu on the new internal menu field
9945           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
9946             avoid calculating the same property twice
9947         * Hwnd.cs:
9948           - Improved usability of ToString() for debugging purposes
9949           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
9950             determine the height of the menu, instead of just the font. This
9951             required to also create a graphics context and to keep a bmp 
9952             around (for performance reasons)
9953
9954 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
9955
9956         * MenuAPI.cs: Added OnMouseUp method
9957         * Form.cs:
9958           - Now remembering the requested client size, avoids size errors
9959           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
9960             instead of base if the menu is active. This is required due to
9961             control now capturing and releasing on down/up and it would
9962             prematurely release our menu capture
9963
9964 2006-03-17  Jackson Harper  <jackson@ximian.com>
9965
9966         * KeyboardLayouts.cs: Add the czech layouts.
9967
9968 2006-03-16  Jackson Harper  <jackson@ximian.com>
9969
9970         * Control.cs: Use the viewport space when sizing not the controls
9971         client size, so things like ScrollableControl that effect the
9972         viewport size (when scrollbars are added) are computed correctly.
9973         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
9974         of ManagerEntrys.
9975         - Handle creating BindingManagers for null data sources.
9976         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
9977         source, otherwise when rows are added they are added to the 'fake'
9978         datasource and we will crash when trying to set the position in
9979         those rows.
9980         - Use Implicit scrollbars on the datagrid so they arent
9981         selectable.
9982         
9983 2006-03-16  Jackson Harper  <jackson@ximian.com>
9984
9985         * Binding.cs:
9986         * InternalWindowManager.cs:
9987         * MdiWindowManager.cs:
9988         * X11Keyboard.cs: I really want Mike to love me again (fix
9989         compiler warnings).
9990
9991 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
9992
9993         * DataGrid.cs:
9994           - OnMouseDown: Switch to editing mode when clicking on the cell
9995                          even if we're clicking on the cell that's currently 
9996                          selected
9997           - ProcessGridKey: Left/Right now wrap like MS.Net does
9998           - ProcessGridKey: Tab now knows to add a new row when tab is
9999                             pressed in the cell of the last column of the 
10000                             last row
10001           - ProcessGridKey: Enter now adds another row  if pressed in the last
10002                             row and selectes the new row, same column cell
10003           - ProcessGridKey: Home/End navigate columns, not rows, like 
10004                             originally implemented
10005           - Broke ProcessKeyPreview code out into an extra Internal method
10006             so it can be called from the edit code
10007         * DataGridTextBox.cs (ProcessKeyMessage):
10008           - Switched to accept Tab keypresses
10009           - Added F2 handling to allow jumping to the end of the edited cell
10010           - Added logic to allow moving caret left/right inside edited cell
10011             and making the edited cell jump when the caret hits cell borders
10012           - Tab and Enter are now passed to the datagrid after being handled
10013         * TextBoxBase.cs:
10014           - Removed capture code now that Control handles it
10015           - set_SelectionStart now ensures caret is visible
10016
10017 2006-03-16  Jackson Harper  <jackson@ximian.com>
10018
10019         * TrackBar.cs: Debackwards the increment/decrement for handling
10020         mouse clicks on the bar with vertical trackbars.
10021         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
10022         bottom to match MS.
10023
10024 2006-03-16  Mike Kestner  <mkestner@novell.com>
10025
10026         * ListView.cs: make shift/ctrl keyboard and mouse selection 
10027         consistent with the MS control. Fix a bug in
10028         SelectedListViewItemCollection.Clear that was pissing me off for the
10029         better part of a day because the collection was being altered
10030         underneath us as we walked the list.
10031
10032 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
10033
10034         * Control.cs: Not sure how we could miss this so long, but it seems
10035           that MS.Net has Capture set all the way from before calling 
10036           OnMouseDown through sending the mouse events until after
10037           OnMouseUp. This will fix DataGrid's selection being set to end
10038           at the location of the MouseUp.
10039
10040 2006-03-15  Jackson Harper  <jackson@ximian.com>
10041
10042         * BindingContext.cs: Check the binding after its added so that it
10043           can initialize the binding managers and hookup to events.
10044         * Binding.cs: Data members seem to sometimes include rows/cols in
10045           the format Row.Column we now take this into account.
10046           - Hookup to the position changed event so we can update the
10047           control when the position has changed in the data set.
10048         * CurrencyManager.cs: Take into account the row/col naming
10049           convention when creating dataset tables.
10050         * BindingContext.cs: Using a newer better way of storing
10051           datasource/datamember pairs.  Hopefully this better matches MS for
10052           looking up binding managers.
10053
10054
10055 2006-03-15  Jackson Harper  <jackson@ximian.com>
10056
10057         * BindingContext.cs: The currency manager needs the data member
10058         name, if the member is a data set we use the name to find the
10059         correct table.
10060         * CurrencyManager.cs: When creating the list prefer an IList over
10061         an IListSource.
10062         - Attempt to create a DataTable from a DataSet (TODO: might need
10063         some better error checking here, although MS doesn't seem to have much)
10064         - If we have a DataTable create a view and use it as our list.
10065
10066 2006-03-15  Mike Kestner  <mkestner@novell.com>
10067
10068         * ListView.cs: keep a matrix of the icon mode layout to facilitate
10069         keyboard navigation. Support Up/Down/Left/Right selection correctly
10070         for all 4 View modes.
10071         * ListViewItem.cs: add internal row/col fields for icon layouts.
10072
10073 2006-03-15  Jackson Harper  <jackson@ximian.com>
10074
10075         * TabControl.cs: Redraw the tabs when we resize so their newly
10076         calculated sizes are drawn on screen.
10077         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
10078         composite characters.
10079         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
10080         - filter events so that composite characters can be created
10081         patches by peter
10082         * X11Structs.cs: Add XIMProperties enum.
10083
10084 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
10085
10086         * Control.cs (BringToFront, SendToBack): Don't use window or handle
10087           unless it's created
10088
10089 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
10090
10091         * Control.cs (PerformLayout): We don't need to consider visiblity
10092           for anchoring, only for docking. This fixes 'whacky' alignment
10093           in listbox and other controls that use implicit scrollbars after
10094           the previous PerformLayout patch
10095         * ListBox.cs: Switched to use implicit scrollbars
10096           
10097 2006-03-14  Mike Kestner  <mkestner@novell.com>
10098
10099         * ToolBar.cs: 
10100         * VScrollBar.cs:
10101         - chain up the "new event" overrides to base and use
10102         OnEvent to raise them.  Part of fix for bug #76509.
10103
10104 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
10105
10106         * FileDialog.cs: Do not select an item in the parent directory
10107           on backspace
10108
10109 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
10110
10111         * Control.cs (PerformLayout): It would seem that we considered
10112           invisible windows for our layout. Not quite the right thing
10113           to do. Now we don't any longer, thereby fixing bug #76889.
10114
10115 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
10116
10117         * Control.cs (CanFocus): I goofed. A control can have focus 
10118           even though it's not selectable. Made it match MS docs.
10119
10120 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
10121
10122         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
10123           center by default (fixes #76895)
10124         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
10125           all uses of Border3DSides.All with the explicit ORd together
10126           Left|Right|Top|Bottom because I assume that nobody was aware 
10127           that All also implies a center fill. Most places I checked had
10128           a fill right above.
10129         * ProgressBarStyle.cs: Added
10130
10131 2006-03-13  Mike Kestner  <mkestner@novell.com>
10132
10133         * ListView.cs: fix breakage in drag shadow header positioning 
10134         from Peter's csc compilation fix.
10135
10136 2006-03-13  Mike Kestner  <mkestner@novell.com>
10137
10138         * ListView.cs: fix NRE produced by backspacing twice in a focused
10139         FileDialog.
10140
10141 2006-03-13  Mike Kestner  <mkestner@novell.com>
10142
10143         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
10144
10145 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
10146
10147         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
10148           be changed
10149         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
10150           the allowed size before making programmatic size changes
10151
10152 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
10153
10154         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
10155           set, metacity is broken and will still use the emty sizes in 
10156           the struct. (Fix for #77089)
10157
10158 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
10159
10160         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
10161           WindowExStyles and marked both enums as Flags
10162         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
10163           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
10164           to match WindowStyles split
10165         * XplatUIX11.cs:
10166           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
10167           - Updated to match WindowStyles split
10168         * XplatUIWin32.cs:
10169           - Fixed FosterParent creation, was using ExStyle on the Style field
10170             (This should help with Popup focus issues)
10171           - Updated to match WindowStyles split
10172
10173 2006-03-13  Jackson Harper  <jackson@ximian.com>
10174
10175         * MdiWindowManager.cs: Use the system menu height. Fixes some
10176         strange sizing issues.
10177
10178 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
10179
10180         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
10181         * TextBoxBase.cs:
10182           - Scroll to caret after inserting text (#77672)
10183           - Make scroll range one pixel higher, fixes off-by-one error (and
10184             makes underlines visible on the last line)
10185
10186 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
10187
10188         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
10189           the keyboard state from being stuck with keys in 'pressed' state when
10190           focus is switched away via keyboard
10191         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
10192           reset the keyboard if no X11 KeyUp events are expected to come
10193         * X11Structs.cs: Switched type of Visible to bool to match driver
10194
10195 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
10196
10197         * TextControl.cs:
10198           - Switched caret to be just 1 pixel wide, matches MS and looks less
10199             clunky
10200           - Moved caret display 1 pixel down from the top of the control
10201             to improve view
10202           - InsertCharAtCharet: Update the selection start if moving the caret
10203             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
10204           - No longer always creating the caret when the caret methods are
10205             called. Only the actual ShowCaret/HideCaret will do that now
10206           - Only setting caret visible if the owner control has focus
10207           - UpdateView: Added invalidation-shortcut logic for center and right 
10208             aligned text. Previously we'd update all according to the left
10209             logic which caused drawing errors. Also fixed height of invalidated
10210             areas, now properly invalidating the whole area (was off-by-one)
10211           - owner_HandleCreated: Always generate the document when the
10212             handle is created; this ensures that 
10213         * TextBoxBase.cs:
10214           - Fixed situation where caret would disappear under the right
10215             window border, also improved scrolling behaviour on left-
10216             aligned textboxes
10217           - Fixed right-aligned textboxes to have a border to the
10218             right instead of the caret being under the right border
10219         * XplatUIX11.cs:
10220           - Switched from 'nested' to simple visible/not visible tracking 
10221             for caret (part of fix for #77671)
10222           - No longer passing through translated FocusIn/FocusOut messages
10223             since we were notifying too often and the wrong windows. Instead
10224             we just notify our focussed window of receiving or loosing focus
10225         * XplatUIWin32.cs: Switched from 'nested' show/hide 
10226           counting for caret to simple visible yes/no behaviour (part of 
10227           fix for #77671)
10228
10229 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
10230
10231         * Mime.cs: Remove debug code...
10232
10233 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
10234
10235         * MimeGenerated.cs: Removed
10236         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
10237           and subclasses) from /usr/(local/)share/mime and
10238           $HOME/.local/share/mime.
10239
10240 2006-03-10  Jackson Harper  <jackson@ximian.com>
10241
10242         * MdiWindowManager.cs: Recalc the NC area when a window is
10243         maximized/restored so that the menu area is drawn on forms that
10244         don't have a menu.
10245
10246 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
10247
10248         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
10249           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
10250           us to force a WM_NCCALCRESIZE message being sent. This is needed
10251           for MDI maximizing.
10252
10253 2006-03-10  Jackson Harper  <jackson@ximian.com>
10254
10255         * Form.cs: We need to use the ActiveMenu when calculating menu
10256         height.
10257         - Fix nullref when the window manager hasn't been created yet.
10258         * Control.cs: Fix nullref when we try to bring a control to the
10259         front that has no parent.
10260         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
10261         height.
10262         - Add a dummy item to the maximized menu so it always has the
10263         correct height. Otherwise when there are no menus we don't get our
10264         icon and buttons.
10265         
10266
10267 2006-03-10  Jackson Harper  <jackson@ximian.com>
10268
10269         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
10270         stuff.
10271         * Form.cs: Make the window_state internal so the window managers
10272         can track it.
10273         - When an MDI child is maximized let its window manager create the
10274         main menu (so it can add its icon).
10275         - Notify the window managers of state changes
10276         - Let the window manager paint its buttons and handle button
10277         clicks on the menu when it is maximized.
10278         * InternalWindowManager.cs: Move the prev_bounds into the mdi
10279         window manager, since tool windows don't use it, only mdi windows.
10280         - Tell the main form that we don't want it to handle NCPAINT
10281         itself to avoid extra painting.
10282         - Handle clicks on a maximized windows menu.
10283         - Handle window state changes
10284         - Handle minimize/maximize clicks correctly by setting the window state.
10285         * MdiWindowManager.cs: Add an icon menu that (the menu you get
10286         when clicking on the forms icon).
10287         - New method to create a forms maximized menu. This is its normal
10288         menu + an icon.
10289         - Handle window state changes.
10290         - Handle sizing of maximized windows.  Maximized windows are just
10291         drawn bigger then the parent visible area. All controls are still
10292         there, they are just outside the visible area (this matches windows).
10293         * MdiClient.cs: No scrollbars when a child window is maximized.
10294         - Let the children windows figure out how big they should be when
10295         sizing maximized windows.
10296         - Implement a version of ArrangeIconicWindows somewhat similar to
10297         Windows version.  There are some little differences, but I don't
10298         think any app will rely on the layout of minimized mdi windows.
10299
10300 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
10301
10302         * Padding.cs: Several fixes to allow compiling with csc 2.0
10303
10304 2006-03-09  Jackson Harper  <jackson@ximian.com>
10305
10306         * Menu.cs:
10307         * MenuItem.cs: Cheap hack so we can add items to the list without
10308         the events being raised.  This allows adding mdi items during
10309         drawing. TODO: Should probably find a better time to add the items.
10310
10311 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
10312
10313         * ThemeWin32Classic.cs:
10314           - CheckBox_DrawText: Added logic to not wrap if not enough space
10315             is available (Fix for bug #77727)
10316           - RadioButton_DrawText: Added logic not to wrap if not enough
10317             space is available (Fix for bug #77727). Also removed some
10318             duplicate code, DrawString always drawing the regular text
10319             before hitting the if statement.
10320
10321 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
10322
10323         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
10324
10325 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
10326
10327         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
10328         * ContainerControl.cs: Partial implementation of some 2.0 scaling
10329           methods. Moved the new 2.0 properties into alphabetical order with
10330           other properties and added MonoTODO tags
10331
10332 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
10333
10334         * AutoScaleMode.cs: Added. Fix build.
10335
10336 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
10337
10338         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
10339           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
10340           and was requiring premature handle creation for calls from above
10341         * Form.cs, Control.cs: Removed handle arguments from calls to
10342           CalculateClientRect()
10343
10344 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
10345
10346         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
10347           drag_column.column_rect is MarshalByRef and can't be used that way
10348
10349 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
10350
10351         * AxHost.cs: Added deserialization constructor for 
10352           AxHost+State (fixes 77743)
10353
10354 2006-03-09  Mike Kestner  <mkestner@novell.com>
10355
10356         * ListView.cs: 
10357         - Added column drag reordering for details view.
10358         - fixed behavior when mouse is dragged off column and
10359         AllowColumnReorder is false.
10360         * ColumnHeader.cs: clone the format too in Clone.
10361         * Theme.cs: add DrawListViewHeaderDragDetails method.
10362         * ThemeWin32Classic.cs:
10363         - impl new method for drawing drag column shadows and targets.
10364         - support column offset for details mode in DrawListViewItem.
10365
10366 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
10367
10368         * TextControl.cs: Reset the char_count when the document is cleared
10369           (Fixes bug reported on mono-winforms mailing list)
10370
10371 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
10372
10373         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
10374           of calling base we simply process the key ourselves, since both
10375           DefWindowProc and the handled method would set m.Result. 
10376           (Fixes #77732)
10377
10378 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
10379
10380         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
10381           method also moves the window; instead implemented a copy of
10382           Control.ScaleCore (Part of fix for #77456)
10383         * TextBoxBase.cs: 
10384           - Created new CreateGraphicsInternal method to allow providing
10385             a graphics context when no handle is created without triggering
10386             handle creation. (Part of fix for #77456)
10387           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
10388         * TextControl.cs: 
10389           - Switched Constructor to require TextBoxBase instead of Control (to
10390             allow uncast access to CreateGraphicsInternal)
10391           - Safeguarded use of owner.Handle property. No longer accessing it
10392             unless the handle is already created.
10393           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
10394           - Now triggering a recalc when owning control becomes visible
10395         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
10396           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
10397           premature handle creation (Part of fix for #77456)
10398         * Control.cs:
10399           - We now only destroy our double-buffering buffers when the
10400             control is resized or disposed, but not when visibility
10401             changes. (The code even re-created them twice every time)
10402           - Now requiring a redraw of the buffer on visibility changes
10403             (fixes bug 77654 part 2)
10404           - Not passing OnParentVisibleChanged up unless the control
10405             is visible
10406           - CanFocus: Fixed to match MS documentation
10407           - Focus: Fixed to return actual focus state and to check if
10408             setting focus is legal before setting it
10409
10410 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
10411
10412         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
10413           when to draw focus rectangle by looking at parent focus and
10414           selected state instead. This fixes TabPages on Linux sometimes
10415           having none or multiple focus rectangles.
10416         * XplatUIX11.cs (SetFocus): 
10417           - Don't set the focus if the same window already has focus
10418           - Use SendMessage instead of PostMessage (like it's Win32
10419             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
10420             to match MS behaviour
10421         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
10422           are not selectable.
10423
10424 2006-03-07  Jackson Harper  <jackson@ximian.com>
10425
10426         * PictureBox.cs: Revert line I accidently committed last week.
10427
10428 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
10429
10430         * Control.cs: 
10431           - Added new IsRecreating and ParentIsRecreating properties to
10432             allow testing if RecreateHandle has been called on ourselves
10433             or one of our parents
10434           - WndProc(WM_DESTROY): If our control handle is being recreated
10435             we immediately need to create the handle when receiving the
10436             destroy, that way our child windows find a valid parent handle
10437             when they themselves are being recreated upon WM_DESTROY receipt
10438             (fix for bug #77654 part 1)
10439         * XplatUIX11.cs:
10440           - DestroyWindow: WM_DESTROY must be sent to our own window before
10441             notifying any child windows. MS documents that child windows
10442             are still valid when WM_DESTROY is received. (Control now relies on
10443             this behaviour)
10444           - Added some fine-grain debug options
10445
10446 2006-03-06  Jackson Harper  <jackson@ximian.com>
10447
10448         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
10449         box and base calculations off this.
10450         * MdiChildContext.cs:
10451         * MdiWindowManager.cs: Don't need to ensure scrollbars here
10452         anymore.
10453         
10454 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
10455
10456         * Splitter.cs: In situations where the affected control is added
10457           to the parent's control list after the splitter, we would not
10458           populate affected. Now we try populating it on mousedown, if
10459           it's not already set, and force it to be re-set whenever our
10460           parent changes.
10461
10462 2006-03-03  Matt Hargett  <matt@use.net>
10463
10464         * Control.cs: implement Control.Padding
10465         * Padding.cs: -Padding.All returns -1 when constructing with the
10466         implicit default ctor
10467         -Padding.ToString() matches MS.NET
10468         * ContainerControl.cs: implement
10469         ContainerControl.AutoScaleDimensions
10470         * ListControl.cs: implement ListControl.FormattingEnabled
10471         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
10472         * ButtonBase.cs:
10473         * TabPage.cs: Implement UseVisualStyleBackColor.
10474         * PictureBox.cs: Implement PictureBox.InitialImage.
10475
10476 2006-03-03  Mike Kestner  <mkestner@novell.com>
10477
10478         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
10479         event declarations to proxy to base event.
10480         * ListViewItem.cs: update to use ItemControl.
10481         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
10482         * ThemeWin32Classic.cs: update to new ListView theme API and fix
10483         column header label rendering for 0 width columns.
10484
10485 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
10486
10487         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
10488           that causes the control to be created. Fixes #77476.
10489
10490 2006-03-02  Jackson Harper  <jackson@ximian.com>
10491
10492         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
10493         expose_pending.
10494
10495 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
10496
10497         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
10498           passed in for the EventArgs (fixes #77690)
10499
10500 2006-03-01  Jackson Harper  <jackson@ximian.com>
10501
10502         * ScrollBar.cs: Refresh afterbeing resized.
10503
10504 2006-02-28  Mike Kestner  <mkestner@novell.com>
10505
10506         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
10507         Clean up a tracker compile warning.
10508         * MenuItem.cs: add internal PerformPopup method.
10509         [Fixes #77457]
10510
10511 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
10512
10513         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
10514           implicit expose) when the text is set to null
10515
10516 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
10517
10518         * RichTextBox.cs (FlushText): When newline is true, we always
10519           need to split the line, even if no text is on it and we may
10520           never eat newlines. (Fixes #77669)
10521
10522 2006-02-28  Mike Kestner  <mkestner@novell.com>
10523
10524         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
10525         and set Selected instead.
10526         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
10527         collections.
10528
10529 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
10530
10531         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
10532
10533 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
10534
10535         * FontDialog.cs:
10536           - Got rid of the panel. All controls are now directly added to
10537             the dialog form
10538           - It is now possible to set a font with the Font property
10539           - MinSize and MaxSize property do now what they should
10540           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
10541           - Searching and selecting a font with the font textbox works now,
10542             the same applies to the style and size textbox
10543           - Draw the correct 3D border in the example panel
10544           - Fixed a little mem leak (unused fonts didn't get disposed)
10545           - Many other internal updates/rewrites...
10546           - Fix typo
10547
10548 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
10549
10550         * TextControl.cs: 
10551           - InsertRTFFromStream: Added 'number of characters inserted' argument
10552           - set_SelectedRTF: Now using the number of characters to calculate
10553             the new location for the selection and cursor (x/y cannot be used
10554             due to potentially already wrapped text)
10555
10556 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
10557
10558         * TextControl.cs: Added property and implemented means to allow 
10559           disabling recalculation of a document (can be used to speed up
10560           multiple inserts and is needed to make RTF inserts predictable, see
10561           bug #77659)
10562         * RichTextBox.cs: Using the new NoRecalc property of Document to
10563           keep x/y insert locations predictable. Also makes it faster inserting
10564           large chunks of RTF
10565
10566 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
10567
10568         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
10569           it's easier for a child control to handle the other messages without
10570           having to duplicate the special functionality
10571         * TextBoxBase.cs
10572           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
10573             code to handle processing the key ourselves, in order to get 
10574             access to the result of KeyEventArgs.Handled. We now only call 
10575             ProcessKey if they key hasn't been handled already. Fixes #77526.
10576           - set_Text: If null or empty string is given, just clear the 
10577             document. Fixes part of #77526
10578
10579 2006-02-27  Jackson Harper  <jackson@ximian.com>
10580
10581         * SizeGrip.cs: Paint the background color before painting the grip
10582         so things look right.
10583         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
10584
10585 2006-02-27  Mike Kestner  <mkestner@novell.com>
10586
10587         * ListView.cs:
10588           - Restructure layout and invalidation model to remove a ton of
10589           flicker from the control and speed up performance in general.
10590           - Add manual column resize, flickers like crazy, but I already have
10591           some ideas on how I'll fix that. (#76822)
10592           - Merge the three Icon-based views into a single layout method.
10593           - Move item selection interaction logic from the item since 
10594           interaction with the collections is more appropriate to the view.
10595           - Deselection on non-item clicks.
10596         * ListViewItem.cs:
10597           - Encapsulate most of the layout. Add some internal props to trigger
10598           layout.  Move to a model where Items invalidate themselves instead
10599           of just invalidating the whole control every time something changes.
10600           - Invalidate on Text/Caption changes.
10601           - switch to an offset based layout model to avoid having to absolute
10602           position every element on item moves.
10603           - correct checkbox layout to conform to MS layout.
10604         * ThemeWin32Classic.cs:
10605           - refactor some column header drawing code.
10606           - fix string justification for column headers (#76821)
10607           - make SmallIcon labels top justified for compat with MS impl.
10608         * ThemeClearlooks.cs:
10609           - adjust to new ListViewItem internal checkbox bounds api.
10610
10611 2006-02-27  Jackson Harper  <jackson@ximian.com>
10612
10613         * Control.cs:  Change where implicit controls fall in the zorder.
10614         They are now on top of all children.
10615         - Synced AddImplicit code with Add
10616         - Removed unused enumerator.
10617         * SizeGrip.cs: Remove the TODO as its been TODONE.
10618
10619 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
10620
10621         * TextControl.cs(Insert): Combine the last lines unless the insertion
10622           string ends with \n\n, otherwise we leave one line too many (Fixes
10623           something I noticed with the testapp for #77526; the bug itself was
10624           already fixed in the previous checkin)
10625
10626 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
10627
10628         * RichTextBox.cs:
10629           - SelectionColor and SelectionFont methods no longer set absolute
10630             styles. Instead, the keep font or color respectively (This 
10631             resolves a long-standing FIXME in the code)
10632           - When flushing RTF text, the insert code now considers text trailing
10633             behind the insertion point (Fixes the bug where when replacing
10634             the selected text via SelectedRTF the remainder of the line behind 
10635             the selection would stay on the first insertion line)
10636         * TextBoxBase.cs:
10637           - AppendText now updates the selection points after inserting text
10638           - AppendText now ensures that the last tag (sometimes 0-length) of
10639             the document is used for the style information (Fixes part of 
10640             bug #77220)
10641         * TextControl.cs:
10642           - Created new FontDefiniton class to allow describing partial style
10643             changes
10644           - StreamLine() now takes a lines argument, to allow it to decide
10645             whether an encountered zero-length tag is the last in the document
10646             (which must be kept to not loose the font/color contained in it,
10647             for later appends)
10648           - Created Combine() and Split() methods for Marker structs, to 
10649             support marker updates due to reformatted documents (soft line
10650             wraps)
10651           - Implemented Document.CaretTag setter
10652           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
10653             of the last line (Not the cause, but also exposed by bug #77220)
10654           - Added LineTag argument to InsertString method, to allow callers
10655             to force a certain tag to be used (required to force use of the
10656             trailing zero-length tag of a document)
10657           - Now updating markers in Combine(), to avoid stale tag markers
10658           - Added some method descriptions to aid maintenance
10659           - Implemented new FormatText concept, allowing additive/subtractive
10660             formatting by only specifying the components that are to be 
10661             changed. This was needed for resolving the RTB.SelectedColor/
10662             RTB.SelectedFont fixmes
10663           - Added Break() support method to allow breaking up linetags (used
10664             for partial formatting)
10665           - Added GenerateTextFormat() method. It is used for partial 
10666             formatting and allows to generate a full font/color from given
10667             attributes and an existing tag.
10668
10669 2006-02-26  Jackson Harper  <jackson@ximian.com>
10670
10671         * XplatUIX11.cs:  Use the correct caption height.
10672         - Translate hittest coordinates to screen coords to match MS.
10673         * XplatUIWin32.cs: When we create MDI windows we need to reset
10674         some of the style flags, so we get a nice blank window, and can
10675         draw all the decorations ourselves.
10676         - Set a clipping rectangle on the non client paint event, the
10677         window manager drawing code needs one.
10678         * Form.cs: The window manager needs to know when the window state
10679         has been updated.
10680         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
10681         don't need to factor in border and title sizes in these
10682         methods. TODO: Remove the args and fix the call points.
10683         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
10684         properly.
10685         - Let the driver set the cursors.
10686         - Improve active window handling
10687         - Correct sizes for title bars and buttons.
10688         - Match MS drawing better
10689         * MdiWindowManager.cs: We don't need to handle border style
10690         updates specially anymore.
10691         - Check for scrollbars when windows are done moving
10692         - Handle Active properly.
10693         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
10694         correctly. I am spewing the exception though, so we don't hide the
10695         bugs.
10696         
10697 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
10698
10699         * DataGridViewRowPostPaintEventArgs.cs,
10700           DataGridViewCellPaintingEventArgs.cs,
10701           DataGridViewRowCollection.cs,
10702           DataGridViewRowPrePaintEventArgs.cs,
10703           DataGridViewCell.cs: Clear a few warnings and implement a few
10704           exceptions that should be thrown.
10705
10706 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
10707
10708         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
10709           'inheriting' our parent's (non-default) cursor. (Part of
10710            the fix for #77479)
10711
10712 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
10713
10714         * XplatUIX11.cs: Fixed cast to make csc happy
10715
10716 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
10717
10718         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
10719           it's for the client area (part of fix for #77479 and needed
10720           for MDI window cursor handling)
10721         * XplatUIX11.cs
10722           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
10723             the appropriate default cursors and also passing the message
10724             up the parent chain 
10725           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
10726             for non-client areas
10727
10728 2006-02-15  Jackson Harper  <jackson@ximian.com>
10729
10730         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
10731         is a real MDI window
10732
10733 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
10734
10735         * X11DesktopColors.cs: Instead of checking the desktop session
10736           string for "KDE" check if it starts with "KDE"
10737
10738 2006-02-10  Jackson Harper  <jackson@ximian.com>
10739
10740         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
10741         systems).
10742
10743 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
10744
10745         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
10746           errors
10747         * ColorDialog.cs:
10748           - Got rid of the panel. All controls are now directly added to
10749             the dialog form
10750           - Changed to mono coding style
10751
10752 2006-02-10  Jackson Harper  <jackson@ximian.com>
10753
10754         * InternalWindowManager.cs: We don't need the set visibility to
10755         false hack anymore now that peter has written beautiful shutdown
10756         code.
10757
10758 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
10759
10760         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
10761           where already explicitly destroyed
10762
10763 2006-02-10  Jackson Harper  <jackson@ximian.com>
10764
10765         * MdiClient.cs: Handle the case where windows are too high or to
10766         the left and we need scrollbars.
10767
10768 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
10769
10770         * MimeIcon.cs: Added some icons
10771         * FileDialog.cs:
10772           - Fixed bug #77477
10773           - Got rid of the panel. All controls are now directly added to
10774             the dialog form
10775           - Changed to mono coding style
10776           - On Linux "My Computer" and "My Network" will now show some
10777             more usefull information. A new class, MasterMount, gathers
10778             this information from /proc/mount. Updated MWFFileView to make
10779             use of this information
10780           - Fixed a bug that caused FileDialog to crash when
10781             ".recently_used" file had a zero size
10782           - FilterIndex does now what it should
10783           - Some Refactoring
10784         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
10785             FileDialog changes
10786
10787 2006-02-09  Jackson Harper  <jackson@ximian.com>
10788
10789         * ComboBox.cs: Don't touch if null.
10790
10791 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
10792
10793         * Cursor.cs: 64bit safeness fix
10794         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
10795
10796 2006-02-09  Jackson Harper  <jackson@ximian.com>
10797
10798         * Form.cs: If a form is made into an MDI form update the styles so
10799         all the props can get set correctly.
10800         - Kill the mdi_container when we dont need it anymore.
10801         * InternalWindowManager.cs: Add missing NOT
10802
10803 2006-02-08  Jackson Harper  <jackson@ximian.com>
10804
10805         * InternalWindowManager.cs: Respek clipping when drawing MDi
10806         decorations.
10807
10808 2006-02-08  Jackson Harper  <jackson@ximian.com>
10809
10810         * Hwnd.cs: Add bits to track non client expose events.
10811         * XplatUIX11.cs: Track non client expose events on the hwnd. This
10812         gives us a proper invalid rect and will allow for some nice
10813         optimizations with NC client drawing
10814         - MDI windows are children windows, so move their style handling
10815         into the child window block.
10816         * InternalWindowManager.cs: Remove a state reset that was
10817         getting invoked at the wrong time. Fixes managed windows getting
10818         into a 'stuck' captured state.
10819
10820 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
10821
10822         * TextControl.cs (Document.ctor): Now initializing 
10823           selection_anchor. Fixes #77493
10824
10825 2006-02-07  Jackson Harper  <jackson@ximian.com>
10826
10827         * TrackBar.cs: The increment/decrements were backwards.
10828
10829 2006-02-07  Mike Kestner  <mkestner@novell.com>
10830
10831         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
10832         to the instance itself.
10833
10834 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
10835
10836         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
10837           on ulongs and pointers, the size differs between 32bit and 64bit
10838           systems. 
10839
10840 2006-02-07  Mike Kestner  <mkestner@novell.com>
10841
10842         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
10843         for 64 bit platforms to work around a metacity bug. 
10844
10845 2006-02-07  Jackson Harper  <jackson@ximian.com>
10846
10847         * TrackBar.cs: Process the input keys we need, and hookup to
10848         KeyDown instead of using WndProc, so we get key messages.
10849
10850 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
10851
10852         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
10853           machine we're on. 
10854         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
10855           we need to translate the XdndVersion atoms array before sending it
10856
10857 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
10858
10859         * XplatUIX11.cs: 
10860           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
10861             number of bits for the property, not the number of bytes. The
10862             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
10863             but would not crash since it specified 8 bits instead of 4 bits)
10864           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
10865             defined as XID -> long in the C headers)
10866           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
10867             references since those are now IntPtr to begin with
10868           - Switched all Atom.XXX 'int' casts to IntPtr casts
10869           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
10870           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
10871           - Added XChangeActivePointerGrab DllImport (for X11DnD)
10872         * X11Structs.cs:
10873           - Changed 'int' type for Atoms in XEvent structures to IntPtr
10874           - Changed atom in HoverStruct to be IntPtr
10875         * X11DnD.cs:
10876           - Removed local DllImports, switched code to use those from XplatUIX11
10877           - Removed/fixed casts related to the switch of Atom to be a IntPtr
10878
10879 2006-02-06  Mike Kestner  <mkestner@novell.com>
10880
10881         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
10882         method signatures in the import region.  There may still be some
10883         lingering struct marshaling issues, as I didn't drill down into those.
10884         Yet.
10885
10886 2006-02-06  Jackson Harper  <jackson@ximian.com>
10887
10888         * ComboBox.cs: Dont manually set the top_item, this is computed
10889         when the scrollbar position is set.
10890
10891 2006-02-06  Mike Kestner  <mkestner@novell.com>
10892
10893         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
10894         startup crashes on amd64.  There's other fixes needed.  All pinvoke
10895         usage of Atom needs to be mapped to IntPtr for example.  And there are
10896         likely other int/long issues to be addressed.
10897
10898 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
10899
10900         * FileDialog.cs: One more...
10901
10902 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
10903
10904         * FileDialog.cs: Next try
10905
10906 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
10907
10908         * FileDialog.cs: First part of fix for #77464
10909
10910 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
10911
10912         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
10913           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
10914           AcceptButton border drawing.
10915
10916 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
10917
10918         * Form.cs: Moved positioning of form after auto scaling is applied,
10919           otherwise it would possibly use wrong form size.
10920
10921 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
10922
10923         * Control.cs (RecreateHandle): No need to re-create any child
10924           controls, the child windows will get destroyed automatically by
10925           the windowing system or driver, and re-created when the handle
10926           is being accessed the first time. Fixes #77456
10927         * Form.cs: No longer setting the form to closing if the handle is 
10928           being recreated. This seems like the right thing to do, don't
10929           have a bug or testcase for this, though.
10930
10931 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
10932
10933         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
10934           controls to avoid unwanted side effects
10935
10936 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
10937
10938         * Control.cs: 
10939           - ScaleCore needs to scale the bounds, not the ClientSize of the 
10940             control. Fixes #77416.
10941           - DefaultSize is 0,0 for control
10942         * TextBoxBase.cs: 
10943           - DefaultSize is 100, 20
10944           - SetBoundsCore: Now enforcing the height, no matter if the provided
10945             height is more or less than the preferred one, as long as AutoSize
10946             is on
10947         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
10948
10949 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
10950
10951         * Control.cs:
10952           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
10953             call unless both performLayout is true *and* we have a pending
10954             layout change
10955           - ResumeLayout: MS does not completely nest Suspend and Resume,
10956             they bottom out at 0, fixed our code to match that.
10957           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
10958             SetBoundsCore, we were updating even when we shouldn't. This fixes
10959             swf-anchors mis-anchoring when resizing the app fast and lots.
10960           - UpdateDistances: Now only setting the left and top distance if 
10961             we have a parent and are not suspended, this is based on
10962             a suggestion by Don Edvaldson in bug #77355.
10963           - OnVisibleChanged: Fixed logic when to create the control. We may
10964             not create the control if we have no parent or if it's not visible;
10965             switched to using Visible property instead of is_visible field 
10966             since the property also considers parent states. This fixes a bug
10967             when starting Paint.Net
10968
10969 2006-02-02  Jackson Harper  <jackson@ximian.com>
10970
10971         * Form.cs: If the forms handle hasn't been created yet don't call
10972         into xplatui to make it top most, just set the topmost flag on the
10973         form in CreateParams
10974         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
10975
10976 2006-02-01  Jackson Harper  <jackson@ximian.com>
10977
10978         * ScrollableControl.cs: Refactored the Recalculate method a
10979         little, this wasn't handling all the variants of bottom and right
10980         bars needed to be added and added/removed based on their
10981         counterparts being added/removed (which changes the drawable
10982         size). Also we special case client widths and heights of 0 and
10983         don't add the scrollbar for those.
10984
10985 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
10986
10987         * XplatUIX11.cs: 
10988           - Added method to get AbsoluteGeometry(); currently unused, but might
10989             be used in the future, if we try again to figure out toplevel
10990             coordinates with some more crappy window managers
10991           - Added FrameExtents() method to retrieve the WM set decoration size
10992           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
10993             to deal with at least KDE, FVWM and metacity (Fixes #77092)
10994         * Hwnd.cs: 
10995           - Added whacky_wm tracking var for metacity
10996           - Added logic to have default menu height if the actual menu height
10997             has not yet been calculated (part of fix for #77426)
10998         * Form.cs: Keep track whether client size has been set and re-set 
10999           it if a menu is added/removed afterwards (Fixes #77426)
11000
11001 2006-01-31  Jackson Harper  <jackson@ximian.com>
11002
11003         * Control.cs: When a new Site is set on the component attempt to
11004         pull the AmbientProperties from it.
11005
11006 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
11007
11008         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
11009           in the background of the owning form. Fixes #77332
11010
11011 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
11012
11013         * MimeIcon.cs: Fix for #77409
11014
11015 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
11016
11017         * XplatUIX11GTK.cs: Initial import
11018
11019 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
11020
11021         * FixedSizeTextBox: fixes class signature
11022
11023 2006-01-30  Jackson Harper  <jackson@ximian.com>
11024
11025         * FixedSizeTextBox.cs: New internal class that represents a
11026         textBox that will not be scaled.
11027         * TreeView.cs:
11028         * ComboBox.cs:
11029         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
11030         standard TextBox.
11031                 
11032 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
11033
11034         * XplatUIX11.cs: Retrieve default screen number instead of
11035           assuming 0. Attempted fix for #77318
11036
11037 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
11038
11039         * XplatUIWin32.cs: 
11040           - GetWindowPos: When a window is parented by FosterParent, use 
11041             the desktop instead of FosterParent as the base to get coordinates
11042           - CreateWindow: Don't make FosterParent the parent window for Popups
11043             if we don't want a taskbar entry, Popups automatically don't get one
11044         * Hwnd.cs: Need to call remove to actually remove the key from the
11045           hash table
11046
11047 2006-01-30  Mike Kestner  <mkestner@novell.com>
11048
11049         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
11050
11051 2006-01-30  Jackson Harper  <jackson@ximian.com>
11052
11053         * TreeView.cs:
11054         * TreeNode.cs: Raise events no matter how the treenode is
11055         checked. Patch by Don Edvalson.
11056
11057 2006-01-30  Jackson Harper  <jackson@ximian.com>
11058
11059         * TreeNode.cs: Signature fix.
11060
11061 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
11062
11063         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
11064
11065 2006-01-20  Mike Kestner  <mkestner@novell.com>
11066
11067         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
11068         event forwarding when menus are active.
11069         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
11070         Most of the patch is pdb's with a little rework.
11071
11072 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
11073
11074         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
11075           Removed GetMenuDC and ReleaseMenuDC methods; replaced
11076           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
11077         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
11078         * InternalWindowManager.cs: Added use of PaintEventStart/End to
11079           handling of WM_NCPAINT message, now passing the PaintEventArgs to
11080           the PaintWindowDecorations method
11081         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
11082         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
11083         * MenuAPI.cs: Made tracker window invisible
11084         * XplatUIWin32.cs:
11085           - Removed GetMenuDC and ReleaseMenuDC methods
11086           - Implemented the client=false path for PaintEventStart and
11087             PaintEventEnd
11088
11089 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
11090
11091         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
11092         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
11093           styles
11094         * Form.cs: 
11095           - MaximizeBox, MinimizeBox: Recreate the handle when setting
11096             the style
11097           - CreateParams: Reworked the styles to match MS look'n'feel,
11098             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
11099             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
11100
11101 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
11102
11103         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
11104           window is not mapped, since otherwise every form that's being 
11105           created is considered minimized, which is wrong.
11106         * Form.cs: Catching the exception and returning our internal value
11107           instead
11108
11109 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
11110
11111         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
11112           SetWindowMinMax() to have means to tell the driver about the minimum,
11113           maximum and maximized state window sizes. (Part of the fix for #76485)
11114         * Form.cs:
11115           - Implemented tracking of minimum and maximum window size, now calling
11116             new SetWindowMinMax() driver method to tell the driver (Part of the
11117             fix for #76485)
11118           - Finished handling of WM_GETMINMAXINFO method, now setting all values
11119             (Completes fix for #76485)
11120           - Calling new SetWindowMinMax driver method when the handle for a 
11121             form is created, to make sure the driver knows about it even if
11122             the values have been set before the window was created
11123           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
11124             to avoid messing up our anchoring calculations (partial fix
11125             for #77355)
11126         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
11127         * XplatUIX11.cs:
11128           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
11129           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
11130             (and presumably other freedesktop.org compliant WMs). Left the
11131             assumption unmapped=minimized, needed for SetVisible to work.
11132           - Now setting the window state when creating windows
11133           - Fixed SetVisible to consider/set the window state when mapping
11134             a Form. We cannot set the state before it's mapped, and we cannot
11135             use Form.WindowState once it's mapped (since it would ask the
11136             driver and get 'normal'. Therefore, we grab the state before
11137             mapping, map, and then set state.
11138           - Implmemented SetWindowMinMax method; Metacity does not seem to
11139             honor the ZoomHints, though.
11140         * XplatUIWin32.cs:
11141           - Removed MINMAXINFO (moved to XplatUIStructs)
11142           - Added SetWindowMinMax stub (on Win32 the only way to set that
11143             information is in response to the WM_GETMINMAXINFO message, which
11144             is handled in Form.cs)
11145           - Added logic to SetVisible to set the proper window state when a 
11146             form is made visible (fixes #75720)
11147
11148 2006-01-26  Jackson Harper  <jackson@ximian.com>
11149
11150         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
11151         same way we handle them with Invoke.
11152
11153 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
11154
11155         * Form.cs:
11156           - Added tracking of window state so CreateParams can return
11157             the appropriate style
11158           - Moved setting of WS_CAPTION style in CreateParams to allow
11159             styles without caption
11160         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
11161           control if the TextBox property is accessed. Fixes #77345
11162         * Control.cs:
11163           - get_Created: now uses is_disposed and is_created to determine
11164             return value (suggested by Jackson)
11165           - CreateHandle: No longer exits if the handle is being recreated
11166           - RecreateHandle: If the handle is not yet created call the 
11167             appropriate method to create either control or handle. If the
11168             control is already created CreateHandle will simply exit instead
11169             of just creating the handle
11170         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
11171           now SendMessage WM_DESTROY directly to the control when DestroyWindow
11172           is called.
11173         * XplatUIX11.cs: 
11174           - When DestroyWindow is called, instead of waiting for the 
11175             DestroyNotification from X11, we directly post it to the WndProc
11176             and immediately dispose the hwnd object.
11177             Same applies to DestroyChildWindows, and this obsoletes the
11178             expose_pending tracking. Contrary to Win32 behaviour we destroy our
11179             child windows before our own, to avoid X11 errors.
11180           - Removed the direct sending of WM_PAINT on UpdateWindow
11181         * XplatUIWin32.cs:
11182           - Reworked DoEvents and GetMessage to allow access to internal queue
11183             even when trying non-blocking access to the queue.  Fixes #77335. 
11184             Based on a patch suggestion by Don Edvalson. The new private
11185             GetMessage can now also be used as a backend for a PeekMessage
11186             frontend version.
11187         * XplatUI.cs: Improved debug output for CreateWindow
11188
11189 2006-01-25  Jackson Harper  <jackson@ximian.com>
11190
11191         * Help.cs: Allow param to be null. Patch by Don Edvalson.
11192
11193 2006-01-24  Jackson Harper  <jackson@ximian.com>
11194
11195         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
11196         when we have a MaxDropItems lower then the selected index.
11197
11198 2006-01-24  Jackson Harper  <jackson@ximian.com>
11199
11200         * Control.cs: Don't allow selection of non visible controls, allow
11201         selection of controls without parents.
11202
11203 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
11204
11205         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
11206         * DataGridDrawingLogic.cs: Add editing row only when is necessary
11207
11208 2006-01-23  Jackson Harper  <jackson@ximian.com>
11209
11210         * UpDownBase.cs: Make the textbox handle all the selection and
11211         tabbing. This fixes tabing to updown controls.
11212
11213 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
11214
11215         * TextBoxBase.cs: fixes exception thown the object was null
11216
11217 2006-01-23  Jackson Harper  <jackson@ximian.com>
11218
11219         * ButtonBase.cs: Just use the base CreateParams. They set
11220         visibility and enabled correctly.
11221         * ComboBox.cs:
11222         * TrackBar.cs:
11223         * MonthCalendar.cs: Lets let the base set as much of the
11224         createparams as possible so we don't have duplicate code all over
11225         the place.
11226
11227 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
11228
11229         * ThemeGtk.cs: Added TrackBar and some experimental code to
11230           get double buffering back
11231
11232 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
11233
11234         * DataGrid.cs: Allows row number set internally higher than the last
11235         when creating a new row. Restores the editing functionality.
11236
11237 2006-01-20  Mike Kestner  <mkestner@novell.com>
11238
11239         * MimeIcon.cs: delay Image creation until the icons are accessed
11240         instead of creating 190 scaled images on GnomeHandler startup.
11241
11242 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
11243
11244         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
11245           first call base before processing the event. Fixes #77279
11246
11247 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
11248
11249         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
11250           that the stride for the GDI bitmap would match the stride of
11251           a DIB or a Cursor.
11252
11253 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
11254
11255         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
11256
11257 2006-01-19  Jackson Harper  <jackson@ximian.com>
11258
11259         * ComboBox.cs: Hookup the text controls keydown event so we get
11260         those when the text control has the focus.
11261
11262 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
11263
11264         * Label.cs: Now using the base events instead of defining new ones;
11265           this allows us to just call the base properties without having to
11266           duplicate all base property logic 
11267
11268 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
11269
11270         * Label.cs: A label by default is not a tabstop (Fixes one of our
11271           failing nunit tests)
11272
11273 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
11274
11275         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
11276         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
11277
11278 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
11279
11280         * Cursor.cs: Reimplemented creating cursor bitmaps without using
11281           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
11282           This fixes #77218
11283         * XplatUIWin32.cs: 
11284           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
11285             constructor creates images that can't be saved. Part of the fix
11286             for #76103
11287           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
11288           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
11289             bug fix for handling window state in forms properly)
11290
11291 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
11292
11293         * ThemeGtk.cs: Simplify ScrollBar drawing
11294
11295 2006-01-18  Jackson Harper  <jackson@ximian.com>
11296
11297         * Splitter.cs: Set the default dock style for the splitter control
11298         in the constructor.
11299
11300 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
11301
11302         * ThemeGtk.cs: Corrected StateType and ShadowType for
11303           gtk_paint_box
11304
11305 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
11306
11307         * Control.cs: Make use of Theme.DoubleBufferingSupported
11308         * ThemeGtk.cs:
11309           - Added drawing for flat style buttons
11310           - Added ScrollBar drawing
11311
11312 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
11313
11314         * ThemeClearlooks.cs: Removed some unneeded code.
11315         * ThemeGtk.cs: First part of ThemeGtk enhancements.
11316
11317 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
11318
11319         * LinkLabel.cs: We need to update the hover drawing when
11320           leaving the control as well.
11321
11322 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
11323
11324         * DataGrid.cs: Clicking on non empty areas in the columns
11325            area was giving an exception
11326
11327 2006-01-17  Jackson Harper  <jackson@ximian.com>
11328
11329         * ThemeWin32Classic.cs:
11330         * ListView.cs: Do not draw/clip the headers when the header style
11331         is None.
11332
11333 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
11334
11335         * DataGrid.cs: Fixes 77260
11336         
11337 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
11338
11339         * DataGrid.cs: Clicking on a column on a empty grid was giving
11340           an exception
11341
11342 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
11343
11344         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
11345           or any keypress will crash the grid.
11346
11347 2006-01-17  Mike Kestner  <mkestner@novell.com>
11348
11349         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
11350         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
11351         invisible/previously-visible items.
11352         [Fixes #76909]
11353
11354 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
11355
11356         * ThemeClearlooks.cs:
11357         - Added CL_Draw_Button method; now other theme controls that are 
11358           not derived from button or do not have a button can draw buttons
11359           too
11360         - Updated ComboBox drawing
11361         - Beautified RadioButton drawing
11362         - Corrected drawing of bottom and left tabs
11363         - Beautified DateTimePicker and MonthCalendar
11364         - Added CPDrawButton and CPDrawRadioButton
11365
11366 2006-01-16  Jackson Harper  <jackson@ximian.com>
11367
11368         * ComboBox.cs: Set the initial value of the scrollbar to the
11369         current index. Reduce the numbers of refreshs and IndexOfs called.
11370
11371 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
11372
11373         * FileDialog.cs: When the file listview is focused hitting the
11374           backspace key moves the fileview to the parent directory
11375
11376 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
11377
11378         * Form.cs: 
11379           - Added RecreateHandle call when changing taskbar visibility to 
11380             trigger reparenting in Win32 driver (Fixes #75719)
11381           - If a window has minimize or maximize buttons, it cannot have
11382             a help button
11383         * XplatUIWin32.cs:
11384           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
11385             the toplevel form with FosterParent (A toolwindow not on the
11386             taskbar) (Fixes #75719)
11387           - Made FosterParent a toolwindow
11388
11389 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
11390
11391         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
11392
11393 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
11394
11395         * ToolTip.cs: If SetToolTip is called from a control and the mouse
11396           is currently over that control, make sure that tooltip_window.Text
11397           gets updated
11398
11399 2006-01-13  Mike Kestner  <mkestner@novell.com>
11400
11401         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
11402
11403 2006-01-13  Jackson Harper  <jackson@ximian.com>
11404
11405         * TreeView.cs: On MS GetNodeAt never actually factors in the X
11406         value passed.  Also redraw the selected node when we recieve
11407         focus, so tabbing between trees works correctly.
11408
11409 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
11410
11411         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
11412           ~/.gconf/%gconf-tree.xml, so use
11413           .gconf/desktop/gnome/interface/%gconf.xml
11414
11415 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
11416
11417         * TextControl.cs: Draw text in gray if control is disabled
11418
11419 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
11420
11421         * TreeView.cs: Draw the focus rectangle outside the highlight, to
11422           make sure it's always visible. Fixes #76680.
11423
11424 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
11425
11426         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
11427
11428 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
11429
11430         * PageSetupDialog.cs: Added.
11431         * PrintDialog.cs: Attributes.
11432         * PrintPreviewControl.cs: Updates.
11433         * PrintPreviewDialog.cs: Updates.
11434         
11435 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
11436
11437         * Control.cs: Undid my selection check fix, since it's not needed
11438         * TextBoxBase.cs:
11439           - Now considering the presence of hscroll/vscroll when sizing
11440             vscroll/hscroll respectively. Fixed bug #77077
11441           - Added Left/Up/Down/Right to IsInputKey list to prevent
11442             ContainerControl from stealing them. This fixes what I broke
11443             with my last checkin.
11444
11445 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
11446
11447         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
11448           I finally understand how the property can be set without a setter :-)
11449
11450 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
11451
11452         * Application.cs:
11453           - Switched RunLoop to use static Message.Create to create a 
11454             Message object
11455           - Added PreProcessMessage call in runloop for keyboard events; this
11456             is part of the fix for #77219, I overlooked this originally in the
11457             MSDN doc for PreProcessMessage
11458         * Control.cs:
11459           - Removed call to PreProcessMessage from handling of keyboard 
11460             messages; it's supposed to be done in the message pump
11461           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
11462             per MSDN documentation.
11463           - IsInputChar: All chars are input chars by default; removed the 
11464             parent calling chain, MS does not document that
11465           - PreProcessMessage: If IsInputChar is true, we want to return false
11466             to allow dispatching of the message
11467           - When selecting the next control, now also check that we're not
11468             selecting ourselves again and therefore return a false positive.
11469         * TextBoxBase.cs:
11470           - Tried to match return values for IsInputKey and ProcessDialogKey
11471             to what MS returns; moved processing of our special keys outside
11472             ProcessDialogKey since MS does not seem to return true on those.
11473           - Moved code that previously was in ProcessDialogKey into new private
11474             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
11475           - Reworked handling of WM_CHAR to not have to duplicate code from
11476             Control.cs anymore, instead we simply call down to base.
11477            
11478 2006-01-12  Jackson Harper  <jackson@ximian.com>
11479
11480         * ComboBox.cs: We always need to refresh the text area when
11481         EndUpdate is called. Fixes the combobox in the file dialog.
11482         * Control.cs: Don't create the creator_thread until the controls
11483         handle is created.  Also in InvokeRequired we check if the
11484         creator_thread is null. This gives the effect of InvokeRequired
11485         returning true if the controls handle is not created yet, and
11486         matches MS.
11487
11488 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
11489
11490         * XplatUI.cs:
11491           - Added StartLoop() driver method. This is used to allow drivers to
11492             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
11493             loop for a particular thread
11494           - Added EndLoop() driver method. This is called once the message
11495             pump for the thread is shut down
11496           - Added SupportsTransparency method to allow the driver to indicate
11497             opacity support for windows
11498         * Form.cs:
11499           - Removed TODO attribute, completed AllowTransparency property
11500           - Added documented logic to Opacity
11501         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
11502           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
11503           versions of CompatibleTextRendering
11504         * X11Structs.cs: Added opacity atom to our atom enumeration
11505         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
11506           of a form might be set before it's reparented by the WM, and we need
11507           the opacity value without calling up to Form)
11508         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
11509           SupportsTransparency() driver methods
11510         * Application.cs: Now calling StartLoop and EndLoop driver methods
11511         * XplatUIX11.cs:
11512           - Added opacity atom registration
11513           - Added StartLoop()/EndLoop() methods. They're empty right now but
11514             will need to get implemented when we switch to a per-thread queue
11515           - Implemented SupportsTransparency() method
11516           - Implemented SetWindowTransparency() method
11517           - Added support for setting the opacity value when a window is
11518             reparented (since the opacity needs to be set on the WM frame)
11519         * XplatUIOSX.cs, XplatUIWin32.cs:
11520           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
11521
11522 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
11523
11524         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
11525
11526 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
11527
11528         * FileDialog.cs: Added ToolTip for MWFFileView
11529         * MimeIcon.cs: Rewrote GnomeHandler.
11530           - Get currently used gnome icon theme from
11531             ($HOME)/.gconf/%gconf-tree.xml
11532           - Make use of inherited icon themes
11533           - Support SVG icon themes like Tango via librsvg
11534
11535 2006-01-12  Miguel de Icaza  <miguel@novell.com>
11536
11537         Revert's Jackson's revert which broke 2.0 builds.   Fix both
11538         builds. 
11539         
11540         * Application.cs: Move the use_compatible_text_rendering outside
11541         the NET_2_0 define.  If we ever need to use the
11542         use_compatible_text_rendering on the individual controls they will
11543         access the variable from the common shared code paths.
11544
11545 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
11546
11547         * XplatUI.cs:
11548           - Added more granular debug options
11549           - Added method to print both window text and id
11550           - Switched debug output to use new Window() debug method
11551           - Added IsEnabled() driver method
11552           - Added EnableWindow() driver method
11553         * Form.cs:
11554           - Removed end_modal; no longer needed, new loop handles termination
11555             via 'closing' variable
11556           - If form is modal, setting DialogResult will now initiate loop
11557             termination via 'closing' variable
11558           - Added support for is_enabled/WS_DISABLED to CreateParams
11559           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
11560             does all the work
11561           - Removed code that's now in RunLoop from ShowDialog()
11562           - Added various documented sanity checks to ShowDialog()
11563           - Added handling of WM_DESTROY message; we set 'closing' on getting
11564             the message to indicate the message pump to terminate
11565           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
11566             send by the Application.ExitThread method. (We send the message
11567             to destroy the window after all other events have been
11568             processed through the queue, instead of destroying the handle 
11569             directly)
11570           - Moved code from Close() method to WM_CLOSE handler; added logic
11571             to only send close-related events if the form is not displayed
11572             modal
11573         * Splitter.cs (..ctor): Fixed typo in resource name
11574         * Control.cs:
11575           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
11576             brush now
11577           - set_Cursor: Now only setting calling into XplatUI if the handle for
11578             the control is already created; this avoids implict handle creation
11579             or crashes if it's not created
11580           - set_Enabled: Now setting the enabled state via the new driver method
11581             instead of just tracking it
11582           - CreateParams: Added logic to set WS_DISABLED based on enabled state
11583           - CreateControl: Reordered event firing and method calls to more
11584             closely fire events in the order MS does. Now setting the
11585             enabled state in the driver when creating the control.
11586           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
11587             match MS order
11588         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
11589           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
11590         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
11591         * Hwnd.cs:
11592           - Added tracking of window enabled state (get_Enabled/set_Enabled)
11593           - Added EnabledHwnd property to easily allow a driver to find the
11594             handle of the first enabled window in the parent chain (this is
11595             used by drivers to pass up input events of disabled windows)
11596         * XplatUIDriver.cs: Added IsEnabled() method
11597         * Application.cs:
11598           - Removed crude and obsolete exiting tracking variable
11599           - Removed internal ModalRun(); replaced by RunLoop()
11600           - Implemented private CloseForms() method to allow closing all 
11601             windows owned by a particular (or all) threads
11602           - Exit() now properly closes all windows without forcing the message
11603             pump to quit
11604           - Removed obsolete InternalExit() method
11605           - Changed Run() methods to use new RunLoop() message pump
11606           - Implemented new RunLoop() method for both modal and non-modal forms
11607         * CommonDialog.cs:
11608           - get_CreateParams: Added setting of WS_DISABLED
11609           - Simplified ShowDialog(); now all the work is done in RunLoop(),
11610             invoked via Form.ShowDialog()
11611         * NativeWindow.cs: We don't remove the window from the collection when
11612           the handle is destroyed; there might still be messages for it in the
11613           queue (mainly the resulting WM_DESTROY); instead it will be removed
11614           when Control calls InvalidateHandle in the WM_DESTROY handler
11615         * XplatUIX11.cs:
11616           - CreateWindow: Added logic to handle the WS_DISABLED window style
11617           - EnableWindow: Implemented based on Hwnd.Enabled
11618           - GetMessage: Reset PostQuitState so the method can be called again
11619           - Implemented support for disabled windows (passing messages to the
11620             first enabled parent) in handling all input messages
11621           - Added optimizations for handling Expose events
11622           - Implemeted new driver method IsEnabled()
11623           - Now always resetting paint pending tracking vars when we start paint
11624           - Re-implemented UpdateWindow via just sending a WM_PAINT message
11625         * XplatUIOSX.cs: Added IsEnabled method stub
11626         * XplatUIWin32.cs: Implemented new IsEnabled() method
11627
11628 2006-01-11  Jackson Harper  <jackson@ximian.com>
11629
11630         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
11631         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
11632         variables a little.
11633         * ColorDialog.cs: Clear out the old form before adding the new
11634         panel.  
11635
11636 2006-01-11  Jackson Harper  <jackson@ximian.com>
11637
11638         * X11Dnd.cs: Make sure to add all the text formats when adding
11639         strings to the data object.
11640         * TreeNodeCollection.cs: When adding to a sorted tree we need to
11641         do some redrawing too.  Also change the UpdateNode to an
11642         UpdateBelow so the newly added node gets painted.
11643         
11644 2006-01-11  Miguel de Icaza  <miguel@novell.com>
11645
11646         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
11647         LinkLabel.cs, PropertyGrid.cs: Implement the
11648         UseCompatibleTextRendering property for 2.x
11649
11650         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
11651
11652 2006-01-11  Jackson Harper  <jackson@ximian.com>
11653
11654         * TreeView.cs: Use the property for setting the selected node so
11655         the correct events get raised.
11656         * TreeNode.cs: Update the tree when the fore/back colours of a
11657         node are set.
11658
11659 2006-01-10  Jackson Harper  <jackson@ximian.com>
11660
11661         * TreeView.cs: Allow setting SelectedNode to null.
11662
11663 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
11664
11665         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
11666
11667 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
11668
11669         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
11670
11671 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
11672
11673         * PrintDialog.cs: Added attributes and set default property values.
11674
11675 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
11676
11677         * PrintControllerWithStatusDialog.cs: 
11678         Added PrintControllerWithStatusDialog.
11679
11680 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
11681
11682         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
11683         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
11684
11685 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
11686
11687         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
11688
11689 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
11690
11691         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
11692         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
11693
11694 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
11695
11696         * MimeIcon.cs: Added internal class SVGUtil.
11697
11698 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
11699
11700         * FileDialog.cs: Don't crash if there are two files with the
11701           same name but different locations.
11702
11703 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
11704
11705         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
11706         dates across multiple month grids. Used to not highlight entire 
11707         month, but does now.
11708         
11709 2006-01-06  Jackson Harper  <jackson@ximian.com>
11710
11711         * MonthCalendar.cs: Removed DoEvents call to prevent a running
11712         message loop. Change timer intervals to numbers that seem more
11713         natural.
11714
11715 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
11716
11717         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
11718           object for location info since screen object is now implemented.
11719
11720 2006-01-05  Jackson Harper  <jackson@ximian.com>
11721
11722         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
11723         * AsyncMethodResult.cs: We no longer use a WeakReference for the
11724         AsyncMethodResult, this is because we ALWAYS want the
11725         ManualResetEvent to get set.
11726         * Control.cs: When disposing use an async invoke to call shutdown
11727         code, so that thigns don't block on the finalizer thread.  Also
11728         check if we even have a message loop before trying to send
11729         messages, if we don't then don't bother sending messages.
11730         - No more weak references for async methods
11731         * XplatUIDriver.cs: No more weak references for async methods.
11732
11733 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
11734
11735         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
11736           returns two FontFamily with the same name
11737
11738 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
11739
11740         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
11741           drawing disabled text. Instead using the ColorGrayText color
11742
11743 2006-01-04  Jackson Harper  <jackson@ximian.com>
11744
11745         * TreeNode.cs: redraw the node when its image index is changed.
11746
11747 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
11748
11749         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
11750           time I checked there are no others like it.
11751
11752 2006-01-04  Jackson Harper  <jackson@ximian.com>
11753
11754         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
11755         this gives the behavoir I was looking for.
11756         * Control.cs: Special case Invoking EventHandlers, this matches MS
11757         and fixes part of bug #76326.
11758
11759 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
11760
11761         * ThemeClearlooks.cs, FileDialog.cs:
11762           - Reflect the latest Theme class changes
11763           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
11764             with DateTime
11765             
11766 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
11767
11768         * Theme.cs: Cache UI resource images and resize them if needed
11769
11770 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
11771
11772         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
11773           is called. This fixes the crash in Nexxia when setting the font
11774           attributes in the chat. [However, RTF needs a look-over to make sure
11775           that all SelectionXXX methods handle the special case that selection
11776           is empty and therefore the change must be applied to all text starting
11777           at the cursor/selection start]
11778
11779 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
11780
11781         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
11782           XplatUIOSX.cs: Added SendMessage and PostMessage methods
11783         * X11Keyboard.cs: Switched to new way of calling PostMessage
11784
11785 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
11786
11787         * Theme.cs: Added theme interface for images to allow the theme to
11788           control what images are used for things like FileDialog, MessageBox
11789           icons, etc.
11790         * MessageBox.cs: Now uses the new Theme icon/image interfaces
11791
11792 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
11793
11794         * FileDialog.cs:
11795           - Removed some dead code
11796           - Opening a recently used file does work now
11797           - Small UI enhancements
11798           - Refactoring
11799
11800 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
11801
11802         * FileDialog.cs: Forgot too add __MonoCS__
11803
11804 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
11805
11806         * FileDialog.cs: We are able to read recently used files now let's
11807           go on and write them.
11808
11809 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
11810
11811         * FileDialog.cs: Breathe some life into "last open"/"recently used"
11812           button
11813         * MimeIcon.cs: Do a check for the top level media type also
11814
11815 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
11816
11817         * ThemeClearlooks.cs:
11818           - Added CPDrawStringDisabled
11819           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
11820             some chars if the text doesn't fit into text_rect
11821           - DrawListViewItem: If View = View.LargeIcon center the image;
11822             rewrote the drawing of ListViewItem.Text if View = 
11823             View.LargeIcon
11824
11825 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
11826
11827         * MimeIcon.cs: Use default KDE icon theme if there is no
11828           "48x48" directory for the current icon theme, fixes #77114
11829         * Mime.cs: Disable not working and actually not used code. 
11830         * ThemeWin32Classic.cs:
11831           - Replace "new SolidBrush" in GetControlBackBrush and
11832             GetControlForeBrush with ResPool.GetSolidBrush
11833           - Changed DrawListViewItem from private to protected virtual
11834         * FileDialog.cs:
11835           - Added form.MaximizeBox = true
11836           - Don't throw an exception if there is a broken symbolic link
11837
11838 2005-12-23  Jackson Harper  <jackson@ximian.com>
11839
11840         * TabControl.cs: Give the panels focus, keyboard navigation is
11841         fixed so this works correctly now.
11842         - We need these key events also.
11843         * ToolBar.cs: Remove some of the poor mans double buffering.
11844         
11845 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
11846
11847         * ComboBox.cs: The internal TextBox now returns the focus.
11848
11849 2005-12-23  Jackson Harper  <jackson@ximian.com>
11850
11851         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
11852
11853 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
11854
11855         * Control.cs: Removed debug code
11856         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
11857           implicit children
11858
11859 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
11860
11861         * Control.cs: When creating the control, update the Z-order after
11862           all it's children are created, too. (Fixes nexxia not showing
11863           picturebox bug)
11864
11865 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
11866
11867         * Control.cs: Do not update the anchoring distances if layout is
11868           suspended, instead do it once layout is resumed
11869
11870 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
11871
11872         * Control.cs: 
11873           - After many hours of debugging, for both Jackson and
11874             myself, it turns out that it helps to set the parent of a control
11875             if you want to actually see it onscreen. In the spirit of that
11876             discovery, we're now setting the parent of the control and
11877             it's children when the control's handle is created. This fix
11878             will make Lutz Roeder's Reflector run happily. 
11879           - now just creating the handle instead of the whole control when
11880             getting a graphics context for the control.
11881
11882 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
11883
11884         * ScrollableControl.cs: When calculating the canvas, don't consider
11885           the scrollbar widths. Instead, predict if horizontal scrollbar
11886           will affect canvas when deciding on vertical display and vice versa.
11887
11888 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
11889
11890         * RichTextBox.cs: Set default RTF font for documents that don't
11891           have a font table (Fixes #77076)
11892
11893 2005-12-22  Jackson Harper  <jackson@ximian.com>
11894
11895         * TextBoxBase.cs: It's difficult to do, but you can have an empty
11896         clipboard. This prevents a NullRef in that case.
11897         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
11898         clipboard. PRIMARY is for the currently selected text only. (We
11899         should implement PRIMARY at some point.
11900
11901 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
11902
11903         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
11904           a Unicode function with a structure that was defined in Ansi way.
11905           This fixes #76942.
11906
11907 2005-12-21  Jackson Harper  <jackson@ximian.com>
11908
11909         * StatusBar.cs: Statusbar handles its fore/back colours on it's
11910         on. Because thats how it rolls. (and this avoids it using ambient
11911         colours).
11912         * ThemeWin32Classic.cs: Use the proper back color for filling.
11913         * Menu.cs: Use the system menu bar color for drawing menu
11914         bars. Using the window back color will bring ambient colours into
11915         the picture.
11916
11917 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
11918
11919         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
11920           Bitmaps were created and not disposed.
11921
11922 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
11923
11924         * Control.cs (CreateControl): Don't do anything if the control is
11925           already created, otherwise we'd fire the OnCreated event more than
11926           once
11927
11928 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
11929
11930         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
11931           will always match. Instead return -1. Fixes #76464.
11932
11933 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
11934
11935         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
11936           neither the beginning nor the end of the line (Fixes bug #76479)
11937
11938 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
11939
11940         * Control.cs:
11941           - ControlNativeWindow.ControlFromHandle(): Now handling situation
11942             where handle is invalid
11943           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
11944             instead of slower linear search
11945         * NativeWindow.cs: Don't remove the window from the hashtable until
11946           after the driver has destroyed it (since the driver might use
11947           Control.FromHandle to lookup the control object
11948         * Hwnd.cs: Added DestroyPending property to track if a window is 
11949           already destroyed as far as the driver is concerned and only hasn't
11950           yet notified the control
11951         * XplatUIX11.cs:
11952           - Activate(): Check if the window is still valid before using the 
11953             handle
11954           - Implemented DestroyChildWindow() method to mark child windows as
11955             destroyed when a window is destroyed. This prevents situations 
11956             where we might call an X method based on queued events for a
11957             window that already has been destroyed but we haven't yet pulled
11958             the destroy method from the queue.
11959           - Added a call to the new DestroyChildWindow() method to the drivers
11960             DestroyWindow code. Also now marking the destroyed window itself
11961             as pending
11962
11963 2005-12-20  Jackson Harper  <jackson@ximian.com>
11964
11965         * StatusBar.cs:
11966         * StatusBarPanel.cs: Don't calculate panel sizes on draw
11967         anymore. Just do them when needed, also track the rects of panels
11968         so that we can optimize refreshing more in the future.
11969
11970 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
11971
11972         * ColorDialog.cs: Fixed focus drawing in small color controls
11973
11974 2005-12-19  Jackson Harper  <jackson@ximian.com>
11975
11976         * InternalWindowManager.cs:
11977         * MdiWindowManager.cs: Cleanup some coordinate system changes so
11978         moving windows works properly.
11979
11980 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
11981
11982         * Control.cs: 
11983           - Removed call to InitLayout() from SetBoundsCore(); doc says
11984             it's only called when a control is added to a container
11985           - Split InitLayout logic, moved to separate UpdateDistances() method
11986             since we need to perform those calculations more often than just
11987             when adding the control to a container. (Needed to fix #77022)
11988           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
11989           - Reduced the OnBindingContextChanged events count, don't send them
11990             unless the control is created, we still aren't totally matching
11991             MS, but I can't quite figure out some of their rules
11992
11993 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
11994
11995         * ThemeClearlooks.cs: Corrected distance between ProgressBar
11996           stripes
11997
11998 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
11999
12000         * ThemeClearlooks.cs:
12001           - Updated ProgressBar drawing
12002           - Corrected drawing of ScrollBars and scroll buttons
12003           - Some temporary fixes for minor pixel artefacts
12004
12005 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
12006
12007         * Control.cs:
12008           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
12009             cause events to be sent in the same order as MS does.
12010           - Added ChangeParent() method to trigger various OnXXXChanged events
12011             that need to be fired when a parent changes (This is a reworking
12012             of the patch from r54254, with the X11 errors fixed)
12013           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
12014             since on MS we get OnLayoutChanged events when calling Clear()
12015           - Changed Enabled property to consider parent state as well, if a
12016             parent is not enabled, the control will not be either
12017           - Changed Parent property to simply call Controls.Add() since that
12018             now does all the work required, this way we avoid code duplication
12019           - Threw in a few OnBindingsContextChanged calls to try and match
12020             when MS sends them. We seem to send a few too many, though.
12021           - Added call to CreateControl when adding the control to a parent.
12022             We were never calling CreateControl. Still needs some work, in
12023             some places we treat HandleCreated and ControlCreated as equal, 
12024             which is wrong
12025           - Removed obsolete commented out code from UpdateZOrder()
12026
12027 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
12028
12029         * ThemeClearlooks.cs: Updated TrackBar drawing.
12030
12031 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
12032
12033         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
12034
12035 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
12036
12037         * FileDialog.cs: Add the Help button and the open readonly
12038           checkbox only if needed
12039
12040 2005-12-16  Jackson Harper  <jackson@ximian.com>
12041
12042         * Control.cs: Make sure we have an active menu before trying to
12043         process commands on it. Prevents menu-less forms from crashing
12044         when Alt is pressed.
12045         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
12046         Dieter Bremes.
12047         * RichTextBox.cs: Expand statement to help out gmcs and fix the
12048         2.0 build.
12049
12050 2005-12-16  Jackson Harper  <jackson@ximian.com>
12051
12052         * InternalWindowManager.cs: Don't translate tool windows screen
12053         coordinates. This fixes windows 'bouncing' around when being moved.
12054
12055 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
12056
12057         * TextBoxBase.cs:
12058           - MaxLength now treats 2^31-1 equal to unlimited length (this is
12059             not quite MS compatible, MS uses that number only for single line
12060             and 2^32-1 for multi-line, but I figure it won't hurt keeping
12061             the limit at 2GB)
12062           - Now enforcing the MaxLength limit when entering characters
12063           - Added argument to internal Paste() method to track if it's called
12064             from programatically or via keyboard, since keyboard driven pastes
12065             need to enforce max-length
12066           - Added logic to Paste to only paste as many chars as MaxLength 
12067             allows
12068         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
12069         * TextControl.cs:
12070           - Added Length property to return number of characters in document
12071           - Added private CharCount property which only tracks actual chars
12072             in the document (no linefeeds) and fires event when CharCount
12073             changes
12074           - Added tracking of character count to all methods that alter it
12075           - Added LengthChanged event to allow applications to subscribe
12076             to any changes to the document
12077
12078 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
12079
12080         * TextBox.cs: 
12081           - Removed local password_char field (moved to TextBoxBase)
12082           - Now setting the document's password var when password is
12083             set
12084         * TextBoxBase.cs:
12085           - Added password_char field (needed here so MultiLine can
12086             access it)
12087           - Added logic to MultiLine property setter to set the document's
12088             variable when password display is allowed
12089           - Removed debug code and made some debug code conditional
12090         * TextControl.cs:
12091           - Added RecalculatePasswordLine() method to handle special password
12092             char only lines
12093           - Added PasswordChar property, also added related tracking vars
12094           - Draw() method now uses local text var for grabbing text to draw,
12095             this var is set to line.text unless we're doing password display,
12096             then it is set to the pre-generated all-password-chars line
12097           - Added calling RecalculatePasswordLine() method for password lines
12098
12099 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
12100
12101         * Hwnd.cs: 
12102           - Added Reparented property to allow tracking of Window Manager
12103             reparenting actions (which affect X/Y calculations of toplevel 
12104             windows)
12105           - Made ToString() print window handles in hex
12106         * XplatUIX11.cs:
12107           - AddConfigureNotify(): Now uses reparented state off Hwnd to
12108             determine if X/Y needs offsetting
12109           - AddConfigureNotify(): Fixed offset calculations
12110           - Now adds ReparentNotify messages into the queue
12111           - Now processes ReparentNotify messages and causes a 
12112             WM_WINDOWPOSCHANGED message to be sent upstream if a window
12113             is reparented (as most likely it's X/Y coordinates are changed
12114             due to that)
12115
12116 2005-12-14  Jackson Harper  <jackson@ximian.com>
12117
12118         * XplatUIX11.cs: Tool windows still need to respek focus.
12119
12120 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
12121
12122         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
12123           have a working release
12124
12125 2005-12-13  Jackson Harper  <jackson@ximian.com>
12126
12127         * Form.cs: Update styles after setting the border style regardless
12128         of whether or not the window is using a window manager.
12129
12130 2005-12-13  Jackson Harper  <jackson@ximian.com>
12131
12132         * Form.cs: We now hook into an internal window manager instead of just an
12133         MDI subsystem, this is so we can have properly behaving tool windows.
12134         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
12135         * InternalWindowManager.cs: New internal class that acts as a
12136         window manager for tool windows and as a base for mdi windows.
12137         * MdiWindowManager.cs: New class that acts as a window manager for
12138         mdi windows.
12139
12140 2005-12-12  Jackson Harper  <jackson@ximian.com>
12141
12142         * Control.cs: Updates so we match behavoir for for implicit
12143         controls. Fixes explosions in MDI.
12144
12145 2005-12-12  Jackson Harper  <jackson@ximian.com>
12146
12147         * Control.cs: Implement Invalidate (Region).
12148
12149 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
12150
12151         * Control.cs: 
12152           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
12153             the same events as MS does. MS fires events for each property 
12154             except, for unknown reasons, Cursor, when the control is reparented. 
12155             I can't seem to totally match add/remove since MS also fires some 
12156             VisibleChanged events, which makes no sense. Consolidated the
12157             parenting code into a separate method so it can be called from
12158             both Add and Remove. set_Parent no longer needs any special logic
12159             as it calls the parent's add method which implicitly fires
12160             all events
12161           - Removed some obsolete code and debug output
12162           - Enabled state is inherited from parents, if this is enabled
12163
12164 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
12165
12166         * Form.cs: Removed commented out code
12167
12168 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
12169
12170         * Control.cs:
12171           - Added internal version of Invoke, with additional argument 
12172             indicating if we're calling it from a Dispose() handler. That
12173             way we can avoid BeginInvoke throwing an exception if we're
12174             calling for an already destroyed window.
12175           - Added a dispose argument to BeginInvokeInternal, and made the
12176             check if a valid window handle chain exists conditional on
12177             it not being a dispose call
12178           - Removed code in DestroyHandle to destroy our children. Since we
12179             now handle the WM_DESTROY message we will catch all our children
12180             being destroyed.
12181           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
12182         * Form.cs:
12183           - Added a field to track the application context of the form.
12184           - No need to set closing variable as response to WM_CLOSE, instead
12185             we destroy the window. We also call PostQuitMessage if the form
12186             has an application context (which makes it the main app form,
12187             which, when closed terminates the app)
12188         * XplatUI.cs:
12189           - Dropped Exit() method, it's naming was confusing
12190           - Added PostQuitMessage() which causes GetMessage to return false
12191             once the message queue is empty
12192         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
12193           PostQuitMessage()
12194         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
12195           no longer a valid XplatUI method, but left it in since it's used
12196           internally. Added empty PostQuitMessage() method.
12197         * MenuAPI.cs: Replaced call to Exit() with call to
12198           PostQuitMessage, even though this is probably no longer needed.
12199         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
12200         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
12201         * Application.cs:
12202           - Replaced call to XplatUI.Exit() with PostQuitMessage()
12203           - Removed old debug code that would call XplatUI for exception
12204             display, enabled standard exception handling (Still not enabled
12205             though, until NativeWindow's ExternalExceptionHandler define
12206             is removed
12207         * NativeWindow.cs:
12208           - Added internal method to allow control to update NativeWindow
12209             after a window has been destroyed
12210           - Added handling of already destroyed windows when calling i
12211             DestroyWindow
12212           - Added removal of handle from list on ReleaseHandle
12213         * XplatUIX11.cs:
12214           - Dropped GetMessageResult var and related code
12215           - Added PostQuitState to field to track if PostQuitMessage has been
12216             called
12217           - Dropped Exit() method
12218           - Added PostQuitMessage() method
12219           - GetMessage now will return false if PostQuitState is set and no
12220             more messages are in the queue.
12221           - Expose handler will no longer generate WM_PAINT messages if we are
12222             in PostQuitState since it's very likely any windows have already
12223             been destroyed, and since Hwnd won't get updated until we have
12224             processed the DestroyNotify we'd be causing X errors.
12225         
12226 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
12227
12228         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
12229           Thanks to Mike for pointing out the err of my ways.
12230
12231 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
12232
12233         * Control.cs(PreProcessMessage): Moved menu handling back, but
12234           after all other key handling, to match MS (who handles Menu in
12235           DefWndProc)
12236         * Menu.cs (WndProc): Removed my brainfart
12237
12238 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
12239
12240         * Control.cs(PreProcessMessage): Removed special menu handling 
12241         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
12242
12243 2005-12-07  Mike Kestner  <mkestner@novell.com>
12244
12245         * Control.cs : special case SYSKEYUP so that we can adjust keynav
12246         state according in tracker.
12247         * Menu.cs : promote tracker field to base class and provide a tracker
12248         lookup capability.  Add/Remove shortcuts dynamically if the top menu
12249         has a tracker. Unparent items that are removed from the collection.
12250         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
12251         * Theme*.cs: add always_show_hotkeys field to support configurability
12252         of mnemonic display.  win32 doesn't show mnemonics until Alt is
12253         pressed.
12254
12255 2005-12-07  Jackson Harper  <jackson@ximian.com>
12256
12257         * MdiChildContext.cs: Use Control.ResetCursor.
12258         * Control.cs: ResetCursor needs to set the property so that the
12259         correct XplatUI call gets made.
12260
12261 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
12262
12263         * Control.cs: More fixes to make our key events match MS. We
12264           were not setting the modifier state on KeyData, and we were
12265           not generating any events when Alt was pressed with a key
12266           since handling of WM_SYSxxx was missing for the OnKey methods.
12267
12268 2005-12-07  Jackson Harper  <jackson@ximian.com>
12269
12270         * MdiChildContext.cs: reenable the sizing code.
12271         - When the mouse leaves a window reset its cursor.
12272
12273 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
12274
12275         * ThemeClearlooks.cs: Reflect latest Hwnd changes
12276
12277 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
12278
12279         * Hwnd.cs: Now using the theme 3d bordersize to calculate
12280           widths of Fixed3D borders
12281
12282 2005-12-07  Jackson Harper  <jackson@ximian.com>
12283
12284         * MdiClient.cs: Fix warnings. Earn Mike's love.
12285
12286 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
12287
12288         * ThemeClearlooks.cs:
12289           - Adjusted mouse over button color
12290           - Added first parts of CheckBox drawing
12291           - Added correct color for selected text background
12292           - Fixed ComboBox drawing
12293           - Added CPDrawBorder3D and CPDrawBorder
12294
12295 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
12296
12297         * XplatUIX11.cs: Added call to XBell for AudibleAlert
12298
12299 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
12300
12301         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
12302           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
12303           alert users via sound. We could add an enum arg with different
12304           types of alerts in the future
12305
12306 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
12307
12308         * Control.cs: Fix behaviour problems pointed out by Mike
12309
12310 2005-12-05  Mike Kestner  <mkestner@novell.com>
12311
12312         * StatusBarPanel.cs: add Invalidate method and hook it into all the
12313         prop setters.  Calls parent.Refresh for now, but could be maybe be
12314         optimized with an internal method on StatusBar at some point.
12315         [Fixes #76513]
12316
12317 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
12318
12319         * RichTextBox.cs: Implemented get_SelectionColor
12320
12321 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
12322
12323         * ThemeClearlooks.cs:
12324           - Removed dead code
12325           - Draw black button border only if button is Form.AcceptButton
12326           - Draw correct button color for pressed RadioButton if the mouse 
12327             has entered the button
12328           - Updated ProgressBar drawing!
12329           - Updated CPDrawSizeGrip drawing
12330           - Updated StatusBarPanel drawing
12331
12332 2005-12-05  Mike Kestner  <mkestner@novell.com>
12333
12334         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
12335         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
12336
12337 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
12338
12339         * ThemeClearlooks.cs: Initial check-in, activate with
12340           export MONO_THEME=clearlooks
12341         * ThemeEngine.cs: Added ThemeClearlooks
12342
12343 2005-12-03  Mike Kestner  <mkestner@novell.com>
12344
12345         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
12346         [Fixes #76897]
12347
12348 2005-12-02  Jackson Harper  <jackson@ximian.com>
12349
12350         * Form.cs: If the child form has no menu the default main menu is
12351         used as the active menu.
12352
12353 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
12354
12355         * ListBox.cs: Check if any items exist before trying to resolve 
12356           coordinates into items
12357
12358 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
12359
12360         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
12361           as the second color for the background hatch
12362
12363 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
12364
12365         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
12366         * RichTextBox.cs: FormatText position arguments are 1-based, now making
12367           sure that what we pass to FormatText is always 1-based. Fixes #76885
12368
12369 2005-11-29  Miguel de Icaza  <miguel@novell.com>
12370
12371         * NumericUpDown.cs (EndInit): When we are done initializing,
12372         reflect any updates on the UI.
12373
12374 2005-12-02  Jackson Harper  <jackson@ximian.com>
12375
12376         * ImplicitHScrollBar.cs:
12377         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
12378         their container controls.
12379         * TreeView.cs: Use the new implicit scrollbars.
12380
12381 2005-12-02  Jackson Harper  <jackson@ximian.com>
12382
12383         * TreeView.cs: Make top_node internal so the TreeNodeCollections
12384         can play with it.
12385         * TreeNodeCollection.cs: If we remove the topnode we need to
12386         update topnode to the next node in line.
12387         - When clearing nodes go through the same process as removing
12388         them, so they get depareneted and checked if they are top node.
12389
12390 2005-12-01  Jackson Harper  <jackson@ximian.com>
12391
12392         * TreeView.cs: When imagelists are used the image area is
12393         selectable as well as the text.
12394         - If there are no selected nodes select the first one.
12395         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
12396         so don't do it more then we need to.
12397
12398 2005-12-01  Jackson Harper  <jackson@ximian.com>
12399
12400         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
12401         that arrows can be scaled.
12402
12403 2005-12-01  Jackson Harper  <jackson@ximian.com>
12404
12405         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
12406         fail. Patch by Dieter Bremes
12407
12408 2005-11-30  Jackson Harper  <jackson@ximian.com>
12409
12410         * Form.cs: Property is 2.0 only
12411         * PrintDialog.cs: Signature fix.
12412
12413 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
12414
12415         * TextControl.cs: 
12416           - No longer artificially moves text 2 pixels down (now that we have
12417             borders this is no longer needed)
12418           - Added calcs for left, hanging and right indent
12419
12420 2005-11-23  Mike Kestner  <mkestner@novell.com>
12421
12422         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
12423
12424 2005-11-30  Jackson Harper  <jackson@ximian.com>
12425
12426         * MdiChildContext.cs: Set the cloned menus forms, as these don't
12427         get cloned as part of CloneMenu ().
12428         * Menu.cs: Make sure the parent of the items get set correctly
12429         when they are added.  And the owners are notified of the changes.
12430         * Form.cs: Create an ActiveMenu property, so that when MDI is used
12431         we can change the menu being displayed/handled by the form without
12432         changing the menu assosciated with the form.
12433         - Don't let Mdi children draw/handle menus.
12434         
12435 2005-11-30  Jackson Harper  <jackson@ximian.com>
12436
12437         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
12438         a MenuChanged event. Just to make the API a little more
12439         consistent.
12440         * MainMenu.cs:
12441         * MenuItem.cs: Use the new OnMenuChanged
12442         * MdiChildContext.cs: Handle menu merging.
12443         * Form.cs: Implement MergedMenu.
12444         
12445 2005-11-30  Jackson Harper  <jackson@ximian.com>
12446
12447         * Menu.cs: We were misusing Add. Add goes behind the specified
12448         index according to the docs, and does not replace the specified
12449         index. So I added an Insert method.
12450
12451 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
12452
12453         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
12454           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
12455           is for Jackson
12456         * RichTextBox.cs: Added calls to base for DnD events
12457
12458 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
12459
12460         * TextControl.cs:
12461           - Fixed drag-selection related crash; style fixes
12462           - Implemented undo class
12463             o Implemented method to capture document state for specified
12464               range in document tree
12465             o Implemented method to restore captured document state
12466             o Implemented cursor tracking
12467             o Implemented basic undo stack
12468           - Added undo cursor tracking to methods altering cursor location
12469           - Added undo tracking to selection deletion (still missing
12470             other text-altering hookups)
12471         * RichTextBox.cs:
12472           - Added SelectionLength property
12473           - Implemented CanPaste()
12474           - Implemented Paste()
12475           - Added missing protected methods
12476           - Fixed RTF->Document conversion; now uses font index 0 and color 
12477             index 0 as the default font for the parsed text
12478           - Fixed RTF<->Document font size translation
12479           - Fixed RTF generation, now properly handles cross-tag boundaries
12480             for single line selection
12481           - No longer always appends blank line to generated RTF
12482           - Removed TODOs
12483           - Added missing attributes
12484           - Hooked up undo-related methods
12485         * TextBoxBase.cs:
12486           - Implemented Copy()
12487           - Implemented Paste()
12488           - Implemented Cut()
12489           - Fixed caret mis-behaviour on backspace across line-boundaries
12490
12491 2005-11-29  Jackson Harper  <jackson@ximian.com>
12492
12493         * MdiClient.cs: Add a method for activating mdi children. Very
12494         basic right now. I imagine someday it might need more girth.
12495         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
12496         children windows names are added to the menu item.
12497         * ThemeWin32Classic.cs: Draw the arrow if the item is an
12498         mdilist. This happens regardless of whether or not there are any
12499         mdi windows to see in the list, and according to my tests happens
12500         before the items are even added. Also happens if there isn't even
12501         an mdi client to get windows from.
12502
12503 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
12504
12505         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
12506         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
12507
12508 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
12509
12510         * DataGridTableStyle.cs:
12511           - Create always the styles for the missing columns even if they are
12512             provided by the user (not default table style)
12513         * DataGrid.cs:
12514           - Fixes bug 76770
12515           - Fixes SetDataBinding (always re-attach source)
12516           - Fixes SetNewDataSource (only clear styles if they are not for 
12517             this source)
12518          -  Expands OnTableStylesCollectionChanged to handle style refresh 
12519             and remove properly
12520
12521 2005-11-29  Jackson Harper  <jackson@ximian.com>
12522
12523         * FileDialog.cs: Implement missing bits, remove some dead
12524         code.
12525         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
12526         creation of the panel so that the options set on the dialog are
12527         seen when the panel is created.
12528         * TreeView.cs: raise a click when items are clicked.
12529         
12530 2005-11-29  Jackson Harper  <jackson@ximian.com>
12531
12532         * MdiClient.cs: Pass some signature methods through to base.
12533
12534 2005-11-28  Jackson Harper  <jackson@ximian.com>
12535
12536         * ListView.cs: Raise the click event when items are clicked.
12537
12538 2005-11-28  Jackson Harper  <jackson@ximian.com>
12539
12540         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
12541         a nullref.
12542
12543 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
12544
12545         * ThemeNice.cs: - Removed 1 pixel bitmaps
12546           - Use SmoothingMode.AntiAlias where it makes sense
12547             (ScrollButton arrow for example)
12548           - Enhanced Button focus drawing
12549           - Fixed ComboBox drawing (no artefacts anymore, focus
12550             rectangle is back again, reduced size of ComboButton, etc.)
12551           - Fixed RadioButton focus drawing for Appearence.Button
12552           - Slight ScrollButton redesign
12553           - Some LinearGradientBrush size fixes
12554           - GroupBoxes have now rounded edges
12555           - Fixed StatusBar drawing
12556
12557 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
12558
12559         * ThemeNice.cs: - Remove dead code
12560           - use correct background colors for menus, etc.
12561           - Fake pixel drawing with 1 pixel bitmaps
12562
12563 2005-11-24  Jackson Harper  <jackson@ximian.com>
12564
12565         * MdiClient.cs: Size the scrollbars when resizing the window.
12566         - Resize the maximized windows when the client is resized
12567         * Form.cs: Make the child context available
12568         
12569 2005-11-23  Jackson Harper  <jackson@ximian.com>
12570
12571         * MdiChildContext.cs: Don't size windows if they are maximized.
12572
12573 2005-11-23  Mike Kestner  <mkestner@novell.com>
12574
12575         * ContextMenu.cs: use MenuTracker.
12576         * Control.cs: remove menu handle usage.
12577         * Form.cs: remove menu handle usage.
12578         * Hwnd.cs: remove menu handle usage.
12579         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
12580         motion and clicks to the new Tracker handlers.
12581         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
12582         and handle usage.
12583         * MenuAPI.cs: refactored to combine popup and menubar event handling.
12584         Killed the MENU and MENUITEM data types and associated collections
12585         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
12586         MenuTracker class that exposes the leftovers from the old MenuAPI
12587         static methods. Restructured Capture handling so that only one grab is
12588         done for the entire menu hierarchy instead of handing off grabs to
12589         submenus. Tracker now has an invisible control to Capture when active.
12590         * MenuItem.cs: add sizing accessors, kill Create
12591         and handle usage.
12592         * Theme.cs: remove menu handle and MENU(ITEM) usage.
12593         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
12594         MENU(ITEM). remove menu handle usage, use Menu directly.
12595         * XplatUIDriver.cs: remove menu handle usage.
12596         * XplatUIOSX.cs: remove menu handle usage.
12597         * XplatUIWin32.cs: remove menu handle usage.
12598         * XplatUIX11.cs: remove menu handle usage.
12599
12600 2005-11-22  Jackson Harper  <jackson@ximian.com>
12601
12602         * Hwnd.cs: Don't compute the menu size for
12603         DefaultClientRectangle.
12604         - Reenable menu sizes being computed for GetClienRectangle.
12605         * Form.cs: Remove comment of trechery
12606         
12607 2005-11-22  Jackson Harper  <jackson@ximian.com>
12608
12609         * Hwnd.cs: The adjustments for the menu bar are made when it is
12610         attached to the form.
12611
12612 2005-11-19  Jackson Harper  <jackson@ximian.com>
12613
12614         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
12615         (just like on windows).
12616
12617 2005-11-19  Jackson Harper  <jackson@ximian.com>
12618
12619         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
12620         use real buttons anymore because they are in non client area. The
12621         one TODO here is that I need to somehow invalidate a section of
12622         the non client area.
12623
12624 2005-11-18  Jackson Harper  <jackson@ximian.com>
12625
12626         * Control.cs: Put the enum check back in now that MDI doesnt have
12627         to use this to set border styles.
12628         * Form.cs: Only set mdi child windows borders if the handle has
12629         been created.
12630         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
12631         this directly on to the driver.
12632         - Get the move start position before adjusting for the titlebar
12633         height, this fixes the windows "skipping" when they are first
12634         moved.
12635
12636 2005-11-18  Jackson Harper  <jackson@ximian.com>
12637
12638         * XplatUIX11.cs: Just compute the mdi borders separately as they
12639         don't totally match up with normal form borders.
12640
12641 2005-11-18  Jackson Harper  <jackson@ximian.com>
12642
12643         * Control.cs: Set WS_ styles for borders, so that the driver does
12644         not have to retrieve the control instance to figure out what kind
12645         of borders it should have.
12646         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
12647         driver can know its an mdi child easily.
12648         * XplatUIX11.cs: Get the border styles and whether the window is
12649         MDI from the Styles and ExStyles params instead of having to get a
12650         control. This prevents a chicken and egg problem.       
12651
12652 2005-11-18  Jackson Harper  <jackson@ximian.com>
12653
12654         * MdiClient.cs: Fix typo so scrollbars show up correctly.
12655
12656 2005-11-18  Jackson Harper  <jackson@ximian.com>
12657
12658         * MdiClient.cs: Calculate when to add and remove scrollbars
12659         correctly.
12660         * MdiChildContext.cs: Adjust the y position to take the titlebar
12661         into account.
12662         - No height for FormBorderStyle.None
12663
12664 2005-11-18  Jackson Harper  <jackson@ximian.com>
12665
12666         * Control.cs: Allow non enum values to be used for
12667         InternalBorderStyle.  MDI does this to set a special border style.
12668         - New utility methods for converting points to/from client coords
12669         - Add the newly created control to the Controls collection before
12670         updating its style. This way UpdateStyle can walk the control
12671         heirarchy to find the control if needed.
12672         so I don't need to create a new Point object all the time.
12673         * Form.cs: Let MDI windows handle their border styles.
12674         - Set styles on MDI windows so the correct title style is derived.
12675         * MdiChildContext.cs: Move all the painting and window handling
12676         into the non client area.
12677         - Use correct sizing and put correct buttons on frames based on
12678         the FormBorderStyle.
12679         - Notify the mdi client about scrolling
12680         - Need to handle the buttons ourselves now, because they are all
12681         in non client areas and we can't add controls there.
12682         * MdiClient.cs: Halfway to scrolling, this implementation is
12683         somewhat broken though, we need to check to make sure other
12684         windows aren't causing scrolling before removing the bars. Also
12685         the bars need to be drawn on top, maybe I can switch implicit
12686         controls to be on top.
12687         * Hwnd.cs: caption_height and tool_caption_height are now
12688         properties of an hwnd, this way they can be set by the driver
12689         based on the type of window they are.  In X11 the window manager
12690         handles the decorations so caption_height is zero unless its an
12691         MDI window.
12692         - Add 3 pixel borders for MDI windows (0xFFFF).
12693         - Get rid of some code duplication, have DefaultClientRectanle
12694         just call GetClientRectangle.
12695         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
12696         Hwnd now.
12697         - Set border styles differently for mdi windows.
12698         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
12699         Hwnd now.
12700         
12701 2005-11-15  Mike Kestner  <mkestner@novell.com>
12702
12703         * Menu.cs: when adding an item to the collection, if item is already 
12704         parented, remove it from the parent.
12705
12706 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
12707
12708         * X11DesktopColors.cs: Added KDE support
12709
12710 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
12711
12712         * XplatUIWin32.cs: 
12713           - Clipboard methods now can translate Rtf format
12714           - No longer removes clipboard contents whenever a new format is added
12715             to allow placing multiple formats on the clipboard
12716         * Clipboard.cs: Clipboard now supports getting a IDataObject and
12717           will place all formats contained in it onto the clipboard. Also
12718           now cleans the clipboard before placing a new object onto it
12719         * RichTextBox.cs:
12720           - Implemented set_Rtf
12721           - Implemented set_SelectedRtf
12722           - Created InsertRTFFromStream() method to allow single code base
12723             for all properties and methods that insert RTF into document
12724           - Removed debug output
12725         * TextControl.cs:
12726           - Fixed Delete(int) to fix up line numbers
12727           - Fixed ReplaceSelection to combine start and end line
12728           - Fixed serious DeleteChars bug that would leave the document tree
12729             broken
12730           - Improved DumpTree with several logic checks to detect broken
12731             document trees
12732           - Removed debug lines
12733           - Fixed Caret.WordForward/WordBack moving code, now always also 
12734             updates caret.tag (fixes crash when word-selecting across tag
12735             boundaries via keyboard)
12736           - Added Insert() method for inserting multiline text into documents
12737           - Fixed DeleteChars() calculation errors that would cause a broken
12738             tag chain with multiple tag lines
12739           - DeleteChars() no longer crashes on multi-tag lines if not all tags
12740           - Split() no longer moves caret if split is at caret location
12741           - ReplaceSelection() now updates the cursor and re-displays it
12742           - ReplaceSelection() now uses new Insert() method to avoid code
12743             duplication
12744           - FormatText() can now handle formatting partial lines
12745         * TextBoxBase.cs:
12746           - Append now uses new TextControl.Insert() method (this avoids 
12747             duplicate code)
12748           - Implemented Ctrl-X (Cut) (
12749           - Implemented Ctrl-C (Copy)
12750           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
12751             regeneration when pasting text; roundtripping Copy&Paste within
12752             edit control still fails due to some calculation bugs in GenerateRTF)
12753           - The Delete key will now remove the current selection if it is visible
12754         * TextBox.cs: Removed debug lines
12755         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
12756           driver to be initialized and can't therefore be done via a static ctor)
12757
12758 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
12759
12760         * TextControl.cs: Added backend code for finding char arrays and strings
12761         * TextBoxBase.cs:
12762           - Added mouse wheel scroll support
12763           - Added support for VScroll and HScroll events
12764         * RichTextBox.cs:
12765           - Implemented all seven Find() variants
12766           - Implemented GetCharFromPosition()
12767           - Implemented GetCharIndexFromPosition()
12768           - Implemented GetLineFromIndex()
12769           - Implemented GetPositionFromCharIndex();
12770           - Implemented SaveFile for PlainText and UnicodeText
12771           - Fixed set_Font, now setting a new font applies that font to
12772             the whole document
12773           - Implemented generic Document to RTF converter
12774           - Implemented SaveFile for RichText format (still missing unicode
12775             conversion for non-ansi chars)
12776           - Implemented get_Rtf
12777           - Implemented get_SelectedRtf
12778
12779 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
12780
12781         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
12782           to allow any captures to be released before triggering OnClick. This
12783           way a click handler may capture the mouse without interference.
12784         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
12785           This way we send them even though X may not allow a grab (if the window
12786           isn't visible, for example)
12787
12788 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
12789
12790         * DataGridViewRowEventArgs.cs: DataGridView implementation
12791         * DataGridViewElement.cs: DataGridView implementation
12792         * DataGridViewComboBoxCell.cs: DataGridView implementation
12793         * DataGridViewDataErrorContexts.cs: DataGridView implementation
12794         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
12795         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
12796         * ImageLayout.cs: DataGridView implementation
12797         * DataGridViewComboBoxColumn.cs: DataGridView implementation
12798         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
12799         * DataGridViewSelectionMode.cs: DataGridView implementation
12800         * IDataGridViewEditingControl.cs: DataGridView implementation
12801         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
12802         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
12803         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
12804         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
12805         * DataGridViewColumnSortMode.cs: DataGridView implementation
12806         * DataGridView.cs: DataGridView implementation
12807         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
12808         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
12809         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
12810         * Padding.cs: DataGridView implementation
12811         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
12812         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
12813         * DataGridViewRowEventHandler.cs: DataGridView implementation
12814         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
12815         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
12816         * DataGridViewButtonCell.cs: DataGridView implementation
12817         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
12818         * DataGridViewEditMode.cs: DataGridView implementation
12819         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
12820         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
12821         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
12822         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
12823         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
12824         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
12825         * DataGridViewCellEventHandler.cs: DataGridView implementation
12826         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
12827         * DataGridViewCellStyleConverter.cs: DataGridView implementation
12828         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
12829         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
12830         * DataGridViewColumnEventArgs.cs: DataGridView implementation
12831         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
12832         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
12833         * QuestionEventArgs.cs: DataGridView implementation
12834         * IDataGridViewEditingCell.cs: DataGridView implementation
12835         * DataGridViewTriState.cs: DataGridView implementation
12836         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
12837         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
12838         * DataGridViewColumnCollection.cs: DataGridView implementation
12839         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
12840         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
12841         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
12842         * DataGridViewColumn.cs: DataGridView implementation
12843         * DataGridViewCellBorderStyle.cs: DataGridView implementation
12844         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
12845         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
12846         * DataGridViewRow.cs: DataGridView implementation
12847         * DataGridViewImageCellLayout.cs: DataGridView implementation
12848         * DataGridViewImageCell.cs: DataGridView implementation
12849         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
12850         * DataGridViewCheckBoxCell.cs: DataGridView implementation
12851         * DataGridViewHeaderCell.cs: DataGridView implementation
12852         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
12853         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
12854         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
12855         * DataGridViewTextBoxColumn.cs: DataGridView implementation
12856         * QuestionEventHandler.cs: DataGridView implementation
12857         * DataGridViewCellStyleScopes.cs: DataGridView implementation
12858         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
12859         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
12860         * DataGridViewCell.cs: DataGridView implementation
12861         * DataGridViewCellEventArgs.cs: DataGridView implementation
12862         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
12863         * DataGridViewCellStyle.cs: DataGridView implementation
12864         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
12865         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
12866         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
12867         * TextFormatFlags.cs: DataGridView implementation
12868         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
12869         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
12870         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
12871         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
12872         * DataGridViewButtonColumn.cs: DataGridView implementation
12873         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
12874         * HandledMouseEventArgs.cs: DataGridView implementation
12875         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
12876         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
12877         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
12878         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
12879         * DataGridViewRowCollection.cs: DataGridView implementation
12880         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
12881         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
12882         * DataGridViewHitTestType.cs: DataGridView implementation
12883         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
12884         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
12885         * DataGridViewColumnEventHandler.cs: DataGridView implementation
12886         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
12887         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
12888         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
12889         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
12890         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
12891         * DataGridViewContentAlignment.cs: DataGridView implementation
12892         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
12893         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
12894         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
12895         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
12896         * DataGridViewPaintParts.cs: DataGridView implementation
12897         * DataGridViewCellCollection.cs: DataGridView implementation
12898         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
12899         * DataGridViewImageColumn.cs: DataGridView implementation
12900         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
12901         * DataGridViewElementStates.cs: DataGridView implementation
12902         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
12903         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
12904         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
12905         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
12906         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
12907         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
12908         * DataGridViewRowHeaderCell.cs: DataGridView implementation
12909         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
12910         * DataGridViewTextBoxCell.cs: DataGridView implementation
12911         * DataGridViewBand.cs: DataGridView implementation
12912         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
12913         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
12914         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
12915         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
12916         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
12917         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
12918         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
12919         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
12920         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
12921         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
12922         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
12923
12924 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
12925
12926         * ThemeWin32Classic.cs: 
12927           - Draw the outside focus rectangle around buttons
12928           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
12929             doesn't use end caps for every dash of a line anymore. This
12930             workaround ignores the forecolor.
12931
12932 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
12933
12934         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
12935           endian safe.
12936
12937 2005-11-07  Jackson Harper  <jackson@ximian.com>
12938
12939         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
12940
12941 2005-11-07  Jackson Harper  <jackson@ximian.com>
12942
12943         * ScrollableControl.cs: Calculate the maximum and change vars
12944         (more) correctly so that scrollbars appear as a sensible size.
12945
12946 2005-11-04  Jackson Harper  <jackson@ximian.com>
12947
12948         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
12949         collection.
12950         * TreeView.cs: When the tree is sorted null out the top_node so
12951         that it is recalculated.
12952         - Use dotted lines instead of dashed lines to match MS better.
12953
12954 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
12955
12956         * ListView.cs: 
12957           - Implements key search for items. Useful when browsing files with FileDialog
12958           - When changing view mode or when clear the items reset scrollbar positions
12959
12960 2005-11-04  Jackson Harper  <jackson@ximian.com>
12961
12962         * CurrencyManager.cs: Implement the MetaDataChanged event, the
12963         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
12964         as to what the method may do as there is no real way of creating a
12965         derived CurrencyManager and calling the method. 
12966
12967 2005-11-03  Jackson Harper  <jackson@ximian.com>
12968
12969         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
12970         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
12971         method which seems to just be used internally to refresh the tabs.
12972
12973 2005-11-03  Jackson Harper  <jackson@ximian.com>
12974
12975         * TabControl.cs: Implement the remove method. Fix some broken
12976         comments.
12977
12978 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
12979
12980         * DateTimePicker.cs:
12981           - Added missing DateTimePickerAccessibleObject class
12982           - Added missing events
12983           - Added OnFontChanged method
12984         * Form.cs: Added missing attributes
12985         * TreeView.cs: Added missing attributes
12986
12987 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
12988
12989         * GridItemCollection.cs: Fix signatures
12990
12991 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
12992
12993         * XplatUI.cs: Updated build rev/date
12994         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
12995           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
12996         * Application.cs: Trigger context-specific ExitThread events
12997
12998 2005-11-03  Jackson Harper  <jackson@ximian.com>
12999
13000         * Menu.cs:
13001         * MainMenu.cs:
13002         * GridTableStylesCollection.cs:
13003         * Timer.cs:
13004         * TabPage.cs:
13005         * HelpProvider.cs:
13006         * StatusBar.cs:
13007         * MonthCalendar.cs: Signature fixes
13008
13009 2005-11-03  Jackson Harper  <jackson@ximian.com>
13010
13011         * TreeNodeCollection.cs: Remove should not be virtual.
13012         * TreeView.cs: Implement the last of the missing methods.
13013
13014 2005-11-03  Jackson Harper  <jackson@ximian.com>
13015
13016         * TreeNodeConverter.cs: Implement to get off my class-status back.
13017
13018 2005-11-03  Jackson Harper  <jackson@ximian.com>
13019
13020         * TreeView.cs: Hookup the bits for drag and drop.
13021         * TreeNode.cs: Don't cache the tree_view or index anymore, now
13022         that nodes can be moved from tree to tree easily this just causes
13023         all sorts of problems.
13024         * TreeNodeCollection: Don't need to give treenodes an index and
13025         treeview anymore when they are added, these are computed on the
13026         fly. Also make sure to remove a node before its added.
13027
13028 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
13029
13030         * TextControl.cs:
13031           - Added CaretSelection enum
13032           - Added comparison methods to Marker struct, makes selection code
13033             more readable
13034           - Added SelectionStart and SelectionEnd as 'moveable' location for
13035             the CaretDirection enum and handler
13036           - Added selection_prev variable to track optimized invalidation for
13037             word and line selection
13038           - Added SelectionVisible property (returns true if there is a valid 
13039             selection)
13040           - Switched CaretHasFocus to only display the caret if there is no
13041             visible selection
13042           - Avoiding StringBuilder.ToString to retrieve a single char, instead
13043             using the direct character index; should be much faster
13044           - Added various conditional debug statements
13045           - Fixed invalidation calculation for selection ranges
13046           - Added ExpandSelection() method to support word and line selection
13047           - Switched SetSelectionToCaret to use new Marker compare overloads
13048           - Added central IsWordSeparator() method to determine word 
13049             separators/whitespace and FindWordSeparator() to streamline common
13050             usage of IsWordSeparator()
13051         * TextBoxBase.cs:
13052           - Removed unneeded grabbed variable, it was just mirroring
13053             Control.Capture
13054           - No longer firing OnTextChanged event when Text setter is called,
13055             since the base will fire the event for us
13056           - Added handling of Ctrl-Up/Down selection
13057           - Added handling of Shift-Cursorkey selection
13058           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
13059             words
13060           - Added handling of Shift and Ctrl-Shift-Home/End selection
13061           - Removed some debug output
13062           - Added handling for single/double/tripple-click to place caret/
13063             select word/select line respectively (Fixes bug #76031)
13064           - Added support for drag expansion of word/line selection
13065         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
13066           current selection
13067
13068 2005-11-02  Jackson Harper  <jackson@ximian.com>
13069
13070         * X11Dnd.cs: If the drag is going to and from a MWF window just
13071         copy the data instead of sending it out through the X Selection
13072         mechanism.
13073
13074 2005-11-02  Jackson Harper  <jackson@ximian.com>
13075
13076         * X11Dnd.cs:
13077         * XplatUIX11.cs: When in a drag we don't want motion notify
13078         messages to get passed on to the other controls. This prevents
13079         mouse move messages from showing up in the drag source.
13080
13081 2005-11-02  Jackson Harper  <jackson@ximian.com>
13082
13083         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
13084         the correct button is release to end a drag.
13085         * XplatUIX11.cs: Make the button state internal so the drag system
13086         can access it.  Dragging needs to know about all button releases,
13087         not just left button.
13088
13089 2005-11-02  Miguel de Icaza  <miguel@novell.com>
13090
13091         * Form.cs (Icon): If the icon is null, reset the icon to the
13092         default value. 
13093
13094         * Cursor.cs: When writing the AND-mask bitmap do not include the
13095         number of colors, but hardcode those to two (black and white),
13096         fixes the loading of color cursors (Paint Dot Net).
13097
13098         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
13099         turn off autoscaling.
13100
13101         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
13102
13103 2005-11-02  Jackson Harper  <jackson@ximian.com>
13104
13105         * X11Dnd.cs: Make sure to send a status message if the pointer
13106         enters a control that can not accept a drop, otherwise the cursor
13107         isn't updated correctly. Also tried to compress the lines of code
13108         a bit.
13109
13110 2005-11-02  Jackson Harper  <jackson@ximian.com>
13111
13112         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
13113         set actions correctly.  This isn't perfect as XDND and win32 have
13114         some differences on how you allow actions. I'll clear this up by
13115         adding a path for drag from MWF to MWF windows.
13116         * XplatUIX11.cs: Hook into the dnd system.
13117
13118 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
13119
13120         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
13121         previously shown but they are no longer need it. Very obvious when 
13122         browsing files with FileDialog.
13123
13124 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
13125
13126         * Control.cs: We always need to call OnPaintBackground. We pretty much
13127           ignore AllPaintingInWmPaint and always do the painting there, whether 
13128           it's set or not, since we always ignore the WM_ERASEBKGND message 
13129           (which we don't generate on X11). This fixes #76616.
13130         * Panel.cs: Removed unneeded background painting. This happens properly
13131           in Control.cs already
13132
13133 2005-10-31  Mike Kestner  <mkestner@novell.com>
13134
13135         * Menu.cs: Add items to collection before setting their index.
13136         * MenuItem.cs : add range checking with ArgumentException like MS.
13137         [Fixes #76510]
13138
13139 2005-10-31  Jackson Harper  <jackson@ximian.com>
13140
13141         * ListBox.cs: Invalidate if the area is visible at all not just
13142         contained in the visible rect. Fixes unselection of semi visible
13143         items.
13144
13145 2005-10-31  Jackson Harper  <jackson@ximian.com>
13146
13147         * Control.cs: Consistently name the dnd methods. Make them
13148         internal so we can override them to match some MS behavoir
13149         internally.
13150         * Win32DnD.cs: Use the new consistent names.
13151
13152 2005-10-31  Jackson Harper  <jackson@ximian.com>
13153
13154         * TreeView.cs: Don't draw the selected node when we lose focus.
13155
13156 2005-10-31  Jackson Harper  <jackson@ximian.com>
13157
13158         * X11Dnd.cs: We still need to reset the state even though a full
13159         reset isn't being done, otherwise status's still get sent all over
13160         the place.
13161
13162 2005-10-31  Jackson Harper  <jackson@ximian.com>
13163
13164         * Control.cs: Make the dnd_aware flag internal so the dnd
13165         subsystem can check it. Catch exceptions thrown in dnd handlers to
13166         match MS behavoir.
13167         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
13168         * X11Dnd.cs: Handle null data in the converters. Set the XDND
13169         version when sending a XdndEnter. Use the control/hwnd dnd_aware
13170         flags to reduce the number of dnd enters/status's sent.
13171
13172 2005-10-31  Jackson Harper  <jackson@ximian.com>
13173
13174         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
13175
13176 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
13177
13178         * PictureBox.cs: Fixes 76512
13179
13180 2005-10-28  Jackson Harper  <jackson@ximian.com>
13181
13182         * X11Dnd.cs: Early implementation to support winforms being a drag
13183         source for data on X11. Also restructured the converters so they
13184         can go both ways now.
13185         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
13186         
13187 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
13188
13189         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
13190           clipboard requests
13191
13192 2005-10-27  Jackson Harper  <jackson@ximian.com>
13193
13194         * TreeNode.cs: Implement serialization so my DnD examples will work.
13195
13196 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
13197
13198         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
13199           TreeView.cs: Don't dispose objects that are not owned.
13200           
13201 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
13202
13203         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
13204           should retrieve the current cursor and report that, but XplatUI
13205           doesn't (yet) have an interface for that (and I'm not sure I even
13206           can, on X11)
13207         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
13208           until any message loop processing is done (and the WM_SETCURSOR
13209           replaces the cursor to the proper one)
13210         * XplatUIX11.cs: 
13211           - Fixed override behaviour, we can't set the cursor globally on X11, 
13212             just for our windows.
13213           - Invalidating the System.Drawing X11 display handle when we are
13214             shutting down
13215         * Control.cs: Fix to make csc happy
13216
13217 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
13218
13219         * TextBoxBase.cs: 
13220           - get_Text: Add last line (without trailing newline) to returned
13221             value (Fixes 76212)
13222           - get_TextLength: Count last line in returned length
13223           - ToString: Call Text property instead of duplicating code
13224
13225 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
13226
13227         * ImageList.cs: Dispose ImageAttributes objects.
13228
13229 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
13230
13231         * ImageList.cs: Use attribute constructors with less arguments where
13232           possible.
13233
13234 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
13235
13236         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
13237           Use typeof instead of strings when assembly is referenced. Added
13238           some more comments.
13239
13240 2005-10-21  Jackson Harper  <jackson@ximian.com>
13241
13242         * ListView.cs: Raise a double click event. Also tried to somewhat
13243         fix when the selectedindexchanged event is raised. Its still
13244         broken though.
13245
13246 2005-10-21  Jackson Harper  <jackson@ximian.com>
13247
13248         * TreeView.cs: New method to invalidate the plus minus area of a
13249         node without invalidating the whole node (maybe this can be used
13250         in some more places).
13251         * TreeNodeCollection.cs: When adding to an empty node we need to
13252         invalidate its plus minus area so the little block shows up.
13253         
13254 2005-10-21  Jackson Harper  <jackson@ximian.com>
13255
13256         * TreeView.cs: Make sure that when we invalidate a node the bounds
13257         are big enough to cover the selected box and the focus
13258         rectangle. Use a different colour for the lines connecting nodes
13259         so they show up with all themes.
13260
13261 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
13262
13263         * NativeWindow.cs: Don't call anything that could call into the driver,
13264           we might be on a different thread.
13265
13266 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
13267
13268         * Control.cs(Dispose): Since Dispose might run on a different thread,
13269           make sure that we call methods that could call into the driver via
13270           invoke, to avoid thread issues
13271
13272 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
13273
13274         * XplatUI.cs: Removed finalizer
13275         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
13276           not allowing to be called on the finalizer thread.
13277
13278 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
13279
13280         * ImageList.cs:
13281           - Reverted r51889 and r51891.
13282           - Added ImageListItem class that stores unmodified image items and image
13283             properties required to create list images until handle is created.
13284           - Added AddItem and moved image creation logic to AddItemInternal.
13285           - Added CreateHandle method that creates images based on unmodified items.
13286           - Added DestroyHandle that changes state to store unmodified items.
13287           - Add and AddStrip methods no more create handle.
13288           - ReduceColorDepth has no return value.
13289           - Dispose destroys handle.
13290           - Modified other methods to reflect the above changes.
13291           - Implemented key support.
13292           - Added profile 2.0 members and attributes.
13293           - Added private Reset and ShouldSerialize methods that provide the same
13294             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
13295             them as they are private.
13296           - Added some more comments about implementation details.
13297
13298 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
13299
13300         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
13301
13302 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
13303
13304         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
13305
13306 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
13307
13308         * DataGridDrawingLogic.cs: Fixes column hit calcultation
13309         * DataGridColumnStyle.cs: Remove debug message
13310
13311 2005-10-20  Jackson Harper  <jackson@ximian.com>
13312
13313         * TreeView.cs: We can always get input keys regardless of whether
13314         or not editing is enabled. They are used for navigation.
13315
13316 2005-10-20  Jackson Harper  <jackson@ximian.com>
13317
13318         * TreeNode.cs: Use the viewport rect for determining if a node
13319         needs to be moved for visibility. Don't use Begin/End edit. This
13320         calls a full refresh when its done.
13321         * TreeView.cs: New SetBottom works correctly.  Make the viewport
13322         rect property internal so the treenodes can see it. When clicking
13323         on a node we need to ensure that its visible because it might just
13324         be partly visible when clicked.
13325
13326 2005-10-20  Jackson Harper  <jackson@ximian.com>
13327
13328         * TreeNodeCollection.cs: Remove debug code.
13329
13330 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
13331
13332         * Datagrid.cs: Implements column sorting in Datagrid
13333         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
13334
13335 2005-10-20  Jackson Harper  <jackson@ximian.com>
13336
13337         * TreeNodeCollection.cs: Remove items properly. Update the correct
13338         area after removing them.
13339
13340 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
13341
13342         * Datagrid.cs: Should not call base.OnPaintBackground
13343
13344 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
13345
13346         * XplatUIX11.cs (GetMessage):
13347           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
13348             window instead of client window
13349           - Now properly calculates NC_xBUTTONUP message coordinates
13350           - ScreenToMenu now properly calculates it's coordinates of whole 
13351             window, since menus are in the whole window, not in the client
13352             window
13353           - Added WholeToScreen coordinate translation method
13354
13355 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
13356
13357         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
13358           want to return a message, loop back to the beginning of the function
13359           and grab the next real message to process instead.
13360
13361 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
13362
13363         * Splitter.cs: Properly set limits if no filler control is used
13364
13365 2005-10-19  Jackson Harper  <jackson@ximian.com>
13366
13367         * ColorDialog.cs: Don't show the help button if it is not enabled
13368         instead of disabling it (this is what MS does). Don't create the
13369         panel until the dialog is run, otherwise the vars (such as
13370         ShowHelp) are not set yet.
13371
13372 2005-10-19  Jackson Harper  <jackson@ximian.com>
13373
13374         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
13375         are reduced when adding nodes.
13376         * TreeNode.cs:
13377         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
13378         tree.
13379         
13380 2005-10-19  Jackson Harper  <jackson@ximian.com>
13381
13382         * FolderBrowserDialog.cs: End editing our treeview so the window
13383         actually gets refreshed.
13384
13385 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
13386
13387         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
13388           Obsoleted handling of WM_ERASEBKGND, now always draws our background
13389           inside of WM_PAINT
13390
13391 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
13392
13393         * MenuAPI.cs: Returns after Hidding window
13394         * XplatUIX11.cs: Added TODO found while debugging menu issues
13395
13396 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
13397
13398         * XplatUIX11.cs: Do not re-map the whole window when it's size
13399           becomes non-zero unless it's supposed to be actually visible
13400
13401 2005-10-18  Jackson Harper  <jackson@ximian.com>
13402
13403         * TreeView.cs: We don't need to keep a count anymore.
13404         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
13405         use the Grow method.
13406
13407 2005-10-18  Jackson Harper  <jackson@ximian.com>
13408
13409         * TreeNodeCollection.cs: Insert is not supported on arrays, so
13410         implement it manually here.
13411
13412 2005-10-18  Jackson Harper  <jackson@ximian.com>
13413
13414         * ImageList.cs: Dont kill the list when the colour depth is
13415         changed, just change the colour depth of all the images.
13416         - Same goes for setting the image size. Just resize them all
13417         instead of killing the list softly.
13418
13419 2005-10-18  Jackson Harper  <jackson@ximian.com>
13420
13421         * Control.cs: Don't invalidate empty rectangles.
13422
13423 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
13424
13425         * ListViewItem.cs:
13426           - Adds checked item to the Checked/Item lists (where empty before)
13427           - Do not add items to the Selected lists if they are already present
13428         * ListView.cs:
13429           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
13430           - When deleting items make sure that we delete them for the Selected
13431           and Checked list also.
13432
13433 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
13434
13435         * Label.cs: Dispose objects no longer used
13436         * ThemeWin32Classic.cs: Dispose objects no longer used
13437
13438 2005-10-18  Jackson Harper  <jackson@ximian.com>
13439
13440         * TabControl.cs: Don't refresh the whole control when the tabs are
13441         scrolled, we just need to refresh the tab area.
13442
13443 2005-10-17  Jackson Harper  <jackson@ximian.com>
13444
13445         * XplatUIX11.cs: Compress code a little bit. Only calculate the
13446         after handle when we need it.
13447
13448 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
13449
13450         * Control.cs: When the parent size changes, recalculate anchor 
13451           positions. Partial fix for #76462
13452
13453 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
13454
13455         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
13456           drawn. Fixes #76462
13457
13458 2005-10-17  Jackson Harper  <jackson@ximian.com>
13459
13460         * MonthCalendar.cs: Don't create the numeric up down until our
13461         handle is created. Otherwise our handle is created in the
13462         constructor and we don't know if we are a WS_CHILD or WS_POPUP
13463         yet.
13464
13465 2005-10-17  Jackson Harper  <jackson@ximian.com>
13466
13467         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
13468         correctly.
13469
13470 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
13471         * TreeNode.cs : small logical fix (was using local var instead of field)
13472         
13473 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
13474
13475         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
13476
13477 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
13478
13479         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
13480
13481 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
13482
13483         * Control.cs: 
13484           - Re-implemented anchoring code. My first version was really broken.
13485             This fixes bug #76033. Unlike the previous implementation we will
13486             no longer have round errors since all numbers are calculated from
13487             scratch every time. Removed various anchor-related obsolete vars.
13488           - InitLayout no longer causes layout event firing and layout to be 
13489             performed
13490
13491 2005-10-16  Jackson Harper  <jackson@ximian.com>
13492
13493         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
13494         which was broken).
13495
13496 2005-10-16  Jackson Harper  <jackson@ximian.com>
13497
13498         * TabControl.cs: Remove debug code.
13499
13500 2005-10-16  Jackson Harper  <jackson@ximian.com>
13501
13502         * XEventQueue.cs: Increase the default queue size (very simple
13503         apps needed to grow the queue).
13504         * Hwnd.cs: No finalizer so we don't need to suppress
13505         finalization. Compute the invalid area manually so a new rectangle
13506         does not newto be created.
13507         * ScrollableControl.cs: Don't set any params (otherwise visibility
13508         isn't set correctly).
13509         * MdiChildContext.cs: New constructor takes the mdi parent so it
13510         doesn't have to be computed and avoids a crash on windows. Draw
13511         the window icon properly, and allow the text to be seen.
13512         * Form.cs: Use new MdiChildContext constructor. Make sure the
13513         child context isn't null in wndproc.
13514         * TabControl.cs: Don't set focus, this is muddling keyboard
13515         behavoir. Expand the tab rows when a window size increase will
13516         allow extra tabs to be seen. Don't allow tabs smaller than the
13517         width of a window to be scrolled out of view.
13518         * TreeNode.cs:
13519         * TreeView.cs: Use measure string to calculate a nodes width, the
13520         width is cached and only updated when the text or the font is
13521         changed. Don't check for expand/collapse clicks on the first level
13522         nodes if root lines are disabled.
13523         
13524 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
13525
13526         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
13527
13528 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
13529
13530         * DataGridBoolColumn.cs: fixes warning
13531
13532 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
13533
13534         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
13535         to match more to match more precisely the MS Net behavior
13536
13537 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
13538
13539         * Hwnd.cs: Added field to track if window is mapped
13540         * XplatUIX11.cs: 
13541           - Unmap windows if they become 0-size, re-map when 
13542             they are >0 again; fixes #76035
13543           - Re-set our error handler after initializing X11Desktop
13544             to override any error handlers Gtk or whatever was called
13545             may have set.
13546
13547 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
13548
13549         * CheckedListBox.cs: Removed unused vars
13550         * ListView.cs: Fixed signatures
13551         * RichTextBox.cs: Removed unused vars
13552         * TextBoxBase.cs: Removed unused vars
13553         * XplatUIWin32.cs: Removed unused vars
13554         * XplatUIX11.cs: Removed unused vars
13555         * XplatUI.cs: Updated version and date to latest published
13556
13557 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
13558
13559         * Cursor.cs: Added private .ctor to work around a bug in
13560           resourceset (Thanks to Geoff Norton for the help on this)
13561         * SplitterEventArgs.cs: Made fields accessible so we don't
13562           waste boatloads of objects and can reuse the same one
13563           in Splitter
13564         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
13565           any captions and borders when generating screen coordinates
13566         * Splitter.cs: Reimplemented control, now fully complete, uses
13567           rubberband drawing, supports and obeys all properties, has
13568           proper cursors
13569
13570 2005-10-13  Miguel de Icaza  <miguel@novell.com>
13571
13572         * Form.cs (Form): Setup default values for autoscale and
13573         autoscale_base_size;  Make these instance variables, not static
13574         variables. 
13575
13576         (OnLoad): on the first load, adjust the size of the form.
13577
13578 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
13579
13580         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
13581           width argument to DrawReversibleRectangle()
13582         * XplatUIWin32.cs, XplatUIX11.cs: 
13583           - Implemented width for DrawReversibleRectangle()
13584           - Added logic to DrawReversibleRectangle that recognizes a zero
13585             width or height and only draws a line in that situation
13586         
13587 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
13588
13589         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
13590         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
13591         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
13592           method (it uses our FosterParent window to get a graphics context)
13593
13594 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
13595
13596         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
13597           and SetWindowBackground methods
13598         * Control.cs:
13599           - Setting proper ControlStyles
13600           - We no longer call XplatUI.SetWindowBackground and XplatUI.
13601             EraseWindowBackground, instead we draw the window background
13602             ourselves in PaintControlBackground. This behaviour is
13603             required to match MS, where, when OnPaintBackground is not
13604             called, the background is not drawn.
13605           - Removed unneeded Refresh() in set_Text
13606         * Hwnd.cs: Dropped the ErasePending support. No longer needed
13607         * XplatUIX11.cs:
13608           - Created DeriveStyles method to translate from CreateParams to
13609             FormBorderStyle and TitleStyle, also handles BorderStyle (which
13610             matches FormBorderStyle enum values)
13611           - Consolidated SetHwndStyles and CalculateWindowRect border/title
13612             style calculations into single DeriveStyles method
13613           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
13614             from redrawing the whole window on any resize or expose.
13615           - Fixed CreateWindow usage of SetWindowValuemask. Before not
13616             all styles were applied to our whole/client window appropriately
13617           - Removed EraseWindowBackground() and SetWindowBackground() methods
13618           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
13619             no longer clear/redraw the background through X
13620           - Removed handling of erase_pending bit, we have no use for it (or
13621             so it seems)
13622         * XplatUIOSX.cs:
13623           - Removed generation and handling of WM_ERASEBKGND message
13624           - Removed EraseWindowBackground() and SetWindowBackground() methods
13625           - Removed handling of hwnd.ErasePending flag
13626         * XplatUIWin32.cs:
13627           - Removed EraseWindowBackground() and SetWindowBackground() methods
13628           - We no longer call EraseWindowBackground on PaintEventStart, we 
13629             ignore the fErase flag, erasing is handled in Control in the
13630             background handler
13631         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
13632           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
13633           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
13634           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
13635           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
13636           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
13637           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
13638
13639 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
13640
13641         * PropertyGrids.cs: Get sub properties
13642         * PropertyGridView.cs: Fix drawing code
13643
13644 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
13645
13646         * ListBox.cs: Fixes 76383
13647
13648 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
13649
13650         * DataGridTextBoxColumn.cs: Sets location and size before attachment
13651         * ThemeWin32Classic.cs: Fixes border drawing and calculations
13652         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
13653
13654
13655 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
13656
13657         * ComboBox.cs: Fixes border drawing
13658
13659 2005-10-10  Miguel de Icaza  <miguel@novell.com>
13660
13661         * MimeIcon.cs: Ignore errors if the file can not be read.
13662
13663 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
13664
13665         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
13666          - Fixed border calculations
13667          - Fixed horizontal scrolling in single column listboxes
13668          - Fixed drawing issues
13669
13670 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
13671
13672         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
13673           FormBorderStyle enum
13674         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
13675           code to determine FormBorderStyles from CreateParams
13676         * Form.cs:
13677           - Fixed bug where we'd set the wrong window styles if we were
13678             not creating an MDI window
13679           - Added call to XplatUI.SetBorderStyle when form borders are set
13680         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
13681         * Hwnd.cs:
13682           - Removed obsolete edge style
13683           - Switched from BorderStyle to FormBorderStyle
13684         
13685 2005-10-10  Jackson Harper  <jackson@ximian.com>
13686
13687         * Form.cs: Use the property to get the window handle instead of
13688         accessing it directly. Prevents a null reference exception.
13689
13690 2005-10-10  Jackson Harper  <jackson@ximian.com>
13691
13692         * TreeView.cs: Don't adjust the rect given to DrawString now that
13693         our libgdiplus draws correctly.
13694
13695 2005-10-08  Jackson Harper  <jackson@ximian.com>
13696
13697         * TreeView.cs: Don't try to find the clicked on node if there are
13698         no nodes in the tree.
13699
13700 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
13701
13702         * RichTextBox.cs:
13703
13704           restore
13705
13706 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
13707
13708         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
13709           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
13710           ErrorProvider.cs:
13711           Use ResPool for brushes and dispose System.Drawing objects that
13712           are not used anymore.
13713
13714 2005-10-07  Jackson Harper  <jackson@ximian.com>
13715
13716         * MdiChildContext.cs: Use the new borders instead of drawing them
13717         ourselves.
13718
13719 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
13720
13721         * Calling UpdateBounds after changing the window's BorderStyle 
13722         since the style can change the ClientSize
13723
13724 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
13725
13726         * Control.cs: Made PaintControlBackground virtual
13727         * Panel.cs: Overriding PaintControlBackground instead of using paint
13728           event; paint event method was interfering with 'real' users of the
13729           event.
13730
13731 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
13732
13733         * ThemeWin32Classic.cs: remove border drawing since it is handled
13734         by the base control class now and was causing double border drawing.
13735
13736 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
13737
13738         * Panel.cs: Redraw our background on paint. Not a pretty solution,
13739           but it does seem to match MS behaviour. This fixes bug #75324
13740
13741 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
13742
13743         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
13744           somewhat hackish looking
13745
13746 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
13747
13748         * TextBoxBase.cs:
13749           - We now accept Enter even if AcceptEnter is false, if the containing
13750             form does not have an AcceptButton configured (fixes bug #76355)
13751           - Calculations are now fixed to no longer use Width/Height, but
13752             ClientSize.Width/Height, since we now support borders (this was
13753             a result of fixing borders and therefore bug #76166)
13754           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
13755             true (fixes bug #76354)
13756         
13757 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
13758
13759         * Control.cs: 
13760           - Defaulting BorderStyle and setting it in XplatUI when our window 
13761             is created
13762           - Added enum check to InternalBorderStyle setter
13763         * XplatUIX11.cs: 
13764           - Added drawing of window borders
13765           - Now properly calculates WM decorations offset for toplevel 
13766             windows (fixes bug #74763)
13767         * XplatUIWin32.cs: 
13768           - Implemented BorderStyles for windows (we're letting win32 draw 
13769             the border for us)
13770           - Fixed the signature for SetWindowLong
13771         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
13772           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
13773           setting borders
13774         * UpDownBase.cs: Remove drawing of borders, this is handled by
13775           the driver, outside the client area
13776         * ListView.cs: Removed bogus border calculations. The control should
13777           be oblivious to borders, since those are not part of the client
13778           area. 
13779         * X11DesktopColors.cs: Commented out (currently) unneeded variables
13780         * ThemeWin32Classic.cs: Removed border calculations from ListView 
13781           drawing code
13782
13783 2005-10-06  Jackson Harper  <jackson@ximian.com>
13784
13785         * MdiChildContext.cs: Clear out the old virtual position remove
13786         all the unneeded calls to CreateGraphics.
13787
13788 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
13789
13790         * TextControl.cs: Use proper color for highlighted text; fixes #76350
13791
13792 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
13793
13794         * Form.cs: 
13795           - Added loading and setting of our new default icon
13796           - Only set icon if window is already created
13797
13798 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
13799
13800         * Label.cs:
13801           - Do not explicitly set the foreground and background colors, to
13802             allow inheriting from parents (fixes #76302)
13803           - Use Control's InternalBorderStyle property to deal with borders
13804
13805 2005-10-06  Jackson Harper  <jackson@ximian.com>
13806
13807         * MdiChildContext.cs: Use the new xplatui function to draw a
13808         reversible rect.
13809
13810 2005-10-06  Jackson Harper  <jackson@ximian.com>
13811
13812         * Form.cs: Add the parent before creating the child context cause
13813         we need the parent when setting up the child.
13814
13815 2005-10-06  Jackson Harper  <jackson@ximian.com>
13816
13817         * FolderBrowserDialog.cs: redo the tree population code so a
13818         second thread isn't used. Should be a lot faster and more stable
13819         now.
13820
13821 2005-10-05  Jackson Harper  <jackson@ximian.com>
13822
13823         * TreeView.cs: There are no expand/collapse boxes if the node has
13824         no children.
13825
13826 2005-10-05  Jackson Harper  <jackson@ximian.com>
13827
13828         * X11DesktopColors.cs: Get menu colours for the gtk theme.
13829
13830 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
13831
13832         * FileDialog.cs: Fix InitialDirectory
13833
13834 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
13835
13836         * ComboBox.cs:
13837                 - Fixes changing between styles
13838                 - Fixes simple mode
13839                 - Fixes last item crashing when navigating with keyboard
13840
13841 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
13842
13843         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
13844
13845 2005-10-05  Jackson Harper  <jackson@ximian.com>
13846
13847         * TreeView.cs: If updating the root node do a full refresh.
13848         * TreeNode.cs: The root node should be expanded by default. Also
13849         added a utility prop to tell if we are the root node.
13850         * TreeNodeCollection.cs: Only refresh if the node we are being
13851         added to is expanded. Also added a comment on a potential
13852         optimization.
13853         
13854 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
13855
13856         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
13857           in dispose method. Fixes #76330
13858
13859 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
13860
13861         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
13862
13863                 - Implements vertical and horizontal scrolling using XplatUI
13864                 - Fixes keyboard navagation
13865                 - Fixes EnsureVisible
13866                 - Drawing fixes
13867                 - Handles and draws focus properly
13868
13869
13870 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
13871
13872         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
13873           Create handle. NET_2_0: Destroy handle when value is null.
13874
13875 2005-10-03  Jackson Harper  <jackson@ximian.com>
13876
13877         * ScrollBar.cs: My last scrollbar patch was broken. This is a
13878         revert and a new patch to prevent the thumb from refreshing so
13879         much.
13880
13881 2005-10-02  Jackson Harper  <jackson@ximian.com>
13882
13883         * ScrollBar.cs: Don't update position if it hasn't actually
13884         changed. This occurs when you hold down the increment/decrement
13885         buttons and the thumb gets to the max/min.
13886
13887 2005-10-01  Jackson Harper  <jackson@ximian.com>
13888
13889         * Form.cs:
13890         * MdiChildContext.cs:
13891         * MdiClient.cs: Implement ActiveMdiChild in Form.
13892
13893 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
13894
13895         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
13896
13897 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
13898
13899         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
13900           be found
13901
13902 2005-09-30  Jackson Harper  <jackson@ximian.com>
13903
13904         * ListBox.cs: Don't do a full refresh unless some data has
13905         actually changed.
13906
13907 2005-09-30  Jackson Harper  <jackson@ximian.com>
13908
13909         * TreeView.cs: Make sure that the checkboxes size is factored in
13910         even when not visible.
13911
13912 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
13913
13914         * FileDialog.cs: Fix Jordi's build break
13915
13916 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
13917
13918         * FileDialog.cs: 
13919                 - Use standard the Windows colours for the combobox as espected
13920                 - Dispose objects that use resouces when no longer need them
13921
13922 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
13923
13924         * X11DesktopColors.cs: Initial incomplete implementation
13925         * XplatUIX11.cs: Added call to initialize X11DesktopColors
13926
13927 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
13928
13929         * Theme.cs: 
13930           - Switched Theme color names to match the names defined in 
13931             System.Drawing.KnownColors. Life's hard enough, no need to make 
13932             it harder.
13933           - Added setters to all theme color properties so themes can set
13934             their color schemes. The setters also propagate the color changes
13935             to System.Drawing.KnownColors via reflection
13936         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
13937           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
13938           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
13939           use the new, more logical theme color names
13940         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
13941           post-NT colors
13942         * ThemeWin32Classic.cs:
13943           - Removed code to set the old classic Windows colors. Instead it
13944             now relies on the colors returned by System.Drawing.KnownColors
13945             which will be either modern static colors (Unix) or colors
13946             read from the user's configuration (Win32)
13947           - Updated to use the new, more logical theme color names
13948           - Switched DataGrid drawing code to use only Theme colors instead of
13949             a mix of System.Drawing.KnownColors and Theme colors
13950           - DrawFrameControl(): Removed code that fills the button area, the
13951             fill would overwrite any previous fill done by a control. This
13952             fixes bug #75338 
13953           - Added DrawReversibleRectangle() stub
13954         * ScrollableControl.cs: Set visible state to false when scrollbars
13955           are removed (pdn fix)
13956         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
13957           DrawReversibleRectangle() method to allow drawing primitive 
13958           'rubber bands'
13959         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
13960
13961 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
13962
13963         * ImageList.cs: Add(Icon): Create handle.
13964
13965 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
13966
13967         * ListView.cs:
13968         * ThemeWin32Classic.cs:
13969                 - Fixes detail mode
13970                 - Sets clippings
13971                 - Issues with drawing
13972
13973 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
13974
13975         * ImageList.cs: Moved RecreateHandle back to ImageList as event
13976           source has to be the ImageList.
13977
13978 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
13979
13980         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
13981
13982 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
13983
13984         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
13985
13986 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
13987
13988         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
13989
13990 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
13991         * GridItem.cs: Fixed TODOs
13992         * GridItemCollection.cs: Added ICollection interface
13993
13994 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
13995
13996         * ImageList.cs: Resize icons when needed.
13997
13998 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
13999
14000         * ListViewItem.cs
14001                 - Fixes GetBounds and returns on screen rects
14002         * ListView.cs:
14003                 - Fixes vertical and horzintal scrolling of items
14004         * ThemeWin32Classic.cs:
14005                 - Fixes drawing
14006                 
14007 2005-09-29  Raja R Harinath  <harinath@gmail.com>
14008
14009         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
14010
14011 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
14012
14013         * ImageList.cs: Added comments about handle creation. Moved Handle,
14014           HandleCreated and OnRecreateHandle implementations to ImageCollection.
14015           Handle is created in Add methods.
14016
14017 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
14018          
14019         * DataGridDrawingLogic.cs: 
14020                 - Takes rows into account on Colum calculations
14021                 - Returns the column when clickig
14022         * DataGrid.cs:
14023                 - Fixes default HitTestInfo values
14024                 - Fixes HitTestInfo.ToString
14025                 - Fixes ResetBackColor          
14026         
14027 2005-09-28  Jackson Harper  <jackson@ximian.com>
14028
14029         * MdiChildContext.cs: Obey rules for fixed sized windows (no
14030         sizing or cursor changes). Also added some temp code to draw the
14031         titlebars text (Makes dev a little easier).
14032
14033 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
14034
14035         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
14036
14037 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
14038          
14039         * ListBox.cs: Fixes bug 76253
14040
14041 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
14042
14043         * ImageList.cs: Added comments about the current implementation. Added
14044           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
14045           Format32bppArgb to preserve transparency and can use Graphics.FromImage
14046           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
14047           with Bitmap.LockBits for better performance. Revised the whole file to
14048           match MS.NET behaviour and provide better performance. Non-public
14049           interface members are calling public members even when they throw
14050           NotSupportedException for better maintainability. Moved ColorDepth,
14051           ImageSize, ImageStream and TransparentColor implementations to
14052           ImageCollection for better performance as these properties are not used
14053           by ImageList.
14054         * ImageListStreamer.cs: Added a new internal constructor that takes an
14055           ImageList.ImageCollection and serializes Images based on
14056           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
14057           match ImageList property name.
14058
14059 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
14060
14061         * ListBox.cs: Fixes IndexFromPoint for last item
14062
14063 2005-09-27  Jackson Harper  <jackson@ximian.com>
14064
14065         * Form.cs: Set the position of new mdi children correctly.
14066
14067 2005-09-27  Jackson Harper  <jackson@ximian.com>
14068
14069         * MdiClient.cs: New mdi children need to be added to the back of
14070         the controls collection so the zorder is set correctly. Also add a
14071         count of all the child windows that have been created.
14072
14073 2005-09-27  Jackson Harper  <jackson@ximian.com>
14074
14075         * Form.cs (CreateParams): Setup MDI forms correctly.
14076
14077 2005-09-27  Jackson Harper  <jackson@ximian.com>
14078
14079         * MdiChildContext.cs:
14080         * MonthCalendar.cs:
14081         * UpDownBase.cs:
14082         * ListBox.cs:
14083         * ListView.cs:
14084         * TextBoxBase.cs:
14085         * TreeView.cs:
14086         * ScrollableControl.cs:
14087         * ComboBox.cs: Add implicit controls using the new implict control
14088         functionality in ControlCollection. Also try to block multiple
14089         control add in a suspend/resume layout to save some cycles.
14090         
14091 2005-09-27  Jackson Harper  <jackson@ximian.com>
14092
14093         * Control.cs: Add functionality to the controls collection to add
14094         'implicit controls' these are controls that are created by the
14095         containing control but should not be exposed to the user. Such as
14096         scrollbars in the treeview.
14097         * Form.cs: The list var of the ControlsCollection is no longer
14098         available because of the potential of implicit controls getting
14099         ignored by someone accessing the list directly.
14100
14101 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
14102
14103         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
14104           loose it's parent. (Fixed bug introduced in r49103 when we added
14105           setting the child parent to null on Remove)
14106
14107 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
14108
14109         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
14110         * Splitter.cs: Added missing attributes for BorderStyle property.
14111         * TextBoxBase.cs: Marked Calculate* methods internal.
14112         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
14113         MS.NET.
14114
14115 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
14116          
14117         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
14118
14119 2005-09-25  Jackson Harper  <jackson@ximian.com>
14120
14121         * TreeView.cs: Update the node bounds correctly regardless of
14122         whether the node is visible.
14123
14124 2005-09-25  Jackson Harper  <jackson@ximian.com>
14125
14126         * ImageList.cs: Don't dispose the image after it is added to the
14127         image list. Only reformat images that need to be resized.
14128
14129 2005-09-25  Jackson Harper  <jackson@ximian.com>
14130
14131         * ImageList.cs: Don't set the format when changing the image.
14132
14133 2005-09-25  Jackson Harper  <jackson@ximian.com>
14134
14135         * TreeView.cs: We can't just assume the node has a font. Use the
14136         treeviews font if no node font is available.
14137
14138 2005-09-25  Jackson Harper  <jackson@ximian.com>
14139
14140         * TreeView.cs: Allow the scrollbars to be reset with negative
14141         values.
14142         - Don't add scrollbars to negative sized windows.
14143
14144 2005-09-23  Jackson Harper  <jackson@ximian.com>
14145
14146         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
14147         old Mono.Posix. Also remove some stray code that shouldn't have
14148         been committed.
14149
14150 2005-09-23  Jackson Harper  <jackson@ximian.com>
14151
14152         * TreeView.cs: Attempt at proper sizing of the horizontal
14153         scrollbar. Also don't resize the scrollbars unless they are
14154         visible.
14155
14156 2005-09-23  Jackson Harper  <jackson@ximian.com>
14157
14158         * TreeView.cs: We don't need to expand the invalid area when the
14159         selection changes, as this is all drawn in the node's bounding
14160         box. The area needs to be expanded (previous typo was contracting
14161         it) when the focus rect moves.
14162
14163 2005-09-23  Jackson Harper  <jackson@ximian.com>
14164
14165         * TreeView.cs: Display the selection box under the correct
14166         circumstances. We were rendering white text with no selection box
14167         before.
14168
14169 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
14170
14171         * TextControl.cs(Split): Now updates selection start/end if it points 
14172           into a line that's being split. Fixes a FIXME and bug #75258
14173
14174 2005-09-23  Jackson Harper  <jackson@ximian.com>
14175
14176         * Binding.cs:
14177         * ListControl.cs: Don't use the path when retrieving binding
14178         managers from the binding context. My bat sense tells me that the
14179         path is only used on insertion.
14180
14181 2005-09-22  Jackson Harper  <jackson@ximian.com>
14182
14183         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
14184
14185 2005-09-22  Jackson Harper  <jackson@ximian.com>
14186
14187         * Splitter.cs: There are special cursors used for splitting.
14188         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
14189
14190 2005-09-22  Jackson Harper  <jackson@ximian.com>
14191
14192         * Splitter.cs: Change the cursor appropriately when the splitter
14193         is moused over, so the user actually knows there is a splitter
14194         there.
14195
14196 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
14197
14198        * Label.cs : Fix ToString method to give same output as MS.NET
14199
14200 2005-09-22  Jackson Harper  <jackson@ximian.com>
14201
14202         * TreeView.cs: Create the scrollbars when the handle is created
14203         and add them right away, just make them invisble. Also account for
14204         the window being shrunk vertically to the point that the vert
14205         scrollbar needs to be added.
14206         - Remove some 0.5 adjustments to get around anti aliasing issues.
14207         
14208 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
14209          
14210         * MainMenu.cs: Fixes default value
14211         * MenuItem.cs: Fixes default value
14212
14213 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
14214
14215         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
14216
14217 2005-09-21  Jackson Harper  <jackson@ximian.com>
14218
14219         * Control.cs: Don't try to set the border style on the window if
14220         it hasn't been created. When the window is created the border
14221         style will be used.
14222
14223 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
14224
14225         * Control.cs (Update): Don't call XplatUI if we don't have a
14226           window handle yet
14227
14228 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
14229
14230         * ContainerControl.cs: Instead of throwing an exception, print
14231           a one-time warning about Validate not being implemented
14232         * XplatUIWin32.cs: Removed debug output
14233
14234 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
14235
14236         * Control.cs: Only set XplatUI background if we expect the windowing
14237           system to handle the background. This stops controls that draw their
14238           own background from flickering
14239
14240         * XplatUIX11.cs: Support custom visuals and colormaps for window 
14241           creation. This allows, amongst other things, using MWF X11 windows 
14242           with OpenGL.
14243
14244 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
14245
14246         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
14247           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
14248           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
14249           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
14250           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
14251           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
14252           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
14253           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
14254           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
14255           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
14256           GridColumnStylesCollection.cs, 
14257           IDataGridColumnStyleEditingNotificationService.cs,
14258           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
14259           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
14260           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
14261           TreeNodeCollection.cs, AmbientProperties.cs, 
14262           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
14263           DataObject.cs, ErrorProvider.cs, Splitter.cs,
14264           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
14265           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
14266           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
14267           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
14268           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
14269           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
14270           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
14271           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
14272           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
14273           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
14274           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
14275           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
14276           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
14277           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
14278           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
14279           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
14280           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
14281           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
14282           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
14283           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
14284           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
14285           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
14286           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
14287           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
14288           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
14289           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
14290           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
14291           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
14292           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
14293           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
14294           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
14295           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
14296           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
14297           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
14298           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
14299
14300 2005-09-21  Jackson Harper  <jackson@ximian.com>
14301
14302         * TreeNode.cs: Call Before/After Expand not Collapse when
14303         expanding.
14304
14305 2005-09-20  Jackson Harper  <jackson@ximian.com>
14306         
14307         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
14308
14309 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
14310          
14311         * ListViewItem.cs:
14312                 - Fixes bug 76120
14313                 - Fixes proper storing of subitems
14314                 - Fixes not updated items
14315
14316 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
14317
14318         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
14319           things if our window handle isn't created yet. Also disabled 
14320           debug for TextBoxBase
14321
14322 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
14323
14324         * MenuAPI.cs: Remove filtering of events to allow menu usage
14325
14326 2005-09-20  Miguel de Icaza  <miguel@novell.com>
14327
14328         * Cursor.cs: Allow null to be passed to Cursor.Current.
14329
14330 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
14331
14332         * ThemeWin32Classic.cs:
14333           - Change some private methods/fields to protected virtual so that 
14334             they can be accessed and overriden in derived classes
14335           - First refactoring of some methods. Derived themes now don't 
14336             need to duplicate the complete code from ThemeWin32Classic
14337         * ThemeNice.cs:
14338           - Added nice StatusBar
14339           - Derive from ThemeWin32Classic and not Theme
14340           - Removed duplicate ThemeWin32Classic code
14341
14342 2005-09-20  Miguel de Icaza  <miguel@novell.com>
14343
14344         * Control.cs (ControlCollection.Add): If the value null is passed
14345         the control is ignored. 
14346
14347         Optimize this loop.
14348
14349 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
14350
14351         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
14352           PostQuitMessage state.
14353         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
14354
14355 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
14356
14357         * Application.cs: Our constructor will never get called, move 
14358           initialization to fields; fixes bug #75933
14359
14360 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
14361
14362         * FileDialog.cs :
14363                 - Allow files to be selected properly using file name
14364                 combo box.
14365                 - Add ability to change diretory (absolute / relative)
14366                 using file name combo box.
14367
14368 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
14369          
14370         * ListBox.cs: 
14371                 - Fixes Multicolumn listboxes item wrong calculations
14372                 - Allows to click when only one item is in the listbox
14373                 - Fixes crash when no items using keyboard navigation
14374
14375 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
14376
14377         * ComboBox.cs: Reverted almost everything from the latest patch which
14378           broke ComboBox
14379
14380 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
14381         
14382         * ToolTip.cs:
14383                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
14384         * ComboBox.cs:
14385                 - When DropDownStyle is Simple, it does not show scrollbar 
14386                 to the last item of the list.
14387                 - When DropDownStyle is Simple, it crashed when the list was 
14388                 scrolled down with the down cursor key.
14389                 - Fixed a bug that when DropDownStyle is DropDownList, the 
14390                 selected item was not shown.
14391                 - The position of the selected item was not preserved when 
14392                 the next dropdown happened.
14393         * ThemeWin32Classic.cs:
14394                 - Items were wrapped at the right end.
14395         * CheckedListBox.cs:
14396                 - Fixed Add method
14397         * ListBox.cs:
14398                 - Items should be fully shown.
14399                 - When resizing and vertical scrollbar disappeared, the item 
14400                 of index 0 should be on the top of the list.
14401                 - GetItemRectangle should consider the size of ver. scrollbar
14402         * StatusBar.cs:
14403                 - SizingGrip area should not be allocated when it is not 
14404                 displayed.
14405                 - Now it reflects MinWidth of the containing panel and 
14406                 fixed a crash that happens when its width becomes so small.
14407
14408 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
14409
14410         * CheckedListBox.cs: Fixes bug 76028
14411         * ListBox.cs: Fixes bug 76028
14412
14413 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
14414
14415         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
14416         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
14417
14418 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
14419
14420         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
14421
14422 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
14423
14424         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
14425
14426 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
14427
14428         * IRootGridEntry.cs: Added
14429         * PropertyGridCommands.cs: Added
14430         * PropertiesTab.cs: Added missing methods and property
14431         * PropertyGridView.cs: Made class internal
14432         * PropertyGridTextBox.cs: Made class internal
14433
14434 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
14435
14436         * MimeIcon.cs: Try to check some other environment variables
14437           if "DESKTOP_SESSION" returns "default"
14438
14439 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
14440
14441         * ThemeNice.cs: Corrected background colors (e.g. menus)
14442         * ColorDialog.cs: Use correct background colors for controls
14443
14444 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
14445
14446         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
14447
14448 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
14449
14450         * RichTextBox.cs: Added initial implementation
14451         * lang.cs: Removed. Was accidentally checked in long time ago
14452         * TODO: Removed. Contents were obsolete
14453
14454 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
14455                                                                                 
14456         * PropertiesTab.cs : Added
14457
14458 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
14459                                                                                 
14460         * PropertyGrid.cs : Update
14461         * PropertyGridView.cs : Update
14462         * System.Windows.Forms.resx : Added images and strings
14463
14464 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
14465
14466         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
14467  
14468 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
14469
14470         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
14471           a busy loop right after the Ungrab the X11 display is otherwise 
14472           blocked
14473
14474 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
14475
14476         * ThemeWin32Classic.cs: Optimise the use of clipping
14477
14478 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
14479
14480         * DataGrid.cs: fixes recursion bug
14481
14482 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
14483
14484         * ThemeNice.cs: 
14485           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
14486           - Cleanup
14487
14488 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
14489
14490         * ThemeNice.cs: Draw nice ProgressBars
14491
14492 2005-09-01  Miguel de Icaza  <miguel@novell.com>
14493
14494         * VScrollBar.cs: Another buglet found by Aaron's tool. 
14495
14496         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
14497         bug finder.
14498
14499 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
14500
14501         * ThemeNice.cs:
14502           - Added nicer menu drawing
14503           - Updated DrawTab
14504           - some refactoring
14505
14506 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
14507
14508         * CreateParams.cs (ToString): Made output match MS
14509         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
14510             handle is already created (to avoid forcing window creation)
14511         * XplatUIX11.cs: Set window text to caption after creating window,
14512           in case Text was set before window was created
14513         * Form.cs: Use this.Text instead of a static string as caption
14514
14515 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
14516
14517         * NotifyIcon.cs: Don't set the window to visible; this screws
14518           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
14519           OnPaint without a bitmap)
14520         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
14521           happen very often anyway; we could add the check to the WM_PAINT 
14522           event generation code
14523
14524 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
14525
14526         * NotifyIcon.cs: Fill the icon area with a background color, to 
14527           avoid 'residue' when transparent icons are drawn
14528         * XplatUIX11.cs:
14529           - Handle whole_window == client_window when destroying windows
14530           - SystrayAdd(): Set client_window to whole_window value to
14531             get mouse and other events passed to NotifyIcon
14532
14533 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
14534
14535         * Form.cs: Set proper default for Opacity property
14536         * NotifyIcon.cs:
14537           - ShowSystray(): Don't bother creating telling the OS
14538             about the systray item if no icon is provided
14539           - Now handles WM_NCPAINT message to deal with whole/client window
14540             split
14541           - Create window as visible to not get caught by Expose optimization
14542         * Hwnd.cs: Removed debug message
14543         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
14544           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
14545             PaintEventStart/End to use new client argument
14546         * TextBoxBase.cs:
14547           - Commented out debug messages
14548           - Switched PaintEventStart/End to use new client argument
14549         * XplatUI.cs: Added client window bool to PaintEventStart()/
14550           PaintEventEnd() calls, to support drawing in non-client areas
14551         * XplatUIDriver.cs: 
14552           - Added client window bool to PaintEventStart()/PaintEventEnd() 
14553             calls, to support drawing in non-client areas
14554           - Added conditional compile to allow using MWF BeginInvoke 
14555             on MS runtime
14556         * XplatUIX11.cs:
14557           - Added some conditional debug output
14558           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
14559             whole/client window split
14560           - Implemented handling of client argument to PaintEventStart()/End()
14561         * Control.cs:
14562           - Throw exception if BeginInvoke() is called and the window handle
14563             or one of the window's parent handles is not created
14564           - Added conditional compile to allow using MWF BeginInvoke on
14565             MS runtime
14566           - get_Parent(): Only sets parent if handle is created. This avoids
14567             forcing window handle creation when parent is set.
14568           - Now fires Layout and Parent changed events in proper order
14569           - Switched to use Handle instead of window.Handle for Z-Order setting,
14570             the get_Parent() patch above causes us to possibly get null for 'window'
14571           - Implemented handling of client argument to PaintEventStart()/End()
14572           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
14573             default handling)
14574           - Now sends a Refresh() to all child windows when Refresh() is called
14575
14576 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
14577
14578         * Form.cs: Added (non-functional) Opacity property
14579         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
14580
14581 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
14582         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
14583           use export MONO_THEME=nice to activate it.
14584           Currently supported controls:
14585           - Button
14586           - ComboBox
14587           - ScrollBar
14588           - TabControl (TabAlignment.Top only, other will follow)
14589         * ThemeEngine.cs: Add theme nice
14590         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
14591           if enabled
14592
14593 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
14594
14595         * Splitter.cs: Resize docked control and its neighbor.
14596
14597 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
14598         -- Making Windows with Menus layout correctly --
14599         * Form.cs : The first leg of the fix
14600                 Menu setter - adjust Client Size as needed to make space for the menu
14601                 SetClientSizeCore - doesn't call base version to be able to pass the 
14602                         menu handle to XplatUI.CalculateWindowRect
14603         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
14604         * XplatUIX11.cs: The critical second leg of the fix
14605                 GetWindowPos needs to use a recalculated client_rect
14606                 so that resizing the window doesn't break layout of child controls. 
14607                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
14608                 Lots of \t\n killed
14609
14610 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
14611
14612         * Label.cs: Now properly recalculates width and height on Font and Text
14613           changes if AutoSize is set
14614
14615 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
14616         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
14617
14618 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
14619
14620         * ImageList.cs: Makes ToString method compatible with MS
14621
14622 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
14623
14624         * MenuAPI.cs: fixes bug 75716
14625
14626 2005-08-11 Umadevi S <sumadevi@novell.com>
14627         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
14628
14629 2005-08-11 Umadevi S <sumadevi@novell.com>
14630         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
14631
14632 2005-08-10  Umadevi S <sumadevi@novell.com>
14633         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
14634
14635 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
14636
14637         * Menu.cs: fixes bug 75700
14638         * MenuAPI.cs: fixes navigation issues
14639
14640 2005-08-09  Umadevi S <sumadevi@novell.com>
14641         * CheckedListBox.cs - simple fix for GetItemChecked.
14642
14643 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
14644
14645         * ComboBox.cs: Serveral fixes
14646         * ListBox.cs: Serveral fixes
14647
14648 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
14649
14650         * ComboBox.cs: Fixes FindString methods and GetItemHeight
14651         * ListBox.cs: Fixes FindString methods
14652
14653 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
14654
14655         * DataGrid.cs: fixes bugs exposed by new tests
14656
14657 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
14658
14659         * Mime.cs: Compile Mono assembly references only if compiling
14660           with Mono (Allows to build with VS.Net again)
14661
14662 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
14663
14664         * Control.cs (PaintControlBackground): Draw background image
14665         corrrectly.
14666         (CheckForIllegalCrossThreadCalls): Stubbed.
14667         
14668         * Form.cs (OnCreateControl): Center when should be centered.
14669         
14670         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
14671
14672 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
14673
14674         * Binding.cs: Binding to properties should be case unsensitive
14675
14676 2005-07-18 vlindos@nucleusys.com
14677
14678         * DataGrid.cs: fixes setmember order
14679
14680 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
14681
14682         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
14683         * FileDialog.cs: FileDialog is now resizable and uses the new
14684           MimeIconEngine
14685
14686 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
14687
14688         * DataGridTextBoxColumn.cs: default value
14689         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
14690         * GridTableStylesCollection.cs: fixes checking MappingName
14691         * DataGridDrawingLogic.cs: fixes drawing logic issues
14692         * DataSourceHelper.cs: rewritten to make compatible with more data sources
14693         * DataGrid.cs: fixes    
14694
14695 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
14696
14697         * MimeGenerated.cs: Use case sensitive comparer for
14698           NameValueCollections
14699
14700 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
14701
14702         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
14703         * ThemeWin32Classic.cs: bug fixes, code refactoring
14704         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
14705         * DataGrid.cs: bug fixes, code refactoring
14706         * DataGridTextBox.cs: bug fixes, code refactoring
14707         * DataGridColumnStyle.cs:  bug fixes, code refactoring
14708         * Theme.cs:  bug fixes, code refactoring
14709
14710 2005-07-01  Peter Bartok  <pbartok@novell.com> 
14711
14712         * TextControl.cs: Quick fix for the reported crash on ColorDialog
14713           and other text box usage
14714
14715 2005-07-01  Jackson Harper  <jackson@ximian.com>
14716
14717         * TabControl.cs: Make sure the bottom of the tab covers the pages
14718         border.
14719
14720 2005-06-30  Peter Bartok  <pbartok@novell.com> 
14721
14722         * Form.cs (ShowDialog): Assign owner of the dialog
14723         * TextBoxBase.cs: Always refresh caret size when deleting, caret
14724           might have been moved to a tag with different height
14725
14726 2005-06-30  Jackson Harper  <jackson@ximian.com>
14727
14728         * Form.cs: Don't create an infinite loop when setting focus
14729         * MenuItem.cs: Don't dirty the parents if we don't have any
14730
14731 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
14732
14733         * LibSupport.cs: Rename
14734
14735 2005-06-29  Peter Bartok  <pbartok@novell.com>
14736
14737         * TextBoxBase.cs: Re-align caret after deleting a character
14738         * TextControl.cs:
14739           - DeleteChars(): Ensure that tag covers the provided position
14740           - StreamLine(): Drop reference for dropped tag
14741
14742 2005-06-29  Peter Bartok  <pbartok@novell.com> 
14743
14744         * TextControl.cs: 
14745           - Selections now work properly, anchoring at the initial location
14746             and properly extending in either direction (SetSelectionToCaret(),
14747             SetSelectionStart() and SetSelectionEnd())
14748           - No longer redraws the whole control on selection change, now
14749             calculates delta between previous and new selection and only
14750             invalidates/redraws that area
14751           - Fixed FindPos() math off-by-one errors
14752           - Changed DeleteChars() to verify the provided tag covers the
14753             provided position, selections may have a tag that doesn't cover
14754             the position if the selection is at a tag border
14755           - Fixed off-by-one errors in DeleteChars()
14756           - Added missing streamlining check in DeleteChars() to remove
14757             zero-length tags
14758           - Implemented Invalidate() method, now properly calculates exposures
14759             between two given lines/positions
14760           - Implemented SetSelection()
14761           - Obsoleted and removed FixupSelection()
14762           - Improved RecalculateDocument() logic, removing code duplication
14763
14764 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14765
14766         * LibSupport.cs: changes to match different input/output arguments.
14767
14768 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
14769
14770         * LibSupport.cs: added libsupport.so init routine.
14771
14772 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
14773         
14774         * ControlBindingsCollection.cs
14775                 - Throws an exception on null datasource when adding
14776                 - Checks for duplicated bindings when adding
14777
14778 2005-06-28  Jackson Harper  <jackson@ximian.com>
14779
14780         * TreeView.cs (OnKeyDown): Support left and right properly
14781         (navigates as well as expanding and collapsing.
14782         - Add support for Multiply, this expands all the selected nodes
14783         children.
14784         - Fix some tabbing.
14785
14786 2005-06-28  Jackson Harper  <jackson@ximian.com>
14787
14788         * TreeView.cs: Implement keyboard navigation, currently supports,
14789         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
14790         support for toggling checkboxes with the space bar.
14791
14792 2005-06-28  Jackson Harper  <jackson@ximian.com>
14793
14794         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
14795         tree.
14796
14797 2005-06-28  Jackson Harper  <jackson@ximian.com>
14798
14799         * TreeView.cs: Add missing event.
14800
14801 2005-06-27  Peter Bartok  <pbartok@novell.com> 
14802
14803         * TextControl.cs:
14804           - Made line ending size configurable (now allows for counting 
14805             lineendings as \n or \r\n)
14806           - Added margin to viewport to keep caret visible on right side
14807           - Fixed translation routines for line/pos to documentpos to consider
14808             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
14809           - Fixed some line-endings to be unix style
14810           - Fixed Document.FormatText to perform it's calculations 1-based
14811           - Added descriptions for a few methods that might otherwise get 
14812             used wrong
14813           - Added NOTE section with some basic conventions to remember at 
14814             the top of the file
14815           - Major fixup for RichTextBox selection drawing:
14816             * Fixed crashes when multiple tags on a single line were selected
14817             * fixed selection box drawing not overlaying text
14818             * fixed bogus offset calculation for tags not starting at index 1
14819             * Switched behaviour from using multiple Substrings of a 
14820               StringBuilder.ToString() to using multiple 
14821               StringBuilder.ToString(start, length) statements, hoping this is
14822               faster (kept original version commented out in the code, in case
14823               original version was faster)
14824         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
14825           alignment != Left
14826         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
14827           call it as well
14828
14829 2005-06-27  Jackson Harper  <jackson@ximian.com>
14830
14831         * TabControl.cs: Move to the left and right with the arrow
14832         keys. These keys don't cycle beyond first and last like
14833         tab. Refresh all the tabs when scrolling them to the left or
14834         right.
14835
14836 2005-06-27  Jackson Harper  <jackson@ximian.com>
14837
14838         * TabControl.cs:
14839           - ToString: Added method
14840           - CreateParams: Remove TODO and comment
14841           - OnKeyDown: Cycle through bounds properly.
14842           - SelectedIndex: Scroll to the right or left if we need to
14843           display the newly selected tab.
14844
14845 2005-06-23  Jackson Harper  <jackson@ximian.com>
14846
14847         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
14848         set.
14849
14850 2005-06-23  Jackson Harper  <jackson@ximian.com>
14851
14852         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
14853         CTRL-SHIFT-TAB, and HOME, END are there any others?
14854
14855 2005-06-23  Jackson Harper  <jackson@ximian.com>
14856
14857         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
14858
14859 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
14860         
14861         * DataGridTextBoxColumn.cs: fixes and enhancements
14862         * ThemeWin32Classic.cs: fixes and enhancements
14863         * DataGridBoolColumn.cs:  fixes and enhancements
14864         * DataGridDrawingLogic.cs:  fixes and enhancements
14865         * CurrencyManager.cs: fixes and enhancements
14866         * DataGrid.cs: fixes and enhancements
14867         * DataGridColumnStyle.cs:  fixes and enhancements
14868
14869 2005-06-22  Jackson Harper  <jackson@ximian.com>
14870
14871         * TabControl.cs: Add some missing methods that just call into the
14872         base. Make the TabPageCollection's IList interface behave in the
14873         same manner as the MS implementation.
14874
14875 2005-06-22  Peter Bartok  <pbartok@novell.com> 
14876
14877         * TextControl.cs: Added sanity check
14878         * TextBoxBase.cs: 
14879           - Fixed wrapping behaviour, don't set wrap on single line controls
14880             (this fixes the breakage of colordialog introduced in an earlier
14881              checkin)
14882           - Added rudimentary support for autoscrolling right-aligned controls
14883             (still needs fixing, also, center alignment scroll is missing)
14884
14885 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
14886         
14887         * ScrollBar.cs: Fixes thumbpos on Maximum values
14888
14889 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
14890         
14891         * PropertyGridView.cs: Pass context information to UITypeEditors 
14892
14893 2005-06-21  Peter Bartok  <pbartok@novell.com> 
14894
14895         * TextBoxBase.cs:
14896           - Now calling PositionCaret with absolute space coordinates
14897           - Enabled vertical scrolling
14898           - Better tracking of scrollbar changes, tied into WidthChange
14899             event
14900           - Improved cursor tracking
14901           - Removed debug output
14902         * TextControl.cs:
14903           - PositionCaret coordinates are now works in absolute space, not 
14904             the canvas
14905           - Improved tracking of document size
14906           - Added events for width and height changes
14907
14908 2005-06-21  Peter Bartok  <pbartok@novell.com>
14909
14910         * Form.cs: Set focus to active control when form is activated
14911         * TextControl.cs: 
14912           - Added word-wrap functionality to RecalculateLine() 
14913           - Added some short function descriptions for VS.Net to aid in
14914             writing dependent controls
14915           - Added Caret property, returning the current coords of the caret
14916           - Added ViewPortWidth and ViewPortHeight properties
14917           - Added Wrap property
14918           - Added CaretMoved event
14919           - Removed some old debug code
14920           - Split() can now create soft splits
14921           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
14922           - Added method to format existing text
14923           - Fixed size/alignment calculations to use viewport
14924           - RecalculateDocument now can handle changing line-numbers while
14925             calculating lines
14926
14927         * TextBox.cs:
14928           - Added some wrap logic, we don't wrap if alignment is not left
14929           - Added casts for scrollbar var, base class switched types to
14930             also support RichTextBoxA
14931           - Implemented handling of scrollbar visibility flags
14932
14933         * TextBoxBase.cs:
14934           - Switched scrollbars type to RichTextBoxScrollBars to support
14935             RichTextBox
14936           - Added tracking of canvas width/height
14937           - Switched scrollbars to be not selectable (to keep focus on text)
14938           - Added central CalculateDocument() method to handle all redraw
14939             requirements
14940           - Added ReadOnly support
14941           - Added WordWrap support
14942           - Fixed handling of Enter key (we now treat it as a DialogKey)
14943           - Fixed caret positioning when h or v scroll is not zero
14944           - Fixed placing/generation of vertical scrollbar
14945           - Added CalculateScrollBars() method to allow updating scrollbar
14946             limits and visibility
14947           - Fixed handling of horizontal scroll
14948           - Added handling of vertical scroll
14949           - Implemented auto-'jump' when caret moves to close to a left or
14950             right border and there is text to be scrolled into view (currently
14951             there's the potential for a stack overflow, until a bug in
14952             scrollbar is fixed)
14953
14954 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
14955         
14956         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
14957
14958 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
14959
14960         * Mime.cs:
14961         - added inodes.
14962         - return application/x-zerosize for files with size zero
14963           (if no extension pattern matches).
14964         - check matches collection for strings too.
14965         - return only the first mime type if the name value
14966           collection has more than one mime type.
14967
14968 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
14969         
14970         * PropertyGrid.cs: Cleaned up some TODOs
14971         * PropertyGridView.cs: Added support for UITypeEditors
14972
14973 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
14974         
14975         * DataGrid.cs: clears cached value
14976
14977 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
14978
14979         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
14980         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
14981         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
14982         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
14983         
14984 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
14985
14986         * ThemeWin32Classic.cs: fixes colour
14987
14988 2005-06-15  Peter Bartok  <pbartok@novell.com>
14989
14990         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
14991         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
14992         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
14993         * Control.cs: Added some MWFCategory and MWFDescription attributes
14994         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
14995
14996 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
14997
14998         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
14999         usage
15000
15001 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
15002
15003         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
15004         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
15005         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
15006         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
15007         * DataGrid.cs: default datagrid settings for Default Styles, fixes
15008         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
15009
15010 2005-06-13  Jackson Harper  <jackson@ximian.com>
15011
15012         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
15013         isn't printed when the user enables dropping. (X11 does accept
15014         drops).
15015         
15016 2005-06-13  Jackson Harper  <jackson@ximian.com>
15017
15018         * TreeView.cs: Remove some TODOS.
15019
15020 2005-06-13  Jackson Harper  <jackson@ximian.com>
15021
15022         * Form.cs: Hook into the mdi framework.
15023         * MdiClient.cs: Use the base control collections add method so
15024         parents get setup correctly. Set the default back colour and dock
15025         style.
15026         * MdiChildContext.cs: New class, this bad actor handles an
15027         instance of an MDI window. Right now there is only basic
15028         support. You can drag, close, and resize windows. Minimize and
15029         Maximize are partially implemented.
15030
15031 2005-06-13  Jackson Harper  <jackson@ximian.com>
15032
15033         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
15034         freaky when both vals are negative. NOTE: There are probably other
15035         places in XplatUIX11 that this needs to be done.
15036
15037 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
15038
15039         * DataGrid.cs: implement missing methods, move KeyboardNavigation
15040         * DataGridColumnStyle.cs: fixes signature
15041
15042 2005-06-12  Jackson Harper  <jackson@ximian.com>
15043
15044         * XplatUIX11.cs: Use sizing cursors similar to the ones on
15045         windows.
15046
15047 2005-06-11  Jackson Harper  <jackson@ximian.com>
15048
15049         * StatusBarPanel.cs: Signature cleanups. Implement
15050         BeginInit/EndInit.
15051
15052 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
15053
15054         * DataGridTextBoxColumn.cs: Honors aligment
15055         * GridColumnStylesCollection.cs: Contains is case unsensitive
15056         * GridTableStylesCollection.cs: several fixes
15057         * DataGridTableStyle.cs: default column creation
15058         * DataGridDrawingLogic.cs: fixes
15059         * CurrencyManager.cs: ListName property
15060         * DataGrid.cs: multiple styles support
15061         * DataGridColumnStyle.cs: fixes
15062         
15063
15064 2005-06-10  Peter Bartok  <pbartok@novell.com>
15065
15066         * Control.cs(Select): Moved SetFocus call to avoid potential
15067           loops if controls change the active control when getting focus
15068         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
15069           the up/down buttons
15070
15071 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
15072
15073         * ImageListConverter.cs: Implemented
15074
15075 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
15076
15077         * MonthCalendar.cs: Wired in NumericUpDown control for year
15078
15079 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
15080
15081         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
15082           DoubleClick events, since they are not meant to be fired.
15083
15084 2005-06-09  Peter Bartok  <pbartok@novell.com>
15085
15086         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
15087           Jonathan's standalone controls into MWF, implemented missing
15088           events, attributes and methods; added xxxAccessible classes
15089         * AccessibleObject.cs: Made fields internal so other classes
15090           can change them if needed
15091
15092 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
15093
15094         * UpDownBase.cs: Complete implementation
15095         * NumericUpDown.cs: Complete implementation
15096         * DomainUpDown.cs: Complete implementation
15097
15098 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
15099
15100         * DataGridTextBoxColumn.cs: drawing fixes
15101         * DataGridCell.cs: fixes ToString method to match MSNet
15102         * DataGridTableStyle.cs: fixes
15103         * DataGridBoolColumn.cs: fixes, drawing
15104         * DataGridDrawingLogic.cs: fixes, new methods
15105         * DataGridTextBox.cs: Keyboard and fixes
15106         * DataGrid.cs:
15107                 - Keyboard navigation
15108                 - Scrolling fixes
15109                 - Row selection (single, multiple, deletion, etc)
15110                 - Lots of fixes
15111         
15112 2005-06-07  Jackson Harper  <jackson@ximian.com>
15113
15114         * ThemeWin32Classic.cs: Clear the background area when drawing
15115         buttons.
15116
15117 2005-06-06  Peter Bartok  <pbartok@novell.com>
15118
15119         * ImageListStreamer.cs: Fixed signature for GetData
15120         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
15121         * ComboBox.cs:
15122           - Added missing ChildAccessibleObject class
15123           - Added missing OnXXXFocus overrides, switched to using those
15124             instead of the event handler
15125         * Control.cs:
15126           - Added Parent property for ControlAccessibleObject
15127           - Fixed signatures
15128           - Fixed attributes
15129           - Added ResetBindings()
15130         * ListBindingConverter.cs: Implemented some methods
15131         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
15132         * ImageList.cs: Implemented basic handle scheme, removed TODOs
15133         * ContainerControl.cs: Fixed signature, now subscribing to the
15134           ControlRemoved event instead of overriding the handler, LAMESPEC
15135         * CurrencyManager.cs: Added missing attribute
15136         * MonthCalendar.cs: Added missing properties
15137
15138 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
15139
15140         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
15141         
15142 2005-06-06  Gaurav Vaish and Ankit Jain
15143
15144         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
15145         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
15146         
15147 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
15148
15149         * Control.cs: fixes CreateParams Width / Height.
15150
15151 2005-06-05  Peter Bartok  <pbartok@novell.com>
15152
15153         * Win32DnD.cs: Removed compilation warnings
15154
15155 2005-06-05  Peter Bartok  <pbartok@novell.com>
15156
15157         * Control.cs (CreateParams): Since we don't know if one of the
15158           properties we use is overridden, lets make sure if we fail accessing
15159           we continue with a backup plan
15160
15161 2005-06-05  Peter Bartok  <pbartok@novell.com>
15162
15163         * Win32DnD.cs:
15164           - Removed debug output
15165           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
15166             struct
15167           - Plugged resource leak
15168         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
15169           MS size
15170
15171 2005-06-05  Peter Bartok  <pbartok@novell.com>
15172
15173         * XplatUIWin32.cs: Removed DnD code
15174         * Win32DnD.cs: Implemented drop source and drop target functionality
15175
15176 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
15177
15178         * UpDownBase.cs: remove duplicate addition of event, enable some code
15179         that was commented out.
15180         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
15181         Validate input when a key is pressed. It works fine now for every
15182         combination of Hexadecimal. Only missing some drawing love when sharing
15183         space with other controls.
15184
15185 2005-06-04  Peter Bartok  <pbartok@novell.com>
15186
15187         * Control.cs:
15188           - We need to pass a window for DragDrop, so enable callback events
15189           - Added DnD callback events when being a DragSource
15190         * XplatUI.cs (StartDrag): Added window handle argument
15191         * XplatUIDriver.cs (StartDrag): Added window handle argument
15192         * QueryContinueDragEventArgs: Made fields internally accessible so
15193           drivers can set them
15194         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
15195           can set them
15196
15197 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
15198
15199         * DataGridTextBoxColumn.cs: column text editing
15200         * DataGridTableStyle.cs: Respect columns styles created by the user
15201         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
15202         * DataGridBoolColumn.cs: bool column editing
15203         * DataGrid.cs: fixes to scrolling, properties, etc
15204         * DataGridTextBox.cs: handle keyboard
15205         * DataGridColumnStyle.cs: fixes
15206
15207 2005-06-02  Jackson Harper  <jackson@ximian.com>
15208
15209         * ImageListStreamer.cs: Somewhat broken implementation of
15210         GetObjectData. The RLE needs some work to match MS properly.
15211
15212 2005-06-02  Jackson Harper  <jackson@ximian.com>
15213
15214         * X11Dnd.cs: Attempting to keep at least one file in MWF
15215         monostyled.
15216
15217 2005-06-02  Peter Bartok  <pbartok@novell.com>
15218
15219         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
15220           that way
15221
15222 2005-06-02  Peter Bartok  <pbartok@novell.com>
15223
15224         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
15225         * XplatUI.cs: Added DoDragDrop() method
15226         * XplatUIDriver.cs: Added DoDragDrop() method
15227
15228 2005-06-02  Jackson Harper  <jackson@ximian.com>
15229
15230         * Splitter.cs: Implement BorderStyle.
15231
15232 2005-06-02  Jackson Harper  <jackson@ximian.com>
15233
15234         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
15235         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
15236         X11 using XDND.
15237
15238 2005-06-02  Peter Bartok  <pbartok@novell.com>
15239
15240         * DataObject.cs:
15241           - Added Data setter
15242           - Fixed broken insertion code for SetData, now also
15243             overwrites any existing entry of the same format name
15244         * Hwnd.cs: Added list of pointers that automatically gets
15245           freed when the window is disposed
15246         * XplatUI.cs: Call driver initialization method when loading
15247           a driver
15248         * Control.cs:
15249           - OnDragLeave takes EventArgs, not DragEventArgs
15250           - Added setting of WS_EX_ACCEPTFILES style when dropping is
15251             supported
15252           - Forces style update when drop state changes
15253         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
15254           not perfect since we cannot (yet) call the IDataObject.GetData()
15255           method, we keep getting 0x80004005 error, dunno why)
15256
15257 2005-06-02  Peter Bartok  <pbartok@novell.com>
15258
15259         * DragEventArgs.cs: Make fields internal so we can cache the
15260           object and re-set the fields from XplatUI
15261
15262 2005-06-02  Jackson Harper  <jackson@ximian.com>
15263
15264         * Control.cs: Add some internal methods so the DnD subsystem can
15265         raise DnD events. Also call into the driver when AllowDrop is set.
15266         * XplatUI.cs:
15267         * XplatUIDriver.cs: New method for setting whether or not a window
15268         is allowed to accept drag and drop messages.
15269                 
15270 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
15271         
15272         * ScrollBar.cs: Make sure that values sent in Scroll events
15273         are always between Maximum and Minimum.
15274
15275 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
15276
15277         * Menu.cs: Call MenuChanged when menuitem visibility has been
15278         changed.
15279         * MenuItem.cs: Rebuild menu when item is (not) visible.
15280         * MainMenu.cs: MainMenu has special MenuChanged.
15281         * Theme.cs: Caption and FrameBorderSize are not fixed.
15282         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
15283         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
15284         * XplatUIX11.cs,
15285         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
15286         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
15287
15288 2005-05-30  Jackson Harper  <jackson@ximian.com>
15289
15290         * DataFormat.cs: We can't statically initialize this stuff because
15291         it calls into the xplatui and could create a loop. So we lazy init
15292         it.
15293
15294 2005-05-28  Jackson Harper  <jackson@ximian.com>
15295
15296         * Control.cs: Proper implementation of Product(Name/Version).
15297
15298 2005-05-27  Jackson Harper  <jackson@ximian.com>
15299
15300         * DataObject.cs: Dont crash if no data is found.
15301
15302 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
15303         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
15304                 as per status page, guessing it should be set to true
15305
15306 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
15307
15308         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
15309         * DataGridTableStyle.cs: set proper formatting text, def header text
15310         * ThemeWin32Classic.cs: new themable paramaters
15311         * DataGridBoolColumn.cs: paint check box, get data, fixes
15312         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
15313         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
15314         * DataGridColumnStyle.cs: fixes
15315         * Theme.cs: new themable paramaters
15316                 
15317 2005-05-26  Peter Bartok  <pbartok@novell.com>
15318
15319         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
15320
15321 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
15322         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
15323
15324 2005-05-24  Peter Bartok  <pbartok@novell.com>
15325
15326         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
15327           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
15328           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
15329           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
15330           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
15331           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
15332           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
15333           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
15334           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
15335           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
15336           missing attributes, etc
15337         * DataGridPreferredColumnWidthTypeConverter.cs: Added
15338
15339 2005-05-24  Peter Bartok  <pbartok@novell.com>
15340
15341         * Help.cs: Added, implemented trivial functions, throws up MessageBox
15342           when user tries to get help
15343         * DataObject.cs, DataFormats.cs, LinkArea.cs,
15344           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
15345           to suppress warnings
15346         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
15347           avoid unreachable code warning
15348
15349 2005-05-20  Peter Bartok  <pbartok@novell.com>
15350
15351         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
15352
15353 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
15354
15355         * DataGridTextBoxColumn.cs: Basic painting methods
15356         * DataGridTableStyle.cs: Set table style in the column
15357         * ThemeWin32Classic.cs: Use Theme for colors
15358         * DataGridDrawingLogic.cs: Implement more drawing
15359         * DataGrid.cs: drawing, theming, enhacements, fixes
15360         * DataGridColumnStyle.cs: fixes, drawing
15361         * Theme.cs: theming for Datagrid
15362
15363 2005-05-20  Peter Bartok  <pbartok@novell.com>
15364
15365         * Cursor.cs: Implemented GetObjectData() method
15366
15367 2005-05-20  Peter Bartok  <pbartok@novell.com>
15368
15369         * Cursors.cs: Added setting of cursor name
15370         * Cursor.cs:
15371           - Implemented constructors
15372           - Implemented Draw and DrawStretched
15373           - Implemented Current property
15374           - Implemented == and != operators
15375           - Implemented Dispose()
15376           - Implemented ToString
15377           - Added missing attributes
15378         * XplatUIX11.cs:
15379           - Added missing reset for OverrideCursor when DoEvents is called
15380           - Fixed creation of cursor, logic was wrong
15381         * XplatUIWin32.cs:
15382           - Added missing reset for OverrideCursor when DoEvents is called
15383           - Fixed creation of cursor, bit arrays were swapped
15384         * Clipboard.cs: Removed obsolete MonoTODO attribute
15385
15386 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
15387
15388         * ComboBox.cs: fixes OnSelectedItemChanged
15389         * ControlBindingsCollection.cs: fixes item range check
15390
15391 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
15392
15393         * UpDownBase.cs:
15394                 - Calc preferred height properly
15395                 - Implement missing properties
15396                 
15397         * NumericUpDown.cs: Implement missing events
15398
15399 2005-05-19  Jackson Harper  <jackson@ximian.com>
15400
15401         * TabControl.cs: New method that resizes the tab pages before
15402         redrawing them. This as needed as the control is double buffered
15403         and sizing will not be recalculated unless ResizeTabPages is
15404         called.
15405         * TabPage.cs: Set base.Text instead of Text in the constructor so
15406         that UpdateOwner does not get called. Use the new Redraw method of
15407         TabControl instead of Refresh so the sizing is recalculated.
15408         * ThemeWin32Classic.cs: Draw the text for button tabs.
15409
15410 2005-05-19  Jackson Harper  <jackson@ximian.com>
15411
15412         * Control.cs: Paint control background images. Fix typo where
15413         PaintControlBackground was not getting called correctly.
15414
15415 2005-05-19  Peter Bartok  <pbartok@novell.com>
15416
15417         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
15418           I can investigate, apparently I broke FileDialog
15419
15420 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
15421
15422         * AxHost.cs: Some simple properties.
15423         * Control.cs: window must be accessible after ctor.
15424         * Form.cs: Added TransparencyKey property.
15425         * TextBoxBase.cs: Implemented Clear. Text property can be null.
15426         * XplatUIWin32.cs: SetBorderStyle implemented.
15427
15428 2005-05-18  Peter Bartok  <pbartok@novell.com>
15429
15430         * DataObject.cs: Entries are not global but particular to the
15431           DataObject, now it behaves that way
15432         * XplatUIWin32.cs: Implemented Clipboard methods
15433         * Clipboard.cs: Implemented
15434         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
15435         * XplatUIOSX.cs: Updated to final clipboard prototypes
15436         * XplatUIX11.cs: Implemented Clipboard methods
15437         * XplatUIDriver.cs: Updated to final clipboard prototypes
15438         * XplatUIStructs.cs:
15439           - Added BITMAPINFOHEADER struct
15440           - Added ClipboardFormats enum
15441         * X11Structs.cs:
15442           - Added ClipboardStruct
15443           - Added Atom enum items for clipboard types
15444           - Fixed atom types for Selection event structures
15445         * DataFormats.cs:
15446           - Added internal properties and methods for drivers to enumerate
15447             all known formats
15448           - Switched initialization method to allow drivers to assign their
15449             own IDs even for the MS predefined clipboard IDs
15450         * XplatUI.cs: Updated to final clipboard interface
15451
15452 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
15453         * PropertyGridView.cs: Fixed compiler warnings.
15454
15455 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
15456         * PropertyGrid.cs: Added some event calls
15457         * PropertyGridView.cs: Change drawing code to use double buffering
15458         * PropertyGridTextBox.cs: Changed Text property name
15459         * GridItem.cs: Added Bounds property.
15460         * GridEntry.cs: Added Bounds property.
15461
15462 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
15463
15464         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
15465         since GetType() may not return the correct type if the object is
15466         a remoting proxy.
15467
15468 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
15469
15470         * TreeNodeCollection.cs: fixes get/set item ranges
15471         
15472 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
15473
15474         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
15475                 
15476 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
15477
15478         * ComboBox.cs: Fix item range comparation
15479         * ListView.cs: Fix item range comparation
15480
15481 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
15482
15483         * FontDialog.cs:
15484           - Clear example panel when OnPaint is called
15485           - Better solution for displaying the example panel text
15486           - Select default indexes in the ListBoxes
15487
15488 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
15489
15490         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
15491
15492 2005-05-11  Peter Bartok  <pbartok@novell.com>
15493
15494         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
15495         * SelectionRangeConverter.cs: Implemented
15496         * PropertyGrid.cs: Fixed attribute value
15497         * Control.cs:
15498           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
15499           - Added Sebastien Pouliot's CAS Stack Propagation fixes
15500         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
15501           that's common to all drivers. First methods to go there are
15502           Sebastien Pouliot's CAS Stack Propagation helper methods
15503         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
15504           Sebastien Pouliot for CAS Stack Propagation
15505
15506 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
15507
15508         * OSXStructs.cs:
15509           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
15510
15511 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
15512
15513         * DataGridTextBoxColumn.cs: fixed some members
15514         * GridColumnStylesCollection.cs: indexed column is case insensitive
15515         * DataGridTableStyle.cs: fixes
15516         * ThemeWin32Classic.cs: add new theme parameter
15517         * Theme.cs: add new theme parameter
15518         * DataGridDrawingLogic.cs: Datagrid's drawing logic
15519         * DataGrid.cs: fixes, new internal properties, etc.
15520         * DataGridColumnStyle.cs: allows to set grid value
15521         *
15522
15523 2005-05-10  Peter Bartok  <pbartok@novell.com>
15524
15525         * AccessibleObject.cs:
15526           - Removed MonoTODO attribute on help, method is correct
15527           - Fixed Bounds property
15528         * AxHost.cs: Moved MonoTODO
15529         * ButtonBase.cs: Now setting AccessibleObject properties
15530         * RadioButton.cs: Setting proper AccessibleObject role
15531         * CheckBox.cs: Setting proper AccessibleObject role
15532         * ControlBindingsCollection.cs: Added properties, methods and attributes
15533         * DataFormats.cs: Fixed awkward internal API, and changed to enable
15534           userdefined DataFormats.Format items as well
15535         * ListControl.cs: Removed data_member from the public eye
15536         * OpenFileDialog.cs:
15537           - Made class sealed
15538           - Added missing attributes
15539         * SaveFileDialog.cs: Added missing attributes
15540         * ImageListStreamer.cs: Fixed code that caused warnings
15541         * LinkLabel.cs: Removed unreachable code
15542         * TreeView.cs: Fixed code that caused warnings
15543         * PropertyGridView.cs: Fixed code that caused warnings
15544         * GridColumnStylesCollection.cs: Added missing attributes
15545         * GridTableStylesCollection: Added missing attribute
15546         * PropertyManager: Added .ctor
15547         * SecurityIDType: Added
15548         * DataObject.cs: Implemented class
15549         * LinkArea.cs: Added missing attribute
15550
15551 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
15552
15553         * RadioButton.cs: call base method to allow to fire OnClick event
15554         * UpDownBase.cs: OnMouseUp call base method
15555         * CheckedListBox.cs: call base method before returning
15556         * TrackBar.cs: call base method before returning
15557         
15558
15559 2005-05-10  Peter Bartok  <pbartok@novell.com>
15560
15561         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
15562           for messages
15563
15564 2005-05-10  Peter Bartok  <pbartok@novell.com>
15565
15566         * DataFormats.cs: Implemented
15567         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
15568           XplatUIX11.cs: Added Clipboard APIs
15569         * XplatUIWin32.cs: Implemented Clipboard APIs
15570         * FolderBrowserDialog.cs: Added missing event, attributes
15571
15572 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
15573
15574         * CheckBox.cs: call base method to allow to fire OnClick event
15575
15576 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
15577
15578         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
15579
15580 2005-05-06  Peter Bartok  <pbartok@novell.com>
15581
15582         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
15583         * Screen.cs: Implemented
15584         * HelpNavigator.cs: Added
15585         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
15586           property
15587         * HelpProvider.cs: Implemented all we can do until we have a CHM
15588           help library (which means that "What's This" does work now)
15589
15590 2005-05-06  Jackson Harper  <jackson@ximian.com>
15591
15592         * XplatUIX11.cs: Fix waking up the main loop.
15593                 
15594 2005-05-05  Peter Bartok  <pbartok@novell.com>
15595
15596         * XplatUI.cs: Updated revision
15597         * Form.cs: Removed enless loop
15598         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
15599         * Label.cs (OnPaint): Added call to base.OnPaint()
15600         * ToolTip.cs: Made ToolTipWindow reusable for other controls
15601         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
15602         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
15603         * AxHost.cs: Added
15604         * ButtonBase.cs: Moved base.OnPaint() call to end of method
15605         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
15606           to ToolTip.ToolTipWindow for drawing and size methods; this allows
15607           reuse of ToolTipWindow by other controls
15608         * SizeGrip.cs: Moved base.OnPaint() call to end of method
15609         * XplatUIX11.cs: Now clipping drawing area (experimental)
15610         * PictureBox.cs: Moved base.OnPaint() call to end of method
15611         * Theme.cs: Fixed ToolTip abstracts to match new format
15612         * ErrorProvider.cs: Implemented
15613
15614 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
15615
15616         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
15617         * LinkLabel.cs:
15618                 - Adds cursors
15619                 - Handles focus
15620                 - Implements LinkBehavior
15621                 - Fixes many issues
15622
15623 2005-05-03  Jackson Harper  <jackson@ximian.com>
15624
15625         * ListView.cs: Calculate the scrollbar positioning on resize and
15626         paint, so they get put in the correct place.
15627
15628 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
15629
15630         * ColorDialogs.cs: The small color panels are now handled by
15631           SmallColorControl. This fixes drawing of the focus rectangle
15632           and adds a 3D border.
15633
15634 2005-05-03  Peter Bartok  <pbartok@novell.com>
15635
15636         * Control.cs: Modified version of Jonathan Chamber's fix for
15637           double-buffering
15638
15639 2005-05-03  Jackson Harper  <jackson@ximian.com>
15640
15641         * ListView.cs: Remove redraw variable. Control now handles whether
15642         or not a redraw needs to be done, and will only raise the paint
15643         event if redrawing is needed.
15644
15645 2005-05-03  Jackson Harper  <jackson@ximian.com>
15646
15647         * Splitter.cs: No decorations for the splitter form. Cache the
15648         hatch brush.
15649
15650 2005-05-03  Jackson Harper  <jackson@ximian.com>
15651
15652         * TreeView.cs: Use dashed lines to connect nodes. Use the
15653         ControlPaint method for drawing the focus rect instead of doing
15654         that in treeview.
15655
15656 2005-05-02  Peter Bartok  <pbartok@novell.com>
15657
15658         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
15659
15660 2005-04-29  Jackson Harper  <jackson@ximian.com>
15661
15662         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
15663         entire image buffer. Just clear the clipping rectangle.
15664
15665 2005-04-29  Jackson Harper  <jackson@ximian.com>
15666
15667         * ThemeWin32Classic.cs: Don't draw list view items that are
15668         outside the clipping rectangle.
15669
15670 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
15671
15672         * ListBox.cs: added horizontal item scroll
15673
15674 2005-04-29  Jackson Harper  <jackson@ximian.com>
15675
15676         * ThemeWin32Classic.cs: Remove some old debug code that was
15677         causing flicker with the new double buffering code.
15678
15679 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
15680
15681         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
15682         behave like combobox and comboboxlist (still not sure if this is
15683         correct though).
15684
15685 2005-04-28  Jackson Harper  <jackson@ximian.com>
15686
15687         * ThemeWin32Classic.cs: Don't fill the middle of progress
15688         bars. This fills areas outside of the clip bounds that don't need
15689         to be filled.
15690
15691 2005-04-28  Jackson Harper  <jackson@ximian.com>
15692
15693         * Control.cs: Don't expose functionality to touch the image buffers.
15694         * ProgressBar.cs:
15695         * ListView.cs: We do not need to (and no longer can) manipulate
15696         the image buffers directly. All of this is handled by Control.
15697
15698 2005-04-28  Peter Bartok  <pbartok@novell.com>
15699
15700         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
15701           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
15702           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
15703
15704 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
15705
15706         * Combobox:
15707                 - Adjust control's height for non-simple comboboxes (bug fix)
15708                 - Remove dead code
15709         * MenuAPI.cs: remove unused var
15710         * ScrollBar.cs: remove unsed var
15711                  
15712         * ListBox.cs: unselect items when clearing
15713
15714 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
15715
15716         * ListControl.cs: honors OnPositionChanged and default Selected Item
15717         * ListBox.cs: unselect items when clearing
15718
15719 2005-04-27  Jackson Harper  <jackson@ximian.com>
15720
15721         * X11Keyboard.cs: Initialize a default keyboard and give a warning
15722         if a "correct" keyboard is not found. This will make us not crash,
15723         but might give some users bad keyboard layouts...seems to be the
15724         same thing rewind does.
15725
15726 2005-04-27  Jackson Harper  <jackson@ximian.com>
15727
15728         * BindingManagerBase.cs: Attach the current/position changed
15729         handlers to their respective events.
15730
15731 2005-04-27  Jackson Harper  <jackson@ximian.com>
15732
15733         * Control.cs: Make sure that the first WM_PAINT does a full draw,
15734         not just a blit.
15735         * ThemeWin32Classic.cs: Don't fill the background for picture
15736         boxes. This could overright user drawing.
15737         * ComboBox.cs: Just fill the clipping rect not the entire client
15738         rect when drawing the background. This prevents pieces of the
15739         image buffer from getting overwritten and is theoretically faster.
15740
15741 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
15742
15743         * ComboBox.cs: Databinding support fixes, fire missing events
15744         * ListControl.cs: implement missing methods and properties, fixes
15745         * ThemeWin32Classic.cs: Databiding support on Drawing
15746         * CheckedListBox.cs: Databinding support fixes, fire missing events
15747         * ListBox.cs: Databinding support fixes, fire missing events
15748         
15749 2005-04-25  Peter Bartok  <pbartok@novell.com>
15750
15751         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
15752
15753 2005-04-25  Jackson Harper  <jackson@ximian.com>
15754
15755         * TreeView.cs: Use the horizontal scrollbars height not width when
15756         determining how much of the client area is available.
15757
15758 2005-04-25  Jackson Harper  <jackson@ximian.com>
15759
15760         * Control.cs: Double buffering is handled differently now. As per
15761         the spec, the extra buffer is created in the WM_PAINT message and
15762         passed down to the control's drawing code.
15763         * GroupBox.cs:
15764         * Label.cs:
15765         * CheckBox.cs:
15766         * ProgressBar.cs:
15767         * RadioButton.cs:
15768         * ColorDialog.cs:
15769         * ComboBox.cs:
15770         * PropertyGridView.cs:
15771         * UpDownBase.cs:
15772         * MessageBox.cs:
15773         * MenuAPI.cs:
15774         * ListView.cs:
15775         * ButtonBase.cs:
15776         * SizeGrip.cs:
15777         * ScrollBar.cs:
15778         * ListBox.cs:
15779         * TrackBar.cs:
15780         * ToolBar.cs:
15781         * PictureBox.cs:
15782         * DateTimePicker.cs:
15783         * StatusBar.cs:
15784         * TreeView.cs: Update to new double buffering system.
15785         * MonthCalendar.cs: Uncomment block, as Capture is now
15786         working. Update to new double buffering
15787         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
15788         * PaintEventArgs.cs: New internal method allows us to set the
15789         graphics object. This is used for double buffering.
15790         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
15791         rectangle. The internal paint_area var has been removed from
15792         StatusBar. The clipping rect should be used instead.
15793         * Theme.cs: Give the PictureBox drawing method a clipping rect.
15794         * TabPage.cs: The RefreshTabs method was removed, so just call the
15795         tab controls Refresh method now.
15796         * TabControl.cs: Update to new double buffering. Make sure the
15797         handle is created before sizing the tab pages, otherwise we will
15798         get stuck in a loop.
15799
15800 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
15801
15802         * LinkLabel.cs: Fix typo, bug #74719; patch
15803           from Borja Sanchez Zamorano
15804
15805 2005-04-22  Jackson Harper  <jackson@ximian.com>
15806
15807         * TreeNode.cs: Implement Handle stuff.
15808         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
15809
15810 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
15811
15812         * DataGridTextBoxColumn.cs: call base constructors, fixes
15813         * GridColumnStylesCollection.cs: missing events, methods, and functionality
15814         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
15815         * DataGridTableStyle.cs: implements create default column styles
15816         * DataGridBoolColumn.cs: which types can handle
15817         * DataGrid.cs: missing methods, fixes, new functionality
15818         * DataGridColumnStyle.cs: fixes
15819
15820 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
15821         * FolderBrowserDialog.cs:
15822         - Use a thread to fill the TreeView
15823         - Adjusted some sizes
15824
15825 2005-04-19  Peter Bartok  <pbartok@novell.com>
15826
15827         * LinkLabel.cs: (Re-)create the pieces when setting the Text
15828           property. Fixes #74360.
15829
15830 2005-04-19  Jackson Harper  <jackson@ximian.com>
15831
15832         * XEventQueue.cs: Lock when getting the lockqueue size.
15833         * PictureBox.cs: Call base OnPaint
15834         
15835 2005-04-19  Peter Bartok  <pbartok@novell.com>
15836
15837         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
15838           messages were no longer being processed (this broke BeginInvoke)
15839
15840           
15841 2005-04-18  Jackson Harper  <jackson@ximian.com>
15842
15843         * TreeView.cs: buglet that caused node images to get drawn
15844         regardless of whether or not they were in the clipping rectangle.
15845
15846 2005-04-18  Jackson Harper  <jackson@ximian.com>
15847
15848         * CurrencyManager.cs: There are four rules for GetItemProperties:
15849         - If the type is an array use the element type of the array
15850         - If the type is a typed list, use the type
15851         - If the list contains an Item property that is not an object, use
15852         that property
15853         - use the first element of the list if there are any elements in
15854         the list.
15855         
15856 2005-04-17  Jackson Harper  <jackson@ximian.oom>
15857
15858         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
15859         click. This handles offsets for scrolling properly and reduces
15860         memory. Also fixed GetNode to not offset now that TopNode works
15861         properly.
15862         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
15863         
15864 2005-04-17  Jackson Harper  <jackson@ximian.com>
15865
15866         * CursorConverter.cs: Initial implementation.
15867
15868 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
15869
15870         * ListControl.cs: work towards complex data binding support on ListControl
15871         * CurrencyManager.cs: work towards complex data binding support on ListControl
15872         * ListBox.cs: work towards complex data binding support on ListControl
15873
15874
15875 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
15876
15877         * GridTableStylesCollection.cs: fixes name and constructor
15878         * DataGridTableStyle.cs: fixes
15879         * DataGridBoolColumn.cs: fixes names and constructors
15880         * DataGrid.cs: define methods and properties. Some init implementations
15881         * DataGridCell.cs: define methods and properties. Some init implementations
15882         * GridTablesFactory.cs: Define methods and properties
15883
15884 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
15885
15886         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
15887         graphics port changes.  We still want the coordinates in global screen
15888         coordinates.
15889
15890 2005-04-14  Jackson Harper  <jackson@ximian.com>
15891
15892         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
15893         check plus minus or checkbox clicks unless those features are enabled.
15894
15895 2005-04-14  Jackson Harper  <jackson@ximian.com>
15896
15897         * TreeView.cs: Add methods for setting the top and bottom visible
15898         nodes. TreeNode::EnsureVisible uses these methods.
15899         * TreeNode.cs: Implement EnsureVisible
15900
15901 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
15902
15903         * Form.cs: Pospone menu assignation if the window has not been created yet
15904         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
15905         size and position
15906
15907 2005-04-12  Jackson Harper  <jackson@ximian.com>
15908
15909         * TreeView.cs: Set the TopNode properly when scrolling
15910         occurs. This has the added benifit of reducing the amount of
15911         walking that needs to be done when drawing. Also removed an old
15912         misleading TODO.
15913         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
15914         
15915 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
15916
15917         * Timer.cs: fixes interval setting when the timer is already enabled
15918         
15919 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
15920
15921         * FolderBrowserDialog.cs: First approach
15922
15923 2005-04-09  Peter Bartok  <pbartok@novell.com>
15924
15925         * FolderBrowserDialog: Added
15926
15927 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
15928
15929         * LinkLabel.cs: move drawing code into the theme
15930         * ThemeWin32Classic.cs: drawing code and painting background bugfix
15931         * Theme.cs: define DrawLinkLabel method
15932
15933 2005-04-05  Jackson Harper  <jackson@ximian.com>
15934
15935         * BindingContext.cs: Use weak references so these bad actors don't
15936         stay alive longer then they need to.
15937
15938 2005-04-05  Jackson Harper  <jackson@ximian.com>
15939
15940         * ListControl.cs: Basic implementation of complex databinding.
15941         * ComboBox.cs:
15942         * ListBox.cs: Add calls to ListControl databinding methods.
15943
15944 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
15945
15946         * FileDialog.cs:
15947           - Don't change PopupButtonState to Normal when the
15948             PopupButton gets pressed several times.
15949           - Renamed ButtonPanel to PopupButtonPanel
15950
15951 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
15952
15953         * ColorDialog.cs: Use cached objects instead of creating them
15954         * LinkLabel.cs: Use cached objects instead of creating them
15955         * Splitter.cs: Use cached objects instead of creating them
15956         * FontDialog.cs: Use cached objects instead of creating them
15957         * PropertyGridView.cs: Use cached objects instead of creating them
15958         * MessageBox.cs: Use cached objects instead of creating them
15959         * FileDialog.cs: Use cached objects instead of creating them
15960         * ThemeWin32Classic.cs: Use cached objects instead of creating them
15961         * TreeView.cs: Use cached objects instead of creating them
15962         
15963 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
15964
15965         * Control.cs: use Equals to compare the font since no == op
15966         * ScrollBar.cs: use Equals to compare the font since no == op
15967
15968 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
15969
15970         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
15971
15972 2005-04-01  Jackson Harper  <jackson@ximian.com>
15973
15974         * Binding.cs: Implement IsBinding.
15975         * BindingManagerBase.cs:
15976         * PropertyManager.cs:
15977         * CurrencyManager.cs: Add IsSuspended property.
15978
15979 2005-04-01  Jackson Harper  <jackson@ximian.com>
15980
15981         * Binding.cs: Had some IsAssignableFrom calls backwards.
15982
15983 2005-04-01  Jackson Harper  <jackson@ximian.com>
15984
15985         * Binding.cs: Handle null data members when pulling data.
15986         * PropertyManager.cs: Handle the data member being a property that
15987         does not exist.
15988
15989 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
15990
15991         * DataGridTextBoxColumn.cs: fixes signature
15992         * DataGrid.cs: calls right constructor
15993
15994 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
15995
15996         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
15997         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
15998         * GridTableStylesCollection.cs: implements GridTableStylesCollection
15999         * DataGridTableStyle.cs: implements DataGridTableStyle
16000         * DataGridBoolColumn.cs: implements DataGridBoolColumn
16001         * DataGridTextBox.cs: implements DataGridTextBox
16002         * DataGridColumnStyle.cs: implements DataGridColumnStyle
16003
16004 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
16005
16006         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
16007
16008 2005-03-29  Peter Bartok  <pbartok@novell.com>
16009
16010         * Application.cs:
16011           - Properly implemented CompanyName property
16012           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
16013             returns a path that includes CompanyName, ProductName and
16014             Version (fixes bug #70330)
16015
16016 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
16017
16018         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
16019           fixes bug #72588.
16020
16021 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
16022
16023         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
16024         
16025           - Added ReadOnly CheckBox
16026           - Further refactoring: moved some code from Open-/SaveFileDialog
16027             to FileDialog
16028
16029 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
16030
16031         * OpenFileDialog.cs: Fixed CheckFileExists
16032         * FileDialog.cs:
16033           Moved FileView and DirComboBox outside FileDialog class.
16034           They can now be used outside FileDialog
16035
16036 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
16037
16038         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
16039         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
16040
16041 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
16042
16043         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
16044           - Added missing CreatePrompt property in SaveDialog
16045           - Overall SaveDialog handling should be better now
16046           - Added non standard ShowHiddenFiles property
16047           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
16048           - Added InitialDirectory and RestoreDirectory support
16049
16050 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
16051
16052         * FileDialog.cs: Made dirComboBox usable
16053
16054 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
16055
16056         * FileDialog.cs: Added Filter support (case sensitiv)
16057
16058 2005-03-24  Jackson Harper  <jackson@ximian.com>
16059
16060         * TabControl.cs: Need a couple more pixels for the lines.
16061
16062 2005-03-23  Jackson Harper  <jackson@ximian.com>
16063
16064         * TabControl.cs: Give the tab page focus when it is selected.
16065
16066 2005-03-23  Jackson Harper  <jackson@ximian.com>
16067
16068         * TabControl.cs: Account for the drawing of tabs borders when
16069         invalidating. If the slider was clicked dont do click detection on
16070         the tabs.
16071
16072 2005-03-23  Jackson Harper  <jackson@ximian.com>
16073
16074         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
16075
16076 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
16077
16078         * CategoryGridEntry.cs: Added
16079         * GridItem.cs: Added helper properties
16080         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
16081         * GridEntry.cs: Updated code for collection
16082         * PropertyGrid.cs: Cleaned up some formatting
16083         * PropertyGridView.cs: Added drop down functionality for enums.
16084         * GridItemCollection.cs: Added enumerator logic
16085         * PropertyGridEntry.cs: Added
16086
16087 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
16088
16089         * FileDialog.cs:
16090           - Removed unnecessary commented code
16091           - Fixed handling for entering the filename manually in the combobox
16092
16093 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
16094
16095         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
16096
16097 2005-03-18  Peter Bartok  <pbartok@novell.com>
16098
16099         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
16100           them being touching the border
16101
16102 2005-03-18  Peter Bartok  <pbartok@novell.com>
16103
16104         * TextControl.cs: Quick hack to center text better
16105
16106 2005-03-18  Peter Bartok  <pbartok@novell.com>
16107
16108         * ControlPaint.cs:
16109           - Don't throw NotImplemented exceptions, just print a notice once
16110             instead (requested by Miguel). This makes running existing SWF
16111             apps a bit easier
16112         * Control.cs:
16113           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
16114           - Added context menu trigger on right click
16115         * Panel.cs: Trigger invalidate on resize
16116         * StatusBar.cs:
16117           - Removed old double-buffer drawing
16118           - Added ResizeRedraw style to force proper update of statusbar
16119         * ListView.cs:
16120           - Removed debug output
16121         * ThemeWin32Classic.cs:
16122           - Fixed drawing of status bar, now draws Text property if there
16123             are no defined panels
16124
16125 2005-03-18  Jackson Harper  <jackson@ximian.com>
16126
16127         * ImageList.cs: When the image stream is set pull all the images
16128         from it.
16129         * ImageListStreamer.cs: Implement reading image list streams.
16130
16131 2005-03-18  Peter Bartok  <pbartok@novell.com>
16132
16133         * ThemeWin32Classic.cs (DrawPictureBox):
16134           - Fixed calculations for centered drawing
16135           - Fixed drawing for normal mode, not scaling the image on normal
16136
16137 2005-03-18  Peter Bartok  <pbartok@novell.com>
16138
16139         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
16140           textbox
16141         * FileDialog.cs:
16142           - Made Open/Save button the accept button for FileDialog
16143           - Tied the cancel button to the IButtonControl cancel button
16144           - Save/Open now properly builds the pathname
16145           - Now handles user-entered text
16146           - Preventing crash on right-click if no item is selected
16147           - Fixed Text property, now uses contents of textbox
16148           - Fixed SelectedText property, now just returns the text part that
16149             is selected in the text box
16150
16151 2005-03-18  Jackson Harper  <jackson@ximian.com>
16152
16153         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
16154         rect, make sure to de-adjust the interior rect after drawing the
16155         tab text.
16156
16157 2005-03-18  Peter Bartok  <pbartok@novell.com>
16158
16159         * MenuAPI.cs: Remove menu *before* executing selected action to
16160           prevent the menu from 'hanging around'
16161           
16162 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
16163
16164         * XplatUIOSX.cs: Implemented WorkingArea property
16165
16166 2005-03-17  Peter Bartok  <pbartok@novell.com>
16167
16168         * XplatUIX11.cs: Fixed menu coord calculations
16169         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
16170           for calculating offsets
16171
16172 2005-03-17  Peter Bartok  <pbartok@novell.com>
16173
16174         * Hwnd.cs: Do not consider menu presence for default client
16175           rectangle location/size
16176         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
16177           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
16178           translation functions
16179         * FileDialog.cs: Fixed (what I presume is a) typo
16180
16181 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
16182
16183         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
16184           X access (avoids X-Async errors)
16185
16186 2005-03-16  Jackson Harper  <jackson@ximian.com>
16187
16188         * TabControl.cs: Raise the SelectedIndexChanged event.
16189
16190 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
16191
16192         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
16193           - Removed vertical ToolBar and replaced it with a custom panel
16194             (desktop and home button already work)
16195           - Added Help button (some controls get resized or relocated then)
16196           - Draw correct text depending on Open or Save.
16197           - Fixed some typos...
16198
16199 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
16200
16201         * ScrollBar.cs:
16202           - Only change Maximum and Minimum when need it (bug fix)
16203
16204 2005-03-15  Peter Bartok  <pbartok@novell.com>
16205
16206         * Form.cs: Use Handle for icon, to trigger creation if
16207           the window does not yet exist
16208         * Control.cs:
16209           - CanSelect: Slight performance improvement
16210           - Focus(): Preventing possible recursion
16211           - Invalidate(): Removed ControlStyle based clear flag setting
16212           - WM_PAINT: fixed logic for calling OnPaintBackground
16213           - WM_ERASEBKGND: Fixed logic, added call to new driver method
16214             EraseWindowBackground if the control doesn't paint background
16215         * XplatUIWin32.cs:
16216           - Moved EraseWindowBackground() method to internal methods
16217           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
16218             is sent via SendMessage on BeginPaint call on Win32
16219         * XplatUIX11.cs:
16220           - Added EraseWindowBackground() method
16221           - No longer sends WM_ERASEBKGND on .Expose, but on call to
16222             PaintEventStart, which more closely matches Win32 behaviour
16223           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
16224           - Fixed SetFocus() to properly deal with client and whole windows
16225         * Hwnd.cs: Added ErasePending property
16226         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
16227         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
16228
16229 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
16230
16231         * XplatUIOSX.cs:
16232           - Fix hard loop when timers exist.
16233           - Fix bugs with middle and right click for 3 button mice.
16234
16235 2005-03-11  Peter Bartok  <pbartok@novell.com>
16236
16237         * XplatUIX11.cs:
16238           - get_WorkingArea: Need to call X directly, GetWindowPos only
16239             returns cached data now
16240           - Added sanity check to GetWindowPos hwnd usage
16241
16242 2005-03-11  Jackson Harper  <jackson@ximian.com>
16243
16244         * BindingManagerBase.cs: This method isn't used anymore as
16245         PullData now updates the data in the control.
16246
16247 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
16248
16249         * Form.cs: fixes menu drawing on X11
16250         * MenuAPI.cs:  fixes menu drawing on X11
16251
16252 2005-03-11  Peter Bartok  <pbartok@novell.com>
16253
16254         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
16255           from Jonathan Gilbert; should fix bug #73606
16256         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
16257           in Screen coordinates. Thanks, Jordi.
16258         * Form.cs: Added missing attribute
16259
16260 2005-03-11  Peter Bartok  <pbartok@novell.com>
16261
16262         * Form.cs:
16263           - Rudimentary Mdi support
16264           - Removed outdated FormParent code
16265           - Implemented lots of missing properties and methods, still missing
16266             transparency support
16267           - Added missing attributes
16268           - Implemented support for MaximumBounds
16269           - Added firing of various events
16270         * XplatUI.cs: Added SetIcon() method
16271         * XplatUIDriver.cs: Added SetIcon() abstract
16272         * XplatUIOSX.cs: Stubbed out SetIcon() method
16273         * XplatUIX11.cs:
16274           - Implemented SetIcon() support
16275           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
16276           - Switched to unix line endings
16277         * XplatUIWin32.cs:
16278           - Made POINT internal so for can access it as part of MINMAX
16279           - Implemented SetIcon() support
16280           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
16281             native Mdi support again, might have to go managed)
16282         * Control.cs: Now fires the StyleChanged event
16283         * MdiClient.cs: Added; still mostly empty
16284
16285 2005-03-10  Peter Bartok  <pbartok@novell.com>
16286
16287         * SaveFileDialog.cs: Added emtpy file
16288
16289 2005-03-08  Peter Bartok  <pbartok@novell.com>
16290
16291         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
16292           in turn triggers OnCreateContro) when creating a handle for the
16293           first time.
16294         * TextControl.cs: Fixed endless loop in certain cases when
16295           replacing the current selection
16296
16297 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
16298
16299         * ScrollBar.cs:
16300           - Honors NewValue changes in Scroll events allowing apps to change it
16301           - Adds First and Last Scroll events
16302           - Fixes Thumb events
16303
16304 2005-03-07  Peter Bartok  <pbartok@novell.com>
16305
16306         * Hwnd.cs: Added DefaultClientRectangle property
16307         * XplatUI.cs: Now using the X11 driver Where() method, which provides
16308           more detailed debug information
16309         * XplatUIX11.cs:
16310           - Fixed size-change feedback loop, where we would pull an old size
16311             off the queue and mistakenly change our window's size to an
16312             earlier value
16313           - Now compressing ConfigureNotify events, to reduce looping and
16314             redraw issues
16315         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
16316           is called
16317
16318 2005-03-07  Jackson Harper  <jackson@ximian.com>
16319
16320         * Binding.cs: Push data pushes from data -> property. Check if the
16321         property is readonly when attempting to set it.
16322
16323 2005-03-07  Jackson Harper  <jackson@ximian.com>
16324
16325         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
16326         instead of IsSubclassOf. Pulling data now sets the value on the
16327         control.
16328         * PropertyManager.cs:
16329         * CurrencyManager.cs: Just need to pull data when updating now,
16330         because PullData will set the value on the control.
16331
16332 2005-03-04  Jackson Harper  <jackson@ximian.com>
16333
16334         * Binding.cs: Implement data type parsing and converting on pulled
16335         data. TODO: Are there more ways the data can be converted?
16336
16337 2005-03-04  Jackson Harper  <jackson@ximian.com>
16338
16339         * Binding.cs: Support <Property>IsNull checks. Also bind to the
16340         controls Validating method so we can repull the data when the
16341         control loses focus.
16342
16343 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
16344
16345         * ColumnHeader.cs:
16346           - Fixes null string format
16347           
16348         * ListView.cs:
16349           - Adds enum type checks
16350           - Fixes redrawing and recalc need after changing some properties
16351           - Fixes on focus_item set after the event
16352           - Fixes adding columns after the control has been created
16353           
16354         * ThemeWin32Classic.cs:
16355           - Fixes CheckBox focus rectangle
16356           - Fixes ColumnHeader drawing
16357
16358
16359 2005-03-03  Jackson Harper  <jackson@ximian.com>
16360
16361         * Binding.cs: Bind to <Property>Changed events so we can detect
16362         when properties are changed and update the data.
16363
16364 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
16365
16366         * ImageList.cs:
16367           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
16368           - Fixes ImageList constructor with ImageList container
16369           - Fixes image scaling (wrong parameters at DrawImage)
16370
16371 2005-02-02  Jackson Harper  <jackson@ximian.com>
16372
16373         * Binding.cs: Make property searches case-insensitive. Eliminate
16374         some duplicated code.
16375
16376 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
16377
16378         * ComboBox.cs:
16379                 - Handle focus event
16380                 - Fix scrollbar events
16381                 - Discard highlighted item if remove it
16382                 - Fixes SelectedItem with strings
16383
16384 2005-03-01  Peter Bartok  <pbartok@novell.com>
16385
16386         * Control.cs:
16387           - Fixed Visible property, now follows (once again) parent chain
16388             to return false if any control in the chain is visible=false
16389           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
16390           - Fixed several places where is_visible instead of Visible was used
16391           - Implemented FIXME related to focus selection when setting focused
16392             control to be invisible
16393
16394         * XplatUIWin32.cs: Now using proper method to find out if window is
16395           visible. Thanks to Jordi for pointing it out
16396
16397 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
16398
16399         * ComboBox.cs: show/hide scrollbar instead of creating it
16400
16401 2005-02-27  Jackson Harper  <jackson@ximian.com>
16402
16403         * CurrencyManager.cs: Add PositionChanged stuff.
16404
16405 2005-02-27  Peter Bartok  <pbartok@novell.com>
16406
16407         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
16408         * XplatUIOSX.cs: Added GetMenuOrigin() stub
16409         * XplatUIWin32.cs: Implemented GetMenuOrigin()
16410         * XplatUIX11.cs:
16411           - Implemented GetMenuDC()
16412           - Implemented GetMenuOrigin()
16413           - Implemented ReleaseMenuDC()
16414           - Implemented generation of WM_NCPAINT message
16415           - Implemented generation and handling of WM_NCCALCSIZE message
16416         * Form.cs: Added debug helper message for Jordi's menu work
16417         * Hwnd.cs:
16418           - Modified ClientRect property; added setter, fixed getter to handle
16419             setting of ClientRect
16420           - Added MenuOrigin property
16421
16422 2005-02-26  Peter Bartok  <pbartok@novell.com>
16423
16424         * XplatUIX11.cs:
16425           - Destroys the caret if a window that's being destroyed contains it
16426           - Ignores expose events coming from the X11 queue for windows that
16427             already are destroyed
16428           - Now uses the proper variable for handling DestroyNotify, before we
16429             marked the wrong window as destroyed
16430           - Improved/added some debug output
16431
16432 2005-02-26  Peter Bartok  <pbartok@novell.com>
16433
16434         * X11Keyboard.cs: Fixes to work on 64bit systems
16435
16436 2005-02-26  Peter Bartok  <pbartok@novell.com>
16437
16438         * Control.cs:
16439           - Now calling OnHandleDestroyed from DestroyHandle()
16440             instead of Dispose()
16441           - Removed bogus call to controls.Remove() from DestroyHandle()
16442
16443 2005-02-26  Peter Bartok  <pbartok@novell.com>
16444
16445         * Control.cs: Properly destroy child windows when our handle is
16446           destroyed
16447
16448 2005-02-25  Peter Bartok  <pbartok@novell.com>
16449
16450         * XplatUI.cs:
16451           - Added 'DriverDebug' define to allow tracing XplatUI API calls
16452           - Alphabetized Static Methods and Subclasses
16453
16454         * XplatUIX11.cs:
16455           - Added XException class to allow custom handling of X11 exceptions
16456           - Created custom X11 error handler, tied into XException class
16457           - Added support for MONO_XEXCEPTIONS env var to allow the user
16458             to either throw an exception on X errors or continue running
16459             after displaying the error
16460           - Added handling of DestroyNotify message
16461           - Added handler for CreateNotify message (still disabled)
16462           - Improved (tried to at least) Where method to provide file and lineno
16463         * X11Structs.cs:
16464           - Added XErrorHandler delegate
16465           - Added XRequest enumeration (to suppor translation of errors)
16466
16467 2005-02-25  Jackson Harper  <jackson@ximian.com>
16468
16469         * PropertyManager.cs: Implement editing features
16470         * CurrencyManager.cs:
16471         * Binding.cs: First attempt at UpdateIsBinding
16472         * BindingManagerBase.cs: Call UpdateIsBinding before
16473         pushing/pulling data.
16474
16475 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
16476
16477         * MenuAPI.cs: Respect disabled items
16478         * ThemeWin32Classic.cs
16479                 - Caches ImageAttributes creation for DrawImageDisabled
16480                 - Fixes vertical menu line drawing
16481                 - Draws disabled arrows in disable menu items
16482
16483 2005-02-24  Peter Bartok  <pbartok@novell.com>
16484
16485         * Hwnd.cs:
16486           - Added UserData property to allow associating arbitrary objects
16487             with the handle
16488           - Fixed leak; now removing Hwnd references from static windows array
16489         * XplatUIWin32.cs:
16490           - Fixed Graphics leak in PaintEventEnd
16491           - Removed usage of HandleData, switched over to Hwnd class
16492         * HandleData.cs: Removed, obsoleted by Hwnd.cs
16493
16494 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
16495
16496         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
16497         * ScrollBar.cs: Fixes bug
16498         * TrackBar.cs: removes death code, clipping, mimize refreshes,
16499          keyboard navigation enhancements
16500
16501 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
16502
16503         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
16504         * GroupBox.cs: Add control styles
16505         * Label.cs: Add control styles
16506         * UpDownBase.cs: Add control styles
16507         * ListBox.cs: Add control styles
16508         * XplatUIWin32.cs: Fixes wrong parameter order
16509
16510
16511 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
16512
16513         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
16514
16515 2005-02-23  Jackson Harper  <jackson@ximian.com>
16516
16517         * PropertyManager.cs: Implement property binding. This doesn't
16518         seem to work yet though as (I think) there are some bugs in
16519         System.ComponentModel.PropertyDescriptor.
16520         * BindingContext.cs: Use new PropertyManager constructor.
16521
16522 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
16523
16524         * ProgressBar.cs: use clip region in ProgressBar
16525         * ThemeWin32Classic.cs: use clip region in ProgressBar
16526
16527 2004-02-22  Jackson Harper  <jackson@ximian.com>
16528
16529         * BindingsCollection.cs: Remove some debug code.
16530
16531 2005-02-22  Jackson Harper  <jackson@ximian.com>
16532
16533         * BindingContext.cs:
16534         * ControlBindingsCollection.cs:
16535         * CurrencyManager.cs:
16536         * Binding.cs:
16537         * BindingManagerBase.cs: Initial implementation
16538         * BindingsCollection.cs: Add an internal contains method that the
16539         BindingManagerBase uses to ensure bindings aren't added twice to
16540         the collection.
16541         * PropertyManager.cs: Stubbed out.
16542         * Control.cs:
16543         * ContainerControl.cs: Hook up databinding
16544         
16545 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
16546
16547         * XplatUIOSX.cs:
16548           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
16549           Fixed Invalidate/Update chain.
16550           Fixed tons of other minor bugs (this is almost a complete rewrite).
16551
16552 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
16553
16554         * ComboBox.cs: do subcontrol creation when the control is created
16555
16556 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
16557
16558         * Label.cs: fixes image drawing (image and imagelist)
16559         * ThemeWin32Classic.cs: cache brushes
16560         
16561 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
16562
16563         * Form.cs: Move menu drawing code to Theme class
16564         * ComboBox.cs: Move ComboBox drawing code to Theme class
16565         * MenuItem.cs: Move menu drawing code to Theme class
16566         * MenuAPI.cs: Move menu drawing code to Theme class
16567         * ThemeWin32Classic.cs: New methods
16568         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
16569         * ListBox.cs: Move Listbox drawing code to Theme class
16570         * Theme.cs: New methods
16571
16572 2005-02-20  Peter Bartok  <pbartok@novell.com>
16573
16574         * Control.cs:
16575           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
16576             only process mnemonics on those)
16577           - Fixed event sequence for key handling; first calling
16578             ProcessKeyEventArgs now
16579         * TextBoxBase.cs:
16580           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
16581             for processing non-character keys
16582           - Fixed WM_CHAR to generate proper event sequence before processing
16583         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
16584           generation
16585
16586 2005-02-19  Peter Bartok  <pbartok@novell.com>
16587
16588         * UserControl.cs: Added TextChanged event; added attributes
16589         * SizeGrip.cs: Implemented resizing and optional display of grip
16590         * Form.cs: Fixed attribute
16591         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
16592           Changed meaning of ScrollWindow bool argument; instead of the
16593           clear attribute (which will be true usually anyway), it gives the
16594           option of moving child controls as well.
16595         * XplatUIX11.cs:
16596           - Changed to match new ScrollWindow argument
16597           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
16598             now handles the implicit parent window a WM puts around us
16599         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
16600           to work)
16601         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
16602         * TreeView.cs: Adjusted to new ScrollWindow arguments
16603
16604 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
16605
16606         * Form.cs: Menu integration with non-client area
16607         * MenuItem.cs: Menu integration with non-client area
16608         * MenuAPI.cs: Menu integration with non-client area
16609
16610 2005-02-18  Peter Bartok  <pbartok@novell.com>
16611
16612         * MethodInvoker.cs: Added
16613         * MdiLayout.cs: Added
16614         * SendKeys.cs: Started implementation
16615         * ErrorIconAlignment.cs: Added
16616
16617 2005-02-18  Peter Bartok  <pbartok@novell.com>
16618
16619         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
16620         * Form.cs: Added handling for Menu-related Non-client messages
16621
16622 2005-02-17  Peter Bartok  <pbartok@novell.com>
16623
16624         * UpDownBase.cs: Fixed typo, compilation errors
16625         * DomainUpDown.cs: Fixed attribute value
16626
16627 2005-02-16  Miguel de Icaza  <miguel@novell.com>
16628
16629         * UpDownBase.cs: Attach entry events.
16630         Propagate events.
16631         Add ForeColor property, Focused, InterceptArrowKeys (interception
16632         does not work yet).
16633
16634 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
16635
16636         * Form.cs:
16637                 - Redraw non client are on Setmenu
16638                 - Calc proper menu starting point
16639
16640 2005-02-17  Peter Bartok  <pbartok@novell.com>
16641
16642         * Application.cs: Fixed message_filter check
16643
16644 2005-02-17  Peter Bartok  <pbartok@novell.com>
16645
16646         * Application.cs: Now calls registered message filters
16647         * DockStyle.cs: Fixed attribute
16648         * Form.cs: Fixed attribute
16649         * Menu.cs: Fixed attribute
16650         * ToolTip.cs: Fixed attribute
16651         * TreeNode.cs: Added missing attributes and arranged in regions
16652         * PropertyGrid.cs: Fixed signatures
16653         * TreeNodeCollection.cs: Added attributes
16654         * Splitter.cs: Added missing attributes; arranged into regions
16655         * TabPage.cs: Added missing attributes; arranged into regions
16656         * TextBoxBase.cs: Added missing attributes
16657         * TextBox.cs: Added missing attributes
16658         * ArrangeDirection.cs: Added missing attributes
16659         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
16660         * ToolBarButton.cs: Fixed attributes
16661         * AnchorStyles.cs: Fixed attribute
16662         * TrackBar.cs: Fixed attributes
16663         * TabControl.cs: Added missing attributes and arranged into regions
16664         * ToolBar.cs: Fixed attribute
16665         * StatusBar.cs: Fixed signature, organized into regions and added
16666           attributes
16667         * StatusBarPanel.cs: Fixed attributes
16668         * ContentsResizedEventArgs.cs: Implemented
16669         * ContentsResizedEventHandler.cs: Implemented
16670         * DateBoldEventArgs.cs: Implemented
16671         * DateBoldEventHandler.cs: Implemented
16672         * UpDownEventArgs.cs: Implemented
16673         * UpDownEventHandler.cs: Implemented
16674         
16675 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
16676
16677         * Form.cs: first Menu NC refactoring
16678         * MenuAPI.cs: first Menu NC refactoring
16679         
16680 2005-02-16  Peter Bartok  <pbartok@novell.com>
16681
16682         * ImeMode.cs: Added missing attributes
16683         * Menu.cs: Fixed attribute
16684         * GroupBox.cs: Fixed attribute
16685         * Label.cs: Fixed attribute
16686         * ColorDialog.cs (RunDialog): Removed TODO attribute
16687         * ComboBox.cs: Fixed attributes
16688         * ListControl.cs: Added missing attributes
16689         * PropertyGrid.cs: Fixed attributes
16690         * Control.cs: Fixed attributes
16691         * ListViewItem.cs: Added TypeConverter attribute
16692         * NotifyIcon.cs: Fixed attributes
16693         * ListView.cs: Fixed attributes
16694         * ButtonBase.cs: Fixed attribute
16695         * ImageList.cs: Added missing attributes
16696         * ContainerControl.cs: Fixed signature
16697         * CheckedListBox.cs: Fixed attribute; added missing attributes
16698         * Panel.cs: Fixed attributes
16699         * PropertyTabChangedEventArgs.cs: Added missing attribute
16700         * PropertyValueChangedEventArgs.cs: Added missing attribute
16701         * Binding.cs: Fixed attribute
16702         * ListViewItemConverter: Implemented ListViewSubItemConverter class
16703         * ListBox.cs: Fixed attribute; added missing attributes;
16704         * ScrollableControl.cs: Added missing attributes
16705         * PictureBox.cs: Added missing attributes; implemented missing property
16706         * DateTimePicker.cs: Added missing attributes
16707         * Theme.cs (ToolWindowCaptionHeight): Fixed type
16708         * MonthCalendar.cs: Fixed attributes
16709         * StatusBarPanel.cs: Added missing attributes
16710         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
16711
16712 2005-02-16  Peter Bartok  <pbartok@novell.com>
16713
16714         * TextBoxBase.cs: The previous method to enforce height yet remember
16715           the requested high was less than ideal, this is an attempt to do
16716           it better.
16717         * Control.cs: Added comment about possible problem
16718         * Copyright: Updated format
16719         * GridItemType.cs: Fixed swapped values
16720
16721 2005-02-15  Jackson Harper  <jackson@ximian.com>
16722
16723         * BaseCollection.cs: Use property so we never access an
16724         uninitialized list. Also initialize the list in the property.
16725
16726 2005-02-15  Peter Bartok  <pbartok@novell.com>
16727
16728         * GroupBox.cs (ProcessMnemonic): Implemented
16729         * Label.cs (ProcessMnemonic): Implemented
16730         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
16731           hotkeys
16732
16733 2005-02-15  Peter Bartok  <pbartok@novell.com>
16734
16735         * RadioButton.cs (ProcessMnemonic): Implemented
16736         * CheckBox.cs (ProcessMnemonic): Implemented
16737         * Control.cs:
16738           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
16739             handling
16740           - Added internal method to allow calling ProcessMnemonic from other
16741             controls
16742         * ContainerControl.cs:
16743           - Started support for handling validation chain handling
16744           - Implemented ProcessMnemonic support
16745           - Added Select() call to Active, to make sure the active control
16746             receives focus
16747         * Form.cs: Setting toplevel flag for Forms (this was lost in the
16748           FormParent rewrite)
16749         * ThemeWin32Classic.cs:
16750           - DrawCheckBox(): Fixed stringformat to show hotkeys
16751           - DrawRadioButton(): Fixed stringformat to show hotkeys
16752         * CommonDialog.cs: Removed WndProc override, not needed
16753
16754 2005-02-14  Peter Bartok  <pbartok@novell.com>
16755
16756         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
16757           missed those in the rewrite
16758
16759 2005-02-14  Miguel de Icaza  <miguel@novell.com>
16760
16761         * NumericUpDown.cs (Increment, ToString): Add.
16762         (DecimalPlaces): implement.
16763         
16764         Add attributes.
16765         
16766         * UpDownBase.cs: Add the designer attributes.
16767
16768 2005-02-13  Peter Bartok  <pbartok@novell.com>
16769
16770         * Panel.cs: Removed border_style, now in Control
16771         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
16772           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
16773
16774 2005-02-13  Peter Bartok  <pbartok@novell.com>
16775
16776         * MouseButtons.cs: Added missing attributes
16777         * XplatUIStructs.cs: Added enumeration for title styles
16778         * LeftRightAlignment.cs: Added missing attributes
16779         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
16780           it compatible with Graphics.FromHwnd()
16781         * SelectedGridItemChangedEventArgs.cs: Fixed property type
16782         * Keys.cs: Added missing attributes
16783         * SelectionRange.cs: Added missing attributes
16784         * SelectionRangeConverter.cs: Added
16785         * XplatUI.cs:
16786           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
16787             ReleaseMenuDC methods
16788           - Renamed ReleaseWindow to UngrabWindow
16789           - Added proper startup notice to allow version identification
16790         * Form.cs:
16791           - Added missing attributes
16792           - Removed FormParent concept
16793         * Label.cs: Removed border_style field, now in Control
16794         * RadioButton.cs: Now properly selects RadioButton when focus is
16795           received
16796         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
16797         * Control.cs:
16798           - Added missing attributes
16799           - Added borderstyle handling
16800           - Removed FormParent concept support
16801           - Fixed calls to XplatUI to match changed APIs
16802           - Fixed bug that would case us to use disposed Graphics objects
16803           - Removed unneeded internal methods
16804           - PerformLayout(): Fixed to handle DockStyle.Fill properly
16805           - SelectNextControl(): Fixed to properly check common parents
16806         * TextBoxBase.cs: Removed border_style field (now in Control)
16807         * MessageBox.cs:
16808           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
16809             fixed calculations for form size
16810           - Added support for localized strings and icons
16811           - Improved form size calculations, added border
16812         * ListView.cs: Removed border_style field (now in Control)
16813         * X11Structs.cs: Moved several structs from X11 driver here
16814         * X11Keyboard.cs: Changed debug message
16815         * Application.cs: Removed FormParent concept support
16816         * CommonDialog.cs:
16817           - Resetting end_modal flag
16818           - Removed FormParent concept support
16819         * NativeWindow.cs: Removed FormParent concept support
16820         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
16821           Client area and Non-Client whole window to allow support for WM_NC
16822           messages
16823         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
16824           prevent using it until it supports Hwnd as per Geoff Norton's request
16825         * ToolBar.cs: Fixed drawing, was not doing proper drawing
16826         * PictureBox.cs: Removed border_style field, now in Control
16827         * XplatUIWin32.cs: Added new driver methods
16828
16829 2005-02-12  Peter Bartok  <pbartok@novell.com>
16830
16831         * OpacityConverter.cs: Implemented
16832         * Hwnd.cs: Internal class to support drivers that need to emulate
16833           client area/non-client area window behaviour
16834
16835 2005-02-11  Peter Bartok  <pbartok@novell.com>
16836
16837         * KeysConverter.cs: Implemented
16838
16839 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
16840
16841         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
16842         * LinkLabel: Added missing attributes
16843         * MainMenu.cs: fixes ToString
16844         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
16845         * ListBox.cs: fixes event position
16846         * TrackBar.cs: adds missing attributes and events
16847         
16848 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
16849
16850         * MenuItem.cs: Use SystemInformation and bug fixes
16851         * MenuAPI.cs: Use SystemInformation and bug fixes
16852
16853 2005-02-09  Jackson Harper  <jackson@ximian.com>
16854
16855         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
16856         their keystate otherwise things like VK_MENU get stuck "on".
16857
16858 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
16859
16860         * ListBox.cs: Fixes AddRange bug
16861         
16862 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
16863
16864         * ProgressBar.cs
16865                 - Add missing attributes
16866                 - Add missing method
16867                 
16868         * CheckedListBox.cs: Added missing attributes
16869                 - Add missing attributes
16870                 - Remove extra method
16871         
16872         * ComboBox.cs: Added missing attributes
16873         * VScrollBar.cs: Added missing attributes
16874         * ScrollBar.cs:  Added missing attributes
16875         * ListBox.cs: Fixes signature, add missing consts
16876         * LinkArea.cs:   Added missing attributes
16877         
16878
16879 2005-02-08  Peter Bartok  <pbartok@novell.com>
16880
16881         * Menu.cs: Added missing attributes
16882         * MainMenu.cs: Added missing attributes
16883         * GroupBox.cs: Added missing attributes
16884         * Label.cs: Added missing attributes
16885         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
16886         * ColorDialog.cs:
16887           - Added Instance and Options properties
16888           - Added missing attributes
16889         * Cursor.cs: Made Serializable
16890         * NotifyIcon: Added missing attributes
16891         * MenuItem.cs: Added missing attributes
16892         * TextBoxBase.cs: Implemented AppendText() and Select() methods
16893         * Panel.cs: Added Missing attributes
16894         * MonthCalendar.cs: Fixed CreateParams
16895
16896 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
16897         
16898         * LinkLabel.cs:
16899                 - Fixes signature
16900                 - Fixes issues with links
16901                 - Adds the class attributes
16902
16903 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
16904         
16905         * ComboBox.cs:
16906                 - Fixes button when no items available in dropdown
16907                 - Fixes repainting problems
16908                 - Adds the class attributes
16909                 
16910 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
16911
16912         * XplatUIOSX.cs: Detect the menu bar and title bar height from
16913         the current theme.  Cache these on startup.
16914
16915 2005-02-07  Jackson Harper  <jackson@ximian.com>
16916
16917         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
16918         the scrollbar buttons when they are depressed.
16919
16920 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
16921
16922         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
16923         Get the display size from the main displayid.  We currently dont
16924         support multiple display configurations.
16925
16926 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
16927
16928         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
16929
16930 2005-02-07  Miguel de Icaza  <miguel@novell.com>
16931
16932         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
16933
16934 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
16935
16936         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
16937
16938 2005-02-04  Jackson Harper  <jackson@ximian.com>
16939
16940         * ThemeWin32Classic.cs: Respect the clipping rect when
16941         drawing. Only fill the intersection of clips and rects so there
16942         isn't a lot of large fills.
16943         * ScrollBar.cs: Pass the correct clipping rect to the theme
16944         engine. Remove some debug code.
16945
16946 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
16947         
16948         * DateTimePicker.cs:
16949                 - Fixed crash on DateTime.Parse, use Constructor instead
16950
16951 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
16952         
16953         * MenuItem.cs:
16954         * MenuAPI.cs:
16955                 - Owner draw support (MeasureItem and DrawItem)
16956
16957 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
16958         
16959         *  Menu.cs:
16960                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
16961                 - Fixes MenuItems.Add range
16962         * MenuItem.cs:
16963                 - MergeMenu and Clone and CloneMenu functions
16964
16965 2005-02-03  Jackson Harper  <jackson@ximian.com>
16966
16967         * ScrollBar.cs: Make abstract
16968         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
16969         is abstract.
16970
16971 2005-02-03  Jackson Harper  <jackson@ximian.com>
16972
16973         * ScrollBar.cs: First part of my scrollbar fixups. This removes
16974         all the unneeded refreshes and uses invalidates with properly
16975         computed rects.
16976
16977 2005-02-03  Peter Bartok  <pbartok@novell.com>
16978
16979         * ComponentModel.cs: Added
16980         * IDataGridEditingService.cs: Added
16981         * Timer.cs: Added missing attributes
16982         * ToolTip.cs: Added missing attributes
16983
16984 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
16985
16986         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
16987
16988 2005-02-03  Peter Bartok  <pbartok@novell.com>
16989
16990         * ListBox.cs: Added missing attributes
16991
16992 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
16993         
16994         * ListBox.cs:
16995                 - Fixes font height after font change
16996                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
16997                 
16998 2005-02-02  Peter Bartok  <pbartok@novell.com>
16999
17000         * HandleData.cs: Introduced static methods to allow class
17001           to be more self-contained and track it's own HandleData objects
17002         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
17003           HandleData to use new static methods
17004
17005 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
17006
17007         * Combobox.cs:
17008                 - Fixes default size and PreferredHeight
17009                 - Missing events
17010                 - ObjectCollection.Insert implementation
17011                 
17012         * ListControl.cs
17013                 - Fixes signature
17014         * ListBox.cs:
17015                 - Several fixes
17016                 - ObjectCollection.Insert implementation
17017                 - No selection after clean
17018                 - Small fixes
17019
17020 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
17021
17022         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
17023
17024 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
17025
17026         * Combobox.cs:
17027                 - Caches ItemHeight calculation for OwnerDrawVariable
17028                 - Handles dropdown properly
17029                 - Fixes several minor bugs
17030
17031 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
17032
17033         * ListBox.cs:
17034                 - Fixes 71946 and 71950
17035                 - Fixes changing Multicolumn on the fly
17036                 - Fixes keyboard navigation on Multicolumn listboxes
17037
17038 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
17039         
17040         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
17041         crash reporter log.
17042
17043 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
17044
17045         * XplatUIOSX.cs: Allow applications to actually exit.
17046
17047 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
17048
17049         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
17050         their parent at creation time rather than lazily later.  Fixes a major
17051         regression we were experiencing.
17052
17053 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
17054
17055         * ThemeWin32Classic.cs: more date time picker painting fixes
17056         * DateTimePicker.cs: more monthcalendar drop down fixes
17057         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
17058
17059 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
17060
17061         * ScrollBar.cs:
17062                 - When moving the thumb going outside the control should stop the moving
17063                 - Adds the firing of missing events
17064                 - Fixes no button show if Size is not specified
17065                 - End / Home keys for keyboard navigation
17066
17067 2005-01-30  Peter Bartok  <pbartok@novell.com>
17068
17069         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
17070           sanity check to prevent theoretical loop
17071         * XplatUIWin32.cs (SetVisible): Removed debug output
17072         * XplatUIX11.cs (SystrayChange): Added sanity check
17073         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
17074         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
17075           behaviour, valid until the X11 client window rewrite is done
17076         * TextBox.cs (ctor): Setting proper default foreground and background
17077           colors
17078
17079 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
17080
17081         * Theme: Added DrawDateTimePicker to interface
17082         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
17083         * DateTimePicker.cs: Created (still needs keys and painting code)
17084         * DateTimePickerFormat.cs: added
17085         * MonthCalendar.cs: fixed CreateParams for popup window mode
17086           
17087 2005-01-29  Peter Bartok  <pbartok@novell.com>
17088
17089         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
17090           this should also the calculations for ligher/darker
17091         * Theme.cs: Fixed defaults for ScrollBar widths/heights
17092
17093 2005-01-29  Peter Bartok  <pbartok@novell.com>
17094
17095         * ArrangeDirection.cs: Added
17096         * ArrangeStartingPositon.cs: Added
17097         * SystemInformation.cs: Implemented
17098         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
17099           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
17100           used by SystemInformation class
17101         * X11Strucs.cs: Added XSizeHints structure
17102         * MenuAPI.cs:
17103           - Fixed CreateParams to make sure the menu window is always visible
17104           - TrackPopupMenu: Added check to make sure we don't draw the
17105             menu offscreen
17106
17107 2005-01-29  Peter Bartok  <pbartok@novell.com>
17108
17109         * HandleData.cs: Added method for altering invalid area
17110         * TextBoxBase.cs: Implemented TextLength
17111
17112 2005-01-28  Peter Bartok  <pbartok@novell.com>
17113
17114         * XplatUIX11.cs: Improvement over last patch, not sending
17115           the WM_PAINT directly anymore, instead we scroll any pending
17116           exposed areas and let the system pick out the WM_PAINT later
17117
17118 2005-01-28  Peter Bartok  <pbartok@novell.com>
17119
17120         * SWF.csproj: Deleted, no longer used. Instead,
17121           Managed.Windows.Forms/SWF.csproj should be used
17122         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
17123           directly, to avoid a potential race condition with the next
17124           scroll
17125
17126 2005-01-28  Peter Bartok  <pbartok@novell.com>
17127
17128         * XplatUI.cs: Made class internal
17129
17130 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
17131
17132         * CheckedListBox.cs:
17133                 - Draw focus
17134                 - Fixed Drawing
17135                 - Missing methods and events
17136
17137 2005-01-27  Peter Bartok  <pbartok@novell.com>
17138
17139         * Application.cs (Run): Don't use form if we don't have one
17140
17141 2005-01-27  Peter Bartok  <pbartok@novell.com>
17142
17143         * TextBoxBase.cs (get_Lines): Fixed index off by one error
17144
17145 2005-01-27  Peter Bartok  <pbartok@novell.com>
17146
17147         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
17148         * GridItem.cs: Added; Patch by Jonathan S. Chambers
17149         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
17150         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
17151         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
17152         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
17153         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
17154         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
17155         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
17156         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
17157         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
17158         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
17159
17160 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
17161
17162         * Combobox.cs:
17163                 - Draw focus on Simple Combobox
17164                 - Fixes drawing issues
17165                 - fixes 71834
17166
17167 2005-01-27  Peter Bartok  <pbartok@novell.com>
17168
17169         * Form.cs:
17170           - Place window in default location, instead of hardcoded 0/0
17171           - Send initial LocationChanged event
17172         * Control.cs:
17173           - UpdateBounds after creation to find out where the WM placed us
17174           - Make sure that if the ParentForm changes location the Form
17175             is notified
17176         * XplatUIX11.cs: XGetGeometry will not return the coords relative
17177             to the root, but to whatever the WM placed around us.
17178             Translate to root coordinates before returning toplevel
17179             coordinates
17180         * XplatUIWin32.cs: Removed debug output
17181         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
17182           flag to GetWindowPos, to allow translation of coordinates on X11
17183
17184 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
17185
17186         * ListBox.cs: connect LostFocus Event
17187
17188 2005-01-27  Peter Bartok  <pbartok@novell.com>
17189
17190         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
17191           XplatUIX11.cs: Extended the Systray API
17192         * Form.cs: Removed debug output
17193         * Application.cs: Fixed focus assignment, always need to call
17194           XplatUI.Activate() since Form.Activate() has rules that may
17195           prevent activation
17196         * NotifyIcon.cs: Should be complete now
17197         * ToolTip.cs: Worked around possible timer bug
17198
17199 2005-01-27  Jackson Harper  <jackson@ximian.com>
17200
17201         * TabControl.cs:
17202         - Only invalidate the effected tabs when the
17203         selected index changes. This reduces drawing and gets rid of some
17204         flicker.
17205         - Only refresh if the tabs need to be shifted, otherwise only
17206         invalidate the slider button.
17207         - On windows the tabs are not filled to right if the slider is
17208         visible.
17209         
17210 2005-01-27  Jackson Harper  <jackson@ximian.com>
17211
17212         * TabControl.cs: Only refresh on mouseup if we are showing the
17213         slider. Also only invalidate the button whose state has changed.
17214
17215 2005-01-26  Peter Bartok  <pbartok@novell.com>
17216
17217         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
17218         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
17219           and SystrayRemove() methods
17220         * XplatUIOSX.cs: Stubbed Systray methods
17221         * XplatUIX11.cs:
17222           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
17223             methods
17224           - Fixed broken XChangeProperty calls (marshalling messed up things)
17225         * X11Structs.cs: Added enums and structs required for Size hinting
17226         * NotifyIcon.cs: Added & implemented
17227
17228 2005-01-26  Jackson Harper  <jackson@ximian.com>
17229
17230         * TabControl.cs: Space vertically layed out tabs properly.
17231
17232 2005-01-26  Peter Bartok  <pbartok@novell.com>
17233
17234         * Form.cs (CreateClientParams): Always set the location to 0,0
17235           since we're a child window.
17236
17237         * Control.cs (SetVisibleCore): Always explicitly setting the location
17238           of a toplevel window, apparently X11 doesn't like to move windows
17239           while they're not mapped.
17240
17241 2005-01-26  Jackson Harper  <jackson@ximian.com>
17242
17243         * TabControl.cs: Implement FillToRight size mode with vertically
17244         rendered tabs.
17245
17246 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
17247
17248         * ControlPaint.cs, ThemeWin32Classic.cs
17249                 - Fixes DrawFocusRectangle
17250
17251 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
17252
17253         * MenuAPI.cs:
17254                 - MenuBar tracking only starts when item is first clicked
17255                 - Fixes menu hidding for multiple subitems
17256                 - Unselect item in MenuBar when item Executed
17257                 - Fixes bug 71495
17258
17259 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
17260
17261         * ListControl.cs:
17262                 - IsInputKey for ListBox
17263         * ListBox.cs:
17264                 - Focus item
17265                 - Shift and Control item selection
17266                 - Implement SelectionMode.MultiExtended
17267                 - Fixes RightToLeft
17268         * ComboBox.cs:
17269                 - IsInputKey implemented
17270                 - Do not generate OnTextChangedEdit on internal txt changes
17271                 
17272 2005-01-23  Peter Bartok  <pbartok@novell.com>
17273
17274         * AccessibleObject.cs: Partially implemented Select()
17275         * MonthCalendar.cs: Added missing attributes and events
17276         * Form.cs: Fixed CreateParams behaviour, now controls derived from
17277           form can properly override CreateParams.
17278         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
17279           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
17280           Control performs Invalidate & Update
17281         * NativeWindow (CreateHandle): Added special handling for Form
17282           and Form.FormParent classes to allow overriding of From.CreateParams
17283         * Control.cs:
17284           - ControlNativeWindow: Renamed 'control' variable to more intuitive
17285             name 'owner'
17286           - ControlNativeWindow: Added Owner property
17287           - Removed usage of Refresh() on property changes, changed into
17288             Invalidate(), we need to wait until the queue is processed for
17289             updates, direct calls might cause problems if not all vars for
17290             Paint are initialized
17291           - Added call to UpdateStyles() when creating the window, to set any
17292             styles that CreateWindow might have ignored.
17293           - Added support for Form CreateParent overrides to UpdateStyles()
17294         * MessageBox.cs: Removed no longer needed FormParent override stuff,
17295           CreateParams are now properly overridable
17296         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
17297           CreateParams are now properly overridable
17298
17299 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
17300
17301         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
17302         OnTextBoxChanged.
17303
17304         Capture LostFocus and OnTextBoxChanged.  The later introduces a
17305         recursive invocation that I have not figured out yet.
17306
17307         Reset the timer when not using (it was accumulating).
17308
17309
17310         (OnTextBoxChanged): Set UserEdit to true here to track whether the
17311         user has made changes that require validation.
17312
17313         Reset changing to avoid loops.
17314
17315 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
17316
17317         * NumericUpDown.cs: Display value at startup.
17318
17319         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
17320         ValidateEditText.
17321
17322         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
17323         filled in.  Added some basic parsing of text.
17324
17325         Still missing the OnXXX method overrides, and figuring out the
17326         events that must be emitted.
17327
17328         * UpDownBase.cs: Handle UserEdit on the Text property.
17329         
17330 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
17331
17332         * ComboBox.cs:
17333           - Fixes IntegralHeight
17334           - ToString method
17335
17336 2005-01-21  Jackson Harper  <jackson@ximian.com>
17337
17338         * TabControl.cs: Set the SelectedIndex property when SelectedTab
17339         is set so that the page visibility is updated and the tabs are
17340         sized correctly.
17341
17342 2005-01-21  Jackson Harper  <jackson@ximian.com>
17343
17344         * TabControl.cs: Use cliping rectangle for blitting. Give the
17345         theme the clipping rect so we can do clipping while
17346         drawing. Remove some debug code.
17347
17348 2005-01-21  Jackson Harper  <jackson@ximian.com>
17349
17350         * TabPage.cs: Add a new method so tab pages can force the tab
17351         control to recalculate the tab page sizes.
17352         * TabControl.cs: UpdateOwner needs to make the tab control recalc
17353         sizes.
17354
17355 2005-01-20  Jackson Harper  <jackson@ximian.com>
17356
17357         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
17358
17359 2005-01-20  Jackson Harper  <jackson@ximian.com>
17360
17361         * TreeView.cs: Set the bounds for nodes properly. They were
17362         getting screwed up when checkboxes were not enabled, but images
17363         were.
17364
17365 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
17366
17367         * ListBox.cs:
17368                 - Owner draw support
17369                 - Fixes
17370                 
17371 2005-01-20  Jackson Harper  <jackson@ximian.com>
17372
17373         * XplatUIStructs.cs: More misc keys
17374         * X11Keyboard.cs: Ignore some control keys.
17375
17376 2005-01-20  Jackson Harper  <jackson@ximian.com>
17377
17378         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
17379         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
17380
17381 2005-01-19  Peter Bartok  <pbartok@novell.com>
17382
17383         * Control.cs: Un-selecting the control when it is loosing focus
17384
17385 2005-01-19  Jackson Harper  <jackson@ximian.com>
17386
17387         * TreeView.cs: Hook up to the text controls leave event so we can
17388         end editing when the users clicks outside the text box.
17389         
17390 2005-01-19  Jackson Harper  <jackson@ximian.com>
17391
17392         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
17393         get set in the conversion array.
17394
17395 2005-01-19  Peter Bartok  <pbartok@novell.com>
17396
17397         * Application.cs (ModalRun): Added a call to CreateControl to ensure
17398           focus is properly set
17399         * Button.cs:
17400           - Added missing attributes
17401           - removed styles, those are already set in the base class
17402         * ButtonBase.cs:
17403           - Added missing attributes
17404           - Added clip window styles
17405         * CheckBox.cs: Added missing attributes
17406         * CommonDialog.cs:
17407           - FormParentWindow.CreateParams: Added required clip styles
17408         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
17409           also filters modifier keys
17410         * MessageBox.cs:
17411           - Added assignment of Accept and Cancel button to enable Enter
17412             and Esc keys in MessageBox dialogs
17413           - FormParentWindow.CreateParams: Added required clip styles
17414         * RadioButton.cs: Added missing attributes
17415         * TextControl.cs: No longer draws selection if control does not
17416           have focus
17417         * TextBoxBase.cs:
17418           - Now draws simple rectangle around test area to make it obvious
17419             there's a control. This is a hack until we properly support borders
17420           - A few simple fixes to support selections better, now erases selected
17421             text when typing, and resets selection when using movement keys
17422
17423 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
17424
17425         * UpDownBase.cs: Added some new properties.
17426
17427         * DomainUpDown.cs: Implement a lot to get my test working.
17428
17429 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
17430
17431         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
17432
17433 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
17434
17435         * OSXStructs (WindowAttributes): Fixed csc complaints
17436
17437 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
17438
17439         * XplayUIOSX.cs:
17440           OSXStructs.cs: Initial refactor to move enums and consts into
17441           OSXStructs and use them in the driver for greater readability.
17442
17443 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
17444
17445         * XplatUIOSX.cs: Initial support for Standard Cursors.
17446         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
17447
17448 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
17449
17450         * ComboBox.cs: ability to change style when the ctrl is already
17451         created, missing methods and events, bug fixes, signature fixes
17452
17453 2005-01-19  Peter Bartok  <pbartok@novell.com>
17454
17455         * Cursors.cs (ctor): Added ctor to fix signature
17456
17457 2005-01-18  Peter Bartok  <pbartok@novell.com>
17458
17459         * Button.cs: Implemented DoubleClick event
17460         * ButtonBase.cs:
17461           - Fixed keyboard handling to behave like MS, where the press of
17462             Spacebar is equivalent to a mousedown, and the key release is
17463             equivalent to mouseup. Now a spacebar push will give the same
17464             visual feedback like a mouse click.
17465           - Added missing attributes
17466           - Added ImeModeChanged event
17467           - Added support for generating DoubleClick event for derived classes
17468         * CheckBox.cs:
17469           - Implemented DoubleClick event
17470           - Added missing attributes
17471         * CommonDialog.cs: Added missing attribute
17472         * ContextMenu.cs: Added missing attributes
17473         * RadioButton.cs:
17474           - AutoChecked buttons do not allow to be unselected when clicked
17475             (otherwise we might end up with no selected buttons in a group)
17476           - Added missing attributes
17477           - Implemented DoubleClickEvent
17478         * ThreadExceptionDialog.cs: Enabled TextBox code
17479
17480 2005-01-18  Peter Bartok  <pbartok@novell.com>
17481
17482         * Form.cs: Removed debug output
17483         * Button.cs: Added support for DoubleClick method
17484
17485 2005-01-18  Peter Bartok  <pbartok@novell.com>
17486
17487         * Form.cs:
17488           - Added method to parent window that allows triggering size
17489             calculations when a menu is added/removed
17490           - set_Menu: Cleaned up mess from early days of Form and Control,
17491             now properly triggers a recalc when a menu is added/removed
17492           - Added case to select form itself as focused form if no child
17493             controls exist
17494           - Added PerformLayout call when showing dialog, to ensure properly
17495             placed controls
17496         * Control.cs:
17497           - Select(): Made internal so Form can access it
17498           - Focus(): Only call Xplat layer if required (avoids loop), and sets
17499             status
17500         * Application.cs (Run): Removed hack and calls PerformLayout instead
17501           to trigger calculation when Form becomes visible
17502
17503 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
17504
17505         * ComboBox.cs: fixes for ownerdraw
17506
17507 2005-01-18  Peter Bartok  <pbartok@novell.com>
17508
17509         * TextControl.cs:
17510           - Sentinel is no longer static, each Document gets it's own, this
17511             avoids locking or alternatively overwrite problems when more
17512             than one text control is used simultaneously.
17513           - Switched to use Hilight and HilightText brushes for text selection
17514
17515         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
17516
17517 2005-01-18  Peter Bartok  <pbartok@novell.com>
17518
17519         * Control.cs:
17520           - Hooked up the following events:
17521                 o ControlAdded
17522                 o ControlRemoved
17523                 o HandleDestroyed
17524                 o ImeModeChanged
17525                 o ParentChanged
17526                 o TabStopChanged
17527                 o Invalidated
17528                 o SystemColorsChanged
17529                 o ParentFontChanged
17530                 o Move
17531           - Removed debug output
17532           - Added a call to the current theme's ResetDefaults when a color change
17533             is detected
17534         * Form.cs: Now setting the proper ImeMode
17535         * Theme.cs: Defined a method to force recreation of cached resources
17536           and rereading of system defaults (ResetDefaults())
17537         * ThemeWin32Classic.cs: Added ResetDefaults() stub
17538
17539 2005-01-17  Peter Bartok  <pbartok@novell.com>
17540
17541         * Control.cs: Added missing attributes
17542
17543 2005-01-17  Jackson Harper  <jackson@ximian.com>
17544
17545         * TreeNode.cs: Implement editing. Add missing properties selected
17546         and visible.
17547         * TreeView.cs: Implement node editing. Also some fixes to use
17548         Invalidate (invalid area) instead of Refresh when selecting.
17549
17550 2005-01-17  Peter Bartok  <pbartok@novell.com>
17551
17552         * Control.cs:
17553           - Implemented InvokeGotFocus() method
17554           - Implemented InvokeLostFocus() method
17555           - Implemented InvokePaint() method
17556           - Implemented InvokePaintBackground() method
17557           - Implemented InvokeClick() method
17558           - Implemented FindForm() method
17559           - Implemented RectangleToClient() method
17560           - Implemented ClientToRectangle() method
17561           - Implemented ResetBackColor() method
17562           - Implemented ResetCursor() method
17563           - Implemented ResetFont() method
17564           - Implemented ResteForeColor() method
17565           - Implemented ResetImeMode() method
17566           - Implemented ResetLeftToRight() method
17567           - Implemented ResetText() method
17568           - Implemented Scale() methods
17569           - Implemented ScaleCore() method
17570           - Implemented Update() method
17571           - Removed unused variables
17572           - Stubbed AccessibilityNotifyClients and
17573             ControlAccessibleObject.NotifyClients() methods (dunno what to do
17574             with those yet)
17575           - Now setting proper default for RightToLeft property
17576           - Fixed bug in SetClientSizeCore that would cause windows to get
17577             really big
17578           - Now sending Click/DoubleClick events
17579           - Now selecting controls when left mouse button is clicked on
17580             selectable control
17581         * AccessibleEvents.cs: Added
17582         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
17583         * XplatUIOSX.cs: Stubbed UpdateWindow() method
17584         * XplatUIWin32.cs: Implemented UpdateWindow() method
17585         * XplatUIX11.cs: Implemented UpdateWindow() method
17586         * Form.cs: Removed stray semicolon causing CS0162 warning
17587         * ThemeWin32Classic.cs: Fixed unused variable warnings
17588         * ScrollableControl.cs: Now calls base method for ScaleCore
17589         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
17590           style to avoid interference with internal click handler (which is
17591           different than standard Control click handling)
17592         * RadioButton.cs:
17593           - Now unchecks all sibling radio buttons when control is
17594             selected (Fixes #68756)
17595           - Removed internal tabstop variable, using the one inherited from
17596             Control
17597
17598 2005-01-17  Jackson Harper  <jackson@ximian.com>
17599
17600         * NavigateEventArgs.cs: Fix base type.
17601         * LinkLabel.cs: Sig fix
17602         
17603 2005-01-17  Jackson Harper  <jackson@ximian.com>
17604
17605         * TreeView.cs: Only invalidate the effected nodes bounds when
17606         selecting nodes.
17607
17608 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
17609
17610         * XplatUIWin32.cs: fixes Win32 marshaling
17611         * XplatUIX11.cs: fixes method signature
17612
17613 2005-01-17  Peter Bartok  <pbartok@novell.com>
17614
17615         * XplatUIX11.cs: Clean up resources when we no longer need them
17616
17617 2005-01-17  Peter Bartok  <pbartok@novell.com>
17618
17619         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
17620           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
17621           and DestroyCursor() methods.
17622         * Cursor.cs: Partially implemented, now supports standard cursors;
17623           still contains some debug code
17624         * Cursors.cs: Implemented class
17625         * Control.cs:
17626           - WndProc(): Added handling of WM_SETCURSOR message, setting the
17627             appropriate cursor
17628           - Implemented Cursor property
17629           - Replaced break; with return; more straightforwar and possibly
17630             faster
17631           - Now properly setting the result for WM_HELP
17632         * X11Structs.cs: Added CursorFontShape enum
17633         * XplatUIStructs.cs:
17634           - Added StdCursor enum (to support DefineStdCursor() method)
17635           - Added HitTest enum (to support sending WM_SETCURSOR message)
17636         * XplatUIX11.cs:
17637           - Now sends the WM_SETCURSOR message
17638           - Implemented new cursor methods
17639         * XplatUIOSX.cs: Stubbed new cursor methods
17640         * XplatUIWin32.cs:
17641           - Implemented new cursor methods
17642           - Added GetSystemMetrics function and associated enumeration
17643
17644 2005-01-15  Peter Bartok  <pbartok@novell.com>
17645
17646         * Control.cs:
17647           - WndProc(): Now handles EnableNotifyMessage
17648           - SelectNextControl(): Fixed bug where if no child or sibling
17649             controls exist we looped endlessly
17650
17651 2005-01-14  Jackson Harper  <jackson@ximian.com>
17652
17653         * TreeView.cs: Recalculate the tab pages when a new one is added
17654         so that the proper bounding rects are created.
17655
17656 2005-01-14  Jackson Harper  <jackson@ximian.com>
17657
17658         * TreeView.cs: Draw a gray box instead of a grip in the lower
17659         right hand corner when there are both horizontal and vertical
17660         scroll bars.
17661
17662 2005-01-14  Jackson Harper  <jackson@ximian.com>
17663
17664         * Control.cs: When erasing backgrounds use FromHwnd instead of
17665         FromHdc when there is a NULL wparam. This occurs on the X driver.
17666         * XplatUIX11.cs: Set the wparam to NULL.
17667
17668 2005-01-13  Jackson Harper  <jackson@ximian.com>
17669
17670         * PictureBox.cs: Implement missing methods (except ToString, need
17671         to test that on windows) and events. When visibility is changed we
17672         need to redraw the image because the buffers are killed. When size
17673         is changed refresh if the sizemode needs it.
17674
17675 2005-01-13  Peter Bartok  <pbartok@novell.com>
17676
17677         * Control.cs (SelectNextControl): Was using wrong method to select
17678           a control
17679
17680 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
17681
17682         * ComboBox.cs: fixes dropstyle
17683
17684 2005-01-13  Peter Bartok  <pbartok@novell.com>
17685
17686         * Form.cs:
17687           - Implemented Select() override
17688           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
17689           - Now sets keyboard focus on startup
17690         * Control.cs (SelectNextControl): Now properly handles directed=true
17691         * TextBoxBase.cs:
17692           - WndProc: Now passes tab key on to base if AcceptTabChar=false
17693           - Added (really bad) focus rectangle (mostly for testing)
17694         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
17695           to enforce redraw on focus changes
17696         * ContainerControl.cs:
17697           - Fixed detection of Shift-Tab key presses
17698           - Fixed traversal with arrow keys
17699         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
17700           gonna keep this or if it's complete yet
17701         
17702 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
17703
17704         * ComboBox.cs: missing properties, fixes
17705
17706 2005-01-13  Peter Bartok  <pbartok@novell.com>
17707
17708         * Panel.cs (ctor): Setting Selectable window style to off
17709         * Splitter.cs (ctor): Setting Selectable window style to off
17710         * GroupBox.cs (ctor): Setting Selectable window style to off
17711         * Label.cs (ctor): Setting Selectable window style to off
17712
17713 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
17714
17715         * UpDownBase.cs (InitTimer): If the timer has been already
17716         created, enable it.
17717
17718         Use a TextBox instead of a Label.
17719
17720 2005-01-12  Jackson Harper  <jackson@ximian.com>
17721
17722         * TreeView.cs: Refresh the tree after sorting the nodes. Always
17723         draw the connecting node lines (when ShowLines is true).
17724         * TreeNode.cs: The nodes index can now be updated. This is used
17725         when a node collection is sorted.
17726         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
17727         insert or an existing unsorted node collection can be sorted.
17728         
17729 2005-01-12  Peter Bartok  <pbartok@novell.com>
17730
17731         * ContainerControl.cs: Implemented ProcessDialogKeys()
17732
17733 2005-01-12  Peter Bartok  <pbartok@novell.com>
17734
17735         * Control.cs:
17736           - Implemented SelectNextControl() method
17737           - Several focus related bug fixes
17738           - Fixed Docking calculations to match MS documentation and
17739             behaviour
17740
17741 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
17742
17743         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
17744         bug fixes
17745
17746 2005-01-12  Peter Bartok  <pbartok@novell.com>
17747
17748         * Control.cs:
17749           - Fixed broken Contains() method
17750           - Implemented GetNextControl() method. Finally. This is the pre-
17751             requisite for focus handling.
17752
17753 2005-01-12  Peter Bartok  <pbartok@novell.com>
17754
17755         * OSXStrucs.cs: Added
17756
17757 2005-01-12  Peter Bartok  <pbartok@novell.com>
17758
17759         * XplatUIWin32.cs:
17760           - Removed PeekMessageFlags
17761           - Implemented SetWindowStyle() method
17762         * XplatUIStructs.cs: Added PeekMessageFlags
17763         * X11Structs: Added missing border_width field to XWindowChanges struct
17764         * XplatUIX11.cs:
17765           - PeekMessage: Now throws exception if flags which are not yet
17766             supported are passed
17767           - Implemented SetWindowStyle() method
17768           - Fixed SetZOrder to handle AfterHwnd properly
17769         * XplatUI.cs: Added SetWindowStyle() method
17770         * XplatUIDriver.cs: Added SetWindowStyle() abstract
17771         * Control.cs:
17772           - Implemented UpdateStyles() method
17773           - Implemented UpdateZOrder() method
17774         * XplatUIOSX.cs: Added SetWindowStyle() stub
17775
17776 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
17777
17778         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
17779         button mouse).
17780
17781
17782 2005-01-11  Jackson Harper  <jackson@ximian.com>
17783
17784         * TreeView.cs: Still need to draw lines to siblings even if out of
17785         the current node is out of the clip.
17786
17787 2005-01-11  Jackson Harper  <jackson@ximian.com>
17788
17789         * TreeView.cs: When setting the hbar/vbar/grip position use
17790         SetBounds so that perform layout is only called once. Also suspend
17791         and resume layout so layout is only done once for all controls.
17792         - Removed some debug fluff
17793         * SizeGrip.cs: Call base implmentation in overriding methods.
17794         - When visibility is changed the drawing buffers are killed so we
17795         need to redraw.
17796
17797 2005-01-11  Jackson Harper  <jackson@ximian.com>
17798
17799         * TreeView.cs: Calculate the open node count while drawing. This
17800         saves us an entire tree traversal for every paint operation. Use
17801         a member var for the open node count so less vars are passed around.
17802
17803 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
17804
17805         * MonthCalendar.cs:
17806         - fixed selection to use mousemove, not mouse polling on timer
17807         * ThemeWin32Classic.cs
17808         - removed redundant unused variable "no_more_content"
17809         
17810 2005-01-11  Peter Bartok  <pbartok@novell.com>
17811
17812         * XplatUIX11.cs (DoEvents): Needs to return when no more events
17813           are pending, so it now calls PeekMessage instead of GetMessage;
17814           implemented a incomplete version of PeekMessage
17815         
17816 2005-01-11  Peter Bartok  <pbartok@novell.com>
17817
17818         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
17819           I18n issues
17820         * TextBoxBase.cs: Added sending of TextChanged event
17821
17822 2005-01-10  Jackson Harper  <jackson@ximian.com>
17823
17824         * TreeView.cs: Try not to draw outside the clipping rectangle on
17825         each node element.
17826
17827 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
17828
17829         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
17830
17831 2005-01-10  Jackson Harper  <jackson@ximian.com>
17832
17833         * TreeView.cs:
17834         - Implement fast scrolling. Now only the newly
17835         exposed nodes are drawn and the old image is moved using the
17836         XplatUI::ScrollWindow method.
17837         - Factor in height of nodes when calculating whether or not the
17838         node is in the clipping rect.
17839
17840 2005-01-10  Jackson Harper  <jackson@ximian.com>
17841
17842         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
17843
17844 2005-01-10  Peter Bartok  <pbartok@novell.com>
17845
17846         * Application.cs: Added temporary hack to resolve all our resize
17847           required issues on startup. This will get fixed properly at
17848           some point in the future
17849
17850 2005-01-10  Jackson Harper  <jackson@ximian.com>
17851
17852         * SizeGrip.cs: New internal class that is used as a sizing
17853         grip control...hence the name.
17854
17855 2005-01-10  Peter Bartok  <pbartok@novell.com>
17856
17857         * Control.cs: Implemented proper TabIndex handling, now assigning
17858           a tabindex when a control is added to a container
17859         * GroupBox.cs (ctor): Now sets the Container style bit, required
17860           for Control.GetNextControl()
17861
17862 2005-01-09  Jackson Harper  <jackson@ximian.com>
17863
17864         * TextBoxBase.cs: Clear window when scrolling (fixes build).
17865
17866 2005-01-09  Peter Bartok <pbartok@novell.com>
17867
17868         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
17869           XplatUIX11.cs: Added ability to control ScrollWindow expose and
17870           an overload for ScrollWindow to allow only scrolling a rectangle
17871
17872 2005-01-09  Peter Bartok <pbartok@novell.com>
17873
17874         * Form.cs:
17875           - Implemented SetDesktopBounds method
17876           - Implemented SetDesktopLocation method
17877
17878 2005-01-08  Jackson Harper  <jackson@ximian.com>
17879
17880         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
17881         the node count has changed, this removes to VScroll::Refresh calls
17882         when drawing.
17883
17884 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
17885
17886         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
17887
17888 2005-01-07  Jackson Harper  <jackson@ximian.com>
17889
17890         * TreeNode.cs: Just update the single node when it is
17891         checked. Don't refresh after toggling, the Expand/Collapse already
17892         handles this.
17893         * TreeView.cs: Respect clipping a little more when drawing. Try
17894         not to redraw things that don't need to be redrawn. Just hide the
17895         scrollbars when they are no longer needed instead of removing
17896         them, so they don't have to be created again and again.
17897         
17898 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
17899
17900         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
17901         coordinates to window space to place the caret properly, FIXED.
17902         Implement GetWindowState & SetWindowState
17903
17904 2005-01-06  Peter Bartok <pbartok@novell.com>
17905
17906         * Form.cs:
17907           - Implemented ClientSize property
17908           - Implemented DesktopBounds property
17909           - Implemented DesktopLocation property
17910           - Implemented IsRestrictedWindow property
17911           - Implemented Size property
17912           - Implemented TopLevel property
17913           - Implemented FormWindowState property
17914         * Control.cs:
17915           - Implemented GetTopLevel() method
17916           - Implemented SetTopLevel() method
17917         * X11Structs.cs (Atom):
17918           - Added AnyPropertyType definition
17919           - Added MapState definiton and updated XWindowAttribute struct
17920         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
17921         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
17922         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
17923         * XplatUIWin32.cs:
17924           - Implemented GetWindowState() and SetWindowState() methods
17925           - Fixed Win32GetWindowLong return type
17926         * XplatUIX11.cs:
17927           - Introduced central function for sending NET_WM messages
17928           - Implemented GetWindowState() and SetWindowState() methods
17929         * TextBoxBase.cs (set_Lines):
17930           - Now uses Foreground color for text added via Text property (Duh!)
17931           - Added code to remember programmatically requested size (fixes
17932             behaviour when Multiline is set after Size)
17933           - Added AutoSize logic
17934
17935 2005-01-06  Jackson Harper  <jackson@ximian.com>
17936
17937         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
17938
17939 2005-01-06  Jackson Harper  <jackson@ximian.com>
17940
17941         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
17942         set to less then 0.
17943
17944 2005-01-06  Jackson Harper  <jackson@ximian.com>
17945
17946         * ScrollableControl.cs: Lazy init the scrollbars.
17947         
17948 2005-01-06  Jackson Harper  <jackson@ximian.com>
17949
17950         * Theme.cs: Speed up getting pens and solid brushes, by using
17951         their ARGB as a hash instead of tostring and not calling Contains.
17952
17953 2005-01-06  Peter Bartok <pbartok@novell.com>
17954
17955         * Form.cs:
17956           - Implemented OnActivated and OnDeactivate event trigger
17957           - Implemented Activate() method
17958           - Fixed ShowDialog() to activate the form that was active before
17959             the dialog was shown
17960         * XplatUIX11.cs:
17961           - Added global active_window var that tracks the currently active
17962             X11 window
17963           - Now always grabs Property changes from the root window to always
17964             catch changes on the active window property
17965           - Added code to PropertyNotify handler to send Active/Inactive
17966             messages when state changes. This puts X11 and Win32 en par on
17967             WM_ACTIVATE notifications (except for double notifications when
17968             the user clicks away from our modal window to another one of our
17969             windows)
17970
17971 2005-01-05  Jackson Harper  <jackson@ximian.com>
17972
17973         * ImageList.cs: Implment ctor
17974
17975 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
17976
17977         * XplatUIOSX.cs: Implement Activate/SetTopmost
17978
17979 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
17980
17981         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
17982
17983 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
17984
17985         * XplatUIOSX.cs: Implement GetActive/SetFocus.
17986
17987 2005-01-05  Peter Bartok <pbartok@novell.com>
17988
17989         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
17990           XplatUIOSX.cs: Added GetActive method to return the currently
17991           active window for the application (or null, if none is active)
17992         * Form.cs:
17993           - Implemented ActiveForm
17994           - Commented out owner assignment for modal dialogs (causes problems
17995             on Win32, since the owner will be disabled)
17996           - Reworked some Active/Focus handling (still incomplete)
17997         * CommonDialog.cs: Commented out owner assignment for modal dialogs
17998           (causes problems on Win32, since the owner will be disabled)
17999         * IWin32Window: Added ComVisible attribute
18000
18001 2005-01-05  Peter Bartok <pbartok@novell.com>
18002
18003         * ToolTip.cs (WndProc): Enable setting focus now that we have the
18004           required XplatUI functions.
18005
18006 2005-01-05  Peter Bartok <pbartok@novell.com>
18007
18008         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
18009           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
18010           to implement focus and activation handling; still incomplete and
18011           with debug output
18012
18013 2005-01-04  Peter Bartok <pbartok@novell.com>
18014
18015         * TextBoxBase.cs: Changed access level for Document property to
18016           match switch to internal for TextControl
18017
18018 2005-01-04  Peter Bartok <pbartok@novell.com>
18019
18020         * AccessibleObject: Added ComVisible attribute
18021
18022 2005-01-04  Jackson Harper  <jackson@ximian.com>
18023
18024         * X11Keyboard.cs: Remove unneeded var.
18025
18026 2005-01-04  Jackson Harper  <jackson@ximian.com>
18027
18028         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
18029         but PAINT.
18030         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
18031         ClientMessage. This makes apps exit cleanly (more often).
18032         
18033 2005-01-04  Jackson Harper  <jackson@ximian.com>
18034
18035         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
18036         handling focus, return correct colors and fonts,
18037         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
18038         handle selection, horizontal scrolling, and mouse interaction.
18039
18040 2005-01-04  Peter Bartok <pbartok@novell.com>
18041
18042         * ICommandExecutor.cs: Added
18043         * IDataGridColumnStyleEditingNotificationService.cs: Added
18044         * IFeatureSupport.cs: Added
18045         * IFileReaderService.cs: Added
18046         * IDataObject.cs: Added ComVisible attribute
18047         * AmbientProperties.cs: Added
18048         * BaseCollection.cs: Added missing attributes
18049         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
18050         * BaseCollection.cs: Added missing attributes
18051         * Binding.cs: Added TypeConverter attribute
18052         * BindingContext.cs: Added DefaultEvent attribute
18053         * BindingsCollection.cs: Added DefaultEvent attribute
18054         * Button.cs: Added DefaultValue attribute
18055         * DragEventArgs.cs: Added ComVisible attribute
18056         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
18057         * KeyEventArgs.cs: Added ComVisible attribute
18058         * KeyPressEventArgs.cs: Added ComVisible attribute
18059         * MouseEventArgs.cs: Added ComVisible attribute
18060         * NavigateEventArgs.cs: Added
18061         * NavigateEventHandler.cs: Added
18062         * FeatureSupport.cs: Added
18063         * OSFeature.cs: Added
18064         * Theme.cs: Added abstract Version property to support OSFeature
18065         * ThemeWin32Classic.cs: Added Version property to
18066           support OSFeature.Themes
18067         * ProgressBar.cs: Removed OnPaintBackground override, not required since
18068           the proper styles to avoid background drawing are set, also doesn't
18069           match MS signature
18070         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
18071         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
18072         * ScrollEventArgs.cs: Added ComVisible attribute
18073         * SplitterEventArgs.cs: Added ComVisible attribute
18074         * AccessibleSelection.cs: Added Flags attribute
18075         * Appearance.cs: Added ComVisible attribute
18076         * Border3DSide.cs: Added ComVisible attribute
18077         * Border3DStyle.cs: Added ComVisible attribute
18078         * BorderStyle.cs: Added ComVisible attribute
18079         * DragAction.cs: Added ComVisible attribute
18080         * ErrorBlinkStyle.cs: Added
18081         * ScrollEventType.cs: Added ComVisible attribute
18082         * AnchorStyles.cs: Added Editor attribute
18083         * DockStyle.cs: Added Editor attribute
18084         * HorizontalAlignment.cs: Added ComVisible attribute
18085         * HelpEventArgs.cs: Added ComVisible attribute
18086         * PaintEventArgs.cs: Added IDisposable
18087
18088 2005-01-04  Peter Bartok <pbartok@novell.com>
18089
18090         * TextControl.cs: Switched Line, LineTag and Document classes to
18091           internal
18092
18093 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
18094
18095         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
18096         Simple mode, fixes, IntegralHeight, etc.
18097
18098 2005-01-04  Peter Bartok <pbartok@novell.com>
18099
18100         * TextBoxBase.cs: Using proper font variable now
18101
18102 2005-01-04  Peter Bartok <pbartok@novell.com>
18103
18104         * Form.cs (ShowDialog): Set parent to owner, if provided
18105         * GroupBox.cs: Removed unused vars
18106         * TextControl.cs:
18107           - Added GetHashCode() for Document and LineTag classes
18108           - Removed unused variables
18109           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
18110             to allow translation between continuous char position and line/pos
18111         * CheckBox.cs: Removed vars that are provided by base class
18112         * RadioButton.cs: Removed vars that are provided by base class, added
18113           new keyword where required
18114         * LinkLabel.cs: Added new keyword where required
18115         * Control.cs (WndProc): Removed unused variable
18116         * TextBoxBase.cs:
18117           - Finished SelectionLength property
18118           - Implemented SelectionStart property
18119           - Implemented Text property
18120           - Removed unused vars
18121         * MessageBox.cs: Added new keyword where required
18122         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
18123           WndProc signature
18124         * MenuAPI.cs: Added new keyword where required
18125         * ButtonBase.cs: Removed vars that are provided by base class, added
18126           new keyword where required
18127         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
18128           argument to double, to allow compiling with csc 2.0 (Atsushi ran
18129           into this)
18130         * Application.cs (Run): Now triggers the ThreadExit event
18131         * CommonDialog.cs: Added new keyword where required; now properly sets
18132           parent (owner) for dialog
18133         * XplatUIX11.cs: Commented out unused vars
18134         * StatusBar.cs: Fixed signature for Text property
18135         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
18136
18137 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
18138
18139         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
18140         TrackBar.cs, MonthCalendar.cs: remove unused vars
18141
18142 2005-01-03  Jackson Harper  <jackson@ximian.com>
18143
18144         * ThemeWin32Classic.cs:
18145         * X11Keyboard.cs: Remove unused vars.
18146
18147 2005-01-03  Peter Bartok  <pbartok@novell.com>
18148
18149         * TextBox.cs:
18150           - set_Text: Tied into TextControl
18151           - set_TextAlignment: Tied into TextControl
18152         * TextControl.cs:
18153           - Added alignment properties and implemented alignment handling
18154             and drawing (still has a bug, not generating proper expose events)
18155           - Added new Line() constructor to allow passing the line alignment
18156           - Fixed selection setting, properly handling end<start now
18157           - Added aligment considerations to RecalculateDocument()
18158         * TextBoxBase.cs:
18159           - Now properly enforces control height for single line controls
18160           - Added support for CharacterCasing
18161           - Added IsInputKey override
18162           - Fixed Keys.Enter logic
18163           - Added SetBoundsCore override
18164           - Fixed mouse selection handling
18165
18166 2005-01-03  Jackson Harper  <jackson@ximian.com>
18167
18168         * TreeView.cs:
18169           - Collapse and uncheck all nodes when CheckBoxes is disabled.
18170           - Checkboxes are always aligned to the bottom of the node,
18171           regardless of item height.
18172           - Use the node bounds to draw the text so we can center it when
18173           the item height is greater then the font height.
18174           - Node::Bounds are only the text part of the node.
18175         * TreeNode.cs: New method to combine collapsing and unchecking all
18176           nodes recursively.
18177
18178 2005-01-02  Jackson Harper  <jackson@ximian.com>
18179
18180         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
18181         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
18182         tree when a check is changed. TODO: Only refresh the checked node.
18183
18184 2004-12-30  Jackson Harper  <jackson@ximian.com>
18185
18186         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
18187         * TreeNode.cs: When collapsing make sure to never collapse the
18188         root node.
18189
18190 2004-12-29  Jackson Harper  <jackson@ximian.com>
18191
18192         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
18193         
18194 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
18195
18196         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
18197
18198 2004-12-28  Peter Bartok  <pbartok@novell.com>
18199
18200         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
18201           not yet assigned
18202
18203 2004-12-28  Peter Bartok  <pbartok@novell.com>
18204
18205         * Control.cs (WndProc): Added WM_HELP handler, now generates
18206           HelpRequested event
18207         * Form.cs: Added HelpButton property and required support code
18208         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
18209
18210 2004-12-28  Peter Bartok  <pbartok@novell.com>
18211
18212         * CommonDialog.cs:
18213           - Made DialogForm.owner variable internal
18214           - Added check to ensure owner form is set before setting
18215             owner properties in CreateParams
18216
18217 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
18218
18219         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
18220           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
18221           GetCursorPos.  Fix major visibility issues.  Rework the windowing
18222           system to support borderless/titleless windows (implements menus).
18223           Fix GetWindowPos.  Implement initial background color support for
18224           views.
18225
18226 2004-12-28  Peter Bartok  <pbartok@novell.com>
18227
18228         * Form.cs (get_CreateParams): Make sure we have an owner before using
18229           the owner variable. Implement proper default if no owner exists
18230
18231 2004-12-28  Peter Bartok  <pbartok@novell.com>
18232
18233         * In preparation for making Managed.Windows.Forms the default build target
18234           for System.Windows.Forms, the following stubbed files were added.
18235           Dialogs are currently being implemented by contributors and are only
18236           short-term place holders.
18237         * ColorDialog.cs: Initial check-in (minmal stub)
18238         * DataGrid.cs: Initial check-in (minimal stub)
18239         * DataGridLineStyle.cs: Initial check-in (minimal stub)
18240         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
18241         * DataGridTableStyle.cs: Initial check-in (minimal stub)
18242         * FontDialog.cs: Initial check-in (minimal stub)
18243         * FileDialog.cs: Initial check-in (minimal stub)
18244         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
18245         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
18246         * OpenFileDialog: Initial check-in (minimal stub)
18247         * IComponentEditorPageSite.cs: Initial check-in
18248         * Splitter.cs: Initial check-in (for Jackson)
18249         * SplitterEventArgs.cs: Initial check-in (for Jackson)
18250         * SplitterEventHandler.cs: Initial check-in (for Jackson)
18251         * TextBox.cs: Initial check-in; still needs some wiring to
18252           TextControl backend
18253         * Form.cs: Implemented ControlBox property
18254         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
18255         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
18256         * TextControl.cs: Added selection functionality; added todo header
18257         * TextBoxBase.cs:
18258           - Implemented Lines property
18259           - Implemented TextHeight property
18260           - Implemented SelectedText property
18261           - Implemented SelectionLength property
18262           - Implemented SelectAll method
18263           - Implemented ToString method
18264           - Removed and cleaned up some debug code
18265           - Implemented (still buggy) mouse text selection
18266
18267 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
18268
18269         * ComboBox.cs: Complete DropDownList implementation, fixes.
18270
18271 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
18272
18273         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
18274         * ComboBoxStyle.cs: ComboBoxStyle enum
18275         * ComboBox.cs: Initial work on ComboBox control
18276
18277 2004-12-21  Peter Bartok  <pbartok@novell.com>
18278
18279         * Control.cs (ctor, CreateParams): Moved setting of is_visible
18280           forward so that anything that creates a window gets the default,
18281           also no longer uses Visible property in CreateParams to avoid
18282           walking up the parent chain and possibly get the wrong visible
18283           status. Fixed IsVisible to no longer walk up to the parent.
18284
18285 2004-12-21  Peter Bartok  <pbartok@novell.com>
18286
18287         * Form.cs (ShowDialog): Unset modality for the proper window
18288  
18289 2004-12-20  Peter Bartok  <pbartok@novell.com>
18290
18291         * CommonDialog.cs: Initial check-in
18292
18293 2004-12-20  Peter Bartok  <pbartok@novell.com>
18294
18295         * Control.cs (Visible): Now uses the parent window instead of the
18296           client area window for the property
18297
18298         * Form.cs
18299           - ShowDialog(): Now uses the proper window for modality
18300           - The default visibility state for the form parent is now false. This
18301             will prevent the user from seeing all the changes to the form and
18302             its controls before the application hits Application.Run()
18303           - Removed some stale commented out code
18304
18305         * NativeWindow.cs:
18306           - Added FindWindow() method to have a method to check for existence
18307             of a window handle
18308           - Added ability to override default exception handling (for example
18309             when debugging with VS.Net; to do this the ExternalExceptionHandler
18310             define must be set
18311           - Removed some useless debug output
18312
18313         * XplatUIX11.cs:
18314           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
18315             not working as expected
18316           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
18317             property to allow switching back to the modal window if focus is
18318             given to another one of our windows (Application Modal)
18319           - Now only sets override_redirect if we create a window
18320             without WS_CAPTION
18321           - Moved EventMask selection before mapping of newly created window
18322             so we can catch the map event as well
18323           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
18324           - Added various Atom related DllImports
18325           - Implemented Exit() method
18326           - .ctor() : No longer shows window if WS_VISIBLE is not defined
18327             in the CreateParams
18328
18329         * MessageBox.cs: Now properly deals with the FormParent window by
18330           providing an override the FormParent CreateParams property to
18331           set as POPUP instead of OVERLAPPED window.
18332
18333 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
18334
18335         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
18336         Minor code cleanup.
18337
18338 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
18339         
18340         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
18341
18342 2004-12-18  Peter Bartok  <pbartok@novell.com>
18343
18344         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
18345           implementing SetModal() method
18346
18347 2004-12-18  Peter Bartok  <pbartok@novell.com>
18348
18349         * X11Structs.cs (XGCValues): Fixed type of function element
18350         * XplatUI.cs: Added ScrollWindow() method
18351         * XplatUIDriver.cs: Added ScrollWindow() abstract
18352         * XplatUIWin32.cs: Implemented ScrollWindow() method
18353         * XplatUIX11.cs: Implemented ScrollWindow() method
18354         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
18355
18356 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
18357
18358         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
18359         Some more keyboard support (INCOMPLETE)
18360
18361 2004-12-17  Peter Bartok  <pbartok@novell.com>
18362
18363         * TextControl.cs:
18364         - Added color attribute to line tags.
18365         - Added color argument to all functions dealing with tags
18366         - Added color argument support to various functions
18367         - Fixed miss-calculation of baseline/shift in certain circumstances
18368
18369         * TextBoxBase.cs: Added new color option to test code
18370
18371 2004-12-17  Jackson Harper  <jackson@ximian.com>
18372
18373         * TreeNode.cs:
18374         * MonthCalendar.cs: Signature fixes
18375
18376 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
18377
18378         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
18379         keyboard event moved it.  Create a new graphics context for each paint resolves this
18380
18381 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
18382
18383         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
18384         Make caret exist and go blink blink.  Initial keyboard support.
18385         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
18386         works.
18387
18388 2004-12-17  Jackson Harper  <jackson@ximian.com>
18389
18390         * XplatUIStructs.cs: Updated set of virtual keycodes.
18391         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
18392
18393 2004-12-17  Jackson Harper  <jackson@ximian.com>
18394
18395         * XplatUIX11.cs: Prune old keyboard code.
18396
18397 2004-12-17  Jackson Harper  <jackson@ximian.com>
18398
18399         * XplatUIX11.cs: When generating mouse wparams get the modifier
18400         keys from the ModifierKeys property.
18401
18402 2004-12-17  Jackson Harper  <jackson@ximian.com>
18403
18404         * X11Keyboard.cs: Send up/down input when generating
18405         messages. Remove some unused vars.
18406
18407 2004-12-17  Jackson Harper  <jackson@ximian.com>
18408
18409         * TabControl.cs:
18410         * TreeView.cs: get rid of warnings.
18411
18412 2004-12-17  Jackson Harper  <jackson@ximian.com>
18413
18414         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
18415
18416 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
18417
18418         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
18419           CheckedListBox.cs: Implementation
18420
18421 2004-12-17  Peter Bartok  <pbartok@novell.com>
18422
18423         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
18424
18425 2004-12-16  Peter Bartok  <pbartok@novell.com>
18426
18427         * TextControl.cs:
18428           - InsertCharAtCaret(): Fixed start pos fixup
18429           - CaretLine_get: No longer derives the line from the tag, the tag
18430             could be stale if lines in the document have been added or deleted
18431           - RebalanceAfterDelete(): Fixed bug in balancing code
18432           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
18433           - Line.Streamline(): Now can also elminate leading empty tags
18434           - DumpTree(): Added a few more tests and prevented exception on
18435             uninitialized data
18436           - Added Debug section for Combining lines
18437           - Delete(): Now copies all remaining properties of a line
18438           
18439         * TextBoxBase.cs:
18440           - Left mousebutton now sets the caret (and middle button still acts
18441             as formatting tester, which must go away soon)
18442           - Added Debug section for Deleting/Combining lines
18443           - Fixed calculations for UpdateView after Combining lines
18444
18445 2004-12-16  Peter Bartok  <pbartok@novell.com>
18446
18447         * TextControl.cs: Now properly aligns text on a baseline, using the
18448           new XplatUI.GetFontMetrics() method. Simplified several calculations
18449         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
18450           defined
18451
18452 2004-12-16  Peter Bartok  <pbartok@novell.com>
18453
18454         * XplatUI.cs: Added GetFontMetrics() method
18455         * XplatUIDriver.cs: Added GetFontMetrics() abstract
18456         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
18457           into libgdiplus, our private GetFontMetrics function
18458         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
18459         * XplatUIWin32.cs: Implemented GetFontMetrics() method
18460
18461 2004-12-16  Jackson Harper  <jackson@ximain.com>
18462
18463         * XplatUIStruct.cs: Add enum for dead keys
18464         * X11Keyboard.cs: Map and unmap dead keys.
18465
18466 2004-12-16  Jackson Harper  <jackson@ximian.com>
18467
18468         * X11Keyboard.cs: Detect and use the num lock mask.
18469
18470 2004-12-16  Peter Bartok  <pbartok@novell.com>
18471
18472         * Control.cs (CreateGraphics): Added check to make sure the
18473           handle of the window exists before calling Graphics.FromHwnd()
18474
18475 2004-12-16  Peter Bartok  <pbartok@novell.com>
18476
18477         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
18478           contains a lot of code that's not supposed to be there for the
18479           real thing, but required for developing/testing the textbox
18480           backend.
18481
18482 2004-12-16  Peter Bartok  <pbartok@novell.com>
18483
18484         * TextControl.cs:
18485         - Fixed Streamline method
18486         - Added FindTag method to Line
18487         - Added DumpTree method for debugging
18488         - Added DecrementLines() method for deleting lines
18489         - Fixed UpdateView to update the cursor to end-of-line on single-line
18490           updates
18491         - Added PositionCaret() method
18492         - Fixed MoveCaret(LineDown) to move into the last line, too
18493         - Added InsertChar overload
18494         - Fixed InsertChar tag offset calculations
18495         - Added DeleteChar() method
18496         - Added Combine() method for folding lines
18497         - Fixed Delete() method, no longer allocates wasted Line object and
18498           now copies all properties when swapping nodes
18499         - Delete() method now updates document line counter
18500
18501 2004-12-15  Jackson Harper  <jackson@ximian.com>
18502
18503         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
18504         * X11Keyboard.cs: Expose the currently selected modifier keys
18505         through a property.
18506
18507 2004-12-15  Peter Bartok  <pbartok@novell.com>
18508
18509         * TextControl.cs: Initial check-in. Still incomplete
18510
18511 2004-12-15  Jackson Harper  <jackson@ximian.com>
18512
18513         * TreeNode.cs:
18514         * TreeView.cs: Fix build on csc (second time today ;-))
18515
18516 2004-12-15  Jackson Harper  <jackson@ximian.com>
18517
18518         * TreeView.cs: Store the treenodes plus/minus box bounds when it
18519         is calculated and use this for click testing.
18520         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
18521
18522 2004-12-15  Jackson Harper  <jackson@ximian.com>
18523
18524         * TreeView.cs: Pass the nodes image index to the image list when
18525         drawing that image.
18526
18527 2004-12-15  Jackson Harper  <jackson@ximian.com>
18528
18529         * X11Keyboard.cs: Set messages hwnd.
18530         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
18531         post_message calls.
18532
18533 2004-12-15  Jackson Harper  <jackson@ximian.com>
18534
18535         * X11Keyboard.cs: Fix to compile with csc.
18536         
18537 2004-12-15  Jackson Harper  <jackson@ximian.com>
18538
18539         * X11Structs.cs: Add key mask values
18540         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
18541         * X11Keyboard.cs: New file - Extrapolates and interpolates key
18542         down/up foo into WM_CHAR foo
18543         * KeyboardLayouts.cs: Common keyboard layouts
18544         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
18545         post messages into the main queue.
18546
18547 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
18548
18549         * Button.cs: implement ProcessMnemonic
18550         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
18551           brushes everytime
18552         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
18553         * ButtonBase.cs: Show HotkeyPrefix (not the &)
18554
18555 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
18556         
18557         * MonthCalendar.cs: Implemented click-hold for next/previous month
18558           and date selection
18559           
18560 2004-12-11  Peter Bartok  <pbartok@novell.com>
18561
18562         * X11Structs.cs:
18563           - Added XKeyboardState (moved from XplatUIX11.cs)
18564           - Added XCreateGC related enums and structures
18565           - Added GXFunction for XSetFunction
18566
18567         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
18568
18569         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
18570           CaretVisible() calls
18571
18572         * ToolTip.cs: Added code to prevent stealing focus from app windows
18573
18574         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
18575           DestroyCaret, SetCaretPos and CaretVisible)
18576
18577         * XplatUIX11.cs:
18578           - Added implementation for caret functions
18579           - Moved hover variables into a struct, to make it a bit easier
18580             on the eyes and to debug
18581           - Removed XKeyboardState (moved to XplatUIX11.cs)
18582           - Moved Keyboard properties into the properties region
18583
18584         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
18585           call to get a graphics context for our control
18586
18587         * XplatUIOSX.cs: Added empty overrides for the new caret functions
18588
18589         * TreeView.cs: Fixed bug. No matter what color was set it would always
18590           return SystemColors.Window
18591
18592         * XplatUIWin32.cs: Implemented caret overrides
18593
18594 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
18595
18596         * ListBox.cs: fire events, implement missing methods and properties,
18597         sorting.
18598
18599 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
18600
18601         * MonthCalendar.cs: invalidation bug fixing
18602         * ThemeWin32Classic.cs: paint fixing
18603
18604 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
18605
18606         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
18607         prepare the CGContextRef there now.
18608
18609 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
18610
18611         * MonthCalendar.cs:
18612           - optimisationL only invalidate areas that have changed
18613         * ThemeWin32Classic.cs:
18614           - only paint parts that intersect with clip_area
18615
18616 2004-12-09  Peter Bartok  <pbartok@novell.com>
18617
18618         * Application.cs: Undid changes from r37004 which cause problems
18619         on X11
18620
18621 2004-12-09  Ravindra  <rkumar@novell.com>
18622
18623         * ToolBar.cs: Added support for displaying ContextMenu
18624         attached to a button on ToolBar.
18625         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
18626         property.
18627
18628 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
18629
18630         * Label.cs: autosize works in text change and removes unnecessary
18631         invalidate
18632
18633 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
18634
18635         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
18636         remove warnings
18637
18638 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
18639
18640         * XplatUIOSX.cs: Added mouse move/click/grab support
18641         Remove some debugging WriteLines not needed anymore.
18642         Add window resizing/positioning.
18643         Fix visibility on reparenting.
18644
18645 2004-12-08  Peter Bartok  <pbartok@novell.com>
18646
18647         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
18648
18649 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
18650
18651         * XplatUIOSX.cs: Initial checkin
18652         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
18653
18654 2004-12-03  Ravindra <rkumar@novell.com>
18655
18656         * ListView.cs: Added some keybindings and fixed scrolling.
18657         ScrollBars listen to ValueChanged event instead of Scroll
18658         Event. This would let us take care of all changes being
18659         done in the scrollbars' values programmatically or manually.
18660         * ListView.cs (CanMultiselect): Added a check for shift key.
18661         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
18662         * ListViewItem.cs (Clone): Fixed. We need to make a copy
18663         of ListViewSubItemCollection as well.
18664
18665 2004-12-06  Peter Bartok <pbartok@novell.com>
18666
18667         * Control.cs (Parent): Added check and exception to prevent
18668         circular parenting
18669
18670 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
18671
18672         * ListBox.cs: implemented clipping, selection single and multiple,
18673         bug fixing
18674
18675 2004-12-03  Ravindra <rkumar@novell.com>
18676
18677         * ListView.cs (ListView_KeyDown):
18678         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
18679         when CTRL key is pressed.
18680         * ListViewItem.cs (Selected): Fixed setting the property.
18681
18682 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
18683
18684         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
18685
18686         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
18687         MinimizeBox, ShowInTaskbar, TopMost properties.
18688
18689         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
18690         will be implemented).
18691
18692 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
18693
18694         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
18695
18696         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
18697         tests.
18698         
18699         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
18700         
18701         * TreeView.cs: BackColor is Colors.Window.
18702
18703 2004-12-01  Jackson Harper  <jackson@ximian.com>
18704
18705         * TreeView.cs: When resizing the tree if the user is making it
18706         smaller we don't get expose events, so we need to handle adding
18707         the horizontal scrollbar in the size changed handler as well as
18708         the expose handler.
18709
18710 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
18711
18712         * DrawItemState.cs: fixes wrong enum values
18713
18714 2004-12-01  Jackson Harper  <jackson@ximian.com>
18715
18716         * TreeView.cs: Resize the hbar as well as the vbar on resize.
18717
18718 2004-12-01  Jackson Harper  <jackson@ximian.com>
18719
18720         * NodeLabelEditEventArgs.cs:
18721         * NodeLabelEditEventHandler.cs:
18722         * OpenTreeNodeEnumerator.cs:
18723         * TreeNode.cs:
18724         * TreeNodeCollection.cs:
18725         * TreeView.cs:
18726         * TreeViewAction.cs:
18727         * TreeViewCancelEventArgs.cs:
18728         * TreeViewCancelEventHandler.cs:
18729         * TreeViewEventArgs.cs:
18730         * TreeViewEventHandler.cs: Initial implementation.
18731
18732 2004-12-01  Ravindra <rkumar@novell.com>
18733
18734         * ListView.cs (CalculateListView): Fixed scrolling related
18735         calculations. Also, removed some debug statements from other
18736         places.
18737         * ListViewItem.cs: Changed access to 'selected' instance variable
18738         from private to internal.
18739         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
18740
18741 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
18742
18743         * ThemeWin32Classic.cs: remove cache of brush and pens for
18744         specific controls and use the global system, fixes scrollbutton
18745         bugs (for small sizes, disabled, etc)
18746         
18747         * ScrollBar.cs: does not show the thumb for very small controls
18748         (as MS) and allow smaller buttons that the regular size
18749
18750 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
18751
18752         * UpDownBase.cs: Add abstract methods for the interface.
18753         Add new virtual methods (need to be hooked up to TextEntry when it
18754         exists).
18755         Add override methods for most features.
18756         Computes the size, forces the height of the text entry.
18757
18758         * NumericUpDown.cs: Put here the current testing code.
18759
18760         * Set eol-style property on all files that do not have mixed line
18761         endings, to minimize the future problems.  There are still a few
18762         files with mixed endings, and someone should choose whether they
18763         want to move it or not.
18764
18765 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
18766
18767         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
18768         System.Colors
18769         
18770 2004-11-30  Ravindra <rkumar@novell.com>
18771
18772         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
18773         drawing and replaced use of SystemColors by theme colors.
18774         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
18775         * ListView.cs (ListViewItemCollection.Add): Throw exception when
18776         same ListViewItem is being added more than once.
18777
18778 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
18779
18780         * MonthCalendar.cs:
18781           - ControlStyles love to make the control not flicker
18782           
18783 2004-11-30  Peter Bartok  <pbartok@novell.com>
18784
18785         * CharacterCasing.cs: Added
18786
18787 2004-11-29  Peter Bartok  <pbartok@novell.com>
18788
18789         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
18790           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
18791           I am removing these files as they conflict with already completed
18792           work. While it is fantastic to get contributions to MWF, I
18793           respectfully ask that everyone please coordinate their contributions
18794           through mono-winforms-list or #mono-winforms at this time. We're
18795           explicitly avoiding stubbing and don't want controls that don't have
18796           their basic functionality implemented in svn. Please also see
18797           http://www.mono-project.com/contributing/winforms.html
18798
18799
18800 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
18801
18802         * Application.cs (ModalRun): Don't hang after exit.
18803
18804         * Theme.cs: New TreeViewDefaultSize property.
18805
18806         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
18807         with less hardcoded SystemColors constant.
18808         Implemented TreeViewDefaultSize.
18809
18810         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
18811         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
18812
18813
18814 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
18815
18816         * MonthCalendar.cs:
18817           - Fix NextMonthDate and PrevMonthDate click moving calendar
18818
18819 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
18820
18821         * MonthCalendar.cs:
18822           - Fix usage of ScrollChange Property when scrolling months
18823
18824 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
18825
18826         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
18827          - Fixes menu destroying
18828          - Support adding and removing items on already created menus
18829
18830 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
18831
18832         * MonthCalendar.cs:
18833           - Re-worked all bolded dates handling to match win32
18834         * ThemeWin32Classic.cs:
18835           - Fixed rendering with bolded dates
18836
18837 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
18838
18839         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
18840         - Horizontal scroolbar
18841         - Multicolumn
18842         - Fixes
18843
18844
18845 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
18846
18847         * MonthCalendar.cs:
18848           - Fix Usage of MaxSelectionCount from SelectionRange
18849           - Fixed Shift + Cursor Selection
18850           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
18851           - Fixed normal cursor selection to be compat with win32
18852           - Fixed Shift + Mouse Click selection
18853
18854 2004-11-24  Peter Bartok <pbartok@novell.com>
18855
18856         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
18857         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
18858         * XplatUIX11.cs:
18859           - CreatedKeyBoardMsg now updates keystate with Alt key
18860           - Added workaround for timer crash to CheckTimers, Jackson will
18861             develop a proper fix and check in later
18862           - Implemented DispatchMessage
18863           - Removed calling the native window proc from GetMessage (call
18864             now moved to DispatchMessage)
18865
18866         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
18867           the keydata (Fixes bug #69831)
18868
18869         * XplatUIWin32.cs:
18870           - (DispatchMessage): Switched to return IntPtr
18871           - Added DllImport for SetFocus
18872
18873 2004-11-24  Ravindra <rkumar@novell.com>
18874
18875         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
18876         background drawing.
18877         * ListViewItem.cs: Fixed various properties, calculations
18878         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
18879         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
18880         and some internal properties. Fixed MouseDown handler and Paint
18881         method.
18882
18883 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
18884
18885         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
18886
18887 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
18888
18889         * ContainerControl.cs: correct accidental check in of local changes
18890
18891 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
18892
18893         * ThemeWin32Classic.cs:
18894                 - Fixed Drawing Last month in grid (sometimes not showing)
18895         * MonthCalendar.cs:
18896                 - Fixed title width calculation bug (makeing title small)
18897
18898 2004-11-23  Peter Bartok <pbartok@novell.com>
18899
18900         * XplatUIX11.cs:
18901           - Added generation of WM_MOUSEHOVER event
18902           - Added missing assignment of async_method atom
18903           - Fixed WM_ERASEBKGND; now only redraws the exposed area
18904
18905 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
18906
18907         * ThemeWin32Classic.cs:
18908                 - Fixed Drawing of today circle when showtodaycircle not set
18909                 - fixed drawing of first and last month in the grid (gay dates)
18910         * MonthCalendar.cs:
18911                 - Fixed Drawing of today circle
18912                 - Fixed drawing of grady dates
18913                 - Fixed HitTest for today link when ShowToday set to false
18914                 - Fixed DefaultSize to obey ShowToday
18915
18916 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
18917
18918         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
18919         * System.Windows.Forms/Theme.cs
18920         * MonthCalendar.cs: added for MonthCalendar
18921         * SelectionRange.cs: added for MonthCalendar
18922         * Day.cs: added for MonthCalendar: added for MonthCalendar
18923         * DateRangeEventArgs.cs: added for MonthCalendar
18924         * DateRangeEventHandler.cs: added for MonthCalendar
18925
18926 2004-11-22  Ravindra <rkumar@novell.com>
18927
18928         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
18929         property.
18930
18931 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
18932
18933         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
18934         event handler.
18935         
18936         * NumericUpDown.cs: Added new implementation.
18937         * UpDownBase.cs: Added new implementation.
18938
18939         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
18940         implementations.
18941         
18942         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
18943         implementations.
18944
18945         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
18946         methods.
18947
18948 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
18949
18950         * Timer.cs  (Dispose): Should call the base dispose when
18951         overriding.
18952
18953 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
18954
18955         * ScrollBar.cs: updates thumb position when max, min or increment
18956         is changed
18957
18958 2004-11-21  Ravindra <rkumar@novell.com>
18959
18960         * ListView.cs: Implemented item selection, activation and
18961         column header style. Fixed properties to do a redraw, if
18962         required. Added support for MouseHover, DoubleClick, KeyDown
18963         and KeyUp event handling and some minor fixes.
18964         * ListViewItem.cs: Fixed constructor.
18965         * ThemeWin32Classic.cs: Improved drawing for ListView.
18966
18967 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
18968
18969         * ThemeWin32Classic.cs: initial listbox drawing code
18970         * DrawMode.cs: new enumerator
18971         * ListControl.cs: stubbed class
18972         * ListBox.cs: initial implementation
18973         * Theme.cs: new methods definitions
18974         * SelectionMode.cs: new enumerator
18975
18976 2004-11-17  Peter Bartok  <pbartok@novell.com>
18977
18978         * XplatUIWin32.cs: Added double-click events to the class style
18979         * Control.cs (WndProc):
18980           - Added handling of click-count to MouseDown/ MouseUp events.
18981           - Added handling of middle and right mouse buttons
18982           - Removed old debug code
18983
18984 2004-11-17  Jackson Harper  <jackson@ximian.com>
18985
18986         * XplatUIX11.cs: Use the new Mono.Unix namespace.
18987
18988 2004-11-17  Ravindra <rkumar@novell.com>
18989
18990         * ListView.cs: Added event handling for MouseMove/Up/Down.
18991         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
18992         * ThemeWin32Classic.cs: We need to clear the graphics context and
18993         draw column header in a proper state.
18994
18995
18996 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
18997
18998         *  Menu.cs: fixes signature
18999
19000 2004-11-16  Peter Bartok  <pbartok@novell.com>
19001
19002         * XplatUIX11.cs (GetMessage): Implemented generation of
19003           double click mouse messages
19004
19005 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
19006
19007         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
19008         not by menu
19009
19010 2004-11-11  Peter Bartok  <pbartok@novell.com>
19011
19012         * HandleData.cs: Added Visible property
19013         * XplatUIX11.cs (IsVisible): Now uses Visible property from
19014           HandleData
19015         * XplatUIX11.cs: Removed old debug leftovers
19016         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
19017         * Control.cs (WndProc): Removed old debug leftovers,
19018           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
19019           needed WM_SIZE handling
19020
19021 2004-11-11  Jackson Harper  <jackson@ximian.com>
19022
19023         * OwnerDrawPropertyBag.cs:
19024         * TreeViewImageIndexConverter.cs: Initial implementation
19025
19026 2004-11-10  Jackson Harper  <jackson@ximian.com>
19027
19028         * ThemeWin32Classic.cs:
19029         * TabControl.cs: instead of moving tabs by the slider pos just
19030         start drawing at the tab that is offset by the slider. This way
19031         scrolling always moves by exactly one tab.
19032
19033 2004-11-10  Jackson Harper  <jackson@ximian.com>
19034
19035         * TabControl.cs: You can only scroll left when the slider has
19036         already ben moved right.
19037         
19038 2004-11-10  Jackson Harper  <jackson@ximian.com>
19039
19040         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
19041         the clip area.
19042         
19043 2004-11-10  Jackson Harper  <jackson@ximian.com>
19044
19045         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
19046         clip area.
19047         
19048 2004-11-09  Jackson Harper  <jackson@ximian.com>
19049
19050         * TabControl.cs (CalcXPos): New helper method so we can determine
19051         the proper place to start drawing vertical tabs.
19052         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
19053         
19054 2004-11-09  Jackson Harper  <jackson@ximian.com>
19055
19056         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
19057         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
19058         and Bottom, left and right are illegal values for this and
19059         multiline is enabled when the alignment is set to left or right.
19060         (DrawTab): Each alignment block should draw the text itself now
19061         because Left requires special love. Also add rendering for Left
19062         aligned tabs.
19063         
19064 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
19065
19066         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
19067         does not destroy the windows, removes debugging messages
19068
19069 2004-11-09  jba  <jba-mono@optusnet.com.au>
19070
19071         * ThemeWin32Classic.cs
19072         (DrawButtonBase): Fix verticle text rect clipping in windows
19073         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
19074         rendering and incorrect text rect clipping
19075         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
19076         rendering and incorrect text rect clipping
19077         
19078 2004-11-08  Jackson Harper  <jackson@ximian.com>
19079
19080         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
19081         bottom when they are bottom aligned so the bottoms of the tabs get
19082         displayed.
19083         * TabControl.cs (DropRow): Move rows up instead of down when the
19084         tab control is bottom aligned.
19085
19086 2004-11-08 13:59  pbartok
19087
19088         * XplatUIX11.cs:
19089           - Added handling for various window styles
19090           - Added handling for popup windows
19091           - Added SetTopmost handling
19092
19093 2004-11-08 13:55  pbartok
19094
19095         * XplatUIWin32.cs:
19096           - Added argument to SetTopmost method
19097           - Fixed broken ClientToScreen function
19098
19099 2004-11-08 13:53  pbartok
19100
19101         * XplatUIStructs.cs:
19102           - Added missing WS_EX styles
19103
19104 2004-11-08 13:53  pbartok
19105
19106         * XplatUI.cs, XplatUIDriver.cs:
19107           - Added argument to SetTopmost
19108
19109 2004-11-08 13:52  pbartok
19110
19111         * X11Structs.cs:
19112           - Added XSetWindowAttributes structure
19113           - Improved XWindowAttributes structure
19114           - Added SetWindowValuemask enum
19115           - Added window creation arguments enum
19116           - Added gravity enum
19117           - Added Motif hints structure
19118           - Added various Motif flags and enums
19119           - Added PropertyMode enum for property functions
19120
19121 2004-11-08 13:50  pbartok
19122
19123         * Form.cs:
19124           - Fixed arguments for updated SetTopmost method
19125
19126 2004-11-08 13:49  pbartok
19127
19128         * ToolTip.cs:
19129           - Fixed arguments for updated SetTopmost function
19130           - Fixed usage of PointToClient
19131
19132 2004-11-08 13:44  pbartok
19133
19134         * MenuAPI.cs:
19135           - Added Clipping of children and siblings
19136
19137 2004-11-08 13:41  pbartok
19138
19139         * MainMenu.cs:
19140           - Removed SetMenuBarWindow call. We do this in Form.cs
19141
19142 2004-11-08 13:40  jackson
19143
19144         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
19145           scrolling jimmi in the correct location with bottom aligned tabs
19146
19147 2004-11-08 13:36  pbartok
19148
19149         * ContainerControl.cs:
19150           - Implemented BindingContext
19151           - Implemented ParentForm
19152
19153 2004-11-08 12:46  jackson
19154
19155         * TabControl.cs: Put bottom rendered tabs in the right location
19156
19157 2004-11-08 07:15  jordi
19158
19159         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
19160           removes dead code
19161
19162 2004-11-05 17:30  jackson
19163
19164         * TabControl.cs: When selected tabs are expanded make sure they
19165           don't go beyond the edges of the tab control
19166
19167 2004-11-05 14:57  jackson
19168
19169         * TabControl.cs: Reset show_slider so if the control is resized to
19170           a size where it is no longer needed it's not displayed anymore
19171
19172 2004-11-05 13:16  jackson
19173
19174         * TabControl.cs: Make tab pages non visible when added to the
19175           control
19176
19177 2004-11-05 12:42  jackson
19178
19179         * TabControl.cs: Implement SizeMode.FillToRight
19180
19181 2004-11-05 12:16  jackson
19182
19183         * Control.cs: Do not call CreateHandle if the handle is already
19184           created
19185
19186 2004-11-05 11:46  jackson
19187
19188         * TabControl.cs: Remove superflous call to CalcTabRows
19189
19190 2004-11-05 09:07  jackson
19191
19192         * XplatUIX11.cs: Update for Mono.Posix changes
19193
19194 2004-11-05 07:00  ravindra
19195
19196         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
19197           scrolling.
19198
19199 2004-11-04 22:47  jba
19200
19201         * ThemeWin32Classic.cs:
19202           - Fix Button rendering for FlatStyle = Flat or Popup
19203           - Fix RadioButton and CheckBox rendering when Appearance = Button
19204             (normal and flatstyle).
19205           - Correct outer rectangle color when drawing focus rectangle
19206           - Adjust button bounds to be 1 px smaller when focused
19207           - Make button not draw sunken 3d border when pushed (windows compat)
19208           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
19209           - Offset the text in RadioButton and Checkbox when being rendered as
19210           a button.
19211           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
19212           radiobuttons
19213           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
19214           - Fixed disabled text rendering for normally rendered radiobuttons
19215
19216 2004-11-04 10:26  jackson
19217
19218         * TabControl.cs: Recalculate tab rows when resizing
19219
19220 2004-11-04 07:47  jordi
19221
19222         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
19223           collection completion, drawing issues, missing features
19224
19225 2004-11-04 05:03  ravindra
19226
19227         * ScrollBar.cs:
19228                 - We need to recalculate the Thumb area when
19229                 LargeChange/maximum/minimum values are changed.
19230           - We set the 'pos' in UpdatePos() method to minimum, if it's less
19231                 than minimum. This is required to handle the case if large_change is
19232                 more than max, and use LargeChange property instead of large_change
19233                 variable.
19234           - We return max+1 when large_change is more than max, like MS does.
19235
19236 2004-11-04 04:29  ravindra
19237
19238         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
19239                 - Changed default value signatures (prefixed all with ListView).
19240                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
19241                 ListView.
19242           - Fixed calculations for ListViewItem and implemented Clone()
19243           method.
19244
19245 2004-11-04 04:26  ravindra
19246
19247         * Theme.cs, ThemeWin32Classic.cs:
19248                 - Changed default ListView values signatures (prefixed all with
19249                 ListView).
19250           - Fixed default size values for VScrollBar and HScrollBar.
19251                 - Fixed DrawListViewItem method.
19252
19253 2004-11-04 04:05  ravindra
19254
19255         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
19256
19257 2004-11-04 04:04  ravindra
19258
19259         * ImageList.cs: Implemented the missing overload for Draw method.
19260
19261 2004-11-03 19:29  jackson
19262
19263         * TabControl.cs: Handle dropping rows on selection properly
19264
19265 2004-11-03 11:59  jackson
19266
19267         * TabControl.cs: remove debug code
19268
19269 2004-11-03 11:52  jackson
19270
19271         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
19272           the scrolly widgerywoo
19273
19274 2004-11-02 13:52  jackson
19275
19276         * TabControl.cs: Resize the tab pages and tabs when the tab control
19277           is resized
19278
19279 2004-11-02 13:40  jackson
19280
19281         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
19282           selected tab to the bottom
19283
19284 2004-11-02 13:39  jackson
19285
19286         * TabPage.cs: Store the tab pages row
19287
19288 2004-11-02 12:33  jordi
19289
19290         * MenuItem.cs: fixes handle creation
19291
19292 2004-11-02 11:42  jackson
19293
19294         * TabControl.cs: signature fix
19295
19296 2004-11-02 08:56  jackson
19297
19298         * TabControl.cs: Calculate whether the tab is on an edge properly.
19299           Remove top secret debugging code
19300
19301 2004-11-01 19:57  jackson
19302
19303         * TabControl.cs: Add click handling, and proper sizing
19304
19305 2004-11-01 19:47  jackson
19306
19307         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
19308           tab controls
19309
19310 2004-11-01 19:39  jackson
19311
19312         * TabPage.cs: add internal property to store the bounds of a tab
19313           page
19314
19315 2004-10-30 04:23  ravindra
19316
19317         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
19318           values.
19319
19320 2004-10-30 04:21  ravindra
19321
19322         * ListView.cs, ListViewItem.cs: Added support for scrolling and
19323           fixed calculations.
19324
19325 2004-10-30 03:06  pbartok
19326
19327         * XplatUIX11.cs:
19328           - Removed extension of DllImported libs
19329
19330 2004-10-29 09:55  jordi
19331
19332         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
19333           navigation, itemcollection completion, menu fixes
19334
19335 2004-10-27 22:58  pbartok
19336
19337         * XplatUIX11.cs:
19338           - Now throws a nice error message when no X display could be opened
19339
19340 2004-10-26 13:51  jordi
19341
19342         * ListView.cs: removes warning
19343
19344 2004-10-26 03:55  ravindra
19345
19346         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
19347           ThemeWin32Classic.cs: Some formatting for my last checkins.
19348
19349 2004-10-26 03:36  ravindra
19350
19351         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
19352           control and default values.
19353
19354 2004-10-26 03:35  ravindra
19355
19356         * Theme.cs: Added some default values for ListView control.
19357
19358 2004-10-26 03:33  ravindra
19359
19360         * ToolBar.cs: ToolBar should use the user specified button size, if
19361           there is any. Added a size_specified flag for the same.
19362
19363 2004-10-26 03:33  ravindra
19364
19365         * ColumnHeader.cs: Added some internal members and calculations for
19366           ColumnHeader.
19367
19368 2004-10-26 03:32  ravindra
19369
19370         * ListViewItem.cs: Calculations for ListViewItem.
19371
19372 2004-10-26 03:31  ravindra
19373
19374         * ListView.cs: Added some internal members and calculations for
19375           ListView.
19376
19377 2004-10-22 13:31  jordi
19378
19379         * MenuAPI.cs: speedup menus drawing
19380
19381 2004-10-22 13:16  jackson
19382
19383         * XplatUIX11.cs: Make sure to update exposed regions when adding an
19384           expose event
19385
19386 2004-10-22 11:49  jackson
19387
19388         * Control.cs: oops
19389
19390 2004-10-22 11:41  jackson
19391
19392         * Control.cs: Check to see if the window should have its background
19393           repainted by X when drawing.
19394
19395 2004-10-22 11:31  jackson
19396
19397         * XplatUIX11.cs: When invalidating areas only use XClearArea if
19398           clear is true, this way we do not get flicker from X repainting the
19399           background
19400
19401 2004-10-22 11:28  jackson
19402
19403         * XEventQueue.cs: Queue properly
19404
19405 2004-10-21 09:38  jackson
19406
19407         * XEventQueue.cs: Fix access modifier
19408
19409 2004-10-21 09:36  jackson
19410
19411         * XEventQueue.cs: Don't loose messages
19412
19413 2004-10-21 09:22  jackson
19414
19415         * XEventQueue.cs: Don't loose messages
19416
19417 2004-10-20 04:15  jordi
19418
19419         * BootMode.cs: enum need it by SystemInfo
19420
19421 2004-10-19 21:58  pbartok
19422
19423         * XplatUIWin32.cs:
19424           - Small sanity check
19425
19426 2004-10-19 21:56  pbartok
19427
19428         * Form.cs:
19429           - Added private FormParentWindow class which acts as the container
19430             for our form and as the non-client area where menus are drawn
19431           - Added/Moved required tie-ins to Jordi's menus
19432           - Fixed/Implemented the FormStartPosition functionality
19433
19434 2004-10-19 21:52  pbartok
19435
19436         * Control.cs:
19437           - Removed unneeded locals
19438           - Added code to all size and location properties to understand and
19439             deal with the parent container of Form
19440
19441 2004-10-19 21:33  pbartok
19442
19443         * Application.cs:
19444           - Fixed to deal with new Form subclasses for menus
19445
19446 2004-10-19 17:48  jackson
19447
19448         * XEventQueue.cs: commit correct version of file
19449
19450 2004-10-19 16:50  jackson
19451
19452         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
19453
19454 2004-10-19 16:15  jordi
19455
19456         * MenuAPI.cs: MenuBarCalcSize returns the height
19457
19458 2004-10-19 08:31  pbartok
19459
19460         * Control.cs:
19461           - Added missing call to PreProcessMessage before calling OnXXXKey
19462           methods
19463
19464 2004-10-19 00:04  ravindra
19465
19466         * ToolTip.cs: Fixed constructor.
19467
19468 2004-10-18 09:31  jordi
19469
19470         * MenuAPI.cs: menuitems in menubars do not have shortcuts
19471
19472 2004-10-18 09:26  jordi
19473
19474         * MenuItem.cs: fixes MenuItem class signature
19475
19476 2004-10-18 08:56  jordi
19477
19478         * MenuAPI.cs: prevents windows from showing in the taskbar
19479
19480 2004-10-18 00:28  ravindra
19481
19482         * ToolTip.cs: Suppressed a warning message.
19483
19484 2004-10-18 00:27  ravindra
19485
19486         * Control.cs: Default value of visible property must be true.
19487
19488 2004-10-17 23:19  pbartok
19489
19490         * ToolTip.cs:
19491           - Complete implementation
19492
19493 2004-10-17 23:19  pbartok
19494
19495         * XplatUIX11.cs:
19496           - Added EnableWindow method
19497           - Added SetModal stub
19498           - Added generation of WM_ACTIVATE message (still needs testing)
19499           - Added SetTopMost stub
19500           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
19501
19502 2004-10-17 23:17  pbartok
19503
19504         * XplatUIWin32.cs:
19505           - Removed VirtualKeys to XplatUIStructs
19506           - Implemented SetTopMost method
19507           - Implemented EnableWindow method
19508           - Bugfix in ScreenToClient()
19509           - Bugfixes in ClientToScreen()
19510
19511 2004-10-17 22:51  pbartok
19512
19513         * XplatUIStructs.cs:
19514           - Added WS_EX styles to WindowStyles enumeration
19515
19516 2004-10-17 22:50  pbartok
19517
19518         * XplatUI.cs, XplatUIDriver.cs:
19519           - Added method for enabling/disabling windows
19520           - Added method for setting window modality
19521           - Added method for setting topmost window
19522
19523 2004-10-17 22:49  pbartok
19524
19525         * ThemeWin32Classic.cs:
19526           - Added ToolTip drawing code
19527
19528 2004-10-17 22:49  pbartok
19529
19530         * Theme.cs:
19531           - Added ToolTip abstracts
19532
19533 2004-10-17 22:47  pbartok
19534
19535         * Form.cs:
19536           - Fixed Form.ControlCollection to handle owner relations
19537           - Added Owner/OwnedForms handling
19538           - Implemented Z-Ordering for owned forms
19539           - Removed unneeded private overload of ShowDialog
19540           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
19541             so I hope)
19542           - Fixed Close(), had wrong default
19543           - Added firing of OnLoad event
19544           - Added some commented out debug code for Ownership handling
19545
19546 2004-10-17 22:16  pbartok
19547
19548         * Control.cs:
19549           - Fixed/implemented flat list of controls
19550
19551 2004-10-17 22:14  pbartok
19552
19553         * Application.cs:
19554           - Added code to simulate modal dialogs on Win32
19555
19556 2004-10-17 16:11  jordi
19557
19558         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
19559           mouse event
19560
19561 2004-10-17 13:39  jordi
19562
19563         * MenuAPI.cs: menu drawing fixes
19564
19565 2004-10-15 09:10  ravindra
19566
19567         * StructFormat.cs: General Enum.
19568
19569 2004-10-15 09:09  ravindra
19570
19571         * SizeGripStyle.cs: Enum for Form.
19572
19573 2004-10-15 09:08  ravindra
19574
19575         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
19576           in Theme for ListView.
19577
19578 2004-10-15 09:06  ravindra
19579
19580         * ColumnHeader.cs: Flushing some formatting changes.
19581
19582 2004-10-15 09:05  ravindra
19583
19584         * ListViewItem.cs: Implemented GetBounds method and fixed coding
19585           style.
19586
19587 2004-10-15 09:03  ravindra
19588
19589         * ListView.cs: Implemented Paint method and fixed coding style.
19590
19591 2004-10-15 07:34  jordi
19592
19593         * MenuAPI.cs: fix for X11
19594
19595 2004-10-15 07:32  ravindra
19596
19597         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
19598                 - Renamed Paint() method to Draw() for clarity. Also, moved
19599                 DrawImage() to OnPaint().
19600
19601 2004-10-15 07:25  ravindra
19602
19603         * CheckBox.cs, RadioButton.cs:
19604                 - Removed Redraw (), we get it from ButtonBase.
19605                 - Implemented Paint (), to do class specific painting.
19606
19607 2004-10-15 07:16  ravindra
19608
19609         * ButtonBase.cs:
19610                 - Redraw () is not virtual now.
19611                 - Added an internal virtual method Paint (), so that
19612                 derived classes can do their painting on their own.
19613                 - Modified OnPaint () to call Paint ().
19614
19615 2004-10-15 06:43  jordi
19616
19617         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
19618           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
19619
19620 2004-10-15 00:30  ravindra
19621
19622         * MessageBox.cs:
19623                 - MessageBox on windows does not have min/max buttons.
19624                 This change in CreateParams fixes this on Windows. We
19625                 still need to implement this windowstyle behavior in
19626                 our X11 driver.
19627
19628 2004-10-14 05:14  ravindra
19629
19630         * ToolBar.cs:
19631                 - Changed Redraw () to do a Refresh () always.
19632                 - Fixed the MouseMove event handling when mouse is pressed,
19633                 ie drag event handling.
19634                 - Replaced the usage of ToolBarButton.Pressed property to
19635                 ToolBarButton.pressed internal variable.
19636
19637 2004-10-14 05:10  ravindra
19638
19639         * ToolBarButton.cs:
19640                 - Added an internal member 'inside' to handle mouse move
19641                 with mouse pressed ie mouse drag event.
19642                 - Changed 'Pressed' property to return true only when
19643                 'inside' and 'pressed' are both true.
19644                 - Some coding style love.
19645
19646 2004-10-14 00:17  ravindra
19647
19648         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
19649           public method.
19650
19651 2004-10-14 00:15  ravindra
19652
19653         * ButtonBase.cs: Redraw () related improvements.
19654
19655 2004-10-14 00:14  ravindra
19656
19657         * MessageBox.cs: Moved InitFormSize () out of Paint method and
19658           removed unnecessary calls to Button.Show () method.
19659
19660 2004-10-13 17:50  pbartok
19661
19662         * XplatUIX11.cs:
19663           - Formatting fix
19664           - Removed destroying of window until we solve the problem of X
19665             destroying the window before us on shutdown
19666
19667 2004-10-13 16:32  pbartok
19668
19669         * ButtonBase.cs:
19670           - Now Redraws on MouseUp for FlatStyle Flat and Popup
19671
19672 2004-10-13 14:18  pbartok
19673
19674         * XplatUIX11.cs:
19675           - Added code to destroy the X window
19676
19677 2004-10-13 14:18  pbartok
19678
19679         * XplatUIWin32.cs:
19680           - Added code to destroy a window
19681
19682 2004-10-13 14:12  pbartok
19683
19684         * ButtonBase.cs:
19685           - Added the Redraw on Resize that got dropped in the last rev
19686
19687 2004-10-13 09:06  pbartok
19688
19689         * ThemeWin32Classic.cs:
19690           - Path from John BouAntoun:
19691             * Fix check rendering (centre correctly for normal style, offset
19692               correctly for FlatStyle).
19693             * Fix border color usage (use backcolor) for FlatStyle.Popup
19694             * Use checkbox.Capture instead of checkbox.is_pressed when
19695               rendering flatstyle states.
19696
19697 2004-10-12 21:48  pbartok
19698
19699         * ThemeWin32Classic.cs:
19700           - Removed all occurences of SystemColors and replaced them with the
19701             matching theme color
19702
19703 2004-10-12 21:41  pbartok
19704
19705         * ThemeWin32Classic.cs:
19706           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
19707             him using the function for flatstyle drawing
19708           - Changed functions to use the new version of CPDrawBorder3D
19709
19710 2004-10-12 21:15  pbartok
19711
19712         * ControlPaint.cs:
19713           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
19714             match MS documentation. They need to return defined colors if the
19715             passed color matches the configured control color. Thanks to John
19716             BouAntoun for pointing this out.
19717
19718 2004-10-12 20:57  pbartok
19719
19720         * Control.cs:
19721           - Fix from John BouAntoun: Raise ForeColorChanged event when text
19722             color is changed
19723
19724 2004-10-12 20:46  pbartok
19725
19726         * CheckBox.cs:
19727           - Fix from John BouAntoun: Now properly sets the Appearance property
19728
19729 2004-10-12 20:45  pbartok
19730
19731         * ThemeWin32Classic.cs:
19732           - Fixes from John BouAntoun: now handles forecolors and backcolors
19733             for flatstyle rendered controls much better; It also fixes normal
19734             checkbox rendering when pushed or disabled.
19735
19736 2004-10-08 02:50  jordi
19737
19738         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
19739           work
19740
19741 2004-10-07 08:56  jordi
19742
19743         * ThemeWin32Classic.cs: Removes deletion of cached brushes
19744
19745 2004-10-06 03:59  jordi
19746
19747         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
19748           XplatUIWin32.cs: removes warnings from compilation
19749
19750 2004-10-05 12:23  jackson
19751
19752         * RadioButton.cs: Fix ctor
19753
19754 2004-10-05 11:10  pbartok
19755
19756         * MessageBox.cs:
19757           - Partial implementation by Benjamin Dasnois
19758
19759 2004-10-05 10:15  jackson
19760
19761         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
19762           by John BouAntoun
19763
19764 2004-10-05 03:07  ravindra
19765
19766         * ToolBar.cs:
19767                 - Removed a private method, Draw ().
19768                 - Fixed the ButtonDropDown event handling.
19769                 - Fixed MouseMove event handling.
19770
19771 2004-10-05 03:04  ravindra
19772
19773         * ThemeWin32Classic.cs:
19774                 - Added DrawListView method and ListViewDefaultSize property.
19775                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
19776                 - Changed DOS style CRLF to Unix format (dos2unix).
19777
19778 2004-10-05 03:03  ravindra
19779
19780         * Theme.cs:
19781                 - Added DrawListView method and ListViewDefaultSize property.
19782
19783 2004-10-05 02:42  ravindra
19784
19785         * ToolBarButton.cs: Added an internal member dd_pressed to handle
19786           clicks on DropDown arrow.
19787
19788 2004-10-04 22:56  jackson
19789
19790         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
19791           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
19792           Control handle the buffers, derived classes should not have to
19793           CreateBuffers themselves.
19794
19795 2004-10-04 21:20  jackson
19796
19797         * StatusBar.cs: The control handles resizing the buffers now.
19798
19799 2004-10-04 21:18  jackson
19800
19801         * Control.cs: When resizing the buffers should be invalidated. This
19802           should be handled in Control not in derived classes.
19803
19804 2004-10-04 14:45  jackson
19805
19806         * TabPage.cs: oops
19807
19808 2004-10-04 02:14  pbartok
19809
19810         * LeftRightAlignment.cs:
19811           - Initial check-in
19812
19813 2004-10-04 01:09  jordi
19814
19815         * ThemeWin32Classic.cs: fixes right button position causing right
19816           button not showing on horizontal scrollbars
19817
19818 2004-10-02 13:12  pbartok
19819
19820         * XplatUIX11.cs:
19821           - Simplified the Invalidate method by using an X call instead of
19822             generating the expose ourselves
19823           - Added an expose when the window background is changed
19824           - Implemented ClientToScreen method
19825
19826 2004-10-02 13:08  pbartok
19827
19828         * XplatUIWin32.cs:
19829           - Added Win32EnableWindow method (test for implementing modal
19830           dialogs)
19831           - Added ClientToScreen method and imports
19832
19833 2004-10-02 13:07  pbartok
19834
19835         * XplatUI.cs, XplatUIDriver.cs:
19836           - Added ClientToScreen coordinate translation method
19837
19838 2004-10-02 13:06  pbartok
19839
19840         * KeyPressEventArgs.cs:
19841           - Fixed access level for constructor
19842
19843 2004-10-02 13:06  pbartok
19844
19845         * NativeWindow.cs:
19846           - Changed access level for the window_collection hash table
19847
19848 2004-10-02 13:05  pbartok
19849
19850         * Form.cs:
19851           - Added KeyPreview property
19852           - Added Menu property (still incomplete, pending Jordi's menu work)
19853           - Implemented ProcessCmdKey
19854           - Implemented ProcessDialogKey
19855           - Implemented ProcessKeyPreview
19856
19857 2004-10-02 13:02  pbartok
19858
19859         * Control.cs:
19860           - Added private method to get the Control object from the window
19861           handle
19862           - Implemented ContextMenu property
19863           - Implemented PointToScreen
19864           - Implemented PreProcessMessage
19865           - Implemented IsInputChar
19866           - Implemented IsInputKey
19867           - Implemented ProcessCmdKey
19868           - Completed ProcessKeyEventArgs
19869           - Fixed message loop to call the proper chain of functions on key
19870           events
19871           - Implemented ProcessDialogChar
19872           - Implemented ProcessDialogKey
19873           - Implemented ProcessKeyMessage
19874           - Implemented ProcessKeyPreview
19875           - Added RaiseDragEvent stub (MS internal method)
19876           - Added RaiseKeyEvent stub (MS internal method)
19877           - Added RaiseMouseEvent stub (MS Internal method)
19878           - Added RaisePaintEvent stub (MS Internal method)
19879           - Added ResetMouseEventArgs stub (MS Internal method)
19880           - Implemented RtlTranslateAlignment
19881           - Implemented RtlTranslateContent
19882           - Implemented RtlTranslateHorizontal
19883           - Implemented RtlTranslateLeftRight
19884           - Added generation of KeyPress event
19885
19886 2004-10-02 05:57  ravindra
19887
19888         * ListViewItem.cs: Added attributes.
19889
19890 2004-10-02 05:32  ravindra
19891
19892         * ListView.cs: Added attributes.
19893
19894 2004-10-01 11:53  jackson
19895
19896         * Form.cs: Implement the Close method so work on MessageBox can
19897           continue.
19898
19899 2004-09-30 14:06  pbartok
19900
19901         * XplatUIX11.cs:
19902           - Bug fixes
19903
19904 2004-09-30 11:34  jackson
19905
19906         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
19907
19908 2004-09-30 07:26  ravindra
19909
19910         * ListViewItemConverter.cs: Converter for ListViewItem.
19911
19912 2004-09-30 07:26  ravindra
19913
19914         * SortOrder.cs: Enum for ListView control.
19915
19916 2004-09-30 07:25  ravindra
19917
19918         * ColumnHeader.cs: Supporting class for ListView control.
19919
19920 2004-09-30 07:24  ravindra
19921
19922         * ListView.cs, ListViewItem.cs: Initial implementation.
19923
19924 2004-09-30 07:20  ravindra
19925
19926         * ItemActivation.cs: Enum for ListView Control.
19927
19928 2004-09-29 20:29  pbartok
19929
19930         * XplatUIX11.cs:
19931           - Added lookup of pixel value for background color; tries to get a
19932             color 'close' to the requested color, it avoids having to create a
19933             colormap.  Depending on the display this could mean the used color
19934             is slightly off the desired color. Might have to change it to a more
19935             resource intensive colormap approach, but it will work as a
19936           workaround to avoid red screens.
19937
19938 2004-09-29 14:27  jackson
19939
19940         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
19941
19942 2004-09-28 12:44  pbartok
19943
19944         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
19945           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
19946           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
19947           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
19948           TrackBar.cs, VScrollBar.cs:
19949           - Streamlined Theme interfaces:
19950             * Each DrawXXX method for a control now is passed the object for
19951               the control to be drawn in order to allow accessing any state the
19952               theme might require
19953
19954             * ControlPaint methods for the theme now have a CP prefix to avoid
19955               name clashes with the Draw methods for controls
19956
19957             * Every control now retrieves it's DefaultSize from the current
19958             theme
19959
19960 2004-09-28 12:17  jackson
19961
19962         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
19963           drawing
19964
19965 2004-09-24 14:57  jackson
19966
19967         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
19968           Gives us a nice little performance boost.
19969
19970 2004-09-24 12:02  jackson
19971
19972         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
19973           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
19974           Control and supporting classes. Initial checkin
19975
19976 2004-09-23 13:08  jackson
19977
19978         * Form.cs: Temp build fixage
19979
19980 2004-09-23 01:39  ravindra
19981
19982         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
19983           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
19984           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
19985           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
19986           EventHandlers needed by ListView Control.
19987
19988 2004-09-22 14:12  pbartok
19989
19990         * ScrollableControl.cs:
19991           - Implemented DockPadding property
19992           - Implemented AutoScroll property
19993           - Implemented AutoScrollMargin property
19994           - Implemented AutoScrollMinSize property
19995           - Implemented AutoScrollPosition property
19996           - Implemented DisplayRectangle property (still incomplete)
19997           - Implemented CreateParams property
19998           - Implemented HScroll property
19999           - Implemented VScroll property
20000           - Implemented OnVisibleChanged property
20001
20002 2004-09-22 14:09  pbartok
20003
20004         * Form.cs:
20005           - Added Form.ControllCollection class
20006           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
20007             RemoveOwnedForm (still incomplete, missing on-top and common
20008             minimize/maximize behaviour)
20009           - Added StartPosition property (still incomplete, does not use when
20010             creating the form)
20011           - Added ShowDialog() methods (still incomplete, missing forcing the
20012             dialog modal)
20013
20014 2004-09-22 14:05  pbartok
20015
20016         * Application.cs:
20017           - Added message loop for modal dialogs
20018
20019 2004-09-22 14:02  pbartok
20020
20021         * GroupBox.cs:
20022           - Fixed wrong types for events
20023
20024 2004-09-22 14:00  pbartok
20025
20026         * Shortcut.cs, FormWindowState.cs:
20027           - Fixed wrong values
20028
20029 2004-09-22 12:01  jackson
20030
20031         * Control.cs: Text is never null
20032
20033 2004-09-20 22:14  pbartok
20034
20035         * XplatUIWin32.cs:
20036           - Fixed accessibility level for Idle handler
20037
20038 2004-09-20 18:54  jackson
20039
20040         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
20041           XplatUIX11.cs: New message loop that uses poll so we don't get a
20042           busy loop
20043
20044 2004-09-17 10:43  pbartok
20045
20046         * ScrollBar.cs:
20047           - Fixed behaviour of arrow buttons. Now properly behaves like
20048             Buttons (and like Microsoft's scrollbar arrow buttons)
20049
20050 2004-09-17 10:14  pbartok
20051
20052         * ScrollBar.cs:
20053           - Added missing release of keyboard/mouse capture
20054
20055 2004-09-17 06:18  jordi
20056
20057         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
20058           Theme.cs: Very early menu support
20059
20060 2004-09-16 17:45  pbartok
20061
20062         * XplatUIWin32.cs:
20063           - Fixed sending a window to the front
20064           - Added overload for SetWindowPos to avoid casting
20065
20066 2004-09-16 17:44  pbartok
20067
20068         * Control.cs:
20069           - Added SendToBack and BringToFront methods
20070
20071 2004-09-16 07:00  ravindra
20072
20073         * Copyright: Added Novell URL.
20074
20075 2004-09-16 07:00  ravindra
20076
20077         * ToolBar.cs: Invalidate should be done before redrawing.
20078
20079 2004-09-15 21:19  ravindra
20080
20081         * ColumnHeaderStyle.cs: Enum for ListView Control.
20082
20083 2004-09-15 21:18  ravindra
20084
20085         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
20086           ListView Control.
20087
20088 2004-09-13 18:26  jackson
20089
20090         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
20091           properly
20092
20093 2004-09-13 18:13  jackson
20094
20095         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
20096           a second thread and post messages into the main threads message
20097           queue. This makes timing much more consistent. Both win2K and XP
20098           have a minimum timer value of 15 milliseconds, so we now do this
20099           too.
20100
20101 2004-09-13 15:18  pbartok
20102
20103         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
20104           XplatUIX11.cs:
20105           - Added Z-Ordering methods
20106
20107 2004-09-13 10:56  pbartok
20108
20109         * Form.cs:
20110           - Fixed #region names
20111           - Moved properties and methods into their proper #regions
20112
20113 2004-09-13 10:51  pbartok
20114
20115         * Form.cs:
20116           - Added Accept and CancelButton properties
20117           - Added ProcessDialogKey() method
20118
20119 2004-09-13 08:18  pbartok
20120
20121         * IWindowTarget.cs:
20122           - Initial check-in
20123
20124 2004-09-10 21:50  pbartok
20125
20126         * Control.cs:
20127           - Added DoDragDrop() [incomplete]
20128           - Properly implemented 'Visible' handling
20129           - Added SetVisibleCore()
20130           - Implemented FindChildAtPoint()
20131           - Implemented GetContainerControl()
20132           - Implemented Hide()
20133
20134 2004-09-10 19:28  pbartok
20135
20136         * Control.cs:
20137           - Moved methods into their appropriate #regions
20138           - Reordered methods within regions alphabetically
20139
20140 2004-09-10 18:57  pbartok
20141
20142         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
20143           - Added method to retrieve text from window
20144
20145 2004-09-10 18:56  pbartok
20146
20147         * Control.cs:
20148           - Moved some internal functions into the internal region
20149           - Implemented FontHeight
20150           - Implemented RenderRightToLeft
20151           - Implemented ResizeRedraw
20152           - Implemented ShowFocusCues
20153           - Implemented ShowKeyboardCues
20154           - Implemented FromChildHandle
20155           - Implemented FromHandle
20156           - Implemented IsMnemonic
20157           - Implemented ReflectMessage
20158           - All public and protected Static Methods are now complete
20159
20160 2004-09-10 16:54  pbartok
20161
20162         * Control.cs:
20163           - Implemented remaining missing public instance properties
20164           - Alphabetized some out of order properties
20165
20166 2004-09-10 05:51  ravindra
20167
20168         * PictureBox.cs: Added a check for null image.
20169
20170 2004-09-10 00:59  jordi
20171
20172         * GroupBox.cs: remove cvs tag
20173
20174 2004-09-09 05:25  ravindra
20175
20176         * ToolBar.cs: Make redraw accessible from ToolBarButton.
20177
20178 2004-09-09 05:23  ravindra
20179
20180         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
20181           parent redraw.
20182
20183 2004-09-09 02:28  pbartok
20184
20185         * ThemeWin32Classic.cs:
20186           - Improve disabled string look
20187
20188 2004-09-09 01:15  jordi
20189
20190         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
20191           args and handler
20192
20193 2004-09-08 23:56  ravindra
20194
20195         * ItemBoundsPortion.cs: It's enum, not a class!
20196
20197 2004-09-08 23:47  ravindra
20198
20199         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
20200           Enums for Form.
20201
20202 2004-09-08 21:13  ravindra
20203
20204         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
20205           ListView control.
20206
20207 2004-09-08 21:03  ravindra
20208
20209         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
20210           avoid crash.
20211
20212 2004-09-08 21:01  ravindra
20213
20214         * ScrollableControl.cs: Removed unreachable code.
20215
20216 2004-09-08 06:45  jordi
20217
20218         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
20219
20220 2004-09-08 01:00  jackson
20221
20222         * XplatUIX11.cs: Only run the timers when updating the message
20223           queue. This effectively gives X messages a higher priority then
20224           timer messages. Timers still need love though
20225
20226 2004-09-07 14:01  jackson
20227
20228         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
20229           this for us and the handle is no longer valid.
20230
20231 2004-09-07 13:59  jackson
20232
20233         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
20234           loop that manages to not crash. TODO: Add poll and cleanup timers
20235
20236 2004-09-07 11:12  jordi
20237
20238         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
20239
20240 2004-09-07 03:40  jordi
20241
20242         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
20243           fixes, methods, multiple links
20244
20245 2004-09-06 06:55  jordi
20246
20247         * Control.cs: Caches ClientRectangle rectangle value
20248
20249 2004-09-05 02:03  jordi
20250
20251         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
20252           certain situations
20253
20254 2004-09-04 11:10  jordi
20255
20256         * Label.cs: Refresh when font changed
20257
20258 2004-09-02 16:24  pbartok
20259
20260         * Control.cs:
20261           - Added sanity check to creation of double buffer bitmap
20262
20263 2004-09-02 16:24  pbartok
20264
20265         * ButtonBase.cs:
20266           - Fixed selection of text color
20267           - Fixed handling of resize event; now properly recreates double
20268             buffering bitmap
20269           - Added missing assignment of TextAlignment
20270           - Added proper default for TextAlignment
20271
20272 2004-09-02 14:26  pbartok
20273
20274         * RadioButton.cs:
20275           - Added missing RadioButton.RadioButtonAccessibleObject class
20276
20277 2004-09-02 14:26  pbartok
20278
20279         * Control.cs:
20280           - Added missing Control.ControlAccessibleObject class
20281           - Started to implement Select()ion mechanisms, still very incomplete
20282
20283 2004-09-02 14:25  pbartok
20284
20285         * AccessibleObject.cs:
20286           - Added missing methods
20287
20288 2004-09-02 14:23  pbartok
20289
20290         * AccessibleNavigation.cs, AccessibleSelection.cs:
20291           - Initial check-in
20292
20293 2004-09-02 10:32  jordi
20294
20295         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
20296           pool for pens, brushes, and hatchbruses
20297
20298 2004-09-01 15:30  jackson
20299
20300         * StatusBar.cs: Fix typo
20301
20302 2004-09-01 14:44  pbartok
20303
20304         * RadioButton.cs:
20305           - Fixed state
20306
20307 2004-09-01 14:39  pbartok
20308
20309         * Button.cs, RadioButton.cs:
20310           - Functional initial check-in
20311
20312 2004-09-01 14:01  pbartok
20313
20314         * CheckBox.cs:
20315           - Added missing default
20316           - Added missing region mark
20317
20318 2004-09-01 09:10  jordi
20319
20320         * Label.cs: fixes method signatures, new methods, events, fixes
20321           autosize
20322
20323 2004-09-01 07:19  jordi
20324
20325         * Control.cs: Init string variables with an empty object
20326
20327 2004-09-01 04:20  jordi
20328
20329         * Control.cs: fires OnFontChanged event
20330
20331 2004-08-31 20:07  pbartok
20332
20333         * ButtonBase.cs:
20334           - Enabled display of strings
20335
20336 2004-08-31 20:05  pbartok
20337
20338         * Form.cs:
20339           - Added (partial) implementation of DialogResult; rest needs to be
20340             implemented when the modal loop code is done
20341
20342 2004-08-31 19:55  pbartok
20343
20344         * CheckBox.cs:
20345           - Fixed to match the removal of the needs_redraw concept
20346
20347 2004-08-31 19:55  pbartok
20348
20349         * ButtonBase.cs:
20350           - Removed the rather odd split between 'needs redraw' and redrawing
20351           - Now handles the events that require regeneration (ambient
20352             properties and size)
20353
20354 2004-08-31 19:41  pbartok
20355
20356         * Control.cs:
20357           - Added firing of BackColorChanged event
20358           - Added TopLevelControl property
20359           - Fixed handling of WM_ERASEBKGRND message
20360
20361 2004-08-31 12:49  pbartok
20362
20363         * ButtonBase.cs:
20364           - Removed debug
20365           - Minor fixes
20366
20367 2004-08-31 12:48  pbartok
20368
20369         * CheckBox.cs:
20370           - Finished (famous last words)
20371
20372 2004-08-31 04:35  jordi
20373
20374         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
20375           scrolling bugs, adds new methods
20376
20377 2004-08-30 14:42  pbartok
20378
20379         * CheckBox.cs:
20380           - Implemented CheckBox drawing code
20381
20382 2004-08-30 14:42  pbartok
20383
20384         * ButtonBase.cs:
20385           - Made Redraw() and CheckRedraw() virtual
20386           - Improved mouse up/down/move logic to properly track buttons
20387
20388 2004-08-30 09:44  pbartok
20389
20390         * CheckBox.cs:
20391           - Updated to fix broken build. Not complete yet.
20392
20393 2004-08-30 09:28  pbartok
20394
20395         * CheckState.cs:
20396           - Initial checkin
20397
20398 2004-08-30 09:17  pbartok
20399
20400         * Appearance.cs:
20401           - Initial check-in
20402
20403 2004-08-27 16:12  ravindra
20404
20405         * ToolBarButton.cs: Added TypeConverter attribute.
20406
20407 2004-08-27 16:07  ravindra
20408
20409         * ImageIndexConverter.cs: Implemented.
20410
20411 2004-08-27 14:17  pbartok
20412
20413         * Control.cs:
20414           - Removed unneeded stack vars
20415           - First attempt to fix sizing issues when layout is suspended
20416
20417 2004-08-25 15:35  jordi
20418
20419         * ScrollBar.cs: more fixes to scrollbar
20420
20421 2004-08-25 14:04  ravindra
20422
20423         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
20424           Added the missing divider code and grip for ToolBar Control.
20425
20426 2004-08-25 13:20  pbartok
20427
20428         * Control.cs:
20429           - Control now properly passes the ambient background color to child
20430             controls
20431
20432 2004-08-25 13:20  jordi
20433
20434         * ScrollBar.cs: small bug fix regarding bar position
20435
20436 2004-08-25 12:33  pbartok
20437
20438         * Timer.cs:
20439           - Now only calls SetTimer or KillTimer if the enabled state has
20440           changed
20441
20442 2004-08-25 12:33  pbartok
20443
20444         * XplatUIWin32.cs:
20445           - Fixed timer handling, now seems to work
20446           - Improved error message for window creation
20447
20448 2004-08-25 12:32  pbartok
20449
20450         * Control.cs:
20451           - Fixed generation of MouseUp message
20452
20453 2004-08-25 12:29  jordi
20454
20455         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
20456           and fixes for progressbar
20457
20458 2004-08-24 18:43  ravindra
20459
20460         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
20461           in ToolBar control.
20462
20463 2004-08-24 17:15  pbartok
20464
20465         * Panel.cs:
20466           - Added #region
20467           - Added missing events
20468           - Alphabetized
20469
20470 2004-08-24 17:14  pbartok
20471
20472         * StatusBar.cs, PictureBox.cs:
20473           - Now uses Control's CreateParams
20474
20475 2004-08-24 16:36  pbartok
20476
20477         * XplatUIX11.cs:
20478           - Fixed background color handling
20479           - Fixed sending of enter/leave events on a grab
20480
20481 2004-08-24 16:35  pbartok
20482
20483         * X11Structs.cs:
20484           - Refined definitions for CrossingEvent
20485
20486 2004-08-24 12:37  jordi
20487
20488         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
20489           formmating, methods signature, and adds missing events
20490
20491 2004-08-24 12:24  jordi
20492
20493         * Control.cs: fire OnEnabledChanged event
20494
20495 2004-08-24 11:17  pbartok
20496
20497         * XplatUIWin32.cs:
20498           - Implemented SetTimer() and KillTimer()
20499
20500 2004-08-24 11:16  pbartok
20501
20502         * XplatUIX11.cs:
20503           - Now uses Remove instead of Add to kill the timer
20504
20505 2004-08-24 10:16  jackson
20506
20507         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
20508           picture boxes in the theme now. Draw picture box borders and obey
20509           sizing modes
20510
20511 2004-08-24 05:49  jackson
20512
20513         * Timer.cs: Remove top secret debugging code
20514
20515 2004-08-24 05:34  jackson
20516
20517         * PictureBox.cs: Temp hack to make picture boxes draw their full
20518           image
20519
20520 2004-08-24 05:29  jackson
20521
20522         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
20523           XplatUIX11.cs: Move timers to the driver level. On X they are
20524           queued by the driver and checked on idle.
20525
20526 2004-08-24 01:07  jackson
20527
20528         * XplatUIX11.cs: Use a queue for async messages instead of passing
20529           them as ClientMessages since that was totally broken. Also simply
20530           check for events and return an idle message if none are found. This
20531           gives us an idle handler, and prevents deadlocking when no messages
20532           are in the queue.
20533
20534 2004-08-23 18:19  ravindra
20535
20536         * XplatUIWin32.cs: Removed the unwanted destructor.
20537
20538 2004-08-23 17:27  pbartok
20539
20540         * ButtonBase.cs:
20541           - Finishing touches. Works now, just needs some optimizations.
20542
20543 2004-08-23 16:53  jordi
20544
20545         * ScrollBar.cs: small fix
20546
20547 2004-08-23 16:45  pbartok
20548
20549         * Application.cs:
20550           - Removed debug output
20551           - Simplifications
20552
20553 2004-08-23 16:43  jordi
20554
20555         * ScrollBar.cs: [no log message]
20556
20557 2004-08-23 16:10  pbartok
20558
20559         * Form.cs:
20560           - Fixed handling of WM_CLOSE message
20561           - Removed debug output
20562
20563 2004-08-23 16:09  pbartok
20564
20565         * Application.cs:
20566           - Added handling of Idle event
20567           - Added handling of form closing
20568           - Fixed reporting of MessageLoop property
20569           - Removed some unneeded code, should provide a bit of a speedup
20570
20571 2004-08-23 15:22  pbartok
20572
20573         * Control.cs:
20574           - Added InitLayout() method
20575           - Added code to properly perform layout when Anchor or Dock property
20576             is changed
20577           - Changed 'interpretation' of ResumeLayout. MS seems to have a
20578             LAMESPEC, tried to do it in a way that makes sense
20579
20580 2004-08-23 14:10  jordi
20581
20582         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
20583           properties and methods
20584
20585 2004-08-23 13:55  pbartok
20586
20587         * Control.cs:
20588           - Properly fixed Jordi's last fix
20589           - Now uses Cursor's Position property instead of calling XplatUI
20590           directly
20591
20592 2004-08-23 13:44  jordi
20593
20594         * PaintEventHandler.cs: Adding missing attribute
20595
20596 2004-08-23 13:39  pbartok
20597
20598         * Cursor.cs:
20599           - Implemented Position property
20600
20601 2004-08-23 13:39  pbartok
20602
20603         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
20604           - Added method to move mouse cursor
20605
20606 2004-08-23 13:39  pbartok
20607
20608         * XplatUIX11.cs:
20609           - Fixed setting of background color
20610           - Added method to move mouse cursor
20611
20612 2004-08-23 13:16  jordi
20613
20614         * Control.cs: avoids null exception
20615
20616 2004-08-22 17:46  jackson
20617
20618         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
20619           PictureBox
20620
20621 2004-08-22 17:40  jackson
20622
20623         * XplatUIX11.cs: Add some missing locks
20624
20625 2004-08-22 15:10  pbartok
20626
20627         * Control.cs, Form.cs:
20628           - Removed OverlappedWindow style from Control, instead it's default
20629             now is child
20630           - Made form windows OverlappedWindow by default
20631
20632 2004-08-22 13:34  jackson
20633
20634         * ScrollBar.cs: Update the position through the Value property so
20635           the OnValueChanged event is raised.
20636
20637 2004-08-22 12:04  pbartok
20638
20639         * SWF.csproj:
20640           - Added Cursor.cs and UserControl.cs
20641
20642 2004-08-22 12:03  pbartok
20643
20644         * Cursor.cs:
20645           - Started implementation, not usable yet
20646
20647 2004-08-22 12:00  pbartok
20648
20649         * UserControl.cs:
20650           - Implemented UserControl (complete)
20651
20652 2004-08-21 19:20  ravindra
20653
20654         * ToolBar.cs: Correcting the formatting mess of VS.NET.
20655
20656 2004-08-21 18:49  ravindra
20657
20658         * ToolBar.cs: Probably this completes the missing attributes in
20659           toolbar control.
20660
20661 2004-08-21 18:03  ravindra
20662
20663         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
20664           Fixed toolbar control signatures.
20665
20666 2004-08-21 16:32  pbartok
20667
20668         * LinkLabel.cs:
20669           - Signature Fixes
20670
20671 2004-08-21 16:30  pbartok
20672
20673         * Label.cs:
20674           - Signature fixes
20675
20676 2004-08-21 16:19  pbartok
20677
20678         * Control.cs, Label.cs:
20679           - Signature fixes
20680
20681 2004-08-21 15:57  pbartok
20682
20683         * ButtonBase.cs:
20684           - Added loads of debug output for development
20685           - Fixed typo in method name
20686
20687 2004-08-21 15:52  pbartok
20688
20689         * ToolBarButtonClickEventArgs.cs:
20690           - Added missing base class
20691
20692 2004-08-21 14:53  pbartok
20693
20694         * Control.cs:
20695           - Updated to match new GrabWindow signature
20696
20697 2004-08-21 14:51  pbartok
20698
20699         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
20700           - Added method to get default display size
20701
20702 2004-08-21 14:23  pbartok
20703
20704         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
20705           - Added method to query current grab state
20706           - Added argument to allow confining a grab to a window
20707
20708 2004-08-21 14:22  pbartok
20709
20710         * Keys.cs:
20711           - Added [Flags] attribute so that modifiers can be used in bitwise
20712           ops
20713
20714 2004-08-21 14:21  pbartok
20715
20716         * TrackBar.cs, ScrollBar.cs:
20717           - Replaced direct XplatUI calls with their Control counterpart
20718
20719 2004-08-21 13:32  pbartok
20720
20721         * Control.cs:
20722           - Implemented Created property
20723
20724 2004-08-21 13:28  pbartok
20725
20726         * Control.cs:
20727           - Implemented ContainsFocus
20728
20729 2004-08-21 13:26  pbartok
20730
20731         * Control.cs:
20732           - Implemented CausesValidation
20733
20734 2004-08-21 13:21  pbartok
20735
20736         * Control.cs:
20737           - Implemented CanFocus
20738           - Implemented CanSelect
20739           - Implemented Capture
20740
20741 2004-08-21 12:35  pbartok
20742
20743         * XplatUIWin32.cs:
20744           - Fixed bug with Async message handling
20745           - Implemented getting the ModifierKeys
20746
20747 2004-08-21 12:32  jackson
20748
20749         * AsyncMethodResult.cs: Make sure we have the mutex before we
20750           release it. Fixes BeginInvoke on windows
20751
20752 2004-08-21 11:31  pbartok
20753
20754         * XplatUIWin32.cs, XplatUIX11.cs:
20755           - Drivers now return proper mouse state
20756
20757 2004-08-21 10:54  jackson
20758
20759         * Control.cs: Implement EndInvoke
20760
20761 2004-08-21 10:48  jackson
20762
20763         * Timer.cs: Remove unneeded finalizer
20764
20765 2004-08-20 19:52  ravindra
20766
20767         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
20768           in mouse event handling in the ToolBar control.
20769
20770 2004-08-20 19:50  ravindra
20771
20772         * ImageList.cs: Changed draw method to use the arguments passed in
20773           to draw the image.
20774
20775 2004-08-20 18:58  pbartok
20776
20777         * XplatUIStructs.cs:
20778           - Added private message for async communication
20779
20780 2004-08-20 17:38  ravindra
20781
20782         * Control.cs: Made RightToLeft property virtual and removed a
20783           Console.WriteLine.
20784
20785 2004-08-20 14:39  jordi
20786
20787         * ThemeGtk.cs: use style_attach
20788
20789 2004-08-20 14:39  pbartok
20790
20791         * XplatUIWin32.cs:
20792           - Added jackson's Async code from X11 to Win32
20793
20794 2004-08-20 14:09  pbartok
20795
20796         * SWF.csproj:
20797           - Added all new files
20798
20799 2004-08-20 14:09  pbartok
20800
20801         * Control.cs:
20802           - Added call to set window background color
20803
20804 2004-08-20 14:03  pbartok
20805
20806         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
20807           - Added method for setting the window background
20808
20809 2004-08-20 14:02  pbartok
20810
20811         * XplatUIWin32.cs:
20812           - Added method for setting the background color
20813           - Added handling for erasing the window background
20814
20815 2004-08-20 13:45  jordi
20816
20817         * TrackBar.cs: fixes timer, new properties and methods
20818
20819 2004-08-20 13:34  jackson
20820
20821         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
20822           correct thread
20823
20824 2004-08-20 13:22  jackson
20825
20826         * Timer.cs: Timer Tick events are now handed through Controls Async
20827           mechanism so the callbacks are executed in the same thread as X
20828
20829 2004-08-20 13:19  jackson
20830
20831         * XplatUIDriver.cs: Expose functionality to send async messages
20832           through the driver
20833
20834 2004-08-20 13:18  jackson
20835
20836         * Control.cs: Implement Begininvoke
20837
20838 2004-08-20 13:14  jackson
20839
20840         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
20841           messages through the driver
20842
20843 2004-08-20 13:12  jackson
20844
20845         * XplatUIX11.cs: Lock before all X operations. Also added Async
20846           method functionality through XSendEvent
20847
20848 2004-08-20 13:11  jackson
20849
20850         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
20851           This will screw up on 64 bit systems)
20852
20853 2004-08-20 13:10  jackson
20854
20855         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
20856           Async messages through X/Win32
20857
20858 2004-08-19 19:39  pbartok
20859
20860         * XplatUIX11.cs:
20861           - Updated code to match new HandleData.DeviceContext type
20862
20863 2004-08-19 19:38  pbartok
20864
20865         * HandleData.cs:
20866           - Made DeviceContext a generic object to allow usage from various
20867           drivers
20868           - Added support for queueing Windows messages
20869
20870 2004-08-19 19:37  pbartok
20871
20872         * XplatUIWin32.cs:
20873           - Added generation of MouseEnter, MouseLeave and MouseHover events
20874           - Added cleanup on EndPaint
20875
20876 2004-08-19 19:17  pbartok
20877
20878         * Control.cs:
20879           - Added handling of WM_MOUSEHOVER
20880           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
20881           code
20882
20883 2004-08-19 18:55  jordi
20884
20885         * ThemeGtk.cs: fixes button order
20886
20887 2004-08-19 18:12  jordi
20888
20889         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
20890
20891 2004-08-19 17:09  pbartok
20892
20893         * Control.cs:
20894           - Added Right property
20895           - Added RightToLeft property
20896
20897 2004-08-19 16:27  jordi
20898
20899         * ThemeGtk.cs: experimental GTK theme support
20900
20901 2004-08-19 16:26  jordi
20902
20903         * ITheme.cs, Theme.cs: move themes from an interface to a class
20904
20905 2004-08-19 16:25  jordi
20906
20907         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
20908           theme enhancaments
20909
20910 2004-08-19 16:04  pbartok
20911
20912         * XplatUIX11.cs:
20913           - Added colormap basics
20914           - Added a way to re-initialize with a different display handle
20915           - Fixed setting of the window background color
20916           - Added various X11 imports related to colors and colormaps
20917
20918 2004-08-19 15:51  pbartok
20919
20920         * X11Structs.cs:
20921           - Removed packing hints (Paolo suggested this a while back)
20922           - fixed colormap type
20923           - Added default Atom types
20924           - Added Screen and color structs and enums
20925
20926 2004-08-19 15:39  pbartok
20927
20928         * ImageList.cs:
20929           - Added missing Draw() method
20930           - Added missing RecreateHandle event
20931
20932 2004-08-19 15:30  pbartok
20933
20934         * Form.cs:
20935           - Added handling of WM_CLOSE
20936
20937 2004-08-18 13:16  jordi
20938
20939         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
20940           a table
20941
20942 2004-08-18 09:56  jordi
20943
20944         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
20945
20946 2004-08-17 15:31  ravindra
20947
20948         * SWF.csproj: Updated project.
20949
20950 2004-08-17 15:25  pbartok
20951
20952         * Control.cs:
20953           - Drawing improvement; don't call UpdateBounds if we are not visible
20954             (or have been minimized)
20955
20956 2004-08-17 15:24  pbartok
20957
20958         * XplatUIWin32.cs:
20959           - Finished IsVisible
20960           - Added Win32GetWindowPlacement
20961
20962 2004-08-17 15:08  jackson
20963
20964         * Panel.cs: Initial checkin of the Panel
20965
20966 2004-08-17 14:25  pbartok
20967
20968         * Control.cs:
20969           - Fixed broken handling of default window sizes
20970
20971 2004-08-17 13:29  jackson
20972
20973         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
20974           has a large startup time.
20975
20976 2004-08-17 10:25  jackson
20977
20978         * HandleData.cs: union areas properly
20979
20980 2004-08-17 10:12  jackson
20981
20982         * HandleData.cs: union areas properly
20983
20984 2004-08-16 20:00  ravindra
20985
20986         * ToolBar.cs, ToolBarButton.cs: Added attributes.
20987
20988 2004-08-16 18:48  ravindra
20989
20990         * ToolBar.cs: Added attributes.
20991
20992 2004-08-16 17:17  ravindra
20993
20994         * SWF.csproj: Updated project.
20995
20996 2004-08-16 17:16  jackson
20997
20998         * XplatUIX11.cs: Check for more expose events before sending a
20999           WM_PAINT so they can all be grouped together. This makes dragging a
21000           window across another window redraw in a sane way.
21001
21002 2004-08-16 15:47  pbartok
21003
21004         * Control.cs:
21005           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
21006             support OnMouseEnter/Leave()
21007           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
21008             exposure handling
21009
21010 2004-08-16 15:46  pbartok
21011
21012         * XplatUIStructs.cs, XplatUIX11.cs:
21013           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
21014           OnMouseEnter/Leave()
21015
21016 2004-08-16 15:34  jackson
21017
21018         * XplatUIX11.cs: Group multiple expose events in HandleData, make
21019           sure messages get the message field set to WM_NULL if they are not
21020           handled.
21021
21022 2004-08-16 15:24  jackson
21023
21024         * HandleData.cs: HandleData is used for storing message information
21025           for window handles
21026
21027 2004-08-15 17:23  ravindra
21028
21029         * ColorDepth.cs: Added attribute.
21030
21031 2004-08-15 17:23  ravindra
21032
21033         * SWF.csproj: Updated project for ToolBar Control.
21034
21035 2004-08-15 17:20  ravindra
21036
21037         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
21038           control and also dos2unix format.
21039
21040 2004-08-15 17:13  ravindra
21041
21042         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
21043           ToolBarButtonClickEventArgs.cs,
21044           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
21045           ToolBarTextAlign.cs: First Implementation of ToolBar control.
21046
21047 2004-08-15 15:31  pbartok
21048
21049         * ButtonBase.cs:
21050           - First (mostly) working version
21051
21052 2004-08-13 16:15  pbartok
21053
21054         * Control.cs:
21055           - Fixed Anchor default
21056
21057 2004-08-13 15:43  pbartok
21058
21059         * Control.cs:
21060           - Changed GetCursorPos signature
21061
21062 2004-08-13 15:42  pbartok
21063
21064         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
21065           - Changed signature for GetCursorPos
21066
21067 2004-08-13 15:25  pbartok
21068
21069         * XplatUIX11.cs:
21070           - Cleanup
21071           - Fixed resizing/exposure handling
21072
21073 2004-08-13 15:22  jordi
21074
21075         * ThemeWin32Classic.cs: removes redundant code and fixes issues
21076           with tickposition
21077
21078 2004-08-13 14:55  jordi
21079
21080         * TrackBar.cs: change from wndproc to events
21081
21082 2004-08-13 13:00  jordi
21083
21084         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
21085           XplatUIX11.cs: implements PointToClient (ScreenToClient)
21086
21087 2004-08-13 12:53  pbartok
21088
21089         * XplatUIWin32.cs:
21090           - Changed GetWindowPos to also provide client area size
21091           - Fixed broken prototypes for several win32 functions
21092
21093 2004-08-13 12:53  pbartok
21094
21095         * XplatUI.cs, XplatUIDriver.cs:
21096           - Changed GetWindowPos to also provide client area size
21097
21098 2004-08-13 12:52  pbartok
21099
21100         * XplatUIX11.cs:
21101           - Added generation of WM_POSCHANGED
21102           - Changed GetWindowPos to also provide client area size
21103
21104 2004-08-13 12:52  pbartok
21105
21106         * Control.cs:
21107           - Added Dispose() and destructor
21108           - Fixed resizing and bounds calculation
21109           - Fixed Layout
21110           - Added memory savings for invisible windows
21111
21112 2004-08-13 12:46  jordi
21113
21114         * TrackBar.cs: adds timer and grap window
21115
21116 2004-08-13 10:25  jackson
21117
21118         * Timer.cs: SWF Timer
21119
21120 2004-08-12 16:59  pbartok
21121
21122         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
21123           - Implemented method to get current mouse position
21124
21125 2004-08-12 14:29  jordi
21126
21127         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
21128           enhancement, fix mouse problems, highli thumb, etc
21129
21130 2004-08-12 13:31  pbartok
21131
21132         * Control.cs:
21133           - Fixed Anchoring bugs
21134
21135 2004-08-12 13:01  jackson
21136
21137         * StatusBar.cs: Don't forget things
21138
21139 2004-08-12 12:54  jackson
21140
21141         * ThemeWin32Classic.cs: Handle owner draw status bars
21142
21143 2004-08-12 12:54  jackson
21144
21145         * StatusBar.cs: Implement missing properties, events, and methods.
21146           Handle mouse clicking
21147
21148 2004-08-12 10:19  jackson
21149
21150         * StatusBarPanelClickEventArgs.cs,
21151           StatusBarPanelClickEventHandler.cs: Classes for handling status
21152           bar panel click events
21153
21154 2004-08-12 10:10  jackson
21155
21156         * Control.cs: Add missing properties
21157
21158 2004-08-12 09:46  pbartok
21159
21160         * BindingsManagerBase.cs:
21161           - Name changed to BindingManagerBase.cs
21162
21163 2004-08-12 09:25  jordi
21164
21165         * ScrollableControl.cs: calls ctrlbase instead of exeception
21166
21167 2004-08-11 16:28  pbartok
21168
21169         * InputLanguageChangingEventArgs.cs:
21170           - Never check in before compiling. Fixes the last check-in
21171
21172 2004-08-11 16:26  pbartok
21173
21174         * InputLanguageChangingEventArgs.cs:
21175           - More signature fixes
21176
21177 2004-08-11 16:20  pbartok
21178
21179         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
21180           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
21181           ImageListStreamer.cs, InputLanguage.cs,
21182           InputLanguageChangedEventArgs.cs,
21183           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
21184           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
21185           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
21186           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
21187           - Signature fixes
21188
21189 2004-08-11 16:16  pbartok
21190
21191         * Application.cs:
21192           - Fixed Signature
21193           - Added .Net 1.1 method
21194
21195 2004-08-11 15:25  pbartok
21196
21197         * SWF.csproj:
21198           - Fixed BindingManagerBase.cs filename
21199
21200 2004-08-11 15:22  pbartok
21201
21202         * BindingManagerBase.cs:
21203           - Was checked in with wrong filename
21204
21205 2004-08-11 14:50  pbartok
21206
21207         * SWF.csproj:
21208           - Updated
21209
21210 2004-08-11 13:41  jordi
21211
21212         * XplatUIWin32.cs: Fixes ClientRect
21213
21214 2004-08-11 13:19  pbartok
21215
21216         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
21217           XplatUIX11.cs:
21218           - We had SetWindowPos and MoveWindow to set window positions and
21219             size, removed MoveWindow. We have GetWindowPos, so it made sense to
21220             keep SetWindowPos as matching counterpart
21221           - Added some X11 sanity checking
21222
21223 2004-08-11 12:59  pbartok
21224
21225         * Control.cs:
21226           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
21227             (It seems that SetBounds is just a front for SetBoundsCore and
21228              SetBoundsCore updates the underlying window system and
21229              UpdateBounds is responsible for updating the variables associated
21230              with the Control and sending the events)
21231           - Major cleanup of Size handling; we now have two sizes, client_size
21232             and bounds. Bounds defines the window with decorations, client_size
21233             without them.
21234
21235 2004-08-11 12:55  pbartok
21236
21237         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
21238           - Added method to calculate difference between decorated window and
21239             raw client area
21240
21241 2004-08-11 12:54  pbartok
21242
21243         * Label.cs:
21244           - Forcing redraw on resize
21245
21246 2004-08-11 11:43  pbartok
21247
21248         * ImageList.cs:
21249           - Removed disposing of the actual images when the list is disposed
21250
21251 2004-08-11 09:13  pbartok
21252
21253         * Control.cs:
21254           - Now properly reparents windows
21255
21256 2004-08-11 08:37  pbartok
21257
21258         * Control.cs:
21259           - Duh!
21260
21261 2004-08-11 07:47  pbartok
21262
21263         * Control.cs:
21264           - Rewrote the collection stuff. Might not be as fast now, not
21265             keeping the number of children around and accessible directly, but
21266             it's more straightforward
21267
21268 2004-08-11 07:44  pbartok
21269
21270         * AccessibleObject.cs:
21271           - Fixed to match ControlCollection rewrite
21272
21273 2004-08-11 07:43  pbartok
21274
21275         * ImageList.cs:
21276           - Added missing creation of the collection list
21277
21278 2004-08-10 20:08  jackson
21279
21280         * StatusBar.cs: Get the paint message from WndProc
21281
21282 2004-08-10 19:31  jackson
21283
21284         * ThemeWin32Classic.cs: Create Brushes as little as possible
21285
21286 2004-08-10 19:20  jackson
21287
21288         * UICues.cs: Add Flags attribute
21289
21290 2004-08-10 19:19  jackson
21291
21292         * StatusBarPanel.cs: Signature cleanup
21293
21294 2004-08-10 19:10  jackson
21295
21296         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
21297           Initial implementation of status bar item drawing
21298
21299 2004-08-10 17:27  jordi
21300
21301         * TrackBar.cs: add missing methods, properties, and restructure to
21302           hide extra ones
21303
21304 2004-08-10 16:24  jackson
21305
21306         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
21307           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
21308           attribute
21309
21310 2004-08-10 13:21  jordi
21311
21312         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
21313           enhancements and standarize on win colors defaults
21314
21315 2004-08-10 12:52  jackson
21316
21317         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
21318           ThemeWin32Classic.cs: Implement DrawItem functionality
21319
21320 2004-08-10 12:47  jordi
21321
21322         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
21323
21324 2004-08-10 12:32  jordi
21325
21326         * Control.cs: throw ontextchange event
21327
21328 2004-08-10 11:43  pbartok
21329
21330         * Control.cs:
21331           - Added more to the still unfinished Dock/Anchor layout code
21332
21333 2004-08-10 11:39  pbartok
21334
21335         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
21336           - Added GetWindowPos method
21337
21338 2004-08-10 11:36  pbartok
21339
21340         * XplatUIWin32.cs:
21341           - Implemented several methods
21342
21343 2004-08-10 09:47  jackson
21344
21345         * TrackBar.cs: Allow control to handle buffering
21346
21347 2004-08-10 09:41  jackson
21348
21349         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
21350
21351 2004-08-10 09:24  jackson
21352
21353         * Label.cs, LinkLabel.cs: Let Control handle buffering.
21354
21355 2004-08-10 09:09  jackson
21356
21357         * StatusBar.cs: Let Control handle all the buffering.
21358
21359 2004-08-10 09:08  jackson
21360
21361         * Control.cs: Control will now handle the buffering code, so each
21362           control does not have to implement this.
21363
21364 2004-08-10 08:34  jackson
21365
21366         * XplatUIDriver.cs: Use default colors from the theme
21367
21368 2004-08-09 17:12  pbartok
21369
21370         * ImageList.cs:
21371           - Fixed several bugs Ravindra pointed out
21372
21373 2004-08-09 16:11  pbartok
21374
21375         * Control.cs:
21376           - Added incomplete dock layout code
21377           - Added support for mouse wheel
21378
21379 2004-08-09 16:09  pbartok
21380
21381         * XplatUIX11.cs:
21382           - Added handling for middle and right mousebutton
21383           - Added handling for mouse wheel
21384           - Added handling for key state and mouse state and position
21385           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
21386           messages
21387
21388 2004-08-09 15:40  jackson
21389
21390         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
21391           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
21392           checkin
21393
21394 2004-08-09 15:37  jackson
21395
21396         * StatusBar.cs: Initial implementation of StatusBar
21397
21398 2004-08-09 15:36  jackson
21399
21400         * ITheme.cs: Add support for drawing status bar and getting status
21401           bar item sizes
21402
21403 2004-08-09 15:35  pbartok
21404
21405         * MouseButtons.cs:
21406           - Fixed values
21407
21408 2004-08-09 15:34  jackson
21409
21410         * ThemeWin32Classic.cs: Add support for drawing status bar and get
21411           status bar item sizes
21412
21413 2004-08-09 15:21  jackson
21414
21415         * ThemeWin32Classic.cs: Use known colors for default control
21416           colours
21417
21418 2004-08-09 15:12  jackson
21419
21420         * ThemeWin32Classic.cs: Make the default font static, it is static
21421           in control so this doesn't change functionality and creating fonts
21422           is sloooooow.
21423
21424 2004-08-09 14:56  pbartok
21425
21426         * X11Structs.cs:
21427           - Added GrabMode enum
21428
21429 2004-08-09 14:55  pbartok
21430
21431         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
21432           - Removed Run method, was only required for initial development
21433
21434 2004-08-09 14:51  pbartok
21435
21436         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
21437           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
21438           capture
21439
21440 2004-08-09 13:48  pbartok
21441
21442         * XplatUIX11.cs:
21443           - Fixed default sizing for child windows
21444
21445 2004-08-09 12:56  pbartok
21446
21447         * XplatUIX11.cs:
21448           - Added generation of WM_DESTROY message
21449           - Added handling of window manager induced shutdown
21450
21451 2004-08-09 11:31  jackson
21452
21453         * ThemeWin32Classic.cs: New names for control properties
21454
21455 2004-08-09 11:25  jackson
21456
21457         * Control.cs: Use new color names
21458
21459 2004-08-09 11:02  jackson
21460
21461         * XplatUI.cs: Get default window properties from the theme
21462
21463 2004-08-09 11:01  jackson
21464
21465         * ITheme.cs: The theme engine now controls default window
21466           properties
21467
21468 2004-08-09 11:00  jackson
21469
21470         * ThemeWin32Classic.cs: Add default window color properties
21471
21472 2004-08-09 10:17  jackson
21473
21474         * ThemeWin32Classic.cs: Use correct default back color
21475
21476 2004-08-09 10:05  jackson
21477
21478         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
21479           the theme now.
21480
21481 2004-08-09 09:56  jackson
21482
21483         * XplatUI.cs: Remove defaults, these are handled by the theme now.
21484
21485 2004-08-09 09:54  jackson
21486
21487         * Control.cs: Get default properties from the theme.
21488
21489 2004-08-09 09:53  jackson
21490
21491         * ITheme.cs: Themes now handle default control properties
21492
21493 2004-08-09 09:53  jackson
21494
21495         * ThemeWin32Classic.cs: Themes now handle default control
21496           properties so coloring will be consistent
21497
21498 2004-08-08 16:54  jordi
21499
21500         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
21501
21502 2004-08-08 15:08  jordi
21503
21504         * XplatUIX11.cs: fixes keyboard crash
21505
21506 2004-08-08 13:47  jordi
21507
21508         * Label.cs: add cvs header info
21509
21510 2004-08-08 12:09  jackson
21511
21512         * ThemeWin32Classic.cs: Add pen_buttonface
21513
21514 2004-08-08 11:52  jordi
21515
21516         * Label.cs, LinkLabel.cs: [no log message]
21517
21518 2004-08-08 11:34  jordi
21519
21520         * ThemeWin32Classic.cs: Use Windows Standard Colours
21521
21522 2004-08-07 17:32  jordi
21523
21524         * TrackBar.cs: throw exceptions of invalid enums values
21525
21526 2004-08-07 17:31  jordi
21527
21528         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
21529           draw method name
21530
21531 2004-08-07 16:56  jackson
21532
21533         * HorizontalAlignment.cs: Initial checkin
21534
21535 2004-08-07 13:16  jordi
21536
21537         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
21538           methods
21539
21540 2004-08-07 13:05  jordi
21541
21542         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
21543           GetSysColor defines
21544
21545 2004-08-06 18:01  pbartok
21546
21547         * ThemeWin32Classic.cs:
21548           - Fixed some rounding issues with float/int
21549
21550 2004-08-06 18:00  jackson
21551
21552         * DockStyle.cs, AnchorStyles.cs:
21553
21554                   Add flags and serializable attributes.
21555
21556 2004-08-06 17:46  pbartok
21557
21558         * XplatUIX11.cs:
21559           - Implemented GetParent
21560
21561 2004-08-06 17:18  pbartok
21562
21563         * TrackBar.cs:
21564           - Fixed some rounding issues with float/int
21565
21566 2004-08-06 17:17  pbartok
21567
21568         * X11Structs.cs, XplatUIX11.cs:
21569           - Fixed Refresh and Invalidate
21570
21571 2004-08-06 15:30  pbartok
21572
21573         * Control.cs, X11Structs.cs, XplatUIX11.cs:
21574           - Fixed recursive loop when resizing
21575           - Improved/fixed redrawing on expose messages
21576
21577 2004-08-06 09:53  jordi
21578
21579         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
21580           keyboard navigation
21581
21582 2004-08-06 08:02  pbartok
21583
21584         * X11Structs.cs, XplatUIX11.cs:
21585           - Fixed reparenting
21586           - Fixed window border creation
21587
21588 2004-08-05 15:38  pbartok
21589
21590         * XplatUIX11.cs:
21591           - Attempted fix for reparenting problems
21592
21593 2004-08-04 15:14  pbartok
21594
21595         * Control.cs:
21596           - Fixed Invalidation bug (calculated wrong client area)
21597           - Added ClientSize setter
21598
21599 2004-08-04 15:13  pbartok
21600
21601         * Form.cs:
21602           - Added AutoScale properties
21603
21604 2004-08-04 15:13  pbartok
21605
21606         * SWF.csproj:
21607           - Added latest files
21608
21609 2004-08-04 14:11  pbartok
21610
21611         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
21612           XplatUIX11.cs:
21613           - Added Invalidate handling
21614
21615 2004-08-03 17:09  jordi
21616
21617         * XplatUIDriver.cs: fixes spelling mistake
21618
21619 2004-07-27 09:53  jordi
21620
21621         * TrackBar.cs: fixes trackbar events, def classname, methods
21622           signature
21623
21624 2004-07-27 09:29  jordi
21625
21626         * ScrollBar.cs: fixes scrollbar events
21627
21628 2004-07-27 04:38  jordi
21629
21630         * Control.cs: changes to be able to run winforms samples
21631
21632 2004-07-26 11:42  jordi
21633
21634         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
21635           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
21636
21637 2004-07-26 05:41  jordi
21638
21639         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
21640           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
21641           implementation
21642
21643 2004-07-22 09:22  jordi
21644
21645         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
21646           check link overlapping, implement events, and fixes
21647
21648 2004-07-21 10:28  jordi
21649
21650         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
21651
21652 2004-07-21 10:19  jordi
21653
21654         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
21655           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
21656           LinkLabelLinkClickedEventArgs.cs,
21657           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
21658           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
21659           implementation
21660
21661 2004-07-19 13:09  jordi
21662
21663         * Control.cs, Label.cs: label control re-written: added missing
21664           functionlity, events, and properties
21665
21666 2004-07-19 10:49  jordi
21667
21668         * Control.cs: fixes SetBounds logic
21669
21670 2004-07-19 01:29  jordi
21671
21672         * Control.cs: Call RefreshWindow only if the window has created
21673
21674 2004-07-15 14:05  pbartok
21675
21676         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
21677           - Implemented ImageList and ImageList.ImageCollection classes
21678           - Added ColorDepth enumeration
21679           - Updated SWF VS.Net project
21680
21681 2004-07-15 11:06  jordi
21682
21683         * XplatUIStructs.cs: added MsgButons enum
21684
21685 2004-07-15 11:03  jordi
21686
21687         * Control.cs: added basic mouse handeling events
21688
21689 2004-07-15 03:38  jordi
21690
21691         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
21692           Vertical TrackBar control implementation
21693
21694 2004-07-13 09:33  jordi
21695
21696         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
21697
21698 2004-07-13 09:31  jordi
21699
21700         * Control.cs, Form.cs: commit: new properties and fixes form size
21701           problems
21702
21703 2004-07-09 14:13  miguel
21704
21705         * ProgressBar.cs: Spelling
21706
21707 2004-07-09 11:25  pbartok
21708
21709         * ProgressBar.cs:
21710           - Removed usage of Rectangle for drawing. Miguel pointed out it's
21711           faster
21712
21713 2004-07-09 11:17  miguel
21714
21715         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
21716
21717                 * ProgressBar.cs: Fixed spelling for `block'
21718
21719                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
21720                 style guidelines.
21721
21722                 Avoid using the += on rect.X, that exposed a bug in the compiler.
21723
21724 2004-07-08 23:21  pbartok
21725
21726         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
21727           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
21728           BaseCollection.cs, Binding.cs, BindingContext.cs,
21729           BindingMemberInfo.cs, BindingsCollection.cs,
21730           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
21731           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
21732           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
21733           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
21734           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
21735           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
21736           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
21737           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
21738           FrameStyle.cs, GiveFeedbackEventArgs.cs,
21739           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
21740           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
21741           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
21742           InputLanguageChangedEventArgs.cs,
21743           InputLanguageChangedEventHandler.cs,
21744           InputLanguageChangingEventArgs.cs,
21745           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
21746           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
21747           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
21748           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
21749           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
21750           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
21751           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
21752           QueryAccessibilityHelpEventArgs.cs,
21753           QueryAccessibilityHelpEventHandler.cs,
21754           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
21755           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
21756           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
21757           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
21758           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
21759           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
21760           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
21761           XplatUIX11.cs, lang.cs:
21762           - Initial check-in
21763