2008-05-10 Geoff Norton <gnorton@novell.com>
[mono.git] / mcs / class / Managed.Windows.Forms / System.Windows.Forms / ChangeLog
1 2008-05-10  Geoff Norton  <gnorton@novell.com>
2
3         * XplatUICarbon.cs: Dont use HIViewScrollRect as it's causing painting
4         problems with rapid scrolling of treeviews. Fixes #381084
5
6 2008-05-10  Geoff Norton  <gnorton@novell.com>
7
8         * XplatUICarbon.cs: Deactivate the active window before
9         activating the desired window.  Completes fixing #386504
10
11 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12
13         * ListView.cs: When calculating scrollbars, set horizontal scroll bar
14         SmallChange to the item size width plus the padding, to match .net.
15
16 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17
18         * FileDialog.cs: Apply the custom filter typed by the user in the file
19         name combobox as much as possible while navigating in the file dialog.
20         Fixes #385261.
21
22 2008-05-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
23
24         * Binding.cs: Actually use NullValue if the retrieved value of
25         data source is null or DBNull. Makes a test pass.
26
27 2008-05-09  Jonathan Pobst  <monkey@jpobst.com>
28
29         * ErrorProvider.cs, Form.cs: Get icons from ResourceImageLoader.
30         * MimeIcon.cs: Provide a way to get icons from resources.
31
32 2008-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
33
34         * Binding.cs: When the value retrieved from the control to be assigned
35         to the data source is null, actually use the 2.0 DataSourceNullValue
36         value. Make pass a data binding test.
37
38 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
39
40         * Control.cs: We need to invalidate implicit children even when
41         invalidate is called with invalidatechildren = false.  (Implicit
42         children are really part of the parent.)
43         * ListView.cs: Double-buffer internal child controls for less
44         flicker.
45         * ThemeWin32Classic.cs: Remove an extra nested loop in drawing
46         owner ListView subitems for greatly increased performance.
47         [Fixes bug #388477]
48
49 2008-05-08  Carlos Alberto Cortez <calebrto.cortez@gmail.com>
50
51         * FileDialog.cs: When the user types a wildcard character in the
52         filename combobox, update the contents of the folder using the text as
53         a filter.
54         Fixes part of #385261.
55
56 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
57
58         * ListBox.cs: Various fixes for MultiColumn listboxen.
59         [Fixes bug #388114]
60
61 2008-05-08  Andreia Gaita <avidigal@novell.com> 
62
63         * HtmlElement.cs: Implement Style property
64
65 2008-05-08  Jonathan Pobst  <monkey@jpobst.com>
66
67         * ListBox.cs: Respect checkboxes when measuring item size.
68         * ThemeWin32Classis.cs: When drawing list items, don't draw
69         text outside of the item's bounds to prevent overlapping.
70         (.Net actually overlaps, but that's just silly.)
71         [Fixes bug #388117]
72
73 2008-05-08  Everaldo Canuto  <ecanuto@novell.com>
74
75         * NotifyIcon.cs: Call SetForegroundWindow before show context menu. Thanks
76         Gert Driesen. Fixes bug #324830. 
77
78 2008-05-07  Everaldo Canuto  <ecanuto@novell.com>
79
80         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: SetForegroundWindow
81         method implemented.
82
83 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
84
85         * BindingSource.cs: When calling IsSynchronized, return the value of
86         the related IList list.
87
88 2008-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
89
90         * ListBindingHelper.cs: Fix some bits in GetListItemProperties, to
91         make a test pass.
92
93 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
94
95         * DataGridView.cs: Implement PageUp/PageDown keys.  Extend keyboard
96         navigation to scroll the grid if the current cell is not visible.
97
98 2008-05-07  Andreia Gaita <avidigal@novell.com> 
99
100         * HtmlElement.cs: Implement TabIndex
101
102 2008-05-07  Jonathan Pobst  <monkey@jpobst.com>
103
104         * ListBox.cs: Respect ScrollAlwaysVisible and HorizontalScrollbar
105         properties, even when there are no items.
106         [Fixes bug #387611]
107
108 2008-05-07  Ivan N. Zlatev  <contact@i-nz.net>
109
110         * NativeWindow.cs: Add support for multiple handles per window.
111         * NativeWindows.cs, LibSupport.cs, Control.cs, XplatUIX11GTK.cs, 
112         XplatUIX11.cs, X11Display.cs: Do not access NativeWindow.windows_collection 
113         directly - use FromHandle instead.
114         [Fixes bug #374660]
115
116 2008-05-07  Andreia Gaita <avidigal@novell.com> 
117
118         * HtmlElement.cs: Implement InnerHTML setter
119
120 2008-05-07  Andreia Gaita <avidigal@novell.com> 
121
122         * HtmlDocument.cs: Implement Focused
123
124 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
125
126         * BindingSource.cs: Minor fixes to the the ApplySort and Remove sort
127         methods, as well as add messages to the exceptions.
128
129 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
130
131         * BindingSource.cs: Setting DataSource should only reset DataMember if
132         the previous value was null (make pass a not working test).
133
134 2006-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
135
136         * BindingSource.cs: When EndInit call is postponed and is called until
137         DataSource.EndInit is called, remove the handler for data source.
138
139 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
140
141         * ToolStripManager.cs: Don't use IsAlive, race condition, etc. etc.
142
143 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
144
145         * ToolStripManager.cs: Store references to toolstrips as
146         weak references so they do not prevent forms from getting collected.
147         [Fixes bug #386483]
148
149 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
150
151         * TrackBar.cs: We can't set ResizeRedraw because it isn't set
152         on .Net.  So do the same thing in WndProc.
153
154 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
155
156         * TrackBar.cs: Commit patch from Andy Hume that corrects
157         the clickable areas to better match .Net.
158         [Fixes bug #387074]
159
160 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
161
162         * TrackBar.cs: Commit patch from Andy Hume that adds the
163         ResizeRedraw control flag so the track bar repaints itself
164         when it is resized.  [Fixes bug #387072]
165
166 2008-05-06  Jonathan Pobst  <monkey@jpobst.com>
167
168         * TrackBar.cs: Commit patch from Andy Hume that adds better
169         support for keyboard navigation when the TrackBar is vertical.
170         [Fixes bug #387071]
171
172 2008-05-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
173
174         * BindingSource.cs: Implement ISupportInitializeNotification support.
175
176 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
177
178         * ThemeVisualStyles.cs: Added support for ToolBar.
179
180 2008-05-06  George Giolfan  <georgegiolfan@yahoo.com>
181
182         * ToolBar.cs: Made the Vertical property internal.
183
184 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
185
186         * ThemeVisualStyles.cs: Added support for TrackBar.
187
188 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
189
190         * ThemeWin32Classic.cs: Refactored: Extracted TrackBarGetThumbSize,
191         TrackBarDrawVerticalTrack, TrackBarDrawVerticalThumbRight,
192         TrackBarDrawVerticalThumbLeft, TrackBarDrawVerticalThumb,
193         TrackBarGetVerticalTickPainter, TrackBarDrawHorizontalTrack,
194         TrackBarDrawHorizontalThumbBottom, TrackBarDrawHorizontalThumbTop,
195         TrackBarDrawHorizontalThumb, TrackBarGetHorizontalTickPainter.
196
197 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
198
199         * ThemeVisualStyles.cs: Added support for UpDownBase.
200
201 2008-05-05  George Giolfan  <georgegiolfan@yahoo.com>
202
203         * Theme.cs, ThemeWin32Classic.cs, UpDownBase.cs: Refactored:
204         Extracted Theme.UpDownBaseDrawButton.
205
206 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
207
208         * ToolStrip.cs, ToolStripDropDownItem.cs: Make sure toolstrips are
209         removed from the static toolstrips collection in ToolStripManager
210         when they are disposed.  Provides a workaround for bug #386483.
211
212 2008-05-05  Ivan N. Zlatev  <contact@i-nz.net>
213
214         * GridEntry.cs: Read-only properties with Editor with 
215         UITypeEditorEditStyle.Modal shouldn't be read-only in the PropertyGrid.
216         [Fixes bug #384184]
217
218 2008-05-05  Jonathan Pobst  <monkey@jpobst.com>
219
220         * MenuStrip.cs, ToolStrip.cs: Guard against an NRE when pressing
221         the menu key and there are no items on the menu.
222         [Fixes bug #386644]
223
224 2008-05-05  Sebastien Pouliot  <sebastien@ximian.com>
225
226         * Control.cs: Avoid calling ToString on a string.
227         * Form.cs: Avoid calling ToString on a string. Found using Gendarme.
228         * GroupBox.cs: In FlatStyle property throw, not just create, the 
229         exception. Avoid calling ToString on a string.
230         * ProgressBar.cs: Avoid calling ToString on a string. 
231         * ScrollBar.cs: Avoid calling ToString on a string. 
232         [All issues were found using Gendarme]
233
234 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
235
236         * NotifyIcon.cs: Prevent click events to be trigger after double click 
237         events. Fixes remaining issues of bug #324832.
238
239 2008-05-05  Everaldo Canuto  <ecanuto@novell.com>
240
241         * NotifyIcon.cs: Trigger click and mouseclick events after mouseup event
242         to mimic win32 behavior. Partially fixes bug #324832.
243
244 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
245
246         * BindingSource.cs: Implement Find methods.
247
248 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
249
250         * BindingSource.cs: Implement Sort, ApplySort overloads, and
251         RemoveSort methods.
252
253 2008-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
254
255         * ListBindingHelper.cs: When calling GetListItemProperties and the
256         passed object is ITypedList, return the result of
257         ITypedList.GetItemProperties instead.
258
259 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
260
261         * LinkLabel.cs: Set default value of name on constructor of Link class
262         only for 2.0 profile.
263
264 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
265
266         * LinkLabel.cs: Fix implementation of LinkCollection.LinksAdded property.
267         Fixes remaining issues of bug #346154.
268
269 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
270
271         * LinkLabel.cs: Set a default value for name on internal contructor of
272         Link class. It fixes assert B5 of LinkCollectionTest.Constructor1.
273
274 2008-05-04  Everaldo Canuto  <ecanuto@novell.com>
275
276         * LinkLabel.cs: Move links collection from LinkCollection to LinkLabel
277         and refer all instances to owner.links. Partially fixes #346154.
278
279 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
280
281         * LinkLabel.cs: Fix linkarea values for empty text, must have start and 
282         length equal zero. Also called CreateLinkPieces in constructor. It fixes
283         the LinkLabel test 'TestLinkArea'.
284
285 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
286
287         * Form.cs: Remove menu before close form to prevent form to be not gaced.
288         [Fixes #386460]
289
290 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
291
292         * MenuAPI.cs: Dispose popup window after hide. Thanks to Jesse Jones.
293         [Fixes #386463]
294
295 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
296
297         * MenuAPI.cs: Implemented keyboard navigation for ContextMenu.
298         [Fixed bug #357004]
299
300 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
301
302         * MenuAPI.cs: Remove unused ProcessCmdKey method.
303
304 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
305
306         * MenuAPI.cs: Prevent NRE in menu deactivation when shortcut is used. 
307         [Fixes bug #375398]
308
309 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
310
311         * MenuAPI.cs: Enable implicit mnemonics for menus. Fixes remaining issues
312         of bug #367492.
313
314 2008-05-03  Everaldo Canuto  <ecanuto@novell.com>
315
316         * MenuAPI.cs: Check if mouse down comes from menu, we need it because
317         sometimes we open a conext menu on mouse down of some controls and the mouse
318         up is dispatched to menu and dont need to. It fix remaining issues of 
319         #363711 and other problems related to menu mouse click events.
320
321 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
322
323         * MonthCalendar.cs: Implemented "Go to today" context menu, also changed
324         some var names to better fit changes, now we have month_menu and today_menu
325         vars. Fixes bug #363711.
326
327 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
328
329         * MonthCalendar.cs: Handle every right mouse click to open context menu,
330         right now the default month menu but it will be change to have "Go to today"
331         menu.
332
333 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
334
335         * FileDialog.cs, MaskedTextBox.cs, OpenFileDialog.cs: corcompare.
336
337 2008-05-02  Everaldo Canuto  <ecanuto@novell.com>
338
339         * ThemeWin32Classic.cs: Fix MonthCalendar arrows drawing.
340
341 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
342
343         * ThemeVisualStyles.cs: Added support for TreeView.
344
345 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
346
347         * Theme.cs, ThemeWin32Classic.cs, TreeView.cs: Refactored:
348         Moved TreeView.DrawNodePlusMinus to Theme.TreeViewDrawNodePlusMinus.
349
350 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
351
352         * OpenFileDialog.cs: Implement 2.0 SP1 stuffs.
353
354 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
355
356         * FileDialogCustomPlace.cs, FileDialogCustomPlacesCollection.cs:
357         Implement 2.0 SP1 stuffs.
358
359 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
360
361         * FileDialog.cs: Implement 2.0 SP1 stuffs.
362
363 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
364
365         * Control.cs, ContainerControl.cs, DataGridView.cs, TextBoxBase.cs:
366         Implement CanEnableIme property. (2.0 SP1)
367
368 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
369
370         * BindingManagerBase.cs, PropertyManager.cs: Hide GetItemProperties
371         from the 2.0 API.
372
373 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
374
375         * Control.cs: Provide an internal way for a control to override
376         the setting of Height.
377         * DateTimePicker.cs: Remove SetBoundsCore from 2.0 profile,
378         set height using new method.
379
380 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
381
382         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawMixedCheckBox.
383
384 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
385
386         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Refactored:
387         ControlPaint.DrawMixedCheckBox now calls Theme.CPDrawMixedCheckBox.
388
389 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
390
391         * ThemeVisualStyles.cs: Added support for StatusBar.
392
393 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
394
395         * DataObject.cs: Add the other IDataObject interface.
396
397 2008-05-02  George Giolfan  <georgegiolfan@yahoo.com>
398
399         * ThemeWin32Classic.cs: Refactored: extracted DrawStatusBarBackground,
400         DrawStatusBarSizingGrip, DrawStatusBarPanelBackground.
401
402 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
403
404         * DataGridViewCheckBoxCell.cs, DataGridViewImageCell.cs: Fix parameter names.
405         * ListView.cs: Hide non-public API.
406         * MaskedTextBox.cs: Remove extra attribute.
407
408 2008-05-02  Jonathan Pobst  <monkey@jpobst.com>
409
410         * DataGridViewImageCell.cs: Use formatted value instead of value
411         to calculate preferred size.
412
413 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
414
415         * ListBox.cs: Move some initialization around so that selected_indices
416         is not accessed before it is created.
417
418 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
419
420         * InputLanguageCollection.cs: Implement the collection better.
421         [Fixes bug #385506]
422
423 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
424
425         * ToolStripDropDownItem.cs: Get the correct event object for
426         DropDownItemClicked.
427         * ToolStripMenuItem.cs: Raise DropDownItemClicked on our owner.
428         [Fixes bug #385475]
429
430 2008-05-01  Jonathan Pobst  <monkey@jpobst.com>
431
432         * DataGridViewRowCollection.cs: We don't currently support shared 
433         rows.  Should fix test failures caused by previous commit.
434
435 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
436
437         * DataGridViewRow.cs: Fixes for cloning the row, ensure header cell's
438         datagridview gets set.  Only paint cells in visible columns.
439         * DataGridViewCell.cs: Draw border after cell content.
440         * DataGridView.cs: Invalidate after setting some properties.  Only
441         use visible columns.  Fit hit test bug with areas in the col/row header
442         area but not in a row or col.  Implement UpdateCell/Row methods.
443
444 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
445
446         * DataGridViewElement.cs: Don't throw NIEX.
447         * DataGridViewColumnHeaderCell.cs: Draw error icons for top left header cells.
448         * DataGridViewColumnDesignTimeVisibleAttribute.cs: Don't throw NIEX.
449         * DataGridViewCheckBoxColumn.cs: Implement ToString.
450         * DataGridViewCheckBoxCell.cs: Allow DBNull as a value.
451         * DataGridViewCell.cs: Don't raise CellFormatting for RowHeader cells,
452         if the user filled in the formatting Value, use it.
453
454 2008-04-30  Jonathan Pobst  <monkey@jpobst.com>
455
456         * DataGridViewTextBoxCell.cs: Fix for objects that cannot be cast
457         to a string.
458
459 2008-04-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
460
461         * BindingSource.cs: Some corrections to Filter property, as well as
462         setting it for our list when resetting it.
463
464 2008-04-29  Jonathan Pobst  <monkey@jpobst.com>
465
466         * ScrollBar.cs: Don't let dragging the thumb grip set the value greater
467         than the maximum.  Fixes reopened bug #384182.
468
469 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
470
471         * ToolStripDropDown.cs: Fix offscreen position for DropDown itens.
472         Fixes remaining issues of #367490.
473
474 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
475
476         * ToolStripDropDown.cs: Screen.Bound dont return right value then use 
477         SystemInformation.WorkingArea to get max_screen value.
478
479 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
480
481         * BindingSource.cs: Implement Filter and RemoveFilter.
482
483 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
484
485         * MenuAPI.cs: Prevent sub-menu positon to be less than zero.
486
487 2008-04-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
488
489         * X11Dnd.cs: When trying to convert data and we know we started the
490         dnd loop, don't try to use the cached data if the loop is not running,
491         which means that the data has been resetted.
492         Fixes #378191.
493
494 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
495
496         * MenuAPI.cs: Force first menu subitem to show from left to right to mimic
497         win32 behavior.
498
499 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
500
501         * MenuAPI.cs: Check the screen limits before show sub-menus and prevent
502         it to drawn off screen edge. Fixes bug #367490.
503
504 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
505
506         * MenuAPI.cs: In PopupWindow.RefreshItems uses a temp point var to store
507         menu position to have only one assignment of Location var.
508
509 2008-04-28  Everaldo Canuto  <ecanuto@novell.com>
510
511         * MenuAPI.cs: Implement the right key for sub-menus. Thanks Ernesto Carrea
512         for this patch. Fixes bug #384115.
513
514 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
515
516         * ScrollBar.cs: If SmallChange is larger than LargeChange, make them
517         the same.  If LargeChange is zero, set a minimum size for the scroll
518         thumb grip.  [Fixes bug #384182]
519
520 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
521
522         * TextBoxTextRenderer.cs: Don't turn &A into a prefix for textboxen.
523         [Fixes bug #384181]
524
525 2008-04-28  Jonathan Pobst  <monkey@jpobst.com>
526
527         * ListBox.cs: Math.Min should be Math.Max.  [Fixes bug #384183]
528
529 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
530
531         * ThemeVisualStyles.cs: Added partial support for ScrollBar (based on the
532         patch from Ernesto).
533
534 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
535
536         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawComboButton.
537
538 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
539
540         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawButton.
541
542 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
543
544         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawRadioButton.
545
546 2008-04-28  George Giolfan  <georgegiolfan@yahoo.com>
547
548         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawScrollButton.
549
550 2008-04-27  George Giolfan  <georgegiolfan@yahoo.com>
551
552         * ThemeVisualStyles.cs: Added support for ButtonBase.UseVisualStyleBackColor.
553
554 2008-04-27  Andreia Gaita <avidigal@novell.com> 
555
556         * HtmlWindow.cs, HtmlHistory.cs: Throw on DomHistory getter (it's
557           supposed to return a reference to an mshtml interface, which we
558           don't support).
559         * HtmlElement.cs: Throw on DomElement getter (it's supposed to return a
560           reference to an mshtml interface, which we don't support). Code
561           formatting cleanup.
562         * HtmlDocument.cs: Add DefaultEncoding getter implementation. Throw on
563           DomDocument getter (it's supposed to return a reference to an
564           mshtml interface, which we don't support). Code formatting cleanup.
565
566 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
567
568         * ListView.cs: Ouch, forgot to commit.
569
570 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
571
572         * ListView.cs: 
573         * ThemeWin32Classic.cs: Fire the -until now- forgotten CacheVirtualItems event.
574
575 2008-04-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
576
577         * ListView.cs: When calculating box selection for virtual mode, don't
578         look for intersection with item's text, but item bounds, since that
579         would mean read ListViewItem's text for _every_ item, and that's
580         something we just can't do in virtual mode (items are only requested
581         when drawn).
582
583 2008-04-26  George Giolfan  <georgegiolfan@yahoo.com>
584
585         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCaptionButton and
586         partial support for managed windows (based on the patch from Ernesto).
587
588 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
589
590         * ListView.cs: When doing a key search use FindItemWithText method
591         instead of doing the search by ourselves, this way we avoid
592         duplicating the code and also we handle the special case for virtual
593         mode. To achieve that make our private overload of FindItemWithText
594         internal and also have a 'roundtrip' parameter.
595
596 2008-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
597
598         * ListView.cs: When doing the layout don't request the
599         ListViewItem instance if we are in virtual mode (since we can't request it
600         until the item is actully drawn).
601
602 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
603
604         * ThemeVisualStyles.cs: Added support for ProgressBar (based on the patch 
605         from Ernesto).
606
607 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
608
609         * ThemeVisualStyles.cs: Added support for ControlPaint.DrawCheckBox (based on 
610         the patch from Ernesto).
611
612 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
613
614         * ThemeEngine.cs: Added code to select ThemeVisualStyles.
615         * ThemeVisualStyles.cs: Added.
616
617 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
618
619         * IDeviceContext.cs: Added a missing using.
620
621 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
622
623         * ButtonBase.cs: Made IsDefault protected internal.
624         * ButtonRenderer.cs: Made GetPushButtonRenderer(PushButtonState) internal.
625
626 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
627
628         * Application.cs: Included VisualStyles-related members in the 1.1 profile.
629         * ButtonRenderer.cs, CheckBoxRenderer.cs, Padding.cs, PaddingConverter.cs,
630         RadioButtonRenderer.cs: Included in the 1.1 profile.
631         * IDeviceContext.cs: Added.
632         * TextRenderer.cs: Included a member in the 1.1 profile.
633
634 2008-04-25  George Giolfan  <georgegiolfan@yahoo.com>
635
636         * ThemeWin32Classic.cs: Added ShouldPaintFocusRectangle(ButtonBase).
637
638 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
639
640         * ErrorProvider.cs: Make the error icons come after the control
641         they refer to.  It isn't the way the MS does it, but its better
642         than what we were doing.  See bug #368587.
643
644 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
645
646         * InputLanguage.cs, InputLanguageCollection.cs: Apply patch
647         from Eric Albright that lazy loads the input language as ensures
648         everything gets properly initialized.  Fixes bug #373871.
649
650 2008-04-24  Jonathan Pobst  <monkey@jpobst.com>
651
652         * ToolStrip.cs: Don't use ToolStripControlHosts when figuring up
653         implicit mnemonics.  [Fixes bug #383000]
654
655 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
656
657         * X11Dnd.cs: When canceling the operation, automatically restore the
658         default cursor - normally the default cursor is restored when the
659         mouse buttons are released, but we should be able to restore it even
660         if the buttons are still pressed (for example, when pressing ESC to
661         cancel).
662         Fixes #381894.
663
664 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
665
666         * X11Dnd.cs: When starting a new drad and drop operation, set control
667         field to null, just as the other fields, to avoid calling any
668         operation on a previous control. Also, when calling DndLeave on a
669         control, set it to null, thus we don't fire that event multiple times
670         for that control.
671         Fixes #209264.
672
673 2008-04-23  Geoff Norton  <gnorton@novell.com>
674
675         * XplatUICarbon.cs: Ensure that we have a valid hwnd before accessing
676         the whole_window object.  Fixes #377084.
677
678 2008-04-23  Andreia Gaita <avidigal@novell.com> 
679
680         * HtmlElement.cs: Implement RaiseEvent (event injection into the
681           embedded browser)
682
683 2008-04-23  Jonathan Pobst  <monkey@jpobst.com>
684
685         * DataGridViewColumnHeaderCell.cs: Implement some NIEX stuffs.
686
687 2008-04-23  Andreia Gaita <avidigal@novell.com> 
688
689         * HtmlElement.cs, HtmlDocument.cs: Implement javscript method
690           invocation
691
692 2008-04-23  Andreia Gaita <avidigal@novell.com> 
693
694         * HtmlElement.cs, HtmlDocument.cs: Implement custom event handler
695           attaching/detaching
696
697 2008-04-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
698
699         * X11Dnd.cs: When the drop was cancelled, or could just not be
700         performed, return DragDropEffect.None always (match .net).
701
702 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
703
704         * DataGridViewRowHeaderCell.cs: Fill in some NIEX stuff.
705
706 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
707
708         * DataGridViewRowCollection.cs: Revert something I didn't mean to commit.
709
710 2008-04-22  Jonathan Pobst  <monkey@jpobst.com>
711
712         * DataGridView.cs: Add support for error icon tool tips.
713         * DataGridViewCell.cs: ErrorIconBounds needs to call GetErrorIconBounds.
714         * DataGridViewRowHeaderCell.cs: Need internal way to get ErrorIconBounds.
715
716 2008-04-22  Ivan N. Zlatev  <contact@i-nz.net>
717
718         * X11Structs.cs: Add mouse button masks enum.
719         * XplatUIX11.cs, Hwnd.cs: Send WM_ENTERSIZEMOVE and 
720         WM_EXITSIZEMOVE only once at the beginning and at the end of the 
721         form resize/move operation instead of for each step of it.
722         [Fixes bug #346529 for the x11 backend]
723
724 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
725
726         * DataGridView*: Implement support for drawing error icons.
727
728 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
729
730         * TreeView.cs: Make vbar and hbar internal.
731         * TreeNode.cs: If collapsing the node removes one of the TreeView's
732         scrollbars, invalidate the whole thing.
733         [Fixes bug #382001]
734
735 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
736
737         * TreeView.cs: Calling Sort() sets Sorted = true.
738         * TreeNodeCollection.cs: Try to find the owner TreeView to determine
739         if the nodes need to be sorted.
740         [Fixes bug #382028]
741
742 2008-04-21  Ivan N. Zlatev  <contact@i-nz.net>
743
744         * Form.cs: Fire SizeChanged for both when the form is minimized and 
745         restored.
746         * XplatUIX11.cs: Instead of tracking minimization on UnmapNotify track it 
747         on PropertyNotify of _NET_WM_STATE. Much much cleaner.
748
749 2008-04-21  Jonathan Pobst  <monkey@jpobst.com>
750
751         * ComboBox.cs: If the combobox is disabled, draw a disabled
752         background before painting anything else.
753         [Fixes bug #381729]
754
755 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
756
757         * X11Dnd.cs: Wehn the drag and drop operation is cancelled don't
758         forget to send a Leave event to the target window - just as .net does
759         when cancelling dnd operations.
760
761 2008-04-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
762
763         * X11Dnd.cs: Stop tracking messages as part of the dnd operation as
764         soon as possible - this happens when we send the drop message to the
765         target window. This way we avoid firing any DragOver _after_ drop finished.
766         Fixes #378179.
767
768 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
769
770         * XplatUIX11.cs: Send WM_WINDOWPOSCHANGED when a toplevel is minimized.
771         * Form.cs: Handle form minimization as a special state, where size doesn't 
772         change, but we have to fire SizeChanged.
773         [Fixes bug #325122 for the win32 and x11 backends]
774
775 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
776
777         * XplatUIX11.cs: Win32 doesn't send WM_(KILL|SET)FOCUS 
778         if the handle is disabled.
779         [Fixes bug #371751]
780
781 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
782
783         * XplatUIX11.cs: Enable Maximize/Minimize/Close ability (not decorations) 
784         for forms with FormBorderStyle.None.
785         [Fixes bug #349571]
786
787 2008-04-20  Ivan N. Zlatev  <contact@i-nz.net>
788
789         * XplatUIX11.cs: Implement support for WM_ENTERSIZEMOVE and 
790         WM_EXITSIZEMOVE.
791         [Fixes bug #346529 for the X11 backend]
792
793 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
794
795         * XplatUIX11.cs: 
796           - Send a mouse Enter message after say dragging the mouse with a 
797           button down and then release it in another client.
798           - Reset the cursor to prevent X11 from remembering it and setting it 
799           before the control gets WM_SETCURSOR.
800           - Qeueue a mouse move after a mouse enter like win32.
801           [Fixes bug #323234]
802
803 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
804
805         * XplatUIX11.cs: Implement limited support for WM_SYSCOMMAND. 
806         It's sent when the form gets moved, resized, closed.
807         * XplatUIStructs.cs: Add SystemCommands enum for WM_SYSCOMMAND.
808         [Fixes bug #359193 for X11]
809
810 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
811
812         * Form.cs: Add a ValidateChildren for the 1.1 profile. Fixes 
813         the build.
814
815 2008-04-19  Ivan N. Zlatev  <contact@i-nz.net>
816
817         * ListView.cs: Move CalculateDetailsGroupItemsCount to the NET_2_0 
818         group. Fixes the 1.1 build.
819
820 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
821
822         * ListView.cs: Use display indexes for selection in Details view, as
823         well as do the proper layout based on display indexes for that view
824         too.
825
826 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
827
828         * ListView.cs: Focused item information is now stored as a display
829         index, and display indexes are used all over the place for selection,
830         instead of ListViewItem.Index values, which doesn't give us enough
831         information to modify the selection in groups mode, and was broken.
832
833 2008-04-18  Ivan N. Zlatev  <contact@i-nz.net>
834
835         * Control.cs: Do not fire MouseDown if validation of the control has 
836         failed.
837         * Form.cs: Validate the form before closing.
838         [Fixes bugs #330501 and #353310]
839
840 2008-04-18  Andreia Gaita <avidigal@novell.com> 
841
842         * WebBrowserBase.cs: Added WndProc, DrawToBitmap,
843           CreateWebBrowserSiteBase implementations
844         * HtmlElement.cs: Add missing OuterHTML, OuterText setters, stubbed
845           Style and TabIndex setters
846
847 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
848
849         * ListViewGroup.cs: When returning the actual item count, return the
850         proper count for default group.
851         Fix the tests.
852
853 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
854
855         * ListView.cs:
856         * ListViewGroup.cs: When calculating groups layout, get the actual
857         number of items per group, since groups added to the group BUT not
858         added to the ListView are just ignored, and can cause some nasty
859         exceptions because of the lack of synchronization. Also for
860         ListViewGroup don't use lazy initialization for items, since we 
861         the common scenario is to use it always - and it helps us to  refactor
862         and clean the .ctor overloads.
863
864 2008-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
865
866         * ListView.cs: When adding an item to a ListViewItemCollection
867         belonging to a group (ListViewGroup.Items), don't generate a redraw if
868         the added item hasn't beeen previously added to the ListView instance
869         refered by the group, since it will be ignored. This should avoid some 
870         really nasty flickering.
871
872 2008-04-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
873
874         * ListView.cs: When accessing an item in a specific display
875         position, use the helper method GetItemAtDisplayIndex, instead of
876         direct access to the reordered_items_indices array. When doing layout
877         for groups set the correct Items index for the display position (since
878         in groups mode items don't have the same position as in Items
879         collection).
880         * ListViewGroup.cs: Add a field to store the starting item number,
881         which is later used when calculating the layout.
882
883         Fixes #360805.
884
885 2008-04-17  Gert Driesen  <drieseng@users.sourceforge.net>
886
887         * Application.cs: Fixed ProductVersion to fallback to the assembly
888         version. Fixes regression for bug #325413.
889
890 2008-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
891
892         * ListView.cs: New helper method to retrieve an item in a _specific
893         display_ position (the items can be displayed in a different order
894         than one of Items collection).
895         * ThemeWin32Classic.cs: When drawing, instead of iterating over Items
896         collection, use ListView.GetItemAtDisplayIndex, to get an item in a
897         specific display position (again remember that items can be sorted
898         different than Items).
899
900 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
901
902         * DataGridViewColumnCollection.cs: Create a cached copy of our sorted
903         list and update it when the collection changes.  We were recreating
904         this several times per row paint and for every pixel the mouse moved
905         across the grid.
906         * DataGridViewColumn.cs: Regenerate cached sorted list when DisplayIndex
907         changes.
908
909 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
910
911         * DataGridViewColumnCollection.cs: Convert our internal sorted columns
912         list to use generics.
913         * DataGridView.cs, DataGridViewRow.cs: Use generic sorted column list
914         and remove unneccessay casts.
915
916 2008-04-16  Jonathan Pobst  <monkey@jpobst.com>
917
918         * DataGridViewBand.cs: Add internal way to set displayed variable.
919         * DataGridViewRow.cs: Don't paint cells in non-displayed columns.
920         * DataGridView.cs: Make sure we always keep track of Displayed
921         rows and columns, and only draw things that are displayed.
922
923 2008-04-16  Atsushi Enomoto  <atsushi@ximian.com>
924
925         * X11Keyboard.cs, XplatUIX11.cs : manage key state regardless of
926           whether the key events are filtered or not. Introduced
927           PreFilter() process for this purpose. This fixes atokx3/iiimx
928           shift state issue.
929
930 2008-04-16  Andreia Gaita <avidigal@novell.com> 
931
932         * HtmlHistory.cs: Implement Length property
933
934 2008-04-15  Jonathan Pobst  <monkey@jpobst.com>
935
936         * DataGridView.cs: Call EndEdit when a sort is performed so we take
937         away the edit textbox.  Refactor to reuse column sort code.
938
939 2008-04-12  Everaldo Canuto  <ecanuto@novell.com>
940
941         * MenuAPI.cs: Remove the code that save and restore capture status of 
942         grab_control, this fixes some Menu and Context menu bugs but maybe it can
943         cause some others, I cant figure the possible problems of this patch but
944         right now remove the code looks to be better than keep it. This patch fixes
945         bugs #357638, #378721 and #379570.
946
947 2008-04-12  Andreia Gaita <avidigal@novell.com> 
948
949         * HtmlDocument.cs, HtmlElement.cs, HtmlHistory.cs, WebBrowser.cs:
950         Implement OuterHtml, OuterText, Enabled, Scroll*, *Rectangle properties,
951         add missing properties and event handlers.
952         
953 2008-04-14  Jonathan Pobst  <monkey@jpobst.com>
954
955         * ListBox.cs: Make sure the LargeChange we are setting is at least
956         zero, to prevent an IOORE.  [Fixes bug #379531]
957
958 2008-04-13  Andy Hume <andyhume32@yahoo.co.uk>
959
960         * ComboBox.cs: Support item navigation by entering text.  Firstly, 
961         in DropDownList mode, for each key-press select the next item 
962         starting with that letter.
963         For other modes, when no item selected, on arrow-up/-down and open 
964         drop-down select the first item matching the text in the textbox.
965
966 2008-04-14  Atsushi Enomoto  <atsushi@ximian.com>
967
968         * X11Keyboard.cs : Control.FromHandle() could return null
969           in MoveCurrentCaretPos().
970
971 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
972
973         * ListView.cs: When changing the size in VirtualMode, also Reset the
974         selection.
975         * ListViewItem.cs: Don't call SelectedIndexCollection.Reset when
976         changing selection info for VirtualMode.
977         Fixes #372618.
978
979 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
980
981         * ThemeWin32Classic.cs: When drawing ListViewItem instancesin Details
982         view, don't use LineLimit for the first item - use NoWrap *always*
983         instead, since ListView.LabelWrap is not used for this view.
984         Fixes #378054.
985
986 2008-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
987
988         * Binding.cs: Call UpdateIsBinding when setting control - probably
989         Binding is already usable and we don't need to wait to check the
990         IsBinding state. Also for 1.1 profile use IsHandleCreated instead of
991         Created, just like 2.0 does.
992         * CurrencyManager.cs: I'm so lame - the previous check was wrong.
993
994 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
995
996         * Binding.cs: Just realized we don't need to have a handler for
997         BindingContextChanged, since this info should be now consumed directly
998         in the BindingManagerBase. And also, the manager.IsBindingSuspended
999         state info is checked directly, instead of caching it.
1000
1001         * CurrencyManager.cs: IsSuspended should return always false if Count
1002         == 0.
1003
1004 2008-04-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1005
1006         * Binding.cs: When calling PushData, return if manager.Count == 0,
1007         since we just don't have data to be read. Also, when setting the
1008         Control for binding, hook up some events to refresh the IsBinding
1009         state when BindingContext change or control gets created; use
1010         Control.IsHandleCreated instead of Control.Created check to set
1011         IsBinding state - we *actually* need to modify IsBinding when control
1012         is created, but we don't have any Created event, only HandleCreated.
1013         Fixes part of #349364.
1014
1015 2008-04-11  Geoff Norton  <gnorton@novell.com>
1016
1017         * XplatUICarbon.cs: Expose Caret to the Carbon layer.  Guard against
1018         warping a null Caret.
1019
1020 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
1021
1022         * DataGridView.cs: Implement row/column autosizing methods. Implement
1023         autosorting.
1024         * DataGridViewColumnHeaderCell.cs: Add painting of the sort glyph.
1025         * DataGridViewRowCollection.cs: Add an internal sorting method.
1026
1027 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
1028
1029         * ThemeWin32Classic.cs: Apply patch from Ernesto to cache an expensive
1030         value in ListView drawing code.
1031
1032 2008-04-11  Jonathan Pobst  <monkey@jpobst.com>
1033
1034         * FileDialog.cs: Only call FileOk when Ok is clicked, not when Cancel
1035         is clicked.  Respect the user setting Cancel in FileOk.
1036
1037 2008-04-11  Geoff Norton  <gnorton@novell.com>
1038
1039         * ListView.cs: Avoid setting and resetting control Width/Heights and
1040         calculate the final value and set it once.  Prevents a feedback loop
1041         on the mac.
1042
1043 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
1044
1045         * TreeView.cs: Clamp setting the scrollbar value using SafeValueSet.
1046         [Fixes bug #378869]
1047
1048 2008-04-10  Atsushi Enomoto  <atsushi@ximian.com>
1049
1050         * X11Keyboard.cs, X11Structs.cs : make over-the-spot mode default.
1051           Add some on-the-spot code, but it seems we don't need it.
1052
1053 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
1054
1055         * Form.cs: Add method for DataGridView to trigger focus cues
1056         even when it handles the tab keypress.
1057
1058 2008-04-10  Jonathan Pobst  <monkey@jpobst.com>
1059
1060         * DataGridView.cs: More keyboard handling, tab, esc.
1061         * DataGridViewTextBoxEditingControl.cs: Don't request arrow keys
1062         when at the beginning or end of the text in the text box.
1063
1064 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
1065
1066         * DataGridViewCell.cs: Guard against an NRE causing a test to fail.
1067
1068 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
1069
1070         * DataGridView.cs: Some fixups for showing and adding the edit control.
1071         * DataGridViewButtonColumn.cs: Implement ToString.
1072         * DataGridViewCell.cs: Size and position the control simultaneously.
1073         * DataGridViewTextBoxCell.cs: Use base to position control.
1074
1075 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
1076
1077         * DataGridViewCell.cs: Fix up some formatting and painting code.
1078         * DataGridViewImageCell.cs: Implement some NIEX methods.
1079
1080 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
1081
1082         * ToolStripItemCollection.cs: What moving an item from one owner
1083         to another, remove from source owner before adding to destination.
1084         [Fixes bug #378109]
1085
1086 2008-04-09  Jonathan Pobst  <monkey@jpobst.com>
1087
1088         * PictureBox.cs: Call Load when ImageLocation is set.
1089         [Fixes bug #378308]
1090
1091 2008-04-09  Atsushi Enomoto  <atsushi@ximian.com>
1092
1093         * X11Keyboard.cs, XplatUIX11.cs :
1094           Implement over-the-spot mode (with some odd offsets).
1095           - set preedit position when caret is set.
1096           - Wrap XMoveResizeWindow() to move preedit position.
1097
1098 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
1099
1100         * X11keyboard.cs: Fix last patch, maxval must be less not greater than
1101         array lenght.
1102
1103 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
1104
1105         * KeyboardLayouts.cs: Uses GENERATING_RESOURCES to make VKeyTableIndex
1106         and ScanTableIndex public, it fix compilations errors when compiling
1107         WinForms to generate keyboard layout resources.
1108
1109 2008-04-08  Everaldo Canuto  <ecanuto@novell.com>
1110
1111         * X11keyboard.cs: Prevent keyboard errors when vitual table theres 
1112         different element count than scan table. It prevents some errors in non
1113         standard keyboards.
1114
1115 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
1116
1117         * DataGridViewHeaderCell.cs: Implement some NIEX methods.
1118
1119 2008-04-08  Jonathan Pobst  <monkey@jpobst.com>
1120
1121         * DataGridView.cs: Call OnContentClick.
1122         * DataGridViewCell.cs: Do a null check on ValueType instead
1123         of valueType.
1124         * DataGridViewCheckBoxCell.cs: Implement.
1125
1126 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
1127
1128         * X11Keyboard.cs : Do not cast IntPtr to int. Use long.
1129
1130 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
1131
1132         * X11Keyboard.cs : Check XGetIMValues() return value in
1133           case it does not return input styles in some environment.
1134
1135 2008-04-08  Atsushi Enomoto  <atsushi@ximian.com>
1136
1137         * X11Keyboard.cs : sizeof(IntPtr) != 4 on amd64.
1138
1139 2008-04-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1140
1141         * BindingContext.cs: Stub UpdateBinding method.
1142
1143 2008-04-07  Atsushi Enomoto  <atsushi@ximian.com>
1144
1145         * X11Structs.cs : added couple of structs for XIM support.
1146         * X11Keyboard.cs :
1147           Release XIM in case it failed to create XIC. 
1148           Use consts for XNblah string.
1149           Add support for IM style customization and XIC creation
1150           for preedit-position and preedit-callback.
1151           Right now use MONO_WINFORMS_XIM_STYLE environment variable
1152           (list of: over-the-spot | on-the-spot | root). Only root
1153           mode works so far.
1154
1155           (redoing r99172 with fix.)
1156
1157 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
1158
1159         * TreeView.cs: Center the checkbox a little better.
1160
1161 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
1162
1163         * ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs, ThemeWin32Classic.cs:
1164         Apply very nice patch from Ernesto Carrea that simplifies our
1165         scrollbar drawing.  [From bug #376146]
1166
1167 2008-04-07  Jonathan Pobst  <monkey@jpobst.com>
1168
1169         * TreeView.cs: Correct the location of the root node checkbox when
1170         ShowRootLines = false.  Don't draw the root lines for the root node
1171         when ShowRootLines = false.  [Fixes bug #377535]
1172
1173 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
1174
1175         * WebBrowserBase.cs: Added missing attributes and fixed attributes.
1176         Fixed line endings.
1177         * WebBrowser.cs: Added missing attributes and fixed attributes. Fixed
1178         line endings.
1179         * MaskedTextBox.cs: Added missing attribute. Code formatting.
1180         * PageSetupDialog.cs: Added missing attribute. Code formatting.
1181         * HtmlWindowCollection.cs: Code formatting. Fixed line endings.
1182         * ImeMode.cs: Added missing field.
1183         * HtmlWindow.cs: Code formatting. Fixed line endings.
1184         * HtmlElement.cs: Code formatting. Fixed line endings. Fixed compiler
1185         warnings.
1186         * HtmlHistory.cs: Code formatting. Fixed line endings.
1187         * HtmlDocument.cs: Code formatting. Fixed line endings.
1188         * ToolStripPanel.cs: Added missing IList implementation.
1189         * HtmlElementCollection.cs: Code formatting. Fixed line endings.
1190
1191 2008-04-06  Gert Driesen  <drieseng@users.sourceforge.net>
1192
1193         * BindingContext.cs: Changed argument names to fix corcompare errors.
1194         * DataGridView.cs: Removed extra explicit interface implementation
1195         of IDropTarget. Code formatting.
1196         * FlowLayoutPanel.cs: Changed argument names to fix corcompare errors.
1197         * ComboBox.cs: Changed argument names to fix corcompare errors.
1198         * DataGridTextBoxColumn.cs: Changed argument names to fix corcompare
1199         errors.
1200         * GridColumnStylesCollection.cs: Changed argument names to fix
1201         corcompare errors. Removed extra tabs.
1202         * GridTableStylesCollection.cs: Changed argument names to fix corcompare
1203         errors.
1204         * Control.cs: Changed argument names to fix corcompare errors. Code
1205         formatting. Removed extra explicit IList implementation.
1206         * TextBox.cs: Changed argument names to fix corcompare errors. Code
1207         formatting. Use string.Empty instead of "".
1208         * GridItemCollection.cs: Changed argument names to fix corcompare
1209         errors. Code formatting.
1210         * DataGridViewTopLeftHeaderCell.cs: Changed argument names to fix
1211         corcompare errors. Code formatting.
1212         * ImageList.cs: Changed argument names to fix corcompare errors.
1213         * ToolStripItem.cs: Changed argument names to fix corcompare errors.
1214         * DataGridViewRowCollection.cs: Changed argument names to fix
1215         corcompare errors. Code formatting.
1216         * TableLayoutPanel.cs: Changed argument names to fix corcompare errors.
1217         * DataGridViewSelectedCellCollection.cs: Changed argument names to
1218         fix corcompare errors. Code formatting.
1219         * DataGridViewComboBoxCell.cs: Changed argument names to fix
1220         corcompare errors. Code formatting.
1221         * LinkLabel.cs: Changed argument names to fix corcompare errors.
1222         * TreeNode.cs: Changed argument names to fix corcompare errors. Code
1223         formatting.
1224         * PropertyGrid.cs: Changed argument names to fix corcompare errors.
1225         Code formatting.
1226         * BindingSource.cs: Changed argument names to fix corcompare errors.
1227         Removed extra explicit interface implementations.
1228         * DataGridViewSelectedRowCollection.cs: Changed argument names to
1229         fix corcompare errors. Code formatting.
1230         * ToolStripItemCollection.cs: Removed extra explicit interface
1231         implementation of IList.ReadOnly.
1232         * DataGridViewColumnCollection.cs: Changed argument names to fix
1233         corcompare errors. Code formatting.
1234         * DataGridViewRow.cs: Rename converter to match MS. Code formatting.
1235         * ListView.cs:  Changed argument names to fix corcompare errors.
1236         * DataGridViewHeaderCell.cs: Changed argument names to fix corcompare
1237         errors.
1238         * DataGridBoolColumn.cs: Changed argument names to fix corcompare
1239         errors.
1240         * ListBindingHelper.cs: Changed argument names to fix corcompare
1241         errors.
1242         * DataGridViewSelectedColumnCollection.cs: Changed argument names to
1243         fix corcompare errors. Code formatting.
1244         * ToolStripPanel.cs: Removed extra explicit implementation of
1245         IDropTarget interface.
1246         * ListBox.cs: Changed argument names to fix corcompare errors. Code
1247         formatting. Removed extra tabs and spaces.
1248         * DataGridViewCellCollection.cs: Changed argument names to fix
1249         corcompare errors.
1250         * Help.cs: Changed argument names to fix corcompare errors. Code
1251         formatting.
1252         * TabControl.cs: Changed argument names to fix corcompare errors.
1253         * DataGridColumnStyle.cs: Changed argument names to fix corcompare
1254         errors.
1255         * TableLayoutSettings.cs: Changed argument names to fix corcompare
1256         errors.
1257
1258 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1259
1260         * ListBindingHelper.cs: When returning properties, only return those
1261         that are browsable. Also, don't do a linear search of the properties,
1262         but use the indexer of the PropertyDescriptorCollection class.
1263
1264 2008-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1265
1266         * BindingSource.cs: Implement GetRelatedCurrencyManager by adding a
1267         Dictionary containing the related (child) currency managers. Also,
1268         when setting DataSource, add datasource to our List if it is not a list.
1269
1270 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
1271
1272         * PropertyGridTextBox.cs: Fix background color of the buttons.
1273         * PropertyGridView.cs: Make the entry less jumpy.
1274
1275 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
1276
1277         * PropertyGrid.cs: Fix unused variable warnings.
1278
1279 2008-04-05  Ivan N. Zlatev  <contact@i-nz.net>
1280
1281         * PropertyGridView.cs: Fix expansion via [+] misbehavior on 
1282         double-click. It expanded it once in the mouse down and then 
1283         again in the double-click handler.
1284
1285 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
1286         
1287         * GridEntry.cs: ICustomTypeDescriptor support for PropertyOwner, 
1288         TypeConverter and UITypeEditors.
1289
1290 2008-04-04  Ivan N. Zlatev  <contact@i-nz.net>
1291
1292         * Control.cs: Visibility should be set synchronously, 
1293         so we must also redraw once it is and not rely on layouting or 
1294         other code to repaint.
1295         [Fixes bug #339898]
1296
1297 2008-04-04  Jonathan Pobst  <monkey@jpobst.com>
1298
1299         * DataGridViewCell.cs: Respect DataGridView.GridColor.
1300
1301 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
1302
1303         * Control.cs: Invalidate when the alpha channel is less than 255,
1304         not only when control is transparent.
1305
1306 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
1307
1308         * DataGridViewRowPrePaintEventArgs.cs, DataGridViewRowPostPaintEventArgs.cs:
1309         Implement some painting convenience methods that threw NIEX.
1310
1311 2008-04-03  Jonathan Pobst  <monkey@jpobst.com>
1312
1313         * DataGridView.cs: Call CellMouse[Enter|Move|Leave] properly.
1314         * DataGridViewLinkCell.cs: Implement.
1315
1316 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
1317
1318         * GridEntry.cs: Report the conversion exception error description.
1319         [Fixes bug #375792]
1320
1321 2008-04-03  Ivan N. Zlatev  <contact@i-nz.net>
1322
1323         * PropertyGridView.cs: Do not scroll to item on resize.
1324         [Fixes bug #375789]
1325
1326 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1327
1328         * BindingContext.cs: When retrieving a BindingManagerBase, if the
1329         dataSource parameter is ICurrencyManagerProvider, then return
1330         ICurrencyManagerProvider.CurrencyManager/GetRelatedCurrencyManager
1331         instead of creating a new one.
1332
1333 2008-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1334
1335         * BindingSource.cs: Implement support for Type instances as
1336         DataSource.
1337
1338 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
1339
1340         * DataGridView.cs: Minor cleanups and call CellMouseUp.
1341         * DataGridViewCell.cs: Make some painting routines internally virtual.
1342         * DataGridViewButtonCell.cs: Implement.
1343
1344 2008-04-02  Jonathan Pobst  <monkey@jpobst.com>
1345
1346         * Control.cs: We always need to invalidate our children with
1347         transparent backgrounds when we are invalidated.
1348         [Fixes bug #376081]
1349
1350 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1351
1352         * BindingSource.cs: EndEdit and CancelEdit should call EndCurrentEdit
1353         and CancelCurrentEdit on CurrencyManager respectively. Implement
1354         support for ICancelAddNew too.
1355
1356 2008-04-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1357
1358         * CurrencyManager.cs: When calling EndCurrentEdit/CancelCurrentEdit,
1359         call EndNew/CancelNew if list is ICancelAddNew.
1360
1361 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
1362
1363         * DataGridView.cs: Guard against an exception while painting
1364         if there are no rows.
1365
1366 2008-04-01  Jonathan Pobst  <monkey@jpobst.com>
1367
1368         * DataGridView.cs: Implement a bunch of keyboard commands.
1369
1370 2008-03-31  Jonathan Pobst  <monkey@jpobst.com>
1371
1372         * ToolBar.cs: Don't do our painting if UserPaint is set.  If UserPaint
1373         isn't set, don't call OnPaint.  [Fixes bug #375300]
1374
1375 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1376
1377         * BindingSource.cs: IsBindingSuspended, ResumeBinding and
1378         SuspendBinding depend on CurrencyManager. Implement RemoveCurrent,
1379         hookup the remaining events related to CurrencyManager, and fire
1380         OnListChanged also for the Clear () method.
1381
1382 2008-03-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1383
1384         * BindingSource.cs: Use Current and Position implementations in
1385         CurrencyManager instead of using our own routines, since we need 
1386         to be in synch with it. Count should NEVER return a -1 value, and 
1387         also report ListChanged events for both simple IList data 
1388         sources (manually) as well for IBindingList ones (by hooking up an
1389         event handler for it).
1390
1391 2008-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1392
1393         * BindingSource.cs: Make one .ctor call the another, to avoid
1394         duplicate code. Add the CurrencyManager property, and also for AddNew
1395         throw the proper exceptions and show better error messages.
1396
1397 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
1398
1399         * ComboBox.cs: Only adjust selectedindex if Handle has been
1400         created.  Fixes failing test.
1401
1402 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
1403
1404         * ComboBox.cs: Adjust selectedindex if we insert a new item
1405         above the current selectedindex in a sorted ComboBox.
1406         [Fixes bug #374654]
1407
1408 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
1409
1410         * ComboBox.cs: Support PageUp/PageDown when dropdown is closed.
1411         [Fixes bug #374712]
1412
1413 2008-03-28  Jonathan Pobst  <monkey@jpobst.com>
1414
1415         * DataGridViewTextBoxCell.cs: Implement stuffs.
1416
1417 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
1418
1419         * TreeView.cs: Create the scrollbars even earlier to be
1420         double dog certain they are created before they are accessed.
1421
1422 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
1423
1424         * XplatUIX11.cs: Remove a no-op line that csc was choking on.
1425
1426 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
1427
1428         * ScrollBar.cs: Create an internal safe Value setter so we
1429         won't crash if we try to set a value outside the min and max.
1430         * TextBoxBase.cs: Use safe value setter to guard against a
1431         potential NRE that is being reported by Reflector.
1432
1433 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
1434
1435         * TreeView.cs: Create the scrollbars earlier in the constructor
1436         to attempt to guard against an NRE in SetTop in Reflector.
1437
1438 2008-03-27  Jonathan Pobst  <monkey@jpobst.com>
1439
1440         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCell.cs,
1441         DataGridViewRowCollection.cs: Do not scroll column and row headers,
1442         show messagebox on data format error, use column display index
1443         correctly, make sure HitTest supports new layout stuff,
1444         make sure scrollbars support new layout stuff.
1445
1446 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
1447
1448         * XplatUIX11.cs : Patch by Doug Rintoul.
1449           For some IM engines, keypress events need to delay call
1450           to XPending() and XNextEvent() in the loop so that it
1451           does not mess the orders in XIM commit callback.
1452           Some KeyRelease events such as shift keys need to be
1453           processed both in the IM engine and winforms driver
1454           itself since winforms holds its own state check.
1455
1456           For details, see: http://lists.ximian.com/pipermail/mono-winforms-list/2008-March/003279.html
1457
1458 2008-03-27  Atsushi Enomoto  <atsushi@ximian.com>
1459
1460         * X11Keyboard.cs, XplatUIX11.cs :
1461           add primitive support for XIM input support (preedit-
1462           nothing and status-nothing). It requires precise event
1463           capturing (XSelectInput/"filterEvents") and different
1464           call to XFilterEvent against root window.
1465           Get composed string and send dummy WM_IME_COMPOSITION.
1466           Free XIM and XIC instances in finalizer.
1467
1468           (This first patch does not include suggested changes
1469            by Doug Rintoul. It will follow.)
1470
1471 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
1472
1473         * DataGridView.cs: When binding to a property, if the property
1474         doesn't have a setter, set the column to readonly.
1475         [Fixes bug #343965]
1476
1477 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
1478
1479         * ComboBox.cs: Guard against NRE if an arrow key is hit while
1480         we aren't dropped down.  Support Home/End in DropDownList mode.
1481         [Fixes bug #371990]
1482
1483 2008-03-26  Jonathan Pobst  <monkey@jpobst.com>
1484
1485         * TreeNodeCollection.cs: Don't increment count until we've
1486         saved our index to return.
1487         [Fixes bug #373603]
1488
1489 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
1490
1491         * Label.cs: Add padding to the label's AutoSize calculation.
1492         [Fixes bug #373792]
1493
1494 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1495
1496         * ListBindingHelper.cs: Actually implement GetListName method.
1497
1498 2008-03-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1499
1500         * BindingSource.cs: Throw the propert expceptions for some methods, as
1501         well as detect the list item type for Add method if DataSource is null.
1502
1503 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
1504
1505         * DataGridViewCell.cs: I don't know why I commented this out,
1506         putting it back for now.
1507
1508 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
1509
1510         * DataGridViewCell.cs: Remove storage for owning column, just
1511         use column index.
1512         * DataGridViewColumn.cs: Make getter for HeaderTextSet.
1513         * DataGridViewColumnHeaderCell.cs: If the header text has been
1514         explicitly set, return it.
1515         [Fixes bug #325979]
1516
1517 2008-03-25  Jonathan Pobst  <monkey@jpobst.com>
1518
1519         * DataGridViewRowCollection.cs: Disable row sharing when
1520         using data binding.  Its a great feature, but lets work on
1521         getting DGV usable first before we worry about optimizations.
1522
1523 2008-03-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1524
1525         * BindingSource.cs: When resetting our internal list, compute list
1526         item type information to be used for indirect list access. Also
1527         implement/tune some properties and methods related to the list access
1528         too.
1529         * ListBindingHelper.cs: Add a stub for GetListName method, used from
1530         BindingSource.
1531
1532 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
1533
1534         * DataGridView.cs: If RowCount is increased while ColumnCount
1535         is zero, add a column.  [Fixes bug #331649]
1536
1537 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
1538
1539         * DataGridViewRowCollection.cs: When adding new rows for
1540         databinding, make sure they are place before the add row.
1541         [Fixes bug #343961]
1542
1543 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
1544
1545         * DataGridViewRow.cs: Draw cells in column DisplayIndex order
1546         instead of Index order.
1547
1548 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
1549
1550         * DataGridView.cs: If columns are added by increasing ColumnCount,
1551         they need to be DataGridViewTextBoxColumns, not DataGridViewColumn.
1552         [Fixes bug #325588]
1553
1554 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
1555
1556         * DataGridView.cs: Turn off and on the "new row" when 
1557         AllowUserToAddRows is toggled.  When the handle is created,
1558         set current cell and selected cell/row/col.
1559
1560 2008-03-24  Jonathan Pobst  <monkey@jpobst.com>
1561
1562         * ComboBox.cs: When navigating the drop down by keyboard, we
1563         need to scroll the list box if our selection moves out of the
1564         currently shown items.  [Fixes bug #371990]
1565
1566 2008-03-24  Luke Page <luke.a.page@gmail.com>
1567
1568         * RichTextBox.cs: Handles visible rtf tag and no longer shows the text
1569         on the control. Also now handles unicode compatibility characters and
1570         stores the unicode compatibility length on the stack. Fixes Bugs
1571         #355198 and #366436.
1572
1573 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1574
1575         * BindingSource..cs: Take into account DataMember when re-creating the
1576         List property, and also create a specific kind of list as needed.
1577
1578 2008-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1579
1580         * ListBindingHelper.cs: Add a new case for GetList () method - when we
1581         get an empty IEnumerable, try to detect whether the datamember is
1582         valid or not for that type, if true, return null, and throw exception
1583         otherwise.
1584
1585 2008-03-22  Jonathan Pobst  <monkey@jpobst.com>
1586
1587         * ComboBox.cs: Alt-Down should drop down the list, Esc should
1588         retract it.  [Fixes bug #371989]
1589
1590 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
1591
1592         * PropertyGrid.cs: Initialize the sorting button as pushed.
1593
1594 2008-03-22  Ivan N. Zlatev  <contact@i-nz.net>
1595
1596         * PropertyGrid.cs: 
1597          - Visually select the PropertyTab.
1598          - Filter Properties by Attributes properly.
1599
1600 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
1601
1602         * MenuItem.cs: Remove menu item from parent when disposed.
1603         [Fixes bug #372845]
1604
1605 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
1606
1607         * ToolBar.cs: Don't reset layout_type if Dock = None.
1608
1609 2008-03-21  Andreia Gaita <avidigal@novell.com> 
1610
1611         * UserControl.cs: Select the first available control when we get focus.
1612           Fixes #372616
1613
1614 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
1615
1616         * DataGridViewCell.cs, DataGridViewTextBoxCell.cs: Don't paint
1617         the content if we are in edit mode.  [Fixes bug #343964]
1618
1619 2008-03-21  Jonathan Pobst  <monkey@jpobst.com>
1620
1621         * DataGridViewCell.cs: Fix border painting for column headers.
1622
1623 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1624
1625         * BindingSource.cs: When setting or resetting data source,
1626         use ListBindingHelper.GetList () method, since it will get the list in
1627         case datasource is IListSource.
1628
1629 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
1630
1631         * DataGridViewCell.cs: Implement lots more stuffs.
1632
1633 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
1634
1635         * PropertyGridView.cs, GridEntry.cs: Implement support for 
1636         UITypeEditor.IsDropDownResizable.
1637
1638 2008-03-20  Jonathan Pobst  <monkey@jpobst.com>
1639
1640         * DataGridViewCell.cs: Remove unused variables, improve how
1641         several of the property getters work.
1642         * DataGridViewRow.cs: Don't call setSize on a cell, cell should
1643         get its size from the parent row/col.
1644
1645 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
1646
1647         * PropertyGrid.cs: Ensure PropertiesTab is visible even if the 
1648         user alters manually the PropertyTabs collection via the 
1649         PropertyTabs property.
1650
1651 2008-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1652
1653         * ListBindingHelper.cs: Implement -previously- ignored cases. We have
1654         new tests for them to be sure to be compatible with .net.
1655
1656 2008-03-20  Andreia Gaita <avidigal@novell.com> 
1657
1658         * WebBrowserBase.cs: Fix attributes, add events
1659         * WebBrowser.cs: Fix Padding signature
1660
1661 2008-03-20  Ivan N. Zlatev  <contact@i-nz.net>
1662
1663         * PropertyGrid.cs, PropertyGridView.cs: Implement PropertyTab support.
1664
1665 2008-03-19  Jonathan Pobst  <monkey@jpobst.com>
1666
1667         * DataGridView.cs, DataGridViewCell.cs, DataGridViewCellStyle.cs,
1668         DataGridViewLinkCell.cs, DataGridViewRow.cs, DataGridViewRowHeaderCell.cs,
1669         DataGridViewTextBoxCell.cs: Changes so that DataGridViewCell
1670         passes the new suite of tests for it.
1671
1672 2008-03-18  Andreia Gaita <avidigal@novell.com> 
1673
1674         * WebBrowser.cs: Add missing attributes, missing Padding and
1675           DefaultSize properties, remove extraneous getters
1676
1677 2008-03-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1678
1679         * ListBindingHelper.cs: Implement a pair of GetListItemProperties
1680         method overloads.
1681
1682 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
1683
1684         * ComboBox.cs: Move resetting the selected index to keypress
1685         instead of textchanged.  Changing the text programmatically
1686         should not trigger resetting the selected index.  Fixes test.
1687
1688 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
1689
1690         * ComboBox.cs: When the user types into the textbox, reset
1691         the selected index to -1.  [Fixes bug #371672]
1692
1693 2008-03-16  Jonathan Pobst  <monkey@jpobst.com>
1694
1695         * FileDialog.cs: Support Control-A for selecting everything
1696         in an OpenFileDialog.  [Fixes bug #371564]
1697
1698 2008-03-15  Jonathan Pobst  <monkey@jpobst.com>
1699
1700         * DataGridView.cs: When row/column visible/height properties
1701         change, invalidate.  Take the NIEX out of InvalidateRow/Column
1702         etc.  We don't support them yet, but we can just invalidate
1703         everything until we do support them.  (Added MonoTODO).  Set
1704         proper control styles.
1705         * DataGridViewRow.cs: Don't call PaintHeader if row headers
1706         are turned off. 
1707
1708 2008-03-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1709
1710         * ListBindingHelper.cs: Implement 2.0 GetListItemType methods.
1711
1712 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
1713
1714         * DataGridViewRow.cs: Only paint the white background in
1715         cell bounds, the row bounds extends past the cells if the 
1716         grid width isn't as wide as the DGV.
1717
1718 2008-03-14  Jonathan Pobst  <monkey@jpobst.com>
1719
1720         * DataGridView*: Completely revamp the drawing to match the
1721         public API.  Our grids now look better, and call all the
1722         appropriate methods and event to allow users to override
1723         the painting and do their own.
1724
1725 2008-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1726
1727         * ListBindingHelper.cs: Implement 2.0 GetList methods.
1728
1729 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
1730
1731         * DataGridView.cs: Implement BorderStyle.
1732
1733 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
1734
1735         * FileDialog.cs: Apply patch from Andy Hume: Any time we
1736         are comparing attributes, make sure we only look at the
1737         one we are interested.  These calls were failing if there
1738         were more than one attribute.
1739         [Fixes bug #370385]
1740
1741 2008-03-13  Jonathan Pobst  <monkey@jpobst.com>
1742
1743         * DataGridColumnStyle.cs: Hide ctor from 1.1 profile.
1744
1745 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
1746
1747         * PageSetupDialog.cs: Stub EnableMetric.
1748         * PrintControllerWithStatusDialog.cs: Implement IsPreview.
1749         * PrintPreviewDialog.cs: Add ProcessDialogKey,
1750         ProcessTabKey.
1751
1752 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
1753
1754         * MonthCalendar.cs: Remove unused variable.
1755
1756 2008-03-12  Jonathan Pobst  <monkey@jpobst.com>
1757
1758         * DataGridView*.cs: corcompare stuffs.
1759
1760 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
1761
1762         * MonthCalendar.cs: Remove an incorrect invalidate optimization.
1763         The savings aren't worth the extra code to fix the optimization.
1764         [Fixes bug #368585]
1765
1766 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
1767
1768         * ToolBar.cs: Always call base.Dock in the Dock override so that
1769         Control's layout_type gets reset correctly.
1770         [Fixes bug #368882]
1771
1772 2008-03-11  Ivan N. Zlatev  <contact@i-nz.net>
1773
1774         * X11Dnd.cs: End DnD operation also for the middle mouse button.
1775
1776 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
1777
1778         * ContainerControl.cs: We can't do MenuStrip implicit mnemonics
1779         at the same time we do explicit ones, because we have to give all
1780         other controls on the container a chance to handle explicit ones
1781         first.  If no one has an explicit mnemonic, then we can let the
1782         MenuStrip have a shot at implicit mnemonics.
1783         * MenuStrip.cs: Create an implicit mnemonic function.
1784         * ToolStrip.cs: When processing explicit mnemonics, don't do implicit
1785         mnemonics for MenuStrips.
1786         [Fixes bug #368493]
1787
1788 2008-03-11  Jonathan Pobst  <monkey@jpobst.com>
1789
1790         * AxHost.cs, Binding.cs, DataGridView.cs, DataGridViewCell.cs,
1791         DataGridColumnStyle.cs: corcompare stuffs.
1792
1793 2008-03-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1794
1795         * FileDialog.cs: Don't add any ColumnHeader to Columns if view is not
1796         Details - This is needed after we added the bits to use any available
1797         column also for List and SmallIcon view. 
1798
1799 2008-03-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1800
1801         * ListBox.cs: Fire SelectedIndexChanged and SelectedValueChanged events
1802         at the proper place, not only when changing SelectedIndex and changing
1803         the selection using keys/mouse, as .net does.
1804
1805 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1806
1807         * ControlBindingsCollection.cs: Implement last 2.0
1808         DefaultDataSourceUpdateMode property. Also fix a wrong instruction
1809         in the new 2.0 Add methods.
1810
1811 2008-03-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1812
1813         * ListBox.cs: When calling SelectedIndexCollection.Clear,
1814         return if no items are previously selected - this is done to avoid 
1815         firing OnSelectedIndexChanged without need to do so. Also,
1816         when creating handle ensure that the focused item is visible (as
1817         .net does).
1818
1819 2008-03-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1820
1821         * ListBox.cs: Rewrote/refactored most of selection code. We require
1822         the following things in selection: a) keep selection sorted (both
1823         indices and items), b) SelectedIndices automatically detect the
1824         selection mode, c) SelectedIndex should be the first selected item
1825         index, d) Need to Focus/adjust scroll bar when selecting a new item,
1826         not only for SelectedIndex, which is specially important in Multi*
1827         selection modes. To achieve this we are moving the selection core to
1828         SelectedIndexCollection and make depend all selection modifications on
1829         it.
1830         Fixes #366438.
1831
1832 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
1833
1834         * ToolStrip.cs: Enable implicit mnemonics for drop down
1835         menu strips.  [Fixes part of bug #367692]
1836
1837 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
1838
1839         corcompare - fix parameter names [stragglers].
1840         Binding.cs, BindingsCollection.cs, GridColumnStylesCollection.cs,
1841         HelpEventHandler.cs, Label.cs, ListView.cs, Message.cs,
1842         TabControl.cs.
1843
1844 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
1845
1846         Control.cs: Don't call ProcessMenuKey on WM_SYSKEYUP if there
1847         was a mnemonic pressed as well as Alt.  Also, if nothing handles a
1848         mnemonic, let the ToolStripManager have it even if it doesn't
1849         have a matching mnemonic.
1850         [Fixes bug #367499]
1851
1852 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
1853
1854         corcompare - fix warning about implicit implementation
1855         * ToolStrip.cs: Add IToolStripData interface.
1856         * IToolStripData.cs: Add.
1857
1858 2008-03-06  Jonathan Pobst  <monkey@jpobst.com>
1859
1860         corcompare - fix warning about implicit implementation
1861         * Control.cs, ToolStripPanelRow.cs: Add IBounds interface.
1862         * IBounds.cs: Add.
1863
1864 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
1865
1866         corcompare - fix parameter names [N-Z].
1867         LinkArea.cs, NativeWindow.cs, NotifyIcon.cs, PageSetupDialog.cs,
1868         Panel.cs, PrintDialog.cs, PrintPreviewControl.cs, PropertyGrid.cs,
1869         PropertyManager.cs, RichTextBox.cs,
1870         ScrollBar.cs, SelectionRange.cs, SplitContainer.cs, StatusBar.cs,
1871         StatusBarDrawItemEventArgs.cs, StatusBarPanelClickEventArgs.cs,
1872         StatusStrip.cs, TabControl.cs, TableLayoutColumnStyleCollection.cs,
1873         TableLayoutRowStyleCollection.cs, TableLayoutStyleCollection.cs,
1874         TextBoxBase.cs, ThreadExceptionDialog.cs, ToolStrip.cs,
1875         ToolStripContentPanel.cs, ToolStripDropDown.cs,
1876         ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
1877         ToolStripPanel.cs, ToolStripSeparator.cs,
1878         TreeNode.cs, TreeView.cs, TreeViewHitTestInfo.cs,
1879         UICuesEventHandler.cs, UpDownBase.cs.
1880
1881 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
1882
1883         corcompare - fix parameter names [G-M].
1884         GridColumnStylesCollection.cs, GridItemCollection.cs,
1885         GridTableStylesCollection.cs, GroupBox.cs, Help.cs,
1886         HelpProvider.cs, ImageListStreamer.cs, InputLanguageCollection.cs,
1887         Label.cs, LayoutEngine.cs, LinkClickedEventArgs.cs,
1888         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewGroupCollection.cs,
1889         ListViewItem.cs, Menu.cs, MenuItem.cs, MenuStrip.cs, MouseEventArgs.cs.
1890
1891 2008-03-05  Jonathan Pobst  <monkey@jpobst.com>
1892
1893         corcompare - fix parameter names [A-F].
1894         Control.cs, DataGridBoolColumn.cs, DataGridColumnStyle.cs,
1895         DataGridTextBoxColumn.cs, DataGridViewButtonCell.cs,
1896         DataGridViewCellCollection.cs, DataGridViewCellParsingEventArgs.cs,
1897         DataGridViewCheckBoxCell.cs, DataGridViewColumnDesignTimeVisibleAttribute.cs,
1898         DataGridViewComboBoxCell.cs, DataGridViewHeaderCell.cs,
1899         DataGridViewImageCell.cs, DataObject.cs, DomainUpDown.cs,
1900         DrawItemEventArgs.cs, FolderBrowserDialog.cs, FontDialog.cs, Form.cs.
1901
1902 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
1903
1904         * GridEntry.cs: Do not convert not only if the types match, 
1905         but also if the property type is assigneable from the value's
1906         type.
1907         [Fixes bug #366566]
1908
1909 2008-03-03  Ivan N. Zlatev  <contact@i-nz.net>
1910
1911         * PropertyGridView.cs: 
1912          - Subscribe to the listbox only once and not everytime.
1913          - Update the textbox even if SetValue fails.
1914          - Close the listbox before calling TrySetValue just in case.
1915          [Fixes bug #366569]
1916
1917 2008-03-03  Jonathan Pobst  <monkey@jpobst.com>
1918
1919         * Control.cs: Hide ICollection.CopyTo from the 1.1 profile.
1920
1921 2008-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1922
1923         * ListView.cs: Implement support for custom column width based on
1924         Columns collection (we were previously using this collection only
1925         with Details view).
1926         Fixes #364484.
1927
1928 2008-03-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1929
1930         * ListViewItem.cs: For Tile view, always set bounds for the first
1931         subitem (which is the main one), and also don't let Width be larger
1932         than ListView.TileSize.Width. Improve code readibility also.
1933         * ThemeWin32Classic.cs: When painting the ListViewItem instances
1934         in Tile view, _always_ use the NoWrap flag.
1935         Fixes #360798.
1936
1937 2008-02-29  Ivan N. Zlatev  <contact@i-nz.net>
1938
1939         * PropertyGrid.cs: Check for null PropertyDescriptor.Name just 
1940         in case.
1941         * GridEntry.cs: For MS compitability make all child properties 
1942         readonly if the parent is readonly. Ugh.
1943         [Fixes bug #365945 and #365944]
1944
1945 2008-02-29  Andreia Gaita <avidigal@novell.com> 
1946
1947         * HtmlHistory.cs: Fix sigs for Forward and Back to navigate by index
1948           relative to the history
1949
1950 2008-02-29  Andreia Gaita <avidigal@novell.com>
1951
1952         * HtmlElement.cs: More handlers for mouse and key events
1953
1954 2008-02-28  Andreia Gaita <avidigal@novell.com>
1955
1956         * WebBrowserBase.cs: MouseClick sig changed.
1957         * HtmlHistory.cs: Implement history navigation
1958         * HtmlElement.cs: Add event handlers, and connect them.
1959
1960 2008-02-28  Ivan N. Zlatev  <contact@i-nz.net>
1961
1962         * GridEntry.cs: 
1963          - Use PropertyDescriptor.DisplayName instead of .Name for Label,
1964            so that DisplayNameAttribute doesn't get ignored.
1965          - Check for ParenthesizeNameAttribute and parenthesize the Label.
1966          - Add support for PasswordPropertyTextAttribute
1967         * PropertyGridView.cs: Check if an entry is a password.
1968         [Fixes bugs #365589, #365586, #365588]
1969
1970 2008-02-28  Andreia Gaita <avidigal@novell.com>
1971
1972         * PropertyGridView.cs: Revert the message filtering change, as we
1973         need it to block after all. Remove block parameter, unnecessary.
1974
1975 2008-02-27  Jonathan Pobst  <monkey@jpobst.com>
1976
1977         * UserControl.cs: Better implementation of GetPreferredSize.
1978         First step to fixing bug #361441.
1979
1980 2008-02-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
1981
1982         * Binding.cs: Actually implement data binding support for 
1983         classes implementing IBindableComponent.
1984         * ControlBindingsCollection.cs: Likewise.
1985
1986 2008-02-26  Andreia Gaita  <avidigal@novell.com>
1987
1988         * PropertyGridView.cs: Use a message filter to check when to 
1989         close the dropdown
1990
1991 2008-02-26  Andreia Gaita  <avidigal@novell.com>
1992
1993         * Application.cs: Change the message_filters loop so a filter 
1994         can be removed while looping.
1995
1996 2008-02-26  Ivan N. Zlatev  <contact@i-nz.net>
1997
1998         * GridEntry.cs: Optimization in ToggleValue so that it caches
1999         the current value.
2000         * PropertyGridView.cs: An optimization so that the property isn't 
2001         re-read twice for each StandardValue added to the drop-down menu.
2002         Patch by Andy Hume <andyhume32@yahoo.co.uk> under the MIT/X11
2003         license.
2004         [Fixes bug #362755]
2005
2006 2008-02-26  Jonathan Pobst  <monkey@jpobst.com>
2007
2008         * Application.cs: Apply patch from Justin Cherniak to match
2009         MS better for ProductName, ProductVersion, and CompanyName.
2010         [Fixes bug #361709]
2011
2012 2008-02-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2013
2014         * Binding.cs: Actually implement 2.0 NullValue property. Also
2015         when changing the formatting related properties, only update the state
2016         if formatting_enabled is true (we don't mind otherwise).
2017
2018 2008-02-25  Jonathan Pobst  <monkey@jpobst.com>
2019
2020         * ToolStrip.cs: Don't raise ItemClicked for disabled items.
2021         [Fixes bug #364486]
2022
2023 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
2024
2025         * GridEntry.cs: Use the PropertyDescriptor.PropertyType instead 
2026         of GetType on the current value as it uses reflection to 
2027         determine the type. This fixes the case where the new value is 
2028         null. 
2029
2030 2008-02-25  Ivan N. Zlatev  <contact@i-nz.net>
2031
2032         * PropertyGridView.cs: Limit mousewheel scrolling to not scroll
2033         past the view.
2034
2035 2008-02-24  Luke Page  <luke.a.page@gmail.com>
2036
2037         * Line.cs, TextControl.cs: Implement offset x and y so that a
2038         document doesn't have to begin  at (0,0) on the viewpoint.
2039         * TextBox.cs, TextBoxBase.cs: RightToLeft switches the scroll
2040         bars and switches the text alignment (and therefore is now
2041         implemented for textbox). Fixes #321383.
2042
2043 2008-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2044
2045         * Binding.cs: Actually implement 2.0 FormatString and FormatInfo
2046         properties. Also when changing FormattingEnabled update the control
2047         property -as .Net does-.
2048
2049 2008-02-22  Carlos Alberto Cortez <calberto.cortez@Å‹mail.com>
2050
2051         * ControlBindingsCollection.cs: Add the missing 2.0 Add overloads.
2052         * Binding.cs: Add stubs for the overloads of the Add method in
2053         CBCollection.
2054
2055 2008-02-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2056
2057         * Binding.cs: PullData () returns a false value if we got an exception.
2058         Also when validating the control and we get an error, instead of
2059         setting the value of the previous one, cancel the event (tested in 1.1
2060         and 2.0).
2061
2062 2008-02-22  Jonathan Pobst  <monkey@jpobst.com>
2063
2064         * TreeView.cs: Make selected_node and highlighted_node internal.
2065         * TreeNodeCollection.cs: Reset selected_node and highlighted_node
2066         to null when Nodes.Clear is called.
2067         [Fixes bug #363884]
2068
2069 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
2070
2071         * FontDialog.cs: Ensure that when the Font is set in code,
2072         all the gui pieces are updated accordingly.
2073         [Fixes bug #361020]
2074
2075 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
2076
2077         * TextRenderer.cs: Respect proposed size for MeasureString.
2078         * ThemeWin32Classics.cs: If our CheckBox/RadioButton isn't
2079         autosize, use a proposed width to force wrapping for long text.
2080         [Fixes bug #360981]
2081
2082 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
2083
2084         * TreeView.cs: Factor in checkboxes = false and state images in
2085         to HitTest.  [Fixes bug #363360]
2086
2087 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
2088
2089         * ThemeWin32Classic.cs: Only look at the Date part of a DateTime
2090         when drawing the selected range.
2091         [Fixes bug #363648]
2092
2093 2008-02-21  Jonathan Pobst  <monkey@jpobst.com>
2094
2095         * ToolStripContainer.cs: Add SupportsTransparentBackColor and
2096         ResizeRedraw control styles.
2097         [Fixes bug #363555]
2098
2099 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
2100
2101         * TreeView.cs: StateImages are basically custom checkboxes, so
2102         factor their size the same as real checkboxes when determining
2103         what got clicked.
2104         [Fixes bug #363367]
2105
2106 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
2107
2108         * MessageBox.cs: Make the message box wider if the form caption
2109         is longer than the text in the form.
2110         [Fixes bug #361137]
2111
2112 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
2113
2114         * PropertyGridView.cs: Fix a NRE when closing the drop down form.
2115
2116 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
2117
2118         * TreeNode.cs: Guard against an NRE when the parent's
2119         StateImageList hasn't been set.
2120         [Fixes bug #363353]
2121
2122 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
2123
2124         * SplitContainer.cs: Add SupportsTransparentBackColor and
2125         OptimizedDoubleBuffering control styles.
2126         [Fixes bug #363303]
2127
2128 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
2129
2130         * Application.cs: For the app data paths and the registry key paths,
2131         ensure they are created before returning them to the user.
2132         [Fixes bug #361709]
2133
2134 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
2135
2136         * Application.cs: Guard against an NRE in CompanyName and
2137         ProductName.
2138
2139 2008-02-20  Jonathan Pobst  <monkey@jpobst.com>
2140
2141         * Application.cs: For CompanyName, ProductName, and ProductVersion,
2142         make sure we handle all three cases correctly: attribute is present,
2143         attribute is present but is an empty string, and attribute is not
2144         present.
2145
2146 2008-02-20  Ivan N. Zlatev  <contact@i-nz.net>
2147
2148         * PropertyGridView.cs: 
2149          - Fix a NRE that caused a test failure
2150          - Another performance improvement - cache the standard values
2151          listbox.
2152
2153 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
2154
2155         * ComboBox.cs: Fix previous change to affect both 1.1 and 2.0
2156         code paths.
2157
2158 2008-02-19  Ivan N. Zlatev  <contact@i-nz.net>
2159
2160         * PropertyGridView.cs: Fix a big performance bug.
2161
2162 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
2163
2164         * SelectionRange.cs: Apply patch from Andy Hume to make
2165         constructor behavior more accurate.  [Fixes bug #362117]
2166
2167 2008-02-19  Andreia Gaita <avidigal@novell.com> 
2168
2169         * Control.cs: Added a new flag is_disposing to track if the
2170         window is currently in the process of being disposed of.
2171         This is used so that, when firing visibility changes triggered
2172         by unparenting controls during Dispose, the control doesn't
2173         get created again.      
2174
2175 2008-02-19  Jonathan Pobst  <monkey@jpobst.com>
2176
2177         * ComboBox.cs: Set height to preferred height when the handle
2178         is created.  [Fixes bug #360862]
2179
2180 2008-02-18  Andreia Gaita <avidigal@novell.com>
2181
2182         * XplatUIX11.cs: Create FosterParent with border width at 0.
2183         With the previous value of 4, everytime a control got reparented
2184         from parent = null, it's location would be shifted right and 
2185         down by 4, since these coordinates would be offset by the 
2186         FosterParent's border width.
2187
2188 2008-02-18  Ivan N. Zlatev  <contact@i-nz.net>
2189
2190         * Control.cs: During diposing firstly remove ourselfes from
2191         the parent and *then* destroy our handle, because removing
2192         ourselfes from the parent controls collection causes 
2193         VisibilityChange, etc events, which require a handle and end
2194         up recreating the control.
2195
2196 2008-02-17  Ivan N. Zlatev  <contact@i-nz.net>
2197
2198         * GridEntry.cs: Set expanded state before notifying that the
2199         expansion has taken place.
2200         * PropertyGridView.cs:
2201          - Set the propertygridtextbox text to the selected 
2202          StandardValue before proceeding to setting it.
2203          - Scrolling bugfixes.
2204
2205 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
2206
2207         * GridEntry.cs:
2208          - Fix ValueText to not return null.
2209          - Fix conversion error reporting to actually happen.
2210         * PropertyGridView.cs: Set entry only if the text has changed.
2211         [Fixes bug #362116]
2212
2213 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
2214
2215         * GridEntry.cs: 
2216          - Fix handling of a null current value.
2217          - Swallow editor exceptions.
2218         [Fixes bug #362114]
2219
2220 2008-02-16  Ivan N. Zlatev  <contact@i-nz.net>
2221
2222         * PropertyGrid.cs: Clear current items first thing before 
2223         repopulating subitems.
2224         * GridEntry.cs: 
2225          - Handle null StandardValuesCollection.
2226          - Mark as not editable if there is no PropertyDescriptor and
2227          if the Converter cannot convert from string.
2228         [Part of fix for bugs #360666 and #358332]
2229
2230 2008-02-15  Luke Page  <luke.a.page@gmail.com>
2231         * MaskedTextBox.cs: Now skips non editable characters after a
2232         character has been entered and we are progressing to the next
2233         position in the MaskedTextBox.
2234
2235 2008-02-15  Luke Page  <luke.a.page@gmail.com>
2236         * TextBoxBase.cs: Handles MouseDown when shift key is clicked so
2237         that it changes the selection rather than just repositioning the
2238         cursor. Fixes Bug #360873.
2239
2240 2008-02-15  Luke Page  <luke.a.page@gmail.com>
2241         * TextBoxBase.cs, TextControl.cs, RichTextBox.cs: TextChanged fires
2242         when Undo/Redo changes the text. Undo/Redo/Undo/Redo now works
2243         correctly. See #359330
2244
2245 2008-02-15  Andreia Gaita <avidigal@novell.com>
2246
2247         * XplatUIX11.cs: If the handle is null when posting a message, use the
2248         current thread queue to post instead. Fixes #332409
2249
2250         * SendKeys.cs: Slight optimization
2251
2252 2008-02-14  Ivan N. Zlatev  <contact@i-nz.net>
2253
2254         * PropertyGrid.cs, PropertyGridView.cs:
2255         Fix multiple scrolling and sizing issues.
2256         [Fixes bug #359199]
2257
2258 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
2259
2260         * PropertyGridView.cs: Ensure that drop down editors are shown
2261         in the WorkingArea of the screen.
2262         [Fixes bug #359807]
2263
2264 2008-02-12  Ivan N. Zlatev  <contact@i-nz.net>
2265
2266         * GridEntry.cs: Fail silently when UITypeEditor is missing.
2267         [Fixes bug #360666]
2268
2269 2008-02-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2270
2271         * Binding.cs: Implement 2.0 DataSourceNullValue property.
2272
2273 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
2274
2275         * PropertyGridView.cs:
2276          - Clear the controls in the drop down form after it is hidden.
2277          - Fix Width sizing of the dropdown editors to match MSFT.
2278
2279 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
2280
2281         * PropertyGridView.cs: 
2282          - Fix height for drawing the grid entry
2283          text value, so that it clips multiline text properly.
2284          - Fix unfocusing to match MSFT.
2285
2286 2008-02-11  Ivan N. Zlatev  <contact@i-nz.net>
2287
2288         * PropertyGrid.cs: Do not populate subgriditems unless expandable.
2289         Fixes a bug where on repopulation after value changed items become
2290         expandable.
2291
2292 2008-02-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2293
2294         * Binding.cs: For the 2.0 profile, look for a 
2295         'PropertyChanged' event in the target control, and add checks for
2296         DataSourceUpdateMode property to change -or not- the data source
2297         from validation/control property change.
2298
2299 2008-02-10  Atsushi Enomoto  <atsushi@ximian.com>
2300
2301         * Binding.cs : build fix (operator == is not overriden in 1.x. Do
2302           not compare struct with null in 2.0).
2303
2304 2008-02-10  Luke Page <luke.a.page@gmail.com>
2305
2306         * MaskedTextBox.cs: UseSystemPasswordChar updates PasswordChar, PasswordChar
2307         updates the provider and if not using a provider, uses the internal document
2308         class implementation of password char. Also when showing text, uses display string
2309         from the provider, instead of the actual text.
2310
2311 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2312
2313         * Binding.cs: Ooooops, forgot to take into account the data_source
2314         and binding_member_info null case (it was breaking the Binding tests).
2315
2316 2008-02-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2317
2318         * Binding.cs: Implement support for data source changes exposed by
2319         'PropertyNameChanged' events, and update the control property as
2320         needed.
2321
2322 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2323
2324         * Binding.cs: Implement 2.0 WriteValue method.
2325
2326 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
2327
2328         Commit patch from James Purcell for better AutoScale implementation:
2329
2330         * ScaleControl should call GetScaledBounds with the control's total size rather
2331         than client size.  GetScaledBounds should handle ignoring the borders in its
2332         calculations.  Cleaned up ScaleControl/GetScaledBounds overrides in controls
2333         (for the most part they just call the base code now since that is fixed).
2334         * Added ScaleChildrenInternal to allow controls to disable scaling of children
2335         without having to override ScaleChildren (since none of .NET's controls do). 
2336         This is required for most controls in Mono that have scrollbars to prevent the
2337         scrollbars from being moved/resized.
2338         * Nested ContainerControls can have a different scale mode than their parent. 
2339         This is briefly mentioned in MSDN but is buggy in MS.NET (the runtime and
2340         designer produce different results both of which look incorrect).
2341         * Default AutoScaleMode for ContainerControl should be Inherit.
2342         * Simplified workaround for ComboBox scaling issue.
2343         * 1.0 style auto-scaling now uses its own methods instead of sharing 2.0's. 
2344         1.0 style auto scaling should scale the whole control's size instead of
2345         ignoring the borders (except for Form) and the rounding is done differently to
2346         preserve control alignment.
2347         * ApplyAutoScaling (used for 1.0 style) should use the rounded result of
2348         GetAutoScaleSize.
2349         * Cleaned up fix for "Bug 355703 - Setting AutoScale = true doesn't stick".
2350         * CurrentAutoScaleDimensions should round the estimated character width instead
2351         of truncating.
2352         * ListBox's GetScaledBounds should always use the height it was set to instead
2353         of the height that was passed in.  This prevents rounding errors from
2354         accumulating quickly with IntegralHeight.
2355         [Bug #359098]
2356
2357 2008-02-08  Andreia Gaita <avidigal@novell.com>
2358
2359         * Form.cs: Add a null check (darn it). 
2360
2361 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
2362
2363         * MdiClient.cs: Make sure the requesting form actually owns the
2364         control menu items before removing them.  Also, use
2365         Suspend/ResumeLayout when adding or removing items so we only
2366         layout once.
2367         [Fixes bug #359887]
2368
2369 2008-02-08  Jonathan Pobst  <monkey@jpobst.com>
2370
2371         * Control.cs: Guard against an NRE in ShowFocusCues.
2372         [Fixes bug #359830]
2373
2374 2008-02-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2375
2376         * Binding.cs: Implement 2.0 ReadValue method and ControlUpdateMode
2377         property, as well as stubbing DataSourceUpdateMode.
2378
2379 2008-02-08  Andreia Gaita <avidigal@novell.com>
2380
2381         * Form.cs: When closing forms, get focus back to the active control of the
2382         active form. [Fixes #341314, corner case]
2383         
2384 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
2385
2386         * MdiClient.cs: After we move the scrollbars, invalidate the NC
2387         area, so any old scrollbar artifacts are cleaned up.
2388         [Fixes bug #336305]
2389
2390 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
2391
2392         * MdiWindowManager.cs: If we are maximized and using MainMenuStrip
2393         for our menus, display that control box menu instead of the 1.1
2394         menu one.
2395
2396 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
2397
2398         * MdiControlStrip.cs: Add property to access the mdi form tied to
2399         each toolstripitem.
2400         * MdiClient.cs: Be smarter about removing and adding toolstripitems
2401         to the implicitly merged menu.  Every time we clicked the form, items
2402         were getting removed and the re-added, causing the form to jump around
2403         as the menu resized.
2404
2405 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
2406
2407         * MdiClient.cs: Make sure the NormalBounds always gets set.  It
2408         was being reset by the implicit menu merge for menustrips.
2409         [Fixes bug #336296]
2410
2411 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
2412
2413         * Form.cs: Don't do the previous change when WindowState = Normal,
2414         or it messes up where the window is placed.  Fixes test failure.
2415
2416 2008-02-07  Jonathan Pobst  <monkey@jpobst.com>
2417
2418         * Form.cs: When becoming visible, if we are an MDI child, call
2419         SetWindowState with a dummy old_state so that changes will actually
2420         be made.
2421         [Fixes the 2nd part of bug #325473]
2422
2423 2008-02-07  Andreia Gaita <avidigal@novell.com>
2424
2425         * Control.cs: Reset properties to their pre parent-change values in case
2426         the new parent == null (in which case we're basically removing the control, 
2427         and don't want any events fired due to fake property changes)
2428         [Fixes #355850]
2429
2430 2008-02-06  Ivan N. Zlatev  <contact@i-nz.net>
2431
2432         * PropertyGridView.cs: 
2433          - Refactor SetValue to allow setting the value
2434         when a custom editor is used, but the entry is not editable.
2435          - Remove the custom editor control on CloseDropDown.
2436         [Fixes #359196]
2437
2438 2008-02-06  Andreia Gaita <avidigal@novell.com>
2439
2440         * PrintControllerWithStatusDialog.cs: Set PrintFileName value through
2441         reflection only on 1.1, this property is public on system.drawing on 2.0.
2442         Fixed #359247
2443
2444 2008-02-06  Andreia Gaita  <avidigal@novell.com>
2445         
2446         * WebBrowser.cs: Do a normal page refresh by default.
2447
2448 2008-02-05  Andreia Gaita  <avidigal@novell.com>
2449
2450         * XplatUIWin32.cs, XplatUICarbon.cs: set the hwnd.Mapped flag when we create 
2451         the window so that the check on Control.UpdateZOrderOfChild passes on non-X
2452         platforms. Fixes #359036
2453         
2454         Note: Control.UpdateZOrderOfChild needs to be rewritten to not rely on 
2455         platform-specific flags.
2456
2457 2008-02-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2458
2459         * Binding.cs: Add 2.0 BindableComponent property - just return control
2460         by now.
2461
2462 2008-02-05  Everaldo Canuto  <ecanuto@novell.com>
2463
2464         * MenuAPI.cs: Check if control is disposable when track popup menu. Thanks
2465         Jonathan for this patch. Fixes #358442.
2466
2467 2008-02-05  Jonathan Pobst  <monkey@jpobst.com>
2468
2469         * Form.cs: If we change the active MDI child form, let the others
2470         know they need to repaint their title bar so it will appear inactive.
2471         [Fixes part 1 of bug #325473]
2472
2473 2008-02-05  Ivan N. Zlatev  <contact@i-nz.net>
2474
2475          * PropertyGridView.cs: Do not trucate custom editors' width
2476          and align them to the left.
2477          [Fixes #358353 and #358349]
2478
2479 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2480
2481         * BindingsCollection.cs: Implement 2.0 CollectionChanging event.
2482         Also fix the arguments passed to CollectionChangeEventArgs in the
2483         related methods.
2484
2485 2008-02-04  Geoff Norton  <gnorton@novell.com>
2486
2487         * Hwnd.cs: The conversion to Quartz coordinates happens in
2488         System.Drawing.  Removing this translation from here.
2489
2490 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
2491
2492          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs,
2493          CategoryGridEntry.cs, RootGridEntry.cs, GridItem.cs,
2494          GridItemCollection.cs:
2495          PropertyGrid rewrite part 2. Tons of bugfixes and new features.
2496
2497 2008-02-04  Geoff Norton  <gnorton@novell.com>
2498
2499         * X11Keyboard.cs: VK_MENU should send a KEYUP instead of 
2500         SYSKEYUP if any other key has been pressed in the mean time.
2501         Fixes #324404
2502
2503 2008-02-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2504
2505         * ListView.cs: In ItemControl.ItemsMouseMove, only fire ItemDrag event
2506         when the item in current position is different than 0. Also, save the
2507         item index in the beginning of the operation, instead of getting the
2508         index of the item when the event is actually performed. Lastly clean
2509         the related fields in ItemsMouseUp if the ItemDrag operation wasn't
2510         triggered.
2511         [Fixes #357873]
2512
2513 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
2514
2515         * Form.cs: Alt-Minus for MDI children system menu should work
2516         with both the minus keys on the keyboard.
2517         [Fixes bug #336295]
2518
2519 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
2520
2521         * Control.cs: Don't invalidate on region change.  The WM should
2522         take care of this automagically.  Keeps us out of an infinite
2523         paint loop if someone changes the Region in the OnPaint.
2524         [Fixes bug #358327]
2525
2526 2008-02-04  Ivan N. Zlatev  <contact@i-nz.net>
2527
2528          * ImageIndexConverter.cs: ConvertFrom must handle "(none)".
2529
2530 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
2531
2532         * DateTimePicker.cs: Apply patch from Srikanth Madikeri so we drop
2533         down the MonthCalendar only on F4, not Alt+F4.
2534         * MonthCalendar.cs: If we are a popup, close ourselves on Alt+F4.
2535         [Fixes bug #358340]
2536
2537 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
2538
2539         * ThemeWin32Classic.cs: For MonthCalendar, draw a dark border
2540         if its part of a DateTimePicker, else, use the back color.
2541         [Fixes bug #358339]
2542
2543 2008-02-03  Jonathan Pobst  <monkey@jpobst.com>
2544
2545         * Hwnd.cs: Use GraphicContext instead of the uninitialized bmp_g.
2546         [Fixes bug #358342]
2547
2548 2008-02-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2549
2550         * CurrencyManager.cs: When we get a ListChanged event from our source,
2551         always fire our own ListChanged event, as .Net does.
2552
2553 2008-02-03  Luke Page  <luke.a.page@gmail.com>
2554
2555         * RichTextBox.cs: AutoSize now defaults to false. Fixes Bug
2556         #358379.
2557
2558 2008-02-03  Luke Page  <luke.a.page@gmail.com>
2559
2560         * TextBoxBase.cs, RichTextBox.cs, TextControl.cs: Sets richtext
2561         property. Removed if for richtext property that was always true.
2562         PgUp/PgDn at top/bottom fixed for RTB. Fixes bug #358237.
2563
2564 2008-02-03  Luke Page  <luke.a.page@gmail.com>
2565
2566         * TextBoxBase.cs - commited patch from James Purcell that
2567         correctly sets the FixedHeight control style when the MultiLine
2568         property is changed on a TextBox control. Fixes bug 358229.
2569
2570 2008-02-02  Luke Page  <luke.a.page@gmail.com>
2571
2572         * Line.cs, LineTag.cs, RichTextBox.cs, TextControl.cs
2573         Fixes bug 351938 - caret is positioned correctly when drawn
2574         and when calculating textual position of caret, no longer
2575         has a NRE in certain situations.
2576         
2577 2008-02-01  Geoff Norton  <gnorton@novell.com>
2578
2579         * Hwnd.cs: Ensure that windows moved into -'ve coordinate space
2580         get that region removed from the paint event.
2581         * XplatUICarbon.cs: Remove the window mapping after disposing of 
2582         window.  Prevents a crash with handle reuse.  Optimize exposes
2583         only onto visible windows (rare; but possible).
2584
2585 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
2586
2587         * UpDownBase.cs: Make sure the internal textbox calls the base's
2588         OnMouseDown and OnMouseUp so the textbox will function correctly.
2589         There were notes saying it doesn't chain up, but its an internal
2590         class, so our implementation may differ.
2591         [Fixes bug #357482]
2592
2593 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
2594
2595         * ListBox.cs: Fix a logic error and don't process MouseDown
2596         for mouse buttons other than Left.
2597
2598 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
2599
2600         * Control.cs: Remove HeightInternal.
2601         * ListBox.cs: Commit patch from James Purcell that correctly
2602         calculates heights for ListBoxen.
2603         [Fixes bug #357152]
2604
2605 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
2606
2607         * Label.cs: Apply patch from James Purcell that corrects the 
2608         signature of the AutoSize property.
2609         [Fixes bug #357605]
2610
2611 2008-02-01  Jonathan Pobst  <monkey@jpobst.com>
2612
2613         * ListBox.cs: Don't throw [Mouse]Click events for buttons
2614         other than the left mouse button.
2615
2616 2008-01-31  Jonathan Pobst  <monkey@jpobst.com>
2617
2618         * Control.cs: Remove my awesome optimization as it caused some
2619         regressions with control ordering.  :(
2620         [Fixes bug #357467]
2621
2622 2008-01-31  Ivan N. Zlatev  <contact@i-nz.net>
2623
2624          * PropertyGridView.cs: Fix a NRE on double click when there is no
2625          selected object.
2626
2627 2008-01-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2628
2629         * BindingManagerBase.cs: Implement IsBindingSuspended 2.0 property.
2630
2631 2008-01-30  Jonathan Pobst  <monkey@jpobst.com>
2632
2633         * ListBox.cs: Call MouseClick and MouseDoubleClick.
2634         [Fixes bug #357146]
2635
2636 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
2637
2638         * Hwnd.cs: Make bmp, bmp_g variables threadstatic and private.
2639         * Control.cs, DataGridViewCell.cs, LineTag.cs: Use Hwnd.GraphicsContext
2640         instead of Hwnd.bmp_g.
2641
2642 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
2643
2644         * TextRenderer.cs: Don't maintain private bitmap/graphics contexts.
2645         Use the Hwnd one instead.
2646
2647 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
2648
2649         * Form.cs: Remove duplicated copy of GetAutoScaleSize.
2650
2651 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
2652
2653         * Form.cs: corcompare for RestoreBounds.
2654
2655 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
2656
2657         * Control.cs: Add MarshalAs attribute to Font getter for corcompare.
2658
2659 2008-01-29  Jonathan Pobst  <monkey@jpobst.com>
2660
2661         * Form.cs: Handle Alt-Minus for MDI children forms.
2662         * MdiWindowManager.cs: Make ShowPopup internal so Form can call it.
2663         Add mnemonics to the control menu.
2664         [Fixes bug #336295]
2665
2666 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2667
2668         * Binding.cs: Initial implementation bits of FormattingEnabled
2669         property and BindingComplete event (2.0). 
2670         * BindingCompleteEventArgs.cs: Internal methods for setting error text
2671         and exception.
2672
2673 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
2674
2675         * TableLayoutPanel.cs: Draw the table border at 0,0 instead of
2676         table.Location.  [Fixes bug #354672]
2677
2678 2008-01-28  Jonathan Pobst  <monkey@jpobst.com>
2679
2680         * Form.cs: Handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE to raise
2681         ResizeBegin and ResizeEnd.  [Fixes bug #346529 for win32]
2682
2683 2008-01-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2684
2685         * ComboBox.cs: When OnDisplayMemberChanged method is reached, instead
2686         of doing all the re-bound work, just invalidate and call SetControlText 
2687         to set the updated text of selected item to our textbox.
2688         Fixes #333750.
2689
2690 2008-01-28  Andreia Gaita <avidigal@novell.com>
2691
2692         * HtmlWindow.cs: Add event handler support. Add Document, Frames, 
2693         IsClosed, Opener, StatusBarText, Url properties, stub out the remaining
2694         missing properties and methods. Add Load, Unload, Error, GotFocus, 
2695         LostFocus, Resize, Scroll events (only load and unload are connected)
2696
2697 2008-01-27  Gert Driesen  <drieseng@users.sourceforge.net>
2698
2699         * AccessibleObject.cs: Modified argument names to match MS.
2700         * Button.cs: Modified argument names to match MS.
2701         * BindingContext.cs: Modified argument names to match MS.
2702         * BindingMemberInfo.cs: Modified argument names to match MS.
2703         * ButtonBase.cs: Modified argument names to match MS.
2704         * ComboBox.cs: Modified argument names to match MS.
2705         * Control.cs: Modified argument names to match MS.
2706         * CheckedListBox.cs: Modified argument names to match MS.
2707         * CommonDialog.cs: Modified argument names to match MS.
2708         * DataGrid.cs: Modified argument names to match MS.
2709         * CursorConverter.cs: Modified argument names to match MS.
2710         * ControlPaint.cs: Modified argument names to match MS.
2711         * CheckBox.cs: Modified argument names to match MS.
2712         * ControlBindingsCollection.cs: Modified argument names to match MS.
2713         * BindingSource.cs: Modified argument names to match MS.
2714         * DataFormats.cs: Modified argument names to match MS.
2715         * ContainerControl.cs: Modified argument names to match MS.
2716         * CurrencyManager.cs: Modified argument names to match MS.
2717         * Application.cs: Modified argument names to match MS.
2718         * ContextMenuStrip.cs: Modified argument names to match MS.
2719         * ContextMenu.cs: Modified argument names to match MS.
2720         * BindingManagerBase.cs: Modified argument names to match MS.
2721         * WindowsFormsSection.cs: Fixed line ending.    
2722
2723 2008-01-27  Andreia Gaita <avidigal@novell.com>
2724
2725         * PropertyGridView.cs: Rearrange the dropdown loop so that it exits when
2726         detecting that the dropdown toolwindow is hidden. EndLoop outside the
2727         while.
2728
2729 2008-01-26  Gert Driesen  <drieseng@users.sourceforge.net>
2730
2731         * PropertiesTab.cs: Fixed argument name of GetDefaultProperty to match
2732         MS. Code formatting.
2733
2734 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2735
2736         * Binding.cs: Don't avoid the Format event if the control 
2737         property type is object. Also, if the value retrieved by 
2738         the data source is null _and_ the control proeprty type 
2739         is object, return Convert.DBNull (match .Net).
2740         Fixes part of #324286.
2741
2742 2008-01-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
2743
2744         * ListControl.cs: Since we are getting two BinginContextChanged events
2745         for the same binding context instance (when the control is added to
2746         form, and when the form is actually shown), take it into account only the
2747         first time for a given binding context instance.
2748         Fixes part of #324286.
2749
2750 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
2751
2752          * PropertryGridView.cs: Ops.
2753
2754 2008-01-26  Ivan N. Zlatev  <contact@i-nz.net>
2755
2756          * PropertyGridView.cs: Close dropdown form if the owner form is
2757          moved or minimized.
2758          [Fixes bug #322446]
2759
2760 2008-01-25  Ivan N. Zlatev  <contact@i-nz.net>
2761
2762          * PropertyGrid.cs, PropertyGridView.cs, GridEntry.cs, GridItem.cs, 
2763          RootGridEntry.cs, CategoryGridEntry.cs:
2764          PropertyGrid rewrite.
2765          - Rewrite all of the control logic in PropertyGrid.
2766          - Rewrite all of the ComponentModel logic in GridEntry.
2767          - Rewrite all UI work in PropertyGridView.
2768          - Many bugfixes, etc.
2769
2770 2008-01-24  Jonathan Pobst  <monkey@jpobst.com>
2771
2772         * TableLayoutPanel.cs: Enhance GetPreferredSize to take into account
2773         when all contained controls are autosize or dock-fill.  Also take into
2774         account when the total percentage of column/row sizes is not 100%.
2775         [Fixes bug #354672]
2776
2777 2008-01-24  Andreia Gaita <avidigal@novell.com>
2778
2779         * HtmlDocument.cs:
2780         - Save a reference to the IDocument in the instance and
2781           use that one instead of going to WebHost.Document; the document that the 
2782           WebHost returns might not be the right one (in case of frames).
2783         - Use the hashcode returned from the IDocument interface.
2784         - Implemented: ActiveElement, ActiveLinkColor, All, BackColor, Cookie, 
2785           Domain (setter is not supported), Encoding, ForeColor, Forms, Images, 
2786           LinkColor, Url, VisitedColor, Window
2787
2788         * HtmlElement.cs: 
2789         - Implemented: CanHaveChildren, Children, Document, GetAttribute, 
2790           set_Attribute, NextSibling, Parent, TagName, AppendChild, 
2791           GetElementsByTagName, GetHashCode, HasAttribute, InsertAdjacentElement,
2792           SetAttribute, Equals, equality operators.
2793         - Added stubs for: AttachEventHandler, DetachEventHandler, Focus, 
2794           InvokeMember, RaiseEvent, RemoveFocus, ScrollIntoView, 
2795         
2796         * HtmlElementCollection.cs: Change implementation to use a generic
2797         collection. Implemented Enumerator and CopyTo
2798
2799         * HtmlHistory.cs: Add constructor, no implementation yet.
2800
2801         * HtmlWindow.cs: Initial implementation with: Name, Parent, Alert,
2802         Confirm, Prompt, Navigation, ScrollTo, Open, OpenNew, GetHashCode, 
2803         Equals, equality operators.
2804
2805         * HtmlWindowCollection.cs: Implemented. 
2806
2807         * WebBrowser.cs: Use the Navigation object to navigate (WebHost.Navigate
2808         has been deprecated).
2809
2810         * WebBrowserBase.cs: Use Completed event to track document loading
2811         (Navigated has been deprecated)
2812
2813 2008-01-24  Jonatham Pobst  <monkey@jpobst.com>
2814
2815         * ThemeWin32Classic.cs: Add tab stops and NoWrap to dropdown MenuItems.  Top
2816         level MenuItems do not respect tabs.
2817         [Fixes bug #355196]
2818
2819 2008-01-23  Geoff Norton  <gnorton@novell.com>
2820
2821         * XplatUICarbon.cs:  Ensure that windows are created in their initial 
2822         FormWindowState.  Finished fixing Fullscreen windows on Carbon
2823
2824 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
2825
2826         * MenuAPI.cs: When FindForm fails uses FindRootParent to find the control to
2827         be used as grab_control. Also save status of capture before show ContextMenu
2828         and restore it after close.
2829
2830 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
2831
2832         * Control.cs: Internal FindRootParent method added to return high control
2833         in parent tree.
2834
2835 2008-01-23  Geoff Norton  <gnorton@novell.com>
2836
2837         * Hwnd.cs: Refactor Whole/Client pointer to 1 element for Cursors.
2838         * XplatUICarbon.cs: Refactor some dead code out to Cursor.cs and make
2839         it work again.  Handle HITTEST events.
2840
2841 2008-01-23  Geoff Norton  <gnorton@novell.com>
2842
2843         * XplatUICarbon.cs: Ensure that we always have a host window.  Prevents
2844         a crash in certain cases.  Support for fullscreen windows in certain cases.
2845
2846 2008-01-23  Jonathan Pobst  <monkey@jpobst.com>
2847
2848         * Form.cs: Don't set AutoScaleMode in AutoScale if we don't have to.
2849         [Fixes bug #355703]
2850
2851 2008-01-23  Geoff Norton  <gnorton@novell.com>
2852         
2853         * XplatUICarbon.cs: Remove some dead code that was causing warnings.
2854
2855 2008-01-23  Geoff Norton  <gnorton@novell.com>
2856
2857         * XplatUICarbon.cs:  Re-enabled Carets in QuickDraw as a overlay window.
2858
2859 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
2860
2861         * SplitContainer.cs: Remove unused declarations.
2862         * Binding.cs: Remove unused declarations.
2863
2864 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
2865
2866         * Form.cs: Remove unused declaration of 'active' in Activate method.
2867         * Control.cs: Move declaration of nested_layout inside '#if NET_2_0" to 
2868         prevent compilation warnings.
2869         * TextControl.cs: Remove unused declaration of selection_pos_on_line.
2870         * Hwnd.cs: Remove unused declaration of clip in GetClippingRectangles.
2871         * Bindings.cs: Remove unused formatting_enabled declaration.
2872         * ToolTip.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
2873         warnings.
2874         * TreeView.cs: Put some methods inside '#if NET_2_0" to prevent compilation 
2875         warnings.
2876         * PropertyGridView.cs: Remove usused 'ex' declaration.
2877         * DataGridView.cs: Remove unused declarations.
2878
2879 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
2880
2881         [Fixes bugs #343966, #338511 and other non reported (context)menu bugs]
2882         
2883         * Form.cs: Remove all active_tracker (used by menu) stuff, it is now moved 
2884         to Control class, it makes possible to grab menu to controls that can't 
2885         reach Form using parent tree. Handle for WmButtonUp, WmButtonDown and
2886         WmMouseMove removed since it was used only to track menu events.
2887
2888         * Control.cs:
2889         - Moved all active_tracker stuff from Form.
2890         - ProcessActiveTracker added to prevent code duplicity, now mouse events 
2891         can call this method instead of reimplement all necessary code handle for
2892         menu tracker.
2893         - Call to ProcessActiveTracker for mouse events (WmButtonUp, WmButtonDown
2894         and WmMouseMove).
2895         
2896         * MenuAPI.cs: 
2897         - Remove special handle to ToolStripOverflow, now we can grab menu to 
2898         controls that can't reach Form using parent tree.
2899         - Change type of grab_control from Form to Control.
2900
2901 2008-01-22  Geoff Norton  <gnorton@novell.com>
2902
2903         * TextBoxBase.cs: Split up the sizing of controls and placing of 
2904         controls.  Fixes a bug where scrollbars in Reflector could be sized
2905         wrong and have non-working thumbers.
2906
2907 2008-01-23  Geoff Norton  <gnorton@novell.com>
2908
2909         * XplatUI.cs: Refactor environment variables to default support to the
2910         Carbon driver on the Mac.
2911
2912 2008-01-23  Everaldo Canuto  <ecanuto@novell.com>
2913
2914         * Label.cs: Uses new LabelPainter for drawing operations.
2915         * ThemeWin32Classic.cs: DrawLabel and LabelDefaultSize removed.
2916         * Theme.cs: DrawLabel and LabelDefaultSize removed.
2917
2918 2008-01-22  Geoff Norton  <gnorton@novell.com>
2919
2920         * XplatUICarbon.cs: Enable packing scroll delta into the mouse wParam
2921
2922 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
2923
2924         * ThemeWin32Classic.cs: Run Flat, Button appearance, 2.0 CheckBoxes
2925         through the normal flat button code and don't draw the checkbox glyph.
2926         * Theme.cs: Button->ButtonBase signature change.
2927         [Fixes bug #324755]
2928
2929 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
2930
2931         * LinkLabel.cs: Uses new class LinkLabelPainter.
2932
2933 2008-01-22  Everaldo Canuto  <ecanuto@novell.com>
2934
2935         * MessageBox.cs: Adjust right border space, we don't need to add 
2936         "space_border*2" two times.
2937
2938 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
2939
2940         * ScrollableControl.cs: With the advent of 2.0's Padding, DockPadding
2941         becomes a wrapper around Padding.
2942         [Fixes a part of bug #354676]
2943
2944 2008-01-22 Geoff Norton  <gnorton@novell.com>
2945
2946         * Mime.cs:  Avoid a needles exception on OSX if we dont have a buffer
2947         acquired.  Also ensure the buffer is large enough to grab the header
2948         we need on linux boxes.
2949
2950 2008-01-22  Jonathan Pobst  <monkey@jpobst.com>
2951
2952         * Control.cs: Implement a custom enumerator so people can delete
2953         from the Controls collection while in a foreach.
2954         [Fixes bug #355074]
2955
2956 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
2957
2958          * PropertyGridView.cs: Fix focusing behavior:
2959          - Tab should focus the grid text box.
2960          - Clicking on the labels shouldn't focus the grid text box.
2961
2962 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
2963
2964          * PropertyGridView.cs: IsValueTypeGridItem should return true 
2965          for Arrays as well.
2966
2967 2008-01-22  Ivan N. Zlatev  <contact@i-nz.net>
2968
2969          * PropertyGrid.cs, GridEntry.cs, PropertyGridView.cs:
2970           - Renamed GridEntry.SelectedObjects to TargetObjects to better
2971           reflect the property name role.
2972           - PropertyGrid.GetTarget is not required as the target is known
2973           (TargetObjects).
2974           - Setting values will handle value types as a special case now and
2975           populate them up in the chain.
2976           [Fixes #354990]
2977
2978 2008-01-21  Jonathan Pobst  <monkey@jpobst.com>
2979
2980         * Hwnd.cs: Create a public property for the Graphics we keep around.
2981
2982 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
2983
2984          * PropertyGridView.cs: Just hide the grid textbox and do nothing more 
2985          when the current object selection changes. 
2986          Fixes failing test SelectedObject_Null2.B5.
2987
2988 2008-01-21  Ivan N. Zlatev  <contact@i-nz.net>
2989
2990          * PropertyGrid.cs: Process Browsable properties with 
2991          DesignerSerializationVisibilityAttribute.Content as being expandable.
2992          This seems also what MS does. Without this e.g SplitContainer.Panel1/2
2993          will not be expandable. We should be nested components-friendly now.
2994
2995 2008-01-21  Andreia Gaita <avidigal@novell.com>
2996
2997         * WebBrowserBase.cs: Check if control was loaded properly, 
2998         don't bind if it wasn't.
2999
3000         * HtmlDocument.cs: Implement CreateElement, Equals, Focus, 
3001         GetElementFromPoint, equality operators, OpenNew, Write.
3002         Remove extra set_Body
3003
3004 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
3005
3006         * ContainerControl.cs, Control.cs: Apply patch from James Purcell
3007         that makes our AutoScale* stuff more tolerant to different orders
3008         of being set.  [Fixes bug #354669]
3009
3010 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
3011
3012          * PropertyGridView.cs, PropertyGridTextBox.cs: 
3013          Drop WM_LBUTTONDOWN msg sending and use focusing instead.
3014          [Fixes #339005 and #348209]
3015
3016 2008-01-18  Ivan N. Zlatev  <contact@i-nz.net>
3017
3018          * PropertyGridView.cs: Hide the grid text box before adjusting it
3019          for the newly selected GridItem.
3020          [Fixes #338999]
3021
3022 2008-01-18  Jonathan Pobst  <monkey@jpobst.com>
3023
3024         * Form.cs: Give MDI children the opportunity to cancel the parent form
3025         attempting to close.  Ensure that all [Form]Clos[ing,ed] events get called
3026         properly for both the parent and child.
3027         * Application.cs: Signature of internal method changed, pass the previous
3028         default of false.
3029         [Fixes bug #354286]
3030
3031 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
3032
3033         * PropertyGridView.cs: Set the property value only if it has changed.
3034         [Fixes bug #338997]
3035
3036 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
3037
3038         * MenuAPI.cs: Windows sends us MOUSEMOVE messages when any key is pressed.
3039         If the mouse hasn't actually moved, ignore these messages so the currently
3040         highlighted menuitem isn't reset to the one under the mouse.
3041         [Fixes bug #333668]
3042
3043 2008-01-17  Ivan N. Zlatev  <contact@i-nz.net>
3044
3045         * PropertyGridView.cs: When the property changes Invalidate the GridItem
3046         in order for the properties with UITypeEditor.GetPaintValueSupported == true
3047         to reflect the change visually.
3048         [Fixes bug #338998]
3049
3050 2008-01-17  Jonathan Pobst  <monkey@jpobst.com>
3051
3052         * ButtonBase.cs: Add LineLimit to 1.1 button drawing, and TextBoxControl
3053         to 2.0 button drawing.
3054         * ThemeWin32Classic.cs: Ensure that the rectangle we are using to draw 
3055         the button text is tall enough for one line.  LineLimit says it will
3056         always draw at least one line, but it is a lie.
3057         [Fixes bug #324941]
3058
3059 2008-01-17  Atsushi Enomoto  <atsushi@ximian.com>
3060
3061         * XplatUIStructs.cs, X11Keyboard.cs :
3062           added some more VK_* keys to be handled.
3063
3064 2008-01-16  Andreia Gaita <avidigal@novell.com>
3065
3066         * Control.cs: Check if there is a container before setting or getting
3067         the validation flag.
3068
3069 2008-01-16  Andreia Gaita <avidigal@novell.com>
3070
3071         * ContainerControl.cs: Add flag to track if a control cancels validation, 
3072         so we don't fire click events.
3073
3074         * Control.cs: 
3075         - (HandleClick) Check if validation was cancelled before  firing the click
3076         events (doubleclicks are fired, but not clicks)
3077         - (WmLButtonDown) Reset validation flag. The flag is normally reset on 
3078         ContainerControl.set_ActiveControl, but in the case of non-selectable
3079         controls, like a Label, activecontrol is not set. 
3080
3081         * ButtonBase.cs: Only fire clicks if validation passes.
3082         
3083         Fixes #353310
3084
3085 2008-01-16  Geoff Norton  <gnorton@novell.com>
3086
3087         * XplatUICarbon.cs: Implement GetAutoScaleSize to fix Reflector on
3088         trunk
3089
3090 2008-01-16  Jonathan Pobst  <monkey@jpobst.com>
3091
3092         * FolderBrowserDialog.cs: If we cannot interpret the user's requested
3093         SelectedPath, just display the default dialog instead of crashing.
3094         [Fixes bug #348989]
3095
3096 2008-01-16  Geoff Norton  <gnorton@novell.com>
3097
3098         * XplatUICarbon.cs:  Flicker be gone!  Generate our messages in
3099         AddExpose instead of trusting apples compositing manager which doesn't
3100         work for our use case.  Remove some dead code causing warnings and 
3101         redecorate some other code to prevent warnings.
3102
3103 2008-01-16  Geoff Norton  <gnorton@novell.com>
3104
3105         * XplatUICarbon.cs:  Avoid some unecessary invalidation calls when
3106         carbon signals us to redraw.  Fixes another portion of the flickering bug
3107
3108 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
3109
3110         * Form.cs: Prevent the MdiParent property to be set when value is the same
3111         as value already set. Fixes bug #328019.
3112
3113 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
3114
3115         * Form.cs: Don't set mdi_parent as null when mdi window close is prevented, 
3116         it prevents NRE when closing mdi child windows. Fixes bug #325211.
3117
3118 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
3119
3120         * InternalWindowManager.cs: Invalidade close button after mouse up when 
3121         mdi form is prevented to close.
3122
3123 2008-01-16  Everaldo Canuto  <ecanuto@novell.com>
3124
3125         * MdiClient.cs: Fix the minimum bounds on child window sizes when cascade,
3126         thanks to Andy Hume. Fixes bug #325433.
3127
3128 2008-01-16  Andreia Gaita <avidigal@novell.com>
3129
3130         * LinkLabel.cs: Reset focused_index when resellecting the control.
3131         Fixes #323190
3132
3133 2008-01-15  Geoff Norton  <gnorton@novell.com>
3134
3135         * XplatUICarbon.cs:  Rework Grab/Ungrab handling to send some needed 
3136         messages.
3137
3138 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
3139
3140         * Form.cs: Change 2 more AutoScaleBaseSize calculation to round instead
3141         of truncate.
3142
3143 2008-01-15  Jonathan Pobst  <monkey@jpobst.com>
3144
3145         * ContainerControl.cs: Setting AutoScaleMode to anything should set
3146         Form.AutoScale to false.
3147         * Form.cs: Setting AutoScale to true should set AutoScaleMode to None.
3148         AutoScaleBaseSize should be changed on Font change unless it has been
3149         explicitly set.
3150         [Fixes bug #353827]
3151
3152 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
3153
3154         * MenuAPI.cs: On instance of MenuTracker check if source control is
3155         ToolStripOverflow and use properly method to find form.
3156         [Fixes bug #338511]
3157
3158 2008-01-15  Everaldo Canuto  <ecanuto@novell.com>
3159
3160         [Fixes bug #323241 Transparent toolbar support]
3161
3162         * ToolBar.cs: Define ToolBarStyles.TBSTYLE_FLAT in CreateParams when toolbar
3163         is flat.
3164
3165         * Control.cs: Paint background as transparent in case of TBSTYLE_FLAT is
3166         defined in control style to mimic win32 behavior.
3167
3168         * ThemeWin32Classic.cs: Don't paint background for flat apparence toolbar, 
3169         it will be transparent.
3170
3171 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
3172
3173         * XplatUIStructs.cs: Implement ToolBarStyles to use in Style property of
3174         CreateParams for ToolBar controls.
3175
3176 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
3177
3178         * Form.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs: Forms with
3179         FixedToolWindow, SizeableToolWindow, or None for border styles have
3180         different minimum sizes than regular forms.  Implemented to fix
3181         regression in PDN with toolbox being too wide.
3182
3183 2008-01-14  Andreia Gaita <avidigal@novell.com>
3184
3185         * HtmlElementCollection.cs: Implemented
3186
3187         * HtmlElement.cs: Implemented:
3188           - All
3189           - InnerHtml
3190           - InnerText
3191           - Id
3192           - Name
3193           - FirstChild
3194
3195         * HtmlDocument.cs: Implemented GetElementsByTagName.
3196
3197 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
3198
3199         * Screen.cs: Stub BitsPerPixel to always return 32.
3200
3201 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
3202
3203         * Form.cs: Implement RestoreBounds.
3204
3205 2008-01-14  Jonathan Pobst  <monkey@jpobst.com>
3206
3207         * RichTextBox.cs, ToolStrip.cs: Fix some typos pointed out by
3208         Sebastien and his fabulous magical problem-finding machine:
3209         Gendarme.  Also put a MonoTodo on AutoWordSelect since we don't
3210         respect the value set.
3211
3212 2008-01-14  Everaldo Canuto  <ecanuto@novell.com>
3213
3214         * Form.cs: In WmWindowPosChanged call base.WndProc including when state is
3215         minimized. Fixes bug #325122 for Win32. Thanks  Srikanth Madikeri.
3216
3217 2008-01-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3218
3219         * X11Dnd.cs: Since we don't propagate the WM_LBUTTONUP/WM_RBUTTONUP
3220         messages (to match .Net), we need to remove the capture ourselves.
3221
3222 2008-01-11  Jonathan Pobst  <monkey@jpobst.com>
3223
3224         * MenuAPI.cs: If we get an Alt-F4, release our capture so Windows
3225         will process the message and close our window.
3226         [Fixes bug #324328]
3227
3228 2008-01-10  Geoff Norton  <gnorton@novell.com>
3229
3230         * XplatUICarbon.cs:  Clip the Graphics context to the invalid area
3231         tracked in the Hwnd.  Only invalidate the dirty region to the Carbon
3232         window manager.
3233
3234 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
3235
3236         * Form.cs: Enforce the Form minimum size in SetBoundsCore.  Fixed
3237         failing test.
3238
3239 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
3240
3241         * XplatUIX11.cs: Set a minimum window size and enforce it.  Even though
3242         Linux doesn't care, having a minimum matches MS and keeps the window
3243         from becoming too small to use window decorations.
3244         [Fixes bug #338996]
3245
3246 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
3247
3248         * ThemeWin32Classic.cs: Tie CheckBox/RadioButton focus rectangles to
3249         ShowFocusCues.  Make focus rectangles fit the text instead of the whole
3250         control.  [Fixes bug #325419]
3251
3252 2008-01-10  Jonathan Pobst  <monkey@jpobst.com>
3253
3254         * ComboBox.cs: Guard against an NRE if the user open a new form from a
3255         SelectedIndexChanged event.  This closes the combobox dropdown, and we
3256         were trying to dispose it.  [Fixes bug #352830]
3257
3258 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
3259
3260         * Control.cs, Form.cs: Implement the necessary semantics for
3261         ShowFocusCues.  All paint code will need to check Control.ShowFocusCues
3262         to determine if a focus rectangle should be drawn.
3263         * PropertyGrid.cs: Fix property visibility to match override.
3264         * ThemeWin32Classic.cs: Use ShowFocusCues for Button.
3265
3266 2008-01-09  Jonathan Pobst  <monkey@jpobst.com>
3267
3268         * Application.cs: Use GetCommandLineArgs to calculate ExecutablePath.
3269         [Fixes bug #323552]
3270
3271 2008-01-09  Geoff Norton  <gnorton@novell.com>
3272         
3273         * XplatUICarbon.cs: Scroll windows in the correct direction.
3274
3275 2008-01-09  Geoff Norton  <gnorton@novell.com>
3276
3277         * XplatUICarbon.cs: Track all created utility windows so we can hide them
3278         when the app is deactivated or spaces is enabled.
3279
3280 2008-01-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3281
3282         * ListViewItem.cs: Cosmetic fix - When calculating layout for item, don't add an
3283         extra separation pixel for the label rect origin if SmallImageList is
3284         null, and thus we don't need that separation between icon and label
3285         rects.
3286         Patch by Ernesto Carrea.
3287         Fixes # 340195.
3288
3289 2008-01-08  Jonathan Pobst  <monkey@jpobst.com>
3290
3291         * StatusStrip.cs: Invalidate after completing a layout.  The base
3292         OnLayout does this, but we don't call the base.
3293         * ToolStripItem.cs: Revert the previous change to invalidate after
3294         the item moves.
3295         [Fixes bug #351341 better.]
3296
3297 2008-01-07  Geoff Norton  <gnorton@novell.com>
3298
3299         * XplatUICarbon.cs:  WM_DESTROY is a teardown of a single window
3300         not a notification to exit the application.  Listen for WM_QUIT
3301         instead.
3302
3303 2008-01-07  Andreia Gaita <avidigal@novell.com>
3304
3305         * HtmlDocument.cs: Fix case on GetElementById (interface changed)
3306
3307 2008-01-07  Jonathan Pobst  <monkey@jpobst.com>
3308
3309         * ToolStripItem.cs: If the bounds of an item changes, invalidate it
3310         so it can repaint at the correct location.
3311         [Fixes bug #351341]
3312
3313 2008-01-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3314
3315         * ListControl.cs: SelectedValue should return a null value if
3316         SelectedIndex is -1. Also, when setting it, it should throw an
3317         ArgumentNullException if the value is null, as well as taking
3318         into account the String.Empty value, instead of ignoring it (we have
3319         tests for that now).
3320         Fixes part of #324286.
3321
3322 2008-01-06  Jonathan Pobst  <monkey@jpobst.com>
3323
3324         * TextBoxBase.cs, TextControl.cs: Patch from Luke Page to ensure
3325         SelectionStart is updated after pressing enter.  Fixes bug #351918.
3326
3327 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
3328
3329         * TextControl.cs: Revert a piece r92316 that prevented the fix
3330         from working when there were multiple tags in the text box.
3331         Fixes bug #351881.
3332
3333 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
3334
3335         * TextControl.cs: Apply patch from Luke Page that prevents an
3336         NRE when determining the beginning of a paragraph.
3337         Fixes bug #351886.
3338
3339 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
3340
3341         * TextBoxBase.cs: Apply patch from Luke Page that ensures the
3342         caret gets moved with clicking away from a selected block of
3343         text.  Fixes bug #351885.
3344
3345 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
3346
3347         * TextControl.cs: Apply patch from Luke Page that takes line
3348         alignment into account for mouse selection, so that center and
3349         right aligned text can be selected.
3350         Fixes bug #351881.
3351
3352 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
3353
3354         * RichTextBox.cs: Apply patch from Luke Page that fixes some caret
3355         issues after loading an RTF file by using the correct line feeds.
3356         Fixes bug #351841.
3357
3358 2008-01-05  Jonathan Pobst  <monkey@jpobst.com>
3359
3360         * TextControl.cs: When deleting multiple line selections, we need
3361         to invalidate every line beginning at the first line of the selection.
3362         Patch from Luke Page fixes bug #351791.
3363
3364 2008-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3365
3366         * ListControl.cs: When getting a CurrencyManager.PositionChanged
3367         event, don't set SelectedIndex if the number of items is 1. This is
3368         because, for the first item, PositionChanged is fired _before_
3369         ItemChanged (the place where we actually populate the items), and
3370         leave us in a temporary invalid state (since items collection is
3371         empty).
3372         Fixes #349655.
3373
3374 2008-01-04  Geoff Norton  <gnorton@novell.com>
3375
3376         * XplatUICarbon.cs:  Create native toolwindows instead of
3377         the managed drawing ones.
3378
3379 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
3380
3381         * LineTag.cs: If the line doesn't have any characters, return
3382         0 for GetCharIndex.  Fixes an AOORE exception after certain
3383         caret movements.  Fixes bug #351683.  Patch by Luke Page.
3384
3385 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
3386
3387         * TextBoxBase.cs: Apply patch from Luke Page so when backspace
3388         is hit when there is selected text, only the selected text gets
3389         deleted, not the character in front of the selection as well.
3390         Fixes bug #351578.
3391
3392 2008-01-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3393
3394         * ComboBox.cs: When the values are displayed, calculate the
3395         ComboListBox scrollbar's LargeChange based on the visible area's
3396         height and  the actuall ItemHeight, instead of calculating it
3397         based on MaxDropItems value, since it's not used by our _current_ 
3398         2.0 profile.
3399         Fixes #332366.
3400
3401 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
3402
3403         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
3404         Patch from Luke Page that fixes issues with font colors and styles
3405         not showing up in a readonly RichTextBox.  Fixes bug #324354.
3406
3407 2008-01-03  Jonathan Pobst  <monkey@jpobst.com>
3408
3409         * Line.cs, RichTextBox.cs, TextControl.cs: Another awesome patch
3410         from Luke Page.  This one fixes bug #349926.
3411
3412 2007-12-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3413
3414         * CurrencyManager.cs: Actually fire the 2.0 ListChanged event when
3415         an item in the IBindingList source changes with
3416         ListChangedType.ItemAdded. Ignore for now firing the event for other
3417         changes, since we want to have tests for those cases as well.
3418
3419 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
3420
3421         * TextBoxBase.cs: Don't store a 1x1 Bitmap for every TextBox
3422         created.
3423
3424 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
3425
3426         * TextBoxTextRenderer.cs: Implement a cache for measuring each
3427         character.  This is effective because the typical usage of a
3428         TextBox is with a limited amount of fonts and characters, and
3429         the current implementation of TextBox measures everything one
3430         character at a time.  Another second or two speedup for bug #347238.
3431
3432 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
3433
3434         * Control.cs: Rewrite the Font getter to only query the parent's
3435         Font property once instead of twice.  Since this operation is
3436         recursive, the queries were growing exponentially as the control
3437         tree got deeper.  Another second or two speedup for bug #347238.
3438
3439 2007-12-28  Jonathan Pobst  <monkey@jpobst.com>
3440
3441         * Control.cs: Avoid setting a parent (and more importantly, updating
3442         the zorder of all its children) if the parent is already correct in
3443         WmShowWindow.  Decreases the startup time of the test case on bug
3444         #347238 from 35 seconds to 11 seconds.
3445
3446 2007-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3447
3448         * X11Dnd.cs: When the dnd operation has started and we are 
3449         in the dnd loop, don't dispatch either WM_LBUTTONUP nor WM_RBUTTONUP.
3450         This is done to match .Net, which doesn't send those messages after
3451         dnd operation was completed/cancelled.
3452         Fixes #349922.
3453
3454 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
3455
3456         * ToolStrip.cs: Previous change should be != null, not == null.
3457         Thanks Gert!
3458
3459 2007-12-27  Jonathan Pobst  <monkey@jpobst.com>
3460
3461         * ToolStrip.cs: Guard against an NRE after ItemClicked is called, the
3462         user may have moved the mouse off the current item during the event.
3463
3464 2007-12-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3465
3466         * ListView.cs: In ItemControl.ItemsMouseMove, try to avoid
3467         calling GetItemAt for every MouseMove event by also taking into
3468         account whether any mouse button is pressed (probably dragging); 
3469         if so, we can call GetItemAt, and if not, try to not call it 
3470         (GetItemAt can be quite expensive when used with a large number of items).
3471
3472 2007-12-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3473
3474         * ListView.cs: Implement -finally- support for dnd, by calling
3475         OnItemDrag as needed. Also, remove the dnd TODO, and add myself to the
3476         authors list ;-).
3477         * ListViewInsertionMark.cs: Implement NearestIndex method, by doing a
3478         simple calculation of distances for all the items in the owner
3479         listview.
3480
3481 2007-12-21  Geoff Norton  <gnorton@novell.com>
3482
3483         * XplatUICarbon.cs:  Ensure that we create WindowMapping handles
3484         for windows that are originally created as invisible.  Fixes missing
3485         main window in paint-mono.
3486
3487 2007-12-21  Geoff Norton  <gnorton@novell.com>
3488
3489         * XplatUICarbon.cs:  Register our D&D handler.  Register our custom
3490         subclass handler for com.novell.mwfview subclassing HIView.  Implement
3491         Pasteboard and Dnd methods.
3492
3493 2007-12-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3494
3495         * ListBox.cs: When we got focus, give focus to first item if there
3496         wasn't any pervious focused item. Also update navigation to depend on
3497         SelectedIndex rather than FocusedItem, just as .Net does.
3498         Fixes #349174.
3499
3500 2007-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3501
3502         * ListBox.cs: Both FindString and FindStringExact methods must do an
3503         case insensitive search, should allow the last valid index to be
3504         passed in the overload taking an initial index, and should also
3505         continue searching from the top back to the specified index when it
3506         reaches the bottom.
3507
3508 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
3509
3510         * TextControl.cs: Apply patch from Luke Page that fixes a scrolling
3511         redraw issue, and allows RichTextBox to draw colored text even while
3512         disabled or readonly.
3513
3514 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
3515
3516         * RichTextBox.cs, TextBoxBase.cs: Apply patch from Luke Page that
3517         disallows cut/paste in a readonly textbox, adds support for Shift-Insert,
3518         and doesn't grey text in a disabled RichTextBox.
3519
3520 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
3521
3522         * RichTextBox.cs: Apply patch from Luke Page that adds better support
3523         for many RTF commands: quad alignment, separate formatting for blocks
3524         inside groups, and ParDef support.  Makes the test case from bug #324589
3525         look much better.
3526
3527 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
3528
3529         * LineTag.cs: Fix an error in the new Draw method that caused
3530         a crash when rendering the document on bug #324589.
3531
3532 2007-12-19  Jonathan Pobst  <monkey@jpobst.com>
3533
3534         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs,
3535         TextControl.cs: Apply patch from Luke Page that adds support
3536         for URL links in RichTextBox.
3537         [Fixes enhancement #342516]
3538
3539 2007-12-18  Everaldo Canuto  <ecanuto@novell.com>
3540
3541         * MenuItem.cs: When cloning menuitem clone also name and tag properties for
3542         2.0 profile. Thanks Ernesto Carrea and Luke Page. Fixes bug #340289.
3543
3544 2007-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3545
3546         * ListBox.cs: When a key gets pressed, try to find a string
3547         if the key is a character or a digit.
3548         Fixes #343971.
3549
3550 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
3551
3552         * TableLayoutPanel.cs: Remove some unused variables.
3553
3554 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
3555
3556         * DateTimePicker.cs: Commit patch from Luke Page that ensures
3557         we don't end up at an invalid date when we click the up/down
3558         spinner to change the month or year.  Fixes bug #348682.
3559
3560 2007-12-17  Jonathan Pobst  <monkey@jpobst.com>
3561
3562         * Application.cs: Calling Exit in 2.0 should chain to the
3563         Exit (CancelEventArgs) version so it can be cancelled.
3564         * Form.cs: Create a flag to allow raising the Closing
3565         events to be skipped.  We raise them once in Application.Exit
3566         and don't want to raise them again when the Form is actually
3567         closed.  [Fixes bug #349073]
3568
3569 2007-12-16  Jonathan Pobst  <monkey@jpobst.com>
3570
3571         * ToolStripDropDown.cs: Guard against an NRE when there
3572         hasn't been a mainform set in the application context.
3573         [Fixes bug #349108]
3574
3575 2007-12-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3576
3577         * ListBox.cs: When SetBoundsCore gets called, besides
3578         calling UpdateScrollBars, update the value of
3579         last_visible_index, since we could need to show more items
3580         than before, and we need to let the paint routines know that.
3581         Fixes #344445.
3582
3583 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3584
3585         * ListView.cs: Add DesignerSerializationVisibility attribute to
3586         InsertionMark property.
3587         * ListViewItem.cs: Add same attribute to Position property.
3588
3589 2007-12-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3590
3591         * ListViewItem.cs: .ctor (SerializationInfo, StreamingContext)
3592         is 2.0 only.
3593
3594 2007-12-14  Jonathan Pobst  <monkey@jpobst.com>
3595
3596         * ThemeWin32Classic.cs: Don't draw the background on a
3597         flat button if there is a background image.
3598         [Fixes bug #348649]
3599
3600 2007-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3601
3602         * ListBox.cs: If we remove the item currently selected,
3603         remove it not only from SelectedItems, but also
3604         resetting selected_index. Moreover, set focused_item to Items.Count - 1 if 
3605         the items count decreased and focused_item has bigger value than that.
3606
3607 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
3608
3609         * Control.cs: Perform our layout after we resize ourselves
3610         if we had to adjust our AutoSize.  Missed commit for bug
3611         #346246.
3612
3613 2007-12-13  Jonathan Pobst  <monkey@jpobst.com>
3614
3615         * TableLayoutPanel.cs: Override GetPreferredSizeCore so
3616         we can provide an implementation of AutoSize.
3617         [Fixes bug #346246]
3618
3619 2007-12-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3620
3621         * ListBox.cs: Add the internal overload Sort (bool paint),
3622         to indicate whether we actually need a paint or we will
3623         call Refresh ourselves. This way we don't request a paint
3624         _before_ having an updated and valid layout.
3625         Fixes #347233.
3626
3627 2007-12-12  Andreia Gaita <avidigal@novell.com>
3628
3629         * XPlatUIX11.cs: Send paint messages when updating a systray icon
3630         * NotifyIcon.cs: Invalidate the window before doing a systray change so it is
3631         properly invalidated. 
3632         Fixes #324237
3633
3634 2007-12-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3635
3636         * ListViewItem.cs: When using a .ctor taking a ListViewGroup,
3637         don't simply assign it to our internal group field, but instead 
3638         use our Group property, which should do all the neccessary work
3639         required to support groups. Fixes an issue reported to me (mail) by a 
3640         guy using this new feature.
3641
3642 2007-12-11  Jonathan Pobst  <monkey@jpobst.com>
3643
3644         * Control.cs: Use Scale instead of ScaleControl to ensure the
3645         whole hierarchy gets scaled.
3646         [Fixes bug #347282]
3647
3648 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
3649
3650         * DateTimePicker.cs: Don't set the internal MonthCalendar's
3651         Parent property.  Doing this causes the control to be hosted by
3652         the Form instead of being a popup window.
3653         [Fixes bug #347665]
3654
3655 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
3656
3657         * ToolStripItemCollection.cs: If we try to insert a ToolStripItem
3658         at an index higher than Count, just use Add instead of Insert.
3659         [Fixes bug #347669]
3660
3661 2007-12-10  Jonathan Pobst  <monkey@jpobst.com>
3662
3663         * ThemeWin32Classic.cs: Don't draw a PictureBox's background in
3664         DrawPictureBox, this is handled by Control.PaintBackground.
3665         [Fixes bug #347276]
3666
3667 2007-12-10  Everaldo Canuto  <ecanuto@novell.com>
3668
3669         * MenuAPI.cs: When process menu keys return true by default only if menu is
3670         active. Fixes bug #342892.
3671
3672 2007-12-09  Andreia Gaita <avidigal@novell.com>
3673
3674         * Control.cs: check if windows are actually mapped before
3675         trying to zorder. Fixes #342509, #346955
3676
3677 2007-12-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3678
3679         * ListView.cs:
3680         * ListViewInsertionMark.cs:
3681         * ThemeWin32Classic.cs: Implement the drawing side of the
3682         new 2.0 ListView.InsertionMark property.
3683
3684 2007-12-07  Jonathan Pobst  <monkey@jpobst.com>
3685
3686         * CurrencyManager.cs: Silence some debug spew.
3687
3688 2007-12-07  Geoff Norton  <gnorton@novell.com>
3689         
3690         * Hwnd.cs: Refactor GetClippingRectangles to suppose returning the
3691         masks for our children as well as siblings to avoid having to query
3692         Quartz for this information.
3693         * XplatUICarbon.cs: Implement a delegate based system to pass
3694         information to System.Drawing.  Implement Async methods.  Remove
3695         the hack for the resize thumb and imlpement a transparent Grow Box.
3696         Rework the messaging system to proplery create window's and messages,
3697         fixes TabControl.
3698
3699 2007-12-06  Andreia Gaita <avidigal@novell.com>
3700
3701         * X11Keyboard.cs: Use Xutf8LookupString to support international 
3702         characters under alternate codepages. Patch from #340878
3703
3704 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3705
3706         * ListView.cs: When doing layout computations, set position in the
3707         ListView instances (we cache the position just as .Net does).
3708         * ListViewItem.cs: New internal setter method for Position. Also set
3709         position field as also available in 1.1, since we are going to use it
3710         now in the common case.
3711
3712 2007-12-06  Andreia Gaita <avidigal@novell.com>
3713
3714         * Control.cs: When removing controls, get the actual container
3715         to notify about active control changes. Fixes 341314.
3716
3717 2007-12-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3718
3719         * ListViewItem.cs: Forgot to add Font to our serialization stuff.
3720
3721 2007-12-05  Andreia Gaita <avidigal@novell.com>
3722
3723         * Control.cs: When updating the zorder, ignore windows that are not
3724         mapped. Fixes #342509
3725
3726 2007-12-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3727
3728         * ListViewItem.cs: Actually implement serialization on this class.
3729
3730 2007-12-05  Gert Driesen  <drieseng@users.sourceforge.net>
3731
3732         * LinkLabel.cs: Fixed paramname of ArgumentNullException in ctor of
3733         LinkCollection. Spaces to tabs, and removed extra tabs.
3734
3735 2007-12-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
3736
3737         * XplatUIX11.cs: Make toolwindows' decorations show up without causing any
3738           tests to fail (hopefully).
3739
3740 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
3741
3742         * ToolStripDropDownMenu.cs: Fill in AffectedBounds when drawing
3743         the image margin so custom renderers can correctly place it.
3744
3745 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
3746
3747         * StatusStrip.cs: Fill in AffectedBounds when drawing the grip
3748         so custom renderers can correctly place it.
3749
3750 2007-12-03  Jonathan Pobst  <monkey@jpobst.com>
3751
3752         * Application.cs: Let WM_CHAR messages flow through to controls
3753         hosted in Strips.  [Fixes bug #343972]
3754
3755 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
3756
3757         * ToolStripManager.cs: Guard against an NRE I ran into.
3758
3759 2007-12-02  Jonathan Pobst  <monkey@jpobst.com>
3760
3761         * LinkLabel.cs: Apply patch from George to fix bug 344012.  If
3762         a Link is manually added to the Links collection, we need to set
3763         its owner, so it can invalidate properly.
3764         [Fixes bug #344012]
3765
3766 2007-11-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3767
3768         * ListView.cs: When changing ListViewItem.Position (which calls
3769         ListView.ChangeItemLocation), invalidate not only the area
3770         corresponding to the main item, but also to the area occupied
3771         by the items being moved.
3772
3773 2007-11-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3774
3775         * ListView.cs: When changing the position of a given item,
3776         don't use item bounds, but item areas (which includes the item spacing
3777         between them). Also, use first/last position if the requested
3778         position is outside bounds (as .Net does). Invalidate the previous and
3779         new bounds. Finally, in ItemControl.ItemsMouseDown use the actual item
3780         in a specific position, instead of directly accessing Items collection
3781         (this is done to get the right item - remember an Item can have a
3782         different position in the grid than in the Items collection).
3783
3784 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
3785
3786         * MessageBox.cs: Calculate text area instead of just top left, this rect 
3787         area will be used in DrawString. Fixes bug #343364.
3788
3789 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
3790
3791         * MessageBox.cs: Calculate max amount for text area width, it must be 60% of
3792         screen width. Partially fixes bug #343364.
3793
3794 2007-11-23  Everaldo Canuto  <ecanuto@novell.com>
3795
3796         * NotifyIcon.cs: Remove duplicated code before call realculate and put this
3797         code inside recalculate, it makes code more simple.
3798
3799 2007-11-22  Everaldo Canuto  <ecanuto@novell.com>
3800
3801         * NotifyIcon.cs: When recalculate icon verify if icon is active to decide
3802         between update or add icon. Fixes bug #324344.
3803
3804 2007-11-21  Andreia Gaita <avidigal@novell.com>
3805
3806         * XPlatUIX11.cs: Do not treat tool windows as if they have no 
3807         window manager, since that stretches the drawing area to include
3808         the window decorations, and they get hidden. Reverts r84444 and fixes
3809         #335849 and #342790 (mdi and pdn3 regression)
3810
3811 2007-11-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3812
3813         * ListView.cs: When setting focused item, try to give focus to the
3814         previous one _only_ if the previous one remains valid. 
3815         Fixes #342504.
3816
3817 2007-11-20  Jonathan Pobst  <monkey@jpobst.com>
3818
3819         * Application.cs: Revert r89650, as it broke a common case to fix
3820         an obscure case.  Fixes bug #342606.
3821
3822 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
3823
3824         * ThemeWin32Classic.cs: Fix extra space on end of tooltip.
3825
3826 2007-11-20  Everaldo Canuto  <ecanuto@novell.com>
3827
3828         * ThemeWin32Classic.cs: Fix tooltip text align removing horizontal 
3829         alignment. [Fixes #324228]
3830
3831 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
3832
3833         * ToolStrip.cs: Handle flow layout in GetPreferredSize to fix PDN3.
3834         [Fixes bug #342123]
3835
3836 2007-11-19  Everaldo Canuto  <ecanuto@novell.com>
3837
3838         * Form.cs: Check for empty Text before assign to cp.Caption in CreateParams
3839         it prevent problems when empty captions. [Fixes #342141]
3840
3841 2007-11-19  Jonathan Pobst  <monkey@jpobst.com>
3842
3843         * Label.cs: Use Size instead of None.  Fixes bug #342077.
3844
3845 2007-11-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3846
3847         * ListViewItem.cs: Implement 2.0 FindNearestItem method.
3848
3849 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
3850
3851         * MenuStrip.cs: Guard against a NRE when a MdiWindowItem is set
3852         but there isn't a MdiContainer.
3853         [Fixes bug #342358]
3854
3855 2007-11-17  Jonathan Pobst  <monkey@jpobst.com>
3856
3857         * TextControl.cs: Don't recalculate document if the recalc_start and
3858         recalc_end hasn't changed.
3859         [Fixes bug #342505]
3860
3861 2007-11-17  Gert Driesen  <drieseng@users.sourceforge.net>
3862
3863         * DataGridViewTextBoxCell.cs: Removed CWL.
3864
3865 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3866
3867         * ListView.cs: Implement 2.0 SearchForVirtualItem event support.
3868
3869 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
3870
3871         * TextControl.cs: Missed some code for bug 341534 to trigger a
3872         recalculation when the font changes.
3873
3874 2007-11-16  Andreia Gaita <avidigal@novell.com>
3875
3876         * Control.cs: When updating the zorder, check if the child to update is
3877         the same control that is set to always be on top (i.e., scrollbars), and 
3878         just put it on top directly. Fixes BadMatch error on pdn3
3879
3880 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3881
3882         * ListView.cs: Throw the needed exceptions for FindNearestItem.
3883
3884 2007-11-16  Jonathan Pobst  <monkey@jpobst.com>
3885
3886         * Control.cs: Don't perform a new layout when a label changes its text,
3887         cause label handles its own autosizing.
3888         [Fixes bug #342077]
3889
3890 2007-11-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3891
3892         * ListView.cs: Implement 2.0 FindNearestItem methods.
3893
3894 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
3895
3896         * ToolStripPanel.cs: Make Join at least add the control to the panel,
3897         even if the rest of what Join does isn't supported.  Add some more
3898         support for vertical toolbars.
3899         * ToolStripPanelRow.cs: Add some more support for vertical toolbars.
3900         [Fixes the application breaking parts of bug #341998]
3901
3902 2007-11-15  Jonathan Pobst <monkey@jpobst.com>
3903
3904         * ToolStripItem.cs: When determining if we have a check/image margin,
3905         we need to look at ShowCheckMargin as well as ShowImageMargin.
3906
3907 2007-11-15  Geoff Norton  <gnorton@novell.com>
3908
3909         * XplatUIOSX.cs: Rename to...
3910         * XplatUICarbon.cs: and refactor all event handling out to the new event handling
3911         system in System.Windows.Forms.CarbonInternal.  Lots of code cleanup as well.
3912
3913 2007-11-15  Jonathan Pobst  <monkey@jpobst.com>
3914
3915         * KeysConverter.cs: The default values should be an array of Keys, not
3916         strings.  Also, the array has more values for 2.0.
3917         [Fixes bug #341851]
3918
3919 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
3920
3921         * Application.cs: Change ExecutablePath to use 
3922         Process.GetCurrentProcess ().MainModule.FileName instead of Assembly.GetEntryAssembly.
3923         [Fixes bug #323552]
3924
3925 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
3926
3927         * LineTag.cs: Don't attempt to draw '\r', treat it like it doesn't exist.
3928         When measureing CR or LF, use /u000D instead of /u0013. (Hex, not decimal.)
3929         * TextControl.cs: Fix a case in GetLineEnding where a \n before a \r would
3930         be ignored.  Create a new GetLineEnding that can specify which types of
3931         line endings to look for.  On Insert, only create new lines for \n and \r\n.
3932         [Fixes bug #324274]
3933
3934 2007-11-14  Jonathan Pobst  <monkey@jpobst.com>
3935
3936         * TextBoxBase.cs: As we loop through each line changing the font, tell
3937         the document that the line needs to be recalculated.  Fixes bug #341534.
3938
3939 2007-11-13  Jonathan Pobst  <monkey@jpobst.com>
3940         [Another round of refactoring]
3941         * Line.cs: Add DeleteCharacters.
3942         * LineTag.cs: Add Delete.
3943         * TextBoxBase.cs: Update to use new methods.
3944         * TextControl.cs: Refactor the Delete* methods.
3945
3946 2007-11-13  Everaldo Canuto  <ecanuto@novell.com>
3947
3948         * Win32DnD.cs: Implement Win32 Drop files, thank you Srikanth Madikeri for
3949         the patch. [Fixes #324856]
3950
3951 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3952
3953         * ListView.cs:
3954         * ListViewItem.cs: Add an initial implementation of
3955         2.0 ListViewItem.Position getter.
3956
3957 2007-11-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3958
3959         * ListView.cs: Add a reordered_items_indices array, to allow us
3960         to have a different sorting than that of Items (the sorting in Items
3961         could not match the actual sorting in screen). This is needed to
3962         implement a pair of 2.0 features.
3963         * ListViewItem.cs: Add a DisplayIndex property to keep track of the
3964         actual position in the ListView grid, since it could have a position
3965         different than its Index (position in ListViewItemCollection). 
3966
3967 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
3968
3969         * Label.cs: Add StringFormatFlags.LineLimit.  This tells DrawString to
3970         not draw partial lines.
3971         * LinkLabel.cs: Change FormatFlags setter from = to |= so that the
3972         LineLimit flag from the base is preserved.
3973         Fixes the windows part of bug #338965.
3974
3975 2007-11-09  Jonathan Pobst  <monkey@jpobst.com>
3976
3977         * TextBoxBase.cs: Move handling of the enter key from KEYDOWN to CHAR
3978         so that it can be canceled in KeyPress.
3979         Fixes bug #340078.
3980
3981 2007-11-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
3982
3983         * ListView.cs: In ItemControl, reset mouse-handling related
3984         fields even if we dont' have items (we still should reset them when
3985         we had items but then called Items.Clear). Partially based in a patch
3986         by George Giolfan.
3987         Fixes #338399.
3988
3989 2007-11-08  Gert Driesen  <drieseng@users.sourceforge.net>
3990
3991         * Application.cs: In ProductVersion first try AssemblyFileVersion
3992         before falling back to assembly version. Fixes bug #339787.
3993
3994 2007-11-08  Andreia Gaita <avidigal@novell.com>
3995
3996         * HtmlElement.cs: Implement InnerText setter.
3997         * WebBrowserBase.cs: Implement Navigated event support.
3998         Add flag to track when the browser "document" is ready to be retrieved.
3999         * WebBrowser.cs: Implement CanGoBack, CanGoForward, Title, Url.
4000         Make sure browser document is ready before retrieving it.
4001         Clean up cached objects (document) when moving to a new page through
4002         any of the navigation methods.
4003         Use the new Mono.WebBrowser.INavigation interface to control navigation.
4004         Implement OnNavigated event.
4005
4006 2007-11-07  Jonathan Pobst  <monkey@jpobst.com>
4007
4008         * ThemeWin32Classic.cs: Don't draw the background in DrawLabel or
4009         DrawLinkLabel, this is handled by OnPaintBackground.
4010         Fixes bug #339565, part II.
4011
4012 2007-11-07  Andreia Gaita <avidigal@novell.com>
4013
4014         * Control.cs: Revert r88915. Selecting text on a textbox depends on
4015         getting a Select call on click, so this call needs to be here for now.
4016         Unfixes #325809
4017
4018 2007-11-07  Geoff Norton  <gnorton@novell.com>
4019
4020         * OSXStructs.cs: Add the kEventClassApplication constants.
4021         * XplatUIOSX.cs: Send a WM_LBUTTONDOWN to the Grab window when the 
4022         application is deactivated otherwise Menu overlays linger on top of
4023         other application windows.
4024
4025 2007-11-07  Geoff Norton  <gnorton@novell.com>
4026
4027         * XplatUIOSX.cs: Dont throw an exception on OverrideCursor as we
4028         dont support cursors yet anyways.  This allows Reflector to run.
4029
4030 2007-11-07  Geoff Norton  <gnorton@novell.com>
4031
4032         * XplatUIOSX.cs: Implement DragSize.
4033
4034 2007-11-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4035
4036         * ListView.cs: When we receive a WM_LBUTTONDOWN message in
4037         ItemControl, request the focus, as .Net does. This is needed after 
4038         Control does not request focus anymore when it receives a
4039         WM_LBUTTONDOWN.
4040
4041 2007-11-06  Jonathan Pobst  <monkey@Jpobst.com>
4042
4043         * Label.cs: Make DrawImage internal so it can be called from Theme code.
4044         Remove the DrawImage call from OnPaint.
4045         * LinkLabel.cs: Remove the DrawImage call from OnPaint.
4046         * ThemeWin32Classic.cs: Call DrawImage after we paint the background,
4047         but before we draw the text for DrawLabel and DrawLinkLabel.
4048         Fixes bug #339565.
4049
4050 2007-11-05  Andreia Gaita <avidigal@novell.com>
4051
4052         * Control.cs: Remove select call on click. Fixes #325809
4053
4054 2007-11-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4055
4056         * ListViewItem.cs: Add 2.0 Position property getter.
4057
4058 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4059
4060         * ListView.cs: Add 2.0 BackgroundImageTiled property.
4061         Also, to make it work properly, change item's BackColor and
4062         BackgroundImageLayout as needed.
4063         * ThemeWin32Classic.cs: Don't fill any background rectangle 
4064         in ListView.ItemControl when drawing items; just let the Control
4065         base implementation fill it.
4066
4067 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4068
4069         * ListViewGroup.cs: Adda TypeConverter attribute for this class,
4070         as well as adding a custom 'dummy' Converter, as .net does.
4071
4072 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4073
4074         * PropertyGridView.cs: When clicking drop-down button,
4075         select an index in the listbox only if our standard values collection 
4076         has one or more items.
4077
4078 2007-11-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4079
4080         * ListViewItem.cs: Add a DefaultValue attribute to 2.0 IndentCount
4081         property.
4082
4083 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
4084
4085         * PropertyGrid.cs: In PropertySort, update the toolbar buttons even if
4086         the value is not changed. This ensure a pushed button remains in that
4087         state when clicked again. When switching the value of PropertySort
4088         between Categorized and CategorizedAlphabetical, do not update the
4089         grid items and do not fire a PropertyChangedEvent. When clicking the
4090         sorting buttons, do not modify the PropertySort value when switching
4091         between Categorized and CategorizedAlphabetical but only update the
4092         button state.
4093
4094 2007-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
4095
4096         * Label.cs: Make AutoEllipsis internal on 1.0 profile. Code
4097         formatting.
4098         * PropertyGrid.cs: Also put Categorized button in pushed state when
4099         PropertySort is CategorizedAlphabetical. Set AutoEllipsis to true
4100         for help description label.
4101
4102 2007-11-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4103
4104         * ListView.cs: When calculating the biggest item for a given column,
4105         take into account 2.0 LIstViewItem.IndentCount, since it directly affects
4106         the item's width.
4107
4108 2007-11-03  Gert Driesen  <drieseng@users.sourceforge.net>
4109
4110         * PropertyGrid.cs: Fixed default value for PropertySort. Allow invalid
4111         value for PropertySort on 1.0 profile. PropertySortChanged event
4112         should only be fired on 2.0 profile. Fixed NullReferenceException
4113         in UpdateSortLayout when PropertyGrid contains no items.
4114
4115 2007-11-02  Jonathan Pobst  <monkey@jpobst.com>
4116
4117         * MessageBox.cs: Patch from George to implement MessageBoxDefaultButton.
4118         [Fixes bug #338554]
4119
4120 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4121
4122         * ListViewItem.cs: Implement 2.0 IndentCount property.
4123
4124 2007-11-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4125
4126         * X11Dnd.cs: When sending status in a dnd operation, compare current
4127         effect with the 'allowed' field instead of 'drag_data.Allowed', since
4128         the later is only created when a Winforms application is both the
4129         source and the target, but not when we are the target only.
4130         Fixes part of #324251.
4131
4132 2007-11-01  Geoff Norton  <gnorton@novell.com>
4133
4134         * XplatUI*.cs: Add GetPreviousWindow utility method to return windows in
4135         order of Z-Order.
4136         * Hwnd.cs: Add initial implementation of GetClippingRectangles to clip sibling 
4137         children out of the drawing view on mac.
4138         * XplatUIOSX.cs: Code cleanup.  Handle more window grab cases.  Fix SetParent
4139         to handle the orphan and invisible case (1/2 fixes TabStrip drawing in FormsTest)
4140         
4141 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
4142
4143         * ToolStrip.cs: Don't process MouseUp for a ToolStripControlHost, clicking
4144         on the non-hosted-control part of it shouldn't do anything.
4145         Fixes part of bug #327498.
4146
4147 2007-11-01  Andreia Gaita <avidigal@novell.com>
4148
4149         * WebBrowserBase.cs: revert previous change, resize can be called anytime
4150
4151 2007-11-01  Jonathan Pobst  <monkey@jpobst.com>
4152
4153         * Application.cs: When a toolstrip has the keyboard input loop, let messages
4154         it does not use flow through to controls that are hosted in menus.
4155         Same with mouse clicks.
4156         * Form.cs: Don't close all menus on click if the click is on a
4157         control hosted in a menu.
4158         Fixes part of bug #327498, and part of bug #325969.
4159
4160 2007-10-31  Andreia Gaita <avidigal@novell.com>
4161
4162         * WebBrowserBase.cs: Only call resize on gluezilla when it is active
4163
4164 2007-10-31  Jonathan Pobst  <monkey@jpobst.com>
4165
4166         * TextBoxBase.cs: Use int.MaxValue for MaxLength instead of magic number.
4167         Addresses an issue raised in bug #336218.
4168
4169 2007-10-30  Jonathan Pobst  <monkey@jpobst.com>
4170
4171         * Form.cs: Patch from George that moves the conversion of ClientSize->Size
4172         for PreferredSize from OnLayout to PreferredSize.  Fixes bug #325242.
4173
4174 2007-10-30  Andreia Gaita <avidigal@novell.com>
4175
4176         * ContainerControl.cs: Check if the active control is a
4177         child of a removed control and update active_control accordingly.
4178         Fixes #329718
4179
4180 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
4181
4182         * DateTimePicker.cs: Throw ArgEx if the Value is set outside the MinDate
4183         or the MaxDate.  Fixed bug #337693.
4184
4185 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
4186
4187         * XplatUIWin32.cs: Always call SetWindowPos with SWP_FRAMECHANGED flag
4188         after calling SetWindowLong for a form, to force an immediate NC refresh.
4189         Fixes first part of bug #325150.
4190
4191 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
4192
4193         * ComboBox.cs: Don't try to resize the listbox when we are DropDownStyle
4194         simple.  Fixes the last part of bug #322668.
4195
4196 2007-10-29  Jonathan Pobst  <monkey@jpobst.com>
4197
4198         * MessageBox.cs: If the owner is TopMost, then the MessageBox form
4199         needs to be TopMost as well, or else the MessageBox is under the form.
4200         Patch by George fixes bug #325300.
4201
4202 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4203
4204         * X11Dnd.cs: When starting a new drag operation, reset the static
4205         'dropped' field to false (previously the implementation didn't reset
4206         it and got confused after the first drag).
4207         Fixes #325071.
4208
4209 2007-10-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4210
4211         * PropertyGrid.cs: When PropertySort changes, re-organize the grid
4212         items instead of re-creating them all. For this purpose we now cache
4213         both CategoryGridEntry items and the GridEntries for the main object's
4214         properties.
4215         * GridItem.cs: Make SetParent method abstract.
4216         * GridEntry.cs: Override the SetParent method (already there, but now
4217         we override it).
4218         Fixes #324866.
4219
4220 2007-10-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4221
4222         * PropertyGridView.cs: Set the plus/minus bounds of a grid item
4223         depending on its depth (as .Net does). Update the needed values in
4224         MouseDown handler. Also draw the plus/minus rect after the label,
4225         so we don't draw on top of it.
4226
4227 2007-10-24  Everaldo Canuto  <ecanuto@novell.com>
4228
4229         * MenuAPI.cs: Return true as default in ProcessKeys to prevent keys to be
4230         processed by forms or controls when menu is active. [Fixes #333548]
4231
4232 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
4233
4234         * ToolStripItem.cs: Don't focus a ToolStripControlHost on Select of the
4235         parent doesn't have focus.  This was causing ToolStripTextBoxes to take
4236         focus on mouse over.
4237
4238 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
4239
4240         * TextControl.cs: Code cleaning, simplifying.
4241
4242 2007-10-24  Geoff Norton  <gnorton@novell.com>
4243
4244         * XplatUIOSX.cs: Route mouse events to the grab hwnd on mouse down as well.
4245         * XplatUIStructs.cs: Fix the ToString method of POINT and MSG.
4246
4247 2007-10-24  Jonathan Pobst  <monkey@jpobst.com>
4248
4249         * TextBoxBase.cs: If the user sets maxlength to 0, it should mean
4250         the cap is maxvalue, not actually 0.  [Fixes bug #336218]
4251
4252 2007-10-24  Andreia Gaita <avidigal@novell.com>
4253
4254         * SendKeys.cs: apply jpobst's patch to bug #332409
4255
4256 2007-10-23  Andreia Gaita <avidigal@novell.com>
4257
4258         * TextBoxTextRenderer.cs: Lower bounds max size to Int16.MaxValue, the 
4259         Windows 2000 gdi DrawText call doesn't draw if it's higher than that
4260         for some reason
4261
4262 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4263
4264         * PropertyGridView.cs: If a property has an UIEditor available,
4265         make the drop-down/editor button available only if the property
4266         is _not_ read only.
4267
4268 2007-10-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4269
4270         * PropertyGridView.cs: Don't make the grid item textbox 
4271         editable when a drop-down control is available, but 
4272         CanConvertFrom (typeof (string)) is false or GetStandardValuesExclusive () is
4273         true. The same bur the color of the grid item value's label.
4274
4275 2007-10-22  Geoff Norton  <gnorton@novell.com>
4276
4277         * OSXStructs.cs: Add the needed constants for keyboard modifiers.
4278         * OSXKeyboard.cs: Initial support for keyboard and limited modifiers.
4279         * XplatUIOSX.cs: New reversible frame support.  Wire in the new keyboard
4280         driver.  Padd the bottom of all real windows so the resize thumb doesn't
4281         obscure scroll/status bars.
4282
4283 2007-10-22  Jonathan Pobst  <monkey@jpobst.com>
4284
4285         * WindowsFormsSection.cs: Implement.
4286
4287 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
4288
4289         * MdiClient.cs: Maximize new active mdi child when a maximized child is 
4290         closed see #325434 patch.
4291
4292 2007-10-22  Everaldo Canuto  <ecanuto@novell.com>
4293
4294         * MdiClient.cs: Fix remaining issues from layout vertical and horizontal,
4295         see #325434 patch.
4296
4297 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4298
4299         * PropertyGridView.cs: When showing the textbox for a grid item,
4300         have two local variables to store the read-only and non-editable
4301         status of a grid item (we were previously using just one variable
4302         to do this, when actually they are slightly different).
4303         Fixes part of #325023.
4304
4305 2007-10-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4306
4307         * PropertyGridView.cs: When showing a drop-down list, try to get the
4308         values using TypeConverter.ConvertTo (to convert to a string). Fixes
4309         part of #325023.
4310
4311 2007-10-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4312
4313         * PropertyGrid.cs: When updating a property and populating sub grid
4314         items, remove the previous ones, and invalidate the specific area.
4315         * PropertyGridView.cs: A new InvalidateBelowGridItem to invalidate the
4316         area behind a grid item.
4317         * GridItemCollection.cs: Add an internal Clear method, to allow us to
4318         clean the items if needed (specially for controls implementing 
4319         ICustomTypeDescriptor and returning a variable number of properties).
4320         Fixes #324865.
4321
4322 2007-10-19  Jonathan Pobst  <monkey@jpobst.com>
4323
4324         * TextControl.cs: Clean up and document the Insert function.
4325
4326 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
4327
4328         * TextControl.cs: Make sure we know our start point for updating the view
4329         in ReplaceSelection.  Fixes an issue where pasting multiline text wouldn't
4330         update the view.
4331
4332 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
4333
4334         * ListView: Couple of corcompare fixes.
4335
4336 2007-10-17  Geoff Norton  <gnorton@novell.com>
4337
4338         * XplatUIOSX.cs: Implement support for window icons in the dock.  Set
4339         the title caption of real window.
4340
4341 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
4342
4343         * ErrorProvider.cs: Add the error provider's internal window to a 
4344         containercontrol when the parent changes.  [Fixes bug #329714]
4345
4346 2007-10-17  Geoff Norton  <gnorton@novell.com>
4347
4348         * XplatUIOSX.cs: Implement ScrollWindow.  Properly create TOOLWINDOWs.
4349         When we make a new window; restore the old active window - fixes dialogs.
4350
4351 2007-10-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4352
4353         * PropertyGridView.cs: Look for RefreshPropertiesAttribute
4354         when modifying a property, and if found then invalidate as
4355         requested.
4356         Fixes part of #324865.
4357
4358 2007-10-17  Geoff Norton  <gnorton@novell.com>
4359
4360         * XplatUIOSX.cs: Re-enable the native driver on the Mac.  This is still
4361         highly experimental.  Fixed coordinate translation.  Fixed window locations.
4362         Initial support for clipping. Implemented NC areas and menus.  Support for
4363         launching from command line from Will Johansson (wjohansson@atacomm.com).
4364         * OSXStructs.cs: Add ProcessSerialNumer (Patch from Will Johansson
4365         wjohansson@atacomm.com)
4366         * Hwnd.cs: Add some internal structures for tracking Mac cursors.
4367         Hwnds now track the existence of all of their children for Mac clipping.
4368     * XplatUI.cs: Re-enabled the native driver on the Mac.
4369
4370 2007-10-17  Jonathan Pobst  <monkey@jpobst.com>
4371
4372         * Line.cs: Move the InsertString function to here.
4373         * TextControl.cs: Cleanup some duplicate code, move some InsertString
4374         functionality to Line.
4375
4376 2007-10-17  Geoff Norton  <gnorton@novell.com>
4377
4378         * ComboBox.cs: Destroy the popup after hiding it.  Fixes #322582
4379
4380 2007-10-16  Gert Driesen  <drieseng@users.sourceforge.net>
4381
4382         * ButtonBase.cs: Fixed IsDefault to use assigned value instead of
4383         always setting value to true.
4384         * Form.cs: When changing AcceptButton, notify new and original button.
4385
4386 2007-10-16  Jonathan Pobst  <monkey@jpobst.com>
4387
4388         * Form.cs: Guard against an NRE when the user sets the AcceptButton to
4389         a custom control that implements IButtonControl instead of an actual
4390         button.  [Fixes bug #334244]
4391
4392 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
4393
4394         * Form.cs: Change SelectActiveControl to internal, we need to call it in
4395         MdiWindowManager.
4396         
4397         * MdiWindowManager.cs: In RaiseActivated call SelectActiveControl to select
4398         active control when activate a new mdi window.
4399         
4400         [Fixes bug #330495]
4401
4402 2007-10-15  Everaldo Canuto  <ecanuto@novell.com>
4403
4404         * ComboBox.cs: Dont implicit add listbox_ctrl on OnHandleCreated because it
4405         is already added.
4406         [Fixes bug #333617]
4407
4408 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
4409
4410         * TextControl.cs: When SuspendRecalc is first called, reset the recalc_start
4411         to MaxValue and recalc_end to MinValue.  Currently, recalc_start is always 1,
4412         so we always recalculate the whole document instead of just the new part.
4413         [Fixes bug #325082]
4414
4415 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
4416
4417         * LineTag.cs: Fix a case where the GetCharIndex would not return 0
4418         when the mouse was to the left of the first character in the line.
4419
4420 2007-10-15  Jonathan Pobst  <monkey@jpobst.com>
4421
4422         * TextBox.cs, TextBoxBase.cs: When setting the document's password
4423         character, use the property instead of the variable so that the
4424         UseSystemPasswordChar property is taken into account.
4425         [Fixes bug #333748]
4426
4427 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4428
4429         * FolderBrowserDialog.cs: When a node is right clicked and the "New
4430         folder" contex menu appears, actually add the new folder to it, even
4431         if the node is not currently selected. Still use SelectedNode in case 
4432         there wasn't found a node under the pointer.
4433         Fixes #325452.
4434
4435 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4436
4437         * ListViewItem.cs: When retrieving the focused state, the index check
4438         should be done only when ListView is in virtualmode, as it is an
4439         expensive check for normal mode.
4440
4441 2007-10-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4442
4443         * ListViewItem.cs: Make the focus state information be stored
4444         in the ListView, not in the items. This is done to match the MS
4445         behaviour for items that are not yet part of a ListView control;
4446         besides that, since just one item can be focused at the same time,
4447         we save a little space in our items.
4448         Fixes part of #331643.
4449
4450 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
4451
4452         * ComboBox.cs: When focus is lost, deselect the text. When setting
4453         text of control, select all text. Do not hide selection when control
4454         does not have focus. Fixes bug #333663.
4455
4456 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
4457
4458         * TextBoxBase.cs: On 2.0 profile, throw ArgumentOutOFRangeException
4459         instead of ArgumentException when SelectionLength is set to negative
4460         value. Added same check to SelectionStart. Code formatting.
4461
4462 2007-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
4463
4464         * TextBoxBase.cs: Invalidate selection before changing SelectionLength
4465         or SelectionStart. Code formatting.
4466
4467 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4468
4469         * TreeView.cs: drag_begin_x and drag_begin_y are now set to -1,
4470         indicating that there was not a previous drag-and-drop operation going
4471         on.
4472         Fixes part of #325071.
4473
4474 2007-10-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4475
4476         * X11Dnd.cs: When DragEventArgs.Effect is set to a value not part of
4477         AllowedEffect, don't let the drop operation happen. 
4478         Fixes #32580.
4479
4480 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
4481
4482         * TextRenderer.cs: Use GDI on Windows in both the 1.1 and 2.0 profiles.
4483
4484 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
4485
4486         * Line.cs, LineTag.cs: Guard against an exception when Document.Clear
4487         is called.
4488
4489 2007-10-12  Jonathan Pobst  <monkey@jpobst.com>
4490
4491         * Line.cs: Add a method that finds the tag that contains an x-coord.
4492         * LineTag.cs: Add a method that finds the character at an x-coord using
4493         a binary search, the old way was a linear search.
4494         * TextControl.cs: Change FindCursor to use the above new methods.
4495
4496 2007-10-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4497
4498         * DragEventArgs.cs: Allow Effect to have a non allowed value (a
4499         value different than AllowedEffect). This should be possible to
4500         indicate that dragging is not possible in some control/area.
4501
4502 2007-10-11  Jonathan Pobst  <monkey@jpobst.com>
4503
4504         * LineTag.cs: Encapsulate all variables with properties.  Calculate ascent/
4505         descent internally when font changes instead of outside code being responsible
4506         for setting it.
4507         * Line.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Use Tag properties
4508         instead of accessing internal variables.
4509
4510 2007-10-09  Everaldo Canuto  <ecanuto@novell.com>
4511
4512         * MdiClient.cs: Always call ArrangeIconicWindows before any arrangement and
4513         remove special treatment for ArrangeIcons since it is already arranged.
4514
4515 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
4516
4517         * TextBoxTextRenderer.cs: Draw takes a Color now instead of a Brush, as
4518         the Win32 backend uses Color.
4519         * Line.cs, LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs:
4520         Refactor to store a Color instead of a Brush for Color.
4521
4522 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
4523
4524         * Line.cs, LineTag.cs: Override GetHashCode to make a compiler warning go
4525         away.  I didn't realize I needed this when I refactored these earlier.
4526
4527 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
4528
4529         * LineTag.cs, RichTextBox.cs, TextBoxBase.cs, TextControl.cs: Refactor to
4530         store a Color structure and use the ResPool for back color instead of
4531         holding onto brushes.
4532
4533 2007-10-09  Jonathan Pobst  <monkey@jpobst.com>
4534
4535         * TextControl.cs: Fix how we calculate the end of the tag we are drawing.
4536         [Fixes bug #325592]
4537
4538 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
4539
4540         * MonthCalendar.cs: When ShowWeekNumbers is changed, force the calendar
4541         to recalculate its size.  Fixes a part of bug #331052.
4542
4543 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
4544
4545         * NotifyIcon.cs: Set the correct mouse button when handling right mouse
4546         button.  Fixes a part of bug #331052.
4547
4548 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
4549
4550         * Form.cs: Trim NewLine before setting XPlatUI.SetText, and when setting
4551         the CreateParams.
4552         * ThemeWin32Classic.cs: Trim NewLine before drawing MDI children window
4553         decorations.
4554         [Fixes bug #330986]
4555
4556 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
4557
4558         * TextBoxTextRenderer.cs: Don't make this a static class, as static
4559         doesn't exist in 1.1.  (Thanks jb!)
4560
4561 2007-10-08  Jonathan Pobst  <monkey@jpobst.com>
4562
4563         * TextBoxTextRenderer.cs: Abstract text measuring and drawing to this
4564         class to allow us to use different backends on different platforms.
4565         Linux uses the current [Draw|Measure]String backend.  Windows uses
4566         the TextRenderer.[Draw|Measure]Text backend, which uses GDI instead
4567         of GDI+.  This leads to better looking text and more accurate measurements
4568         on Windows, fixing many of the reported issues.
4569         * Line.cs, LineTag.cs: Update to use TextBoxTextRenderer.
4570
4571 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4572
4573         * FolderBrowserDialog.cs: When running on Windows,
4574         try to detect paths such "C:" and add Path.DirectorySeparatorChar,
4575         since we must match both "C:" and "C:\" forms. A little hackish, but
4576         works.
4577         Fixes #325247.
4578
4579 2007-10-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4580
4581         * ListView.cs: When calling EndEdit (after editing an item),
4582         create a new instance of LabelEditEventArgs to keep clean the fields
4583         in case we get a new call to BeginEdit; also do Application.DoEvents
4584         to have focus in synch. This is a fix similar to TreeView's #325244.
4585
4586 2007-10-07  Andreia Gaita <avidigal@novell.com>
4587
4588         * HtmlDocument.cs, HtmlElement.cs, WebBrowser.cs: Added dom support
4589         * WebBrowserBase.cs: Added dialog support, calling the
4590           WebBrowserDialogs classes for each specific dialog type.
4591
4592 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4593
4594         * ListView.cs: When the last item is focused and is removed,
4595         move the focus to the previous item (in Items order). This is what MS
4596         does.
4597         Fixes #330415.
4598
4599 2007-10-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4600
4601         * ListView.cs: In ListViewItemCollection, make Remove call RemoveAt,
4602         instead of the opposite (RemoveAt call Remove). This is a better
4603         approach since we don't need to to a pair of traversals when using
4604         RemoveAt.
4605
4606 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4607
4608         * TreeView.cs: When Keys.Left is pressed, before trying to Collapse
4609         check that the node actually has nodes, and if not, move to the
4610         parent node instead. 
4611         Fixes #325265.
4612
4613 2006-10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4614
4615         * TreeView.cs: Move the previous change to the general case (to
4616         call Application.DoEvents in cases where the method was called by
4617         different places).
4618
4619 2007_10-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4620
4621         * TreeView.cs: When calling EndEdit and we need to hide the textbox,
4622         call Application.DoEvents. This is neccessary when we get a call to
4623         BeginEdit from an AfterLabelEdit handler, because the focus always
4624         goes to the TreeView, even if we try to give it to our
4625         LabelEditTextBox. The call do Application.DoEvents seems to
4626         synchronize the focus, basically.
4627         Fixes #325244.
4628
4629 2007-10-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4630
4631         * TreeView.cs: When AfterLabelEdit event is fired, TreeNode.IsEditing
4632         should be false. This also removes some nasty recursive paths. Fixes
4633         part of #325244.
4634
4635 2007-10-04  Everaldo Canuto  <ecanuto@novell.com>
4636
4637         * MdiClient.cs: When cascade (layout) mdi window that is maximized, set the
4638         state to normal. Also resize window when cascading. Fixes #325433. 
4639
4640 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
4641
4642         * RichTextBox.cs: When SelectionColor is set to Color.Empty, use
4643         DefaultForeColor, as drawing empty colored lines isn't very useful.
4644         [Fixes the not drawn lines part of bug #324358]
4645
4646 2007-10-04  Jonathan Pobst  <monkey@jpobst.com>
4647
4648         * TextControl.cs: Move Line and LineTag classes into separate files to
4649         make things easier to find.
4650         * Line.cs, LineTag.cs: Bring coding standards up to Mono's guidelines.
4651         * RichTextBox.cs: Capitalize LineTag.Length property access.
4652         - This is purely an organizational/formatting change, no logic changed. -
4653
4654 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
4655
4656         * ThemeWin32Classic.cs: Do not show focus rectangle in radio buttons when
4657         text is empty.
4658
4659 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
4660
4661         * ThemeWin32Classic.cs: Do not show focus rectangle in checkboxes when
4662         text is empty.
4663
4664 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
4665
4666         * ComboBox.cs: On contructor use backgound_color instead of BackColor to
4667         prevent calling of OnBackColorChanged. Fixes #325321.
4668
4669 2007-10-03  Everaldo Canuto  <ecanuto@novell.com>
4670
4671         * TextBox.cs: When check enabled uses Enabled property instead of is_enabled
4672         because control can be disabled because owner is disabled.
4673
4674 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
4675
4676         * ComboBox.cs: For the 1.1 profile, the default SelectedText is
4677         string.Empty, test failed from previous change.
4678
4679 2007-10-02  Jonathan Pobst  <monkey@jpobst.com>
4680
4681         * TextBoxBase.cs: For the 1.1 profile, the default SelectedText
4682         is null, not String.Empty.  See bug #323038.
4683
4684 2007-10-01  Jonathan Pobst  <monkey@jpobst.com>
4685
4686         * TextControl.cs: Change the margins to match MS a little better.
4687         Still not perfect for X11 due to some DrawString differences, but
4688         is still an improvement over the old stuff.
4689         Partially fixes #324467.
4690
4691 2007-09-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4692
4693         * FolderBrowserDialog.cs: When using MyComputer as 
4694         RootFolder, let absolute paths be considered as valid ones. Also, use
4695         Path.DirectorySeparatorChar instead of Path.AltDirectorySeparatorChar,
4696         for Windows compatibility.
4697         Partially fixes #325247.
4698
4699 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4700
4701         * FolderBrowserDialog.cs: Fix the recursive FindPathInNodes method.
4702         Also remove the stack.Count > 0 check in FBTreeView.SetSelectedNode
4703         method, since it causes the dialog to not select folders directly
4704         under the root path (when setting SelectedPath property).
4705
4706 2007-09-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4707
4708         * TreeNode.cs: When calling Expand/Collapse and need to call 
4709         ExpandBelow/CollapseBelow respectively, take into account
4710         partially visible nodes (previously Expanding/Collapsing
4711         a partially visible node in the bottom was not updating its +- sign).
4712
4713 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4714
4715         * TreeView.cs: When calling Expand on a TreeNode, and we need to
4716         expand nodes below (ExpandBelow), scroll the entire Viewport
4717         area if the node is above it and not visible (instead of scrolling
4718         the area from node's Bottom, which applies only when the node is
4719         visible).
4720         Fixes #325266.
4721
4722 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4723
4724         * TreeView.cs: When calling ExpandAll, set SelectedNode to the top
4725         node in the bottom area (as .Net does). This is done to preserve the
4726         scroll position when ExpandAll is called before handle is created for
4727         the 1.1 profile (bottom area, as opposed to top area in 2.0).
4728         Fixes #324103.
4729
4730 2007-09-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4731
4732         * TreeView.cs: When calling ExpandAll, don't move the scroll to the 
4733         bottom area if we are in fact not using the vertical scroll bar.
4734         Fixes #324824.
4735
4736 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
4737
4738         * Control.cs: Comment out a double buffering optimization that doesn't
4739         take into account invalidates created in OnPaint, causing the control
4740         to never be redrawn.  It would take quite a bit of work to work around
4741         this, but I left it commented with an explanation for later possible
4742         optimization.
4743         [Fixes bug #328681]
4744
4745 2007-09-27  Jonathan Pobst  <monkey@jpobst.com>
4746
4747         * Control.cs: Ask parent to perform a layout if control is AutoSize and
4748         the text changes.
4749         * RadioButton.cs: Implement GetPreferredSizeCore.
4750         [Fixes bug #328672]
4751
4752 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
4753
4754         * RichTextBox.cs, TextBoxBase.cs, WindowsFormsSynchronizationContext.cs:
4755         corcompare stuffs.
4756
4757 2007-09-26  Jonathan Pobst  <monkey@jpobst.com>
4758
4759         * Application.cs: Move the sync context stuff to Run instead of RunLoop
4760         so that it doesn't get uninstalled on modal forms.
4761         * Control.cs: Install a sync context when a control is created.
4762         * WindowsFormsSyncronizationContext.cs: Create a private static control
4763         to invoke on.  This is easier than trying to find a created control we
4764         can use.
4765         [Fixes bug #327608]
4766
4767 2007-09-25  Jonathan Pobst  <monkey@jpobst.com>
4768
4769         * Application.cs: Install a WindowsFormsSynchronizationContext in the
4770         run loop, and uninstall it when done.
4771         * WindowsFormsSynchronizationContext.cs: Implement.
4772         [Fixes the common case in bug #327608]
4773
4774 2007-09-23  Gert Driesen  <drieseng@users.sourceforge.net>
4775
4776         * DataGridViewCellCollection.cs: Added argument checks for indexers.
4777         Use case-insensitive lookup of column name in indexer. Code
4778         formatting.
4779
4780 2007-09-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4781
4782         * TreeNode.cs: When collapsing or expanding a node, check whether its
4783         change will affect the visible area (we were previously doing a
4784         IsVisible check, but that check is not enough since children nodes
4785         could be still visible). Fixes part of #325266.
4786
4787 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
4788
4789         * TreeView.cs: Always select the first node when the TreeView gets
4790         focus if there is no currently selected node.
4791         [Fixes bug #324279]
4792
4793 2007-09-21  Jonathan Pobst  <monkey@jpobst.com>
4794
4795         * TreeView.cs: Do not raise BeforeSelect or AfterSelect when the
4796         node being selected is null.
4797         [Patch from Yves Bastide fixes bug #326858]
4798
4799 2007-09-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4800
4801         * TreeNode.cs: Add an internal ArePreviousNodesExpanded, to know
4802         whether all the parent nodes are expanded.
4803         * TreeNodeCollection.cs: When adding a new node an calling SetupNode,
4804         call RecalculateVisibleOrder if all previous nodes are expanded.
4805         Before that we were doing a IsVisible check, but sometimes the node
4806         is not in the visible area, but _should_already be ready, because of
4807         all previous nodes are expanded. Fixes #325259.
4808
4809 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
4810
4811         * ToolStripSplitButton.cs: Call the ButtonClick event if the button
4812         portion of the item is clicked.
4813
4814 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
4815
4816         * TextControl.cs: Do not tell the system to move the cursor if the
4817         textbox isn't focused.  Fixes part of bug #322668.
4818
4819 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
4820
4821         * ComboBox.cs: When there are no items, do not show the dropdown if
4822         the down arrow is clicked.  Fixes part of bug #322668.
4823
4824 2007-09-20  Jonathan Pobst  <monkey@jpobst.com>
4825
4826         * ToolStripComboBox.cs: Manually set the size of this control in the
4827         constructor, as it doesn't seem to be the same as DefaultSize.
4828         Fixes a failing monobuild test.
4829
4830 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
4831
4832         * DateTimePicker.cs: If the user sets MinDate to DateTime.MinValue,
4833         change it to DateTimePicker.MinDateTime.  [Fixes bug #326609]
4834
4835 2007-09-19  Jonathan Pobst  <monkey@jpobst.com>
4836
4837         * Theme.cs: FileDialogs should be using DesktopDirectory instead of
4838         Desktop.  This lets it work for people who have moved their desktops
4839         from the default location on windows.  For people who have not, both
4840         values are the same, so it shouldn't hurt anything.  [Fixes bug #325270]
4841
4842 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
4843
4844         * ToolStripControlHostTest.cs: DefaultSize is based off hosted control,
4845         but when the base constructor sets this, the control is null.  Set it
4846         again in the constructor.  Fixes a failing monobuild test.
4847
4848 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
4849
4850         * ToolStripDropDownItem.cs: Make sure Click and DropDownOpened events
4851         get called.
4852         * ToolStripSplitButton.cs: Make sure MouseDown and MouseUp events get
4853         called.
4854
4855 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
4856
4857         * ToolStrip.cs: Don't show tooltips for ToolStripTextBoxes, they
4858         will handle it themselves.
4859         * ToolStripItem.cs: When deciding what the text of a tooltip should
4860         be, use the Text property instead of the text field.
4861         * ToolStripTextBox.cs: Handle tooltips.
4862         [Fixes bugs #325417 and #325973]
4863
4864 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
4865
4866         * ToolStripDropDownButton.cs: Only drop down overflow menu with a
4867         left click.  Fixes the easy part of bug #325969.
4868
4869 2007-09-18  Jonathan Pobst  <monkey@jpobst.com>
4870
4871         * ToolStrip.cs: Set AutoSizeMode back to GrowAndShrink to refix
4872         bug #325406, but set a minimum for StatusStrip to 22 to keep
4873         bug #325390 fixed.  I think this minimum would have been figured
4874         up automatically if the grip was actually a ToolStripItem, but it
4875         currently is not.
4876
4877 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4878
4879         * ListView.cs: max_label_wrapping is now 30 pixels instead of 38,
4880         as this is apparently the actual value used by .Net. Also apply
4881         ItemPadding in Details view only, and decrease the general width padding,
4882         to have only the needed. This should fix #324340 in Windows too.
4883
4884 2007-09-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4885
4886         * ListViewItem.cs: Don't Invalidate item if parent is inside
4887         a BeginUpdate/EndUpdate block. This prevents to have differences
4888         between the ListView and items state, as well as avoid some exceptions
4889         there.
4890         * ListView.cs: Make 'updating' field internal.
4891
4892 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
4893
4894         * ToolStripControlHost.cs: Realign control when ControlAlign changes.
4895         * ToolStripItem.cs: Use ImageScalingSize when calculating preferred
4896         size if appropriate.
4897         Fixes reopened bug #325414.
4898
4899 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
4900
4901         * ToolStrip.cs: Set AutoSizeMode back to GrowOnly.
4902         * ToolStripItem.cs: Invalidate before and after our new autosize when
4903         text changes.
4904         Fixes reopened bug #325390.
4905
4906 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
4907
4908         * ToolStripMenuItem.cs: Make sure we invalidate when clicked so
4909         mnemonics can be drawn or undrawn correctly.  Fixes reopened bug 
4910         #325044.
4911
4912 2007-09-17  Jonathan Pobst  <monkey@jpobst.com>
4913
4914         * Control.cs: Do WM_CONTEXTMENU before OnMouseUp.  [Fixes bug #325535]
4915
4916 2007-09-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4917
4918         * ColumnHeader.cs: When drawing column text, use EllipsisCharacter
4919         instead of EllipsisWord (by equistango at gmail.com). Fixes part of
4920         #82734.
4921
4922 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
4923
4924         * ToolStrip.cs: Make ToolStrip selectable when TabStop = true.  Find an
4925         item to select when the ToolStrip is selected.
4926         * ToolStripControlHost: Realign the control when the bounds or visibility
4927         change.
4928         * ToolStripItem.cs: When selected, if it's a control host, focus the control.
4929         * ToolStripOverflow.cs: When laying out the drop down, respect the item's
4930         preferred height.
4931         * ToolStripTextBox.cs: OnPaintInternal should call base.OnPaintInternal, not
4932         base.OnPaint.  Was causing text not to be drawn.
4933
4934 2007-09-14  Jonathan Pobst  <monkey@jpobst.com>
4935
4936         * SplitterPanel.cs: Ignore attempts to set AutoSizeMode.
4937
4938 2007-09-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4939
4940         * TreeView.cs: When creating the label edit text box,
4941         set is initially to Visible = false. This is done to
4942         prevent a confusion in the layout which makes it to lose
4943         focus when shown the first time. Fixes part of #82592.
4944
4945 2007-09-13 Andreia Gaita <avidigal@novell.com>
4946
4947         * WebBrowserBase.cs: add FocusOption enumeration for finer focus control
4948
4949 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
4950
4951         * ToolStrip.cs: Take Margin into account when calculating preferred
4952         size.  Also, allow preferred size to get smaller than the explicit
4953         size.
4954         * ToolStripTextBox.cs: Don't change the GetPreferredSize implementation.
4955         First step towards fixing bug #82747.
4956
4957 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
4958
4959         * TreeView.cs: Applied patch from latency@gmx.de to not paint the
4960         full row select background over the plus/minus glyph.  Also, turn
4961         off the focus rectangle for full row select since MS doesn't seem
4962         to ever paint it.  [Fixes bug #81839]
4963
4964 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
4965
4966         * ToolStrip.cs: Don't FocusInternal if there is no selected item.
4967         This was causing keyboard opened dropdowns to lose focus.
4968         [Fixes bug #82803]
4969
4970 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
4971
4972         * Control.cs: If Rectangle.Empty is passed to Invalidate, use
4973         ClientRectangle instead.  [Fixes bug #82838]
4974
4975 2007-09-13  Jonathan Pobst  <monkey@jpobst.com>
4976
4977         * SplitContainer.cs: We can't reset Visible on every layout because
4978         someone may have set Visible = false explicitly on a SplitterPanel.
4979         Make sure when we switch orientation the SplitterDistance does not
4980         change.  Fixes two failing tests.
4981
4982 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
4983
4984         * TreeView.cs: Use MeasureTextInternal instead of MeasureText in
4985         TextRenderer, since the latter is only available in 2.0.
4986
4987 2007-09-13  Ivan N. Zlatev <contact@i-nz.net>
4988
4989         * Cursor.cs: Fix Cursor.Current to apply Cursor.Default.
4990         * SplitContainer.cs: Implement FixedPanel layouting.
4991
4992 2007-09-12  Andreia Gaita  <avidigal@novell.com>
4993
4994         * WebBrowserBase.cs: setup shutdown routine
4995
4996 2007-09-12  Andreia Gaita  <avidigal@novell.com>
4997
4998         * Application.cs: Let keyboard events that are targetted 
4999                 to non-mwf windows hosted inside mwf (as in, webbrowser),
5000                 propagate properly. Fixes keyboard handling on the webbrowser.
5001
5002 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5003
5004         * ListView.cs: When handling MouseUp event and we are 
5005         highligting a node with the mouse right button, don't trigger
5006         Before/AfterSelecting event, since we are not actually selecting
5007         the node.
5008
5009 2007-09-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5010
5011         * TreeView.cs: When editing a node, modify the edit text box
5012         depending on the text length (as you are typing), like MS does.
5013
5014 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
5015
5016         * ToolStrip.cs: Fixup preferred size calculations for vertical toolbars. 
5017         Override GetPreferredSizeCore to perform calculations.  Remove custom
5018         autosize logic.  [Fixes bug #82739]
5019
5020 2007-09-12  Jonathan Pobst  <monkey@jpobst.com>
5021
5022         * TextBoxBase.cs: Modified should default to false.
5023
5024 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
5025
5026         * Control.cs: Update the anchoring distances even when layout is supspended.
5027         Patch provided by George fixes bug #82805.
5028
5029 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
5030
5031         * Control.cs: Provide a setter for ExplicitHeight.
5032         * TextBoxBase.cs: Now that we have the implementation for explicit heights,
5033         remove the hacks in here for requested_height.
5034         [Fixes bug #82749]
5035
5036 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
5037
5038         * ScrollBar.cs: Fix an issue reported on the lists where setting a scrollbar's
5039         Maximum to lower that its current Value caused an ArgumentException by setting
5040         the Value to the new Maximum.
5041
5042 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
5043
5044         * ThemeWin32Classic.cs: Math is hard!  Fix some math so that the TrackBar
5045         handle moves to the closest tick when it is being dragged.
5046         [Fixes bug #82751]
5047
5048 2007-09-11  Jonathan Pobst  <monkey@jpobst.com>
5049
5050         * ToolStripManager.cs: When we have added MDI buttons onto a MenuStrip, we
5051         can't let them count as real items when calculating where to merge in the
5052         user's items.  [Fixed bug #82786]
5053
5054 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
5055
5056         * ToolStripMenuItem.cs: Add a parent type check so we don't crash on people
5057         who want to add a menu item directly onto a toolstrip.
5058         [Fixes bug #82775, part II]
5059
5060 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
5061
5062         * StatusStrip.cs: Synchronize SetDisplayedItems with the ToolStrip version.
5063         * ToolStrip.cs: If a ToolStripItem set to not visible is added to a ToolStrip,
5064         don't set it to available.
5065         * ToolStripItem.cs: When Visible is changed, tell the owner to perform a layout.
5066         [Fixes bug #82727, part II]
5067
5068 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
5069
5070         * StatusStrip.cs: Change item placement to None if not visible.
5071         * ToolStripItem.cs: Invalidate when InternalVisible changes.
5072         These should have been committed to fix 82723, but I missed them.
5073
5074 2007-09-10  Jonathan Pobst  <monkey@jpobst.com>
5075
5076         * ToolStrip.cs: Make sure ItemClicked is raised before the ToolStripItem's
5077         Click, and that it is only called once.
5078         * ToolStripMenuItem.cs: Call OnClick even when there are dropdown items.
5079         * ToolStripDropDownItem.cs: Override HandleItemClick so dropdowns stay
5080         dropped down.
5081         [Fixes bug #82775]
5082
5083 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5084
5085         * ColumnHeaderSample.cs: Use 5 pixels as extra height instead of 8
5086         to match .Net.
5087         * ThemeWin32Classic.cs: For the columns text, use 5 pixels as left padding
5088         instead of 8, just like above. Partially fixes #82734.
5089
5090 2007-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5091
5092         Patch by Ernesto Carrea <equistango at gmail.com>. Partially 
5093         fixes #82734.
5094
5095         * ListView.cs: Remove extra space between rows in Details view (match
5096         .Net). 
5097         * ThemeWin32Classic.cs: Header text should use ListView.Font, not
5098         the DefaultFont.
5099
5100 2007-09-08  Gert Driesen  <drieseng@users.sourceforge.net>
5101
5102         * Application.cs: Modified ProductVersion to return value of
5103         AssemblyInformationVersion if available, and fallback to assembly
5104         version. Fixes bug #82746. Code formatting.
5105         * BindingSource.cs: Remove NIE from Dispose, and mark it MonoTODO
5106         instead.
5107
5108 2007-09-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5109
5110         * Control.cs: When updating ZOrder for a child control,
5111         take into account the implicit ones (we need it in our controls
5112         using them). Fixes #82642.
5113
5114 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
5115
5116         * ToolStripItem.cs: Add support for animated images.
5117         [Fixes bug #82726]
5118
5119 2007-09-07  Jonathan Pobst  <monkey@jpobst.com>
5120
5121         * ToolStrip.cs: Make sure we aren't drawing anything that isn't 
5122         visible.  [Fixes bug #82727]
5123
5124 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
5125
5126         * ToolStripItem.cs: If AutoSize changes the size of our item, invalidate
5127         so we repaint using the new size.  [Fixes bug #82723]
5128
5129 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
5130
5131         * TreeView.cs: If ShowLines is true, we should ignore the FullRowSelect
5132         option.  [Fixes bug #81779]
5133
5134 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
5135
5136         * TreeView.cs: Override HandleClick because the StandardClick style is
5137         set to false.  According to MSDN (and testing), the click events should
5138         only be raised when the click occurs on a TreeNode.  [Fixes bug #81739]
5139
5140 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
5141
5142         * ToolStripTextBox.cs: Invalidate our textbox when it loses focus, so
5143         the border will disappear.  Fixes reopened #82653.
5144
5145 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
5146
5147         * Control.cs: If the control is autosize, and its preferred size changes
5148         when it lays out its children, tell its parent so it can be re-layed out.
5149         Fixing some of the fallout from r85433.
5150
5151 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
5152
5153         * ThemeWin32Classic.cs: Fix a NRE caused by r85427 because RadioButton
5154         and CheckBox share some code.
5155
5156 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
5157
5158         * TrackBar.cs: Only call OnScroll if we actually changed the Value of
5159         the TrackBar, not every mouse move.  [Fixed bug #82718]
5160
5161 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
5162
5163         * ThemeWin32Classic.cs: Allow a CheckBox to be rendered like a Button
5164         under 2.0 rendering.  [Fixes bug #82657]
5165
5166 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
5167
5168         * TreeView.cs: If we found a TreeNode to display a context menu, but
5169         it doesn't have one to show, let the TreeView display its menu
5170         instead.  [Fixes bug #82680]
5171
5172 2007-09-06  Jonathan Pobst  <monkey@jpobst.com>
5173
5174         * ToolStripTextBox.cs: TextBox no longer call OnPaint, we need to use
5175         OnPaintInternal instead.  Give the internal TextBox a Border property
5176         so it can draw itself more correctly.  [Fixes bug #82653]
5177
5178 2007-09-06  Zoltan Varga  <vargaz@gmail.com>
5179
5180         * HtmlHistory.cs HtmlWindow.cs HtmlWindowCollection.cs ListBindingHelper.cs WindowsFormsSection.cs WindowsFormsSynchronizationContext.cs: Stubs for missing 2.0 classes.
5181
5182 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
5183
5184         * ComboBox.cs: Adjust combobox button state to reflect current state when
5185         back to enabled = true. Fixes first issue of #82654.
5186
5187 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
5188
5189         * Control.cs: Fix last patch regression, prevent forms to update zorder when
5190         setting visible property.
5191
5192 2007-09-05  Everaldo Canuto  <everaldo@simios.org>
5193
5194         * Control.cs: Update zorder after control creation in SetVisibleCore, it 
5195         fix zorder for controls initially created as non visible. Fixes #82667.
5196
5197 2007-09-04  Everaldo Canuto  <everaldo@simios.org>
5198
5199         * ThemeWin32Classic.cs: Adjust checkbox light color to ControlLightLight to
5200         mimic win32 look. Fixes #82656.
5201
5202 2007-09-01  Zoltan Varga  <vargaz@gmail.com>
5203
5204         * FileDialogCustomPlace.cs FileDialogCustomPlacesCollection.cs: 
5205         Stubs for new net 3.5 classes.
5206
5207 2007-08-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5208
5209         * ListViewItem.cs: In ListViewItemCollection operations calculate
5210         Layout for owner as well as invalidate it. Fixes part of #82642.
5211
5212 2007-08-31  Jonathan Pobst  <monkey@jpobst.com>
5213
5214         * ToolStripItem.cs: Take Parent/Owner's Enabled state in to account
5215         when returning Enabled.  [Fixes bug #82651]
5216
5217 2007-08-30  Everaldo Canuto  <everaldo@simios.org>
5218
5219         * ToolBar.cs: Fix button size for non flat toolbars. Fixes #82368.
5220
5221 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5222
5223         * ListView.cs: Put item padding info in a single place
5224         (Theme.ListViewItemPaddingWidth) to have working AutoResize on
5225         columns again.
5226         * ThemeWin32Classic.cs:
5227         * Theme.cs: Likewise.
5228
5229 2007-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5230
5231         * ListView.cs: When a ListViewSubItem instance is invalidated,
5232         invoke Invalidate on parent ListViewItem, not parent ListView.
5233         Fixes #81570.
5234
5235 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
5236
5237         * ListView.cs, ListViewItem.cs: corcompare stuffs.
5238
5239 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
5240
5241         * BindingMemberInfo.cs: Implement == and != operators.
5242
5243 2007-08-30  Jonathan Pobst  <monkey@jpobst.com>
5244
5245         * HtmlElementEventArgs.cs: Implement properties.
5246
5247 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
5248
5249         * HtmlElementErrorEventArgs.cs, HtmlElementErrorEventHandler.cs: Added.
5250
5251 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
5252
5253         * TabControl.cs: I was looking into the MonoTODO on TabPageCollection.
5254         Add (string,string,string) to implement the imagekey.  It turns out, we
5255         use the requested imagekey whereas .Net does not.  So I broke ours to match
5256         theirs.  :(
5257
5258 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
5259
5260         * Form.cs, UserControl.cs: Override ValidateChildren, AutoValidate.
5261
5262 2007-08-29  Jonathan Pobst  <monkey@jpobst.com>
5263
5264         * ContainerControl.cs: Implement ValidateChildren and new Validate overload.
5265
5266 2007-08-29  Gert Driesen  <drieseng@users.sourceforge.net>
5267
5268         * FolderBrowserDialog.cs: Set Tag of newly created node, and keep it
5269         up-to-date. Fixes bug #82618.
5270
5271 2007-08-29  Everaldo Canuto  <everaldo@simios.org>
5272
5273         * TextBoxBase.cs: Call CalculateDocument after changes Lines property to
5274         reflect document changes. Fixes #82367.
5275
5276 2007-08-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5277
5278         * ListView.cs: Add/fix some override differences between 1.1 and 2.0,
5279         as well as add new ones. This should make work the BackgroundImage
5280         property for ListView again.
5281
5282 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
5283
5284         * DataGrid.cs, DataGridViewButtonColumn.cs, DataGridViewCheckBoxColumn.cs,
5285         DataGridViewComboBoxColumn.cs, DataGridViewImageColumn.cs, DataGridViewLinkColumn.cs,
5286         DataGridViewTextBoxColumn.cs, ToolTip.cs: corcompare stuffs.
5287
5288 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
5289
5290         * Control.cs, XPlatUI.cs, XPlatUIDriver.cs, XPlatUIWin32.cs: Implement
5291         IsKeyLocked.
5292
5293 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
5294
5295         * Cursor.cs: Add HotSpot, hook into XPlatUI.GetCursorInfo.
5296         * XPlatUIWin32.cs: Implement hotspot lookup in GetCursorInfo.
5297
5298 2007-08-28  Jonathan Pobst  <monkey@jpobst.com>
5299
5300         * RadioButton.cs: Use 2.0 rendering.  Use base implementation of TextAlign.
5301         * Theme.cs, ThemeWin32Classic.cs: Implement 2.0 rendering for RadioButton.
5302
5303 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
5304
5305         * CursorConverter.cs: Implement conversion to InstanceDescriptor.
5306
5307 2007-08-27  Ivan N. Zlatev  <contact@i-nz.net>
5308
5309         * GridEntry.cs: Implement GetService.
5310
5311 2007-08-27  Jonathan Pobst  <monkey@jpobst.com>
5312
5313         * LabelEditTextBox.cs, TreeView.cs: After hiding the textbox used
5314         for label editting, make sure we focus back on the TreeView.
5315         [Fixes bug #82590]
5316
5317 2007-08-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5318
5319         * ListView.cs: Add some 2.0 overrides.
5320
5321 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
5322
5323         * Form.cs: Uses opacity var instead of Opacity property in CreateHandle
5324         because getter dont returns right value before handle creation. Thanks 
5325         to George. Fixes #82569.  
5326
5327 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
5328
5329         * Theme.cs: Revert last patch, it causes error under win32. 
5330
5331 2007-08-27  Everaldo Canuto  <ecanuto@novell.com>
5332
5333         * Theme.cs: Uses Environment.SpecialFolder.DesktopDirectory instead of 
5334         Environment.SpecialFolder.Desktop in Places method, Desktop returns the 
5335         logical Desktop rather than the physical file system location. Fixes #82603. 
5336
5337 2007-08-26  Everaldo Canuto  <ecanuto@novell.com>
5338
5339         * MessageBox.cs: Add clipboard copy (ctrl+c) to messagebox. Thanks Andy Hume
5340         for the patch. Fixes #82568.
5341
5342 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5343
5344         * ListView.cs: Add a pair of missing 2.0 ListViewItemCollection.Insert
5345         methods.
5346
5347 2007-08-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5348
5349         * ListViewInsertionMark.cs: New stubbed class.
5350
5351 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
5352
5353         * FolderBrowserDialog.cs: When adding folder, immediately create the
5354         directory with temporary name and rename the directory when editing
5355         finishes. This matches MS. Ensure the node for the new folder is 
5356         selected and LabelEdit is disabled, when editing is either finished
5357         or cancelled.
5358
5359 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
5360
5361         * TreeView.cs: When editing label of node, ensure node is visible.
5362
5363 2007-08-25  Ivan N. Zlatev  <contact@i-nz.net>
5364
5365         * PropertyGridView.cs: Set the value only if it has changed.
5366
5367 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5368
5369         * ListView.cs: Some more code refactoring to add support sorting
5370         with groups (now for Details view). Remove unused code also.
5371
5372 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
5373
5374         * NodeLabelEditEventArgs.cs: EndEdit immediately when CancelEdit is called.
5375         Not a big fan of reacting immediately to a field in an EventArg, but that's
5376         the way it's done.  (This is part of the previous commit that got left out.)
5377
5378 2007-08-25  Gert Driesen  <drieseng@users.sourceforge.net>
5379
5380         * FolderBrowserDialog.cs: Removed need for separate description field.
5381         Replaced "" with string.Empty. Fixed tabindex. Ensure OK button
5382         has focus when dialog box is displayed again, regardless of what
5383         button was pressed the previous time. Set RootFolder and SelectedPath
5384         each time dialog box is displayed. This ensures the treeview is
5385         refreshed, and fixes bug #82579. Do no hide selected node in TreeView
5386         when it does not have focus. Added support for more special folders.
5387
5388 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
5389
5390         * TreeView.cs: Create a CancelEdit method.  Clone the edit_args in EndEdit
5391         before calling AfterLabelEdit.  If the user calls BeginEdit in that event,
5392         it resets the edit_args.
5393         * TreeNode.cs: Call CancelEdit if the user passes cancel = true to EndEdit.
5394         [Fixes bug #82577]
5395
5396 2007-08-24  Gert Driesen  <drieseng@users.sourceforge.net>
5397
5398         * FolderBrowserDialog.cs: Modifies form caption and text of new folder
5399         button to match MS. Provide more meaningful exception message for
5400         invalid RootFolder value. Use zero-length string when SelectedPath
5401         is set to null. Allow non-rooted paths in SelectedPath, but ignore
5402         them in FolderBrowserTreeView. Allow folders to be created in
5403         RootFolder. Fixes bug #82576.
5404
5405 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5406
5407         * ListView.cs: Correctly compute the layout_ht (height) when using groups,
5408         since we need to take into account the group headers and the margin
5409         between them.
5410         * ListViewGroup.cs: Add a rows field to store the number of rows per
5411         group.
5412
5413 2007-08-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5414
5415         * DateTimePicker.cs: The MS' MTB has a really stupid year formatting.
5416           Anyways, let's just follow the lead.
5417
5418 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
5419
5420         * CheckBox.cs: Set the AutoSizeMode to GrowAndShrink.
5421         * Form.cs, GroupBox.cs: Don't skip Right or Bottom anchored 
5422         controls in GetPreferredSizeCore.
5423         * ThemeWin32Classic.cs: Tweak text drawing of CheckBoxes.
5424         [Fixes bug #82488]
5425
5426 2007-08-24  Jonathan Pobst  <monkey@jpobst.com>
5427
5428         * PrintDialog.cs: Need to instantiate the form variable here too.
5429
5430 2007-08-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5431
5432         * ListView.cs: Do some reorganization to support sorting in groups,
5433         by doing the layout sequentially in ListView.Items. Also add support
5434         for the Default Group, which should be available for items with no
5435         group assigned.
5436         * ListViewGroup.cs: Add support for DefaultGroup. Include new members
5437         for storing layout info also.
5438         * ListViewGroupCollection.cs: Add a DefaultGroup as part of the
5439         collection, as well as providing internal members to do a traversal
5440         including the default group (needed when doing layout/drawing).
5441         * ThemeWin32Classic.cs: When drawing group headers use internal
5442         ListViewGroupCollection members to take into account the default
5443         group.
5444
5445 2007-08-23  George Giolfan  <georgegiolfan@yahoo.com>
5446
5447         * FlowLayoutPanel.cs: Add GetPreferredSizeCore.  [Fixes bug #82537]
5448
5449 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
5450
5451         * TreeView.cs: IsInputKey: don't ask for any keys if the handle hasn't
5452         been created.  If handle is created, we want arror keys.  If we are editing
5453         a node, we want things like enter, esc, home, end, page up, page down.
5454         Allows Esc to work for FolderBrowserDialog.
5455
5456 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
5457
5458         * ColorDialog.cs, FontDialog.cs: Set the form's CancelButton so that
5459         they close when ESC is pressed.  Thanks Andy!
5460
5461 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
5462
5463         * CommonDialog.cs: Do not instantiate form, leave that for derived classes.
5464         This way we can tell if this is a CommonDialog provided with mono, or one
5465         that is being implemented outside by a developer.  If it is an external one,
5466         the developer is responsible for showing their own form.  We were showing
5467         our blank form after the developer showed his.
5468         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs, FontDialog.cs,
5469         PageSetupDialog.cs: Instantiate form variable in our constructor.
5470         [Fixes bug #82531]
5471
5472 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
5473
5474         * ListBox.cs, ListView.cs, TreeView.cs: Override IsInputCharInternal
5475         and always return true.  [Fixes bug #81616]
5476
5477 2007-08-23  Jonathan Pobst  <monkey@jpobst.com>
5478
5479         * TextBoxBase.cs: Allow 2.0 AutoSize to change the height of the
5480         TextBox.  [Fixes bug #82549]
5481
5482 2007-08-23  Gert Driesen  <drieseng@users.sourceforge.net>
5483
5484         * FileDialog.cs: When Save/Open is clicked and no filename is selected
5485         or entered then do not close the dialog. Fixes bug #82539. Removed
5486         CWLs.
5487
5488 2007-08-22  Everaldo Canuto  <ecanuto@novell.com>
5489
5490         * FileDialog.cs: Create UpdateRecentFiles and move the recent files refresh
5491         code to this method. It is calling every time filter changes. This method
5492         will help to fix the bug #80887.
5493
5494 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
5495
5496         * CheckBox.cs: Implement AutoSize calculation.
5497
5498 2007-08-22  Jonathan Pobst  <monkey@jpobst.com>
5499
5500         * CheckBox.cs: Use new 2.0 rendering for 2.0.
5501         * Theme.cs: Method declarations for 2.0 rendering path.
5502         * ThemeWin32Classic.cs: 2.0 rendering implementation for CheckBox.
5503
5504 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5505
5506         * ListViewGroupCollection.cs: Fix a typo of the previous patch.
5507
5508 2007-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5509
5510         * ListViewGroupCollection.cs: Implement AddRange the right way, to
5511         only call Redraw on the parent one time.
5512
5513 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5514
5515         * DataGridViewRowHeaderCell.cs, DataGridViewColumnHeaderCell.cs: Implemented
5516           GetClipboardContent.
5517         * DataGridViewCell.cs: Implemented GetClipboardContent,
5518           GetEditedFormattedValue, GetFormattedValue.
5519         * DataGridView.cs: Implemented GetClipboardContent, TopLeftHeaderCell.
5520
5521 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
5522
5523         * TableLayoutStyleCollection.cs: corcompare fix.
5524
5525 2007-08-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5526
5527         * DataObject.cs: Implemented retrieval of convertible / not convertible
5528           objects.
5529
5530 2007-08-21  Jonathan Pobst  <monkey@jpobst.com>
5531
5532         * ToolStripItem.cs: When changing the item's text, invalidate before we resize
5533         ourselves.  This ensures the entire old bounds are repainted, in case our new
5534         size is smaller.  [Fixes bug #82518]
5535
5536 2007-08-20  Everaldo Canuto  <ecanuto@novell.com>
5537
5538         * XplatUIX11.cs: Apply patch from #81588, it makes use of PointerMotionHintMask
5539         flag to make fast handle of mouse events, without this the mouse move is
5540         handled in some manner, whether it is a mouse move or not. Fixes #81588.
5541
5542 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5543
5544         * ListView.cs: When doing layout calculations don't use a ref
5545         param to keep the current item; instead use its Index value (this 
5546         is specially important when doing the layout with Groups
5547         and Items being sparse). Also don't take into account items added to
5548         the Group but not yet added to the main ListView.Items collection.
5549
5550 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5551
5552         * ListViewGroupCollection.cs: Forgot to mimic an issue
5553         in the indexer (don't assign the ListView owner for new values).
5554
5555 2007-08-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5556
5557         * ListViewGroupCollection.cs: Make the string indexer use
5558         the int based indexer to re-use code, instead of duplicate the code.
5559         Also Redraw as needed and take into account null values.
5560
5561 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
5562
5563         * StatusStrip.cs: Make sure the item's parent gets set in SetDisplayedItems.
5564         [Fixes bug #82481]
5565
5566 2007-08-20  Jonathan Pobst  <monkey@jpobst.com>
5567
5568         * ToolStrip.cs: Add some logic to un-focus controls in ToolStripControlHosts
5569         when other buttons are clicked or navigated to.
5570
5571 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5572
5573         * XplatUIX11.cs: Treat toolwindows as if they had no window manager, since
5574           it's XplatUIX11 that attaches them.
5575
5576 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5577
5578         * DataGridView.cs: If a column has been added, recreate the editing row.
5579           Fixes #82226.
5580
5581 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5582
5583         * TextControl.cs: Use Math.Max instead of Math.Min when deciding the length
5584           of the tag to draw. Makes disappearing text show up again.
5585
5586 2007-08-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5587
5588         * StatusBar.cs: Take into account any icons when a panel has AutoSize =
5589           Contents. Fixes #82487.
5590
5591 2007-08-19  Andreia Gaita  <avidigal@novell.com>
5592
5593         * Added HtmlElement.cs, HtmlElementCollection.cs, 
5594           HtmlElementEventArgs.cs, HtmlElementEventHandler.cs
5595           
5596 2007-08-19  Andreia Gaita  <avidigal@novell.com>
5597
5598         * BindingSource.cs: Implement this, dispose and getenumerator.
5599         * DataGridViewRowCollection.cs: Move the InvalidOperationException
5600         out of AddInternal, throw it only on public Add calls. The 
5601         UsingWebBrowser sample was blowing up with this when setting the
5602         DataSource after adding DataBindings, so it's likely that .net
5603         only throws this exception when Add is called directly. 
5604         
5605         * ToolStripControlHost.cs: Return the hosted control's text
5606         property, and not the ToolStripItem one (it would always return
5607         the initial value).
5608         
5609         * HtmlDocument.cs: Implement GetElementById and All
5610         * WebBrowser.cs: Remove exception on set_DocumentStream.        
5611
5612 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
5613
5614         * Form.cs: Fix the max and min value for opacity (0~1).
5615
5616 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
5617
5618         [Fixes #80118]
5619         * DataGridTableStyle.cs: Default header font is now null, on getter it 
5620         returns datagrid font when is null. On setter permits null.
5621
5622         * DataGrid.cs:
5623         - When ResetHeaderFont set header font to null.
5624         - On EndInit set grid_style.DataGrid.
5625
5626 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
5627
5628         * TabControl.cs: Fix regression in default padding x.
5629
5630 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
5631
5632         * TabControl.cs: Fix tab page text area removing padding. Fixes #82471.
5633
5634 2007-08-19  Everaldo Canuto  <ecanuto@novell.com>
5635
5636         * TabControl.cs: Fix first tab drawing, when selected it must have x = 0
5637         not 2. Fixes #82229.
5638
5639 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
5640
5641         * TabControl.cs: Fix tab size when image height is less than text height.
5642         Partially fixes #81837.
5643
5644 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
5645
5646         * Form.cs: Add WS_EX_CONTROLPARENT to forms to make it selectable using 
5647         "alt + tab". It works only for Win32, for X11 theres no way to remove window
5648         from taskbar and keep it on "alt_tab". Fixes #81722.
5649
5650 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
5651
5652         * XplatUIX11.cs: Apply patch from Jurek Bartuszek to fix DrawReversibleFrame
5653         and DrawReversibleLine, also apply same behavior to FillReversibleRectangle. 
5654         Fixes #80877 and #79418.
5655
5656 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
5657
5658         * MenuAPI.cs: Fix popup menu position when the size is larger than distance 
5659         between position and one of the screen borders. Fixes #82349.
5660
5661 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
5662
5663         * MessageBox.cs: When there is no form that invoked the MessageBox, shows
5664         the MessageBox in the taskbar. Fixes #82457.
5665
5666 2007-08-18  Everaldo Canuto  <ecanuto@novell.com>
5667
5668         * MessageBox.cs: Fix form size when icon is set and text height is bigger
5669         than icon. Fixes #82468.
5670
5671 2007-08-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5672
5673         * ThemeWin32Classic.cs: A FixedToolWindow has border size 3.
5674         * InternalWindowManager.cs: Change HandleCalcSize to return a boolean value
5675           if handled or not. Implement WM_NCCALCSIZE for WParam == 0 as well.
5676           Refactored HandleNCCalcSize somewhat to avoid code duplication.
5677         * Form.cs: Add is_clientsize_set, set in set_ClientSize, used by
5678           FormBorderStyle to decide if we're calculating a new size from the
5679           client size or not. CreateParams: Don't fake tool windows, only the X11
5680           backend manages toolwindows manually.
5681
5682 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
5683
5684         * Form.cs: Only reset is_visible if !IsDisposed to prevent an
5685         ObjectDisposedException.
5686
5687 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
5688
5689         * Form.cs: Reset is_visible back to true after OnLoad.  Setting this
5690         in OnLoad should not have any effect.  [Fixes bug #82470]
5691
5692 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
5693
5694         * ToolTip.cs: Add a hack to ToolTipWindow so it will still size and
5695         paint for controls that create their own ToolTipWindow instead of
5696         going through ToolTip.
5697
5698 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
5699
5700         * ToolTip.cs: Make Hide internal instead of public to match MS API.
5701
5702 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5703
5704         * ListViewGroupCollection.cs: Use generic List instead of an
5705         ArrayList, since this collection is 2.0 only.
5706
5707 2007-08-17  Jeffrey Stedfast  <fejj@novell.com>
5708
5709         * ToolTip.cs (Hide): Made public to make the build work (should
5710         this not be public?).
5711
5712 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
5713
5714         * ToolBar.cs, ToolStrip.cs, TreeView.cs: Use a ToolTip instead of a
5715         ToolTipWindow.
5716         * ToolTip.cs: Add an internal Visible property to facilitate transition.
5717
5718 2007-08-17  Jonathan Pobst  <monkey@jpobst.com>
5719
5720         * DrawToolTipEventArgs.cs, DrawToolTipEventHandler.cs, PopupEventArgs.cs,
5721         PopupEventHandler.cs: Make these internal for 1.1.
5722         * ThemeClearlooks.cs, ThemeWin32Classic.cs: Use TextRenderer, and modify to not
5723         use ToolTipWindow internals.
5724         * ToolTip.cs: Add 2.0 modal Show methods.  Had to move a lot of stuff around to
5725         support this.  A lot of stuff in the ToolTipWindow got moved to the ToolTip.
5726
5727 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5728
5729         * X11Dnd.cs: Add a null check.
5730
5731 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5732
5733         * X11Dnd.cs: MwfWindow: Try to load the control directly from the handle if
5734           nothing else succeeds. Fixes #82453.
5735
5736 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5737
5738         * XplatUIWin32.cs: PaintEventStart: validate the entire source client
5739           rectangle if we're painting to another window than the one the paint
5740           message was generated on. Simplify the code somewhat, which makes
5741           PaintEventEnd also simpler.
5742
5743 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5744
5745         * Control.cs: When changing parent of a form, let the form decide whether
5746           XplatUI.SetParent should be called or not.
5747         * Form.cs: ChangingParent: only call XplatUI.SetParent if we're not
5748           recreating the handle. If the new parent's handle isn't created, don't
5749           recreate our handle, just destroy it. CreateParams: Check if the
5750           parent's handle is created before fetching it.
5751
5752 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5753
5754         * Control.cs, Form.cs, InternalWindowManager.cs, MainMenu.cs, MdiClient.cs:
5755           Update calls to PaintEventStart/End to take a Message argument.
5756         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Update PaintEventStart/End to
5757           take a Message argument.
5758         * XplatUIWin32.cs, XplatUIX11.cs: Update PaintEventStart/End to take a
5759           Message argument, and handle the case where we don't paint to the window
5760           for which the paint message was generated.
5761
5762 2007-08-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5763
5764         * XplatUIWin32.cs: Don't call Win32GetLastError directly, use
5765           Marshal.GetLastWin32Error. Plug nasty memory leak in
5766           PaintEventStart/End, we were creating a DC we weren't releasing.
5767
5768 2007-08-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5769
5770         * ListView.cs: Add Groups support in Details view. Also have a small
5771         method to do the layout of the group header. Don't use a separate
5772         method to do the groups calculation in Icons view, since our methods
5773         are now a little simpler.
5774         * ListViewGroup.cs: Use the more accurate `HeaderBounds' name than
5775         `Bounds'.
5776         * ThemeWin32Classic.cs: Likewise.
5777
5778 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
5779
5780         * Application.cs: Add FilterMessage method and rework our message loop
5781         logic to use it.
5782
5783 2007-08-16  Jonathan Pobst  <monkey@jpobst.com>
5784
5785         * Application.cs: Add some methods and stub a few methods that are
5786         pretty much never used.
5787
5788 2007-08-15  Jonathan Pobst  <monkey@jpobst.com>
5789
5790         * TreeNode.cs: Add some serialization methods.
5791
5792 2007-08-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5793
5794         * ListView.cs: In ListViewItemCollection have a 
5795         'is_main_collection' field to not modify ListViewItem.ListView
5796         when using it as ListViewGroup.Items (and not ListView.Items)
5797         and also don't modify selection state (.Net behaviour). 
5798         Instead, set group for items contained in a ListViewGroup.Items collection.
5799         * ListViewItem.cs: Simplify some code in Group setter.
5800         * ListViewGroup.cs: use the new .ctor to pass the current instance
5801         to the ItemsCollection.
5802         * ListViewGroup.cs: Set the ListView property for ListViewGroup
5803         instances when adding/removing. Also make Remove use RemoveAt, which
5804         should perform better.
5805
5806 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
5807
5808         * Message.cs, TabControl.cs, TextBox.cs, TextBoxBase.cs: Hide some 2.0 API
5809         that crept into the 1.1 profile.
5810
5811 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
5812
5813         * ToolBarButton.cs: Implement ImageKey.
5814
5815 2007-08-14  Jonathan Pobst  <monkey@jpobst.com>
5816
5817         * ToolBar.cs: Implement ScaleControl/ScaleCore.
5818
5819 2007-08-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5820
5821         * PictureBox.cs: OnAnimateImage/UpdateAnimateImage: Check if handle is still
5822           created, it might have gotten destroyed since we last checked. Fixes
5823           #82405.
5824
5825 2007-08-11  Jonathan Pobst  <monkey@jpobst.com>
5826
5827         * ToolTip.cs: Remove mouse in control check from mouseleave handler so
5828         tooltip will hide when mouse is moved off the control.
5829         [Fixes bug #82407]
5830
5831 2007-08-11 Andreia Gaita <avidigal@novell.com>
5832
5833         * WebBrowserBase.cs, WebBrowser.cs: add implementation
5834         using Mono.Mozilla for loading and navigating webcontrol
5835         with xulrunner.
5836         The initial implementation was done on 
5837         /trunk/mozembed/tests/browser , and copied here.
5838
5839 2007-08-11  Gert Driesen  <drieseng@users.sourceforge.net>
5840
5841         * ThemeWin32Classic.cs: On 2.0 profile, use ForeColor and BackColor of
5842         ToolTipWindow for drawing the tooltip. Fixes bug #82408.
5843
5844 2007-08-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5845
5846         * DataGridView.cs: Add support for an editing row. Fixes #82226.
5847           RowTemplateFull: throw an exception if a column doesn't have a template.
5848         * DataGridViewRowCollection.cs: AddInternal: if there are any editing rows,
5849           add the row just before it.
5850         * DataGridViewTextBoxCell.cs: Don't paint cells which are in edit mode as
5851           selected.
5852         * DataGridViewSelectedRowCollection.cs: Don't return the editing row. Add a
5853           DataGridView field to be able to reach the grid's editing row.
5854
5855 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
5856
5857         * ToolTip.cs: If the control's handle hasn't been created when it has a
5858         tooltip set on it, don't check to see if we need to show the tooltip.  This
5859         check was causing the control's handle to be created.
5860         [Fixes bug #82399]
5861
5862 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
5863
5864         * TextBoxBase.cs: Fix SelectionLength when no text selected to match MS:
5865                                         1.1             2.0
5866         Handle Not Created      -1              0
5867         Handle Created          0               0
5868         [Fixes bug #82371]
5869
5870 2007-08-10  Jonathan Pobst  <monkey@jpobst.com>
5871
5872         * ToolTip.cs: Hide the tooltip if the control is clicked to match MS behavior.
5873         [Fixes bug #82348]
5874
5875 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
5876
5877         * DrawToolTipEventArgs.cs: Don't dispose a brush we got from the respool.
5878         * ToolTip.cs: Implement some properties and owner draw.
5879
5880 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5881
5882         * DataGridView.cs: OnPaint: don't set scrollbar visibility to false then
5883           show them again, since setting visibility causes a paint, causing an
5884           endless loop (instead use a temporary and set it all when it's known if
5885           they should be shown or not). Fixes #79265.
5886
5887 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5888
5889         * DataGridView.cs: Only do a full column/row selection if a header was
5890           clicked and we're in Column/RowHeader selection mode. If shift and ctrl
5891           isn't pressed, deselect everything before selecting something.
5892
5893 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5894
5895         * DataGridView.cs: Fix SelectedRows and SelectedColumns to match MS
5896           behaviour according to bug #81075 - they are returned in the order they
5897           are selected. Fix HitTest to check if the point is within any of the
5898           headers. Allow for row/column selection when in ColumnHeader or
5899           RowHeader selection mode. Add SetSelected[Column|Row]CoreInternal for
5900           the row and column to call when their selected state changes, and
5901           updated selected_[rows|columns] whenever SetSelected* is called.
5902         * DataGridViewBand.cs: Initialize isRow correctly. Call
5903           SetSelected[Row|Column]CoreInternal when the selected state changes, and
5904           add a SelectedInternal to avoid StackOverflows.
5905         * DataGridViewColumn.cs, DataGridViewRow.cs: If DGV is ReadOnly, we're also
5906           ReadOnly no matter what.
5907         * DataGridViewSelectedColumnCollection.cs,
5908           DataGridViewSelectedRowCollection.cs: Add an InternalAddRange that adds
5909           the items in reverse order (just as MS does...)
5910
5911 2007-08-09  Jonathan Pobst  <monkey@jpobst.com>
5912
5913         * Application.cs: Only release menustrips if Alt (MenuKey) is pressed by
5914         itself, not part of a mnemonic.  [Fixes bug #82378]
5915
5916 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5917
5918         * DataGridView.cs: BeginEdit: don't allow editing of readonly cells.
5919         * DataGridViewCell.cs: Implement ReadOnly better: the cell is ReadOnly if
5920           the DGV, the column, the row, or the cell itself is readonly.
5921
5922 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
5923
5924         * ThemeNice.cs: Use XplatUI.RunningOnUnix instead of checking
5925         OSVersion.Platform.
5926         * FileDialog.cs: Same.
5927         * TextRendered.cs: Same.
5928         * FolderBrowserDialog.cs: Same.
5929         * TextBoxBase.cs: Same.
5930         * Application.cs: Same.
5931         * Cursors.cs: Same.
5932         * ThemeClearLooks.cs: Same.
5933
5934 2007-08-09  Gert Driesen  <drieseng@users.sourceforge.net>
5935
5936         * XplatUI.cs: Added RunningOnUnix property to be used by controls
5937         instead of duplicating these checks everywhere.
5938         * FileDialog.cs: Use case-insensitive comparison for populating the
5939         DirComboBox when not running on unix. Fixes bug #82385.
5940         * OpenFileDialog.cs: to match MS, change label of DirComboBox to 
5941         "Look in".
5942
5943 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5944
5945         * DataGridView.cs: SelectedRows: we need to check if selectionMode is
5946           FullRowSelect (not FullColumnSelect). Fixes #81075. Implemented
5947           BeginEdit, EndEdit, SetSelected<Cell|Row|Column>Core. Implemented row,
5948           cell and column selection with ctrl and shift pressed. Call the correct
5949           BeginEdit/EndEdit whenever we start/end editing. Move painting code to
5950           the corresponding virtual method (PaintBackground to paint background,
5951           etc).
5952         * DataGridViewCell.cs: Implement Selected correctly, we're selected if
5953           either the column, row or the cell itself is selected.
5954         * DataGridViewRowCollection.cs: Use DGV.OnRowsAddedInternal instead of
5955           OnRowsAdded.
5956         * DataGridViewRow.cs: Moved some of the painting code from DataGridView
5957           here. When the row is selected, don't select all cells. Each cell now
5958           queries the row to see if the row is selected.
5959
5960 2007-08-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
5961
5962         * DataGridViewColumn.cs: Throw if the SortMode conflicts with DataGridView's
5963           SelectionMode.
5964
5965 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5966
5967         * ListView.cs: In ListViewItemsCollection check that owner is
5968         not null before trying to access it (this happens quite often
5969         using Groups). Also don't duplicate calls by calling CollectionChanged
5970         method.
5971
5972 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
5973
5974         * ToolStrip.cs: Record if we were activated by mouse or keyboard.  Redraw
5975         when we are dismissed to clear keyboard mnemonics.
5976         * MenuStrip.cs, ToolStripDropDown.cs, ToolStripItem.cs, 
5977         ToolStripMenuItem.cs: Record if we were activated by mouse or keyboard.
5978         * ToolStripItemTextRenderEventArgs.cs: Draw mnemonic underlines if menu
5979         was activated by keyboard or the OS tells us to always draw them.
5980         * ToolStripManager.cs: Setup storage for activated by mouse or keyboard.
5981         [Fixes bugs #82376, #82377]
5982
5983 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
5984
5985         * Control.cs: If no one accepts a mnemonic, let the MenuStrip have a 
5986         shot at having it because Alt was pressed.
5987         * MenuStrip.cs: When handling Alt, don't select a SystemMenuItem, select
5988         the first real menu item.
5989         * ToolStrip.cs: Don't crash when looking for a ToolStripItem to handle
5990         a mnemonic if Text is null.
5991         [Fixes bug #82374]
5992
5993 2007-08-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
5994
5995         * ListView.cs: In ListViewItemCollection.AddItem, don't do a linear
5996         search do check whether the item is already contained in the
5997         collection or not; instead check if the owner of the item is the same
5998         as ours. Also, remove a redundant check in the same method. 
5999
6000 2007-08-08  Jonathan Pobst  <monkey@jpobst.com>
6001
6002         * Control.cs: Allow the clip region to be set back to null.
6003         * XplatUIWin32.cs: If we are sent a null clip region, use IntPtr.Zero.
6004         [Fixes button still showing up in bug #82370 when Show Through is turned off]
6005
6006 2007-08-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6007
6008         * GridEntry.cs: Add a null check.
6009         * PropertyGrid.cs: When checking for existing grid entries, ignore category
6010           entries. Fixes #82297.
6011
6012 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
6013
6014         * OwnerDrawPropertyBag.cs: Make the serialization constructor protected
6015         for 2.0.
6016
6017 2007-08-07  Jonathan Pobst  <monkey@jpobst.com>
6018
6019         * ListBox.cs: Implement ScaleControl.
6020
6021 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6022
6023         * Form.cs: Add a few ActiveMenu null checks. ActiveMenu might be null if we
6024           have a menu strip.
6025         * MdiWindowManager.cs: Don't create a maximized menu if the child or it's
6026           parent has a menu strip. Fixes #81689.
6027
6028 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6029
6030         * ToolTip.cs: We don't get mouse events on all platforms in the exact same
6031           moments, so apply some fuzzy logic to determine if the mouse is still
6032           inside a control or not. Fixes #82288 (for the third time).
6033
6034 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6035
6036         * Control.cs: CreateControl: create implicit children as well. Fixes #82344.
6037           Don't create the child if it has been disposed already (may happen if
6038           the user closes the form the Load event).
6039
6040 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6041
6042         * ToolTip.cs: If ReshowDelay is 0, show the tooltip immediately. Fixes
6043           #82288.
6044
6045 2007-08-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6046
6047         * Control.cs: Add a null check in OnParentBindingContextChanged. The parent
6048           might call us after we've been destroyed, in which case our own private
6049           parent field is null. Fixes #82326.
6050
6051 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
6052
6053         * ToolStripDropDown.cs: Fix a failing test on X11 by adding a null
6054         check for setting the dropdown's owner.
6055
6056 2007-08-06  Jonathan Pobst  <monkey@jpobst.com>
6057
6058         * MdiClient.cs: Fix some failing tests on X11 by adding a null check
6059         before removing system menu items.
6060
6061 2007-08-02  Jonathan Pobst  <monkey@jpobst.com>
6062
6063         * MdiClient.cs, MdiWindowManager.cs: Support 2.0 Mdi MenuStrip
6064         folding.
6065         * MdiControlStrip.cs: Added.  These are the menu items used in mdi
6066         folding.
6067         * ToolStrip.cs: Add a null check to mnemonics.
6068         * ToolStripDropDownMenu.cs: When using a SystemMenuItem, there is
6069         no ConnectedArea.
6070         [Fixes most of bug #81689]
6071
6072 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6073
6074         * PropertyGrid.cs: Add a null-check. Fixes #82289/SVGPad.
6075
6076 2007-08-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6077
6078         Use InitialDelay if ReshowDelay is zero. Fixes #82288.
6079
6080 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6081
6082         * DataGridViewCell.cs: EditType: returns
6083           DataGridViewTextBoxEditingControl always.
6084
6085 2007-08-01  Jonathan Pobst  <monkey@jpobst.com>
6086
6087         * TextRenderer.cs: Remove the LineLimit string format flag from the
6088         DrawString fallback method so that things like buttons that aren't
6089         tall enough to draw a full line will still draw part of the text.
6090         [Fixes part of bug #82272]
6091
6092 2007-08-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6093
6094         * DataGridView.cs: Implemented AutoResizeColumn(s).
6095         * DataGridViewCellStyle.cs: Added SetAlignment, fills in a StringFormat
6096           according to the Alignment.
6097         * DataGridViewColumnHeaderCell.cs, DataGridViewTextBoxCell.cs:
6098           Implement alignment and padding when painting.
6099         * DataGridViewRow.cs: SetValues: Don't create a cell if it already
6100           exists.
6101         * DataGridViewCell.cs: Implement BorderWidths in the most primitive
6102           way.
6103         * DataGridViewColumnCollection.cs: Raise OnColumnAdded on the DGV when
6104           a column is added.
6105
6106 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
6107
6108         * TextBoxBase.cs: Use Control.ExplicitBounds instead of explicit_bounds,
6109         which is internal.
6110
6111 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
6112
6113         * ToolStrip.cs: Stub out drag and drop methods, fix some corcompare stuff,
6114         hide GetPreferredSize from public API.
6115         * ToolStripDropDown.cs: Override AllowItemReorder, fix AccessibleObject.
6116         * ToolStripItem.cs: Stub out drag and drop methods and events.
6117         * ToolStripManager.cs: Stub out Save/LoadSettings.
6118         * ToolStripOverflow.cs: Use renamed ToolStrip.GetPreferredSize.
6119         * ToolStripPanel.cs: Fix corcompare error.
6120         * ToolStripPanelRow.cs: Use renamed ToolStrip.GetPreferredSize.
6121         * ToolStripSplitButton.cs: Fix AccessibleObject stuff.
6122         * ToolStripSplitStackLayout.cs: Use renamed ToolStrip.GetPreferredSize.
6123
6124 2007-07-31  Jonathan Pobst  <monkey@jpobst.com>
6125
6126         * TextBoxBase.cs: In our new GetPreferredSizeCore, return the explicit
6127         bounds height instead of PreferredHeight.  Puts things back the way 
6128         they were for height while still fixing the width.  Fixes broken unit
6129         tests.
6130
6131 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6132
6133         * Binding.cs: Implement 2.0 constructors and add a null check.
6134
6135 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6136
6137         * DataGridViewRowCollection.cs: Allow a null DGV in the constructor,
6138           and fix row index (off by one).
6139
6140 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6141
6142         * PropertyGridView.cs: Remove debug output.
6143
6144 2007-07-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6145
6146         * Control.cs: We need to reset the is_created flags when the handle is
6147           destroyed. Fixes #82187.
6148         * XplatUIWin32.cs: In GetWindowRect don't offset screen coordinates to
6149           client coordinates if the window doesn't have a parent.
6150           Win32GetParent returns the parent or the owner, and for top-level
6151           windows with no parent (but with an owner) we were calculating the
6152           location from the location of the owner.
6153         * Form.cs: Remove incorrect fix for #82187. Don't raise OnLoad if the
6154           form has been disposed.
6155         * MdiClient.cs: Add a null-check.
6156
6157 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
6158
6159         * TextBoxBase.cs: TextBoxBase reports itself at AutoSize, but doesn't
6160         actually do auto-sizing.  Override the internal GetPreferredSizeCore 
6161         so we can provide an implementation that returns the current width
6162         and preferred height.  Allows anchor = right to work with TextBox 2.0.
6163         [Fixes bug #82233]
6164
6165 2007-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6166
6167         * ListView.cs: Add support for navigating items in Groups mode, by
6168         creating a big matrix containing all rows and cols of all groups. When
6169         are in other mode than Details, pressing Up should have a similar
6170         behaviour as that one of Down (moving to the next available column if
6171         current one doesn't have an item in the requested row). Also, don't
6172         proceed to use groups if ShowGroups is false.
6173         * ListViewGroup.cs: Add an internal int field to store the starting
6174         row of the group (used by the big matrix used for navigating the
6175         ListView).
6176         * ThemeWin32Classic.cs: Don't draw headers if ListView.ShowGroups is
6177         false.
6178
6179 2007-07-30  Jonathan Pobst  <monkey@jpobst.com>
6180
6181         * ToolStripDropDown.cs: When we do Show, start with the 
6182         DefaultDropDownDirection, but if our popup menu is going to off-screen,
6183         modify the direction to keep it on screen.  [Fixes bug #82210]
6184
6185 2007-07-29  Gert Driesen  <drieseng@users.sourceforge.net>
6186
6187         * FileDialog.cs: Accept any FilterIndex value, and store it
6188         unmodified. When FilterIndex is less than 1, or greater than number
6189         of filters, then default to first filter. Only add filter extension to
6190         file if user did not specifiy an extension. When type of dialog is
6191         OpenFileDialog and DefaultExt is set, then only use filter extension
6192         if: CheckFileExists is true and no file wih the default extension
6193         exists, or CheckFileExists is false, and user specified file does not
6194         exist. When CheckFileExists is true, then add first extension of 
6195         selected filter that matches existing file. Perform checks for
6196         existing file, overwrite and create after extension has been added to
6197         file name. When CheckFileExists is true and type is SaveFileDialog,
6198         then only consider first filter extension if DefaultExt is set.
6199         When CheckFileExists is true, then ignore DefaultExt if file with that
6200         extension does not exist. Also perform check for existing file when
6201         type is SaveFileDialog. Changed some field to constants.
6202
6203 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6204
6205         * ListView.cs: Take into account the region used by header
6206         control when doing the vertical scroll (this way we invalidate
6207         the precise area, and don't get any dirty one).
6208
6209 2007-07-27  Everaldo Canuto  <ecanuto@novell.com>
6210
6211         * FileDialog.cs: Check for valid filterIndex on button open/save. 
6212         Fixes #82184.
6213
6214 2007-07-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6215
6216         * ListView.cs: Update some layout calculations in details view
6217         and clean the code in a pair of assignations.
6218
6219 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
6220
6221         * ComboBox.cs, ContainerControl.cs, DataGrid.cs, FontDialog.cs, Label.cs,
6222         LinkLabel.cs, ListBox.cs, ListView.cs, ListViewItem.cs, MessageBox.cs,
6223         MonthCalender.cs, StatusBar.cs, ThemeClearlooks.cs, ThemeWin32Class.cs,
6224         ToolBar.cs, TreeView.cs: First pass at using thread-safe string measuring.
6225
6226 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
6227
6228         * TextRenderer.cs: Use [ThreadStatic] instead of locks to improve
6229         performance of thread-safe Graphic methods.  (Thanks rolf!)
6230
6231 2007-07-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6232
6233         * ListView.cs: When doing the layout calculations, don't calculate
6234         scroll bars before handle is created. This is unnecessary and also
6235         calculating them before handle creation item causes a number of random
6236         bugs (which begin to appear after Chris' big patch for handle creation
6237         fixes). 
6238
6239 2007-07-26  Jonathan Pobst  <monkey@jpobst.com>
6240
6241         * TextRenderer.cs: Create thread-safe versions of Graphics.MeasureString
6242         for things that don't have a Graphics object.  Currently, things just use
6243         the static Hwnd.bmp_g which is not thread safe.
6244
6245 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6246
6247         * Form.cs: ShowDialog: don't destroy handles if the dialog is a common
6248           dialog. Fixes #82187.
6249
6250 2007-07-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6251
6252         * DataGridViewElement.cs: Initialize state.
6253         * DataGridView.cs: Forward a few Mouse events to cells. Add
6254           GetRowInternal and GetCellInternal that doesn't unshare rows.
6255           Implement GetCellDisplayRectangle. HitTest: if the row is shared,
6256           don't use the index, but look it up. Add
6257           DataGridViewControlCollection.RemoveInternal to remove controls
6258           that Remove won't remove (scrollbars, edit control).
6259         * DataGridViewColumn.cs: Initialize State correctly.
6260         * DataGridViewColumnHeaderCell.cs, DataGridViewComboBoxCell.cs,
6261           DataGridViewHeaderCell.cs, DataGridViewRowHeaderCell.cs: Started
6262           implementing this.
6263         * DataGridViewRowCollection.cs: Implemented shared rows.
6264         * DataGridViewRow.cs: Throw exceptions as MS do.
6265         * DataGridViewCell.cs: A few properties are implemented by a
6266           Get<Property> method, so move implementation there and remove the
6267           NIEX in the method. Add a bunch of OnXInternal that DataGridView
6268           calls when necessary.
6269         * DataGridViewComboBoxEditingControl.cs: Remove a few NIEX'es that just
6270           complicates matters.
6271         * DataGridViewCellCollection.cs: Add a GetCellInternal that doesn't
6272           unshare any rows.
6273
6274 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
6275
6276         * UpDownBase.cs: We cannot override SetBoundsCore for 2.0, which was relayout-ing
6277         the children controls.  Instead, we will just set up the proper docking for the
6278         children controls so we don't have to worry about it.  [Fixes bug #82188]
6279
6280 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
6281
6282         * TreeView.cs, NodeLabelEditEventArgs.cs, LabelEditTextBox.cs: Support edit
6283         canceling and correct Before/AfterLabelEdit properties as layed out in bug
6284         81847.  [Fixes bug #81847]
6285
6286 2007-07-25  Jonathan Pobst  <monkey@jpobst.com>
6287
6288         * Label.cs: If AutoSize = true and a width or height is set, ignore it and
6289         redo the autosize.  VS2005 defaults to setting the AutoSize, and then setting
6290         an explicit size based on the design-time size of the text.  Since our fonts
6291         may not match this explicit size, we tend to cut off the ends of people's labels.
6292
6293 2007-07-24  Jonathan Pobst  <monkey@jpobst.com>
6294
6295         * Menu.cs: Add some missing methods to MenuItemCollection.
6296
6297 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6298
6299         * DataGridView.cs: Added RowTemplateFull, creates a row from the templates in the columns.
6300         * DataGridViewBand.cs: DefaultHeaderCellType: initialize correctly. Resizable: if not set, check DGV.
6301         * DataGridViewColumn.cs: InheritedAutoSizeMode: if not set, check DGV. Resizable: delegate to base class. ToolTipText: Never return null. Initialize a few other properties correctly.
6302         * DataGridViewColumnCollection.cs: Add: Default column is a TextBoxColumn.
6303         * DataGridViewComboBoxCell.cs: Started implementing this, lots left still.
6304         * DataGridViewElement.cs: State defaults to Visible.
6305         * DataGridViewRowCollection.cs: Add: creates the new row based on a template.
6306         * DataGridViewTextBoxColumn.cs: SortMode: delegate to base class, but initialize to Automatic. ToString: implement correctly.
6307
6308 2007-07-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6309
6310         * Control.cs: Minor 1.1 corcompare fix.
6311
6312 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
6313
6314         * LinkLabel.cs, PrintPreviewDialog.cs, TabPage.cs, TextBox.cs,
6315         TextBoxBase.cs, ToolBar.cs: 2.0 corcompare work.
6316
6317 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6318
6319         * DataGridViewLinkColumn.cs, DataGridViewRowCollection.cs,
6320           DataGridViewImageColumn.cs, DataGridViewSelectedCellCollection.cs,
6321           DataGridViewComboBoxCell.cs, DataGridViewLinkCell.cs,
6322           DataGridViewSelectedColumnCollection.cs,
6323           DataGridViewSelectedRowCollection.cs: Corcompare work.
6324
6325 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
6326
6327         * PrintDialog.cs: Stub UseEXDialog.  I chose to stub this because
6328         it is autoset by VS2005 designer and the effect is barely noticeable.
6329
6330 2007-07-23  Jonathan Pobst  <monkey@jpobst.com>
6331
6332         * TreeView.cs: Implement HitTest.
6333
6334 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6335
6336         * DataGridViewTextBoxCell.cs: Use DGV.EditControlInternal instead of
6337           manually adding and removing the control from the Controls
6338           collecftion.
6339         * DataGridView.cs: Implement DataGridViewControlCollection. Add an
6340           EditingControlInternal property that tracks the editing control.
6341           Always keeping the scrollbars in the Controls collection, as MS
6342           testing confirms is the right behaviour.
6343
6344 2007-07-23  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6345
6346         * ScrollableControl.cs: Fix implementation of AutoScrollPosition
6347           according to MSDN and new test.
6348
6349 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
6350
6351         * TreeNode.cs: Implement ToolTipText.
6352         * TreeView.cs: Implement tooltips, NodeMouse* events.
6353
6354 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
6355
6356         * TreeView.cs: Implement OnNodeMouseClick and OnNodeMouseDoubleClick.
6357
6358 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
6359
6360         * TreeNode.cs: Implement ContextMenu, ContextMenuStrip, and Level.
6361         * TreeView.cs: Use the node's contextmenu[strip] if applicable.
6362
6363 2007-07-20  Ivan N. Zlatev  <contact@i-nz.net>
6364
6365         * Control.cs, Form.cs, ContainerControl.cs,
6366         ScrollableControl.cs, ButtonBase.cs:  Added ShouldSerialize
6367         for misc properties.
6368
6369 2007-07-20  Jonathan Pobst  <monkey@jpobst.com>
6370
6371         * TreeNode.cs: Implement StateImageIndex and StateImageKey.
6372         * TreeView.cs: Implement StateImageList.
6373
6374 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6375
6376         * Form.cs: Don't check if the current form is the active form before
6377           activating it. Fixes #81904.
6378
6379 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6380
6381         * Form.cs: Don't check if the current form is the active form before
6382           activating it. Fixes #81904.
6383
6384 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6385
6386         * TreeView.cs: Apply patch from Tyron (tmm@aon.at). Fixes #81847.
6387
6388 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6389
6390         * Form.cs: Don't try to position the form after loading if the form was
6391           disposed. Fixes #81969.
6392
6393 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6394
6395         * PropertyGrid.cs, PropertyGridView.cs: Implemented 2.0 methods and
6396           properties. Had to change ToolBar into ToolStrip, which required a
6397           few #ifs.
6398
6399 2007-07-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6400
6401         * PropertyGrid.cs: PropertyToolBar: Redraw the entire toolbar when it's
6402           resized, fixes part of #79829 (vertical lines in toolbar).
6403           PropertyGrid: Refactored Populate* to something that's easier to
6404           follow at least for me, as well as splitting it up into several new
6405           methods, required to update only subitems when something has
6406           changed by a popup editor or listbox. Don't use events to check
6407           when any values are changed, since the events are unreliable (we're
6408           changing the objects the events are registered with, and if the
6409           event handling requires the objects to be immutable (objects stored
6410           in hashtables for instance), the events will never be raised).
6411         * PropertyGridView.cs: Call PropertyGrid.PropertyValueChangedInternal
6412           everytime we change a value, since events are unreliable.
6413           DropDownButtonClicked: For the same reason don't compare objects to
6414           check if it has changed or not, it would require all objects to
6415           derive Equals. Fix dialog location on windows, MS is doing weird
6416           things when creating parented forms.
6417         * GridEntry.cs: Add a SelectedObject setter.
6418
6419 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
6420
6421         * TreeNode.cs: Add some corcompare attributes.
6422         * TreeNodeCollection.cs: Implement 2.0 stuffs.
6423         * TreeView.cs: Implement some 2.0 stuffs.
6424
6425 2007-07-18  Andreia Gaita  <avidigal@novell.com>
6426
6427         * WebBrowser.cs, WebBrowserBase.cs: add some more MonoTODOs now
6428         for moma.
6429
6430 2007-07-19  Jonathan Pobst  <monkey@jpobst.com>
6431
6432         * ListBox.cs: Implement custom tab offsets.
6433
6434 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
6435
6436         * ToolStripContentPanel.cs: Support System renderer.
6437         * ToolStripControlHost.cs: Set RightToLeft to default to No.
6438
6439 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
6440
6441         * ScrollableControl.cs: Don't mess up the user's explicit bounds.
6442
6443 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
6444
6445         * CheckBox.cs: Chain TextAlign to base implementation instead of
6446         maintaining another one.
6447
6448 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
6449
6450         * ButtonBase.cs: Fix an incorrect string constant.
6451
6452 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
6453
6454         * TextRenderer.cs: Use the static Graphics context in Hwnd instead
6455         of creating one for measuring strings.
6456
6457 2007-07-18  Jonathan Pobst  <monkey@jpobst.com>
6458
6459         * ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownMenu.cs: 
6460         Implement MaxItemSize.
6461
6462 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
6463
6464         * Control.cs: Remove per-control 1x1 Bitmap and Graphics context used
6465         for DeviceContext.  Instead, use the static one available in Hwnd.
6466         Informal tests show this saves about 500k on formtest.exe.
6467
6468 2007-07-17  Jonathan Pobst  <monkey@jpobst.com>
6469
6470         * ContainerControl.cs: Implement 2.0 AutoScaling.
6471
6472 2007-07-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6473
6474         * ComboBox.cs: Work around bug #82120 (bug in mcs).
6475
6476 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
6477
6478         * ThemeWin32Classic.cs: Allow a Flat button to be Focused and Entered.
6479         Darken the focus color.
6480
6481 2007-07-16  Jonathan Pobst  <monkey@jpobst.com>
6482
6483         * ListBox.cs: When measuring items, if it's a CheckedListBox, add room
6484         for the checkbox.
6485         * ThemeWin32Classic.cs: Make the checkbox bigger in a CheckedListBox and use
6486         X, Y instead of a rect for drawing text.
6487         - For ControlPaint.DrawCheckBox, center the check a little better when the
6488         checkbox is odd width.  When drawing a flat checkbox, use a white background
6489         when state != inactive.
6490         [Fixes bugs #82097, 82100]
6491
6492 2007-07-16  Gert Driesen  <drieseng@users.sourceforge.net>
6493
6494         * ListControl.cs: When changing CurrencyManager, disconnect event
6495         handlers from previous one. Fixes bug #81771. Code formatting.
6496
6497 2007-07-15  Andreia Gaita <avidigal@novell.com>
6498
6499         * PrintPreviewControl.cs: Remove extraneous Invalidate calls. Separate
6500         full preview invalidation from layout invalidation, and only invalidate
6501         the layout when setting zoom or other properties. Invalidation should
6502         always be done even when resetting properties with the same values as
6503         what is there. Fixes #81744 and #79830.
6504
6505 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6506
6507         * ListView.cs: Implement initial support for Groups. Split some of the
6508         LayoutIcons code to render a partial list of the items (needed by
6509         items contained in ListViewGroup instances). Let the
6510         ListViewItemsCollection.ListView property be modifiable (needed when
6511         using Groups, too).
6512         * ListViewGroup.cs: Use a Bounds property rather than a Location
6513         one. Also invalidate the bounds when they get changed.
6514         * ThemeWin32Classic.cs: When drawing items, also draw the group header
6515         if ListView.Groups.Count is bigger than 0. Add a DrawListViewGroupHeader
6516         method as well.
6517
6518 2007-07-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6519
6520         * ListView.cs: When space gets pressed and CheckBoxes is true, 
6521         don't invoke the Begin and EndUpdate methods. We are generating 
6522         a redraw of the entire control without need to do so.
6523
6524 2007-07-13  William Holmes <billholmes54@gmail.com> 
6525
6526         * Control.cs: Changing logic in FindFlatForward and 
6527           FindFlatBackward to handle multiple Controls with 
6528           the same TabIndex.  
6529           This fixes bug 81687.
6530
6531 2007-07-13  Jonathan Pobst  <monkey@jpobst.com>
6532
6533         * OSFeature.cs: Enable IsPresent.
6534
6535 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6536
6537         * Control.cs: Don't do anything in WmShowWindow if the control has been
6538           disposed. We can get WM_SHOWWINDOW after a control is disposed: a
6539           control is created, put on a form, the control is disposed (the
6540           form is never shown), and then we get a MapNotify, triggering a
6541           WM_SHOWWINDOW.
6542         * Form.cs: Exclude the current form when sending Deactivate to all
6543           MdiChildren.
6544         * NativeWindow.cs: Set WindowCreating to null as soon as possible,
6545           there was a race condition because assigning the handle raises
6546           events, we can get more messages, therefore trying to assign the
6547           handle again, which would fail if any of those event handlers
6548           closed/disposed the control.
6549
6550 2007-07-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6551
6552         * Form.cs: Make the fix for #80775 windows-only (fixes #81957).
6553
6554 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
6555
6556         * SystemInformation.cs, Theme.cs, XplatUI.cs, XplatUIDriver.cs,
6557         XplatUIWin32.cs: Implement SystemInformation 2.0 properties.
6558
6559 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6560
6561         * DateTimePicker.cs: If there's no part format specifier, return an
6562           empty string.
6563
6564 2007-07-12  Jonathan Pobst  <monkey@jpobst.com>
6565
6566         * FlatButtonAppearance.cs: Throw NotSupportedException for a
6567         Transparent BorderColor.
6568
6569 2007-07-12  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6570
6571         * DataGridView.cs, TextControl.cs, ProgressBar.cs, PrintDialog.cs,
6572           MessageBox.cs, ButtonBase.cs, PageSetupDialog.cs, NumericUpDown.cs,
6573           X11Dnd.cs, Binding.cs, DataGrid.cs, AxHost.cs,
6574           LinkLabelLinkClickedEventArgs.cs, TextRenderer.cs, Label.cs,
6575           LinkLabel.cs, TreeNode.cs, BindingSource.cs, TabPage.cs,
6576           TextBoxBase.cs, BindingNavigator.cs, Application.cs,
6577           ToolStripPanel.cs, TabControl.cs, ThemeClearlooks.cs, TreeView.cs:
6578           Remove warnings.
6579         * X11Structs.cs: Remove warnings, add ToString implementations.
6580
6581 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6582
6583         * XplatUIX11.cs: Translate min/max size according to the actual min/max
6584           size, and not the current size. Fixes #81798.
6585
6586 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6587
6588         * XplatUIX11.cs: Fix #80822 again (DefWndProc can be reached before
6589           XplatUI.CreateWindow returns, in which case the hwnd isn't assigned
6590           to the control yet).
6591
6592 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6593
6594         * PropertyGridTextBox.cs: Add a method that sends any forwarded
6595           mousedowns to the contained textbox.
6596         * X11Structs.cs: More ToString implementation.
6597         * PropertyGridView.cs: Forward any mousedowns to the textbox, fixes
6598           #81791.
6599
6600 2007-07-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6601
6602         * PropertyGridView.cs: Add a null-check, fixes a few tests.
6603
6604 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
6605
6606         * TableLayoutPanelCellPosition.cs: TypeConverter.
6607
6608 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6609
6610         [ Fixes #79761]
6611         
6612         * PropertyGridTextBox.cs: Propagate any color changes to all contained
6613           controls.
6614         * PropertyGridView.cs: A few color fixes.
6615
6616 2007-07-10  Jackson Harper  <jackson@ximian.com>
6617
6618         * TextControl.cs: Remove some old unused text formatting stuff.
6619
6620 2007-07-10  Jackson Harper  <jackson@ximian.com>
6621
6622         * TreeView.cs: Update full row select invalidation to match the
6623         newer DrawSelection... method.
6624         - Make sure to invalidate the entire width when selecting a new
6625         node, if we have full row selection enabled.
6626
6627 2007-07-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
6628
6629         * PropertyGridView.cs: Fix for #81800, makes text show up on initial
6630           display of properties again.
6631
6632 2007-07-10  Jonathan Pobst  <monkey@jpobst.com>
6633
6634         * ListBox.cs: Add IntegerCollection and Add, Clear, Remove
6635         to existing collections.
6636
6637 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
6638
6639         * AccessibleObject.cs, RadioButton.cs: Fix some base classes
6640         that changed between 1.1 and 2.0.
6641
6642 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
6643
6644         * PowerStatus.cs: Added.  This is just a data class, it is filled
6645         in by SystemInformation.
6646
6647 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
6648
6649         * Message.cs: Add op_Equality and op_Inequality.
6650
6651 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
6652
6653         * MenuStrip.cs: Finish corcompare work.
6654
6655 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
6656
6657         * LinkArea.cs: Add op_Equality and op_Inequality.
6658
6659 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
6660
6661         * Application.cs: Add MessageLoopCallback delegate.
6662
6663 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
6664
6665         * ListBox.cs: First set of 2.0 stuffs.
6666
6667 2007-07-09  Jonathan Pobst  <monkey@jpobst.com>
6668
6669         * Control.cs: Make an internal Height property we can override
6670         without messing up the public API.
6671         * ListBox.cs: Override HeightInternal to always return the size
6672         the user set.  [Fixes bug #80466]
6673
6674 2007-07-08  Jonathan Pobst  <monkey@jpobst.com>
6675
6676         * TableLayoutPanel.cs: Add a null check so we don't NRE trying to
6677         paint cell borders if we haven't calculated where they go yet.
6678         [Fixes bugs #82040 and #82041]
6679
6680 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6681
6682         * ListView.cs: In Details view, set the location of item_control
6683         in the (0,0) position (and the header_control is thus on the
6684         item_control). This way the Bounds of the Items are relative to the
6685         ListView control (before this, they had a Bounds value without the
6686         header_control offset, which wasn't matching .Net). Fixes #82004.
6687
6688 2007-07-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6689
6690         * ListControl.cs: When DataSource is set to null, pass an empty
6691         array of object to SetItemsCore. This is done to clean the items
6692         in the ListContol children. Fixes #81788.
6693
6694 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
6695
6696         * ListControl.cs: Add 2.0 stuffs.
6697
6698 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
6699
6700         * Label.cs: Finish up 2.0 stuffs.  Replace calls to Refresh with Invalidate,
6701         Refresh is overkill for just about every repaint request.
6702
6703 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
6704
6705         * ToolStripItem.cs: TextDirection getter handles looking up Inherit for us,
6706         so remove my custom Get method and fix the property getter.
6707
6708 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
6709
6710         * Label.cs: DefaultMargin for 2.0.
6711
6712 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
6713
6714         * ComboBox.cs: Override IsInputCharInternal and return true.  Fixes 
6715         reported issue where other controls with mnemonics would steal strokes
6716         from a selected ComboBox.
6717
6718 2007-07-06  Jonathan Pobst  <monkey@jpobst.com>
6719
6720         * ScrollOrientation.cs: Make internal for 1.1.
6721         * ScrollEventArgs.cs: Add 2.0 stuffs.
6722
6723 2007-07-05  Jonathan Pobst  <monkey@jpobst.com>
6724
6725         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
6726         ToolStripItem.cs, ToolStripItem.cs, ToolStripItemTextRenderEventArgs.cs,
6727         ToolStripRenderer.cs, ToolStripSeparator.cs: Implement TextDirection.
6728
6729 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6730
6731         * ListViewItem.cs: Implement the small 2.0 GetSubItemAt method.
6732
6733 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6734
6735         * ListView.cs: Implement the so-incredibly broken 2.0 
6736         VirtualItemsSelectionRangeChanged event.
6737
6738 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6739
6740         * ListView.cs: When enter is pressed and selection is non empty,
6741         an OnItemActivate event must be fired.
6742
6743 2007-07-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6744
6745         * ListView.cs: Store the FocusedItem information as an
6746         int instead of a ListViewItem (needed by VirtualMode).
6747         Update the calls to SetFocusedItem to pass an index instead of
6748         an item.
6749         * ListViewItem.cs: Likewise. Also, in VirtualMode retrieve
6750         the Focused state from the owner ListView. 
6751
6752 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6753
6754         * ListView.cs: Set ListView.focused_item from ListViewItem.Focused
6755         property. Also, invalidate previous focused item in the mentioned
6756         property (match .Net).
6757
6758 2007-07-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6759
6760         * ListView.cs: Implement 2.0 FocusedItem property setter.
6761
6762 2007-07-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6763
6764         * ListView.cs: Implement 2.0 TopItem property setter.
6765
6766 2007-07-03  Jonathan Pobst  <monkey@jpobst.com>
6767
6768         * StatusStrip.cs: The default renderer is System.
6769         * ToolStrip.cs, ToolStripManager: Now that we have System renderer, use it 
6770         if the user specifies it.
6771         * ToolStripDropDown.cs: Don't reset our Renderer on changing OwnerItem
6772         if we are ManagerRenderMode.
6773         * ToolStripMenuItem.cs: Calculate our text color better.
6774         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Move some stuff
6775         from Professional to the base class based off working with the System renderer.
6776         * ToolStripSystemRenderer.cs: Added.
6777
6778 2007-07-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6779
6780         * ListView.cs: I'm so lame - the real name is HitTest, not HitInfo.
6781
6782 2007-07-02  Jonathan Pobst  <monkey@jpobst.com>
6783
6784         * ToolTip.cs: Implement 2.0 Tag property.
6785
6786 2007-06-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6787
6788         * ListView.cs: Implement 2.0 HitTest methods.
6789
6790 2007-06-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6791
6792         * ListViewItem.cs: Add a 2.0 bool Hot property, to tell whether the
6793         item is under the pointer or not (sugar). Also remove the TODO
6794         regarding to the cursor changes in OneClick activation.
6795         * ThemeWin32Classic.cs: When HotTracking is true and we are drawing
6796         the subitems use the parent's HotFont if UseItemStyleForSubItems is
6797         true; otherwise don't show the underline style.
6798
6799 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6800
6801         * ListView.cs: In ItemControl.ItemsMouseMove, refactor
6802         the code to retrieve the item at position only one time. Also
6803         change cursor when Activation is ItemActivation.OneClick as well
6804         as invalidate the item if HotTracking is true (to show/hide the
6805         underline style). Add an internal HotItemIndex property to retrieve
6806         the current hot item's index.
6807         * ListViewItem.cs: Add an internal HotFont property to cache the
6808         font used when HotTracking is true and the pointer moves within the
6809         item's borders.
6810         * ThemeWin32Classic.cs: When drawing the item's text, use Font or
6811         HotFont depending on the hot state of the item.
6812
6813 2007-06-22  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6814
6815         * ListView.cs: Implement 2.0 HotTracking property.
6816
6817 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
6818
6819         * ToolStripControlHost.cs: If our hosted control never got created,
6820         don't try to dispose it.  [Fixes bug #81909]
6821
6822 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
6823
6824         * TableLayoutPanel.cs: Implement ScaleCore, ScaleControl.
6825
6826 2007-06-21  Jonathan Pobst  <monkey@jpobst.com>
6827
6828         * TableLayoutPanel.cs: Implement CellBorderStyle.  [Fixes bug #81884]
6829
6830 2007-06-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6831
6832         * ThemeWin32Classic.cs: In OwnerDraw mode draw subitems only for 
6833         Details view.
6834         * DrawListViewColumnHeaderEventArgs.cs:
6835         * DrawListViewSubItemEventArgs.cs: Add padding to the bounds when drawing text
6836         using the DrawText () methods.
6837
6838 2007-06-19  Jonathan Pobst  <monkey@jpobst.com>
6839
6840         * ToolStripProfessionalRenderer.cs: Put back clearing a ToolStripDropDown's
6841         background which got erased in my changes yesterday.
6842
6843 2007-06-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6844
6845         * ListViewItem.cs: Actually set bounds for subitems in Details view
6846         (2.0 feature).
6847         * ThemeWin32Classic.cs: Refactor the drawing code for subitems, so we
6848         can invoke from the owner draw routines if we need it. Also, add
6849         support for Owner draw in Details view.
6850
6851 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
6852
6853         * ToolStripDropDownMenu.cs, ToolStripItem.cs, ToolStripLabel.cs,
6854         ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs: Respect the
6855         ShowImageMargin setting, properly align text in a ToolStripLabel
6856         hosted on a ToolStripDropDown.
6857
6858 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
6859
6860         * ToolStrip.cs, ToolStripContentPanel.cs, ToolStripDropDownMenu.cs,
6861         ToolStripProfessionalRenderer.cs: Refactor and clean up some rendering code.
6862
6863 2007-06-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6864
6865         * DrawListViewSubItemEventArgs.cs: Actually implement its methods.
6866
6867 2007-06-18  Jonathan Pobst  <monkey@jpobst.com>
6868
6869         * ToolStripLabel.cs: If the label is on a dropdown, adjust the text
6870         location to match ToolStripMenuItems.
6871
6872 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6873
6874         * DrawListViewColumnHeaderEventArgs.cs:
6875         * ThemeWin32Classic.cs: Implement 2.0 OwnerDraw support for
6876         column headers in ListView. 
6877
6878 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
6879
6880         * UserControl.cs: Implement AutoSize.
6881
6882 2007-06-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6883
6884         * DrawListViewItemEventArgs.cs:
6885         * ListView.cs:
6886         * ThemeWin32Classic.cs: Implement basic support for 2.0 OwnerDraw in
6887         ListView.
6888
6889 2007-06-15  Jonathan Pobst  <monkey@jpobst.com>
6890
6891         * ToolStripDropDownItemAccessibleObject.cs: Added.
6892         * ToolStripDropDownItem.cs, ToolStripItem.cs, ToolStripMenuItem.cs,
6893         ToolStripOverflow.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
6894         ToolStripProgressBar.cs, ToolStripSeparator.cs, ToolStripSplitButton.cs,
6895         ToolStripTextBox.cs: corcompare work.
6896
6897 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
6898
6899         * OSFeature.cs, StatusStrip.cs, TabControl.cs, TableLayoutSettings.cs,
6900         TableLayoutStyle.cs, TableLayoutCollection.cs, ToolStripContentPanel.cs,
6901         ToolStripControlHost.cs, ToolStripDropDown.cs, ToolStripDropDownButton.cs:
6902                 corcompare.
6903
6904 2007-06-14  Jonathan Pobst  <monkey@jpobst.com>
6905
6906         * OSFeature.cs: Add IsPresent.
6907         * PrintPreviewControl.cs: Add RightToLeft.
6908         * SplitContainer.cs: Add AutoScrollOffset, ScaleControl.
6909         * SplitterPanel.cs: Add AutoSizeMode.
6910
6911 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
6912
6913         * LayoutEventArgs.cs: Add 2.0 AffectedComponent.
6914         * MdiClient.cs: Add 2.0 ScaleControl.
6915         * NativeWindow.cs: Implement 2.0 interface IWin32Window.
6916         * NumericUpDownAccelerationCollection.cs: Add [ListBinding].
6917
6918 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
6919
6920         * Form.cs: Implement some scaling methods, stub some RTL methods,
6921         corcompare work.
6922
6923 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
6924
6925         * Control.cs: corcompare work.
6926         * FlatButtonAppearance.cs, FolderBrowserDialog.cs: Add TypeConverters.
6927
6928 2007-06-13  Jonathan Pobst  <monkey@jpobst.com>
6929
6930         * ControlPaint.cs, Theme.cs, ThemeWin32Classic.cs: Implement
6931         ControlPaint 2.0 stuffs.
6932
6933 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
6934
6935         * ThreadExceptionDialog.cs: Add 2.0 stuffs.
6936
6937 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
6938
6939         * UpDownBase.cs: Add 2.0 stuffs.
6940
6941 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
6942
6943         * NumericUpDown.cs: Add 2.0 stuffs.
6944
6945 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
6946
6947         * NotfiyIcon.cs: Add MouseDoubleClick event, hook up MouseClick event.
6948
6949 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
6950
6951         * ErrorProvider.cs: Implement 2.0 stuffs.
6952
6953 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
6954
6955         * DomainUpDown.cs: Implement 2.0 stuffs.
6956
6957 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
6958
6959         * CheckedListBox.cs: Fix RefreshItems signature.
6960
6961 2007-06-12  Jonathan Pobst  <monkey@jpobst.com>
6962
6963         * PictureBox.cs: Implement 2.0 stuffs.
6964
6965 2007-06-12  Andreia Gaita  <avidigal@novell.com>
6966         
6967         * TabControl.cs: Check if there are tabpages before checking
6968         the selected index - fix #81802 (font changes raise a ResizeTabs
6969         call on controls.add, which blew up nicely with no tabpages)
6970
6971 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6972
6973         * ListView.cs:
6974         * ListViewItem.cs: Implement 2.0 ItemSelectionChanged event.
6975
6976 2007-06-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
6977
6978         * ListView.cs:
6979         * ListViewItem.cs: In VirtualMode the selection information
6980         resides in the ListView, rather than in the Items. Also, throw
6981         InvalidOperationExceptions when VirtualMode is being used and
6982         CheckedItemCollection is accessed.
6983
6984 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
6985
6986         * ComboBox.cs: Add ScaleControl.
6987
6988 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
6989
6990         * ButtonBase.cs: ButtonBaseAccessibleObject.State should not be visible to 1.1.
6991
6992 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
6993
6994         * GroupBox.cs: Add 2.0 stuffs.
6995
6996 2007-06-08  Jonathan Pobst  <monkey@jpobst.com>
6997
6998         * Panel.cs: Add autosize properties/event.
6999
7000 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
7001
7002         * Control.cs:
7003         - When we remove a control, remove it from the collection before performing the layout.
7004         - Setup an internal property for explicit_bounds.
7005         - Don't let the UpdateBounds in CreateHandle overwrite our explicit bounds.
7006         - Perform a layout when we set a new AutoSizeMode.
7007
7008 2007-06-07  Jonathan Pobst  <monkey@jpobst.com>
7009
7010         * ScrollableControl.cs: Add 2.0 stuffs.
7011
7012 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
7013
7014         * ScrollBar.cs: Add 2.0 stuffs.
7015
7016 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
7017
7018         * Splitter.cs: Add 2.0 stuffs.
7019
7020 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
7021
7022         * SplitContainer.cs: Apply patch from Neil Cawse <neilcawse@geotab.com>
7023         to have BindingContext simply use base implementation.
7024
7025 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
7026
7027         * ColumnHeader.cs: corcompare fix.
7028
7029 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
7030
7031         * Button.cs: corcompare fixes.
7032         * ButtonBase.cs: corcompare fixes, add ButtonBaseAccessibleObject.State.
7033
7034 2007-06-06  Jonathan Pobst  <monkey@jpobst.com>
7035
7036         * Button.cs: Override GetPreferredSizeCore.
7037         * ButtonBase.cs: PerformLayout after changing properties that can affect
7038         AutoSize.  Simplify some mouse/keyboard code.
7039         * Control.cs: PerformLayout after changing Padding if AutoSize = true.
7040         * MouseEventArgs.cs: Make Location internal for 1.1.
7041         * TextRenderer.cs: Make MeasureTextInternal (string, Font, bool) internal for 1.1.
7042         * Theme.cs: Add CalculateButtonAutoSize.
7043         * ThemeWin32Classic.cs: Implement CalculateButtonAutoSize.
7044
7045 2007-06-05  Miguel de Icaza  <miguel@novell.com>
7046
7047         * TreeNodeCollection.cs: Applied patch from Neil Cawse <neilcawse@geotab.com>
7048
7049 2007-06-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7050
7051         * ListViewItem.cs: We can't cache Bounds in VirtualMode 
7052         since we can get different item instances every time we retrieve it.
7053
7054 2007-06-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7055
7056         * ListView.cs: Work around for #81602, since an unkown an pretty
7057         infrequent condition appears only in some systems (old linux boxes, it
7058         seems).
7059
7060 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
7061
7062         * Button.cs: Completely reformat and a little refactor to bring
7063         this closer to Mono circa 2007.
7064
7065 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
7066
7067         * CheckBox.cs, Form.cs, RadioButton.cs: Change call to ButtonBase.Redraw
7068         to be ButtonBase.Invalidate.
7069
7070 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
7071
7072         * ButtonBase.cs: GetPreferredSize is 2.0 only.  Fixes build.
7073
7074 2007-06-04  Jonathan Pobst  <monkey@jpobst.com>
7075
7076         * ButtonBase.cs: Completely reformat and a little refactor to bring
7077         this closer to Mono circa 2007.
7078
7079 2007-06-01  Everaldo Canuto  <ecanuto@novell.com>
7080
7081         * Label.cs: Fixes preferred sizes for 2.0 profile, also adjust some
7082         values for autosize. Fixes #80137.
7083
7084 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
7085
7086         * Control.cs: Don't perform layout when AutoSize changes.
7087         * Form.cs: Perform layout in AutoSize override.  Don't set ClientSize
7088         directly when autosizing, use SetBounds with BoundsSpecified.None.
7089         Fixes unit tests my last commit broke.
7090
7091 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
7092
7093         * Control.cs: Perform layout when AutoSize changes.
7094         * Form.cs: Implement AutoSizing.
7095
7096 2007-06-01  Chris Toshok  <toshok@ximian.com>
7097
7098         * DataGrid.cs: remove the XXX'ed check at the top of
7099         ProcessGridKey.  fixes #80464.
7100
7101 2007-06-01  Chris Toshok  <toshok@ximian.com>
7102
7103         * DataGridTextBoxColumn.cs: TextBox.TextChanged event handler
7104         adding idempotent (add/remove in Edit()), and also make sure we
7105         don't add it until after we set the text, so it's not tripped in
7106         Edit().  Fixes unit test regression.
7107
7108 2007-06-01  Jonathan Pobst  <monkey@jpobst.com>
7109
7110         * Control.cs: In UpdateBounds, only recalculate anchor distances if the
7111         change is user explicit, not when the layout engine moves stuff.  Fixes
7112         anchoring to bottom and right.  [Fixes bug #81790]
7113
7114 2007-06-01  Andreia Gaita  <avidigal@novell.com>
7115
7116         * PrintDialog.cs: Add collation preview thumbnails. Fixes #80726.
7117
7118 2007-06-01  Andreia Gaita  <avidigal@novell.com>
7119
7120         * ContainerControl.cs: 
7121         Fire enter event for common ancestor if it is not a ContainerControl.
7122         Send focus to the active_control and not the 'value', the active 
7123         control might have been changed in one of the events fired.     
7124         Definitely fixes #80159.
7125
7126 2007-06-01  Andreia Gaita  <avidigal@novell.com>
7127
7128         * DataGrid.cs: Finish editing when focus leave the datagrid. Fixes #80159.
7129
7130 2007-06-01  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7131
7132         * PropertyGrid.cs: Anchor the help description to the bottom of the
7133           help panel and refactor SelectGridItem into a
7134           SelectGridItemInternal that can be set to null (and update it to
7135           clear the help texts when it is set to null). Set root item to null
7136           when there's no SelectedObject. Fixes #80438.
7137         * ScrollableControl.cs: In Recalculate we need to ResumeLayout(true)
7138           when we're recalculating after a resize (only).
7139
7140 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7141
7142         * ListView.cs: Implement 2.0 RedrawItems method.
7143
7144 2007-05-31  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7145
7146         * ListControl.cs: Disconnect PositionChanged and ItemChanged
7147         handlers from previous data manager when DataSource is set to
7148         null. Fixes #81771.
7149
7150 2007-05-31  Jackson Harper  <jackson@ximian.com>
7151
7152         * TextBoxBase.cs: These seem to be the correct values.
7153
7154 2007-05-31  Everaldo Canuto  <ecanuto@novell.com>
7155
7156         * FileDialog.cs: When close dialog with ok set filterindex using combobox
7157         value. Fixes #81784.
7158
7159 2007-05-31  Jonathan Pobst  <monkey@jpobst.com>
7160
7161         * Control.cs: Implement 2.0 scaling methods.
7162
7163 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7164
7165         * ProgressBar.cs, WebBrowserBase.cs, Control.cs, MaskedTextBox.cs,
7166           MessageBox.cs, PropertyGrid.cs, RichTextBox.cs: Fix warnings and
7167           corcompare issues.
7168
7169 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7170
7171         * ProgressBar.cs: Implemented missing 2.0 members.
7172
7173 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7174
7175         * Control.cs: Corcompare issues.
7176         * MessageBox.cs: Implemented missing 2.0 functions.
7177
7178 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7179
7180         * CheckedListBox.cs, ListBox.cs, ListControl.cs, ComboBox.cs:
7181           Implemented more 2.0 members.
7182
7183 2007-05-31  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7184
7185         * Application.cs: Try to avoid NRE when Assembly.GetEntryAssembly is
7186           null (strange, but it seems to happen when running unit tests).
7187
7188 2007-05-30  Andreia Gaita  <avidigal@novell.com>
7189
7190         * ContainerControl.cs: Set active_control even earlier, before 
7191         firing any events, and undo it if validation returns false.
7192
7193 2007-05-30  Andreia Gaita  <avidigal@novell.com>
7194
7195         * ContainerControl.cs: Raise Validation and Enter/Leave events
7196         even if there is no Form and set active_control earlier, just
7197         before firing Enter events (toshok's patches). Fixes #80647.
7198
7199 2007-05-30  Jackson Harper  <jackson@ximian.com>
7200
7201         * TextControl.cs: Redid the pageup/pagedown a little to simplify
7202         things and fix bug #81311.
7203
7204 2007-05-30  Jackson Harper  <jackson@ximian.com>
7205
7206         * X11Dnd.cs: Now that we have our own event loop, we need to
7207         cancel when we get a mouseup but it won't be accepted.
7208
7209 2007-05-30  Chris Toshok  <toshok@ximian.com>
7210
7211         * DataGrid.cs (set_CurrentCell): guard against negative
7212         column/row.
7213
7214         * DataGridColumnStyle.cs (CheckValidDataSource): just use the
7215         array index syntax instead of looping over the property names.
7216
7217         * DataGridTextBoxColumn.cs: add a changed handler on the textbox,
7218         and set IsInEditOrNavigateMode to false there.
7219
7220 2007-05-30  Jackson Harper  <jackson@ximian.com>
7221
7222         * TreeView.cs: Make sure we don't get a bad visible order when
7223         setting to the top node.  Fixes some misc crashing in
7224         ControlInspector.
7225
7226 2007-05-30  Andreia Gaita  <avidigal@novell.com>
7227
7228         * UserControl.cs: Add 2.0 AutoSizeMode
7229
7230 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
7231
7232         * DataGridTextBoxColumn.cs: Fix textbox horizontal offset.
7233
7234 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
7235
7236         * DataGridTextBoxColumn.cs: Fix textbox position to prevent override grid
7237         lines. Fixes #80285. 
7238
7239 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
7240
7241         * DataGridColumnStyle.cs: Add char trimming column header text format. 
7242
7243 2007-05-29  Everaldo Canuto  <ecanuto@novell.com>
7244
7245         * DataGridColumnStyle.cs: Fix grid header arrow drawing over column name. 
7246         Fixes #80147.
7247
7248 2007-05-29  Jackson Harper  <jackson@ximian.com>
7249
7250         * TreeNode.cs: Fix off by one on calculating whether or not a node
7251         is visible.
7252
7253 2007-05-29  Jonathan Pobst  <monkey@jpobst.com>
7254
7255         * Control.cs: ResumeLayout(false) should recalculate anchor distances.
7256         * ScrollableControl.cs: Force an UpdateDistances when we move the
7257         scrollbars.
7258         [Fixes bug #80605]
7259
7260 2007-05-29  Andreia Gaita  <avidigal@novell.com>
7261
7262         * PageSetupDialog.cs: Fix #80728 - Changing the printer doesn't
7263         update the page setup screen.
7264
7265 2007-05-29  Andreia Gaita  <avidigal@novell.com>
7266
7267         * PageSetupDialog.cs: Fix landscape mode.
7268
7269 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7270
7271         * SystemInformation.cs: Add 2.0 IconSizeVerticalSpacing and
7272         IconSizeHorizontalSpacing.
7273
7274 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7275
7276         * ListView.cs: The declaration of prev_tooltip_item should be inside
7277         a NET_2_0 conditional (avoid a warning).
7278
7279 2007-05-28  Andreia Gaita  <avidigal@novell.com>
7280
7281         * PageSetupDialog.cs: Implement PrintPreview control to display
7282         the preview thumbnail. Change unit conversion to use 
7283         PrinterUnitConvert methods.
7284         
7285         Note: there is a huge bug in ms.net where the default margins are 
7286         interpreted as centimeters (?), when in fact they are set in inches. When 
7287         loading the page setup dialog initially (ms.net), the default margins 
7288         are set to 1 inch, and the dialog shows them with value 10, when in fact 
7289         it should be 25 (properly converted). Our dialog doesn't have this bug.
7290         
7291         * Theme.cs, ThemeWin32Classic.cs: Add a CPDrawBorder override for 
7292         RectangleF.
7293         * ControlPaint.cs: Add a DrawBorder internal method for RectangleF.
7294
7295 2007-05-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7296
7297         * ListView.cs:
7298         * ListViewItem.cs: Implement 2.0 ToolTipText support for listview
7299         items.
7300
7301 2007-05-28  Andreia Gaita  <avidigal@novell.com>
7302
7303         * X11Dnd.cs: A direct cast to VirtualKeys is not allowed from
7304         an IntPtr on csc (it builds fine on mcs, could it be a compiler
7305         bug?), convert the ptr to Int32 first.
7306
7307 2007-05-28  Jackson Harper  <jackson@ximian.com>
7308
7309         * X11Dnd.cs: Add a timer, so after drop, if a finish is not
7310         recieved, we will exit the dnd tracking loop.
7311
7312 2007-05-28  Jackson Harper  <jackson@ximian.com>
7313
7314         * X11Dnd.cs: Keep tracking until the xdnd finished event is
7315         recieved. TODO: I should probably stick a timer on the dropped
7316         event, and finish the drag if the XDND Finished event never shows
7317         (because some apps don't seem to send it).
7318
7319 2007-05-28  Everaldo Canuto  <ecanuto@novell.com>
7320
7321         * ToolBar.cs: Fix toolbar default width for button with image. Fixes
7322         #81733.
7323
7324 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7325
7326         * MonthCalendar.cs: Only mark the keypresses we actually handle as
7327           handled.
7328
7329 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7330
7331         * MonthCalendar.cs: Set the size after initializing all the relevant
7332           variables. Fixes #81742.
7333
7334 2007-05-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7335
7336         * KeyEventArgs.cs: Fix typo.
7337
7338 2007-05-28  Gert Driesen  <drieseng@users.sourceforge.net>
7339
7340         * DateTimePicker.cs: Changed exceptions thrown by MinDate and MaxDate
7341         to match MS. Fixed MinDate to only accept value less than or equal
7342         to MaxDate on 2.0 profile and less than MaxDate on 1.0 profile.
7343         Removed TODO's that are now verified by unit tests.
7344
7345 2007-05-27  Gert Driesen  <drieseng@users.sourceforge.net>
7346
7347         * TreeNodeCollection.cs: Minor corrections to exceptions to match
7348         MS.
7349
7350 2007-05-25  Jackson Harper  <jackson@ximian.com>
7351
7352         * X11Dnd.cs: Rework to make StartDrag a blocking call that runs
7353         it's own message loop.
7354         * XplatUIX11.cs: Remove some of the dnd hooks
7355
7356 2007-05-25  Gert Driesen  <drieseng@users.sourceforge.net>
7357
7358         * XplatUIX11.cs: Change MinimumWindowSize to {Width=0,Height=0}
7359         instead of MinimizedWindowSize.
7360
7361 2007-05-25  Jackson Harper  <jackson@ximian.com>
7362
7363         * TextBoxBase.cs: Raise textchanged when cutting and pasting text.
7364
7365 2007-05-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7366
7367         * KeyEventArgs.cs: Added SuppressKeyPress.
7368         * Control.cs: Added support for SuppressKeyPress.
7369
7370 2007-05-24  Andreia Gaita  <avidigal@novell.com>
7371
7372         * NumericUpDown.cs: Refactor code to fix regressions on #79950 and
7373         problems with PieChart. suppress_validation should not be a counter,
7374         if there are several BeginInit calls, the first EndInit will 
7375         activate validation. Fix exceptions thrown by set_Value.
7376         * UpDownBase.cs: ValidateText only if it's the user editing it.
7377
7378 2007-05-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7379
7380         * ListControl.cs: FilterItemOnProperty should return the filtered
7381         item proeprty even if DataSource is null. The same applies for
7382         GetItemText. Fixes #80427.
7383
7384 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
7385
7386         * Control.cs: If a control doesn't have a parent when it's Dock is
7387         set, but it has children, it needs to do a layout.  Fixes some nested
7388         controls issues.  [Fixes bug #81199]
7389
7390 2007-05-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7391
7392         * ComboBox.cs: If there are few items in the drop down list, make it
7393           the exact size the items need, no bigger. Fixes #81612.
7394
7395 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
7396
7397         * Application.cs: When we have captured the keyboard for a menu,
7398         check for mouse down events in case we need to close the menu.
7399         * Control.cs, Form.cs: Remove mouse down checks for menus.
7400
7401 2007-05-24  Jackson Harper  <jackson@ximian.com>
7402
7403         * TextControl.cs: Handle tabs in non multiline mode a little
7404         differently.
7405
7406 2007-05-24  Jackson Harper  <jackson@ximian.com>
7407
7408         * TextControl.cs: We need to manually break apart tabbed text and
7409         move the tabs, since the system.drawing tabbing mechanism relies
7410         on tab stops.
7411         * TextBoxBase.cs: Move the caret properly when the user enters a
7412         tab.
7413
7414 2007-05-24  Jonathan Pobst  <monkey@jpobst.com>
7415
7416         * ContainerControl.cs: Don't check CanSelect before calling
7417         ProcessMnemonic.
7418         * ToolStrip.cs: Only do implicit mnemonics on MenuStrips.  Don't
7419         release a KeyboardActive on click if it's not ours.
7420
7421 2007-05-23  Andreia Gaita  <avidigal@novell.com>
7422
7423         * ColumnHeader.cs: Add TypeConverter
7424
7425 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
7426
7427         * LinkLabel.cs: Implement LinkCollection.Add with Link parameter (2.0).
7428
7429 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
7430
7431         * LinkLabelLinkClickedEventArgs.cs, LinkLabel.cs: Implement Button property.
7432
7433 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
7434
7435         * LinkLabel.cs: Implement public Padding property.
7436
7437 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
7438
7439         * LinkLabel.cs: Implement public FlatStyle.
7440
7441 2007-05-23  Jonathan Pobst  <monkey@jpobst.com>
7442
7443         * Control.cs: Apply patch from George to call parent.PerformLayout
7444         when Visible is changed.  [Fixes bugs #81118, 81718]
7445
7446 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
7447
7448         * MainMenu.cs, MenuAPI.cs: Implement Collapse event for MainMenu (2.0).
7449
7450 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
7451
7452         * ContextMenu.cs: Implement ProcessCmdKey with control parameter.
7453
7454 2007-05-23  Everaldo Canuto  <ecanuto@novell.com>
7455
7456         * ContextMenu.cs: Implement Collapse.
7457
7458 2007-05-23  Rolf Bjarne Kvinge <RKvinge@novell.com>
7459
7460         * ToolBarButton.cs: Implement Name.
7461
7462 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
7463
7464         * ToolBar.cs: Fix OnButtonDropDown to save item used in dropdown instead of
7465         use current_item, it prevents some NRE. Fixes #81675.  
7466
7467 2007-05-22  Andreia Gaita  <avidigal@novell.com>
7468
7469         * NumericUpDown.cs: Fix PieChart by not returning from UpdateEditText
7470         without updating the text.
7471
7472 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
7473
7474         * XplatUIWin32.cs: Plug a GDI leak caused by calling Font.ToHfont ()
7475         without calling DeleteObject.  [Should fix bug #81709]
7476
7477 2007-05-22  Jackson Harper  <jackson@ximian.com>
7478
7479         * RichTextBox.cs: Set the line endings correctly, when flushing
7480         RTF text.
7481
7482 2007-05-22  Gert Driesen  <drieseng@users.sourceforge.net>
7483
7484         * XplatUIX11.cs: MinimumWindowSize on X11 is actually
7485          {Width=0,Height=0}.
7486
7487 2007-05-22  Jackson Harper  <jackson@ximian.com>
7488
7489         * TreeView.cs: Setting top with a null node should set to the very
7490         top.
7491
7492 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7493
7494         * Form.cs: ShowDialog: destroy the handle when message loop is
7495           finished, matches MS behaviour. Refactor parts of WmClose into
7496           RaiseCloseEvents, that only raises events if they haven't already
7497           been raised. Fixes #81688 and #81521.
7498         * Application.cs: Don't call close on the form when exiting a modal
7499           loop, it will raise all the (Form)Closed/Closing events again if
7500           WM_CLOSE has been sent earlier on, instead call RaiseCloseEvent,
7501           which doesn'r raise any events it they have been raised before.
7502
7503 2007-05-22  Jonathan Pobst  <monkey@jpobst.com>
7504
7505         * Control.cs: Add OnPrint.
7506         * ToolStrip.cs: Add GetChildAtPoint.
7507         * ToolStripContainer.cs: Add OnRightToLeftChanged.
7508         * ToolStripRenderer.cs: Make CreateMirrorImage internal.
7509
7510 2007-05-22  Everaldo Canuto  <ecanuto@novell.com>
7511
7512         * MenuAPI.cs: Prevent context menu to be typed as MainMenu. Fixes #81509.  
7513
7514 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7515
7516         * InternalWindowManager.cs: ToolTipShow: Don't show tooltip if the form
7517           isn't visible anymore. Fixes #81651.
7518
7519 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7520
7521         * Control.cs: WmShowWindow: Update children's z-order after setting
7522           their parent. SetParent may show the window, thereby corrupting
7523           z-order, since the window will be shown on top.
7524         * XplatUIWin32.cs: SetParent: don't call SetVisible on forms. Prevents
7525           multiple (and redundant) WM_SHOWWINDOW messages.
7526         * MdiWindowManager.cs: RaiseDeactivate: only raise after an Activate
7527           event has already been raised.
7528         * Form.cs: Change is_changing_visible_state to a counter, since
7529           SetVisibleCore can be called recursively. CreateHandle: when
7530           creating mdi children, send (De)Activated events.
7531         * MdiClient.cs: Update use of is_changing_visible_state.
7532         * Application.cs: OnThreadException: Surround exception handling with
7533           try/finally to ensure we always reset the error-handling state
7534           before leaving.
7535
7536 2007-05-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7537
7538         * ThemeWin32Classic.cs: DrawProgressBar: Avoid a DivideByZero exception
7539           (#81704).
7540
7541 2007-05-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7542
7543         * ListView.cs: Use Theme.ListViewHorizontalSpacing for List and
7544         SmallIcon views, now that we have a standarized horizontal spacing.
7545
7546         * ThemeWin32Classic.cs: ListViewHorizontalSpacing now has a value of
7547         4, just like the other views (Match .Net).
7548
7549 2007-05-21  Jonathan Pobst  <monkey@jpobst.com>
7550
7551         * Control.cs: Delay calculating anchor distances until we actually layout.
7552         Always query the WM for the actual size and location it put us at instead of
7553         only when we send negative values.
7554         [Fixes bugs #81694, 81695]
7555
7556 2007-05-21  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7557
7558         * Application.cs: Avoid a possible stack overflow when trying to exit
7559           the application.
7560
7561 2007-05-19  Marek Safar  <marek.safar@gmail.com>
7562
7563         * Theme.cs (GetHatchBrush): A key uses internal value instead of formated
7564         enum value.
7565
7566 2007-05-19  Andreia Gaita  <avidigal@novell.com>
7567
7568         * NumericUpDown.cs: Added 2.0 methods (spin acceleration)
7569         * NumericUpDownAcceleration.cs, 
7570           NumericUpDownAccelerationCollection.cs: Added 2.0
7571           implementation.
7572
7573 2007-05-19  Gert Driesen  <drieseng@users.sourceforge.net>
7574
7575         * RichTextBox.cs: Recalculate the document after the ScrollBars
7576         property is changed. Fixes bug #81681.
7577
7578 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
7579
7580         * DataObject.cs: Implement 2.0 methods.
7581
7582 2007-05-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7583
7584         * ThemeWin32Classic.cs: Draw the check marks in ListViewItems
7585         in the center of the checkbox, not in the left-top corner. 
7586         Fixes #80037.
7587
7588 2007-05-18  Jackson Harper  <jackson@ximian.com>
7589
7590         * RichTextBox.cs: Recalculate the document after the scrollbars
7591         property is changed.
7592         * TextBoxBase.cs: ScrollBars is not a flags enum...This fixes
7593         81486.
7594
7595 2007-05-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7596
7597         * CreateParams.cs: Make HasWindowManager marginally faster.
7598         * XplatUIX11.cs, Hwnd.cs: CreateWindow: Move the default location code
7599           into Hwnd so that other drivers can use it as well.
7600         * XplatUIWin32.cs: CreateWindow: If the window has a window manager get
7601           the default location from Hwnd. Fixes MDI client windows always
7602           showing up at (0,0) in Windows (Win32 won't set the default
7603           location since the window styles aren't correct).
7604
7605 2007-05-18  Gert Driesen  <drieseng@users.sourceforge.net>
7606
7607         * TreeView.cs: Modified DoubleBuffered to just use the base
7608         implementation.
7609
7610 2007-05-18  Jackson Harper  <jackson@ximian.com>
7611
7612         * TreeView.cs: Set the top node to the last child node when
7613         expanding all
7614         - When we get focus, if there is no selected node, use the top
7615         node.
7616
7617 2007-05-18  Jonathan Pobst  <monkey@jpobst.com>
7618
7619         * KeysConverter.cs: Add CanConvertTo.
7620         * LinkLabel.cs: Add some 2.0 constructors and properties to LinkLabel.Link.
7621         * LinkConverter.cs: Added.
7622
7623 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
7624
7625         * Cursor.cs: Apply Sebastien patch from #81669 to open file in read mode,
7626         it prevents error when file dont have write access. Fixes #81669 and #81667.  
7627
7628 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
7629
7630         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw toolbar 
7631         button text. Fixes #79640.  
7632
7633 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
7634
7635         * Control.cs: According to MSDN controls created in the designer theres 
7636         keyboard accelerators visible by default. So included check for design
7637         in ShowKeyboardCuesInternal.  
7638
7639 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
7640
7641         * ThemeWin32Classic.cs: Check for ShowKeyboardCues true when draw combobox 
7642         text. Fixes #81621.  
7643
7644 2007-05-18  Everaldo Canuto  <ecanuto@novell.com>
7645
7646         * Control.cs: ShowKeyboardCuesInternal add to expose ShowKeyboardCues
7647         for 1.0, becuse ShowKeyboardCues is protected on 1.0.  
7648
7649 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
7650
7651         * Control.cs: Finish implementation of UI State using WmChangeUIState
7652         to send WM_UPDATEUISTATE to all child controls. Some hack will be needed
7653         in some controls to check for show_keyboard_cues to draw accell keys "_".  
7654
7655 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7656
7657         * ListBox.cs: When calculating the horizontal scrollbar
7658         in single column mode, don't use values less than 0 for
7659         Maximum. Fixes #81474.
7660
7661 2007-05-17  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7662
7663         * ListBox.cs: Throw the some missing exceptions in
7664         ListBox.ObjectCollection methods.
7665
7666 2007-05-17  Jackson Harper  <jackson@ximian.com>
7667
7668         * TextBoxBase.cs: Recalculate the document when the word wrap
7669         value has changed. This fixes 81488.
7670
7671 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
7672
7673         * Clipboard.cs: Implement missing GetText overload.
7674
7675 2007-05-17  Chris Toshok  <toshok@ximian.com>
7676
7677         * Control.cs (CheckDataBindings): remove the binding_context arg
7678         to binding.Check.
7679
7680         * CurrencyManager.cs (OnItemChanged): fix this now that
7681         BindingManagerBase is fixed. also remove the comment telling where
7682         the fix should go.  We set transfering_data to true/false around
7683         the call to PushData to keep UpdateIsBinding from being called.
7684         (ListChangedHandler): remove the extra OnMetaDataChanged call for
7685         PropertyDescriptorAdded in the 1.1 case.  The extra call is
7686         actually generated by System.Data generating 2 metadata changed
7687         events of its own per column add.  The fix should go there.  Add a
7688         comment to that affect in our test's Assert.Ignore.
7689
7690         * BindingManagerBase.cs: Rework PullData and PushData slightly.
7691         we keep a boolean flag (transfering_data) that keeps us from
7692         calling UpdateIsBinding multiple times if we re-enter either of
7693         them.
7694
7695         * ControlBindingsCollection.cs (AddCore): remove the
7696         binding_context arg to binding.Check.
7697
7698         * Binding.cs (IsBinding): don't check if we're binding here, just
7699         return our cached value.  we update it in UpdateIsBinding.
7700         (Check): don't take the binding_context arg, we'll just use our
7701         control's.  Also, for some reason MS doesn't use the data member
7702         field when getting the bindingmanager for this binding.  it just
7703         uses the datasource.  Make this method callable multiple times,
7704         and only do the is_null_desc stuff if manager.Position != -1 (so
7705         we don't get an exception accessing manager.Current).
7706         (UpdateIsBinding): move the code from IsBinding here.
7707         (PositionChangedHandler): call Check here to we can initialize
7708         things that require a non- -1 position.
7709
7710 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
7711
7712         * Form.cs: When alt keys is pressed send WM_CHANGEUISTATE to top level
7713         control.
7714
7715 2007-05-17  Andreia Gaita  <avidigal@novell.com>
7716
7717         * TabControl.cs: Add 2.0 methods and events, including
7718         OnEnter / OnLeave and raises it for tabpages (fixes #79869)
7719         * TabPage.cs: Add 2.0 methods
7720
7721 2007-05-17  Everaldo Canuto  <ecanuto@novell.com>
7722
7723         * Control.cs: Implement WmUpdateUIState, show_focus_cues and
7724         keyboard_cues is properly handled by message method.  
7725
7726 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
7727
7728         * TreeViewImageIndexConverter.cs: Add 2.0 methods.
7729
7730 2007-05-17  Jonathan Pobst  <monkey@jpobst.com>
7731
7732         * ToolStripTextBox.cs: Wire up new 2.0 Textbox methods/properties.
7733
7734 2007-05-16  Everaldo Canuto  <ecanuto@novell.com>
7735
7736         * Control.cs: 
7737         - WmUpdateUIState added to handle state changes, it make call to
7738         OnChangeUICues event.
7739         - Fixed ShowKeyboardCues to check for MenuAccessKeysUnderlined in
7740         SystemInformation.
7741
7742 2007-05-16  Jonathan Pobst  <monkey@jpobst.com>
7743
7744         * ImageKeyConverter.cs: Added.
7745         * TreeViewImageKeyConverter.cs: Added.
7746
7747 2007-05-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7748         
7749         * ToolTips.cs: Update Text if SetToolTip is called for a control
7750         already showing the tooltip, as well as restarting its timer; show
7751         tooltip if we are inside the control bounds by the time of calling
7752         SetToolTip. Inside ShowTooltip remove the check to not show the 
7753         tooltip again for the active control (it is allowed by .Net to 
7754         show the tooltip on the same control multiple times).
7755
7756 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7757
7758         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
7759
7760 2007-05-16  Andreia Gaita <avidigal@novell.com> 
7761
7762         * ContainerControl.cs: only process tab key if there are no 
7763         modifier keys present, otherwise the control does the 
7764         tab processing, if it needs to. Fixes #81622
7765         * TabControl.cs: Fixes calculation for which tab to select on
7766         shift+ctrl+tab.
7767
7768 2007-05-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7769
7770         * MaskedTextBox.cs: Small fix for Text that fixes a broken test.
7771
7772 2007-05-15  Jonathan Pobst  <monkey@jpobst.com>
7773
7774         * Control.cs: Make IsInputCharInternal to allow controls to
7775         override it and still match MS API.
7776         * TextBoxBase.cs: Override IsInputCharInternal and always
7777         return true.
7778         [Fixes bug #81616]
7779
7780 2007-05-15  Jackson Harper  <jackson@ximian.com>
7781
7782         * TextBox.cs: Disable some of the menu options when using a
7783         readonly textbox.
7784
7785 2007-05-15  Jackson Harper  <jackson@ximian.com>
7786
7787         * TextBox.cs:
7788         * TextBoxBase.cs:
7789         * RichTextBox.cs: Some new 2.0 methods
7790
7791 2007-05-15  Gert Driesen  <drieseng@users.sourceforge.net>
7792
7793         * FileDialog.cs: On 1.0 profile, do not support multidotted 
7794         extensions.
7795
7796 2007-05-14  Jackson Harper  <jackson@ximian.com>
7797
7798         * TextBoxBase.cs: Implement some of the new 2.0 methods.
7799         * RichTextBox.cs: We need to override these methods on 2.0.
7800         * MaskedTextBox.cs: These are implemented now
7801         * TextControl.cs: This was off by one.
7802
7803 2007-05-14  Jackson Harper  <jackson@ximian.com>
7804
7805         * TextControl.cs: Because the line endings are including in the
7806         text, we don't need to add them in anymore.
7807
7808 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
7809
7810         * ToolBar.cs: Fix autosize and get it working only after hadle is created,
7811         also prevent redraw in set_autosize if handle is not created. Fixes #81523.
7812
7813 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
7814
7815         * ToolBar.cs: Adjust size to default size when button theres no text and
7816         image, it fixes remaining issues from #81524.
7817
7818 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
7819
7820         * ToolBar.cs: 
7821         - When not flat call redraw to recalculate sizes on creare handle to match
7822         win32 behavior.
7823         - Revert 77220 because it causes some regressions in toobar
7824         button.
7825
7826 2007-05-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7827
7828         * MaskedTextBox.cs: Update the base text whenever the text changes. MTB
7829           now actually enters a usable state.
7830
7831 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
7832
7833         * ToolBar.cs: Check for handle created in redraw to prevent unneeded size
7834         calculations, it reduces the size cauculation from 7 to 3 on a toolbar with
7835         3 buttons.
7836
7837 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
7838
7839         * ToolBar.cs: Save default_size on create handle to use later for buttons
7840         without text, needed to mimic win32 behavior.
7841
7842 2007-05-11  Everaldo Canuto  <everaldo@simios.org>
7843
7844         * ToolBar.cs: Fix button layour to best fit width or height according to
7845         vertical or not. Fixes #81524.
7846
7847 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
7848
7849         * ToolBarButton.cs: When change style call ToolBar.Redraw to update
7850         toolbar size info because different styles theres different sizes.
7851         Fixes #81522.
7852
7853 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7854
7855         * ThemeWinClassic.cs: For .Net 2.0 don't draw any image
7856         if we are using checkboxes, checked is true, and we have less
7857         than two images in StateImageList; for the 1.1 in the same scenario
7858         draw the first image if we have at least one image in StateImageList.
7859         Fixes part of #81191.
7860
7861 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
7862
7863         * ToolStrip.cs, ToolStripManager.cs: We need to remove items from
7864         the owner's Items collection on merge.
7865
7866 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
7867
7868         * ToolStrip.cs: Use new internal ToolStripItemCollection constructor.
7869         * ToolStripItemCollection.cs: Lots of fixes to when events get called
7870         and parent/owner gets changed based on gert's unit tests.
7871
7872 2007-05-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7873
7874         * MaskedTextBox.cs: Started implementing parts of it.
7875
7876 2007-05-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7877
7878         * ListView.cs: When clicking the checkbox on the items
7879         take into account the double clicks even if we have only
7880         one image in StateImageList (only for 1.0/1.1). Also 
7881         generate an extra change of checked state when we receive
7882         the second click on checkbox (match .Net behaviour). 
7883         Fixes part of #81191.
7884
7885 2007-05-10  Everaldo Canuto  <everaldo@simios.org>
7886
7887         * ThemeWin32Classic.cs: Fix text rectangles in Tooltips.
7888
7889 2007-05-10  Jonathan Pobst  <monkey@jpobst.com>
7890
7891         * Form.cs: Move some of OnLoad to OnLoadInternal so it gets called
7892         even if OnLoad is overriden and base.OnLoad is not called.
7893         [Fixes bug #81582]
7894
7895 2007-05-10  Andreia Gaita  <avidigal@novell.com>
7896
7897         * TableLayoutSettings.cs: A big doh! fix and bowing down of head in 
7898         shame. (I blame my ever-persisting and annoying cold)
7899
7900 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
7901
7902         * ListView.cs: Don't eat navigation keys.  Let them flow through to
7903         KeyDown/KeyPress routines.  [Fixes bug #81569]
7904
7905 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
7906
7907         * ListView.cs: When handling keys for selecting the item based off
7908         keyboard input, do not consider keys pressed with Alt or Control.  Also,
7909         correctly handle keys when the Shift key is down. [Fixes bug #81578]
7910
7911 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
7912
7913         * Control.cs: When using UseWaitCursor, we have to store the requested
7914         Cursor to use when UseWaitCursor is turned off.
7915
7916 2007-05-09  Jonathan Pobst  <monkey@jpobst.com>
7917
7918         * Control.cs: Implement PreProcessControlMessage.  Default IsInputChar
7919         to false.
7920         * Application.cs: Use PreProcessControlMessage instead of
7921         PreProcessMessage.
7922         * PreProcessControlMessage.cs: Make internal for 1.1.
7923
7924 2007-05-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7925
7926         * Control.cs: Add InternalContains focus property, which hast the same
7927         functionality of ContainsFocus, but also including implicit controls.
7928         * ListViewItem.cs: Use InternalContainsFocus instead of ContainsFocus,
7929         since we need to know if the focus is contained in our implicit
7930         ItemControl when calculating Layout. Fixes part of #80888.
7931
7932 2007-05-08  Everaldo Canuto  <everaldo@simios.org>
7933
7934         * ToolTip.cs: Remove center form string alignment as it must be align to
7935         left.
7936
7937 2007-05-08  Jonathan Pobst  <monkey@jpobst.com>
7938
7939         * ToolStripItemCollection.cs: Set the new item's parent and owner
7940         in Insert like we do in Add.  [Fixes bug #81568]
7941
7942 2007-05-08  Jackson Harper  <jackson@ximian.com>
7943
7944         * TreeView.cs: GotFocus differences between 1.1 and 2.0.
7945         - Off by one error in SetTop
7946         - Disable DoubeBuffering
7947         
7948 2007-05-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
7949
7950         * ScrollableControl.cs: ScrollIControlntoView: we now only move the
7951           control as much as necessary in order to make it entirely visible,
7952           instead of centering the control in the container (matches MS
7953           behaviour). CalculateCanvasSize: we need to take the current scroll
7954           position into account when calculating the maximum canvas,
7955           otherwise the following scenario will fail: resize so that the
7956           scrollbars appear, use the scrollbars to scroll, resize again
7957           smaller, and now the canvas size is too small. Recalculate: when
7958           showing scrollbars make sure they start off at 0, and try to scroll
7959           the active control into view. Fixes #79540. HandleScrollBar: don't
7960           scroll anywhere if the scrollbar isn't visible.
7961
7962 2007-05-07  Carlos Alberto Cortez <calberto.cortez@gmail.com>
7963
7964         * ListView.cs: When focus changed, call Layout/Invalidate
7965         in the focused item to update the selected state (should show
7966         entire label when ListView is focused, and a part of it if is not).
7967         * ListViewItem.cs: When doing layout for LargeIcon, take into account
7968         for displaying the entire label not only the Focused state of the
7969         item, but also the Focused state of the ListView (match .Net
7970         behaviour).
7971
7972 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
7973
7974         * Control.cs: Stub CanRaiseEvents, IsMirrored, and NotifyClients.
7975         Implement UseWaitCursor. 
7976
7977 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
7978         Applying contributed patch from Sergey Volk.
7979
7980         * Clipboard.cs: Implement SetDataObject retry logic and new overload
7981         of SetDataObject.
7982         * XplatUIWin32.cs: Throw an ExternalException if the clipboard set fails.
7983
7984 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
7985
7986         * Control.cs: Implement DrawToBitmap.
7987
7988 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
7989         Applying contributed patch from Stefan Noack.
7990         
7991         * Control.cs: Add [Get|Set]AutoSizeMode.
7992
7993 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
7994
7995         * MdiClient.cs: Unmerge menus when the last child is closed.
7996
7997 2007-05-07  Jonathan Pobst  <monkey@jpobst.com>
7998
7999         * ToolStrip.cs: Do not call BeginMerge on DropDowns.
8000         * ToolStripManager.cs: Call Merge on DropDowns.
8001         [Fixes bug #81477]
8002
8003 2007-05-07  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8004
8005         * XplatUIWin32.cs: Changed Win32CreateWindow to take enums instead of
8006           uints.
8007         * Form.cs: CreateParams: don't set WS_VISIBLE if we're changing
8008           visibility. We can't create forms visible, since we have to set the
8009           owner before making the form visible (otherwise Win32 will do
8010           strange things with task bar icons). The problem is that we set the
8011           internal is_visible to true before creating the control, so
8012           is_changing_visible_state is the only way of determining if we're
8013           in the process of creating the form due to setting Visible=true -
8014           this works because SetVisibleCore explicitly makes the form
8015           visibile afterwards anyways. Fixes #80775.
8016
8017 2007-05-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8018
8019         * ThemeWin32Classic.cs: When drawing ListViewItems,
8020         use StringTrimming.EllipsisCharacter if the view is Tile, Details,
8021         or LargeIcon _and_ item is not focused (match .Net behaviour).
8022
8023 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
8024
8025         * Control.cs, Form.cs: Fix some obsolete method warnings.
8026
8027 2007-05-04  Jonathan Pobst  <monkey@jpobst.com>
8028
8029         * Control.cs: Implement GetChildAtPoint and OnParentCursorChanged.
8030         * GetChildAtPointSkip.cs: Make internal for 1.1 profile.
8031
8032 2007-05-04  Andreia Gaita  <avidigal@novell.com>
8033
8034         * ContainerControl.cs: Fix active_control attribution when going
8035         up the parent chain so that the first parent container gets the control
8036         and the rest of the parent containers get the child containers (skips
8037         non-containers). Fixes #80729
8038
8039 2007-05-04  Randolph Chung  <tausq@debian.org>
8040
8041         * FileDialog.cs: Implement the SupportMultiDottedExtensions property.
8042         [Fixes bug #81499]
8043
8044 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8045
8046         * XplatUIX11.cs: Add a TranslateWindowSizeToXWindowSize overload that
8047           takes a size parameter, since the CreateParam's size isn't true for
8048           minimized forms. Fixes #81518,
8049
8050 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8051
8052         * Form.cs: Add OnDeactivateInternal.
8053         * MdiClient.cs: Raise Deactivate event. Fixes #81409.
8054
8055 2007-05-04  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8056
8057         * DateTimePicker.cs: CalculateDropDownLocation: do a null check before
8058           accessing the parent. Fixes #81508.
8059
8060 2007-05-03  Chris Toshok  <toshok@ximian.com>
8061
8062         * CurrencyManager.cs (CurrencyManager.ListChangeHandler): in the
8063         2.0 block, pass listposition + 1 to ChangeRecordState when a row
8064         was added before the current listposition.  Fixes the
8065         TestInsertRowBeforeCurrent unit test.
8066
8067 2007-05-03  Jonathan Pobst  <monkey@jpobst.com>
8068
8069         * Application.cs: Add RaiseIdle.
8070         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
8071         XplatUIX11.cs: Implement RaiseIdle.
8072
8073 2007-05-02  Jonathan Pobst  <monkey@jpobst.com>
8074         corcompare work: N - Z
8075         * NotifyIcon.cs
8076         * ProgressBar.cs
8077         * RadionButton.cs
8078         * ScrollableControl.cs
8079         * SplitContainer.cs
8080         * SplitterPanel.cs
8081         * StatusBar.cs
8082         * SystemInformation.cs
8083         * TabControl.cs
8084         * TableLayoutControlCollection.cs
8085         * TableLayoutPanel.cs
8086         * TabPage.cs
8087         * ToolBar.cs
8088         * ToolBarButton.cs
8089         * ToolStrip.cs
8090         * ToolStripComboBox.cs
8091         * ToolStripContainer.cs
8092         * ToolStripContentPanel.cs
8093         * ToolStripDropDown.cs
8094         * ToolStripDropDownItem.cs
8095         * ToolStripDropDownMenu.cs
8096         * ToolStripItem.cs
8097         * ToolStripItemCollection.cs
8098         * ToolStripMenuItem.cs
8099         * ToolStripPanel.cs
8100         * ToolStripSplitButton.cs
8101         * ToolTip.cs
8102         * TreeNode.cs
8103         * TreeNodeCollection.cs
8104         * TreeNodeMouseHoverEventArgs.cs
8105         * TreeView.cs
8106
8107 2007-05-01  Everaldo Canuto  <everaldo@simios.org>
8108
8109         * ContextMenu.cs: Add public method Show with alignment property to 2.0
8110         stuff. Thanks aatdark for the patch. 
8111
8112 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
8113
8114         * GridItem.cs: Implement 2.0 Tag property.
8115
8116 2007-05-01  Frederik Carlier <frederik.carlier@carlier-online.be> 
8117
8118         * TreeNodeCollection.cs: Fix ContainsKey and IndexOfKey methods to use
8119         count instead of Nodes.Length.  [Fixes bug #81448]
8120
8121 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
8122
8123         * ComboBox.cs: Fix paramName sent to ArgumentOutOfRangeException's.
8124         [Fixes bug #81506]
8125
8126 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
8127         corcompare work: A - M
8128         * BindingNavigator.cs
8129         * Button.cs
8130         * ButtonBase.cs
8131         * CheckBox.cs
8132         * Control.cs
8133         * FlowLayoutPanel.cs
8134         * Form.cs
8135         * Label.cs
8136         * LinkLabel.cs
8137         * ListView.cs
8138
8139 2007-05-01  Jonathan Pobst  <monkey@jpobst.com>
8140
8141         * Application.cs: Give toolstrips a chance to process mnemonics.
8142         * ToolStrip.cs, ToolStripDropDownButton.cs, ToolStripItem.cs,
8143         ToolStripItemTextRenderEventArgs.cs, ToolStripLabel.cs,
8144         ToolStripMenuItem.cs, ToolStripSplitButton.cs: Implement keyboard mnemonics.
8145
8146 2007-05-01  Jackson Harper  <jackson@ximian.com>
8147
8148         * TextBoxBase.cs: Better preferred height, FixedSingle gets the
8149         wider area too.
8150         - Don't set the BoundsSpecified
8151
8152 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
8153
8154         * Application.cs: When using the toolstrip shortcut mechanism, allow the
8155         message to pass through to a regular control if it hosted by a toolstrip.
8156         * ToolStrip.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
8157         ToolStripManager.cs: Enable keyboard navigation for ToolStrips.
8158
8159 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
8160
8161         * TextRenderer.cs: Use the flags argument when using the MeasureString
8162         fallback algorithm.
8163
8164 2007-04-30  Jonathan Pobst  <monkey@jpobst.com>
8165
8166         * MenuStrip.cs: Don't let multiple ToolStripSeparators get added to
8167         the MDI menu item.  [Fixes bug #81483]
8168
8169 2007-04-30  Gert Driesen  <drieseng@users.sourceforge.net>
8170
8171         * DataGridViewColumn.cs: Initialize value of headercell to zero-length
8172         string. When setting Name to null, use zero-length string instead.
8173
8174 2007-04-29  Andreia Gaita  <avidigal@novell.com>
8175
8176         * TabControl.cs: Implement missing 2.0 methods (SelectTab, 
8177         DeselectTab). Implement missing 2.0 TabPageCollection methods
8178         (Add, ContainsKey, RemoveByKey, IndexOfKey)
8179
8180 2007-04-29  Pedro Martínez Juliá  <pedromj@gmail.com>
8181
8182         * DataGridViewColumn.cs: Make HeaderText take preference over Name.
8183
8184 2007-04-29  Gert Driesen  <drieseng@users.sourceforge.net>
8185
8186         * RichTextBox.cs: In LoadFile, use StreamReader to read plain text.
8187         Fixes bug #81479. Include details of exception when LoadFile fails.
8188
8189 2007-04-28  Alan McGovern <alan.mcgovern@gmail.com>
8190
8191         * DrawListViewSubItemEventArgs.cs: Added missing setter
8192
8193 2007-04-27  Andreia Gaita  <avidigal@novell.com>
8194
8195         * ToolTip.cs: Add missing 2.0 properties. Implement 2.0 Show and 
8196         Hide methods (not complete). Implement missing 2.0 OnPopup event.
8197
8198 2007-04-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8199
8200         * ListView.cs: In ItemControl.OnMouseDown restore a pair of braces I
8201         removed in ly last commit (it was breaking the Label edit feature).
8202
8203         * ThemeWin32Classic.cs: When drawing a ListViewItem use
8204         StringAlignment.Near for LineAlignment (match .Net).
8205
8206 2007-04-27  Andreia Gaita  <avidigal@novell.com>
8207
8208         * TabControl.cs: Change SetTab so it adds the tabpage to the list
8209         of controls if it isn't already there - was blowing up when doing
8210         tabcontrol.TabPages[i]=new TabPage(). 
8211         SetTab now does a replace by removing the page at the index. 
8212         Add a new InsertTab method that inserts a page in a given index 
8213         instead of replacing. 
8214         Implements TabPageCollection.Insert(int, TabPage).
8215
8216 2007-04-27  Chris Toshok  <toshok@ximian.com>
8217
8218         * BindingManagerBase.cs: fill in CurrentItemChanged (and have an
8219         internal handler that can be invoked from our subclasses.)  Also,
8220         add a comment to PushData about how we need to fix it.
8221
8222         * CurrencyManager.cs: tons of changes here.  trying to get things
8223         matching the behavior of .net wrt event orders (ItemChanged,
8224         CurrentChanged, PositionChanged.)  I've implemented a private .net
8225         symbol (ChangeRecordState) that appears in stack traces because
8226         it's actually easier to do this than to effective inline all its
8227         various behaviors at every call site.
8228
8229         * RelatedPropertyManager.cs: guard against an exception here by
8230         not using parent.Current if the position is set to -1 (if the
8231         parent datasource is cleared, for instance).
8232
8233         * Binding.cs: don't parse data in PushData (this might be wrong,
8234         but it jives with MS's behavior.)  Also, don't call PushData when
8235         we get a CurrentChanged event.
8236
8237 2007-04-27  Andreia Gaita  <avidigal@novell.com>
8238
8239         * WebBrowser.cs,
8240           WebBrowserBase.cs,
8241           WebBrowserSiteBase.cs,
8242           HtmlDocument.cs: Added stubbed out classes, no real implementations 
8243           yet.
8244
8245 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
8246
8247         * MainMenu.cs: In draw method without parameters call draw method with 
8248         PaintEvent, another one (just rect) adjust rectangle and we dont need it
8249         as Rect property is already adjusted. Fixes #80694.
8250
8251 2007-04-27  Jonathan Pobst  <monkey@jpobst.com>
8252
8253         * Application.cs: Need to handle keyboard menu deselection here.
8254         * Control.cs: Use WM_SYSKEYUP instead of WM_SYSCOMMAND to start menu keyboard
8255         navigation, allowing keyboard to work on X11.
8256         * ToolStrip.cs: Don't worry about handling the Menu key here anymore.
8257
8258 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
8259
8260         * MenuAPI.cs: When deactivate menu verify if hotkey (_) is active and redraw
8261         menu bar. It fixes some drawing issues in menu bar.
8262
8263 2007-04-27  Everaldo Canuto  <everaldo@simios.org>
8264
8265         * MenuAPI.cs: Remove unneeded "keynav_state = KeyNavState.Idle" before 
8266         Deactivate calls, Deactivate method already do it. Also ser ActiveTracker
8267         when <alt> key is pressed.
8268
8269 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
8270
8271         * XplatUIX11.cs: Simplify SystrayRemove to be like other libraries,     Gtk as 
8272         example just set visible to false and make this prevent from other problems.
8273         In SystrayAdd always remove pending expose. Fixes #81072.
8274
8275 2007-04-26  Marek Safar  <marek.safar@gmail.com>
8276
8277         * TextBoxBase.cs (CaretMoved): Consider scroll maximum when scroll
8278         value is set.
8279
8280 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
8281
8282         * ListView.cs: Added three missing 2.0 events and corresponding
8283         EventHandlers. Added the OwnerDraw property.
8284         * DrawListViewColumnHeaderEventHandler.cs: fixed typo
8285
8286 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
8287
8288         * DrawListViewItemEventArgs.cs
8289         * DrawListViewSubItemEventArgs.cs: Brought classes up to 2.0 status.
8290
8291 2007-04-26  Alan McGovern <alan.mcgovern@gmail.com>
8292
8293         * TextControl.cs: Fixed typo in constructor
8294
8295 2007-04-26  Jonathan Pobst  <monkey@jpobst.com>
8296
8297         * Application.cs: Create a shortcut path so that currently selected
8298         MenuStrips can intercept keyboard events without having focus.
8299         * Control.cs: Handle WM_SYSCOMMAND message to activate MenuStrips.
8300         * MenuStrip.cs, ToolStrip.cs, ToolStripDropDown.cs, ToolStripDropDownItem.cs,
8301         ToolStripItem.cs, ToolStripManager.cs, ToolStripMenuItem.cs: Support
8302         keyboard navigation (arrows, tab, enter, esc) on Windows.  Still need to
8303         generate WM_SYSCOMMAND message in X11 for other platforms.
8304         * ToolStripProfessionalRenderer.cs: ToolStripMenuItems need to be painted
8305         in OnRenderMenuItemBackground instead of OnRenderButtonBackground.
8306         * ToolStripSplitButton.cs: Add DefaultItem property.
8307         
8308 2007-04-26  Everaldo Canuto  <everaldo@simios.org>
8309
8310         * MainMenu.cs: In OnMenuChanged pass PaintEventArgs to Draw method, it
8311         fixes some menu draw problem on Windows with border diferent from default
8312         it also fixes #81403.
8313
8314 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8315
8316         * Form.cs: Refactor WndProc into separate methods, just like Control is
8317           doing it.
8318
8319 2007-04-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8320
8321         * Control.cs: set_Text: move the call to the driver into a seperate
8322           virtual method so that Form can override it.
8323         * MaskedTextBox.cs: Corcompare fixes.
8324         * Form.cs: Override UpdateWindowText and only update the styles if the
8325           form has been shown (fixes #81405).
8326
8327 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
8328
8329         * Control.cs, Form.cs: Use the better supported WM_?BUTTONDOWN and
8330         WM_ACTIVATE messages instead of WM_MOUSEACTIVATE and
8331         WM_ACTIVATEAPP.  This fixes menus not disappearing on X11 when
8332         the form lost focus or another control was clicked.
8333
8334 2007-04-25  Gert Driesen  <drieseng@users.sourceforge.net>
8335
8336         * DataGrid.cs: Uncomment MakeTransparent calls since bug #80151 is
8337         fixed.
8338
8339 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8340
8341         * DrawListViewColumnHeaderEventHandler.cs, DrawToolTipEventArgs.cs,
8342           DrawListViewItemEventHandler.cs,
8343           DrawListViewSubItemEventHandler.cs, DrawToolTipEventHandler.cs:
8344           Added.
8345         * X11Structs.cs: More ToString implementation.
8346
8347 2007-04-25  Jonathan Pobst  <monkey@jpobst.com>
8348
8349         * ToolStripDropDownItem.cs: Don't lazy create a DropDown in Dispose.
8350         * ToolStripOverflowButton.cs: Don't lazy create a DropDown in HasDropDownItems.
8351
8352 2007-04-25  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8353
8354         * Control.cs: Only raise OnVisibleChanged if we're not recreating the
8355           handle.
8356         * FormCollection.cs: Don't add a form if it's already in the
8357           collection.
8358         * Form.cs: Change ShowDialog () to call ShowDialog (owner) with a null
8359           according to behaviour and MSDN. The ownerWin32 is the active
8360           window at the moment when we call ShowDialog, not the context's
8361           main form (the context's main form may open another form that opens
8362           a form with ShowDialog, the win32 owner is the second form). Add
8363           and remove forms to the Application.OpenForms in other places to
8364           better match MS behaviour. Add an IsActive property that raises
8365           On(de)Activated only if the active state has changed (we were
8366           raising OnDeactivated before OnActivated while creating forms).
8367         * Application.cs: Refactor Enabling/Disabling of windows for modal
8368           dialog loops out to separate methods, and restore the thread
8369           context when we quit the method. Fixes #81407.
8370
8371 2007-04-25  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8372
8373         * ListView.cs: In ItemControl.HandleClicks, also fire 
8374         2.0 MouseClick or MouseDoubleClick events on the parent,
8375         not only the Click/DoubleClick events.
8376
8377 2007-04-24  Andreia Gaita  <avidigal@novell.com>
8378
8379         * TableLayoutSettings.cs: 
8380         - Added a GetControls method and a support structure to help the 
8381         TypeConverter to enumerate the controls for     serialization. 
8382         - Added a new serialization constructor. 
8383         - Added a isSerialized flag initialized to true on the 
8384         serialization constructor so that the TableLayoutPanel.LayoutSettings 
8385         setter does not throw the designed NotSupportedOperation exception
8386         when the object is built through deserialization.
8387         - Implemented GetObjectData
8388         
8389         * TableLayoutPanel.cs: Added check on LayoutSettings.
8390
8391 2007-04-24  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8392
8393         * ListView.cs: Report Click and DoubleClick events to the parent
8394         from ItemsMouseUp, instead of ItemsMouseDown. This prevents us
8395         from breaking the click count state when using dialog forms (Control
8396         reports the clicks in a similar fashion). In the previous behaviour
8397         the last WM_LBUTTONUP message in a  double click was sent to the
8398         ListView's form, instead of the ListView, which was breaking the click
8399         count for it. Fixes #80387.
8400
8401 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
8402
8403         * BindingNavigator.cs : fixed bugs revealed by new nunit tests
8404
8405 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
8406
8407         * ToolStripDropDownItem.cs: Lazy initialize the DropDown.  This prevents
8408         us from created dropdowns for menu items that do not have subitems.
8409         * ToolStripItem.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs:
8410         Check HasDropDownItems before calling DropDown so a dropdown will not be
8411         created if it isn't needed.
8412
8413 2007-04-24  Jackson Harper  <jackson@ximian.com>
8414
8415         * TreeView.cs: Set the first node to the selected node when we get
8416         focus if there is no selected node.
8417
8418 2007-04-24  Andreia Gaita  <avidigal@novell.com>
8419
8420         * MimeIcon.cs: remove using blocks so that image streams are
8421         not disposed of. Fixes #80151
8422
8423 2007-04-24  Jackson Harper  <jackson@ximian.com>
8424
8425         * TextBoxBase.cs: Fixup the height of textboxes when the control
8426         is created.
8427
8428 2007-04-24  Jonathan Pobst  <monkey@jpobst.com>
8429
8430         * ToolStrip.cs: Fully implement GetNextItem.  Call OnParentRightToLeftChanged
8431         for each ToolStripItem when the parent's RightToLeftChanged is called.
8432
8433 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8434
8435         * ComboBox.cs: Forward ContextMenu to the underlying textbox, if any.
8436           Fixes #80163.
8437         * Control.cs: Replace GetContextMenuInternal() with ContextMenuInternal
8438           property, so that the setter can be overriden too.
8439         * TextBox.cs: Change GetContextMenuInternal() to use
8440           ContextMenuInternal.
8441
8442 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8443
8444         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
8445           #81406.
8446
8447 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8448
8449         * ThemeWin32Classic.cs: Use a black pen to draw checkboxes, fixes
8450           #81406.
8451
8452 2007-04-24  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8453
8454         * MaskedTextBox.cs: Commit this so nobody else starts working on it and
8455           avoid duplicate work. Mostily skeleton code, it's not working at
8456           all yet.
8457
8458 2007-04-20  Leszek Ciesielski <skolima@gmail.com>
8459
8460         * NotifyIcon.cs : stub for MouseClick event
8461         * Application.cs: stub for SetUnhandledExceptionMode
8462
8463 2007-04-24  Alan McGovern <alan.mcgovern@gmail.com>
8464
8465         * BindingNavigator.cs : Initial (partial) implementation
8466
8467 2007-04-23  Jackson Harper  <jackson@ximian.com>
8468
8469         * TreeView.cs: Do not create the treeview's handle when setting
8470         the scroll position.
8471         - ExpandAll needs to compute the scrollbars so it knows which
8472         position to set the bar too.
8473         * TreeNode.cs: 
8474         * TreeNodeCollection.cs: Pass new flag to UpdateScrollBars
8475
8476 2007-04-23  Jackson Harper  <jackson@ximian.com>
8477
8478         * TextBoxBase.cs: Non multiline textboxes shouldn't take the enter
8479         key. Fixes #81408.
8480
8481 2007-04-23  Jonathan Pobst  <monkey@jpobst.com>
8482
8483         * ToolStripItem.cs: Make GetImageSize internal.
8484         * ToolStripMenuItem.cs: Use GetImageSize to determine the size we
8485         need to draw an item.  Fixes a reported issue where images on menus
8486         that were not 16x16 were drawing incorrectly.
8487
8488 2007-04-21  Miguel de Icaza  <miguel@novell.com>
8489
8490         * Padding.cs: Use the converter, fixes the resgen2 issue with
8491         XMLNotePad. 
8492
8493 2007-04-21  Jackson Harper  <jackson@ximian.com>
8494
8495         * TreeView.cs: Dont try to unhighlight the selected node if there
8496         isn't a selected node.
8497
8498 2007-04-21  Jackson Harper  <jackson@ximian.com>
8499
8500         * UpDownBase.cs:
8501         * TextBoxBase.cs:
8502         * ListView.cs:
8503         * ListBox.cs:
8504         * TreeView.cs: Use the InternalBorderStyle property to set the
8505         initial border style, this forces the client rectangle to be sized
8506         correctly.
8507
8508 2007-04-20  Jackson Harper  <jackson@ximian.com>
8509
8510         * TreeView.cs: Simplify scrolling to the last node after expanding
8511         all.
8512         - Fix some off by ones with setting the bottom.
8513
8514 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
8515
8516         * Control.cs: Use DefaultSize for Size, calculate ClientSize from
8517         that.  We were incorrectly doing it the other way around.  Also,
8518         update ClientSize if we change the BorderStyle before the control
8519         is created.
8520
8521 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
8522
8523         * XplatUI.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
8524         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
8525         XplatUIDriver.Caption to CaptionHeight. Spaces to tabs.
8526         * XplatUIDriver.cs: Added Border3DSize, BorderSize, CaptionButtonSize,
8527         DoubleClickSize, DoubleClickTime and FixedFrameBorderSize. Renamed
8528         Caption to CaptionHeight.
8529         * XplatUIX11.cs: Renamed Caption to CaptionHeight.
8530         * Theme.cs: Modified Border3DSize, BorderSize, CaptionButtonSize
8531         and FixedFrameBorderSize to return value from current XplatUI driver.
8532         * XplatUIWin32.cs: Implemented Border3DSize, BorderSize,
8533         CaptionButtonSize, DragFullWindows, DoubleClickSize, DoubleClickTime
8534         and FixedFrameBorderSize using win32 API. Renamed Caption to
8535         CaptionHeight.
8536         * XplatUIOSX.cs: Renamed Caption to CaptionHeight.
8537         * SystemInformation.cs: Fixed typo in BorderSize.
8538
8539 2007-04-20  Gert Driesen  <drieseng@users.sourceforge.net>
8540
8541         * XplatUI.cs: Added MenuAccessKeysUnderlined.
8542         * XplatUIDriver.cs: Added MenuAccessKeysUnderlined.
8543         * XplatUIX11.cs: Implemented MenuAccessKeysUnderlined by always
8544         returning false.
8545         * Theme.cs: Modified MenuAccessKeysUnderlined to return corresponding
8546         value from XplatUI driver.
8547         * XplatUIWin32.cs: Implemented MenuAccessKeysUnderlined using
8548         SystemParametersInfo.
8549         * ThemeWin32Classic.cs: Remove obsolete MenuAccessKeysUnderlined
8550         override.
8551         * XplatUIOSX.cs: Implemented MenuAccessKeysUnderlind by always
8552         returning false.
8553
8554 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8555
8556         * XplatUIX11.cs, Hwnd.cs: Remove warnings.
8557
8558 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8559
8560         * MessageBox.cs, XplatUIX11.cs, Hwnd.cs: Remove warnings.
8561
8562 2007-04-20  Jonathan Pobst  <monkey@jpobst.com>
8563
8564         * ToolStripManager.cs: Fix a reported InvalidCastException when unmerging
8565         MenuStrips that contain ToolStripSeparators.
8566
8567 2007-04-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8568
8569         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Add
8570           DefineStdCursorBitmap.
8571         * Cursor.cs: Add an internal constructor so that the Cursor knows if it
8572           has been created off a standard cursor. This is used to get a
8573           bitmap of the standard cursor when Draw or DrawStretched is called
8574           in order to draw the cursor.
8575         * X11Structs.cs: Added XcursorImage and XcursorImages.
8576         * XplatUIX11.cs, XplatUIWin32.cs: Add and implement
8577           DefineStdCursorBitmap.
8578         * Cursors.cs: Update all relevant creations of Cursor to use the new
8579           internal constructor.
8580
8581 2007-04-19  Jackson Harper  <jackson@ximian.com>
8582
8583         * TextBox.cs: Move the has_been_focused into the base control, so
8584         some of the text adding methods can manipulate it (probably time
8585         for a better name for this flag too).
8586         - Call a new version of selectall that doesn't scroll
8587         * TextBoxBase.cs: When we append text, if the document is empty,
8588         don't scroll.  If the document has text already, we scroll to the
8589         end of the appended text.
8590         - When the text is changed, we reset the has_been_focused, so the
8591         next time the control gets focused, all the text is selected.
8592
8593 2007-04-19  Jackson Harper  <jackson@ximian.com>
8594
8595         * TextControl.cs: Move the margins to the document, add a method
8596         so the margin sizes can be updated.
8597         * TextBoxBase.cs: When the border style is changed, update the
8598         border sizes.
8599
8600 2007-04-19  Jonathan Pobst  <monkey@jpobst.com>
8601
8602         * Control.cs: Respect DefaultPadding.
8603         * GroupBox.cs: Implement DefaultPadding, DisplayRectangle takes
8604         padding into account.
8605         * ToolStrip.cs: Remove setting padding to DefaultPadding in constructor.        
8606
8607 2007-04-19  Jackson Harper  <jackson@ximian.com>
8608
8609         * TextControl.cs: Oops, we need to use the ClientRect not the
8610         bounds here.
8611
8612 2007-04-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8613
8614         * ListView.cs: In ItemControl.ItemsMouseDown, take into
8615         account the double clicks when CheckBoxes are used and
8616         the pointer is inside the checkbox. Fixes part of #81191.
8617
8618 2007-04-18  Jackson Harper  <jackson@ximian.com>
8619
8620         * TextControl.cs: Pressing the end key shouldn't move the caret
8621         past the line ending.
8622         * TextBoxBase.cs: We can still delete if we are in the line
8623         ending and the combine will just kill the existing line ending.
8624
8625 2007-04-18  Jackson Harper  <jackson@ximian.com>
8626
8627         * TextControl.cs: We can't move lines, then invalidate their
8628         bounds, we need to get the old bounds and combine that with the
8629         new bounds.
8630         * TextBoxBase.cs: Before combining two lines for a delete, we need
8631         to invalidate the area of the old line, since that will be moved
8632         in the combine operation.
8633
8634 2007-04-18  Everaldo Canuto  <everaldo@simios.org>
8635
8636         * LinkLabel.cs: In OnPaint invoke draw background to fix problems
8637         with transparent background. Fixes #80482.
8638
8639 2007-04-18  Jonathan Pobst  <monkey@jpobst.com>
8640
8641         * PictureBox.cs: Refresh on resize when SizeMode = Zoom.
8642         * ThemeWin32Classic.cs: Implement PictureBox.SizeMode = Zoom.
8643         [Fixes bug #81391]
8644
8645 2007-04-18  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8646
8647         * CreateParams.cs: Add a couple of helper methods and do a less string
8648           concatenation in ToString.
8649         * XplatUIX11.cs: Add an TranslateClientRectangleToXClientRectangle
8650           overload that takes a Control parameter, since this method may be
8651           called before a control is assigned to the hwnd (from
8652           CreateWindow), and update CreateWindow to use the new overload. In
8653           GetMenuOrigin subtract the title bar from the y position if the
8654           form has a window manager (since we're painting it and not X).
8655         * XplatUIWin32.cs: If we can get a form in GetMenuOrigin use the form's
8656           CreateParams to calculate the origin (since border sizes may vary).
8657           In ScreenToMenu only subtract the title height if we actually have
8658           a title.
8659         * MdiWindowManager.cs: Override MenuHeight to always return 0, since
8660           mdi children never have menus of themselves.
8661         * InternalWindowManager.cs: Implement menu handling like form does.
8662           Added GetMenuOrigin to calculate the menu origin, can't use the
8663           CreateParams from the form like normally since it's lying.
8664         * Hwnd.cs: Implement GetBorderSize better (in the sense more
8665           windows-like) and add Inflate and comparison operators to the
8666           Borders type. When calculating MenuOrigin and it's a form with a
8667           window manager, use the window manager to calculate it.
8668
8669 2007-04-17  Chris Toshok  <toshok@ximian.com>
8670
8671         * Control.cs (CreateControl): turns out in 2.0 we don't need this
8672         OnBindingContextChanged thing here.  It's only generated from
8673         ContainerControl.OnCreateControl.  Fixes a newly written unit test
8674         - BindingTest.BindingContextChangedTest4.
8675         
8676 2007-04-17  Jackson Harper  <jackson@ximian.com>
8677
8678         * ScrollBar.cs: When setting values, make sure the current
8679         position stays within the new values range.
8680
8681 2007-04-17  Chris Toshok  <toshok@ximian.com>
8682
8683         * Control.cs (CreateControl): talk about a bizarre corner case.
8684         Don't emit OnBindingContextChanged here if we're a parentless
8685         control (i.e. if we're a form.).  Fixes
8686         BindingTest.BindingContextChangedTest2.
8687
8688 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
8689
8690         * ButtonBase.cs: Remove TextFormatFlags.WordBreak to mimic same behavior 
8691         from win32. Fixes #81255.
8692
8693 2007-04-17  Everaldo Canuto  <everaldo@simios.org>
8694
8695         * ThemeWin32Classic.cs: Remove text offset from DrawButtonText as it is
8696         already present in CalculateButtonTextAndImageLayout.
8697
8698 2007-04-17  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8699
8700         * XplatUIX11.cs: When setting min/max size for a window we need to
8701           translate the coordinates to x coordinates. Create an overload of
8702           SetWindowMinMax that takes a CreateParams handling this, and change
8703           SetWMStyles to call this function (can't use Control.FromHandle in
8704           the SetWindowMinMax to get the control/CreateParams from the handle
8705           because the handle might not have been assigned to the control
8706           yet). Fixes #81371.
8707
8708 2007-04-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8709
8710         * ListView.cs: In ItemControl.ItemMouseDown, don't change check state
8711         if StateImageList is non-null and it has less than two items (match MS
8712         behaviour). Also, in HandleNavKeys handle the Space key, calling
8713         the new ToggleItemsCheckState method, which tries to change the
8714         checked state of the selected items. Fixes part of #81191.
8715
8716 2007-04-16  Jackson Harper  <jackson@ximian.com>
8717
8718         * RichTextBox.cs: namespace cleanup.
8719
8720 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
8721
8722         * XplatUIWin32.cs: Back last parameter to true in SetClipRegion.
8723
8724 2007-04-16  Everaldo Canuto  <everaldo@simios.org>
8725
8726         [Fixes #79447]
8727         * Control.cs: Call invalidate in set_Region.
8728
8729         * XplatUIX11.cs, XplatUIWin32.cs: Remove invalidate from SetClipRegion as
8730         it dont works here.
8731
8732 2007-04-16  Jackson Harper  <jackson@ximian.com>
8733
8734         * TextBoxBase.cs: When enter is pressed, we need to update all
8735         lines below the current.
8736
8737 2007-04-16  Jonathan Pobst  <jpobst@monkey.com>
8738
8739         * MdiClient.cs: Implement implicit menu merging for MDI
8740         children.  When a child form is active, if it has a menustrip
8741         and the parent form has a MainMenuStrip, automatically merge
8742         the menus.
8743
8744 2007-04-15  Andreia Gaita  <avidigal@novell.com>
8745
8746         * TabControl.cs: Refactored sizing methods to not repeat
8747         code all over the place. Tab bounds are now calculated
8748         as if alignment is top and single line, and only when 
8749         setting the bounds are the positions adjusted according
8750         to alignment. Replaced hardcoded positions, spacings and
8751         paddings by getting the values the ThemeEngine. 
8752         Fixes #79619.
8753         
8754         * Theme.cs: Change TabControl properties and methods so
8755         that all start with TabControl*. Added more properties
8756         to help remove hardcoded values on tabcontrol.
8757         Add CPDrawBorder3D declaration so the Theming classes
8758         can access it.
8759         
8760         * ThemeClearlooks.cs, ThemeNice.cs: Method signature changes from Theme.
8761
8762         * ThemeWin32Classic.cs: Rector TabControl out to the TabControlPainter
8763         on the Theming namespace, and call the appropriate methods here.
8764         Change CPDrawBorder3D to public.
8765
8766 2007-04-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8767
8768         * Control.cs: In WmRButtonUp, send the WM_CONTEXTMENU message to
8769         the control after firing the OnMouseUp event, instead of sending
8770         the message before the mentioned event. This is so we can match the
8771         MS behaviour. Fixes part of #80385.
8772
8773 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
8774
8775         * ToolStripItem.cs: Call the RightToLeftChanged event when setting the
8776         RightToLeft property.
8777
8778 2007-04-13  Jonathan Pobst  <monkey@jpobst.com>
8779
8780         * ToolStrip.cs: Add properties and internal methods to support merging.
8781         * ToolStripItem.cs: Add MergeAction and MergeIndex.
8782         * ToolStripItemCollection.cs: Add Insert and Remove methods that do
8783         not trigger reparenting or layouts.
8784         * ToolStripManager.cs: Add Merge and RevertMerge methods.
8785         * ToolStripOverflow.cs: Add a convenience method to find the ToolStrip that
8786         is hosting the overflow menu.
8787
8788 2007-04-13  Jackson Harper  <jackson@ximian.com>
8789
8790         * TextControl.cs: Set the line ending correctly for the first
8791         inserted line.
8792
8793 2007-04-13  Sebastien Pouliot  <sebastien@ximian.com>
8794
8795         * Theme.cs: Update GetMethod to get the new definition for 
8796         KnownColors.Update (and fix theme color updates).
8797
8798 2007-04-12  Everaldo Canuto  <everaldo@simios.org>
8799
8800         * MessageBox.cs: Fix some test and button position.
8801
8802 2007-04-12  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8803
8804         * Form.cs: Consider the implicit controls in
8805         GetRealChildAtPoint. We need it since this method
8806         is called on Form when handling the some messages in
8807         WndProc, and need to consider those implicit ones too.
8808         Fixes #80385.
8809
8810 2007-04-12  Jonathan Pobst  <monkey@jpobst.com>
8811
8812         * ToolStripMenuItem.cs: Display the ShortcutKeyDisplayString even
8813         if there are no ShortcutKeys set.
8814         * ToolStripProfessionalRenderer.cs: If an item has had its BackColor
8815         set, use it when painting.
8816
8817 2007-04-12  Jackson Harper  <jackson@ximian.com>
8818
8819         * TextControl.cs: Fix some off-by-one issues in line duplication
8820         and insertion in the undo manager. Also, overwrite the first tag
8821         of a line on insert, if it is just a zero lengthed tag. This
8822         prevents us from getting an extra stranded tag at the beginning of
8823         the first line.
8824
8825 2007-04-11  Everaldo Canuto  <everaldo@simios.org>
8826
8827         * Label.cs: Remove check for handle created in CalcAutoSize, we need 
8828         to calculated proper size including when handle was not created yet.
8829
8830 2007-04-11  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8831
8832         * MdiWindowManager.cs: When moving a form, allow the form to be moved
8833           when the mouse is outside of it's parent's client rectangle. Fixes
8834           #79982 (take 3, part 2).
8835
8836 2007-04-10  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8837
8838         * X11Structs.cs: Add a few ToString() overrides.
8839         * XplatUIX11.cs: Added GetTopLevelWindowLocation to try to calculate
8840           the window location in a window-manager independent way. Reworked
8841           FrameExtents, it now actually works. Reworked AddConfigureNotify
8842           and ReparentNotify handling to use GetTopLevelWindowLocation
8843           instead of the earlier, more hacky solution. Reworked SetWMStyles,
8844           hopefully for the better: we now set _NET_WM_WINDOW_TYPE* for all
8845           windows, DIALOG for modal windows, UTILITY for toolboxes and NORMAL
8846           for all other windows (fixes #81281 part 1), a toolwindow is hidden
8847           from the taskbar if it has a parent (fixes #81281 part 2 for kwin),
8848           and generally refactored to do as few calculations as possible
8849           inside the lock.
8850
8851 2007-04-09  Sebastien Pouliot  <sebastien@ximian.com>
8852
8853         * Theme.cs: Change "reflective-contract" between MWF and SD to 
8854         minimize # of calls, avoid Color serialization and avoid updating 
8855         every "known colors" each time a single one is updated.
8856
8857 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
8858
8859         * DataGridTextBoxColumn.cs: Only set IsInEditOrNavigateMode to false
8860         when not readonly and the text is explicitly set. Code style updates.
8861         * DataGridTableStyle.cs: Removed extra line.
8862         * DataGrid.cs: Code style updates. Removed extra whitespace.
8863         * DataGridColumnStyle.cs: Code style updates. Removed extra 
8864         whitespace.
8865
8866 2007-04-09  Rolf Bjarne Kvinge <RKvinge@novell.com> 
8867
8868         * XplatUIX11.cs: Added comment that "fixes" #80021.
8869
8870 2007-04-09  Jackson Harper  <jackson@ximian.com>
8871
8872         * TextControl.cs: We don't need this -1 on the line count anymore.
8873
8874 2007-04-09  Gert Driesen  <drieseng@users.sourceforge.net>
8875
8876         * DataGridTextBoxColumn.cs: In Commit, use TypeConverter to convert
8877         entered value to underlying type, and convert it back to a string to
8878         apply formatting. Modified GetFormattedValue to use TypeConverter
8879         if available.
8880
8881 2007-04-08  Gert Driesen  <drieseng@users.sourceforge.net>
8882
8883         * ListViewItem.cs: Added null checks. Avoid duplicating code in ctors.
8884         Use SubItems property when we want to ensure there's at least one
8885         subitem. Modified SubItems property to ensure there's always at least
8886         one subitem. Avoid using ListViewSubItemCollection.AddRange to match
8887         the NRE's reported by MS.
8888
8889 2007-04-07  Gert Driesen  <drieseng@users.sourceforge.net>
8890
8891         * ProgressBar.cs: On 2.0 profile, default forecolor is Highlight. Added
8892         ResetForeColor override on 2.0. Fixed a few API compatibility issues.
8893         Spaces to tabs. Removed extra tabs.
8894
8895 2007-04-06  Jonathan Pobst  <monkey@jpobst.com>
8896
8897         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
8898         infinite loop.  (Forgot to copy to the horizontal toolstrip case.)
8899
8900 2007-04-06  Jackson Harper  <jackson@ximian.com>
8901
8902         * TextBoxBase.cs: When a delete removes a line, recalculate all
8903         lines below that line (they need to get offsets setup correctly)
8904         and invalidate.
8905
8906 2007-04-05  Jackson Harper  <jackson@ximian.com>
8907
8908         * TextControl.cs: We need to invalidate across the width of the
8909         document when we are invalidating multiple lines.
8910         * TextBoxBase.cs: Don't delete into the line ending.
8911
8912 2007-04-05  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8913
8914         * ListView.cs: Restore the check for the MouseHover event
8915         in ListView. It looks like the ListView fires more than one MouseHover
8916         event when HoverSelection is true  _only_ in weird-corner scenarios, but
8917         in most of the cases it only fires one. Also, add the 2.0 ItemMouseHover
8918         event.
8919
8920 2007-04-05  Mike Kestner  <mkestner@novell.com>
8921
8922         * ListView.cs : raise MouseDown before updating selection.
8923         [Fixes #80373 tab 1&3]
8924
8925 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
8926
8927         * ToolStripRenderer.cs: Add static method to mirror image.
8928         * ToolStripProfessionalRenderer.cs: Support ImageTransparentColor
8929         and RightToLeftAutoMirrorImage.
8930         * ToolStripItem.cs: Remove MonoTODO from ImageTransparentColor.
8931
8932 2007-04-05  Jonathan Pobst  <monkey@jpobst.com>
8933
8934         * ToolStripSplitStackLayout.cs: Support Alignment property.
8935         * ToolStripItem.cs: Remove MonoTODO from the Alignment property.
8936
8937 2007-04-05  Jackson Harper  <jackson@ximian.com>
8938
8939         * TextControl.cs: Move around the line endings when crossing line
8940         boundaries.
8941         - When combining lines, strip the ending text off the first line.
8942
8943 2007-04-05  Jackson Harper  <jackson@ximian.com>
8944
8945         * TextControl.cs:
8946         * TextBoxBase.cs: Try to never move the cursor into the line
8947         ending.
8948         
8949 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
8950
8951         * ToolStripItem.cs: Make sure we aren't firing mouse events when
8952         the item is disabled.  Also add a few missing methods.
8953
8954 2007-04-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
8955
8956         * ListView.cs: We don't need the MouseEnter/MouseLeave check
8957         to fire just one MouseHover event when HoverSelection is true, since
8958         .Net does fire more than one MouseHover event in that scenario. Also,
8959         fix the selection in HoverSelection, by invoking UpdateMultiSelect
8960         if MultiSelect is true, instead of only setting ListViewItem.Selected.
8961         Finally, we need to reset the Hover logic in MouseMove, even when we
8962         don't have a selected item.
8963
8964 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
8965
8966         * ToolStrip.cs: Add several missing methods, properties, and events.
8967
8968 2007-04-04  Chris Toshok  <toshok@ximian.com>
8969
8970         * DataGridTextBoxColumn.cs: set the bounds of the text box to
8971         (0,0,0,0) in Commit, as MS does.
8972
8973         * DataGrid.cs: call EndEdit() from Select() as microsoft does, and
8974         make sure we set CurrentRow on a row header click *before* calling
8975         Select.  This moves the current cell (and the textbox) to the new
8976         row.  The call to Select then hides the textbox, giving us the
8977         correct behavior.  Fixes #80362.
8978
8979         * CurrencyManager.cs (UpdateIsBinding): raise ItemChanged (-1).
8980         (ListChangedHandler): reorder the position/current changed events,
8981         and call UpdateIsBinding in the ItemAdded case.
8982
8983         * GridColumnStylesCollection.cs: add some columns events, one of
8984         which raises the CollectionChanged event.
8985
8986 2007-04-04  Jackson Harper  <jackson@ximian.com>
8987
8988         * TextControl.cs: When we delete multiple selection lines
8989         invalidate the selection area, don't need to do that for single
8990         lines because the final update view will handle it.
8991
8992 2007-04-04  Jonathan Pobst  <monkey@jpobst.com>
8993
8994         * Control.cs: When we CreateControl, we need to also create all of the
8995         control's children.  The child's OnLoad must also fire before the parent's
8996         OnLoad.  Fixes the toolbox size in PDN.
8997
8998 2007-04-04  Jackson Harper  <jackson@ximian.com>
8999
9000         * TextBoxBase.cs: When the user presses enter, insert a line
9001         ending into the text. (Maybe this would be a good spot for
9002         Environment.NewLine).
9003         * TextControl.cs: Remove undo manager hack, line endings get
9004         inserted properly now.
9005         
9006 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
9007
9008         * MenuAPI.cs: 
9009         - Remove unneeded parameters in UpdateCursor.
9010         - Fix UpdateCursor to check if menu is active.
9011         - Call UpdateCursor when menu deactivate my click.
9012         [Fixes remaining issues from #80410]
9013
9014 2007-04-04  Everaldo Canuto  <everaldo@simios.org>
9015
9016         * Control.cs: GetRealChildAtPoint method added, it make an
9017         recursive child control search for the point. 
9018
9019         * Form.cs: Makes use of GetRealChildAtPoint in mouse event after closes
9020         menu.
9021
9022         * MenuAPI.cs: Makes use of GetRealChildAtPoint in UpdateCursor.
9023
9024 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
9025
9026         * Form.cs: Fix mouse position when send back mouse event after closes
9027         menu.
9028
9029 2007-04-03  Everaldo Canuto  <everaldo@simios.org>
9030
9031         * Form.cs: Simplify the BUTTONDOWN for active tracker.
9032
9033 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
9034
9035         * Control.cs: Fix an issue where if a user resized a control inside
9036         a sizing method like OnResize, we would overwrite their explicit
9037         value.  Also, only call DefaultSize once in the constructor instead
9038         of 4 times.  Also, do not call SetBoundsCore from SetBounds if 
9039         nothing actually changed.
9040
9041 2007-04-03  Jackson Harper  <jackson@ximian.com>
9042
9043         * TextControl.cs: Don't attempt to copy text for lines with no
9044         text in them (technically this shouldn't happen, but we aren't
9045         always inserting line endings when we should be).
9046
9047 2007-04-03  Jackson Harper  <jackson@ximian.com>
9048
9049         * TextBoxBase.cs: Calculate the scrollbars before calculating the
9050         document, because this sets some of the document size properties
9051         that are needed.
9052
9053 2007-04-03  Jackson Harper  <jackson@ximian.com>
9054
9055         * TextBoxBase.cs: We need to calculate maximums even if this is
9056         not a multiline control, because the maxs are used for scrolling.
9057         - Display the caret after doing a page up/down, we need to
9058         manually display it because a proper CaretMoved event isn't
9059         triggered (this is because of the way the math is done to
9060         determine how far to scroll).
9061
9062 2007-04-03  Jonathan Pobst  <monkey@jpobst.com>
9063
9064         * ToolBar.cs: Fix some breakage caused by the SetBoundsCore change.
9065         (ToolBar was relying on SetBoundsCore to default the values sent 
9066         base off of BoundsSpecified.)
9067
9068 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9069
9070         * DateTimePicker.cs: Change Text so that when a null value or empty
9071           string is assigned to the test we always raise ValueChanged and
9072           TextChanged (earlier implementation would only raise ValueChanged
9073           if the current date value was different from DateTime.Now).
9074
9075 2007-04-03  Andreia Gaita <avidigal@novell.com> 
9076
9077         * ButtonBase: Call update after invalidation, fixes #80194
9078
9079 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9080
9081         * ThemeWin32Classic.cs: Draw StatusBar using double buffering. Fixes
9082           #79335.
9083
9084 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9085
9086         * XplatUIX11.cs: SetWMStyles: If the control is a form with
9087           FormBorderStyle = None, don't give the window any decorations.
9088           Fixes #81276.
9089
9090 2007-04-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9091
9092         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
9093         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style
9094           to check for is a mix of several styles (such as WS_CAPTION for
9095           instance).
9096         * Control.cs: Don't paint an area bigger than the client area when
9097           painting the background colour. Add an internal GetCreateParams.
9098           Update calls to XplatUI.CalculateWindowRect due to API change.
9099         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole
9100           window's size, and handle WM_NCCALCSIZE in DefWndProc to calculate
9101           the size if it hasn't been handled by any windows. When creating
9102           and moving windows, X wants the location of the entire window, but
9103           the size of the client window, so add
9104           TranslateClientRectangleToXClientRectangle,
9105           TranslateWindowSizeToXWindowSIze and
9106           TranslatedXWindowSizeToWindowSize to cope with this, and call them
9107           before every window creation and move. Update CalculateWIndowRect
9108           to use Hwnd.GetWindowRect (one step towards removing DeriveStyles).
9109           In AddConfigureNotify don't do anything if the hwnd is a zombie
9110           (fixes the BadWindow we were getting while running the tests),
9111           always calculate the offsets when it's a parentless window, not
9112           only when reparented, and translate the window size, since we're
9113           getting the client size of the whole window, excluding entire
9114           window.
9115         * Theme.cs: Added BorderSizableSize.
9116         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
9117           anymore. Update calls to XplatUI.CalculateWindowRect due to API
9118           chang
9119         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API
9120           change. Fake the window styles here instead of in XplatUIWin32 so
9121           that all back-ends get the same window styles (and it's Form that's
9122           deciding when to use wm, not the Win32 backend anyways)
9123         * Hwnd.cs: Completely reworked GetWindowRectangle and
9124           GetClientRectangle - they are now passed a CreateParams and they
9125           only use Style and ExStyle to determine the rectangles (they should
9126           now work just like Win32AdjustWindowRectEx - though quite a few
9127           special cases are probably missing). They should also be 100%
9128           complimentary (i.e. GetWindowRectangle (GetClientRectangle (rect))
9129           == rect), and all numbers (borders, menu sizes) are taken from the
9130           current theme. Added a GetBorders helper function that will return
9131           the borders for any given CreateParams (including captions and
9132           menus), and GetBorderSize that returns the given border size only.
9133         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
9134           Hwnd.GetClientRectangle.
9135
9136 2007-04-02  Chris Toshok  <toshok@ximian.com>
9137
9138         * DataGridBoolColumn.cs: rewrite things a bit, and fix up the
9139         logic between the values we present to the user and the values
9140         which are stored in the column's property.  Also, don't call
9141         GetPreferredSize - it's virtual. Along the way, fix bug #80965.
9142
9143 2007-04-02  Jackson Harper  <jackson@ximian.com>
9144
9145         * TextBoxBase.cs: Scroll faster!
9146
9147 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
9148
9149         * StatusStrip.cs: Layout fixes for PDN.
9150         * ToolStrip.cs: Set item's available to true, and placement to main when
9151         added.
9152         * ToolStripItem.cs: Fix an Available issue, check that Parent is really
9153         changing in setter before doing any work, add InternalVisible.
9154         * ToolStripPanel.cs: Remove unused variable to fix compiler warning.
9155         * ToolStripSplitStackLayout.cs: If we run out of things to hide, don't
9156         infinite loop.
9157
9158 2007-04-02  Jackson Harper  <jackson@ximian.com>
9159
9160         * TextBox.cs: LBUTTON does not make the textbox select all of it's
9161         text on focus.
9162
9163 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9164
9165         * XplatUIWin32.cs: Use the previous change in SetParent for forms only.
9166           Makes ToolStripComboBoxes show up again.
9167
9168 2007-04-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9169
9170         * ListView.cs: Add a hover_pending field in ListView
9171         to fire just one OnMouseHover event for each MouseEnter/MouseLeave
9172         cycle (we are resetting the MouseHover logic in XplatUI
9173         to handle HoverSelection). Fixes #80429.
9174
9175 2007-04-02  Jackson Harper  <jackson@ximian.com>
9176
9177         * TextControl.cs: Make sure the attributes get set on the last
9178         tag.
9179         - Still have to do the end tag if we have stepped all the ways to
9180         the end.
9181
9182 2007-04-02  Sebastien Pouliot  <sebastien@ximian.com>
9183
9184         * XplatUIOSX.cs, XplatUIX11.cs, XplatUIX11GTK.cs: Remove dependency
9185         on an internal libgdiplus call when the information is already 
9186         available via the public API.
9187
9188 2007-04-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9189
9190         * Control.cs: Call ContainerControl.ChildControlRemoved whenever a
9191           control is removed from a control collecftion.
9192         * XplatUIX11.cs: The first location for toplevel form is (22, 22).
9193           Fixes FormPropertyTest (failed on rare occasions).
9194         * XplatUIWin32.cs: Add a workaround in SetParent for strange behaviour
9195           of Win32SetParent (when changing from no parent to a parent it
9196           might add the new parent's location in screen coordinates to this
9197           window's location).
9198         * Form.cs: Rework ChangingParent once again, now the handle is
9199           recreated whenever a FormWindowManager is added or removed (that is
9200           whenever a normal form is parented or abandoned). Also change
9201           CreateParams so that all non-toplevel windows always get the
9202           specified sice (StartupPosition is never considered for
9203           non-TopLevel forms).
9204         * ContainerControl.cs: Add ChildControlRemoved, the container control
9205           needs to be notified when a control is removed from it's
9206           collection, in the case the removed control is the active control.
9207
9208 2007-04-02  Jackson Harper  <jackson@ximian.com>
9209
9210         * RichTextBox.cs: Use the new methods for setting the font and
9211         color, these methods set the specified attribute without
9212         overriding the other attributes.
9213
9214 2007-04-02  Jonathan Pobst  <monkey@jpobst.com>
9215
9216         * ToolStripPanel.cs: Fixes for better layouts in PDN.
9217
9218 2007-03-31  Gert Driesen  <drieseng@users.sourceforge.net>
9219
9220         * TextBox.cs: Added internal ChangeBackColor method to special-case
9221         Color.Empty. Added check for invalid ScrollBars value.
9222         * TextBoxBase.cs: Added internal ChangeBackColor method.
9223         * RichTextBox.cs: Only set backcolor_set on 2.0 profile. Added
9224         internal ChangeBackColor method to special-case Color.Empty. Added
9225         check for invalid ScrollBars value.
9226
9227 2007-03-30  Everaldo Canuto  <everaldo@simios.org>
9228
9229         * MenuItem.cs: On invalidate prevent form to create handle. [Fixes #81272]
9230
9231 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
9232
9233         * ScollableControl.cs: Add HorizontalScroll and VerticalScroll properties.
9234         * ScrollProperties.cs, HScrollProperties.cs, VScrollProperties.cs: Added.
9235         [Based on submitted patch from Olivier Duff.]
9236
9237 2007-03-30  Jackson Harper  <jackson@ximian.com>
9238
9239         * TextBox.cs: Only select all on initial focus if the user has not
9240         specified a selection area.
9241
9242 2007-03-30  Jonathan Pobst  <monkey@jpobst.com>
9243
9244         * UserControl.cs: Override CreateParams.
9245
9246 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9247
9248         [ Fixes #80995 ]
9249
9250         * XplatUI.cs, XplatUIDriver.cs: Updated CalculateWindowRect parameters.
9251         * CreateParams.cs: Fix IsSet, wasn't working correctly when the style to
9252           check for is a mix of several styles (such as WS_CAPTION for instance).
9253         * Control.cs: Don't paint an area bigger than the client area when painting
9254           the background colour. Add an internal GetCreateParams. Update calls to
9255           XplatUI.CalculateWindowRect due to API change.
9256         * XplatUIX11.cs: In PerformNCCalc set the initial size to the whole window's
9257           size, and handle WM_NCCALCSIZE in DefWndProc to calculate the size if it
9258           hasn't been handled by any windows. When creating and moving windows, X
9259           wants the location of the entire window, but the size of the client
9260           window, so add TranslateClientRectangleToXClientRectangle,
9261           TranslateWindowSizeToXWindowSIze and TranslatedXWindowSizeToWindowSize
9262           to cope with this, and call them before every window creation and move.
9263           Update CalculateWIndowRect to use Hwnd.GetWindowRect (one step towards
9264           removing DeriveStyles). In AddConfigureNotify don't do anything if the
9265           hwnd is a zombie (fixes the BadWindow we were getting while running the
9266           tests), always calculate the offsets when it's a parentless window, not
9267           only when reparented, and translate the window size, since we're getting
9268           the client size of the whole window, excluding entire window.
9269         * Theme.cs: Added BorderSizableSize.
9270         * XplatUIWin32.cs: Fix RECT Height and Width. Don't fake styles here
9271           anymore. Update calls to XplatUI.CalculateWindowRect due to API change.
9272         * Form.cs: Update calls to XplatUI.CalculateWindowRect due to API change.
9273           Fake the window styles here instead of in XplatUIWin32 so that all
9274           back-ends get the same window styles (and it's Form that's deciding when
9275           to use wm, not the Win32 backend anyways)
9276         * Hwnd.cs: Completely reworked GetWindowRectangle and GetClientRectangle -
9277           they are now passed a CreateParams and they only use Style and ExStyle
9278           to determine the rectangles (they should now work just like
9279           Win32AdjustWindowRectEx - though quite a few special cases are probably
9280           missing). They should also be 100% complimentary (i.e. GetWindowRectangle
9281           (GetClientRectangle (rect)) == rect), and all numbers (borders, menu
9282           sizes) are taken from the current theme. Added a GetBorders helper
9283           function that will return the borders for any given CreateParams
9284           (including captions and menus), and GetBorderSize that returns the given
9285           border size only.
9286         * XplatUIOSX.cs: Update calls to CalculateWindowRect and
9287           Hwnd.GetClientRectangle.
9288
9289 2007-03-30  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9290
9291         * Form.cs: Don't layout mdi children on MdiParent creation, the initial
9292           layout of the mdi children is handled by CreateParams. Fixes
9293           #79964,
9294
9295 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
9296
9297         * MenuAPI.cs: Make OnMouseDown returns a boolean to identify if event is
9298         processed.
9299
9300         * Form.cs: When active tracker mouse down is not processed, send event 
9301         back to control inside mouse position. [Fixes #81227]
9302
9303 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
9304
9305         * ComboBox.cs: Override the ComboListBox's ActivateOnShow property and
9306         remove WS_VISIBLE from CreateParams to prevent combobox dropdowns from
9307         stealing focus from the active form on Windows.  (Control will be made
9308         visible in ShowWindow.)
9309
9310 2007-03-29  Mike Kestner  <mkestner@novell.com>
9311
9312         * ImageList.cs : add internal Changed event.
9313         * ListView.cs : hook up to StateImageList.Changed to perform
9314         invalidations when the the state icon list changes. [Fixes #81191]
9315
9316 2007-03-29  Jonathan Pobst  <monkey@jpobst.com>
9317
9318         * ToolTip.cs: Override the ToolTipWindow's ActivateOnShow property
9319         to prevent tooltips from stealing focus from the active form on Windows.
9320
9321 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
9322
9323         * ThemeWin32Classic.cs: Small stetic fixes in notifyicon balloon. 
9324
9325         * ThemeClearlooks.cs: Implement notifyicon balloon for clearlooks theme.
9326
9327 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
9328
9329         * NotifyIcon.cs, ThemeWin32Classic.cs: Icon support added to notifyicon
9330         balloons.
9331
9332 2007-03-29  Jackson Harper  <jackson@ximian.com>
9333
9334         * TextControl.cs: When deleting text from non multiline textboxes,
9335         we need to update the entire document, because line offsets will
9336         be shifting.
9337
9338 2007-03-29  Everaldo Canuto  <everaldo@simios.org>
9339
9340         * XplatUIX11.cs, ThemeWin32Classic.cs, Theme.cs: ShowBalloonWindow method
9341         added to theme, now we can create themes that uses diferent notify engines
9342         like notification-daemon from galago project or growl for Mac OS.
9343
9344 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
9345
9346         * NotifyIcon.cs: Prevent Balloon to show in task bar.
9347
9348 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
9349
9350         * XplatUIX11.cs: Prevent system to open more than one balloon.
9351
9352         * NotifyIcon.cs: Prevent system to open more than one balloon and remove
9353         some compiler warning messages.
9354
9355 2007-03-28  Everaldo Canuto  <everaldo@simios.org>
9356
9357         [Fixes #79149]
9358
9359         * XplatUIX11.cs: Implement SystrayBalloon for X11 systems.
9360
9361         * ThemeWin32Classic.cs, Theme.cs: DrawBalloonWindow and BalloonWindowRect 
9362         implemented, this methods is used by NotifyIcon.BalloonWindow class.
9363
9364         * NotifyIcon.cs: BalloonWindow class added to support Balloon in X11 
9365         systems.
9366
9367 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9368
9369         * ListViewItem.cs: Forgot to make Invalidate internal.
9370
9371 2007-03-28  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9372
9373         * ListView.cs: Add a InvalidateSelection method to
9374         invalidate methods which are currently selected, and call
9375         it when setting FullRowSelect and HideSelection, instead of
9376         calling Redraw.
9377
9378 2007-03-28  Chris Toshok  <toshok@ximian.com>
9379
9380         * XplatUIX11.cs (UnmapWindow): reindent this block.
9381
9382         * DataGrid.cs (UpdateSelectionAfterCursorMove): we need to update
9383         the selection_start if we're moving the selection (that is, not
9384         extending it). Fixes bug #80461.
9385
9386 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
9387
9388         * ProgressBar.cs: Make the default MarqueeAnimationSpeed = 100.
9389         * ToolStripPanel.cs: Fix RowMargin, Renderer, RenderMode, and
9390         create private ControlCollection.
9391
9392 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
9393
9394         * Control.cs: We need to call OnVisibleChanged for our implicit
9395         children as well as our normal children.  Fixes scrollbars in
9396         comboboxes not showing up.
9397
9398 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
9399
9400         * Control.cs, Form.cs: Anywhere we call CreateHandle, we need to do
9401         the check for IsHandleCreated first.  The check in CreateHandle is not
9402         good enough because CreateHandle can be overriden, and the override 
9403         should not be called if the handle is already created.
9404
9405 2007-03-28  Jonathan Pobst  <monkey@jpobst.com>
9406
9407         * ToolStrip.cs: Remove MonoTODO for tooltips.
9408         * ToolStripComboBox.cs: Fix MonoTODO for DropDownHeight and events.
9409         * ToolStripContainer.cs: Add custom ControlCollection class.
9410         * ToolStripContentPanel.cs: Fix Renderer setting to match MS behavior.
9411         * ToolStripDropDown.cs: Add some missing properties/methods.
9412         * ToolStripDropDownMenu.cs: Override OnLayout and SetDisplayedItems.
9413         * ToolStripItem.cs: Remove MonoTODO for tooltips.
9414         * ToolStripManager.cs: Add IsShortcutDefined.
9415         * ToolStripOverflow.cs: Override LayoutEngine.
9416         * ToolStripProgressBar.cs: Add MarqueeAnimationSpeed.
9417         * ToolStripSeparator.cs: Add ImageKey.
9418
9419 2007-03-28  Jackson Harper  <jackson@ximian.com>
9420
9421         * TextControl.cs: If a char delete removes a line ending, we need
9422         to update the ending style.
9423         - Make sure the line ending calcs get called.
9424
9425 2007-03-28  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9426
9427         * XplatUIX11.cs: CreateWindow: Remove old default form location code,
9428           it was making the new code not work. Fixed a typo in the new code
9429           as well. Fixes #79826.
9430
9431 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
9432
9433         * XplatUIWin32.cs:
9434         - NIF_STATE and NIF_INFO added to NotifyIconFlags.
9435         - NOTIFYICONDATA properties sizes fixed, szTip is 128, not 64.
9436         - SystrayBalloon method implemented.
9437         [Add support for notifyicon balloon on win32, #79149]
9438
9439 2007-03-27  Mike Kestner  <mkestner@novell.com>
9440
9441         * ThemeWin32Classic.cs : update StateImageList selection to mirror
9442         the ms behavior when only one image is added to the list.
9443         [Fixes #81191]
9444
9445 2007-03-27  Jackson Harper  <jackson@ximian.com>
9446
9447         * TextControl.cs: Improvements to non multiline line ending
9448         drawing/measuing.
9449
9450 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
9451
9452         * XplatUIX11.cs: Fix the time which tooltip is opened for NotifyIcon. 
9453
9454 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
9455
9456         * NotifyIcon.cs: 
9457         - Balloon message handling added.
9458         - Call XplatUI.SystrayBalloon in ShowBalloonTip. 
9459
9460         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
9461         XplatUIOSX.cs, XplatUIX11-new.cs: ShowBalloonTip method renamed 
9462         to SystrayBalloon to me like other Systray method, also a
9463         handle parameter added.
9464
9465 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9466
9467         * ListView.cs: Show scrollbars even when items.Count == 0
9468         but the columns Width is bigger than the ListView.Width.
9469         Also, when columns.Count == 0 set layout_wd and layout_ht
9470         to the ClientRectangle values, so we don't show any scrollbar
9471         in that case.
9472
9473 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
9474
9475         * XplatUIStructs.cs: Balloon (NIN_BALLOON*) constants added.
9476
9477 2007-03-27  Jackson Harper  <jackson@ximian.com>
9478
9479         * RichTextBox.cs: The RTF library decodes the text properly for us
9480         now.
9481
9482 2007-03-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9483
9484         * ListView.cs: Display HeaderControl even when columns.Count == 0.
9485         * ThemeWin32Classic.cs: Use SystemBrushes.Control to draw the
9486         ListView header (HeaderControl), instead of Control.BackColor.
9487
9488 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
9489
9490         * Control.cs: Call OnVisibleChanged in SetVisibleCore for non-forms.
9491         Fixes tab control issues where controls would not show up because they
9492         never received their OnVisibleChanged call.
9493
9494 2007-03-27  Everaldo Canuto  <everaldo@simios.org>
9495
9496         * NotifyIcon.cs: Balloon events added (BalloonTipClicked, BalloonTipClosed,
9497         BalloonTipShown).
9498
9499 2007-03-27  Jonathan Pobst  <monkey@jpobst.com>
9500
9501         * Control.cs: We won't get a WM_SHOWWINDOW when we create a window that
9502         is maximized or minimized, so move CreateControl to Control.OnVisibleChanged.
9503         * Form.cs: After we set the form visible, send a fake WM_SHOWWINDOW if we
9504         are max or min.  Remove WS_VISIBLE from CreateParams unless we are recreating
9505         the handle.  Fix WindowState by using the internal variable until we are 
9506         sure that we've been shown.
9507         * XplatUIX11.cs: Do not generate a WM_SHOWWINDOW message if new form is
9508         max or min.
9509         [Fixes bug #81198]
9510
9511 2007-03-27  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9512
9513         * XplatUIX11.cs: Windows without WS_CAPTION can still get decorations
9514           (at least borders). Fixes #79386 on Linux (with a small difference
9515           in behaviour: when trying to resize a caption-less window metacity
9516           shows the sysmenu. Resizing is still possible though).
9517         * XplatUIWin32.cs: When setting window styles send request an extra
9518           WM_NCCALCSIZE when it's a form without title (due to no text and no
9519           caption), since Win32 seems to calculate it wrong the first time we
9520           get the message, though the second time things work as they should.
9521         * Form.cs: Reorder a few statements in ChangingParent, otherwise the
9522           newly reparented window might show up unparented. Update
9523           CreateParams to exclude WS_DLGFRAME if ControlBox is false and
9524           there's no title text. Fixes #79386.
9525
9526 2007-03-27  Mike Kestner  <mkestner@novell.com>
9527
9528         * ListBox.cs : don't perform invalidations if the handle hasn't been
9529         created.  [Fixes #80753]
9530
9531 2007-03-27  Mike Kestner  <mkestner@novell.com>
9532
9533         * ListBox.cs : don't adjust top item when SelectedIndex is set to -1.
9534         [Fixes #80428]
9535
9536 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
9537
9538         * XplatUIWin32.cs: Complete NOTIFYICONDATA structure, additional fields 
9539         needed to implement Balloon.
9540
9541 2007-03-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9542
9543         * ListViewItem.cs: In the constructors that take
9544         an array of strings, don't use ListViewSubItemCollection.AddRange
9545         method to add items, since we need to have a different behaviour (in
9546         the constructors we add an item for each null string, opposed to
9547         the behaviour of AddRange, which adds nothing).
9548
9549 2007-03-26  Andreia Gaita  <avidigal@novell.com>
9550
9551         * NumericUpDown.cs: Fix broken 1.1 api for ParseEditText
9552
9553 2007-03-26  Jackson Harper  <jackson@ximian.com>
9554
9555         * TextControl.cs: Draw and measure line endings when in non
9556         multiline mode.
9557         - When searching the text, count the end of the last line as a
9558         word boundary.
9559
9560 2007-03-26  Jackson Harper  <jackson@ximian.com>
9561
9562         * RichTextBox.cs: The selection_start and selection_end don't
9563         really track the correct tags for the selection. So we'll manually
9564         compute the correct tag here.
9565
9566 2007-03-26  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9567
9568         * ProgressBar.cs, ThemeWin32Classic.cs: Implemented drawing of Marquee
9569           and Continuous styles. Fixes #79469.
9570
9571 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
9572
9573         * ToolStrip.cs: Implement Tooltips.
9574         * ToolStripItem.cs: Create internal method for determining tooltip.
9575
9576 2007-03-26  Jonathan Pobst  <monkey@jpobst.com>
9577
9578         * PropertyGrid.cs: Hide a EditorBrowsable attribute from 1.1 API.
9579
9580 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
9581
9582         * NotifyIcon.cs: On disposing verify if icon is visible and hide it,
9583         it prevents a problem thak keeps icon visible after application 
9584         closes on win32.
9585
9586 2007-03-26  Everaldo Canuto  <everaldo@simios.org>
9587
9588         * NotifyIcon.cs: Balloon properties and methods created.
9589
9590         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
9591         XplatUIOSX.cs, XplatUIX11-new.cs: Implement ShowBalloonTip method.
9592
9593 2007-03-25  Jonathan Pobst  <monkey@jpobst.com>
9594
9595         * ToolStripComboBox.cs: Default the ComboBox's FlatStyle to Popup.
9596
9597 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
9598
9599         * Control.cs: Make SetBoundsCore match MS better.  The BoundsSpecified
9600         parameter indicates which aspects were explicit/user-set.
9601         * ComboBox.cs, ListBox.cs: Call SetBoundsCore correctly. (no 0 parameters).
9602
9603 2007-03-24  Jonathan Pobst  <monkey@jpobst.com>
9604
9605         * ProgressBar.cs: Throw AOORE instead of AE for property Value (2.0).
9606         * ScrollBar.cs: Throw AOORE instead of AE for properties LargeChange,
9607         SmallChange, and Value (2.0).
9608         * Timer.cs: Throw AOORE instead of AE for property Interval (2.0).
9609
9610 2007-03-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9611
9612         * ListView.cs: Always set item_control.Width in LayoutDetails
9613         if View is Details. Setting it later in CalculateScrollBars
9614         in a not-so-corner scenario (the sum of columns width is
9615         not bigger than the ListView width when handle is created, and then
9616         that sum gets bigger by increasing the width of the columns)
9617         causes a very weird recursion path (which shouldn't be happening,
9618         since header_control sets it in CalculateScrollBars too). This bug
9619         appeared after Chris' fixes for handle created issues, so probably
9620         it's related to some handle-creation time.
9621
9622 2007-03-23  Chris Toshok  <toshok@ximian.com>
9623
9624         * DataGrid.cs (GetVisibleRowCount): increase the row count in the
9625         case where there's an add row, just so we don't end up in a case
9626         where it's not displayed (this happens when the row is partially
9627         obscured).  Fixes bug #79574.
9628
9629 2007-03-23  Jackson Harper  <jackson@ximian.com>
9630
9631         * TextControl.cs:
9632         * TextBoxBase.cs:
9633         * RichTextBox.cs: Preserve line endings in the lines text buffer,
9634         also added an enum that represents the line ending type. 
9635
9636 2007-03-23  Andreia Gaita  <avidigal@novell.com>
9637
9638         * NumericUpDown.cs: Fix logic so Text and Value properties are not
9639         messed with in every method call, but only from DownButton, 
9640         UpButton, UpdateEditText() and ValidateText. Fixes #80346
9641
9642 2007-03-23  Chris Toshok  <toshok@ximian.com>
9643
9644         * DataGridTextBoxColumn.cs (GetFormattedValue): don't try to
9645         format objects if the format spec is "".  Fixes bug #80889.
9646
9647 2007-03-22  Miguel de Icaza  <miguel@novell.com>
9648
9649         * ToolStripPanel.cs (Join): added stubs to build PDN3
9650
9651         * Control.cs (AutoScrollOffset): Add.
9652
9653         * SystemInformation.cs (MouseWheelScrollDelta): Expose this
9654         property, its only implemented for Win32, on X11 it defaults to
9655         some hardcoded value.
9656
9657         * ToolStripItem.cs (AllowDrop): Add property
9658
9659 2007-03-22  Mike Kestner  <mkestner@novell.com>
9660
9661         * ListView.cs : in FullRowSelect Details mode, only enable box
9662         selection if the user clicks over the "item" column outside of the
9663         text area.  Mmmmm, compatibility.  [Fixes #80374 subpart 7]
9664
9665 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9666
9667         * Control.cs: ChangeParent: Call Form's ChangingParent even if the
9668           handle is not created yet.
9669         * Form.cs: Select: Don't call CreateHandle if the handle is already
9670           created, avoids a stack overflow on Windows when we are recreating
9671           controls.
9672         * ScrollableControl.cs: Set the correct z-order for the scrollbars when
9673           they are made visible, and override AfterTopMostControl to keep
9674           them on top when other controls are brought to front.
9675           CalculateCanvas: Scrollbars are only visible if auto_scroll is true
9676           or force_*scroll_visible is true (old implementation always shows
9677           scrollbars when needed, no matter what auto_scroll was set to).
9678         * InternalWindowManager.cs: UpdateWindowDecorations: Add a
9679           IsHandleCreated check.
9680
9681 2007-03-22  Andreia Gaita  <avidigal@novell.com>
9682
9683         * DataGrid.cs: Implement Column and Row auto sizing when double-clicking on
9684         row or col separator.
9685         * DataGridTextBoxColumn.cs: Implement GetPreferredHeight and GetPreferredSize
9686
9687 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
9688
9689         * MenuAPI.cs: Remove unneeded check for grab_control in UpdateCursor.
9690
9691 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
9692
9693         * MenuAPI.cs: UpdateCursor method added, it is calling in OnMotion to update
9694         cursor for child controls. In ShowWindow and HideWindow now call SetCursor 
9695         every time. Fixes #80410.
9696
9697 2007-03-22  Chris Toshok  <toshok@ximian.com>
9698
9699         * BindingSource.cs (AddNew): partially implement.
9700
9701         remove a couple of NotImplementedException's
9702         to get bug #81148 closed.
9703
9704 2007-03-22  Everaldo Canuto  <everaldo@simios.org>
9705
9706         [Fixes #80380]
9707         
9708         * Control.cs:
9709         - UpdateCursor method added to update the screen cursor.
9710         - GetAvailableCursor method added to return cursor for enabled tree,
9711         it searches for cursor on control and it's parent's for enabled control.
9712         - Call UpdateCursor method on setter of Cursor property.
9713         - On setter of Enabled call UpdateCursor when it is false, we need to
9714         change cursor to normal (or to this parent cursor) because cursor 
9715         setting theres no effect to disabled controls.
9716         - Some minor source changes to follow the coding style guidelines.
9717
9718         * XplatUIX11.cs: In MotionNotify only dispatch SET_CURSOR event for enabled 
9719         controls.
9720
9721 2007-03-22  Chris Toshok  <toshok@ximian.com>
9722
9723         * XplatUIX11.cs: ignore the BadPicture errors cairo+render
9724         generates.
9725
9726 2007-03-22  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9727
9728         * XplatUIX11.cs: Implement default locations for forms.
9729         * Form.cs: Completely rework startup location for forms. Fixes #79964.
9730         * Hwnd.cs: Add previous_child_startup_location (to track the current
9731           startup location for any child forms of the current form) and
9732           previous_main_startup_location (to track the startup location for
9733           the current toplevel form).
9734
9735 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
9736
9737         * Control.cs: Don't trigger a layout if an implicit control is added
9738         that isn't visible.  Also, don't notify the owner when an implicit control
9739         is added.  (Owners shouldn't even know about their implicit controls.)
9740
9741 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
9742
9743         * ScrollableControl.cs: Add implicit controls with AddRangeImplicit
9744         to save some re-layouts.
9745
9746 2007-03-21  Everaldo Canuto  <everaldo@simios.org>
9747
9748         * MenuAPI.cs: In ProcessKeys returns false when key is not processed.
9749         [Fixes #81203]
9750
9751 2007-03-21  Jonathan Pobst  <monkey@jpobst.com>
9752
9753         * FlowLayoutSettings.cs, ToolStrip.cs, ToolStripPanel.cs,
9754         ToolStripPanelRow.cs: Lazy instantiate the LayoutEngine.
9755
9756 2007-03-21  Mike Kestner  <mkestner@novell.com>
9757
9758         * ListView.cs : disable selection update for non-left button clicks
9759         with mods and over selected items.  [Fixes #80524]
9760
9761 2007-03-20  Jackson Harper  <jackson@ximian.com>
9762
9763         * TextControl.cs:
9764         * TextBoxBase.cs: Allow different types of line endings. \r, \r\n,
9765         \r\r\n, \n.
9766
9767 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9768
9769         * ComboBox.cs: PreferredHeight seems to be ItemHeight + 6, but there is
9770           very probably a more complicated calculation there. Update the
9771           textbox' ForeColor and BackColor when the ComboBox' colors are
9772           changed. Change the border change in LayoutComboBox to only affect
9773           the textbox, not all the calculations there. Seems to fix most of
9774           #79436.
9775
9776 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9777
9778         * ComboBox.cs: Handle Home and End keys as well as all combinations of
9779           modifiers + navigation keys as input keys, enables advanced text
9780           selection in the combobox (like Shift+Left Arrow for instance).
9781           ComboTextBox now overrides Focused and returns whatever
9782           ComboBox.Focused returns, since it really should be focused
9783           whenever the ComboBox is. Fixes #80795. Also make the border around
9784           the text box one pixel bigger, as mentioned in #79436.
9785
9786 2007-03-20  Jackson Harper  <jackson@ximian.com>
9787
9788         * TreeView.cs: Don't offset the images, this was causing some
9789         artifacts when expanding/collapsing with images that were the
9790         exact height of the treenode.
9791
9792 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9793
9794         * TrackBar.cs: Query the theme for the correct value when the mouse
9795           moves and the thumb is pressed. 
9796         * Theme.cs: Added TrackBarValueFromMousePosition
9797         * ThemeWin32Classic.cs: Reworked TrackBar drawing. Earlier
9798           implementation was updating the trackbar value when drawing, now
9799           the drawing methods only draw. Fixes #80900. Refactored the
9800           calculations out to TrackBarValueFromMousePosition and
9801           GetTrackBarDrawingInfo, so that TrackBar can get the correct value
9802           according to the mouse position whenever it wants to. Changed the
9803           light coloured pen when drawing the thumb from ControlLight to
9804           ControlLightLight, because the ControlLight is the same colour as
9805           the background so the 3D effect is lost. 
9806
9807 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
9808
9809         * Form.cs: In ShowDialog uses MainForm as transient form when no form is
9810         defined. Fixes #80784.
9811
9812 2007-03-20  Marek Habersack  <mhabersack@novell.com>
9813
9814         * ContextMenuStrip.cs: align with the change introduced in
9815         revision 74664.
9816
9817 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
9818
9819         * XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs, 
9820         XplatUI.cs, Form.cs, ToolTip.cs: Remove unneeded parameter owner 
9821         in SetTopmost.
9822
9823 2007-03-19  Chris Toshok  <toshok@ximian.com>
9824
9825         * Control.cs (WmPaint): don't make use of the Handle property
9826         after an event is emitted, as the user could have closed the
9827         form/destroyed the control.  Store the Handle in a local variable
9828         and make use of that.  Fixes bug #80768.
9829
9830 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
9831
9832         * XplatUIX11.cs: Set _NET_WM_STATE_ABOVE on SetTopmost, it fixes Topmost
9833         behavior in X11 environments.
9834
9835 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
9836
9837         * Form.cs: Call SetTopmost in CreateHandle when window is topmost, its
9838         because on setter of topmost we dont call SetTopmost when handle is not
9839         created.
9840
9841 2007-03-20  Jackson Harper  <jackson@ximian.com>
9842
9843         * TextControl.cs: Need to use SelectionLength () not
9844         selection_length, since that var is reset to -1.
9845         - Draw the caret when we don't have focus.
9846         * TextBox.cs: The selectall actually doesn't occur until the first
9847         focus.
9848         * TextBoxBase.cs: Need to update the caret position after a
9849         selectall.
9850         
9851 2007-03-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
9852
9853         * ListView.cs: Enable scrolling when using Tile view.
9854
9855 2007-03-20  Everaldo Canuto  <everaldo@simios.org>
9856
9857         [Fixes #80902]
9858
9859         * XplatUIDriver.cs: Abstract SetOwner method created.
9860
9861         * XplatUIOSX.cs: Override SetOwner to prevent compilation errors method 
9862         must be implemented and was masked as todo.
9863
9864         * XplatUIWin32.cs: SetOwner implemented using SetWindowLong with 
9865         GWL_HWNDPARENT.
9866
9867         * XplatUIX11.cs: SetOwner implemented using same code from SetTopmost but 
9868         cheking for null owner to remove transient. The SetTopmost will be change
9869         on a decond step.
9870
9871         * Form.cs: In set_Owner and CreateHandle uses new SetOwner instead of
9872         SetTopmost. Now owned forms will work properly in win32 and X11.
9873
9874 2007-03-20  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9875
9876         * MdiWindowManager.cs: Update function name.
9877         * Form.cs: After closing a form MdiParent is always null.
9878         * MdiClient.cs: Rename CloseChildForm to ChildFormClosed to explain
9879           better what it should do: necessary book-keeping when the form is
9880           closed, it should not close the form itself.
9881
9882 2007-03-19  Andreia Gaita  <avidigal@novell.com>
9883
9884         * ListViewItem.cs: Fix back and fore color. The subitems only
9885         use their own colors if they are set, otherwise use the listview's
9886         colors. Don't set default colors on constructor for subitem.
9887         Fixes #79315.
9888
9889 2007-03-19  Mike Kestner  <mkestner@novell.com>
9890
9891         * ListView.cs : make box selection for Details views with 
9892         FullRowSelect conform to MS behavior when clicking in the "item" 
9893         column and clicking outside the defined columns.
9894         [Fixes case 5-6 of #80374]
9895
9896 2007-03-19  Chris Toshok  <toshok@ximian.com>
9897
9898         * ScrollableControl.cs: create the controls from within the ctor,
9899         but don't actually add them until our handle is created.  this
9900         fixes a NRE possibility jpobst found (if you override OnLayout in
9901         a subclass, it's called before your ctor).  Also, add a
9902         IsHandleCreated guard to UpdateSizeGripVisibility as well.
9903
9904 2007-03-19  Jackson Harper  <jackson@ximian.com>
9905
9906         * TextBox.cs: Reduce the amount of invalidation we do.
9907         * TextBoxBase.cs: Make shortcuts enabled true by default, at least
9908         some of them are true by default on MS.
9909         - Add some functions to reduce the amount of invalidates we do.
9910         * TextControl.cs: Less invalidation.
9911
9912 2007-03-19  Chris Toshok  <toshok@ximian.com>
9913
9914         [ Fixes #81773, and *seems* to fix #81553 as well ]
9915
9916         * XplatUIX11.cs: remove the assignment of hwnd.zombie = true from
9917         AccumulateDestroyedHandles.  We need to do it *after* we send
9918         WM_DESTROY, as the user's code can access Control.Handle in
9919         OnHandleDestroyed, and this shouldn't cause a recreation.  Also,
9920         move the WM_DESTROY/zombie handling to before the call to
9921         XDestroyWindow.  For some reason without this ordering
9922         FormTest.RecreateHandle hangs.  This ordering is semantically
9923         equivalent, however, as XDestroyWindow is async anyway.
9924
9925 2007-03-19  Gert Driesen  <drieseng@users.sourceforge.net>
9926
9927         * RichTextBox.cs: Reset backcolor_set after setting default.
9928
9929 2007-03-19  Chris Toshok  <toshok@ximian.com>
9930
9931         * ScrollableControl.cs: the scroll position should not effect the
9932         canvas size.  commit patch from georgegiolfan@yahoo.com, which
9933         fixes some really bizarre behavior on resizing.  Fixes bug #80778.
9934         
9935 2007-03-19  Chris Toshok  <toshok@ximian.com>
9936
9937         * ScrollableControl.cs: clean this up a bit.  create the
9938         scrollbars in the ctor and just show/hide them as needed.  Also,
9939         make hscroll_visible/vscroll_visible internal to Recalculate, and
9940         just use hscrollbar.VisibleInternal/vscrollbar.VisibleInternal
9941         everywhere else.  This seems to fix the scrollbars appearing
9942         beneath the content for me (i have *no* idea why that is,
9943         however.)
9944
9945 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
9946
9947         * ToolStrip.cs: Don't call DoAutoSize when we change Dock.  Also, remove
9948         some redundacy for stuff in Anchor and Dock that base will take care of.
9949         [Fixes #80762]
9950
9951 2007-03-19  Mike Kestner  <mkestner@novell.com>
9952
9953         * ListView.cs : make box selection for Details views without 
9954         FullRowSelect dependent on the text bounds, not item bounds.
9955         * ListViewItem.cs : add an internal property to obtain the TextBounds
9956         in Details view.  [Fixes case 1-4 of #80374]
9957
9958 2007-03-19  Andreia Gaita  <avidigal@novell.com>
9959
9960         * PaintEventArgs.cs (Dispose): Only dispose of graphics object if
9961         we're < 2.0. #78448 && #80316
9962
9963 2007-03-19  Jonathan Pobst  <monkey@jpobst.com>
9964
9965         * FontDialog.cs: Don't crash when we switch to a new font that doesn't
9966         have the same style available as the previously selected one.  Also,
9967         support FixedPitchOnly property.  [Fixes bugs #80918, #80947]
9968
9969 2007-03-19  Jackson Harper  <jackson@ximian.com>
9970
9971         * TextControl.cs: Add an alignment property that all new lines
9972         will be given.
9973         - Make sure to use the align shift when calculating the line's X
9974         position.
9975         * TextBox.cs: Set the alignment on the document as well as on all
9976         the document lines.
9977
9978 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
9979
9980         * Control.cs: ControlCollection.Add: Remove a couple of duplicated casts and
9981           throw if setting the parent of an mdichild that already has an
9982           mdiparent. Update signature for 2.0 profile. ProductName: If there's no
9983           AssemblyProductAttribute in the assembly, use the type's namespace (as
9984           MS seems to do). CreateControl: don't create the handle if the control
9985           is not visible (according to MS behaviour and spec).  SetTopLevel: Only
9986           create handle if the control is not a form. Change FocusInternal to
9987           virtual so that it can be overriden by Form.
9988         * TextBox.cs: Update call to FocusInternal.
9989         * Form.cs: Always create the handle when calling Focus on a MdiChild. The
9990           form is not a toplevel form when it's a mdi child, so update is_toplevel
9991           accordingly. ShowIcon/TransparencyKey: avoid creating the handle if it
9992           hasn't been created. Show (IWin32Window): Don't allow this overload for
9993           toplevel windows. CenterToParent/CenterToScreen/Select: create the
9994           handle as MS does. SetVisibleCore: if called on a MdiChild and the
9995           parent isn't visible yet, save the visibility and restore it when the
9996           parent is made visible.
9997         * ScrollableControl.cs: Refactor out scrollbar visibility code to separate
9998           methods, since the visibility of the scrollbars can be changed from
9999           several places, not only from AutoScroll.
10000           [Fixes #81179]
10001
10002 2007-03-19  Jackson Harper  <jackson@ximian.com>
10003
10004         * RichTextBox.cs: Enable shortcuts by default.
10005         * TextBoxBase.cs: Add conditional shortcuts.  
10006
10007 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
10008
10009         * MenuItem.cs: Dont call OnDrawItem when OwnerDraw is false (#81182).  
10010
10011 2007-03-19  Chris Toshok  <toshok@ximian.com>
10012
10013         [ Fixes bug #80604]
10014         
10015         * XplatUIX11.cs (WaitForHwndMessage): change this to actually
10016         swallow the message we're waiting on, instead of delivering it, as
10017         this is only used for the WM_SHOWWINDOW raised from
10018         MapWindow/UnmapWindow, and the message needs to be generated
10019         (MapWindow, UnmapWindow): generate the WM_SHOWWINDOW message
10020         before doing the Map/Unmap.  Also make sure that the Hwnd is still
10021         alive after the message has been handled.
10022
10023         *before* the window is shown.
10024
10025         * Control.cs (CreateControl): guard a few more things inside the
10026         if (!is_created) block, as we might end up being called again -
10027         yay .net.
10028         (WmShowWindow): call CreateControl if we're showing the control.
10029
10030 2007-03-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10031
10032         * Control.cs: Fix 2.0 signature for Invoke. Support invoking on
10033           controls without a handle if they have any parent with a handle. In
10034           Dispose add a check whether the handle is created or not before
10035           calling BeginInvoke, this removes the need of the extra disposing
10036           parameter (which was bogus anyway since it didn't prevent the
10037           invoke from happening, it only skipped the check for an existing
10038           handle, meaning that the invoke would call on an inexistent
10039           handle).
10040
10041 2007-03-19  Everaldo Canuto  <everaldo@simios.org>
10042
10043         * MessageBox.cs: Remove WS_POPUP from CreateParams style, with it form
10044         appears in taskbar.
10045
10046 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
10047
10048         * MessageBox.cs:
10049         - Fixed a problem that dont show help button for messages with 3 buttons.
10050         - Refactory button size and position calculations, now dont use fixed 
10051         values, also fixed button sizes (#80043) and form's border space.
10052         - AddButton method created, now all other AddButton methods call this one.
10053         - Some other source code cosmetic changes.
10054
10055 2007-03-18  Jackson Harper  <jackson@ximian.com>
10056
10057         * RichTextBox.cs: Don't do this all fonts must match check if
10058         there is only one char selected.
10059
10060 2007-03-18  Jackson Harper  <jackson@ximian.com>
10061
10062         * TreeView.cs: ScrollWindow works properly now, so we don't need
10063         to screw around with the scroll area.  This fixes some artifacts
10064         when expanding and collapsing.
10065
10066 2007-03-18  Jackson Harper  <jackson@ximian.com>
10067
10068         * TextBoxBase.cs: Allow updating the selection position when the
10069         cursor is outside the textarea, but we have a capture.
10070         * TextControl.cs: A special case for when the cursor is outside
10071         the bounds of the TB.
10072         
10073 2007-03-18  Jackson Harper  <jackson@ximian.com>
10074
10075         * TextBoxBase.cs: Remove image pasting code for now.  There is no
10076         way to get an image on the clipboard right now anyways.
10077         * TextControl.cs:
10078         * RichTextBox.cs: Use the new RTF Picture class for pictures.
10079
10080 2007-03-18  Everaldo Canuto  <everaldo@simios.org>
10081
10082         * MessageBox.cs:
10083         - Set window properties in constructor intead of on CreateParams.
10084         - Remove topmost from Window ExStyle.
10085         - Set ShowInTaskbar to false.
10086         - Set form border to FixedDialog.
10087         - Some cosmetic changes and remove unneeded comments.
10088         - It fixes itens 2,3 and 4 of bug #80043.
10089
10090 2007-03-18  Gert Driesen  <drieseng@users.sourceforge.net>
10091
10092         * TextBoxBase.cs: In setter for ReadOnly, only chance BackColor if
10093         none was explicitly set. Fixes part of bug #79949.
10094
10095 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
10096
10097         * ToolStripComboBox.cs: Add AutoComplete*.
10098
10099 2007-03-16  George Giolfan  <georgegiolfan@yahoo.com>
10100
10101         * ToolStripComboBox.cs: Add FlatStyle.
10102
10103 2007-03-16  Jonathan Pobst  <monkey@jpobst.com>
10104
10105         * ToolStrip.cs, ToolStripProfessionalRenderer.cs,
10106         ToolStripSplitStackLayout.cs: Implement some basic vertical toolbar support.
10107
10108 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10109
10110         * ButtonBase.cs, ToolStrip.cs, SendKeys.cs, TextRenderer.cs,
10111           CheckBox.cs, RadioButton.cs, BindingSource.cs,
10112           DataGridColumnStyle.cs: Remove warnings.
10113
10114 2007-03-16  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10115
10116         * Menu.cs: MergeMenu: Check menu argument for null before looping over
10117           it.
10118         * MdiWindowManager.cs: Add IsVisiblePending to track the pending
10119           visibility of mdi child forms. FormSizeChangedHandler: update the
10120           maximized size if size has changed while maximized.
10121         * MdiClient.cs: SizeScrollbars/ArrangeWindows/ActivateChild: Avoid
10122           creating the handle.
10123         * InternalWindowManager.cs: UpdateBorderStyle/FormSizeChangedHandler:
10124           avoid creating the handle if not created.
10125         * XplatUI.cs: Update debug output.
10126         * XplatUIStructs.cs: Added ToString's for a couple of structs.
10127
10128 2007-03-16  Jonathan Pobst <monkey@jpobst.com>
10129
10130         * ContainerControl.cs: Give ToolStripManager the opportunity to handle
10131         ProcessCmdKey().
10132         * ToolStripDownItem.cs, ToolStripItem.cs, ToolStripItemCollection.cs, 
10133         ToolStripItemEventType.cs, ToolStripManager.cs, ToolStripMenuItem.cs:
10134         Implement keyboard shortcuts.
10135
10136 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
10137
10138         * CommonDialog.cs: Set StartPosition to CenterScreen on form's constructor.
10139         Fixes #79560 and #80200, it also fix problem in FileDialog, SaveDialog, 
10140         ColorDialog and all derived classes.
10141
10142 2007-03-15  Everaldo Canuto  <everaldo@simios.org>
10143
10144         [ Fixes bug #79828 ]
10145
10146         * ToolBar.cs:
10147         - Rename ToolBarButtonInfor to ToolBarItem.
10148         - Add all layout and calculation stuff gtom ToolBarButton to ToolBarItem.
10149         - Maintain an array of ToolBarItem, used instead of ToolBarButton
10150         collection to be able add same button more than one time on a toolbar.
10151         - Refactory all properties and methods to use ToolBarItem. 
10152
10153         * ToolBarButton.cs: 
10154         - Remove all propeties and methods that is now in ToolBarItem.
10155         - Rectangle propery now gets the rectangle from first ToolBarItem to
10156         mimic win32 behavior.
10157         - Size calculation and layout methods also removed.
10158
10159         * ThemeWin32Classic.cs: Change all ToolBar drawing methods to receive
10160         ToolBarItem instead of ToolBarButton to right drawing buttons when
10161         same button/separator was added more than one time to ToolBar.
10162
10163         * ThemeNice.cs: Same as above. 
10164
10165 2007-03-15  Andreia Gaita  <avidigal@novell.com>
10166
10167         * XplatUIX11.cs: Fire extra MouseMove events right after
10168         MouseDown and MouseUp, emulating win32's <censored> behaviour
10169         for apps that rely on it.
10170
10171 2007-03-15  Jackson Harper  <jackson@ximian.com>
10172
10173         * TextControl.cs:
10174         * TextBoxBase.cs: On MS, a fixed single border is not in NC area,
10175         it is drawn on the controls client window and there is no NC
10176         area.
10177         - Set the background color to gray on 2.0 when we are readonly.
10178
10179 2007-03-15  Chris Toshok  <toshok@ximian.com>
10180
10181         [ Fixes bug #81144 ]
10182         
10183         * XplatUIX11.cs: implement VirtualScreen independently of
10184         WorkingArea, by querying the _NET_DESKTOP_GEOMETRY root window
10185         property.
10186
10187 2007-03-15  Chris Toshok  <toshok@ximian.com>
10188
10189         * Hwnd.cs: add an internal field for the cached_window_state.
10190
10191         * XplatUIX11.cs: cache the window state, invalidating the cache
10192         (and thus re-querying the X server) only when we see an update to
10193         the _NET_WM_STATE property.
10194
10195 2007-03-15  Chris Toshok  <toshok@ximian.com>
10196
10197         * BindingSource.cs: get a lot of the unit tests working.
10198
10199 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
10200
10201         * Control.cs: Modify UpdateStyles to store distances when bounds >=
10202         0 instead of just bounds > 0.  [Fixes bug #80912]
10203
10204 2007-03-15  Jonathan Pobst  <monkey@jpobst.com>
10205
10206         * ToolStrip.cs, ToolStripItem.cs: Implement several new properties
10207         and methods.
10208
10209 2007-03-15  Ivan N. Zlatev <contact@i-nz.net>
10210         
10211         * ComboBox.cs, Control.cs, XplatUIStructs.cs, XplatUIX11GTK.cs,
10212         XplatUIX11.cs, XplatUIWin32.cs, InternalWindowManager.cs,
10213         XplatUIOSX.cs, TextControl.cs: Replaces all uses of the custom
10214         WM_MOUSE_LEAVE with the system WM_MOUSELEAVE message.
10215
10216 2007-03-15  Chris Toshok  <toshok@ximian.com>
10217
10218         [ Fixes #81101 ]
10219         
10220         * Control.cs: add Ivan's fix for 81101, with a slight modification
10221         - you can set control.Target to null.
10222
10223 2007-03-14  Jonathan Pobst  <monkey@jpobst.com>
10224
10225         * ToolStripItem.cs: If our OwnerItem is null, we can't use 
10226         HideDropDown, use Hide instead to prevent an NRE.
10227         [Fixes bug #81147]
10228
10229 2007-03-14  Jackson Harper  <jackson@ximian.com>
10230
10231         * TextBoxBase.cs: Mess with the creation stuff a little. We need
10232         to calculate the document before the handle is created, in some
10233         cases. (Actually just one case).
10234
10235 2007-03-14  Jackson Harper  <jackson@ximian.com>
10236
10237         * TextBoxBase.cs: Need to display the caret after letting the base
10238         wndproc handle the focus methods, because the caret display
10239         methods check the focus state.
10240         - Try to display the caret after updating it's position with SelectWord.
10241         - Don't need to do an immediate update on this recalc, since there
10242         will be an invalidate anyways.
10243
10244 2007-03-14  Jackson Harper  <jackson@ximian.com>
10245
10246         * TreeView.cs: Some workarounds so that we can match event order a
10247         little better.
10248
10249 2007-03-14  Gert Driesen  <drieseng@users.sourceforge.net>
10250
10251         * ErrorProvider.cs: Invoke default ctor from 2.0-only ctor. Fixes bug
10252         #80803. Avoid NullReferenceException when Control does not have
10253         parent. Fixed different blinkstyle issues. Only subscribe to Tick
10254         event a single time. Only draw error icon when control is created and
10255         visible. Fixes failing unit tests.
10256
10257 2007-03-14  Andreia Gaita  <avidigal@novell.com>
10258
10259         * TabControl.cs: Add support for 2.0 Deselecting, Deselected and
10260         Selecting events. Fire Leave and Enter events when changing tabs.
10261
10262 2007-03-14  George Giolfan  <georgegiolfan@yahoo.com>
10263
10264         * TreeView.cs: Add TreeViewNodeSorter.
10265         * TreeNodeCollection.cs: Add sorter parameter to Sort method.
10266
10267 2007-03-14  Chris Toshok  <toshok@ximian.com>
10268
10269         * Form.cs: go ahead and remove the RecreateHandles that jpobst
10270         removed earlier and I had him add back it.  It turns out metacity
10271         *does* in fact handle the MOTIF_WM_HINTS property changing, it
10272         just doesn't redraw the window titlebar until you resize the
10273         window.  This also means we aren't recreating the entire window
10274         hierarchy on X when you change this property.  And it looks better
10275         on windows, too.
10276
10277 2007-03-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10278
10279         * ListViewItem.cs:
10280         * ListView.cs: Collecting selection information
10281         is now done in SelectedIndexCollection rather than in
10282         SelectedListViewItemCollection. This is done so we can
10283         have the selection information code in one single place
10284         (virtual mode selection information entirely depends on
10285         SelectedIndexCollection).
10286
10287 2007-03-13  Miguel de Icaza  <miguel@novell.com>
10288
10289         * ErrorProvider.cs: Add stubs for ISupportInitialize
10290
10291 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10292
10293         * ListViewItem.cs: Trigger the ItemCheck and ItemChecked events
10294         in the right order with the right values, from the Checked property, 
10295         just as MS does (instead of triggering them from ListView).
10296
10297         * ListView.cs: Make OnItemCheck and OnItemChecked internal.
10298
10299 2007-03-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10300
10301         * ListView.cs: Implement ItemChecked 2.0 event. Also cast to 
10302         the correct handler in OnItemCheck method (ItemCheckEventHandler 
10303         instead of EventHandler). This used to throw an InvalidCastException.
10304
10305 2007-03-13  Jackson Harper  <jackson@ximian.com>
10306
10307         * TextBoxBase.cs: Calculate the document before the handle is
10308         created, so there isn't an extra invalidate called.
10309
10310 2007-03-13  Jonathan Pobst  <monkey@jpobst.com>
10311
10312         * Form.cs: Don't set owner in ShowDialog until we are sure
10313         that we aren't going to throw an exception.  [Fixes bug #80773]
10314
10315 2007-03-12  George Giolfan  <georgegiolfan@yahoo.com>
10316
10317         * TreeView.cs: Make it compile.
10318
10319 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
10320
10321         * Control.cs: Another place we don't call SizeFromClientSize.
10322         * Form.cs: Another place we don't call SizeFromClientSize.
10323         [Fixes bug #81125]
10324
10325 2007-03-12  Jackson Harper  <jackson@ximian.com>
10326
10327         * TreeView.cs: Basically emulating some strangness here with
10328         exanding nodes and setting node positions when windows aren't
10329         created.
10330         - Also attempting to walk the node tree less than previously, and
10331         just use visible order calculations for determining offsets.
10332         - oops made scrolling backwards.
10333         * TreeNode.cs: We need to start nodes with a zero visible order,
10334         because the order calcs are based on the first nodes order.
10335
10336 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
10337
10338         * Form.cs: Don't exit the program if RecreateHandle is called on
10339         the main form.
10340
10341 2007-03-12  Chris Toshok  <toshok@ximian.com>
10342
10343         * XEventQueue.cs: remove the use of PostQuitState.
10344
10345         * XplatUIX11.cs: remove the use of PostQuitState.  If we get a
10346         WM_QUIT message in GetMessage, return false (and if we're in the
10347         nested WaitForHwndMessage, repost the WM_QUIT message).
10348
10349 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
10350
10351         * Form.cs: Don't call RecreateHandle when we change the MinimizeBox
10352         or the MaximizeBox properties.  [Part of bug #80640]
10353
10354 2007-03-12  Everaldo Canuto  <everaldo@simios.org>
10355
10356         * LinkLabel.cs: When calculate pieces make LinkArea empty if theres
10357         no links.
10358
10359 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
10360
10361         * ToolStripItem.cs: Fix some tests I broke by checking Visible
10362         instead of visible.
10363
10364 2007-03-12  Gert Driesen  <drieseng@users.sourceforge.net>
10365
10366         * FileDialog.cs: Use text of File name combobox to determine what
10367         files the user selected. Added tokenizer to parse the file names.
10368         Fixes bug #81123.
10369
10370 2007-03-12  Jonathan Pobst  <monkey@jpobst.com>
10371
10372         * Control.cs: We can't call SizeFromClientSize in the constructor,
10373         but we still need to do the same work, so make an internal version.
10374         [Fixes bug #80621]
10375
10376 2007-03-12  Jackson Harper  <jackson@ximian.com>
10377
10378         * TreeView.cs:
10379         * TreeNode.cs:
10380         * OpenTreeNodeEnumerator: Match MS better for IsVisible and
10381         IsExpanded.
10382
10383 2007-03-12  Jackson Harper  <jackson@ximian.com>
10384
10385         * TextBoxBase.cs: Now that the handles are being created a little
10386         later, we need to make sure that the document is recalculated when
10387         the handle is created.
10388
10389 2007-03-11  Everaldo Canuto  <everaldo@simios.org>
10390
10391         * Theme.cs: GetLinkFont abstract method added.
10392         
10393         * LinkLabel.cs: 
10394         - Remove CalcTrimRectangle, no longer needed.
10395         - Factor also remove, position issues must be fixed in libgdiplus.
10396         - Move GetPieceColor to ThemeWin32Classic.cs as it is theme related.
10397         - GetPieceFont, CreateLinkFont and link_font removed, theme must be 
10398         care about font used to draw links.
10399         - Set TabStop to true when control is "Selectable", control is selectable
10400         when have one or more links. Fixes #80501 (test case is also added).
10401         - Set the LinkArea values after links change, LinkArea values must be
10402         based in first link position and size, a test case was created.
10403         - Fix ControlStyles.Selectable value, now is based on LinkArea value, 
10404         the attribute must be true LinkArea.Length > 0. The same was applied to
10405         TabStop.
10406         
10407         * ThemeWin32Classic.cs: 
10408         - LinkLabelGetPieceColor and LinkLabelGetPieceFont created and used 
10409         in draw method.
10410         - Use CPDrawStringDisabled to draw disabled text instead of hard code 
10411         color change.
10412         - Draw focus rectangle for every parts focused, including parts that 
10413         is on another line, its because regions returns various rectangles
10414         and not only one. Needed to mimic W32 look.
10415         - Uses Graphics.Clip to delimite region painted, it mean that now 
10416         complete text is passed to DrawString, with this we solve layout
10417         issues without create another text renderer.
10418         - Uses Region.Intersect to fix some flickers problems, now only needed
10419         parts will redrawed.
10420         - This changes fixes #79614 and some other unreported issues, on Linux 
10421         some layout problems still remain, the problem is under 
10422         MeasureCharacterRanges but it is an libgdiplus bug.
10423
10424 2007-03-10  Gert Driesen  <drieseng@users.sourceforge.net>
10425
10426         * TextBox.cs: Set for foreground color.
10427         * TextBoxBase.cs: Remove Invalidate when setting BackColor, since
10428         this is already done in Control.
10429
10430 2007-03-10  Jackson Harper  <jackson@ximian.com>
10431
10432         * TextBox.cs: Set the background color, but reset the
10433         backcolor_set flag which is just for the user setting the
10434         background color.
10435
10436 2007-03-09  Chris Toshok  <toshok@ximian.com>
10437
10438         * Control.cs: really remove the call to XplatUI.SetVisible from
10439         CreateHandle(), like I said I did when I merged the branch.
10440
10441         * BindingSource.cs: implement some more of this stuff.
10442
10443 2007-03-09  Jackson Harper  <jackson@ximian.com>
10444
10445         * TextBox.cs: Don't explicitly set our background colors.
10446         * TextControl.cs:
10447         * TextBoxBase.cs: Draw readonly text.
10448         - Need to invalidate when backcolor or readonly are changed.
10449         
10450 2007-03-09  Jackson Harper  <jackson@ximian.com>
10451
10452         * TextBoxBase.cs: Don't set the forecolor until the handle is
10453         created.
10454         - Do not raise OnPaint, and removed some old debug code.
10455
10456 2007-03-09  George Giolfan  <georgegiolfan@yahoo.com>
10457
10458         * ScrollableControl.cs: Fix mouse wheel scrolling.
10459
10460 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
10461
10462         * Control.cs: Wire up MouseDoubleClick event.
10463
10464 2007-03-09  Jonathan Pobst  <monkey@jpobst.com>
10465
10466         * ToolStrip.cs: Rework AutoSize to adjust height when docked to the
10467         top or bottom.
10468         * ToolStripItem.cs: Make Image drawing take ImageScaling into account.
10469         * ToolStripItemCollection.cs: Don't call owner.PerformLayout when a new
10470         item is added.  This logic was moved to ToolStrip.OnItemAdded.
10471         [Fixes bug #81090]
10472
10473 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10474
10475         * ListVieItem.cs: SetIndex is only valid for 2.0 profile by now.
10476
10477 2007-03-08  Jackson Harper  <jackson@ximian.com>
10478
10479         * TreeView.cs: Show the correct image for selected node (this used
10480         to work, not sure how the code got deleted). Also implemented 2.0 feature
10481         SelectedImageKey.
10482
10483 2007-03-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10484
10485         * ListView.cs:
10486         * ListViewItem.cs: Cache index in items when retrieving them
10487         in VirtualMode.
10488
10489 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
10490
10491         * ToolStripItem.cs: Don't return the explicit_size if we are using 
10492         AutoSize.  Fixes invalidation issue when user has explicitly set a
10493         size and has AutoSize = true.
10494
10495 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
10496
10497         * XplatUIX11.cs: Hardcode FrameBorderSize value temporarily to fix MWF.
10498
10499 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
10500
10501         * DataGridView.cs: Remove event handler from DataView when a
10502         DataTable is used as DataSource.
10503
10504 2007-03-08  Jonathan Pobst  <monkey@jpobst.com>
10505
10506         * Control.cs: Create internal setter for client_size to allow it to be
10507         set without triggering resizing code.
10508         * Form.cs: Calculate client_size in constructor, only change client_size
10509         in FormBorderStyle property if Handle has been created.
10510         [Fixes #80574, #80791]
10511
10512 2007-03-08  George Giolfan  <georgegiolfan@yahoo.com>
10513
10514         * SystemInformation.cs: Add TerminalServerSession.
10515
10516 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
10517
10518         * TreeViewDrawMode.cs: Make internal for 1.1 to allow for consolidated
10519         TreeView code.
10520
10521 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
10522
10523         * XplatUIWin32.cs: The no_activate stuff was forcing us to create a
10524         Handle before we were supposed to.  Now checks ActivateOnShow property
10525         in Control.
10526         * Control.cs: Add internal ActivateOnShow property.
10527         * ComboBox.cs, Form.cs, MenuAPI.cs, ToolStripDropDown.cs: Return false
10528         for ActivateOnShow.
10529         * Hwnd.cs Remove no longer needed no_activate field.
10530
10531 2007-03-07  Jackson Harper  <jackson@ximian.com>
10532
10533         * TreeView.cs: Implement owner draw tree nodes.  And a couple more
10534         2.0 properties
10535         * DrawTreeNodeEventHandler.cs: Add
10536         * DrawTreeNodeEventArgs.cs: Correct default value.
10537         
10538 2007-03-07  Chris Toshok  <toshok@ximian.com>
10539
10540         * XplatUIWin32.cs: create InternalWndProc so that we're guaranteed
10541         to be called before NativeWindow.WndProc.  Put the HwndCreating
10542         magic there to hook up our Hwnd's to handles.
10543
10544 2007-03-07  Gert Driesen  <drieseng@users.sourceforge.net>
10545
10546         * DataGridView.cs: Comment out debug code.
10547
10548 2007-03-07  Chris Toshok  <toshok@ximian.com>
10549
10550         [merge -r72718:73765 from mwf-handle-branch, and include 2 changes
10551         to make the rest of the world happy]
10552
10553         * Control.cs (CreateHandle): there's no need to call
10554         XplatUI.SetVisible here, it's effectively done by
10555         XplatUI.CreateWindow on X now, and always was on windows.
10556
10557         * XplatUIX11.cs (WaitForHwndMessage): only use the PostQuitState
10558         shortcircuit out of the loop if we have a message loop running on
10559         this thread.
10560
10561         [Changelog from merge]
10562
10563         2007-03-05  Chris Toshok  <toshok@ximian.com>
10564
10565                 * Control.cs (AccessibilityNotifyClients): turns out in 1.1 this
10566                 causes handle creation.
10567
10568         2007-02-28  Chris Toshok  <toshok@ximian.com>
10569
10570                 * ApplicationContext.cs: Add a flag to make sure we only raise the
10571                 ThreadExit event once (ExitThreadCore can be indirectly called
10572                 from a few places.)  I don't like the additional flag, but it
10573                 makes the event ordering/count correct.
10574
10575                 * Application.cs (MWFThread.LoopCount): don't use an enumerator
10576                 without locking the collection.  An enumerator doesn't give us any
10577                 protection from modification anyway.  Lock the thread hash and
10578                 replace the complicated enumerator loop with a foreach.
10579                 (Application.CloseForms): make internal so it can be called from
10580                 ApplicationContext.  This should probably be moved to MWFThread.
10581                 (Application.ExitThread): don't call MWFThread.Current.Exit()
10582                 here.  just call XplatUI.PostQuitMessage.  We'll exit the thread
10583                 when the runloop exits (in response to WM_QUIT.)
10584                 (Application.RunLoop): add a comment (and check) for
10585                 context.MainForm being null after setting context.MainForm.Visible
10586                 = true.  This is because you're perfectly free to dispose of a
10587                 form in VisibilityChanged.  Chalk this up to another case where we
10588                 need to synchronously generate WM_ACTIVATE from Control.Show.
10589                 Also, add handling for WM_QUIT here so we'll exit the loop.
10590                 
10591                 * XplatUIX11.cs: clean up MapWindow and UnmapWindow a bit.  The
10592                 fact that we don't wait if we're only unmapping the whole_window
10593                 makes me a bit nervous, but it doesn't seem to cause any problems
10594                 yet.
10595
10596                 also, add a comment about the stupid, broken and wrong resetting
10597                 of PostQuitState to false in GetMessage().
10598
10599                 In PostQuitMessage, we need to add a WM_QUIT message to the
10600                 thread's queue.  We use the FosterParent to get the right
10601                 handle/hwnd/queue.
10602
10603                 Lastly, in SetVisible, we need to unmap both windows, since the
10604                 waiting only happens when we're unmapping the client window.  So
10605                 now, the *only* time we unmap just the whole_window is in the hack
10606                 for resizing a control to 0,0.
10607                 
10608         2007-02-21  Chris Toshok  <toshok@ximian.com>
10609
10610                 * Application.cs (CloseForms): rewrite this so that we don't
10611                 modify the list while we're traversing it.
10612
10613         2007-02-20  Chris Toshok  <toshok@ximian.com>
10614
10615                 * ListBox.cs (.ctor): move the Control.AddImplicits here instead
10616                 of OnHandleCreated.
10617                 (HorizontalScrollEvent): only call XplatUI.ScrollWindow if the
10618                 handle is created.  otherwise we'll create it here.
10619                 (VerticalScrollEvent): same here.
10620
10621                 * Application.cs (CloseForms): call Form.Dispose, don't post
10622                 WM_CLOSE_INTERNAL.
10623
10624                 * Form.cs (WndProc): we don't need to use CLOSE_INTERNAL
10625                 here. Application should Dispose() of the Form's.
10626
10627                 * XplatUIX11.cs (WaitForHwndMessage): break out of the loop on
10628                 WM_DESTROY as well.
10629                 (MapWindow,UnmapWindow): only actually do the waiting for
10630                 SHOWWINDOW if the control we're dealing with is a Form.
10631                 (CreateWindow): if the control isn't a form, SendMessage
10632                 WM_SHOWWINDOW here (if the WS_VISIBLE style is set).
10633
10634                 * Control.cs (SetVisibleCore): always use is_visible here, not
10635                 value.  If we use value, we can end up re-setting something
10636                 visible if, for instance, you do Control.Hide() in a delegate
10637                 attached to VisibleChanged as we do in FormTest.ShowDialogTest.
10638
10639         2007-02-20  Chris Toshok  <toshok@ximian.com>
10640
10641                 * XplatUIX11.cs (WaitForHwndMessage): we need to loop until we get
10642                 the message we need.  PeekMessage returning false should not be a
10643                 condition under which we exit the loop.
10644
10645         2007-02-15  Chris Toshok  <toshok@ximian.com>
10646
10647                 * Control.cs (Refresh): only refresh if we've got a handle and are
10648                 visible.
10649                 (CreateAccessibilityInstance): CreateControl() here.
10650                 (UpdateChildrenZOrder): complicate the code loop even more by
10651                 taking into account controls that haven't had their handle
10652                 created, and those that aren't visible.  But on the flip side,
10653                 simplify the code by splitting it into two loops.  one which
10654                 builds up the list of child controls we're interested in, and the
10655                 other that sets the z order of those children.
10656
10657         2007-02-14  Chris Toshok  <toshok@ximian.com>
10658
10659                 * Control.cs: Control.AccessibilityObject causes the control to be
10660                 created, not just the handle.
10661
10662         2007-02-14  Chris Toshok  <toshok@ximian.com>
10663
10664                 * Control.cs: rework UpdateChildrenZOrder to correctly handle the
10665                 problem on X where a window might have its handle created (and be
10666                 visible) while the window is unmapped.  calling XConfigureWindow
10667                 on an unmapped window is bad, and generates X errors.
10668
10669         2007-02-13  Chris Toshok  <toshok@ximian.com>
10670
10671                 * Control.cs (CreateHandle): don't loop over our children setting
10672                 their parent here.  do it when in WndProc when we're shown.
10673                 (UpdateChildrenZOrder): make this internal so we can call it from
10674                 ScrollableControl.
10675                 (WndProc): for WM_SHOWWINDOW, reparent the child control after
10676                 creating its handle.  Also, remove the calls to PerformLayout from
10677                 here.  they're done in ScrollableControl.OnVisibleChanged.  Also,
10678                 OnVisibleChanged only seems to be called directly here for the
10679                 toplevel control.  It's propagated down the window hierarchy by
10680                 calls to child.OnParentVisibleChanged.
10681                 (OnVisibleChanged): don't do layout here - it's done (oddly
10682                 enough, according to a glance at stack traces on ms.net..) in
10683                 ScrollableControl.
10684                 
10685                 * ScrollableControl.cs (OnVisibleChanged): make sure we update the
10686                 z order of our children before calling PerformLayout.
10687
10688         2007-02-12  Chris Toshok  <toshok@ximian.com>
10689
10690                 [big change, fixes #80020]
10691                 
10692                 * AccessibleObject.cs: we need to make owner internal again to fix
10693                 some of ControlAccessibleObject.
10694
10695                 * Control.cs: lots of changes here.  add support for WM_CREATE,
10696                 for which we generate OnHandleCreated.  Remove the OnHandleCreated
10697                 call from CreateHandle.  Also add support for WM_SHOWWINDOW where
10698                 we create child controls.  leave the MonoTODO's for the
10699                 accessibility calls, but fix the exceptions so the tests pass.
10700
10701                 Add the InvalidOperationExceptions to Invoke methods, and remove a
10702                 couple of InvokeInternal methods we aren't using.
10703                 
10704                 Also, add a couple of CreateHandle calls in places where we know
10705                 the handles are being created but our code doesn't reference
10706                 .Handle.
10707
10708                 Make SetVisibleCore call OnVisibleChange if the handle isn't
10709                 created.  If the handle is created, we rely on XplatUI.SetVisible
10710                 generating the event synchronously.
10711                 
10712                 Lastly, make sure we don't use this.Handle inside CreateHandle,
10713                 because we can call back into client (and that code can dispose of
10714                 the control).
10715
10716                 * XplatUIStructs.cs: misc/cleanup.
10717
10718                 * XplatUIX11.cs: Map/Unmap X events correspond to WM_SHOWWINDOW,
10719                 although we don't populate the wParam properly.
10720                 (CreateWindow): generate WM_CREATE.
10721                 (MapWindow,UnmapWindow): make these calls synchronous, at great
10722                 performance expense (particularly in the unmap case), to match
10723                 win32 behavior.
10724
10725                 * Form.cs (.ctor): remove the call to UpdateBounds. we don't need
10726                 to call it.
10727                 (set_MdiParent): don't recreate the handle unless it's been
10728                 created already.
10729                 
10730                 * MdiClient.cs (OnResize): don't InvalidateNC Parent.Handle unless
10731                 it's created.
10732
10733                 * NativeWindow.cs: this is probably the weirdest part of the
10734                 patch.  We need a way to link up the window being created to the
10735                 WM_CREATE message.  Since we can only be creating one window at a
10736                 time on a given thread, we keep track of a per-thread reference so
10737                 we can dispatch it properly.  We also need to keep track of the
10738                 Hwnd currently being created so that the win32 backend doesn't
10739                 have problems.
10740                 
10741                 * XplatUIWin32.cs: a similar change to the one we made in
10742                 NativeWindow.cs.
10743
10744 2007-03-07  Jonathan Pobst  <monkey@jpobst.com>
10745
10746         * ToolStripItem.cs: Make CalculatePreferredSize virtual.
10747         * ToolStripMenuItem.cs: Modify CalculatePreferredSize and OnPaint
10748         to draw the menu shortcut string.
10749
10750 2007-03-07  Jackson Harper  <jackson@ximian.com>
10751
10752         * TreeNode.cs: Add the 2.0 collapse method.
10753
10754 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
10755
10756         * DataGridViewColumn.cs: Fix HeaderText behaviour (Bug #80746).
10757
10758 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
10759
10760         * DataGridView.cs: Change DataSource will clear column and row
10761         lists. Call Invalidate() to reflect DataSource change.
10762
10763 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
10764
10765         * DataGridView.cs: Add rows when DataSource is System.Data.DataView
10766         and a new row is added to it.
10767
10768 2007-03-07  Pedro Martínez Juliá  <pedromj@gmail.com>
10769
10770         * DataGridView.cs: Add columns when DataSource is en empty list but
10771         is a System.Data.DataView (from a System.Data.DataTable).
10772
10773 2007-03-06  Andreia Gaita  <avidigal@novell.com>
10774
10775         * Label.cs: Implement AutoEllipsis (2.0)
10776
10777 2007-03-06  Jackson Harper  <jackson@ximian.com>
10778
10779         * TreeView.cs: Implement 2.0 TopNode setter property.
10780         - Use a local var instead of the skipped_nodes field for computing
10781         how many nodes to skip.  Otherwise we won't scroll because the
10782         valuechanged handler checks if skipped_nodes is equal to the new
10783         value.
10784         - Implement 2.0 Sort method.
10785         - Add useless 2.0 DoubleBuffer property
10786         - Implement 2.0 LineColors property.  Lets you change the color of
10787         the lines in the tree. Terribly useful for creating non cohesive
10788         desktops.
10789         - Implement 2.0 image key feature.
10790
10791 2007-03-06  Jackson Harper  <jackson@ximian.com>
10792
10793         * TreeView.cs: We can't get the bounds of the nodes before raising
10794         the AfterSelect event, because that event could change the node's
10795         bounds (scrolling, font change, etc).
10796
10797 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10798
10799         * XplatUIWin32.cs: When faking styles don't remove the WS_VISIBLE flag.
10800         * Form.cs: Don't recreate handle when creating FormWindowManager, just
10801           update window styles. In CreateParams us VisibleInternal instead of
10802           VIsible to get the actual visible flag set for this form.
10803         * FormWindowManager.cs: Activate the form whenever the mouse clicks on
10804           the nc area. Fixes #81042. Also fix HandleTitleBarDoubleClick to
10805           handle the case when the form is already maximized, in which case
10806           it should be restored. Fixes #81043.
10807
10808 2007-03-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10809
10810         * XplatUIX11.cs: Tool windows still get wm styles. Fixes toolwindows showing up with double decorations.
10811
10812 2007-03-05  Jackson Harper  <jackson@ximian.com>
10813
10814         * TreeViewHitTestInfo.cs: implement.
10815
10816 2007-03-05  Jackson Harper  <jackson@ximian.com>
10817
10818         * InternalWindowManager.cs: class status fix.
10819
10820 2007-03-05  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10821
10822         * InternalWindowManager.cs: All windows that have a parent
10823         are confined to their parent when they're being moved.
10824         Fixes #80822.
10825
10826 2007-03-04  Gert Driesen  <drieseng@users.sourceforge.net>
10827
10828         * SystemInformation.cs: Marked KeyboardDelay and KeyboardSpeed public
10829         on 2.0 profile. Fixes bug #81018. Small code formatting fixes.
10830
10831 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10832
10833         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations: Make all
10834           buttons invisible before deciding which ones should be visible
10835           (fixes minimize/maximize buttons showing up in toolwindows). Remove
10836           an unused variable.
10837         * InternalWindowManager.cs: Remove warning.
10838
10839 2007-03-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10840
10841         * ListView.cs: Add a check in ListViewItemCollection.RemoveAt
10842         to throw an InvalidOperationException is virtual mode is being used.
10843
10844 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
10845
10846         * SplitContainer.cs, SplitterPanel.cs, StatusStrip.cs, TableLayoutPanel.cs,
10847         ToolStrip.cs, ToolStripContainer.cs, ToolStripContentPanel.cs,
10848         ToolStripControlHost.cs, ToolStripDropDownItems.cs, ToolStripItem.cs,
10849         ToolStripMenuItem.cs, ToolStripOverflowButton.cs, ToolStripPanel.cs,
10850         ToolStripPanelRow.cs, ToolStripProfessionalRenderer.cs, ToolStripSplitButton.cs,
10851         ToolStripStatusLabel.cs, ToolStripTextBox.cs: Corcompare work.
10852
10853 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10854
10855         * XplatUI.cs: Fixed returning driver.KeyboardSpeed instead of
10856           driver.KeyboardDelay from XplatUI.KeyboardDelay 
10857         * XplatUIW      in32.cs: Implemented KeyboardSpeed/KeyboardDelay properties
10858           (patch by Sergey Volk)
10859
10860 2007-03-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
10861
10862         * ToolWindowManager.cs: Added, contains logic for
10863           tool windows.
10864         * CreateParams.cs: Add a few helper methods and an
10865           internal variable to know which control the CreateParams belongs
10866           to.
10867         * Control.cs: Call Form.ChangingParent when the
10868           parent is about to be changed.
10869         * XplatUIX11.cs: DeriveStyles (): Set
10870           caption_height for all windows that have captions and are children.
10871           Update to use ToolWindowManager instead of InternalWindowManager
10872           for ToolWindows.
10873         * XplatUIWin32.cs: Set fake window styles for all
10874           windows that have window managers.
10875         * MdiWindowManager.cs: Added MaximizedTitleButtons (buttons are
10876           now duplicated for mdi windows when they are
10877           maximized, first for the buttons the window itself has, then for
10878           the buttons that appear in the menu bar. Makes things a little
10879           easier). Updated UpdateWindowDecorations, SetWindowState and the
10880           mouse eventhandlers accordingly.
10881         * Form.cs: Add ChangingParent (), contains the
10882           logic of what should happen when the parent changes. In MdiParent
10883           don't set things that ChangingParent () is doing. When handling
10884           WM_CLOSE, we can close the form if there are any other modal forms
10885           and the current form is a descendent of the modal form.
10886         * InternalWindowManager.cs: A lot of refactoring,
10887           the title buttons are now extracted to a separate container class
10888           that takes care of all button code (clicks, tooltips, etc). Moved
10889           Iconic|Maximized|Normal Bounds properties to this class from
10890           MdiWindowManager, so that the window state logic can succeed for
10891           other than mdi wm's. Implemented general window state change logic.
10892           Moved CreateButtons to ThemeWin32Classic, since the theme might
10893           override which buttons are available when as well as the exact
10894           location.
10895         * FormWindowManager.cs: Added, contains logic for
10896           normal forms.
10897         * ThemeWin32Classic.cs: ManagedWindowSetButtonLocations now decides
10898           which buttons go where (and if they are at all visible). 
10899           Removed special handling of maximized windows, since they aren't special. 
10900           In DrawManagedWindowDecorations don't try to draw the text if it is
10901           empty.
10902         * MdiClient.cs: ArrangeIconicWindows: Don't  calculate any sizes, 
10903           use whatever the wm gives us.
10904
10905 2007-03-02  Jonathan Pobst  <monkey@jpobst.com>
10906
10907         * ButtonBase.cs: Add 2.0 properties.
10908         * Button.cs: Override Draw for 2.0.
10909         * Control.cs: Add Entered and Selected properties.
10910         * FlatButtonAppearance.cs, TextFormatFlags.cs, TextImageRelation.cs,
10911         TextRenderer.cs: Make internal for 1.1 to unify drawing code.
10912         * Theme.cs: New abstract functions for drawing Standard, Flat, Popup
10913         buttons.
10914         * ThemeWin32Classic.cs: Implement layout calculations for 2.0 buttons.
10915
10916 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
10917
10918         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code.  :/
10919
10920 2007-03-01  Jonathan Pobst  <monkey@jpobst.com>
10921
10922         * XplatUIWin32.cs: Register a new class with Windows each time we get
10923         a new ClassStyle.  [Fixes bugs #79432, #80817]
10924         * Controls.cs: Set the correct ClassStyle in CreateParams.
10925         * ToolStripDropDown.cs: Don't request an invalid ClassStyle.
10926
10927 2007-03-01  Gert Driesen  <drieseng@users.sourceforge.net>
10928
10929         * ListView.cs: Add fireEvent argument to ReorderColumn since the
10930         ColumnReordered event must not be signaled when modifying DisplayIndex
10931         of a ColumnHeader. Added internal ReorderColumns method which takes
10932         care of drawing, and updating the internal DisplayIndex of the
10933         ColumnHeader. Added AddColumn method which is invoked from
10934         ColumnHeaderCollection when adding or inserting columns, and which
10935         ensures that reorder_columns_indices is kept in sync. Avoid redrawing
10936         after adding each ColumnHeader in ColumnHeaderCollection.AddRange.
10937         Recalculated dispay indices after removing a ColumnHeader.
10938         * ColumnHeader.cs: Save DisplayIndex separately from ListView to
10939         match MS. Allows last display index to be returned after ListView
10940         is disposed. Update actual location of ColumnHeader when DisplayIndex
10941         is modified.
10942
10943 2007-03-01  Everaldo Canuto  <everaldo@simios.org>
10944
10945         * LinkLabel.cs: Improve CalcTrimRectangle.
10946         
10947         * ThemeWin32Classic.cs: Fix some compilation problem under VS 2003.
10948
10949 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
10950
10951         * LinkLabel.cs: Rename CalcMeasurementFactor as CalcTrimRectangle and
10952         get rectangle as a result value.
10953
10954 2007-02-28  Everaldo Canuto  <everaldo@simios.org>
10955
10956         * LinkLabel.cs: Theres some diferences between rectangle return from 
10957         MeasureCharacterRanges and the area used for DrawString to fix this 
10958         CalcMeasurementFactor method was created, it calcules the diferences
10959         to be use later to adjust rectangle in draw operations. Fixes #80473.
10960         
10961         * ThemeWin32Classic.cs: Use factor calculated by CalcMeasurementFactor
10962         to adjust draw rectangle.
10963
10964 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
10965
10966         * ThemeWin32Classic.cs: In DrawLinkLabel draw focus rectangle before draw
10967         text and some other changes to reduce and optimize source code.
10968
10969 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
10970
10971         * RadioButton.cs: Implement 2.0 event.
10972         * RelatedImageListAttribute.cs: Implement new class.
10973
10974 2007-02-27  Everaldo Canuto  <everaldo@simios.org>
10975
10976         * MenuAPI.cs: Change keynav_state before call SelectItem. Fixes #80901.
10977
10978 2007-02-27  Jonathan Pobst  <monkey@jpobst.com>
10979
10980         * CheckBox.cs: Implement 2.0 functionality.
10981
10982 2007-02-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
10983
10984         * ListView.cs: Refactor Add and AddRange methods of
10985         ListViewItemCollection, to not update the ListView
10986         everytime an item is added in AddRange. Also move the update
10987         code to a new CollectionChanged method, and call it
10988         from other methods that need it as well (this should also fix some
10989         bugs when Sorting is used).
10990
10991 2007-02-27  Jackson Harper  <jackson@ximian.com>
10992
10993         * TextControl.cs: Try to never let the caret stay in a non-text
10994         tag.
10995         * TextBoxBase.cs: Update the caret.
10996
10997 2007-02-26  Jonathan Pobst  <monkey@jpobst.com>
10998
10999         * XplatUIStructs.cs: Add some convenience methods for POINT structure.
11000         * XplatUIWin32.cs: Add some convenience methods for RECT structure,
11001         delete POINT structure, duplicate of one in XplatUIStructs.
11002         * TextRenderer.cs: Use XplatUIWin32.RECT instead of UXTheme.RECT.
11003
11004 2007-02-26  Gert Driesen  <drieseng@users.sourceforge.net>
11005
11006         * ListView.cs: Initialize LabelEditEventArgs after setting Text of
11007         edit box since otherwise the Label would immediately be set (even if
11008         the user did not modify the label). In OnKeyDown set Handled to true
11009         if Return or Escape was pressed. In ColumnHeaderCollection unlink
11010         columns that are to be removed. In ListViewItemCollection unlink items
11011         that are to be removed.
11012
11013 2007-02-24  Jonathan Pobst  <monkey@jpobst.com>
11014
11015         * TextRenderer.cs: If we set a GDI clip region, we need to clear
11016         it when we are done.  [Fixes bug #80949]
11017
11018 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
11019
11020         * Form.cs: Wrap checking ShowWithoutActivation in a NET_2_0 block.
11021
11022 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11023
11024         * ListView.cs: I forgot to commit the changes for ListView 
11025         in my previous patch.
11026
11027 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
11028
11029         * Clipboard.cs: Partially implement an overload of SetDataObject.
11030         * Form.cs: Implement ShowWithoutActivation.
11031         * XPlatUIWin32.cs: Fix for WM_SHOWNOACTIVATE for forms.
11032
11033 2007-02-23  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11034
11035         This is a first set of changes to make the Virtual mode works,
11036         by avoiding the retrieval of ListViewItem instances until
11037         draw time.
11038
11039         * ListView.cs: Store item position in the ListView instead of the
11040         ListViewItem, this way we don't request the Bounds property of
11041         ListViewItem inside the ListView calculations, as well as cache the item
11042         size in item_size field. Store indexes instead of ListViewItem
11043         instances in the matrix used by icon view. Add a ItemMatrixLocation
11044         struct to hold the row and col info of the matrix info.
11045
11046         * ListViewItem.cs: Don't store the location anymore, and only cache
11047         the rectangles for GetBounds. Use the ListView.GetItemLocation
11048         method to retrieve the actual location.
11049
11050 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
11051
11052         * TextRenderer.cs: Add clipping support, thanks to George.
11053         [Fixes bug #80949]
11054
11055 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
11056
11057         * ListViewItem.cs: Cancel label edit when item is removed from 
11058         ListView.
11059         * ListView.cs: Move setting of focus to EndEdit. Fire BeforeLabelEdit
11060         event before the edit textbox is displayed.  Added CancelEdit method
11061         which is used end to editing while ignoring the value set by the
11062         user. In EndEdit, set focus to ListView to avoid losing focus to
11063         other controls. In ListViewItemCollection.Clear, cancel editing of
11064         any of the items.  In Remove, cancel editing of item being removed.
11065         Avoid udplicate code by modifing RemoveAt to invoke Remove.
11066
11067 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
11068
11069         * FileDialog.cs: Update FSEntry when move is successful. Fixes
11070         bug #80948.  
11071
11072 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
11073
11074         * MainMenu.cs: Change Draw method to take care about MenuOrigin to be 
11075         compatible with non X11 systems. Fixes #80901.
11076
11077 2007-02-23  Gert Driesen  <drieseng@users.sourceforge.net>
11078
11079         * ListView.cs: Added bool argument to UpdateMultiSelection to specify
11080         whether the item should be unselected and reselect. We do no want this
11081         when we're starting to edit the label. Do not fire the 
11082         SelectedIndexChanged event from ListView when its already been fired
11083         by modifying ListViewItem.Selected. Fixes bug #80943.
11084
11085 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
11086
11087         * TextRenderer.cs: Previos commit logic was backwards.
11088
11089 2007-02-23  Jonathan Pobst  <monkey@jpobst.com>
11090
11091         * TextRenderer.cs: Don't add padding on MeasureText if we were
11092         sent the NoPadding flag.
11093
11094 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
11095
11096         * ThemeWin32Classic.cs: Invert order of drawing operation with DrawImage
11097         after DrawButton. To prevent image overlaps button borders SetClip and 
11098         ResetClip added before and after draw image. Fixes #79129.
11099
11100 2007-02-23  Everaldo Canuto  <everaldo@simios.org>
11101
11102         * FolderBrowserDialog.cs: Use ClientSize instead of Size to specify 
11103         window size, it fix problem when you run under win32 that theres
11104         Size diferent than ClientSize. Also fix controls size and positions
11105         to mimic Win32. Fixes #80837.
11106
11107 2007-02-22  Everaldo Canuto  <everaldo@simios.org>
11108
11109         * Form.cs: Handle WM_NCHITTEST and return HTMENU when point is on 
11110         menu area to fix some problems for non X11 systems. Fixes #80613.
11111
11112 2007-02-22  Jackson Harper  <jackson@ximian.com>
11113
11114         * TreeNode.cs: When a node is expanded, set its is_expanded flag
11115         even if it doesn't have any children.
11116
11117 2007-02-22  Jackson Harper  <jackson@ximian.com>
11118
11119         * TreeView.cs: Calculate the top node 'on the fly', this
11120         eliminates issues where you need to click on the tree before
11121         scrolling it to get the top node computed correctly.
11122         * TreeNodeCollection.cs: We don't need to mess with the top node
11123         anymore.
11124
11125 2007-02-22  Jackson Harper  <jackson@ximian.com>
11126
11127         * DataGridViewRow.cs: Fix typo so height can actually be set.
11128         Patch by Peter Grimm.
11129
11130 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
11131
11132         * FileDialog.cs: Fixed support for renaming files and directories.
11133         * ListView.cs: Do not lose focus when edit is canceled. Process
11134         Escape as regular key (to prevent closing of dialogs).
11135
11136 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
11137
11138         * ListView.cs: Removed TODO for LabelEdit. Removed extra tabs and
11139         spaces. Changed spaces to tabs. Removed unnecessary init of bools.
11140
11141 2007-02-22  Gert Driesen  <drieseng@users.sourceforge.net>
11142
11143         * FileDialog.cs: LabelEditEventArgs.Label now returns null when user
11144         did not modify label.
11145         * ListView.cs: Only set LabelEditEventArgs.Label if user actually
11146         modified the text. Reset Label when user presses Escape in edit mode.
11147         Move focus to ListView after having cancelled or finished editing the
11148         label.
11149
11150 2007-02-21  Gert Driesen  <drieseng@users.sourceforge.net>
11151
11152         * ComboBox.cs: Removed unnecessary initializations. Marked items field
11153         private. Clear textbox when Text is set to null and SelectedIndex is
11154         already -1.
11155         * FileDialog.cs: Removed unnecessary initializations. Removed 
11156         workarounds for ComboBox bugs that are now fixed. Modified
11157         DefaultExt, InitialDirectory and Title property to change null to
11158         zero-length string in getters. Avoid directly accessing fields.
11159
11160 2007-02-20  Jackson Harper  <jackson@ximian.com>
11161
11162         * TextControl.cs: Remove RecalAlignments call, that was some
11163         debugging leftovers.
11164         - Don't use the line indent when we shouldn't.
11165         * RichTextBox.cs: Add support for paragraph left indents.
11166
11167 2007-02-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11168
11169         * Control.cs: Fix BeginInvoke signature for 2.0 profile.
11170         Seems like the class status pages doesn't catch params differences.
11171
11172 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
11173
11174         * ComboBox.cs: Removed extra tabs. Changes spaces to tabs.
11175
11176 2007-02-19  Gert Driesen  <drieseng@users.sourceforge.net>
11177
11178         * ComboBox.cs: Setting Text should have no effect if item text of
11179         selected item exactly matches value. First lookup text using
11180         case-sensitive comparison, and fallback to case-insensitive comparison.
11181         FindString(Exact) returns -1 if search string is null. On 2.0 profile, 
11182         allow startIndex to be last index. Changed ArgumentOutOfRangeException
11183         paramname to match MS. Restart from first item if string is not found
11184         after startIndex. Fixed paramname of ArgumentNullException that is
11185         thrown for null value in ObjectCollection.Contains.
11186
11187 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
11188
11189         * XplatUIStructs.cs: WM_XXX UISTATE elements uncommented.
11190
11191 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11192
11193         * ListControl.cs: In SelectedValue use value.Equals to compare for
11194         equality instead of ==, otherwise it will fail for strings.
11195         Fixes #80794.
11196
11197 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11198         
11199         * ComboBox.cs: Switch the order to ShowSelection and ActivateCaret,
11200         since the caret won't show up unless ShowSelection is true. 
11201         Fixes #80795.
11202
11203 2007-02-19  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11204
11205         * Application.cs: When disabling all forms but the main form, do not
11206           disable any descendants of the main form (such as mdi children or
11207           other parented forms). Fixes #80822 on Windows.
11208         * Form.cs: If we have a parent, set the WS_CHILD style.
11209         * Control.cs: Update the window styles if the control whose parent has
11210           changed is a form (the WS_CHILD style has to be switched).
11211
11212 2007-02-19  Everaldo Canuto  <everaldo@simios.org>
11213
11214         * XplatUIStructs.cs: MsgUIState structure added.
11215
11216 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
11217
11218         * FileDialog.cs: Removed need for separate fileName field. On 2.0
11219         profile, do not check filename(s) for illegal character if filename(s)
11220         were set non-interactively but always check on 1.0 profile. Fixed NRE
11221          in DefaultExt and only strip off first leading dot. Improve exception
11222         message when invalid Filter is set. Do not ignore InitialDirectory if
11223         it does no exist. Store specified Title, and if empty use default
11224         title (depending on type of dialog). Added an internal DialogTitle 
11225         property for retrieving dialog title. Fixed logic of displayed dir to
11226         more closely match MS. Avoid setting ComboBox.Text to a zero-length 
11227         string as its buggy.
11228         * OpenFileDialog.cs: In OpenFile, throw ArgumentNullException if
11229         FileName is a zero-length string (it can never be null). Override 
11230         DialogTitle property to set default title of dialog box.
11231         * SaveFileDialog.cs: Override DialogTitle property to set default
11232         title of dialog box.
11233
11234 2007-02-18  Gert Driesen  <drieseng@users.sourceforge.net>
11235
11236         * FileDialog.cs: Modify default text of filename and filetype labels
11237         to match that of MS. Reset do_not_call_OnSelectedIndexChanged...
11238         after we've updated the SelectedIndex. Fixes part of bug #80887.
11239         * SaveFileDialog.cs: Set text of filetype label.
11240
11241 2007-02-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11242
11243         * LabelEditEventArgs.cs: New internal SetLabel method, to set the
11244         label field. Needed by latest Jackson's fixes for ListView.
11245
11246 2007-02-16  Andreia Gaita  <avidigal@novell.com>
11247
11248         * PrintPreviewControl/PrintPreviewDialog: Properly dispose of 
11249         print preview images.
11250
11251 2007-02-16  Jackson Harper  <jackson@ximian.com>
11252
11253         * ListView.cs: Make AfterLabelEdit work correctly.
11254         * FileDialog.cs: After changing the name of the folder, we have to
11255         make sure that it is created, or that we pop up an error because
11256         it already exists.
11257
11258 2007-02-16  Jackson Harper  <jackson@ximian.com>
11259
11260         * X11Dnd.cs: Implement aliases on mime handlers, so things like
11261         System.String are mapped to text.
11262         - Handle dataobjects, getting all the possible formats out of them
11263         - We dont need the drag event args before we give feedback. This
11264         allows feedback cursors to be immediate before selections have
11265         been converted.
11266
11267 2007-02-16  Jackson Harper  <jackson@ximian.com>
11268
11269         * TextBoxBase.cs: Modified the method for inserting images to
11270         taking a line and position instead of tag and position.
11271         * RichTextBox.cs: Handle PngBlip data by inserting the png image
11272         into the RTF file.
11273         * TextControl.cs: Allow images to be inserted as the first tag of
11274         a line.
11275         - Fix some off by one issues when we assume the first tag is a
11276         text tag, not an image tag.
11277
11278 2007-02-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11279
11280         * ListView.cs: Set focus to ListView when ItemControl gets a
11281         WM_RBUTTONDOWN message, to mimic .Net behaviour. 
11282         Fixes part of #80467.
11283
11284 2007-02-15  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11285
11286         * DateTimePicker.cs: Call RecreateHandle if the Format changes and
11287           validate Text input (if null or empty string reset Value to default
11288           value). Fixes #80830.
11289
11290 2007-02-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
11291
11292         * ListView.cs: Set owner as null for columns and items when
11293         Dispose is invoked. Fixes #80607.
11294
11295 2007-02-14  Jonathan Pobst  <monkey@jpobst.com>
11296
11297         * ToolStrip.cs: Allow LayoutStyle.Flow, make sure to call OnOpening when
11298         showing DropDowns, don't show a Grip when doing Flow layout.
11299         [This fixes the toolbox in PDN 2.72.]
11300         * ToolStripItem.cs: Add Anchor property and some internal properties to
11301         reduces needed changes to FlowLayout.
11302         * ToolStripOverflow.cs: Remove unused variable.
11303         * ToolStripSplitStackLayout.cs: If a ToolStripItem isn't visible, don't
11304         use it in the layout calculations.
11305
11306 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
11307
11308         * ToolTip.cs: Add HotkeyPrefix.Hide to MeasureString format, it fix an issue
11309         reported in #79640.
11310         
11311         * ThemeWin32Classic.cs: Uses format for MeasureString in ToolTipSize to fiz
11312         size calculation.
11313
11314 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
11315
11316         * ToolBar.cs, ToolBarButton.cs: Revert and remove HotkeyPrefix from 
11317         MeasureString format, it can make button very large in some cases, it is
11318         strange but is what win32 do.
11319
11320 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
11321
11322         * ToolBar.cs, ToolBarButton.cs: Uses format in MeasureString to fix string 
11323         size calculation.
11324
11325         * ThemeWin32Classic.cs: Set HotkeyPrefix in toolbar text format to fix text
11326         rendering, the value is based on MenuAccessKeysUnderlined.
11327
11328 2007-02-13  Everaldo Canuto  <everaldo@simios.org>
11329
11330         * Theme.cs: Change MenuAccessKeysUnderlined to "true" that is value used
11331         for most themes.
11332         
11333         * ThemeWin32Classic.cs: Override MenuAccessKeysUnderlined as false.
11334         
11335         * ThemeNice.cs, ThemeGtk.cs, ThemeClearlooks.cs: Remove always_draw_hotkeys
11336         and use MenuAccessKeysUnderlined instead.
11337
11338 2007-02-13  Andreia Gaita  <avidigal@novell.com>
11339
11340         * ContainerControl.cs: Focus fix for nunit treeview selection bug.
11341         A selected control would not get a Focus call if:
11342                 - the default active control of the container is the same as
11343                   the one that was selected
11344                 - we are switching from one container to another
11345         Under these conditions, the container being selected already has
11346         an active_control, which is the same as the one being activated, 
11347         so set_ActiveControl would always return and not send the Focus
11348         call. Fix to check if the currently active control of the container
11349         is actually focused.
11350
11351 2007-02-13  Jonathan Pobst  <monkey@jpobst.com>
11352
11353         * StatusStrip.cs: Implement the spring layout.
11354         * ToolStripControlHost.cs: Make sure the hosted control's visibility
11355         always matches the host.
11356         * ToolStripItem.cs: Write a more accurate layout for TextBeforeImage
11357         and TextAfterImage.
11358
11359 2007-02-13  Andreia Gaita  <avidigal@novell.com>
11360
11361         * Control.cs: Code reorganization only.
11362           - Reorganize the WndProc cases so that each case has it's own handling method, 
11363           to help with the no-line-numbering stack traces.
11364           - Formatting changes (it's vstudio's fault, really :p)
11365
11366 2007-02-13  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11367
11368         * MonthCalendar.cs: Switch to using Thread.CurrentCulture instead of
11369           Thread.CurrentUICulture to match DateTimePicker's (and MS)
11370           behaviour.
11371
11372 2007-02-12  Jackson Harper  <jackson@ximian.com>
11373
11374         * RichTextBox.cs:
11375         * TextBox.cs: By default we have a non multiline document
11376         - use the multiline property instead of the internal variable
11377         * TextBoxBase.cs: Treat multiline and non multiline the same in
11378         most places.
11379         - Use the documents multiline flag instead of tracking it ourself
11380         * TextControl.cs: Attempt at getting multiline to match MS
11381         behavior.  Lines now track an offset, which is either their X or Y
11382         offset depending on whether or not we are in multiline mode.
11383         - Update all the methods to understand that lines have an X value.
11384         - Fix crash in Undo::Duplicate when empty lines are deleted.
11385
11386 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
11387
11388         * Label.cs: CalcPreferredHeight and CalcPreferredWidth methods removed and 
11389         code moved to properties PreferredHeight and PreferredWidth. It solve the
11390         all problems when preferred sizes must be recalculated. Fixes #80801.
11391
11392 2007-02-12  Everaldo Canuto  <everaldo@simios.org>
11393
11394         * Label.cs: Fix CalcPreferredHeight for 2.0 that must return only
11395         font height when compatible_text_rendering is false. Partially fix #80801.
11396
11397 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
11398
11399         * Form.cs: Fixed typo in exception message. Fixes bug #80779.
11400
11401 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
11402
11403         * Form.cs: Improved exception messages in ShowDialog.
11404
11405 2007-02-09  Gert Driesen  <drieseng@users.sourceforge.net>
11406
11407         * PrintDialog.cs: On 1.0 profile, throw ArgumentException in RunDialog if
11408         PrinterSettins has not been set. On 2.0 profile, initialize PrinterSettings
11409         if not set. Fixes bug #80764. Avoid accessing current_settings field
11410         directly.
11411
11412 2007-02-08  Everaldo Canuto  <everaldo@simios.org>
11413
11414         * Theme.cs: An new property MenuAccessKeysUnderlined added with default value
11415         false.
11416
11417         * SystemInformation.cs: An new property MenuAccessKeysUnderlined added, it is
11418         public in 2.0 and for easy maintenance and dont break compatibility it is 
11419         internal in 1.1.
11420         
11421 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
11422
11423         * ToolStripItem.cs: Implement using images from ImageList.
11424
11425 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11426
11427         * DateTimePicker.cs: Change default date-formatting culture from
11428           CurrentThread.CurrentUICulture to CurrentThread.CurrentCulture,
11429           seems to be the way MS does it.
11430
11431 2007-02-08  Andreia Gaita  <avidigal@novell.com>
11432
11433         * PrintPreviewControl.cs: rewrite toolbar code to fix #80725. Correct 6-up image 
11434         (the 6 was cut off on the right side)
11435
11436 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
11437
11438         * Form.cs: Tell MenuStrips to close when the form is clicked.
11439         * MenuStrip.cs, ToolStrip.cs, ToolStripControlHost.cs, 
11440         ToolStripDropDown.cs, ToolStripDropDownItem.cs, ToolStripItem.cs,
11441         ToolStripItemCollection.cs, ToolStripMenuItem.cs, ToolStripProfessionalRenderer.cs,
11442         ToolStripSplitButton.cs, ToolStripSplitStackLayout.cs: Add 
11443         support for Overflow, where items that do not fit are automatically
11444         reparented to a drop down menu.
11445         * ToolStripOverflow.cs, ToolStripOverflowButton.cs: Added.
11446         Also: fixes bug #80747.
11447
11448 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11449
11450         * ComboBox.cs: Remove warning (unused code).
11451         * ScrollableControl.cs: Remove warning for 1.1 profile.
11452
11453 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11454
11455         * Form.cs: Remove a warning.
11456
11457 2007-02-08  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11458
11459         * DateTimePicker.cs: Fixed a NRE if CustomFormat was null. Handles the
11460           'g' specifier, not documented anywhere, but seems to always show up
11461           as a single space (might have something to do with the DateTime 'g'
11462           specifier, which is the era format, but since DateTimePicker can't
11463           go earlier than 1753 it wouldn't matter) . Fixed quote handling,
11464           won't crash if the format has an unmatched quote. Now shows
11465           single-character formats correctly. Fixes #80744.
11466
11467 2007-02-08  Jonathan Pobst  <monkey@jpobst.com>
11468
11469         * StatusStrip.cs: Stretch property needs to call base.Stretch,
11470         not this.Stretch to fix stack overflow. [Fixes bug #80760]
11471
11472 2007-02-07  Chris Toshok  <toshok@ximian.com>
11473
11474         * ThemeWin32Classic.cs (DrawButtonBase): don't clear to the
11475         background color.  it overwrites the background image we've
11476         already painted.  Fixes #80599.
11477
11478 2007-02-07  Chris Toshok  <toshok@ximian.com>
11479
11480         * DataGrid.cs: return immediately from Edit() when there are no
11481         columns.  Fixes #80662.
11482
11483 2007-02-07  Chris Toshok  <toshok@ximian.com>
11484
11485         * MessageBox.cs: fix #80625.  don't always show the Help button in
11486         2.0.  use the displayHelpButton parameter to determine if we
11487         should show it. Also, make the internal show_help field private.
11488
11489 2007-02-07  Chris Toshok  <toshok@ximian.com>
11490
11491         * Control.cs (SetVisibleCore): check in the proposed patch for
11492         80604, and set is_visible before calling CreateControl.
11493
11494 2007-02-07  Jonathan Pobst  <monkey@jpobst.com>
11495
11496         * ListView.cs: UseCompatibleStateImageBehavior setter changed from NIEX to 
11497         MonoInternalNote.  This is added automagically by VS2005, so let's not crash
11498         on it.
11499
11500 2007-02-06  Everaldo Canuto  <everaldo@simios.org>
11501
11502         * MenuAPI.cs: hotkey_active internal field added, it is required because
11503         we need to know when hotkeys must be draw, before this change a keystate
11504         Navigating was used but we can have menu in navigating state without
11505         hotkeys. Fixes #80694.
11506         
11507         * ThemeWin32Classic.cs: Only draw hot keys when hotkey_active is true.
11508
11509 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11510
11511         * Control.cs: Handle WM_CAPTURECHANGED in 1.1 code as well, and change
11512           corresponding events and methods to be internal for 1.1 profile and
11513           public for 2.0 profile (required by SizeGrip).
11514         * Form.cs: Use SizeGrip as a virtual SizeGrip (and don't add it to the
11515           implicit control list). Don't set the size nor the location of the
11516           SizeGrip anymore as it's not needed.
11517         * SizeGrip.cs: Rewrote large parts, it now supports a virtual mode to
11518           draw directly on the captured control (fixes #80656). Removed
11519           ShowGrip (it wasn't used anywhere), redraw (always true), added
11520           GetDefaultSize and GetDefaultRectangle to calculate defaults.
11521         * ScrollableControl.cs: Make UpdateSIzeGripVisible internal so it can
11522           be called from SizeGrip.
11523
11524 2007-02-06  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11525
11526         * Timer.cs: Throw ArgumentException if Interval <= 0.
11527
11528 2007-02-05  Jackson Harper  <jackson@ximian.com>
11529
11530         * TreeView.cs: We need to check scrollbar visibility when window
11531         visibility is updated, because non visible trees don't ever add
11532         scrollbars.
11533         * Cursor.cs: We want the override cursor to be reset to NULL when
11534         we set current cursor to the default cursor.
11535
11536 2007-02-05  Jackson Harper  <jackson@ximian.com>
11537
11538         * TextControl.cs: Don't have crlfs when we are non multiline.
11539         - Consolidate the line position.
11540
11541 2007-02-05  Jackson Harper  <jackson@ximian.com>
11542
11543         * X11Keyboard.cs: BACK+CTRL gets a special char code.
11544
11545 2007-02-03  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11546
11547         * XplatUIX11.cs: Implemented WM_CAPTURECHANGED support, we're now
11548           handling LeaveNotify->NotifyUngrab in order to send
11549           WM_CAPTURECHANGED. However sometimes the NotifyUngrab arrives late
11550           after calling XUngrabPointer, so we call WindowUngrabbed directly
11551           from UngrabWindow in order to send WM_CAPTURECHANGED immediately.
11552         * Control.cs: Handle WM_CAPTURECHANGED in order to raise
11553           MouseCaptureChanged correctly. Also create handles if changing
11554           Capture (matches MS behaviour).
11555
11556 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11557
11558         * SizeGrip.cs: Make the last change 2.0 only.
11559
11560 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11561
11562         * SizeGrip.cs: If resizing and the capture is lost, revert any size
11563           changes to initial size (fixes #80597).
11564
11565 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11566
11567         * SizeGrip.cs: Use the normal icon for SizeGrip if it is disabled.
11568
11569 2007-02-02  Rolf Bjarne Kvinge <RKvinge@novell.com> 
11570
11571         * SizeGrip.cs: Only draw sizegrip if enabled (but always draw
11572           background) and only allow dragging if enabled. This way the
11573           sizegrip can be used to fill the open square that otherwise would
11574           have been shown in the bottom right corner of ScrollableControl
11575           when ScrollableControl is not suppose to support sizing.
11576         * ScrollableControl.cs: Create UpdateSizeGripVisible to decide when the
11577           sizegrip is shown and enabled, and hook up with necessary events.
11578
11579 2007-02-01  Chris Toshok  <toshok@ximian.com>
11580
11581         * DataGridTextBoxColumn.cs: clean up the
11582         GetFormattedString/GetColumnValueAtRow combination of functions.
11583         Also fix UpdateUI, and the initial state of
11584         IsInEditOrNavigateMode.
11585
11586         * DataGridTextBox.cs: don't chain up to base.OnMouseWheel - we
11587         aren't supposed to scroll the textbox here, we're supposed to
11588         scroll the datagrid.
11589
11590 2007-02-01  Chris Toshok  <toshok@ximian.com>
11591
11592         * ComboBox.cs: use vscrollbar_ctrl.Dock instead of explicitly
11593         setting the position.
11594
11595 2007-02-01  Chris Toshok  <toshok@ximian.com>
11596
11597         * DataGrid.cs (OnLeave): we can now do the CancelCurrentEdit thing
11598         here, since the most recent focus fixes keep us from generating
11599         the Leave event when our textbox gets focus.
11600         (Edit): we should be passing null for the column style's
11601         instantText parameter.
11602         
11603 2007-02-01  Jonathan Pobst  <monkey@jpobst.com>
11604
11605         * ToolStripDropDownItem.cs: Make sure DropDownOpening event is 
11606         raised.  Fixes menu text/icons not showing up in PDN.
11607
11608 2007-02-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11609
11610         * Control.cs: Remove code in constructor that makes every
11611         control with WS_CHILD set have initial location -1, -1.
11612
11613 2007-01-31  Jackson Harper  <jackson@ximian.com>
11614
11615         * X11Dnd.cs: Take the keyboard on init to reduce coupling with
11616         XplatUIX11.
11617         * XplatUIX11.cs: Give teh keyboard to teh dnd.
11618
11619 2007-01-31  Jackson Harper  <jackson@ximian.com>
11620
11621         * X11Dnd.cs: Use IDataObject instead of the DataObject class.
11622         - Remove some debug code.
11623
11624 2007-01-31  Jackson Harper  <jackson@ximian.com>
11625
11626         * XplatUIX11.cs: If you set the override cursor during a grab, it
11627         should actually override the grab cursor.  This comes into play
11628         when you are setting custom cursors in a DND feedback method.
11629
11630 2007-01-31  Jackson Harper  <jackson@ximian.com>
11631
11632         * X11Dnd.cs: Add support for handling the QueryContinue and
11633         GiveFeedback events.
11634         - Cancel drag and drop actions when the escape key is clicked.
11635         * XplatUIX11.cs: Let the dnd subsystem get key events, so that it
11636         can handle the ESCAPE key.
11637         - Allow dnd to swallow BUTTONUP messages if it needs to.  This is
11638         done when dnd events are continued after the button is released.
11639         - Add a new helper method so that dnd can translate key events.
11640
11641 2007-01-31  Alexander Olk  <alex.olk@googlemail.com>
11642
11643         * FileDialog.cs: Rewrite of Jacksons OnClickCancelButton patch to
11644         make it more obvious what is happening.
11645
11646 2007-01-30  Jackson Harper  <jackson@ximian.com>
11647
11648         * XplatUIX11.cs: Don't break when handling button release in drag
11649         and drop operations. We need that BUTTONUP message to get through
11650         so capture is released.
11651         * X11Dnd.cs: We don't need to manually grab the pointer anymore,
11652         this is handled automatically when the mouse is down.
11653
11654 2007-01-30  Jackson Harper  <jackson@ximian.com>
11655
11656         * FileDialog.cs: OnClickCancelButton gets called whenever the dialog
11657         is closed, so we need to make sure that we aren't changing the
11658         dialog result when the OK (Open or Save) button has been clicked
11659         and we are closing the window ourselves.  Note we don't need to
11660         worry about the cache being written in this case, because it was
11661         already done in the previous FilOk call.
11662
11663 2007-01-30  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11664         
11665         * DateTimePicker.cs: Remove a warning.
11666         * ComboBox.cs: Remove a couple of warnings.
11667
11668 2007-01-29  Chris Toshok  <toshok@ximian.com>
11669
11670         * XplatUIX11.cs: don't crash, and remove the icon if the user has
11671         set one, if SetIcon is passed a null icon.
11672
11673 2007-01-29  Andreia Gaita  <avidigal@novell.com>
11674
11675         * TextBox.cs: Redraw when the password characters changes
11676         * TextControl.cs: Check if textbox has a password char and draw 
11677         a line of password chars instead of the text in the line. LineTag gets 
11678         an extra Draw() method which allows document.Draw to override the text 
11679         that will be drawn. Removes 1024 char limitation on length of passworded 
11680         lines.
11681
11682 2007-01-29  Jackson Harper  <jackson@ximian.com>
11683
11684         * TextBoxBase.cs: Deleting sections of text is undoable.  Deleting
11685         single chars is not.
11686
11687 2007-01-28  Jonathan Pobst  <monkey@jpobst.com>
11688
11689         * TextRenderer.cs: Fix cutting off the bottom of letters like "j" by
11690         one pixel.  Fix a StackOverflowException caused by an overload wrongly
11691         calling itself.
11692
11693 2007-01-26  Everaldo Canuto  <everaldo@simios.org>
11694
11695         * MenuAPI.cs: Fixed kerboard grab problem when "enter"key is pressed,
11696         also remove ProcessArrowKey and put the code inside ProcessKeys.
11697
11698 2007-01-26  Jonathan Pobst  <monkey@jpobst.com>
11699
11700         * PaddingConverter.cs: Added.
11701
11702 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11703         
11704         * ThemeWin32Classic.cs: Only draw the text of a StatusBar if
11705         ShowPanels is false (fixes #80600). Only draw up to 127 characters
11706         of text (fixes #80601). For panels clip the text to draw to the
11707         panel (fixes #80603).
11708
11709 2007-01-26  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11710
11711         * ComboBox.cs: Fixed implementation of ResetText.
11712
11713 2007-01-25  Jackson Harper  <jackson@ximian.com>
11714
11715         * TextControl.cs: For the last char of a line we need to use the
11716         line size, not that chars width, since it won't actually be
11717         computed since the right side of a char is based on the start of
11718         the left side of the next char, and the next char does not exist.
11719
11720 2007-01-25  Chris Toshok  <toshok@ximian.com>
11721
11722         * Splitter.cs: fix the new unit tests, and reindent some switch
11723         statements.
11724
11725 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11726
11727         * ComboBox.cs: Implemented 2.0 methods and events.
11728         * TextBoxBase.cs: Added OnTextUpdate, so that
11729         ComboBox.ComboTextBox can inform ComboBox of it.
11730
11731 2007-01-25  Jackson Harper  <jackson@ximian.com>
11732
11733         * TextControl.cs: Respect ShowSelection when deciding whether or
11734         not to display the caret, this allows comboboxes to have carets
11735         when the combotextbox does not have focus.
11736
11737 2007-01-25  Jackson Harper  <jackson@ximian.com>
11738
11739         * TextControl.cs: Add a Suspend/Resume for updating, basically the
11740         same as the Suspend/Resume for recalc, except this will do actual
11741         Invalidates.
11742         - New Undo manager, works much like the MS version.
11743         - Implemented Redo
11744         * TextBoxBase.cs: The Cut operation is undoable.
11745
11746 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11747         
11748         * TextBoxBase.cs: Don't antialias text. Makes it look way better
11749         on Windows (no difference on Linux).    
11750
11751 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11752
11753         * XplatUIWin32.cs: Set SWP_NOACTIVATE in RequestNCRecalc as well,
11754         we don't want to activate any windows. Fixes #79433.
11755
11756 2007-01-25  Jonathan Pobst  <monkey@jpobst.com>
11757
11758         - ButtonBase.cs: Fix capitalization of parameter: disposing.
11759         [Fixes bug #80609]
11760
11761 2007-01-25  Alexander Olk  <alex.olk@googlemail.com>
11762
11763         * FileDialog.cs:
11764         - Move to using System.ComponentModel.EventHandlerList
11765         - Replace Refresh with Invalidate
11766         - Clear the mime filecache on closing
11767         - Some other memory reducing work. After beeing closed FD now uses
11768           only about 300 KB for the fdo mime stuff plus the memory of the
11769           cached icons.
11770         * Mime.cs: Changed coding style and removed unnecessary commented
11771         code. Some more memory memory reducing work.
11772
11773 2007-01-25  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11774
11775         * ComboBox.cs: Implemented FlatStyle and DropDownHeight, and added
11776         a few other missing 2.0 properties.
11777         * Theme.cs: Added DrawFlatStyleComboBox.
11778         * ThemeWin32Classic.cs: Implemented DrawFlatStyleComboBox.
11779
11780 2007-01-24  Chris Toshok  <toshok@ximian.com>
11781
11782         * XplatUIX11.cs: fix the wake_waiting logic - we always clear the
11783         wake_waiting flag, not just when there's data to be read.  if we
11784         don't, then future wakeup's won't reach us and we'll be doomed to
11785         wait for the entire 1 second timeout forever (unless there are X
11786         events to be had).
11787
11788 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
11789
11790         * ComboBox.cs: FindStringExactMaxException doesn't throw AOORE on 2.0
11791         until you pass Items.Count, not Items.Count - 1 like 1.1.
11792
11793 2007-01-24  Gert Driesen  <drieseng@users.sourceforge.net>
11794
11795         * ColumnHeader.cs: Fixed ParamName in ArgumentOutOfRangeException.
11796
11797 2007-01-24  Jonathan Pobst  <monkey@jpobst.com>
11798
11799         * ToolStripContainer.cs: The recent Dock fix exposed that I was
11800         adding the panels in the wrong order.
11801
11802 2007-01-24  Jackson Harper  <jackson@ximian.com>
11803
11804         * TextBoxBase.cs: When we move the caret we also need to move the
11805         selection, this fixes some random crashing after doing select
11806         text, unselect, delete a char, paste.
11807
11808 2007-01-24  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11809
11810         * Form.cs: Update SizeGrip's location even if it's not visible (fixes #80592).
11811
11812 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
11813
11814         * Control.cs: In OnParentBackgroundImageChanged remove conditions to call
11815         OnBackgroundImageChanged, it mimics win32 behavior. Fixes #80553. 
11816         * ToolBar.cs: Force redraw in BackgroundImageChanged.
11817
11818 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
11819
11820         * ToolBar.cs:
11821         - Implement support for vertical toolbars. Fixes #80539;
11822         - Call LayoutToolBar when resize, it fix some other problems in layout.
11823         - Rename requested_height to requested_size, as we can have width on it
11824         when toolbar is vertical.
11825         - Create a private property "Vertical" that uses Dock to verify when 
11826         toolbar is vertical or not.
11827         - Set ControlStyles when change Dock property.
11828         - Refactory in LayoutToolBar to have better variables names and to support
11829         vertical toolbars.
11830         - Fixes default value for ButtonSize when button count is equal zero, size
11831         must be (39, 36) test case writed.
11832
11833 2007-01-23  Chris Toshok  <toshok@ximian.com>
11834
11835         * Control.cs: fix the checks so that they work correctly for mdi
11836         parents/children.
11837
11838 2007-01-23  Chris Toshok  <toshok@ximian.com>
11839
11840         * Control.cs: ControlCollection seems to have super-secret
11841         abstraction breaking knowledge of Mdi containers.  allow MdiClient
11842         to add toplevel controls.
11843
11844 2007-01-23  Chris Toshok  <toshok@ximian.com>
11845
11846         * Control.cs: throw an ArgumentException if a toplevel control is
11847         added to our control collection from ControlCollection.Add, as
11848         well as from ControlCollection.IList.Add.  This fixes the
11849         ControlSetTopLevelTest.TestTopLevelAdd unit test.
11850
11851         Also, in ControlCollection.IList.Add, don't through an
11852         ArgumentNullException, throw an ArgumentException, when value ==
11853         null.  This matches MS.
11854
11855 2007-01-23  Chris Toshok  <toshok@ximian.com>
11856
11857         * BindingSource.cs: initial, incomplete, implementation of
11858         BindingSource.
11859
11860 2007-01-23  Jackson Harper  <jackson@ximian.com>
11861
11862         * TextControl.cs:
11863         * TextBoxBase.cs: Checking in some pieces of the undo stuff so
11864         that I can fix a broken unit test (TextBoxTest::ClearUndo)
11865         
11866 2007-01-23  Everaldo Canuto  <everaldo@simios.org>
11867
11868         * ToolBar.cs: Add status fields to ToolBarButtonInfo.
11869
11870 2007-01-23  Andreia Gaita  <avidigal@novell.com>
11871
11872         * TreeNode.cs: Add new 2.0 ImageKey and SelectedImageKey properties.
11873         * TreeNodeCollection.cs: New Add() methods, ContainsKey and
11874         IndexOfKey() for 2.0
11875
11876 2007-01-23  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11877
11878         * XplatWin32.cs: In RequestNCRecalc call SetWindowPos with SWP_NOZORDER
11879         to prevent it from changing z-order.
11880         * MdiWindowManager.cs: Refactor part of SetWindowState to MdiClient, only
11881         leave UI updates in MdiWindowManager.
11882         * InternalWindowManager.cs: Check for 0 sized nc areas and make them
11883         1 sized (NC handling goes weird on Linux otherwise).
11884         * MdiClient.cs: Add missing ExStyle (WS_EX_CLIENTEDGE), so it's no longer
11885         necessary to handle WM_NCCALCSIZE anymore. This also made it possible to
11886         remove a few NCRequestRecalcs. Changed calculations in IconicBounds
11887         to use ClientSize of MdiClient instead of entire size. Refactored ActivateChild
11888         and SetWindowState(s) to allow for changing the size of an activated child
11889         before activating it (reduces a lot of flicker).
11890
11891 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
11892
11893         * Form.cs: Changing FormBorderStyle has different semantics based
11894         on whether the Form is visible or not.  If not visible, don't change
11895         the Size.  But InvalidateNC needs to be called to force the window
11896         to pick up the changes and redraw itself.  [Fixes bug #80574]
11897
11898 2007-01-22  Jonathan Pobst  <monkey@jpobst.com>
11899
11900         [Moma work]
11901         * ContainerControl.cs: ProcessCmdKey.
11902         * ErrorProvider.cs: new constructor.
11903         * Form.cs: fix AutoValidateEvent compiler warning.
11904         * Label.cs: fix OnAutoSizeChanged compiler warning.
11905         * MenuStrip.cs: fix CanOverflow compiler warning.
11906         * TabControl.cs: SelectTab, OnSelected methods, Selected event.
11907         * TextBox.cs: Dispose.
11908         * ToolStrip.cs: CanOverflow, re-enable double buffering.
11909         * ToolStripControlHost.cs: fix CausesValidation compiler warning.
11910         * ToolStripDropDown.cs: fix ContextStripMenu compiler warning.
11911         * ToolStripItem.cs: Overflow, RightToLeft properties.
11912
11913 2007-01-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11914
11915         * Form.cs: Move the layout of the main form to MdiWindowManager.
11916         * MdiWindowManager.cs: If WindowState changes from or to Maximized,
11917         do a layout of the main window to update MdiClient's client area to
11918         the right area. Fixes #80533. Remove the calculation of nc size, 
11919         it was just wrong and the correct one is the same as for 
11920         InternalWindowManager. 
11921
11922 2007-01-20  Jonathan Pobst  <monkey@jpobst.com>
11923
11924         * Control.cs: Setting Anchor or Dock needs to reset the other
11925         to its default.  [Fixes bug #80556]
11926
11927 2007-01-20  Chris Toshok  <toshok@ximian.com>
11928
11929         * CheckedListBox.cs: class status changes.
11930
11931         * ScrollableControl.cs: same.
11932
11933         * RichTextBox.cs: same.
11934
11935         * ContainerControl.cs: same.
11936
11937         * ListView.cs: same.
11938
11939         * NotifyIcon.cs: same.
11940
11941         * MenuStrip.cs: same.
11942
11943         * RadioButton.cs: same.
11944
11945         * CheckBox.cs: same.
11946
11947         * PrintPreviewDialog.cs: same.
11948
11949         * Form.cs: same.
11950
11951 2007-01-19  Jonathan Pobst  <monkey@jpobst.com>
11952
11953         * TreeNode.cs: Apply Alan's patch for Name property.
11954
11955 2007-01-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
11956         
11957         * Form.cs: Implemented SizeGripStyle.
11958         * SizeGrip.cs: Check for minimum and maximum size for the
11959         control being resized and only resize if size has actually
11960         changed.
11961
11962 2007-01-19  Chris Toshok  <toshok@ximian.com>
11963
11964         * DataGridColumnStyle.cs: stop setting _readonly in the
11965         PropertyDescriptor setter.  fixes a unit test failure.
11966
11967         also, rename ParentReadOnly to TableStyleReadOnly, and have it
11968         just consult our table style (if we have one).  We don't need to
11969         consult the datagrid readonly attribute because that's passed in
11970         as the _ro arg to Edit.  this simplifies things a little.
11971         
11972         * DataGrid.cs: use CurrentColumn instead of
11973         current_cell.ColumnNumber just to simplify some of the code.
11974
11975         switch the order of some things in the CurrentCell setter to keep
11976         the previous cell from getting a textbox again -
11977         EnsureCellVisibility causes scrolling to happen, which calls Edit.
11978         So we need to set the new cell before calling it.
11979         
11980         call Edit in OnEnter, as does Microsoft.
11981         
11982         also, make sure the current table style isn't the one we create
11983         initially when checking to see if it's different than the one
11984         we're setting it to in BindColumns (this fixes #80421).
11985
11986         * GridTableStylesCollection.cs: table styles can have "" for a
11987         mapping name.  part of the fix for #80421.
11988
11989         * DataGridTextBoxColumn.cs: simplify the readonly calculation in
11990         Edit significantly.
11991
11992 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
11993
11994         * TextRenderer.cs: Rewrote to be complete-er, more MS-matching-er,
11995         and less GDI object leaky-er.
11996
11997 2007-01-18  Andreia Gaita  <avidigal@novell.com>
11998
11999         * LinkLabel.cs: Add opaque control style
12000
12001 2007-01-18  Jackson Harper  <jackson@ximian.com>
12002
12003         * TextControl.cs: Calculate width properly.
12004         - Don't store the tag's X offset, this can be figured out very
12005         easily.
12006         - When getting the caret tag make sure to get the last empty tag.
12007
12008 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
12009
12010         * Form.cs: Recalculate our size after setting a new FormBorderStyle.
12011         [Fixes bug #79959]
12012
12013         * Control.cs: Color.Empty shouldn't count for previous transparent
12014         redraw changes.
12015
12016 2007-01-18  Jackson Harper  <jackson@ximian.com>
12017
12018         * TextBox.cs:
12019         * RichTextBox.cs:
12020         * TextControl.cs: Starting to merge in some pieces of my older
12021         undo work.  Basically just some slight cleanup of the undo API.
12022
12023 2007-01-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12024
12025         * TrackBar.cs: Fix signature of RightToLeftLayout.
12026         * StatusBar.cs: Implemented missing 2.0 methods and attributes.
12027         * StatusBarPanel.cs: Implemented missing 2.0 methods and attributes.
12028         * Application.cs: Implemented UseWaitCursor.
12029
12030 2007-01-18  Jackson Harper  <jackson@ximian.com>
12031
12032         * TextControl.cs: We can't skip tags if any part of the tag is
12033         visible.
12034
12035 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
12036
12037         * ContainerControl.cs: Override OnLayout.
12038
12039 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
12040
12041         * NotifyIcon.cs: Add ContextMenuStrip and Tag properties.
12042
12043         * ContextMenuStrip.cs: Make sure context menu is shown on top of 
12044         everything else.
12045
12046 2007-01-18  Chris Toshok  <toshok@ximian.com>
12047
12048         * ContainerControl.cs: remove the partial handling of LBUTTONDOWN
12049         (leftover from the container_selected days, I'd wager).  fixes bug
12050         #80546.
12051
12052 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
12053
12054         * Control.cs: Apply patch from George to fix the new testcase on
12055         bug #80451.  We can't just check for Color.Transparent, we need 
12056         to check if the back color's alpha channel is < 255.
12057
12058 2007-01-18  Jonathan Pobst  <monkey@jpobst.com>
12059
12060         * Form.cs: Move setting show_icon = true to before the constructor
12061         so that the base constructor has that information when it calculates
12062         the form's size.  Was causing forms to be (6, 6) bigger than they
12063         were supposed to be.  Thanks for catching this Rolf!
12064
12065 2007-01-18  Jackson Harper  <jackson@ximian.com>
12066
12067         * TextControl.cs: When replacing a selection we need to invalidate
12068         from the initial selection start, because selection start is moved
12069         to the end of the replacement.
12070
12071 2007-01-18  Andreia Gaita  <avidigal@novell.com>
12072
12073         * LinkLabel.cs: Missing ControlStyles. Fixes #80482
12074
12075 2007-01-18  Chris Toshok  <toshok@ximian.com>
12076
12077         * DataGridTextBoxColumn.cs: fix most of the NotWorking unit tests
12078         I just added.
12079
12080 2007-01-17  Everaldo Canuto  <everaldo@simios.org>
12081
12082         * ToolBar.cs: Add layout methods to ToolBarButtonInfo class, every 
12083         layout methods and properties from ToolBarButton must be available
12084         into ToolBarButtonInfo.
12085
12086 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
12087
12088         * Control.cs: If the control has a transparent background, we
12089         need to refresh it when it moves and when it's parent's background
12090         image changes.  [Fixes bug #80451]
12091
12092 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
12093
12094         * XplatUIWin32.cs: Don't use 2.0 methods in 1.1 code!  Doh!
12095
12096 2007-01-17  Jonathan Pobst  <monkey@jpobst.com>
12097
12098         * XplatUIWin32.cs: Implement proper double buffering for Windows.
12099         [Fixes bug #80447, and probably speeds up things as well]
12100
12101 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12102
12103         * XplatUIX11.cs: Caption height for MDI children is 19, not 26.
12104         * XplatUIWin32.cs: We need to recalculate NC size after changing 
12105         window style to toolwindow (otherwise the client rectangle will be
12106         3 pixels to small for some reason).
12107         * MdiWindowManager.cs: Revert NC size calculations to match how
12108         they are calculated only based on window styles (to match
12109         Win32AdjustWindowRectEx, since otherwise when setting size or 
12110         location, Control will call Win32AdjustWindowRectEx to update client 
12111         size, which would provoke a paint, then we'd get a NCCALCSIZE and 
12112         calculate a different value of client size causing another paint 
12113         (and flickering))
12114         * InternalWindowManager.cs: When moving or resizing a window only
12115         update size or location if they actually changed.
12116         * ThemeWin32Classic.cs: ManagedWindowsBorderWidth is now 4 instead of 3
12117         (seems to match Windows behaviour better). Cleaned up 
12118         ManagedWindowDecorations to draw what's needed and nothing else
12119         (was drawing borders and lines where they shouldn't be)
12120         * Hwnd.cs: GetWindowRectangle now knows about MDI border sizes
12121         (style = 0xFFFF) and takes into account caption height when 
12122         calculating window rectangle.   
12123
12124 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
12125
12126         * ToolBar.cs: Internal ToolBarButtonInfo class added, Because same button 
12127         can be added to toolbar multiple times, we need to maintain a list of 
12128         button information for each positions.
12129
12130 2007-01-16  Everaldo Canuto  <everaldo@simios.org>
12131
12132         * ToolBar.cs: Some small stetic changes.
12133
12134 2007-01-16  Jackson Harper  <jackson@ximian.com>
12135
12136         * TextBoxBase.cs: Use the new SuspendRecalc/ResumeRecalc methods
12137         that allow us to have nested recalc = false blocks.
12138         - Add paste support for images in the RichTextBox
12139         * RichTextBox.cs: flush the text after the color is changed, so
12140         the change takes effect.
12141         - Use SuspendRecalc
12142         - Some extra debugging info
12143         * TextControl.cs: Tags no longer track their length, it is just
12144         computed from the next tags length, this makes things a little
12145         simpler and reduces places that we have to track length changes.
12146         - Refactored the linetag class a little so we could make it
12147         a base class for different kinds of tags
12148         - Created a image tag, a tag that can have a single image inserted
12149         into it
12150         - Replace the norecalc flag with a Suspend/Resume Recalc pair, so
12151         that we can call suspend multiple times.
12152         - Add some debugging methods
12153
12154 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12155
12156         * MdiClient.cs: Add ActivatePreviousChild for 
12157         mdi child window navigation.
12158         * Form.cs: Use MdiClient.ActivateNextChild/
12159         ActivatePreviousChild instead of Form.SelectNextControl
12160         to select the next/previous child since 
12161         SelectNextControl doesn't do it in the same order
12162         as mdi children should do it.
12163
12164 2007-01-16  Chris Toshok  <toshok@ximian.com>
12165
12166         * Control.cs: remove container_selected field.
12167
12168 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12169
12170         * MdiClient.cs: Update main form's ActiveChild when
12171         updating keyboard focus for the mdi child.
12172
12173 2007-01-16  Jonathan Pobst  <jpobst@novell.com>
12174
12175         * Control.cs: PreferredSize fix.
12176
12177         * Form.cs: Add several 2.0 events, properties, and methods.
12178
12179 2007-01-16  Gert Driesen  <drieseng@users.sourceforge.net>
12180
12181         * Form.cs: Provide meaningful message when MdiParent is assigned a
12182         Form that is not an MdiContainer.
12183
12184 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12185
12186         * MdiClient.cs: Update main form's ActiveChild when
12187         activating a mdi child.
12188
12189 2007-01-16  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12190
12191         * MdiWindowManager.cs: Fix NRE when merging menus and main form
12192         doesn't have a menu.
12193
12194         * Form.cs: Request NCRecalc after creating a mdi child window.
12195         Implement mdi key handling (Ctrl+F4, Ctrl+Shift+F4, Ctrl+Tab, 
12196         Ctrl+Shift+Tab, Ctrl+F6 and Ctrl+Shift+F6).
12197         
12198         * MdiClient.cs: Add new method SendFocusToActiveChild that either
12199         sends keyboard focus to the active child, or to the MdiClient
12200         if there are no child forms.
12201         
12202 2007-01-15  Chris Toshok  <toshok@ximian.com>
12203
12204         * ListView.cs: drop the *Internal overrides, just do our work in
12205         ItemControl's WndProc instead.
12206
12207         * UpDownBase.cs: a few large changes.  Fix up the Selectable state
12208         of the various controls, and forward the events properly (in the
12209         same manner as MS) from the textbox to the UpDown.  Also the
12210         ActiveControl of the UpDownBase gets set properly now.  Finally,
12211         we don't call UpdateEditText from the ctor.  Fixes bug #79957.
12212
12213         * NumericUpDown.cs: set Text in the ctor.
12214
12215         * DomainUpDown.cs: call UpdateEditText in the ctor.
12216         
12217         * TextBox.cs: on ms.net, WM_LBUTTONDOWN sets focus on the textbox,
12218         so even a Selectable = false textbox can be focused if you click
12219         in it.  Go figure.
12220
12221         * Control.cs: remove On{Got,Lost}FocusInternal.  Subclasses can
12222         just add their handling in their respective WndProc's.  Also add
12223         an explicit FocusInternal method that doesn't consult CanFocus
12224         before calling Select(this).
12225
12226         * TextBoxBase.cs: deal with removal of the FocusInternal calls -
12227         do our work in WndProc instead.
12228
12229         * TabControl.cs: same.
12230
12231         * ComboBox.cs: same.
12232
12233 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
12234
12235         * Menu.cs: implement MergeItems and Replace for MenuMerge method.
12236         Fixes #80006.
12237
12238 2007-01-15 Carlos Alberto Cortez <calberto.cortez@gmail.com>
12239
12240         * ListViewItem.cs:
12241         * ThemeWin32Classic.cs: Don't draw the item text outside
12242         item bounds in Details view, as well as use trimming.
12243         Fixes bug #80376.
12244
12245 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
12246
12247         * Form.cs: Implement Form.ShowIcon.
12248         
12249         * XplatUIWin32.cs: Allow the SetIcon win32 call to set the icon to
12250         null, which when combined with the DlgModalFrame window style removes
12251         the icon from the title bar.
12252
12253 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
12254
12255         * Control.cs: Call OnMouseClick after OnClick. (2.0)
12256
12257 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
12258
12259         * MdiWindowManager.cs: In CreateMaximizedMenu fix a position of icon
12260         menu when mdi child windows theres a menu, uses insert to get icon
12261         at first position. Partially fix #80006.
12262
12263 2007-01-15  Jonathan Pobst  <jpobst@novell.com>
12264
12265         * Clipboard.cs: Implement 2.0 methods.
12266
12267 2007-01-15  Everaldo Canuto  <everaldo@simios.org>
12268
12269         * Menu.cs: Implement Insert method of MenuItemCollection class
12270         to fix MenuMerge.
12271
12272 2007-01-14  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12273
12274         * ListView.cs: Implement 2.0 FindItemWithText method.
12275
12276 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
12277
12278         * Form.cs: When process WM_NCCALCSIZE message use ClienSize.Width
12279         to calculate menu bar size. Fixes #80290.
12280
12281 2007-01-11  Everaldo Canuto  <everaldo@simios.org>
12282
12283         * ThemeWin32Classic.cs: Fix position of menuitem check mark.
12284
12285 2007-01-11  Chris Toshok  <toshok@ximian.com>
12286
12287         * XplatUIX11.cs: don't send duplicate WM_ACTIVATE messages to the
12288         initial form.
12289
12290 2007-01-11  Chris Toshok  <toshok@ximian.com>
12291
12292         * LinkLabel.cs: make sure to call base.Select in our Select method
12293         if it turns out we're going to be selected (i.e. if we have a link
12294         that is going to receive focus).  That way our container's
12295         ActiveControl is updated properly.
12296
12297 2007-01-11  Chris Toshok  <toshok@ximian.com>
12298
12299         * LinkLabel.cs: turns out that LinkLabels are only Selectable if
12300         they have 1 or more links.  this fixes the crash gert reported.
12301
12302 2007-01-11  Andreia Gaita  <avidigal@novell.com>
12303
12304         * ContainerControl.cs: Remove ContainerSelected flag, not needed
12305         anymore.
12306
12307         * Control.cs (Controls.Add): Check if control to be added to the collection
12308         is a top level control, and throw an ArgumentException if it is.
12309         Remove ContainerSelectedFlag, not needed anymore.
12310
12311         * XplaUIWin32.cs (SetTopMost): Add flag SWP_NOACTIVATE so that setting the
12312         top most control doesn't activate the form. This fixes a problem in the
12313         MessageBox, where the default button wouldn't get focus because the form
12314         was activated before being Loaded - when the Owner is set, SetTopMost is
12315         called, and it would activate it.
12316
12317 2007-01-11  Jonathan Pobst  <jpobst@novell.com>
12318
12319         * Button.cs: When clicked and setting the parent form's DialogResult,
12320         use FindForm instead of Parent, since parent could be a container
12321         control and not the Form.  Fixes bug #80495.
12322
12323 2007-01-10  Chris Toshok  <toshok@ximian.com>
12324
12325         * Form.cs: move the call to SendControlFocus into the same
12326         is_loaded check.
12327
12328 2007-01-10  Chris Toshok  <toshok@ximian.com>
12329
12330         * UpDownBase.cs (.ctor): remove the ActiveControl assignment here.
12331         It breaks in the face of the new ActiveControl stuff, and should
12332         be unnecessary.
12333
12334         * Form.cs (WndProc): in the WM_ACTIVATE case, we need to set the
12335         activecontrol's focus if it's not already set, after we set
12336         ActiveControl, but before we call OnActivated.  Re-fixes #79667
12337         after the previous focus/active control fixes regressed it.
12338
12339         * Control.cs: reindent some code.
12340         
12341 2007-01-10  Chris Toshok  <toshok@ximian.com>
12342
12343         * Splitter.cs: clearing some outstanding changes from my tree.
12344         Replace all accesses (not writes) to the internal dock_style field
12345         with the Dock property.
12346
12347 2007-01-10  Chris Toshok  <toshok@ximian.com>
12348
12349         * Control.cs: make FireEnter, FireLeave, FireValidating, and
12350         FireValidated virtual.
12351
12352         * Form.cs: override and don't chain up calls to FireEnter and
12353         FireLeave.
12354
12355 2007-01-10  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12356
12357         * ListView.cs: Add more text padding space when using
12358         auto resize for columns (the previous value didn't work fine).
12359
12360         * ThemeWin32Classic.cs: Update text position inside columns,
12361         to match the appeareance of .Net.
12362
12363         * ColumnHeader.cs: When using auto resize, only the Width should
12364         depend on the sub items, not the Height. Also, set width after
12365         auto resizing (the value of Width should never remain as -1 or -2).
12366
12367 2007-01-10  Chris Toshok  <toshok@ximian.com>
12368
12369         * Application.cs: fix compilation errors when debug is enabled.
12370
12371 2007-01-10  Chris Toshok  <toshok@ximian.com>
12372
12373         * ContainerControl.cs (set_ActiveControl): rework this a bit (and
12374         add some nice ascii art pictures and explanation of the process).
12375         (GetMostDeeplyNestedActiveControl): new utility function we need
12376         because our ActiveControl can refer to a child container with its
12377         own ActiveControl.
12378
12379         * Form.cs (OnActivated): remove the call to SelectActiveControl
12380         from here, since you can override this method and not chain up,
12381         and winforms still sets the active control.
12382         (OnCreateControl): also remove the unnecessary SelectActiveControl
12383         call from here.
12384         (WndProc): it's actually called from the WM_ACTIVATE block, just
12385         before calling OnActivated.
12386
12387         * Control.cs (Select (Control)): move the call to XplatUI.SetFocus
12388         inside the else.  the ActiveControl setter will end up setting
12389         focus on @control.  This keeps us from setting it again (and
12390         generating an extra LostFocus/GotFocus pair).
12391         (Select (bool, bool)): reindent.
12392
12393 2007-01-10  Jonathan Pobst  <jpobst@novell.com>
12394
12395         * FlowLayoutPanel.cs, MenuStrip.cs, SplitContainer.cs, SplitterPanel.cs,
12396         StatusStrip.cs, TableLayoutPanel.cs, TableLayoutStyleCollection.cs,
12397         ToolStrip.cs, ToolStripComboBox.cs, ToolStripContainer.cs,
12398         ToolStripContentPanel.cs, ToolStripControlHost.cs, ToolStripDropDown.cs,
12399         ToolStripDropDownButton.cs, ToolStripDropDownItem.cs, ToolStripDropDownMenu.cs,
12400         ToolStripItem.cs, ToolStripMenuItem.cs, ToolStripPanel.cs, ToolStripPanelRow.cs,
12401         ToolStripSeparator.cs, ToolStripSplitButton.cs, ToolStripStatusLabel.cs
12402         ToolStripTextBox.cs: Another wave of corcompare work.
12403
12404 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12405
12406         * ColumnHeader.cs: Implement 2.0 AutoResize method using
12407         the Width property.
12408
12409         * ListView.cs: Implement 2.0 AutoResizeColumn and AutoResizeColumns
12410         methods by callling Column.AutoResize method on columns.
12411
12412 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
12413
12414         * Control.cs: Provide proper implementations of PreferredSize
12415         and GetPreferredSize (2.0).
12416
12417 2007-01-09  Jonathan Pobst  <monkey@jpobst.com>
12418
12419         * Form.cs: Remove one character (!) to make my previous OnClosing
12420         stuff work for modal windows like MessageBox.
12421
12422 2007-01-09  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12423
12424         * ListView.cs:
12425         * ThemeWin32Classic.cs: Use ListView.GetReorderedColumn instead of
12426         ListView.Columns to get the last displayed column. Fixes #80452.
12427
12428 2007-01-09  Everaldo Canuto  <everaldo@simios.org>
12429
12430         * Label.cs, LinkLabel.cs: Source code identation fixes.
12431
12432 2007-01-08  Everaldo Canuto  <everaldo@simios.org>
12433
12434         * ToolBarButton.cs: Remove InvalidateBorder and use Invalidate instead,
12435         we dont need to invalidate only borders because when we invalidate four
12436         border lines the invalidate's generates a complete redraw of button, 
12437         because it now invalidate a complete rect some other redraws operations
12438         are fixed. Fixes #80196.
12439         
12440         * Theme.cs, ThemeNice.cs, ThemeClearLooks.cs, ThemeWin32Classic.cs:
12441         Remove ToolBarInvalidateEntireButton as it is not used.
12442
12443 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
12444         
12445         * Form.cs: Make sure that both OnClosing and OnFormClosing are
12446         called for 2.0 profile.
12447         * CloseReason.cs: Make class internal for 1.1.
12448
12449 2007-01-08  Jonathan Pobst  <monkey@jpobst.com>
12450
12451         * ToolStripManager.cs: Implement FindToolStrip functionality.
12452         * ToolStrip.cs: Register and unregister with ToolStripManager.
12453
12454 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
12455
12456         * Control.cs: This was messy.  2.0 moves much of ControlCollection
12457         to ArrangedElementCollection.  Implemented this with as few #if's as 
12458         possible (which is still too many).
12459
12460 2007-01-07  Jonathan Pobst  <monkey@jpobst.com>
12461
12462         * Control.cs: Implement SizeFromClientSize() [2.0].
12463
12464 2007-01-07  Everaldo Canuto  <everaldo@simios.org>
12465
12466         * Hwnd.cs: On GetClientRectangle add a new parameter border_static,
12467         use Theme.BorderSize to calculate area instead of static value 1, 
12468         by the way use new BorderStaticSize instead     Border3DSize when 
12469         border_static is true. Fixes #79537.
12470         
12471         * XplatUIOSX.cs: Fix call to GetClientRectangle. 
12472         
12473         * ThemeWin32Classic.cs: On CPDrawBorder3D dont draw inner border when
12474         it is not needed.
12475
12476 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
12477
12478         * Hwnd.cs: Gives more code legibility to GetWindowRectangle.
12479
12480 2007-01-06  Everaldo Canuto  <everaldo@simios.org>
12481
12482         * Label.cs: Override CreateParams to use WS_EX_STATICEDGE instead of
12483         WS_EX_CLIENTEDGE in ExStyles when BorderStyle is Fixed3D, it is
12484         
12485         * Hwnd.cs: 
12486         - border_static field added, it will used to define when a control 
12487         theres 3D border but it must be static (thin).
12488         - In GetWindowRectangle use Theme.BorderSize to calculate area 
12489         instead of static value 1, by the way use new BorderStaticSize instead
12490         Border3DSize when border_static is true.
12491
12492         * XplatUIX11.cs, XplatUIOSX.cs: 
12493         - When WS_EX_STATICEDGE ExStyle is set define border_static as true.
12494         
12495         * Theme.cs: BorderStaticSize field added.
12496
12497 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
12498
12499         * XplatUIX11.cs: Removed unused hwnd var in SetBorderStyle.
12500
12501 2007-01-05  Everaldo Canuto  <everaldo@simios.org>
12502
12503         * Control.cs: Under InternalBorderStyle call RecreateHangle to 
12504         mimic same behavior than win32 that set border only in CreateParams,
12505         it fix problems under CreateParams overrides. Fix #79442 and partial
12506         fix #79537.
12507         
12508         * XplatUIX11.cs: Dont set hwnd.border_style in SetBorderStyle instead
12509         of thi control you must call recreate handle. 
12510         
12511         * XplatUIWin32.cs: Remove all SetBorderStyle code, for win32 we dont
12512         need to do anything as RecreateHangle will take care about borders.
12513
12514 2007-01-05  Mike Kestner  <mkestner@novell.com>
12515
12516         * ListView.cs: hack to eliminate Lost/Got focus notifications on
12517         cycles between the ItemControl and parent.  Fixes #80388.
12518
12519 2007-01-05  Gert Driesen  <drieseng@users.sourceforge.net>
12520
12521         * Control.cs: Lazy init layout engine. Do not directly use 
12522         layout_engine since LayoutEngine may be overridden (on 2.0 profile).
12523
12524 2007-01-05  Chris Toshok  <toshok@ximian.com>
12525
12526         * DataGrid.cs: don't forceably rebind columns in SetDataSource
12527         unless our list manager has changed (i.e. unless we have reason to
12528         believe our columns have changed).  Fixes #80422.
12529         
12530         also, disable the call do BindColumns in
12531         OnListManagerMetaDataChanged.  this breaks this test in 2.0 (in
12532         1.1 the event isn't raised in response to a column addition on a
12533         table.)
12534
12535 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
12536
12537         * Control.cs: Move LayoutEngine.Layout to the OnLayout method, so
12538         that inheritors can not call it if they choose.  Fixes bug #80456.
12539
12540 2007-01-05  Andreia Gaita  <avidigal@novell.com>
12541
12542         * XplatUIWin32.cs: Initialize MSG.refobject at 0 so it 
12543         doesn't blow up with a null exception on marshalling.
12544         
12545 2007-01-05  Jonathan Pobst  <monkey@jpobst.com>
12546
12547         * Control.cs: Implement several 2.0 protected properties and methods.
12548         Ensure that all necessary events are being called when properties
12549         are set.
12550
12551 2007-01-05  Mike Kestner  <mkestner@novell.com>
12552
12553         * ListView.cs: implement PgUp/PgDn for Details view.  Also
12554         fixes First/LastVisibleIndex to use the item_control.ClientRect 
12555         instead of the parent control.  Fixes #80378.
12556
12557 2006-01-05  Atsushi Enomoto  <atsushi@ximian.com>
12558
12559         * PageSetupDialog.cs : cosmetic refactoring; use RegionInfo to
12560           determine whether to use yard-pound or not (bug #78399).
12561
12562 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
12563
12564         * FileDialog.cs: Sebastien fixed the libgdiplus png alpha
12565         problems. So it is time to bring back the old popupbutton colors.
12566
12567 2006-01-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12568
12569         * ColumnHeader.cs:
12570         * ListView.cs: Implement 2.0 ColumnHeader.DisplayIndex
12571         property by using the internal information of the
12572         columns order in ListView.
12573
12574 2007-01-04  Jonathan Pobst  <monkey@jpobst.com>
12575
12576         * CommonDialog.cs, Cursor.cs, ErrorProvider.cs, HelpProvider.cs:
12577         Add 2.0 Tag properties.
12578
12579         * LinkArea.cs: Add 2.0 ToString method.
12580
12581 2007-01-03  Chris Toshok  <toshok@ximian.com>
12582
12583         * DataGrid.cs: the Alt+0 handling was wrong, it should have been
12584         Ctrl+0.  Fixes bug #80367.  Also, don't eat the Delete keypress
12585         when we're editing, which fixes #80047.
12586
12587 2007-01-03  Chris Toshok  <toshok@ximian.com>
12588
12589         * Form.cs: apply patch contributed by Dominik Seichter.  fixes
12590         #80404.
12591
12592 2007-01-03  Jonathan Pobst  <monkey@jpobst.com>
12593
12594         * MenuStrip.cs, ToolStripMenuItem.cs: Add MdiWindowListItem
12595         property and implementation.
12596
12597         * Form.cs, MdiClient.cs, MdiWindowManager.cs: Add needed hooks
12598         for MdiWindowListItem property.
12599
12600         * ToolStripDropDown.cs: Don't consider hidden menu items while
12601         laying out the menu.
12602
12603 2007-01-03  Andreia Gaita  <avidigal@novell.com>
12604
12605         * SendKeys.cs: window handle is not needed in win32, so just
12606         get the active window for X after parsing keys and don't use
12607         it when building the message; it is passed by parameter to the 
12608         Xplat method and used there to build the message instead. Also,
12609         wait for events to be processed on SendWait, as opposed to Send,
12610         which doesn't wait :) Playing with threads and Send() completely 
12611         hangs on ms.net, only SendWait() works.
12612         
12613         XplatUIX11.cs
12614         X11Display.cs: Check for valid window handle.
12615
12616 2007-01-03  Jackson Harper  <jackson@ximian.com>
12617
12618         * TextControl.cs: Need to prevent wrap calculations when replacing
12619         text (this was there before i removed it accidently).
12620         - Don't update the cursor during the positioning, just set it to
12621         selection_start at the end of the operaion.
12622
12623 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12624
12625         * Control.cs:
12626         * NotifyIcon.cs: corcompare work, no more X's in 1.1 class status.
12627         
12628 2007-01-03  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12629
12630         * MonthCalendar.cs: Added Click and DoubleClick events again,
12631         but this time they only hide Control's Click and DoubleClick.
12632         
12633 2007-01-03  Gert Driesen  <drieseng@users.sourceforge.net>
12634
12635         * Theme.cs: Re-enabled DefaultFont change. Use const to refer to
12636         System.Drawing assembly. Spaces to tabs. Removed extra tabs.
12637
12638 2007-01-02  Jackson Harper  <jackson@ximian.com>
12639
12640         * TextBoxBase.cs: We move the caret with the split now, so we
12641         don't need to explicitly move the caret after splitting.  This
12642         fixes the caret bumping down an extra line on Enter.
12643
12644 2007-01-02  Miguel de Icaza  <miguel@novell.com>
12645
12646         * ContainerControl.cs: Add AutoValidateChanged event (for PDN
12647         2.72). 
12648
12649         * ScrollableControl.cs: Add Scroll event.
12650
12651 2007-01-02  Mike Kestner  <mkestner@novell.com>
12652
12653         * ListView.cs: one more try with help from georgegiolfan@yahoo.com 
12654         to fix all hdr height padding codepaths.  Fixes #80207.
12655
12656 2007-01-02  Chris Toshok  <toshok@ximian.com>
12657
12658         * StatusBar.cs (.ctor): remove the Anchor setting, as it's just
12659         setting it to the Control defaults anyway, and it being after the
12660         Dock set was screwing up layout.
12661         (set_Dock): don't short circuit out of setting base.Dock.  Also,
12662         no need to call UpdateStatusBar here, as it'll be re-layed out if
12663         it needs to be.
12664
12665 2007-01-02  Mike Kestner  <mkestner@novell.com>
12666
12667         * ListView.cs: patch from georgegiolfan@yahoo.com to add padding
12668         to header height for width == -1. Fixes the rest of #80207.
12669
12670 2007-01-02  Mike Kestner  <mkestner@novell.com>
12671
12672         * ListView.cs: rework the mouse event forwarding everaldo added
12673         to translate the coordinates to the parent control not
12674         raise the parent events until after we've done our work. Hover
12675         needs more work, in the case where HoverSelection is on, because
12676         the item control receives more than one MouseHover per Enter
12677         event, so we need to ensure only the "first" hover gets forwarded.
12678         Opening a minor bug for that.
12679
12680 2007-01-02  Gert Driesen  <drieseng@users.sourceforge.net>
12681
12682         * CheckedListBox.cs: Fixed SelectionMode to match MS.
12683         * ListControl.cs: Implemented AllowSelection property. Removed extra
12684         tabs.
12685         * ListBox.cs: Implemented AllowSelection property.
12686
12687 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
12688
12689         * MenuItem.cs: In MdiWindowClickHandler uses sender instead of
12690         SelectedItem, it prevent for errors when you must disable item
12691         before perform click. Fixes #80409.
12692
12693 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
12694
12695         * MenuAPI.cs: Prevent second level and beyond submenus to close
12696         until first level when move out side of popup.
12697         
12698 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
12699
12700         * MenuAPI.cs:
12701         - Down submenu positin in three pixels.
12702         - Closes sub menu when mouse leaves from menu. Fixes #80402.
12703
12704 2007-01-02  Everaldo Canuto  <everaldo@simios.org>
12705
12706         * ThemeWin32Classic.cs:
12707         - Fix popup menu size adding one pixel on the top.
12708         - Down menu item border from two to one to mimic Win32.
12709         - Some source identation fixes. 
12710
12711 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
12712
12713         * ThemeWin32Classic.cs: Use float numbers to calculate size and
12714         position of menu arrows, it fix wrong arrow size.
12715
12716 2007-01-01  Everaldo Canuto  <everaldo@simios.org>
12717
12718         * ThemeWin32Classic.cs: Uses CPDrawBorder3D to draw menu borders
12719         instead of line, it simplify draw operation and fix it using 3D
12720         borders to mimic Win32.
12721
12722 2007-01-01  Jonathan Pobst  <monkey@jpobst.com>
12723
12724         * StatusStrip.cs: Add implementation of the sizing grip.
12725
12726         * ToolStripRenderer.cs, ToolStripProfessionalRenderer.cs: Add
12727         StatusStrip rendering.
12728
12729 2006-12-31  Chris Toshok  <toshok@ximian.com>
12730
12731         * ToolBar.cs: don't assign to dock_style in the .ctor.  it doesn't
12732         override the layout style (anchor/dock) of the control.  assign to
12733         Dock instead.  Fixes bug #80416.
12734
12735         * ToolStrip.cs: same.
12736
12737 2006-12-31  Andreia Gaita  <avidigal@novell.com>
12738
12739         * ContainerControl.cs: Use ContainerSelected flag to check if 
12740         a Container is directly selected, or if Select is called on a 
12741         non-container. If a container is directly selected, focus events 
12742         should not be raised.
12743         Apply #80411 patch to throw exception on set_ActiveControl if 
12744         control is the same as the current one.
12745         
12746         * Control.cs: Use ContainerSelected flag (see above).
12747         Add invalidation check to raise event but not invalidate if 
12748         dimensions are 0.       
12749         Apply #80411 patch.
12750         
12751
12752 2006-12-31  Everaldo Canuto  <everaldo@simios.org>
12753
12754         * MenuAPI.cs: After click, dont close popup menu when menu is
12755         ContextMenu. Fixes #80399.
12756
12757 2006-12-30  Chris Toshok  <toshok@ximian.com>
12758
12759         * ContainerControl.cs: make sure we throw the exception if the
12760         container control doesn't contain the control we're setting
12761         ActiveControl to.
12762
12763 2006-12-30  Chris Toshok  <toshok@ximian.com>
12764
12765         * Control.cs (SetTopLevel): fix the exception raised by
12766         SetTopLevel for child controls.
12767         (set_Anchor): call UpdateDistances when setting the anchor type.
12768         This fixes bug #80336.
12769
12770 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
12771
12772         * Theme.cs: For now, revert back to 8pt font.
12773
12774 2006-12-29  Everaldo Canuto  <everaldo@simios.org>
12775
12776         * MenuAPI.cs: Set popup as active when open a ContextMenu. 
12777         Fixes #80395.
12778
12779 2006-12-29  Chris Toshok  <toshok@ximian.com>
12780
12781         * Control.cs: reorder the code in OnResize to give the same event
12782         ordering as MS.
12783
12784 2006-12-29  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12785
12786         * MdiClient.cs: Implemented MdiLayout for ArrangeIcons,
12787         TileHorizontally and TileVertically.
12788         
12789 2006-12-29  Alexander Olk  <alex.olk@googlemail.com>
12790
12791         * ColorDialog.cs, FileDialog.cs, FolderBrowserDialog.cs,
12792         FontDialog.cs, Mime.cs, MimeIcon.cs, OpenFileDialog.cs,
12793         SaveFileDialog.cs, ThemeClearlooks.cs, ThemeNics.cs:
12794         Corrected copyright and email adress.
12795
12796 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
12797
12798         * TreeNode.cs: On 2.0 profile, throw InvalidOperationException instead
12799         of Exception in FullPath property if no TreeView is associated with
12800         the TreeNode.
12801
12802 2006-12-29  Gert Driesen  <drieseng@users.sourceforge.net>
12803
12804         * Theme.cs: Marked default_font as private, and initialize it in ctor
12805         with MS Sans Sarif 8.25 on 1.0 profile, and SystemFonts.DefaultFont
12806         on 2.0 profile.
12807         * ThemeGtk.cs: Removed default_font intialization.
12808         * ThemeWin32Classic.cs: Removed default_font initialization.
12809
12810 2006-12-28  Chris Toshok  <toshok@ximian.com>
12811
12812         * Control.cs: fix a couple of place where we were creating handles
12813         more aggressively than we should be.  Fixes ControlRefresh unit
12814         tests.
12815
12816 2006-12-28  Chris Toshok  <toshok@ximian.com>
12817
12818         * Control.cs: contrary to what the comment said, Control.Dock does
12819         not supercede Control.Anchor - the last one you assign to decides
12820         the layout behavior.  so we need to keep track of which was the
12821         last set.  Also, fix some of the affected property arguments in
12822         PerformLayout calls, and remove an redundant parent.PerformLayout
12823         call in OnResized.
12824
12825         Add a VisibleInternal property, which returns is_visible.  We
12826         can/should get rid of all the usage of this field elsewhere.
12827
12828 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12829         
12830         * Control.cs: DoubleBuffered property reflects the OptimizedDoubleBuffer
12831         control style, not DoubleBuffer. Added UseDoubleBuffering property
12832         that indicates whether doublebuffering is enabled and supported.
12833         (comment from and code based on Gert Driesen's patch in #80324).
12834         Fixes #80324.
12835
12836 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12837         
12838         * Control.cs: Fixed a NRE.
12839
12840 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12841
12842         * TrackBar.cs: Fix SmallChange and LargeChange exceptions
12843         for 2.0.
12844
12845 2006-12-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12846
12847         * Control.cs: Rewrote double buffering, now a seperate
12848         class handles all the buffering, no Graphics is disposed of
12849         until the painting is finished (earlier implementation 
12850         would crash if the control was resized in the OnPaint, 
12851         since it would cause the double buffer to be recreated
12852         and the old one disposed), a separate Graphics is 
12853         created for every paint (MS behaviour and anyways the state
12854         of the Graphics would have to be saved and restored otherwise)
12855         
12856         * XplatUIDriver.cs: 
12857         * XplatUIX11.cs:
12858         * XplatUI.cs: Added and implemented GetOffscreenGraphics 
12859         so that we can get the graphics for the back buffer without
12860         having to create a new one and remove the offscreen_dc parameter
12861         from CreateOffscreenDrawable and DestroyOffscreenDrawable.
12862         
12863 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12864
12865         * ListView.cs: Add key-related 2.0 methods for CheckedItemCollection.
12866         Also make virtual all the key-related methods.
12867
12868         * ListViewItem.cs: Make virtual the key related methods for
12869         ListViewSubItemCollection.
12870
12871 2006-12-27  Carlos Alberto Cortez <calberto.cortez@gmail.com>
12872
12873         * ListView.cs:
12874         * ListViewItem.cs:
12875         * ThemeWin32Classic.cs:
12876         * Theme.cs: Initial support for Tile view in ListView,
12877         as well as the implementation of the required bits for it (Item
12878         and Subitem).
12879
12880 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
12881
12882         * MonthCalendar.cs: On 2.0, throw ArgumentOutOfRangeException instead
12883         of ArgumentException in MaxSelectionCount, MaxDate and MinDate.
12884         Provide useful exception messages.
12885
12886 2006-12-27  Rolf Bjarne Kvinge  <RKvinge@novell.com>
12887
12888         * TrackBar.cs: Remove a warning.
12889         * MonthCalendar.cs: Moved back to using Capture to hide the calendar
12890         when used by DateTimePicker, fixes #80287. This also requires that 
12891         MonthCalendar implements it's own drawing for the yearly updown control,
12892         otherwise the Capture tracking would be too complicated. Removed the Click 
12893         and DoubleClick events (according to comments they were hiding the base class
12894         event to prevent them from beeing fired - MSDN only says MonthCalendar doesn't
12895         raise these events, not that they cannot be raised. It is possible to raise 
12896         them by calling OnClick and OnDoubleClick). Added two internal fields in 
12897         HitTestInfo in order to track give more tracking info needed by MonthCalendar.
12898         * ThemeWin32Classic.cs: Implement drawing of MonthCalendar's updown part.
12899         * DateTimePicker.cs: Removed handling of MonthCalendar's LostFocus
12900         event, no longer needed.
12901         
12902 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
12903
12904         * ScrollableControl.cs: In AutoScrollMinSize, only set AutoScroll to
12905         true if new value differs from current value.
12906
12907 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
12908
12909         * Control.cs: ControlCollection.Count must be public. Fixed build of
12910         unit tests.
12911
12912 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
12913
12914         * ListView.cs: Redraw when FullRowSelect is changed. Fixes bug #80379.
12915
12916 2006-12-27  Gert Driesen  <drieseng@users.sourceforge.net>
12917
12918         * ComboBox.cs: Mergable=>MergableProperty. Fixes build.
12919
12920 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
12921
12922         * Control.cs: Invalidates control including when Width and Height is 
12923         equal zero or is not visible, only Paint event must be care about 
12924         this. Fixes #79913.
12925
12926 2006-12-26  Chris Toshok  <toshok@ximian.com>
12927
12928         * CurrencyManager.cs, PropertyManager.cs, BindingManagerBase.cs:
12929         more corcompare work.
12930
12931         * DataGridView.cs: fix compiler warning.
12932
12933         * ColumnHeader.cs: some corcompare work, and also take the
12934         opportunity to make the internal fields private.
12935
12936         * ListView.cs: fix the fallout from the above field change.
12937
12938 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
12939
12940         * ToolStripButton.cs, ToolStripComboBox.cs, ToolStripControlHost.cs,
12941         ToolStripItem.cs, ToolStripProgressBar.cs, ToolStripSplitButton.cs,
12942         ToolStripTextBox.cs: Fixes to events and corcompare.
12943
12944 2006-12-26  Everaldo Canuto  <everaldo@simios.org>
12945
12946         * ListView.cs: Call owner.OnMousexx event to propagate events from
12947         item to ListView. Fixes #80367.
12948
12949 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
12950
12951         * ComboBox.cs: On 2.0, DropDownWidth throws ArgumentOutOfRangeException
12952         if value is less than one. ItemHeight should not be set to a value
12953         less than 1, and throw ArgumentOutOfRangeException on 2.0 profile. 
12954         Removed extra tabs.
12955
12956 2006-12-26  Jonathan Pobst  <monkey@jpobst.com>
12957
12958         * ToolStripMenuItem.cs: Add ShortcutDisplayString for Moma.
12959         * ToolStripStatusLabel.cs: Add Spring for Moma.
12960
12961 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
12962
12963         * DataGridView.cs: Fixed several NullReferenceException in On* methods.
12964         Fixed code formatting. Removed debug code.
12965         * DataGridViewTextBoxEditingControl.cs: Removed debug code.
12966
12967 2006-12-26  Gert Driesen  <drieseng@users.sourceforge.net>
12968
12969         * DataGridView.cs: Fixed GridColor, DefaultSize, DefaultCellStyle,
12970         RowHeadersDefaultStyle, RowHeadersWidth to match MS. Throw
12971         ArgumentOutOfRangeException if ColumnCount is negative. In 
12972         ColumnHeadersHeight, throw ArgumentOutOfRangeException if height is
12973         less than 4 or higher than 32768.
12974         * DataGridViewCellStyle.cs: Fixed default value for NullValue.
12975         Fixed FormatProvider to return CurrentCulture unless explicitly set.
12976         Fixed IsFormatProviderDefault to return true if FormatProvider has
12977         not been explicitly set.
12978
12979 2006-12-25  Chris Toshok  <toshok@ximian.com>
12980
12981         * Application.cs: add a couple of 2.0 events.
12982
12983 2006-12-25  Chris Toshok  <toshok@ximian.com>
12984
12985         * Control.cs: fix compiler warning.
12986
12987         * AxHost.cs: corcompare fixes.
12988
12989         * ApplicationContext.cs: corcompare fixes.
12990
12991 2006-12-25  Chris Toshok  <toshok@ximian.com>
12992
12993         * Control.cs: only update dist_right/dist_bottom if the
12994         width/height is > 0.  this fixes anchored controls being resized
12995         smaller until they disappear and then resized larger again.
12996
12997 2006-12-25  Chris Toshok  <toshok@ximian.com>
12998
12999         * Control.cs: a couple of changes.  Remove dist_left and dist_top,
13000         since they're nothing more than X/Left and Y/Top, respectively.
13001
13002         Also, move back to a per-control Bitmap/Graphics for
13003         DeviceContext, since using the static Hwnd.bmp/bmp_g is bad in the
13004         MT case.  Go with a tiny bitmap though, 1x1, instead of Width x
13005         Height.
13006
13007 2006-12-25  Miguel de Icaza  <miguel@novell.com>
13008
13009         * MessageBox.cs: Implemented overload that takes a new "bool
13010         displayHelpButton" by adding a new internal field "show_help".
13011         When clicked this will raise the HelpRequested on the owner or the
13012         main form. 
13013
13014         From: 007dbe3ff0ca4729a4f5fcd1d8ab2a2e.txt
13015         From: c935e12b95fe4dc1ae670e7f4dc5fd68.txt
13016
13017         * ListView.cs: Add support ColumnWidthChanged and
13018         ColumnWidthChanging. 
13019
13020         Add support for ColumnReordered event.
13021         (ReorderColumn): Add NET_2_0 specific support for cancelling the
13022         reorder.
13023
13024         Very nice codebase!
13025
13026         * TextBoxBase.cs (GetLineFromCharIndex): Implement this method.
13027
13028         This is used by report f4ae0a88a0a244558aaadf017c9b9efe.
13029
13030 2006-12-24  Chris Toshok  <toshok@ximian.com>
13031
13032         * GridTablesFactory.cs: 2.0 corcompare work.
13033
13034         * ToolStripContainer.cs: add "override" to
13035         ContextMenuStripChanged, and remove the local event object.
13036
13037         * ToolStripDropDown.cs: same with a couple properties.
13038
13039         * ToolStripPanel.cs: same with AutoSizeChanged event.
13040
13041         * TextBoxBase.cs: add "override" to AutoSizeChanged.
13042
13043         * Form.cs: add the remaining 2.0 events, and do some corcompare
13044         attribute work.
13045
13046         * DateTimePicker.cs: add "new" to padding.
13047
13048         * ButtonBase.cs: use Control's use_compatible_text_rendering.
13049
13050         * ToolStripContentPanel.cs: use base.AutoSizeChanged.
13051
13052         * DataGridView.cs: PaddingChanged is overridden.
13053
13054 2006-12-24  Chris Toshok  <toshok@ximian.com>
13055
13056         * Control.cs: corecompare work here too.
13057
13058         * DataGridViewElement.cs, DataGridView.cs,
13059         DataGridViewButtonCell.cs, DataGridViewRowCollection.cs,
13060         DataGridViewImageColumn.cs, DataGridViewComboBoxColumn.cs,
13061         DataGridViewImageCell.cs, DataGridViewCheckBoxCell.cs,
13062         DataGridViewHeaderCell.cs, DataGridViewCell.cs: more corcompare
13063         work.
13064
13065 2006-12-24  Miguel de Icaza  <miguel@novell.com>
13066
13067         * Control.cs: Switched the error message on the console for a
13068         todo.  A review of the code will have to cope with this anyways
13069         (since its a large feature, it is in our radar) and it was
13070         producing too much output when running PDN.
13071
13072         * ToolStripComboBox.cs: Set the text when the SelectedIndex
13073         changes.  Applications depend on this (PDN 2.72)
13074
13075 2006-12-23  Chris Toshok  <toshok@ximian.com>
13076
13077         * TableLayoutSettings.cs: finish up the corcompare work for this
13078         class.
13079
13080 2006-12-23  Chris Toshok  <toshok@ximian.com>
13081
13082         * Control.cs: make SetImplicitBounds internal, do some futzing
13083         with LayoutEngine so that it's available in 1.1, and remove the
13084         entire duplicated code mess from PerformLayout.  Use
13085         System.Windows.Forms.Layout.DefaultLayout instead.
13086
13087         * LayoutEngine.cs: make this class internal in 1.1, public in 2.0.
13088
13089 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
13090
13091         * Form.cs: Add MainMenuStrip property.
13092
13093 2006-12-23  Jonathan Pobst  <monkey@jpobst.com>
13094
13095         * Control.cs: Add ContextMenuStrip property and implementation.
13096         Fix ContextMenu implementation to show menu centered on control when
13097         activated using the keyboard instead of showing at screen (0,0).
13098
13099         * ToolStripDropDown.cs: Fix needed overload of Show ().
13100
13101 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
13102
13103         * Menu.cs: Name property added for 2.0 profile.
13104         
13105 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
13106
13107         * Menu.cs: Update information about FindMenuItem, method to be
13108         implemented soon.
13109
13110 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
13111
13112         * MenuAPI.cs: When deselect items deselect also selected subitems.
13113         
13114 2006-12-23  Everaldo Canuto  <everaldo@simios.org>
13115
13116         * MenuAPI.cs: When hides menu set Wnd to null, it prevents
13117         FindSubItemByCoord to found itens that is not active, also an
13118         cheking added to FindSubItemByCoord to search for items only 
13119         in visible popup windows. Fixes #80274.
13120
13121 2006-12-22  Everaldo Canuto  <everaldo@simios.org>
13122
13123         * UserControl.cs: Remove MonoTodo and use InternalBorderStyle,
13124         internal property, it be care about change ExStyle. 
13125
13126 2006-12-22  Andreia Gaita  <avidigal@novell.com>
13127
13128         * ContainerControl.cs: set activeControl for parent forms up the 
13129         tree when the new activecontrol is a container.
13130         When validating the active control, if it is a container, also
13131         raise up the validation for it's active control. Fixes #80280
13132         
13133         * Control.cs: Add internal property flag and check to prevent
13134         Focus events from getting raised when Select() is called for
13135         a ContainerControl. There are still too many focus events being
13136         raised at the moment though.
13137         Cleaned up the code a bit.
13138
13139 2006-12-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13140
13141         * Control.cs: Added all missing 2.0 events.and
13142         fixed a couple of corcompare issues.
13143         * TrackBar.cs: Implemented missing 2.0 bits.
13144         * MonthCalendar.cs, 
13145         * DateTimePicker.cs, 
13146         * MdiClient.cs: Fixed some corcompare issues.
13147
13148 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
13149
13150         * ContextMenuStrip.cs, FlowLayoutPanel.cs, SplitContainer.cs,
13151         SplitterPanel.cs: corecompare work.
13152
13153 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
13154
13155         * ToolStripContainer.cs, ToolStripDropDown.cs, StatusStrip.cs:
13156         Clean up warnings for BackgroundImageChanged and PaddingChanged
13157         events now that they are implemented in Control.cs.
13158
13159 2006-12-21  Jonathan Pobst  <monkey@jpobst.com>
13160
13161         * Control.cs: Make sure layout_engine isn't null before using it (2.0).
13162         
13163         * TableLayoutControlCollection.cs, TableLayoutPanel.cs, TableLayoutCellPosition.cs,
13164         TableLayoutSettings.cs, TableLayoutStyleCollection.cs: Initial implementation
13165         of TableLayoutPanel and supporting cast.
13166
13167 2006-12-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13168
13169         * XplatUIWin32.cs: 
13170         - GrabWindow now confines the mouse pointer to the confine window.
13171         - Added Win32ClipCursor and Win32GetClipCursor.
13172
13173         * Control.cs: 
13174         - Added CaptureWithConfine to be able to capture and confine 
13175         mouse pointer.
13176         
13177         * InternalWindowManager.cs: 
13178         - Call CaptureWithConfine instead of Capture if we're an
13179         MdiChild (fixes #79982).
13180
13181 2006-12-21  Chris Toshok  <toshok@ximian.com>
13182
13183         * DataGrid.cs: guard against the initial state of selection, where
13184         selection_start == -1.  make sure we only select from index >= 0.
13185         Fixes bug #80291.
13186
13187 2006-12-21  Chris Toshok  <toshok@ximian.com>
13188
13189         * Control.cs: we don't need to be so draconian with
13190         UpdateDistances, and we thusly don't need to call it before
13191         calling PerformLayout in ResumeLayout.  Fixes bug #80289.
13192
13193 2006-12-21  Daniel Nauck  <dna@mono-project.de>
13194
13195         * ComboBox.cs,
13196         TextBox.cs: Implemented AutoComplete properties.
13197
13198 2006-12-20  Chris Toshok  <toshok@ximian.com>
13199
13200         * DataGridView*.cs: some corecompare work.
13201
13202 2006-12-20  Jackson Harper  <jackson@ximian.com>
13203
13204         * XplatUIX11.cs: We need to hide the caret when deleting it,
13205         otherwise you get carets left lying around everywhere.
13206         * TextBoxBase.cs: Kill then redraw the caret when scrolling.  This
13207         prevents getting some weird half drawn caret tracers when
13208         scrolling.
13209         * TextControl.cs: Attempt to reduce the number of times we need to
13210         recreate the caret.
13211
13212 2006-12-20  Gert Driesen  <drieseng@users.sourceforge.net>
13213
13214         * MonthCalendar.cs: Fixed previous month button. Removed extra tabs.
13215
13216 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13217
13218         * DateTimePicker.cs:
13219         - Implemented missing 2.0 bits.
13220         - Changed some default values to match MS.
13221         
13222 2006-12-20  Jackson Harper  <jackson@ximian.com>
13223
13224         * TextBoxBase.cs: When changing the font across the document we
13225         can't recalculate after changing each line, since that will cahnge
13226         the line count.
13227         - PreferredHeight is a little different than i thought.
13228         - When backspacing, move the caret before we do the actual char
13229         delete, because when that delete crosses a wrap boundary the
13230         positional information will change.
13231
13232 2006-12-19  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13233
13234         * Control.cs: Added some missing 2.0 bits: 
13235         BackgroundImageLayout, BackgroundImageLayoutChanged, 
13236         OnPaddingChanged, MouseClick, MouseDoubleClick, PaddingChanged and 
13237         add IBindableComponent and IDropTarget implementation.
13238         
13239         * MonthCalendar.cs: 
13240         - Added all missing 2.0 features:
13241         BackgroundImageLayout, RightToLeftLayout, 
13242         OnHandleDestroyed, RightToLeftLayoutChanged, 
13243         BackgroundImageLayoutChanged, MouseClick, MouseDoubleClick,
13244         PaddingChanged.
13245         - Rewrote all the BoldDate code, it was completely broken.
13246         - Fixed all the tests (the tests can now be re-enabled, the
13247         problems were not with the tests, but with the control, it was
13248         mostly broken).
13249         
13250         * DateTimePicker.cs: Changed the location where the 
13251         MonthCalendar is shown.
13252         
13253 2006-12-19  Chris Toshok  <toshok@ximian.com>
13254
13255         * DataGridView.cs: add IDropTarget implementation.
13256
13257         * ToolStripPanel.cs: add IDropTarget implementation.
13258
13259 2006-12-19  Jackson Harper  <jackson@ximian.com>
13260
13261         * TextControl.cs: soft now means something different than what it
13262         used to mean, we want to move the caret regardless of whether or
13263         not this break was soft (would we really have wanted the caret
13264         to not move with the break in the old context?)
13265         * TreeView.cs: Make sure we factor in the vert scrollbar when
13266         calculating the horizontal scrollbar's maximum.
13267
13268 2006-12-19  Andreia Gaita  <avidigal@novell.org>
13269
13270         * SendKeys.cs: Fix Send() behaviour, clear keys after sending,
13271         check for keywords in alternate casing, close bug #80049.
13272
13273 2006-12-19  Chris Toshok  <toshok@ximian.com>
13274
13275         * ToolStripItem.cs: add the implementation of the 4 IDropTarget
13276         methods (which all do nothing).
13277
13278         * IDropTarget.cs: add the 4 missing methods.
13279
13280 2006-12-19  Chris Toshok  <toshok@ximian.com>
13281
13282         * TableLayoutRowStyleCollection.cs: corcompare work.
13283         
13284         * TableLayoutSettings.cs: same.
13285
13286         * TableLayoutStyle.cs: same.
13287
13288         * TableLayoutColumnStyleCollection.cs: same.
13289
13290 2006-12-19  Jonathan Pobst  <monkey@jpobst.com>
13291
13292         * ColumnStyle.cs, RowStyle.cs, TableLayoutStyle.cs: Plumbing for
13293         TableLayoutPanel I've had in my local tree for way too long.
13294
13295 2006-12-19  Miguel de Icaza  <miguel@novell.com>
13296
13297         * TableLayoutSettings.cs: Finish the public API (still needs all
13298         the logic to update on changes). 
13299
13300         * TableLayoutPanelCellPosition.cs: new file.
13301         
13302         * TableLayoutRowStyleCollection.cs,
13303         TableLayoutColumnStyleCollection, TableLayoutStyle.cs,
13304         TableLayoutSettings.cs: Track the final 2.0 table api.
13305
13306 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13307
13308         * ColumnHeader.cs: Add Tag, Name, ImageKey, ImageIndex,
13309         and Image List 2.0 members for ColummnHeader.
13310         * ListView.cs: Add key-related 2.0 methods for
13311         ColumnHeaderCollection.
13312
13313 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
13314
13315         * ListViewItem.cs: Changed AddRange overloads to match MS: throw
13316         ArgumentNullException if items argument is null. Ignore null item in
13317         arrays. Removed extra tabs.
13318
13319 2006-12-19  Gert Driesen  <drieseng@users.sourceforge.net>
13320
13321         * MonthCalendar.cs: Fixed InvalidCastException.
13322
13323 2006-12-19  Jackson Harper  <jackson@ximian.com>
13324
13325         * TextControl.cs: Don't increment the position here.
13326         - When calculating char positions only add in the line break size
13327         for hard line breaks.
13328
13329 2006-12-19  Andreia Gaita  <avidigal@novell.org>
13330
13331         * SendKeys.cs: Changed some things to match ms.net behaviour
13332         when parsing shifted capital letters.
13333         
13334         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32, XplatUIOSX: 
13335         Add window handle as parameter to SendInput. X11 needs the 
13336         window handle, and the handle being passed      to it in the keys 
13337         queue is the active control handle (which windows needs), not 
13338         the window handle.
13339         
13340         XplatUIX11.cs, XplaUIX11-new.cs, X11Display: Implement SendInput 
13341         to support SendKeys on X.       
13342         
13343         * X11Keyboard: Implement helper method to lookup a linux keycode
13344         given the virtual keycode. Added table of keycode-2-virtualkey
13345         values to support this.
13346
13347 2006-12-19  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13348
13349         * ListView.cs: Add support for SelectedIndexCollection
13350         and SelectedItemCollection 2.0 methods. Implement support
13351         for ImageKey too.
13352         * ListViewItem.cs: Add support for ListViewSubItemCollection
13353         2.0 methods. Also, fix an incorrect behavior of AddRange method
13354         (it shouldn't call Clear).
13355         * ThemeWin32Classic.cs: Support for ListView.ImageKey 2.0 property.
13356
13357 2006-12-19  Jackson Harper  <jackson@ximian.com>
13358
13359         * RichTextBox.cs: 
13360         * TextBoxBase.cs: New args for FormatText
13361         * TextControl.cs: Rewrote the main drawing method, this version
13362         feels a little easier to understand and debug to me.  Hopefully it
13363         does to others also
13364         - Fix FormatText to OR in the new formating values.  Added
13365         FormatSpecified param, basically this works in the same way as
13366         BoundsSpecified in Control.
13367         - Set the caret properties when the caret is positioned.
13368         - When wrapping text make sure that we calculate the width of the
13369         last character
13370         - when calculating alignments we might have wrapped down to the
13371         next line, so don't search for an individual tag, search for the
13372         end of the line
13373         - We need to invalidate the selection area when we replace the
13374         selection.
13375         
13376 2006-12-19  Daniel Nauck  <dna@mono-project.de>
13377
13378         * Application.cs: add Restart () 2.0 support
13379
13380 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
13381
13382         * MenuItem.cs: Invalidate menu item rectangle after change Enable
13383         property. Fixes #80268.
13384         
13385 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
13386
13387         * MenuAPI.cs: Dont trigger select event when closes top menu
13388         item. Fixes #80270.
13389
13390 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
13391
13392         * MenuAPI.cs: When you click on menuitem only trigger onselect
13393         event for top menu itens. Fixes #80271.
13394         
13395 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13396
13397         * MdiWindowManager.cs: Make IconicBounds depend on
13398         the bottom of MdiClient, not the top (fixes #80267)
13399         
13400 2006-12-18  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13401
13402         * MdiClient.cs: Added missing 2.0 attribute
13403
13404 2006-12-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13405
13406         * ListViewItem.cs: Add Name and Tag 2.0 properties, as well
13407         as IndexOfKey, ContainsKey, RemoveByKey and indexer 2.0.
13408
13409 2006-12-18  Everaldo Canuto  <everaldo@simios.org>
13410
13411         * MenuAPI.cs: Fix click when menuitem is not popup,
13412         this regression was caused by last commit (#80272).
13413
13414 2006-12-17  Everaldo Canuto  <everaldo@simios.org>
13415
13416         * MenuAPI.cs: When a non-toplevel menuitem is clicked dont
13417         fire click event or close menu. Fixes #80272.
13418
13419 2006-12-17  Daniel Nauck  <dna@mono-project.de>
13420
13421         * ListViewHitTestInfo.cs: add
13422
13423 2006-12-17  Daniel Nauck  <dna@mono-project.de>
13424
13425         * ButtonBase.cs: Added FlatButtonAppearance 2.0 support.
13426         * FlatButtonAppearance.cs: add
13427         * DockingAttribute.cs: add
13428
13429 2006-12-17  Chris Toshok  <toshok@ximian.com>
13430
13431         * DataGrid.cs: hook up MetaDataChanged event on the list manager,
13432         and rebind our columns when it does - this way, if you make
13433         changes to the DataTable (or set the Table attribute on a DataView
13434         after setting it as the DataGrid's DataSource, the changes are
13435         made visible.)  Fixes bug #80107.
13436
13437 2006-12-17  Daniel Nauck  <dna@mono-project.de>
13438
13439         * ListViewGroup.cs: add internal Location property for layouting.
13440         * Theme.cs: add abstract ListViewGroupHeight function.
13441         * ThemeWin32Classic.cs: implement ListViewGroupHeight function.
13442
13443 2006-12-16  Andreia Gaita  <avidigal@novell.com>
13444
13445         * TabControl.cs: Fixed checks for NET_2_0-specific exceptions.
13446         Added reset of selected index to 0 when adding first tab page.
13447         Fixes #80264
13448         
13449         * NumericUpDown.cs: Fix NET_2_0 check
13450
13451 2006-12-16  Daniel Nauck  <dna@mono-project.de>
13452
13453         * ListViewGroup.cs: fixed DefaultValueAttribute value
13454
13455 2006-12-16  Daniel Nauck  <dna@mono-project.de>
13456
13457         * AutoCompleteStringCollection.cs: add new AutoCompleteStringCollection 2.0 class
13458
13459 2006-12-15  Miguel de Icaza  <miguel@novell.com>
13460
13461         * Button.cs, ComboBox.cs, ScrollBar.cs, UserControl.cs,
13462         TextBoxBase.cs, ListView.cs, ContainerControl.cs,
13463         ScrollableControl.cs: Add a handful of methods that are
13464         overwritten in 2.0 
13465
13466 2006-12-15  Chris Toshok  <toshok@ximian.com>
13467
13468         * XplatUIWin32.cs: initial implementation of the Reversible
13469         drawing functions.  there are some problems.  DrawReversibleFrame
13470         doesn't seem to work at all for Dashed FrameStyle, and in the
13471         Thick case there are drawing errors at the corners (we probably
13472         need to bind Rectangle instead of doing moveto/lineto's.)
13473
13474 2006-12-16  Andreia Gaita  <avidigal@novell.com>
13475         
13476         * SendKeys.cs: Implemented. SendKeys uses a new method in XPlatUI, SendInput, 
13477         to send blocks of key messages. Send accumulates keys to send with Flush, 
13478         while SendWait sends all keys immediately.
13479                 
13480         * XplaUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs, 
13481         XplatUIX11.cs,  XplatUIX11-new.cs:
13482         - Define SendInput and stubs for OSX and X11, implements Win32 with a call
13483         to Win32 SendInput.
13484         - Added INPUT support structures to XplatUIWin32 for Win32SendInput
13485         
13486         Tests:  It seems ms.net is hooking the keyboard to implement this, so doing unit
13487         testing for ms.net on this class is very tricky, as the tests run too fast 
13488         to allow the hook to release, essentially freezing the keyboard and the 
13489         test. So, barring a win32 miracle, they'll be commited in the ms-notworking     
13490         category :p
13491
13492 2006-12-16  Daniel Nauck  <dna@mono-project.de>
13493
13494         * Padding.cs: fixed serialization compability to MS ("_var" field names),
13495                         added missing attributes.
13496  
13497 2006-12-15  Daniel Nauck  <dna@mono-project.de>
13498
13499         * ListViewGroup.cs: Added missing attributes.
13500         * ListViewGroupCollection.cs: Added missing attributes.
13501
13502 2006-12-15  Daniel Nauck  <dna@mono-project.de>
13503
13504         * ListViewItem.cs: fixed ListViewSubItem text property.
13505
13506 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13507         
13508         * Control.cs: Added missing 2.0 attributes
13509         
13510 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13511         
13512         * MdiClient.cs: Added missing 2.0 attribute.
13513         * MonthCalendar.cs: Added some missing 2.0 attributes 
13514         and properties.
13515         
13516 2006-12-15  Daniel Nauck  <dna@mono-project.de>
13517
13518         * ListView.cs: implemented ListViewItemCollection Add 2.0 support.
13519
13520 2006-12-15  Jonathan Pobst  <monkey@jpobst.com>
13521
13522         * MainMenu.cs: Add the new 2.0 constructor to help out people
13523         using the MainMenu in VS2005.
13524
13525 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13526         
13527         * MdiChildContext.cs: Removed it, no longer used.
13528         * MdiClient.cs: Added missing 2.0 attributes.
13529         
13530 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13531         
13532         * InternalWindowManager.cs: Fix a NullRef with previous 
13533         changes for toolwindows.
13534         
13535 2006-12-15  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13536
13537         * Control.cs: 
13538         - Added AfterTopMostControl to allow for certain controls 
13539         to always stay on top when normal controls are brought to 
13540         front.
13541         
13542         * XplatUIWin32.cs: 
13543         - (DrawInversibleRectangle): Get window rectangle from Win32 
13544         in stead of from control, since Win32 doesn't calculate
13545         screen coords correctly from control's Location if it 
13546         have docked siblings.
13547         
13548         * MdiWindowManager.cs:
13549         - Correct the control menu popup location when clicked on
13550         the maximized form icon. (fixes #80223.1)
13551         - Don't show moving rectangle if mouse hasn't moved from
13552         the original clicked point.
13553         - Removed FormGotFocus handler (not used).
13554         - Calculate the control buttons location from the main
13555         window's size and not client size (fixes #79770).
13556         - Form is now closed when the form icon is double-clicked
13557         (fixes #79775). 
13558         - Correct NCCalcSize numbers a little bit (fixes #80223.2)
13559         
13560         * InternalWindowManager.cs:
13561         - Moved some MDI-only methods to MdiWindowManager.
13562         - Removed unused properties and methods.
13563         - Unified method naming for methods handling wm messages.
13564         - Moved all message handling to seperate methods for
13565         each message.
13566         
13567         * ThemeWin32Classic.cs:
13568         - DrawManagedWindowDecorations now draws the title bar 
13569         with a gradient brush.
13570         - Add a CPDrawButtonInternal that allows us to specify
13571         light, normal and dark colors for the buttons (control 
13572         buttons for MDI children were drawn with the same light
13573         color as the background, therefore loosing the 3D effect).
13574         
13575         * SizeGrip.cs:
13576         - Add a CapturedControl property that is used to 
13577         determine the control to resize (defaults to parent). 
13578         Needed for MdiClient, since its SizeGrip's parent is
13579         MdiClient, but the control to resize is the main form.
13580         
13581         * MdiClient.cs:
13582         - Set SizeGrip's CapturedControl to the main form in order
13583         to resize the main form and not the MdiClient.
13584         - Override AfterTopMostControl to leave the scrollbars 
13585         always on top.
13586
13587 2006-12-15  Daniel Nauck  <dna@mono-project.de>
13588
13589         * ListView.cs: fixed ListViewItemCollection AddRange and
13590                         implemented ListViewItemCollection AddRange 2.0 support.
13591
13592 2006-12-15  Daniel Nauck  <dna@mono-project.de>
13593
13594         * ListViewGroup.cs: Add.
13595         * ListViewGroupCollection.cs: Add
13596         * ListView.cs: Add ListViewGroup (Group) and ShowGroups 2.0 support.
13597         * ListViewItem.cs: Add ListViewgroup (Group), ListViewGroups constructors and
13598                                 stub for ImageKey 2.0 support.
13599
13600 2006-12-14  Mike Kestner  <mkestner@novell.com>
13601
13602         * ListView.cs: add text padding to the autocalculation for columns
13603         of width -2.  Fixes #80207.
13604  
13605 2006-12-14  Mike Kestner  <mkestner@novell.com>
13606
13607         * ListView.cs: add some index guarding for partial row navigation 
13608         logic.  Fixes #80250.
13609
13610 2006-12-14  Mike Kestner  <mkestner@novell.com>
13611
13612         * ListView.cs: throw ArgumentExceptions when parented ListViewItems
13613         are added or inserted to the collection.  Fixes #81099.
13614
13615 2006-12-13  Everaldo Canuto  <everaldo@simios.org>
13616
13617         * MenuAPI.cs: Closes menu when right click out side of popup
13618         it fix problem in ContextMenu and MainMenu. Fixes #80252.
13619
13620 2006-12-13  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13621
13622         * ListViewItem.cs: Fix dumb error.
13623
13624         * ListView.cs: Add Find and ContainsKey methods in 
13625         ListViewItemCollection, and also return true for IsReadOnly
13626         and IsFixedSize (changes for 2.0). 
13627
13628 2006-12-13  Gert Driesen  <drieseng@users.sourceforge.net>
13629
13630         * Control.cs: Allow Region to be set to null.
13631
13632 2006-12-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13633
13634         * MdiWindowManager.cs: Remove unused (commented out) code.
13635         * Form.cs: When the MdiChild is maximized, the form needs 
13636         WM_NCMOUSELEAVE, so request it.
13637         * InternalWindowManager.cs: 
13638         - Added tooltips to control buttons.
13639         - Removed duplicated control button handling code.
13640         - Removed unused (commented out) code.
13641         
13642 2006-12-12  Everaldo Canuto  <everaldo@simios.org>
13643
13644         * MenuAPI.cs: Set cursor to default in popup menus, a XplatUI.SetCursor 
13645         was used because we must set cursor without trigger ChangeCursor event
13646         and without change Cursor control property. Fixes #79963.
13647
13648 2006-12-12  Andreia Gaita  <avidigal@novell.com>
13649         
13650         * Control.cs: Check if Region setter value is null, and ignore
13651
13652 2006-12-12  Jackson Harper  <jackson@ximian.com>
13653
13654         * TextControl.cs: We were almost always drawing one more line then
13655         needed, since the GetLineByPixel will return the last line found
13656         at that pixel. In most cases though, we were invalidating up to
13657         the junction between two lines.
13658         - Improve debug code.
13659
13660 2006-12-12  Chris Toshok  <toshok@ximian.com>
13661
13662         * XplatUI.cs: add static DrawReversibleFrame, DrawReversibleLine,
13663         and FillReversibleRectangle.
13664
13665         * XplatUIDriver.cs: add abstract DrawReversibleFrame, DrawReversibleLine,
13666         and FillReversibleRectangle.
13667
13668         * XplatUIWin32.cs: add stubs which do nothing for
13669         DrawReversibleFrame, DrawReversibleLine, and
13670         FillReversibleRectangle.
13671
13672         * XplatUIOSX.cs: add stubs which raise NIE for
13673         DrawReversibleFrame, DrawReversibleLine, and
13674         FillReversibleRectangle.
13675
13676         * XplatUIX11.cs: add working implementation for
13677         DrawReversibleFrame, DrawReversibleLine, and
13678         FillReversibleRectangle.
13679         
13680         * ControlPaint.cs: implement DrawReversibleFrame,
13681         DrawReversibleLine, and FillReversibleRectangle, by calling into
13682         the appropriate XplatUI method.
13683
13684 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13685
13686         * Form.cs: Make MdiClient have the focus even if it's
13687         not selectable, since it should receive WM_KEY* and WM_MOUSE 
13688         messages. Fixes #79907.
13689         
13690 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13691
13692         * Hwnd.cs: Save the CreateParams.ExStyle so that it can be
13693         queried after the window is created.
13694         
13695         * XplatUIX11.cs: Added SendParentNotify to implement 
13696         WM_PARENTNOTIFY logic. Fixes #79965.
13697         
13698         * Control.cs: Added MakeParam.
13699         
13700 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13701
13702         * MdiClient.cs: Resume Layout before setting window
13703         states (fixes #80201).
13704
13705 2006-12-11  Rolf Bjarne Kvinge  <RKvinge@novell.com>
13706
13707         * MenuAPI.cs: Deselect a menu item after performing
13708         the click (fixes #80197).
13709
13710 2006-12-11  Jackson Harper  <jackson@ximian.com>
13711
13712         * TextBoxBase.cs: We need to cap this value, since Maximum -
13713         ViewPortHeight can be less than zero.
13714         - Only do selection with the left mouse button.
13715         * TextBox.cs: Don't tell the world that we have a context menu.
13716         * Control.cs: New method so that we can control whether or not the
13717         context menu is visible outside MWF.
13718
13719 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
13720
13721         * ToolBarButton.cs: Fix text positon. 
13722
13723 2006-12-11  Miguel de Icaza  <miguel@novell.com>
13724
13725         * ProgressBar.cs (MarqueeAnimationSpeed): Add stub.
13726
13727         * Control.cs (DoubleBuffered): Add implementation.
13728
13729         * Application.cs (OpenForms): Add.
13730
13731 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
13732
13733         * Form.cs: Use opacity instead of Opactiy to determine if we need
13734         to set the WS_EX_LAYERED bit.  [Fixes bug #80185]
13735
13736 2006-12-11  Jonathan Pobst  <monkey@jpobst.com>
13737
13738         * Control.cs: Fix NRE if Control.Site was set to null.
13739
13740 2006-12-11  Chris Toshok  <toshok@ximian.com>
13741
13742         * Control.cs: ControlCollection.Remove should return if the arg is
13743         null, and ControlCollection.SetChildIndex should raise a ANE.
13744
13745 2006-12-11  Gert Driesen  <drieseng@users.sourceforge.net>
13746
13747         * Control.cs: Verify value set for Dock property. Code formatting
13748         updates.
13749
13750 2006-12-11  Jackson Harper  <jackson@ximian.com>
13751
13752         * TextControl.cs: Draw the caret and the selection when a flag is
13753         set on the owner.
13754         * TextBoxBase.cs: We want to draw the caret and the selection for
13755         TextBox but not for TextBoxBase.
13756         - If the window is resized and scrolling is no longer needed (the
13757         whole doc is visible) set the scroll position to zero.
13758         - The default SelectWord (the one TextBox uses) should move the
13759         caret to the end of the word.
13760         - SelectAll moves the caret to the end of the selection.
13761         * TextBox.cs: We don't selectall on focus, we just do it when the
13762         control is created.
13763         
13764 2006-12-11  Mike Kestner  <mkestner@novell.com>
13765
13766         * ComboBox.cs: stub in a 2.0 override for ProcessKeyEventArgs.
13767
13768 2006-12-11  Carlos Alberto Cortez <calberto.cortez@gmail.com>
13769
13770         * ListView.cs: Add Insert, IndexOfKey, RemoveByKey and indexer 
13771         2.0 support.
13772         * ListViewItem.cs: Add Name 2.0 property.
13773
13774 2006-12-11  Andreia Gaita  <avidigal@novell.com>
13775
13776         * TabControl.cs: Set visibility on selected or default tab 
13777         when tabcontrol handle is created, so that it's contents
13778         actually show up (duh). Fixes #80193
13779         Don't redraw the control if there is no handle created, as
13780         the selected index might be completely invalid. Added some tests
13781         to check for this.
13782
13783 2006-12-11  Everaldo Canuto  <everaldo@simios.org>
13784
13785         * ToolBar.cs: Uses maximun width and height of all buttons as 
13786         button rectangle when ButtonSize specified, it looks strange but
13787         is what happens in Win32. Fixes #80189.
13788
13789 2006-12-11  Jackson Harper  <jackson@ximian.com>
13790
13791         * TextControl.cs: Need to track undo levels ourself, since
13792         compound actions will mess them up.
13793
13794 2006-12-10  Andreia Gaita  <avidigal@novell.com>
13795
13796         * TabControl.cs: Raise SelectedIndexChanged for 1.1 if the
13797         SelectedIndex value is changed (even if it's not valid).
13798         Reset SelectedIndex to 0 when the handle is created and if
13799         the current index is invalid.
13800         Fixes SelectdeIndex unit tests and #80128
13801
13802 2006-12-08  Chris Toshok  <toshok@ximian.com>
13803
13804         * DataGrid.cs (set_CurrentCell): because EnsureCellVisibility
13805         calls EndEdit, it needs to be called before we set current_cell to
13806         its new value.  Otherwise, we end up committing the value in the
13807         textbox to the new cell as well.  Fixes bug #80160.
13808
13809 2006-12-08  Chris Toshok  <toshok@ximian.com>
13810
13811         * Form.cs (set_CancelButton): if the button's DialogResult is
13812         None, set it to Cancel.  Fixes bug 80180.
13813
13814 2006-12-08  Jackson Harper  <jackson@ximian.com>
13815
13816         * TextBoxBase.cs: Ugh, ClientSize can be 0,0 sometimes, so we need
13817         to watch ourselves when setting the canvas size and setting the
13818         scrollbar values.
13819
13820 2006-12-08  Chris Toshok  <toshok@ximian.com>
13821
13822         * DataGrid.cs: comment out the two MakeTransparent calls for the
13823         time being so people using trunk (and not 1.2.2) on windows can
13824         actually use the datagrid.  This deals with bug #80151.
13825
13826 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
13827
13828         * ThemeWin32Classic.cs: Change ButtonBase_DrawImage to use the
13829         Graphics.DrawImage (image, int, int, int, int) overload instead
13830         of Graphics.DrawImage (image, int, int).  GDI+ can't figure out
13831         the dpi difference and was blurring images it drew.
13832         [Fixes bug #79960]
13833
13834 2006-12-08  Chris Toshok  <toshok@ximian.com>
13835
13836         * ThemeWin32Classic.cs (DataGridPaintRows): handle case where
13837         rowcnt is 0 (such as with an empty datasource), and make sure we
13838         initialize not_usedarea.Y to cells.Y, so we don't draw over the
13839         other areas (caption, parent row, etc, etc).  Fixes bug #80095.
13840
13841 2006-12-08  Chris Toshok  <toshok@ximian.com>
13842
13843         * DataGridColumnStyle.cs (SetDataGrid): don't try to access a null
13844         grid.
13845
13846 2006-12-08  Chris Toshok  <toshok@ximian.com>
13847
13848         [ Fixes bug #80167 ]
13849         
13850         * ThemeWin32Classic.cs: don't draw the image if the button's flat
13851         style is FlatStyle.System.
13852
13853         * ButtonBase, ThemeClearlooks.cs, ThemeGtk.cs, ThemeNice.cs: make
13854         ButtonBase.flat_style private, and switch uses of it to the public
13855         property.
13856         
13857 2006-12-08  Chris Toshok  <toshok@ximian.com>
13858
13859         [ Fixes bug #80121 ]
13860         
13861         * ThemeWin32Classic.cs: center the caption text in the datagrid
13862         when we draw it.
13863
13864         * DataGrid.cs: lessen the amount we add to the caption height from
13865         6 to 2.  6 was making it huge.
13866
13867 2006-12-08  Andreia Gaita  <avidigal@novell.com>
13868
13869         * UpDownBase: Handle MouseWheel call directly instead of capturing
13870         the inner textbox's OnMouseWheel. Fixes #80166
13871
13872 2006-12-08  Jackson Harper  <jackson@ximian.com>
13873
13874         * TextControl.cs: We need to invalidate the textbox when we empty
13875         it (how had this not been discovered before?)
13876
13877 2006-12-08  Jackson Harper  <jackson@ximian.com>
13878
13879         * TextBoxBase.cs: Reworked the mouse down code so I could get it
13880         to behave like MS, we now ignore the eventargs.Click and just
13881         track state ourself, which we were already doing anyways.
13882         - Constrain the double click handler to the double click size.
13883         
13884 2006-12-08  Chris Toshok  <toshok@ximian.com>
13885
13886         * DataGrid.cs: the mousewheel code shouldn't try to scroll in a
13887         direction if that scrollbar isn't shown.  fixes bug #80158.
13888
13889 2006-12-08  Andreia Gaita  <avidigal@novell.com>
13890
13891         * NumericUpDown.cs: Update value on getter. Fixes #79950
13892
13893 2006-12-08  Chris Toshok  <toshok@ximian.com>
13894
13895         * MenuItem.cs: add back in the event cloning code.  I didn't know
13896         how to do it in the face of the EventHandlerList work i'd done
13897         last week.  Fixes bug #80183.
13898
13899 2006-12-08  Jonathan Pobst  <monkey@jpobst.com>
13900
13901         * Control.cs: Add an invalidate to the BackgroundImage setter.
13902         [Fixes 80184]
13903
13904 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
13905
13906         * ToolStrip*: Add some small properties reported by MoMA, fix event
13907         firing and default properties based off of unit tests, and add some
13908         attributes based off of the class status page.
13909
13910 2006-12-07  Jackson Harper  <jackson@ximian.com>
13911
13912         * TextBoxBase.cs: Take HideSelection into account when determining
13913         whether or not to show the selection.
13914         * RichTextBox.cs: After inserting the RTF into the document move
13915         the cursor to the beginning of the document.
13916
13917 2006-12-07  Jonathan Pobst  <monkey@jpobst.com>
13918
13919         * Control.cs: Remove static ArrayList "controls" which maintained
13920         a reference to every control created.
13921         * Application.cs: Create a static FormCollection to maintain a reference
13922         to every form created.  Use it in places that formerly enumerated through
13923         the controls one looking for forms.
13924         * Form.cs: Add and remove self from above FormCollection.
13925
13926 2006-12-07  Alexander Olk  <alex.olk@googlemail.com>
13927
13928         * MimeIcon.cs: gdk_pixbuf_save_to_buffer is part of libgdk-pixbuf,
13929           not libgdk (though it makes me wonder why I didn't have any
13930           problems)
13931
13932 2006-12-07  Chris Toshok  <toshok@ximian.com>
13933
13934         [ you had to know this was coming after that last commit...]
13935         
13936         * XplatUIX11.cs: implement the 3 Offscreen functions in terms of
13937         XPixmaps (CreateOffscreenDrawable maps to XCreatePixmap,
13938         DestroyOffscreenDrawable to FreePixmap, and BlitFromOffscreen to
13939         XCopyArea).
13940
13941 2006-12-07  Chris Toshok  <toshok@ximian.com>
13942
13943         * XplatUI.cs: add 3 calls (CreateOffscreenDrawable,
13944         DestroyOffscreenDrawable, and BlitFromOffscreen) that encompass
13945         all the behavior we need for double buffering.
13946
13947         * XplatUIDriver.cs: implement the 3 double buffer methods using a
13948         client side Bitmap, just like the old Control-based double buffer
13949         code did.  The methods are virtual, so each XplatUI driver
13950         subclass can replace the implementation to use a faster, platform
13951         specific approach.
13952
13953         * Control.cs: make use of the 3 Offscreen XplatUI calls in the
13954         double buffer code, and clean things up a bit in the process.
13955
13956 2006-12-06  Chris Toshok  <toshok@ximian.com>
13957
13958         * Control.cs: reindent WndProc.
13959
13960 2006-12-06  Chris Toshok  <toshok@ximian.com>
13961
13962         [ I wanna be like BenM when I grow up ]
13963         
13964         * Hwnd.cs: create a single static Graphics object on the static
13965         Bitmap we create.  use this for our text measurements.
13966
13967         * Control.cs (DeviceContext): stop using the backbuffer's dc_mem.
13968         This was causing us to allocate a backbuffer for every control,
13969         even when it wasn't flagged as double buffered.  Instead use the
13970         single graphics instance.  This might have implications for
13971         multithreaded applications.  If we run into problems we can switch
13972         to creating 1 Graphics per control, on the static Hwnd bitmap.
13973
13974         this change nets us a 7M savings in private dirty mappings when
13975         running FormsTest.exe.
13976
13977 2006-12-06  Chris Toshok  <toshok@ximian.com>
13978
13979         * ListView.cs: the BackgroundImage override is just to set
13980         attributes.  chain up to base.BackgroundImage.
13981
13982         * RichTextBox.cs: same.
13983
13984         * ToolBar.cs: same, but we need to also redraw the toolbar when it
13985         changes, so instead a handler for BackgroundImageChanged.
13986         
13987         * Control.cs: make background_image private.
13988
13989 2006-12-06  Chris Toshok  <toshok@ximian.com>
13990
13991         * ScrollBar.cs: change the assignment of cursor to Cursor.  not
13992         sure we even need this assignment, but roll with it for now.
13993
13994         * Control.cs: make the cursor field private.
13995
13996 2006-12-06  Chris Toshok  <toshok@ximian.com>
13997
13998         * Form.cs: we don't need to explicitly set ImeMode to
13999         ImeMode.NoControl - that's a natural fallout of Control.ImeMode's
14000         behavior in the face of ImeMode.Inherit.
14001
14002         * ButtonBase.cs: change DefaultImeMode to ImeMode.Disable, and
14003         change the ctor's assignment to use ImeMode instead of ime_mode.
14004
14005         * Control.cs (get_ImeMode): don't assume DefaultImeMode ==
14006         ImeModeInherit.  Only check for the parent's imemode (and return
14007         NoControl if there is no parent) if ime_Mode == ImeMode.Inherit.
14008         This fixes the button unit test, which sets both ImeMode and
14009         DefaultImeMode to ImeMode.Disable.
14010
14011         also make the ime_mode field private.
14012
14013 2006-12-06  Chris Toshok  <toshok@ximian.com>
14014
14015         * Control.cs: make control_style private.
14016
14017         * TextBoxBase.cs: fix the HandleClick override.  it was explicitly
14018         setting the styles to true, then setting them to false instead of
14019         reverting to their previous values.
14020
14021         also, call SetStyle on the scrollbars instead of using
14022         control_style directly.
14023
14024 2006-12-06  Jonathan Pobst  <monkey@jpobst.com>
14025
14026         * FormCollection.cs: Implement. [2.0]
14027
14028 2006-12-06  Chris Toshok  <toshok@ximian.com>
14029
14030         * Control.cs: make tab_stop private.
14031
14032         * Label.cs: set TabStop, not tab_stop.  reformat some event
14033         add/remove methods to make them more compact.
14034
14035 2006-12-06  Chris Toshok  <toshok@ximian.com>
14036
14037         * RadioButton.cs: fix TabStop handling.
14038
14039 2006-12-06  Chris Toshok  <toshok@ximian.com>
14040
14041         * TextBox.cs: remove the explicit assignments to has_focus.
14042         Control does that.
14043
14044         * ButtonBase.cs: remove the assignment to has_focus.  Control will
14045         manage that.
14046         
14047 2006-12-06  Chris Toshok  <toshok@ximian.com>
14048
14049         * ButtonBase.cs: remove all uses of is_enabled from this code.
14050         it's always true when any of the code containing the checks is
14051         executed.
14052
14053 2006-12-06  Chris Toshok  <toshok@ximian.com>
14054
14055         * ImageList.cs: reinstate the ShouldSerialize*/Reset* methods,
14056         with different semantics (some are present in both 1.1 and 2.0
14057         profiles) so that we match MS's behavior in our unit tests.
14058
14059 2006-12-06  Jackson Harper  <jackson@ximian.com>
14060
14061         * TextControl.cs: Make this operation undoable.
14062         * TextBoxBase.cs: Factor the border width into the preferred
14063         height.
14064         - implement Modified as per the spec.
14065
14066 2006-12-06  Chris Toshok  <toshok@ximian.com>
14067
14068         * Timer.cs, Control.cs, Menu.cs: make control_tag private.
14069
14070 2006-12-06  Chris Toshok  <toshok@ximian.com>
14071
14072         * Control.cs: make right_to_left and context_menu fields private.
14073
14074 2006-12-06  Chris Toshok  <toshok@ximian.com>
14075
14076         * AccessibleObject.cs, Control.cs, XplatUIX11GTK.cs,
14077         XplatUIX11.cs, Form.cs, RadioButton.cs, ScrollableControl.cs: make
14078         Control.child_controls private.  switch all uses over to
14079         Control.Controls.
14080
14081 2006-12-06  Chris Toshok  <toshok@ximian.com>
14082
14083         * System.Windows.Forms/GroupBox.cs,
14084         System.Windows.Forms/AccessibleObject.cs,
14085         System.Windows.Forms/ErrorProvider.cs,
14086         System.Windows.Forms/Control.cs,
14087         System.Windows.Forms/UpDownBase.cs,
14088         System.Windows.Forms/ScrollBar.cs,
14089         System.Windows.Forms/DateTimePicker.cs,
14090         System.Windows.Forms/Form.cs, System.Windows.Forms/Label.cs,
14091         System.Windows.Forms/ToolTip.cs,
14092         System.Windows.Forms/RadioButton.cs,
14093         System.Windows.Forms/LinkLabel.cs,
14094         System.Windows.Forms/Splitter.cs,
14095         System.Windows.Forms/TextBoxBase.cs,
14096         System.Windows.Forms/ToolStripTextBox.cs,
14097         System.Windows.Forms/ContainerControl.cs,
14098         System.Windows.Forms/ThemeWin32Classic.cs,
14099         System.Windows.Forms/SizeGrip.cs,
14100         System.Windows.Forms/ToolStripDropDown.cs,
14101         System.Windows.Forms/ScrollableControl.cs: Make Control.parent
14102         private.  switch all uses over to Control.Parent.
14103
14104 2006-12-06  Chris Toshok  <toshok@ximian.com>
14105
14106         * RichTextBox.cs: don't assign to has_focus in GotFocus/LostFocus.
14107         Control does this before calling emitting these events.
14108
14109         * TabControl.cs: same.
14110
14111         * ThemeWin32Classic.cs: use Control.ClientRectangle instead of
14112         Control.client_rect.
14113
14114         * ButtonBase.cs: use the ClientSize property instead of the
14115         client_size field.
14116
14117         * ScrollableControl.cs: same.
14118
14119         * Control.cs: another pass at making properties private.  also,
14120         move the initialization of tab_stop to the ctor.
14121
14122 2006-12-05  Andreia Gaita <avidigal@novell.com>
14123
14124         * TabControl.cs: Let the selected index be set freely if the 
14125         control handle is not yet created.
14126
14127 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
14128
14129         * Control.cs: Revert dist_top, dist_right, and dist_bottom to 
14130         internal until I can rewrite DefaultLayout.
14131         * ToolStrip.cs: Fix build error and some general cleaning.
14132         * ToolStripControlHost.cs, SplitterPanel.cs, DataGridView.cs:
14133         Fix build errors caused by making some of Control's fields private.
14134
14135 2006-12-05  Jackson Harper  <jackson@ximian.com>
14136
14137         * TextControl.cs: Redo Insert a little so that it use IndexOf
14138         instead of Split, this prevents it from messing up on things like
14139         \n\n\n. Also more effecient since the split array doesn't need to
14140         be created.
14141         * TextBoxBase.cs: AppendText doesnt handle multiline and non
14142         multiline text differently, this is the first of many fixes that
14143         will make multiline/non-multiline the same thing as far as the
14144         TextBoxBase is concerned.
14145         - Don't split the text and insert lines, this can lose some line
14146         endings (like is the last line a soft or hard break). Instead use
14147         the new Insert.
14148         - Fix an off by one when combining all the lines in the Text
14149         getter.
14150         - Remove separate multiline handling from the Text getter/setter.
14151
14152 2006-12-05  Chris Toshok  <toshok@ximian.com>
14153
14154         * ButtonBase.cs: a few changes:
14155
14156         - don't reinitialize internal Control fields in the ctor when they
14157         have the same values as Control sets them.
14158
14159         - don't set has_focus in OnGotFocus/OnLostFocus.  Control does
14160         this before calling those methods.
14161
14162         - we don't need to call Refresh for anything.  use Invalidate
14163         instead.
14164
14165         - OnEnabledChanged doesn't need to redraw at all - Control.cs
14166         calls Refresh in its OnEnabledChanged.
14167         
14168         - several of the events we were registered for in the ctor to
14169         redraw ourselves already include calls to Invalidate in the
14170         property setters that raise the events.  remove the extra
14171         invalidation.
14172
14173         - reformat a switch statement that was 83274658 columns wide.
14174         
14175 2006-12-05  Mike Kestner  <mkestner@novell.com>
14176
14177         * ComboBox.cs: fix a unit test regression from a TextBox
14178         SelectionLength return of -1 when there's no selection.  
14179
14180 2006-12-05  Chris Toshok  <toshok@ximian.com>
14181
14182         * Control.cs, Button.cs, ThemeGtk.cs, Form.cs, ListView.cs,
14183         ThemeWin32Classic.cs, SizeGrip.cs, ToolBar.cs: first pass at
14184         cleaning up some of the internal Control fields being used by
14185         subclasses.
14186
14187 2006-12-05  Mike Kestner  <mkestner@novell.com>
14188
14189         * ComboBox.cs: fix some Simple mode regressions.  Set Visible on the
14190         listbox after AddImplicit calls since it defaults to hidden. Add a 
14191         hack to preserve requested heights across DropDownStyle changes.
14192
14193 2006-12-05  Jonathan Pobst  <monkey@jpobst.com>
14194
14195         * PropertyGrid.cs: Hide FindFirstItem method from public API.
14196
14197 2006-12-05  Chris Toshok  <toshok@ximian.com>
14198
14199         * DataGridView.cs: fix compiler warnings.
14200
14201         * PrintControllerWithStatusDialog.cs: same.
14202
14203         * ToolBar.cs: same.
14204
14205         * FolderBrowserDialog.cs: same.
14206
14207         * Splitter.cs: same.
14208
14209         * DataGridViewComboBoxCell.cs: same.
14210
14211         * XplatUIWin32.cs: same.
14212
14213         * PictureBox.cs: same.
14214
14215         * Win32DnD.cs: same.
14216
14217         * PageSetupDialog.cs: same.
14218
14219         * FileDialog.cs: same.
14220
14221         * PrintDialog.cs: same.
14222
14223         * DataGridTextBoxColumn.cs: same.
14224
14225         * DrawTreeNodeEventArgs.cs: same (and fix corcompare)
14226
14227 2006-12-05  Chris Toshok  <toshok@ximian.com>
14228
14229         * TextBox.cs, CheckedListBox.cs, MonthCalendar.cs, Menu.cs,
14230         MainMenu.cs, ListView.cs, LabelEditTextBox.cs, ToolBar.cs: more
14231         System.ComponentModel.EventHandlerList work.
14232
14233 2006-12-05  Jonathan Chambers  <joncham@gmail.com>
14234
14235         * DrawTreeNodeEventArgs.cs: Added.
14236
14237 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14238         
14239         * InternalWindowManager.cs: Remove an unused field.
14240         
14241 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14242
14243         * InternalWindowManager.cs:
14244         - Save the point where the title bar is clicked.
14245         
14246         * MdiWindowManager.cs:
14247         - Only allow moving of the window as long as the 
14248         clicked point on the title bar does not get out of
14249         MdiClient's rectangle. Fixes #79982.
14250         
14251         * MdiClient.cs:
14252         - Added Horizontal/VerticalScrollbarVisible.
14253         - Simplified the scrollbar sizing algorithm.
14254         - Cache the difference in scrolled value in
14255         H/VBarValueChanged and move the calculation out
14256         of the for loop.
14257
14258 2006-12-05  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14259
14260         * Control.cs: Make the Console.WriteLine in WndProc 
14261         write more info.
14262
14263 2006-12-05  Chris Toshok  <toshok@ximian.com>
14264
14265         * ToolStripManager.cs, ToolStripButton.cs,
14266         ToolStripContentPanel.cs, ToolStripComboBox.cs, ToolStrip.cs,
14267         ToolStripMenuItem.cs, ToolStripItem.cs, ToolStripControlHost.cs,
14268         ToolStripSplitButton.cs, ToolStripSeparator.cs,
14269         ToolStripRenderer.cs, ToolStripDropDownItem.cs,
14270         ToolStripProgressBar.cs, ToolStripContainer.cs,
14271         ToolStripTextBox.cs, ToolStripPanel.cs, ToolStripDropDown.cs: move
14272         to using System.ComponentModel.EventHandlerList.
14273
14274 2006-12-04  Chris Toshok  <toshok@ximian.com>
14275
14276         * LinkLabel.cs: fix up compiler warnings.
14277
14278         * TableLayoutSettings.cs: same.
14279
14280         * TreeView.cs: same.
14281
14282         * ToolBar.cs: same.
14283
14284         * TabControl.cs: same.
14285
14286         * RichTextBox.cs: same.
14287
14288         * ListViewItem.cs: same.
14289
14290         * PropertyGrid.cs: same.
14291
14292         * DataGridViewRowPostPaintEventArgs.cs: corcompare fix.
14293
14294         * ToolTip.cs same.
14295
14296         * TextRenderer.cs: fix up compiler warnings.
14297
14298         * Label.cs: same.
14299
14300         * Form.cs: corcompare fixes.
14301
14302         * PictureBox.cs: fix up compiler warnings.
14303
14304         * ImageListStreamer.cs: same.
14305
14306         * TrackBar.cs: corcompare fix.
14307
14308         * Control.cs: fix up compiler warnings.
14309
14310         * SplitterPanel.cs: same.
14311
14312         * NumericTextBox.cs: same.
14313
14314         * ImageList.cs: same.
14315
14316         * StatusStrip.cs: same.
14317
14318         * ProgressBar.cs: corcompare fix.
14319
14320         * ToolStripButton.cs: fix up compiler warnings.
14321
14322         * ToolStripStatusLabel.cs: same.
14323
14324         * ToolStripSplitButton.cs: same.
14325
14326         * ToolStripSeparator.cs: same.
14327
14328         * ToolStripProgressBar.cs: same.
14329
14330         * ToolStripDropDownMenu.cs: same
14331
14332         * ToolStripDropDown.cs: same.
14333
14334         * ToolStripDropDownButton.cs: same.
14335
14336         * ToolStrip.cs: same.
14337
14338         * ToolStripControlHost.cs: same.
14339
14340         * ToolStripContentPanel.cs: same.
14341
14342         * ToolStripDropDown.cs: same.
14343
14344         * ToolStripContainer.cs: same.
14345
14346         * ToolStripPanel.cs: same, and add "new" where we need it to work
14347         with the new ArrangedElementCollection.
14348
14349         * ToolStripItemCollection.cs: add "new" where we need it to work
14350         with the new ArrangedElementCollection.
14351
14352 2006-12-04  Andreia Gaita <avidigal@novell.com>
14353
14354         * TabControl.cs: Fix default tab selection to after TabControl
14355         gets focus and not before. Fixes #80128
14356
14357 2006-12-04  Chris Toshok  <toshok@ximian.com>
14358
14359         * DataGridTableStyle.cs: remove the gross calling of
14360         datagrid.Refresh from here.  It's a broken idea and it doesn't
14361         work anyway.
14362
14363         * DataGrid.cs: instead, just register/unregister from the
14364         DataGridTableStyle events in CurrentTableStyle.  we play it
14365         conservatively and EndEdit + CalcAreasAndInvalidate on any event,
14366         even though some would most likely not require it.  Fixes bug
14367         #80115 (and one portion of #80117 as a side effect).
14368
14369 2006-12-04  Chris Toshok  <toshok@ximian.com>
14370
14371         * DataGrid.cs (set_CaptionVisible): EndEdit before doing the work
14372         so the textbox (if any) goes away.  Fixes bug #80117.
14373
14374 2006-12-04  Chris Toshok  <toshok@ximian.com>
14375
14376         * DataGridColumnStyle.cs: set the column's readonly property
14377         initially based on the property descriptor's IsReadOnly.  Fixes
14378         bug #80044.
14379
14380 2006-12-04  Chris Toshok  <toshok@ximian.com>
14381
14382         * ComboBox.cs: wrap the dropdown style changing work in
14383         SuspendLayout/ResumeLayout.  Fixes bug #79968.
14384
14385 2006-12-04  Jackson Harper  <jackson@ximian.com>
14386
14387         * TextBoxBase.cs: Fix off by one, since these are one-based.
14388         * TextBox.cs: Select all the text when we get focus.  The TextBox
14389         does this but the RTB does not.
14390
14391 2006-12-04  Chris Toshok  <toshok@ximian.com>
14392
14393         * DataGridTextBoxColumn.cs: remove some spew.
14394
14395         * DataGridColumnStyle.cs (SetColumnValueAtRow): this seems right
14396         but some part of me is saying "it shouldn't be here.."  At any
14397         rate, it fixes bug #80046.  Call IEditableObject.EndEdit after
14398         setting the value.
14399
14400 2006-12-04  Chris Toshok  <toshok@ximian.com>
14401
14402         * DataGridColumnStyle.cs (SetDataGrid): call CheckValidDataSource
14403         to reassign the propertydescriptor.
14404
14405 2006-12-04  Jackson Harper  <jackson@ximian.com>
14406
14407         * TextBoxBase.cs:
14408         * TextControl.cs: Remove some unused variables.  Maybe this will
14409         patch things up between mike and I.
14410         - don't split lines less then one char wide, if the viewport is
14411         that small text won't be visible anyways.
14412         
14413 2006-12-04  Jackson Harper  <jackson@ximian.com>
14414
14415         * TextBoxBase.cs: Default selection length is -1, need to do some
14416         more testing on windows to see when this is used for the property.
14417         - Redid the Lines [] property to that we properly remove soft line
14418         breaks
14419         - added support for preserving carriage returns
14420         -  CanUndo is not a variable like 'is undo enabled' it just returns
14421         true if there is undo operations available.
14422         - AppendText doesn't need to grab the last tag itself anymore,
14423         this happens automatically when we move the cursor.
14424         * TextControl.cs: Add CompoundActions to the undo class. This
14425         allows combining the other operations into one big option.  ie a
14426         paste will combine { delete old, insert new, move cursor }
14427         - Add InsertString undo operation
14428         - New method for deleting multiline text
14429         - Add carriage returns to lines. So we can preserve carriage
14430         returns when text is 'roundtripped'
14431
14432 2006-12-04  Chris Toshok  <toshok@ximian.com>
14433
14434         * DataGrid.cs (CalcCellsArea): cells_area.Width/Height are at a
14435         minimum 0.  Fixes the scrollbar exception in bug #80136.
14436
14437 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14438
14439         * MdiClient.cs: 
14440         * MdiWindowManager: Removed unused fields and methods.
14441         
14442 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14443         
14444         * StatusBar.cs: Update all panels when a AutoSize=Contents
14445         panel needs updating.
14446         
14447         * StatusBarPanel.cs: Remove twidth and only use initialize.
14448         Fixes #80031.
14449                 
14450 2006-12-04  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14451
14452         * Form.cs: When a form's MdiParent is set add it directly
14453         on top of the z-order in stead of relying on MdiClient's
14454         ActivateChild to do it. Fixes #80135.
14455         
14456         * MdiClient.cs: 
14457         - Remove original_order, mdi_child_list is already doing
14458         the same thing.
14459         - Create mdi_child_list on construction in
14460         stead of first use (avoids a few null checks).
14461
14462         * MenuItem.cs: Use an already existing list of mdi children
14463         to get the correct order of children and remove the other
14464         redundant list.
14465
14466 2006-12-04  Chris Toshok  <toshok@ximian.com>
14467
14468         * PropertyGridView.cs: cached_splitter_location is only used in
14469         !DOUBLEBUFFER code.
14470
14471         * PropertyGrid.cs: implement the ComComponentNameChanged event
14472         using Events, hoping that would fix the warning.  Looks like a
14473         compiler bug instead (#80144).
14474
14475         * PropertyManager.cs: remove unused method.
14476
14477 2006-11-04  Everaldo Canuto  <everaldo@simios.org>
14478
14479         * ThemeWin32Classic.cs: Dont draw arrow when menuitem on menubar, 
14480         include parentesis to fix expression evaluation. Fixes #79634.
14481
14482 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
14483         
14484         * MenuAPI.cs:
14485         - Changes to fix behavior in Menu control, some reported in #80097
14486         and other detected during behavior refactory like a select event
14487         problems.
14488         - Remove unneded "if's" conditions.
14489         - Created an internal to flag when popup is active in control, we need 
14490         it because in .NET you can have menu active but without popup active
14491         when you active menu using popup without visible items.
14492         - Mimic win32 behavior for Select and Popup events.  
14493         - Dont open popup menu when you dont have visible subitems.
14494         - Do nothing when click on disabled menu item.
14495         - Some small changes to follow the coding style guidelines.
14496         - Unselect menu only when another control gives focus. Fixes #80097.
14497         - Remove unused code.
14498         
14499         * MenuItem.cs: internal VisibleItems method to check if menu
14500         theres visible subitems, it will be usefull to fix some 
14501         behavior in Menu control.
14502         
14503 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
14504         
14505         * Timer.cs: Tag property for 2.0 profile.
14506         
14507 2006-12-01  Chris Toshok  <toshok@ximian.com>
14508
14509         [ after removing all warning suppressions, this cleans up over 100 warnings. ]
14510         
14511         * Win32DnD.cs: comment out some unused fields.
14512
14513         * XplatUIWin32.cs: comment out some unused pinvokes, and remove
14514         some unused properties/methods.
14515
14516         * XplatUIX11.cs: fix MousePosition so we override the base class's
14517         property instead of conflicting with it.
14518
14519         * PictureBox.cs: comment out some unused fields
14520
14521         * OSXStructs.cs: make some struct fields public.
14522
14523         * XplatUIOSX.cs: comment out some unused pinvokes, and fix
14524         MousePosition so we override the base class's property instead of
14525         conflicting with it.
14526
14527         * X11Dnd.cs: comment out some unused fields
14528
14529         * X11DesktopColors.cs: fix some struct field visibility to quiet
14530         the compiler.
14531
14532         * X11Dnd.cs: remove some debug code.
14533
14534         * ThemeClearlooks.cs: comment out unused field.
14535
14536         * ThemeNice.cs: mark some methods as overriding ThemeWin32Classic as needed.
14537
14538         * ThemeGtk.cs: comment out some unused pinvokes.
14539
14540         * Timer.cs: remove some unused fields.
14541
14542         * ThemeClearlooks.cs: comment out unused field.
14543
14544         * UpDownBase.cs: comment out unused field.
14545
14546         * DataObject.cs: comment out unused field.
14547
14548         * DataGridBoolColumn.cs: reomve unused field.
14549
14550         * DataGrid.cs: remove unused field.
14551
14552         * Cursor.cs: remove old ToBitmap code.
14553
14554         * ControlPaint.cs: remove unused method.
14555
14556         * ScrollBar.cs: remove unused fields.
14557
14558         * ComboBox.cs: remove unused field, and chain up to
14559         AccessibleObject ctor.
14560
14561         * ListBox.cs: remove unused field.
14562
14563         * ButtonBase.cs: wrap a couple fields in NET_2_0.
14564
14565         * GridEntry.cs: remove unused fields.
14566
14567         * Binding.cs: remove unused fields.
14568
14569         * AxHost.cs: remove unused method.
14570
14571         * ContainerControl.cs: remove unused field.
14572
14573         * ScrollableControl.cs: remove unused fields.
14574
14575 2006-12-01  Chris Toshok  <toshok@ximian.com>
14576
14577         * XplatUI.cs, XplatUIWin32.cs, XplatUIGTK.cs: nuke
14578         the Where/WhereString stuff.  it's easy enough to CWL
14579         Environment.StackTrace.
14580
14581         * XplatUIX11.cs: same, but also fix up a lot of mcs warnings about
14582         unused private fields.
14583
14584 2006-12-01  Jackson Harper  <jackson@ximian.com>
14585
14586         * TextControl.cs: Do not update the view while inserting multiline
14587         text. If we update the view we might wrap lines, before entering
14588         the new lines, which causes the new line insertion calculations to
14589         be totally fubared.
14590         - Remove an old TODO
14591         - Make debug output a little nicer
14592         
14593 2006-12-01  Chris Toshok  <toshok@ximian.com>
14594
14595         * ToolBar.cs: revert the ImeMode fix here and add an XXX comment.
14596
14597 2006-12-01  Chris Toshok  <toshok@ximian.com>
14598
14599         [ fix the majority of the CS0108 warnings we've been suppressing ]
14600         
14601         * TreeView.cs: mark BackgroundImageChanged as 'new'.
14602
14603         * ToolBar.cs: ImeMode just passes stuff to Control.  Rename Layout
14604         to "LayoutToolBar" to quiet mcs.
14605         
14606         * TabControl.cs: mark our ControlCollection class as 'new'.
14607
14608         * TextBoxBase.cs: mark some events as 'new'.
14609
14610         * Splitter.cs: TabStop is 'new'.
14611
14612         * ControlBindingsCollection.cs: mark a few methods as new since
14613         they change the visibility from protected to public.
14614
14615         * RadioButton.cs: DoubleClick -> base class, and remove unused
14616         HaveDoubleClick.
14617
14618         * MonthCalendar.cs: ImeMode property -> base class, and mark many
14619         events as new.
14620
14621         * NumericUpDown.cs: TextChanged -> base class.
14622
14623         * CheckedListBox.cs: mark our ObjectCollection class as new to
14624         quiet mcs.
14625
14626         * FolderBrowserDialog.cs: make HelpRequest event new and have it
14627         muck with the base class.
14628
14629         * StatusBar.cs: fix some mcs warnings about Update being the same
14630         name as a base class method.
14631
14632         * RichTextBox.cs: mark some events as new, and make them do things
14633         to the base class impl.
14634
14635         * UserControl.cs: mark TextChanged as new, and have it manipulate
14636         base.TextChanged.
14637
14638         * UpDownBase.cs: mark some things new.
14639
14640         * CheckBox.cs: mark DoubleClick "new", and add some text about
14641         what we need to look at.
14642
14643         * Panel.cs: make the events "new", and manipulate the base
14644         version.  these are just here for attributes.
14645
14646         * AccessibleObject.cs: make owner private.
14647
14648         * Control.cs: deal with AccessibleObject.owner being private.
14649         cache our own copy if we need it.
14650
14651         * Button.cs: add "new" to the DoubleClickEvent.
14652
14653         * ListBox.cs: no need to track our own has_focus here.  let
14654         Control.has_focus do it for us.  Also some other work to clear up
14655         warnings about not overriding base class methods of the same name.
14656         
14657         * ComboBox.cs: clear up some warnings about not override base
14658         class methods of the same name.
14659
14660 2006-12-01  Chris Toshok  <toshok@ximian.com>
14661
14662         * Form.cs: flag a few things as "new" to quiet some of the mcs
14663         warnings.
14664
14665         * AxHost.cs: same.
14666
14667         * PrintPreviewDialog.cs: same.
14668
14669         * DataGridView.cs: fix a ton of corcompare warnings.  not all, but
14670         now DGV isn't so horrible on the class status page.  also, move
14671         all events to using System.ComponentModel.EventHandlerList.  my
14672         wrists hurt.
14673
14674 2006-12-01  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14675
14676         * MdiWindowManager.cs:
14677         - Set form to active mdi child if shown,
14678         and update the active mdi child to the next 
14679         remaining child in the z-order if the form is hidden.
14680
14681         * Form.cs: 
14682         - Track if the form has been visible and if its 
14683         visibility is beeing changed, so that the MdiClient
14684         can properly decide the ActiveMdiChild. The MdiClient 
14685         cannot track this since the form can change visibility 
14686         before MdiClient is created.
14687
14688         * MdiClient.cs:
14689         - Don't activate anything of the parent form is changing
14690         its visibility.
14691         - Rework ActiveMdiChild to only return visible mdi 
14692         children and take into account several other corner 
14693         cases.
14694
14695 2006-12-01  Chris Toshok  <toshok@ximian.com>
14696
14697         * IBindableComponent.cs: new 2.0 interface.
14698
14699 2006-12-01  Gert Driesen  <drieseng@users.sourceforge.net>
14700
14701         * DataGrid.cs: Font for caption area is bold by default.
14702
14703 2006-12-01  Everaldo Canuto  <everaldo@simios.org>
14704
14705         * Menu.cs: Tag property for 2.0.
14706         
14707 2006-11-01  Everaldo Canuto  <everaldo@simios.org>
14708
14709         * ThemeWin32Classic.cs: Adjust menu separator drawing. 
14710         
14711 2006-12-01  Chris Toshok  <toshok@ximian.com>
14712
14713         * TreeView.cs: doh, the Begin* events should be
14714         TreeViewCancelEventHandler.
14715
14716 2006-12-01  Chris Toshok  <toshok@ximian.com>
14717
14718         * Form.cs: Form.ControlCollection already stores off the
14719         form_owner field.  don't access the base class's internal "owner"
14720         field.
14721
14722         * Control.cs: make all the fields in Control.ControlCollection
14723         private.  there's no need for any internal fields here.
14724
14725 2006-12-01  Chris Toshok  <toshok@ximian.com>
14726
14727         * DataGrid.cs: call SetDataSource instead of CalcGridAreas in
14728         OnHandleCreated.  Fixes bug #80109.
14729
14730 2006-12-01  Chris Toshok  <toshok@ximian.com>
14731
14732         * Button.cs, PropertyGridTextBox.cs, ComboBox.cs,
14733         SplitContainer.cs, Control.cs, StatusStrip.cs,
14734         DataGridTableStyle.cs, MenuItem.cs, DomainUpDown.cs, ImageList.cs,
14735         NumericTextBox.cs, NumericUpDown.cs, Panel.cs, CommonDialog.cs,
14736         DataGrid.cs, ScrollBar.cs, TrackBar.cs, PictureBox.cs,
14737         DateTimePicker.cs, StatusBar.cs, Form.cs, PrintPreviewDialog.cs,
14738         Label.cs, UserControl.cs, CheckBox.cs, RadioButton.cs,
14739         LinkLabel.cs, ListControl.cs, PropertyGrid.cs, Splitter.cs,
14740         MenuStrip.cs, FolderBrowserDialog.cs, NotifyIcon.cs,
14741         TextBoxBase.cs, ListView.cs, DataGridBoolColumn.cs,
14742         PrintPreviewControl.cs, RichTextBox.cs, ListBox.cs, TabControl.cs,
14743         DataGridColumnStyle.cs, ContextMenu.cs, TreeView.cs:
14744
14745         do most of the work to convert our code over to use
14746         System.ComponentModel.Component.Events for
14747         adding/removing/dispatching events.
14748
14749
14750 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
14751
14752         * DataGridView.cs: Fix an ArgumentNullException reported 
14753         twice today in IRC.
14754
14755 2006-11-30  Mike Kestner  <mkestner@novell.com>
14756
14757         * ComboBox.cs: fix the scrollbar mouse event forwarding in the 
14758         grabbed listbox.  Fixes #80036 and #80101.
14759
14760 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
14761
14762         * Message.cs: Changed ToString() to match MS.
14763         
14764 2006-11-30  Jackson Harper  <jackson@ximian.com>
14765
14766         * TextBoxBase.cs: You can still change the selected text on a read
14767         only textbox.
14768         * TextControl.cs: Lower magic number for wrap calculations. This
14769         lets text get closer to the right (far) edge.
14770
14771 2006-11-30  Jonathan Pobst  <monkey@jpobst.com>
14772
14773         * Control.cs: Tweak 2.0 layout properties.
14774         * Form.cs: Switch ToolStripMenuTracker hooks to ToolStripManager.
14775         * TextRenderer.cs: Add a new overload.
14776         * ToolStrip*: Huge amount of changes and new features.
14777
14778 2006-11-30  Mike Kestner  <mkestner@novell.com>
14779
14780         * ComboBox.cs: fixes for LargeChange and Maximum to get the 
14781         scroll range correct.  Fixes #79994.
14782
14783 2006-11-30  Rolf Bjarne Kvinge <RKvinge@novell.com>
14784
14785         * MdiWindowManager.cs: Update main form's text when
14786         a form is closed. (fixes #80038)
14787         
14788 2006-11-30  Everaldo Canuto  <everaldo@simios.org>
14789
14790         * ToolBar.cs:
14791         - Fix an regression in ButtonSize.
14792         - Get ImeMode default value change to "Disable".
14793         - Get ShowTooltips default value change to true, default value is 
14794         "false" but after make a test in .NET we get "true" result as default.
14795         
14796 2006-11-29  Jonathan Pobst  <monkey@jpobst.com>
14797
14798         * ToolStripDropDown.cs: Fix for SupportsTransparency change.
14799
14800 2006-11-29  Chris Toshok  <toshok@ximian.com>
14801
14802         * XplatUIWin32.cs (GetWindowTransparency): check return value of
14803         GetLayeredWindowAttributes.  if it's 0, return 1.0, as
14804         SetWindowTransparency hasn't been called.
14805
14806 2006-11-29  Chris Toshok  <toshok@ximian.com>
14807
14808         * Form.cs (set_TransparencyKey): only call SetWindowTransparency
14809         if it's supported.
14810         (set_AllowTransparency): reorder things a little so that the
14811         WS_EX_LAYERED style is removed properly.
14812
14813 2006-11-29  Chris Toshok  <toshok@ximian.com>
14814
14815         [ totally cosmetic eye-candy feature, fixes bug #80089 ]
14816         
14817         * Form.cs: only call the XplatUI transparency method (get/set) if
14818         SupportsTransparency says it's supported. Otherwise fallback to
14819         doing nothing (in the set case) or returning the instance field we
14820         cache (in the get case).
14821
14822         * XplatUIStructs.cs: add TransparencySupport flag enum.
14823         
14824         * XplatUIDriver.cs: add abstract GetWindowTransparency, and track
14825         change to SupportsTransparency.
14826
14827         * XplatUIOSX.cs: stub out GetWindowTransparency, and return
14828         TransparencySupport.None from SupportsTransparency.
14829
14830         * XplatUIX11.cs: Stub out GetWindowTransparency, and return
14831         TransparencySupport.Set from SupportsTransparency.
14832
14833         * XplatUIWin32.cs: implement GetWindowTransparency calling
14834         GetLayeredWindowAttributes, and implement SupportsTransparency by
14835         checking whether or not both
14836         GetWindowTransparency/SetWindowTransparency are available
14837         entrypoints.  We need to do this since SetWindowTransparency is
14838         available as of win2k, but GetWindowTransparency requires winxp.
14839         yay win32 api.
14840
14841         * XplatUI.cs: Add GetWindowTransparency, and change
14842         SupportsTransparency to allow for either/both Get/Set.
14843
14844 2006-11-29  Chris Toshok  <toshok@ximian.com>
14845
14846         * DataGrid.cs: keep from going into an infinite loop redrawing a
14847         datagrid that has no datasource.  Fixes bug #80033.
14848
14849 2006-11-29  Chris Toshok  <toshok@ximian.com>
14850
14851         * MenuItem.cs: fix the NRE when we assign text (and therefore call
14852         Invalidate) before the mainmenu has been assigned to a control.
14853
14854 2006-11-29  Chris Toshok  <toshok@ximian.com>
14855
14856         * DataGrid.cs: detect when we should be double the double click
14857         row/column autosize stuff, although that codepath has yet to be
14858         written.  part of the work for bug #79891.
14859
14860 2006-11-29  Chris Toshok  <toshok@ximian.com>
14861
14862         * Binding.cs (SetControl): fix unit test.
14863
14864 2006-11-29  Carlos Alberto Cortez <calberto.cortez@gmail.com>
14865
14866         * PageSetupDialog.cs: Validate the margins and set them in
14867         PageSettings. 
14868         * NumericTextBox.cs: New class to mimic the behavior of the
14869         textboxes used in the printing dialogs.
14870
14871 2006-11-29  Andreia Gaita  <avidigal@novell.com>
14872         
14873         * Form.cs: Revert previous change (remove call UpdateBounds
14874         from form constructor), because it messes with the handle creation
14875         order, and that one needs lots and lots of love.
14876         * PrintPreviewDialog.cs: Revert change to CreateHandle (add check
14877         for valid printer and throw InvalidPrinterException if document
14878         is set but printer not valid), adding a MonoTODO. Once 
14879         handle creation is done properly, we can put this back in.
14880
14881 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
14882
14883         * MenuItem.cs: Create a invalidate method for menu item, to be
14884         calling from set text, it make text changes to imadiate update
14885         on screen. Fixes #80013. 
14886         
14887 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
14888
14889         * ToolBar.cs: Fixes and simplify toolbar button layout, it 
14890         fixes bug #80070 and some other problem on toolbar buttons
14891         layout.
14892
14893 2006-11-28  Everaldo Canuto  <everaldo@simios.org>
14894
14895         * ThemeWin32Classic.cs: Paint toolbar toggle button background 
14896         with dotted brush.      Fixes #79564
14897         
14898 2006-11-28  Andreia Gaita  <avidigal@novell.com>
14899
14900         * Form.cs: Removed call to UpdateBounds on Form
14901         constructor, it was causing a call to CreateHandle
14902         before it was supposed to.
14903         * PrintControllerWithStatusDialog: Applied patch
14904         by Chris Toshok to hide controller when there are
14905         no printers available.
14906         PrintDialog.cs: initialize printer settings to 
14907         null - correct DefaultValues test #5
14908         * PrintPreviewControl.cs: Move PrintController
14909         initialization to GeneratePreview
14910         * PrintPreviewDialog.cs: 
14911         - Remove Preview generation     from Document_set(). It is 
14912         called on OnPaint
14913         - Throw InvalidPrinterException on CreateHandle if
14914         a Document is set but there are no printers or 
14915         printer is not valid.
14916         * ThemeWin32Classic: don't paint PrintPreviewControl
14917         if there is nothing to paint    
14918
14919 2006-11-28  Miguel de Icaza  <miguel@novell.com>
14920
14921         * Form.cs: Add another popular method.
14922
14923         * TabPage.cs: ditto.
14924
14925 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14926
14927         * MenuItem.cs: Fixed a warning.
14928         * InternalWindowManager: Fixed a warning.
14929
14930 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14931
14932         * MenuItem.cs:
14933         - When cloning a menu also clone MdiList and clone the 
14934           window menu items properly (as the forms and menuitems
14935           are kept in an internal hashtable, these need updating 
14936           as well)
14937         - Rewrote the window menu code, menu items are added in the
14938           order the forms were added to their parent, and they are
14939           updated every time the window menu is shown (before the
14940           list was only generated once, in the current order of the
14941           forms, and would never be updated). A checkmark is shown
14942           next to the item corresponding to the active mdi child.
14943
14944 2006-11-28  Rolf Bjarne Kvinge  <RKvinge@novell.com>
14945
14946         * XplatUIStructs.cs: 
14947         - Added WM_NCMOUSEHOVER and WM_NCMOUSELEAVE.
14948         
14949         * XplatUIWin32.cs: 
14950         - Added TME_NONCLIENT to TMEFlags.
14951         - Handles WM_NCMOUSEMOVE in GetMessage to 
14952           generate WM_NCMOUSEHOVER and WM_NCMOUSELEAVE messages.
14953
14954         * MdiWindowManager:
14955         - Now merges mdi child menu to parent menu when maximized.
14956         - Recalculate NC areas of both mdi child and mdi parent. 
14957           Fixes #79757 (4).
14958           on window state and size changes.Fixes #79844 (3).
14959         - Handle WM_NCCALCSIZE to properly calculate borders.
14960
14961         * Form.cs:
14962         - Add/remove to the mdi containers list of mdi children 
14963           in the order they are added.
14964         - Pass on WM_NCLBUTTONUP, WM_NCMOUSEMOVE and WM_NCMOUSELEAVE 
14965           to the maximized mdi child.
14966         
14967         * InternalWindowManager.cs:
14968         - Only execute a click on the control buttons on the mouse up,
14969           not on the mouse down. Show the state of the button 
14970           (was only showing Normal state, never Pressed state). The
14971           pressed button now follows the mouse (if you click the Close 
14972           button and move the mouse over the Maximize button, the 
14973           Maximize button will be shown as pressed). Since Win32 does
14974           not generate WM_NCLBUTTONUP if you release the button outside
14975           of the nc area, we need to handle WM_NCMOUSELEAVE and treat
14976           it as a mouse up.
14977         
14978         * ThemeWin32Classic.cs:
14979         - Draw a missing border around mdi child forms. Fixes #79844 (2).
14980
14981         * MdiClient.cs:
14982         - Added a list of forms which contains the order the forms are
14983           added to the mdi parent.
14984         - Handle WM_NCPAINT to properly draw a 3D border. Fixes #79844 (2).
14985         - Handle WM_NCCALCSIZE to properly calculate the 3D border.
14986         - If the active form changes set the scrollbars to the top
14987           of the Z order, otherwise the form could hide them.
14988         - Scrollbars are now sized according to ClientSize, not 
14989           to Size, and they take into account the other scrollbar
14990           to determine maximum.
14991         
14992 2006-11-28  Rolf Bjarne Kvinge <RKvinge@novell.com>
14993         
14994         * XplatUI.cs:
14995         * XplatUIDriver.cs:
14996         * XplatUIX11.cs:
14997         * XplatUIWin32.cs:
14998         * XplatUIOSX.cs:
14999         - Added RequestAdditionalWM_NCMessages for windows to 
15000           opt in for WM_NCMOUSELEAVE and WM_NCMOUSEHOVER.
15001           Currently only implemented in XplatUIWin32.
15002
15003 2006-11-27  Chris Toshok  <toshok@ximian.com>
15004
15005         * Hwnd.cs: only add the hwnd to the windows hash in
15006         set_WholeWindow and set_ClientWindow if whole_window/client_window
15007         are not IntPtr.Zero.  also, remove the unused SetObjectWindow.
15008
15009 2006-11-27  Mike Kestner  <mkestner@novell.com>
15010
15011         * ComboBox.cs: remove redundant OnDropDown call.  It is called
15012         from the ComboListBox.ShowWindow code. Fixes #79969.
15013
15014 2006-11-27  Chris Toshok  <toshok@ximian.com>
15015
15016         * Hwnd.cs: remove the setters for ExposePending and
15017         NCExposePending - noone uses them.
15018
15019 2006-11-27  Jackson Harper  <jackson@ximian.com>
15020
15021         * TextControl.cs: new param for ReplaceSelection which determines
15022         whether we select the new selection, or set the cursor to the end
15023         of the new selection.
15024         * TextBoxBase.cs: Use new param for ReplaceSelection.  When
15025         pasting, select the new text.
15026         * RichTextBox.cs: Use new param for ReplaceSelection.
15027
15028 2006-11-27  Jackson Harper  <jackson@ximian.com>
15029
15030         * TextBoxBase.cs: Set the selection to the caret after the caret
15031         is moved, otherwise they get out of sync.
15032
15033 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
15034
15035         * ToolBar.cs: Fixe size of ToolBar when AutoSize is false,
15036         it fixes #80015
15037
15038 2006-11-26  Everaldo Canuto  <everaldo@simios.org>
15039
15040         * ThemeWin32Classic.cs: 
15041         - Fix toolbar drop down arrow position.
15042         - Fix drop down appearance when ToolBar.Appearance is normal,
15043         it fixes #80018.
15044         
15045 2006-11-26  Gert Driesen  <drieseng@users.sourceforge.net>
15046
15047         * ProgressBar.cs: GetStyle fixes for 2.0 profile.
15048         * Control.cs: Same.
15049         * UpDownBase.cs: Same.
15050         * ButtonBase.cs: Same.
15051         * ScrollBar.cs: Same.
15052         * TrackBar.cs: Same.
15053         * PictureBox.cs: Same.
15054         * UserControl.cs: Same.
15055         * Label.cs: Same.
15056         * ListControl.cs: Same.
15057         * TextBoxBase.cs: Same.
15058         * ListView.cs: Same.
15059         * RichTextBox.cs: Same.
15060         * TreeView.cs: Same.
15061
15062 2006-11-25  Jordi Mas i Hernandez <jordimash@gmail.com>
15063
15064         * PrintDialog.cs:
15065         - Text label for where 
15066         - Text label comment was not shown
15067
15068 2006-11-23  Everaldo Canuto  <everaldo@simios.org>
15069
15070         * ThemeWin32Classic.cs: Fix toolbar drop down arrow size.
15071
15072 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
15073
15074         * InternalWindowManager.cs: 
15075         - Handle WM_PARENTNOTIFY to activate the form
15076         if any child control is clicked.
15077         - The form is only sizable if not minimized.
15078
15079         * MdiWindowManager.cs:
15080         - Save the IconicBounds if the form is moved.
15081         - Rework SetWindowState, now the window bounds 
15082         are stored only if the old window state is Normal.
15083         
15084         * MdiClient.cs:
15085         - In SetWindowStates store the old window state if 
15086         the window is maximized and restore window state if
15087         the window looses focus.
15088         - Don't handle any scrollbar value changes if 
15089         initializing the scroll bars. Fixes #79771.
15090         - Reworked ArrangeIconicWindows. Current algorithm
15091         tests bounds agains all other minimized windows, if
15092         any intersections create new bounds (going left to 
15093         right, bottom to top) and then test again. When 
15094         successful the bounds are saved and never computed
15095         again. Fixes #79774.
15096
15097 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
15098
15099         * InternalWindowManager.cs: Added HandleTitleBarUp.
15100
15101 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
15102
15103         * NumericUpDown.cs: In .NET 1.1, user entered text is still
15104         hexadecimal in ParseUserEdit.
15105
15106         
15107 2006-11-23  Rolf Bjarne Kvinge  <RKvinge@novell.com> 
15108
15109         * MdiWindowManager.cs: 
15110         - Handle a click on the form's icon to show the 
15111         system menu (when maximized). Fixes #79775.
15112         - Change the existing click handler for the form's
15113         icon when not maximized to show on MouseUp.
15114         Fixes #79776.
15115
15116         * Form.cs: In OnResize only layout the mdi child's
15117         parent if it actually has a parent. Might not if
15118         the window is closing.
15119
15120
15121 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
15122
15123         * MdiClient.cs: Ignore active MDI client for text of parent, if
15124         child has no text set.
15125
15126 2006-11-23  Gert Driesen  <drieseng@users.sourceforge.net>
15127
15128         * ToolBar.cs: Fixed ToString to match MS.
15129
15130 2006-11-22  Andreia Gaita  <avidigal@novell.com>
15131
15132         * NumericUpDown: 
15133         - Fix DecimalPlaces, Hexadecimal and ThousandsSeparator to 
15134         update inner values on set. Fixes #79966.
15135         - Override OnLostFocus to update value on NET 2. Fixes #79950.
15136         - Fix hexadecimal parsing.
15137         
15138         * UpDownBase: Override OnGotFocus and OnLostFocus to notify 
15139         parent. Fixes #79957
15140
15141 2006-11-22  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15142
15143         * Control.cs: After calling SetWindowsPos in SetBoundsCore 
15144         the actual size has to be queried, since if height /
15145         width is negative Win32 changes it to 0. 
15146         Fixes #79999 on Windows.
15147         
15148         * XplatUIX11.cs: Set height / width to 0 if negative
15149         in SetWindowPos. Fixes #79999 on Linux.
15150         
15151 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
15152
15153         * ThemeWin32Classic.cs: Fix text redenring when button is
15154         pressed.
15155
15156 2006-11-22  Everaldo Canuto  <everaldo@simios.org>
15157
15158         * MenuAPI.cs: Fixes behavior when menu is opened by kerboard
15159         and later navigate by mouse. Fixes #79528.
15160
15161 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
15162
15163         * ToolBar.cs: Set default value for TabStop to false in
15164         constructor, it fixes remaining behavior of bug #79863.
15165
15166 2006-11-21  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15167
15168         * MdiWindowManager.cs:
15169         * InternalWindowManager.cs:
15170         - Moved a few methods specific to Mdi from 
15171         InternalWindowManager to MdiWindowManager.
15172         Fixes #79996.
15173         
15174 2006-11-21  Chris Toshok  <toshok@ximian.com>
15175
15176         * XplatUIOSX.cs: stub out InvalidateNC.
15177
15178         * XplatUIWin32.cs: implement InvalidateNC using the call I found
15179         at http://www.dotnet247.com/247reference/msgs/58/292037.aspx.
15180
15181         * XplatUIX11.cs: rename InvalidateWholeWindow to InvalidateNC.
15182
15183         * XplatUIDriver.cs: add InvalidateNC abstract method.
15184
15185         * XplatUI.cs: add InvalidateNC.
15186
15187 2006-11-21  Everaldo Canuto  <everaldo@simios.org>
15188
15189         * ToolBar.cs: Invalidate complete button area when pressed status 
15190         was changed.
15191         * ToolButton.cs: Fix InvalidateBorder for DropDown buttons.
15192         * ThemeWin32Classic.cs: Increase vertical and horizontal position 
15193         by 1 when button is pressed.
15194
15195 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
15196
15197         * ToolButton.cs: Invalidate middle of DropDown button when
15198         ToolBar theres DropDownArrows.
15199         * ThemeWin32Classic.cs: Change position of DropDown arrow and
15200         fix DropDown drawing operations.
15201
15202 2006-11-20  Chris Toshok  <toshok@ximian.com>
15203
15204         * NativeWindow.cs: fix the formatting of functions ('{' on the
15205         following line), and enable the thread exception dialog.
15206
15207         * Application.cs: remove the duplicate exception catching from
15208         here.
15209
15210 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
15211
15212         * Toolbar.cs: Triggers button click event when click on icon
15213         of dropdown ToolBarButton. Fixes #79912.
15214         
15215 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15216
15217         * Theme.cs:
15218         * ThemeWin32Classic.cs:
15219         - Added a property WindowBorderFont to enable themeing
15220           of mdi child windows' Text.
15221           
15222 2006-11-20  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15223
15224         * InternalWindowManager.cs:
15225         * Form.cs:
15226         * MdiClient.cs:
15227         * MdiWindowManager.cs: 
15228         - If mdi child is maximized, set mdi parent's
15229           text to "Parent - [Child]". Fixes #79770.
15230         - If there is any maximized mdi child windows, only the active 
15231           window (and any new windows) is maximized, the rest are normal.
15232         - On a WindowState change only save mdi child's window bounds 
15233           if the old window state was normal. Fixes #79774.
15234         - The scroll bars are now calculated on hopefully all
15235           necessary events. Fixed #79771 / #79844->6 / #79906.
15236         - MdiClient.SizeScrollBars() now takes into account docked 
15237           controls in the parent when calculating available space.
15238         - InternalWindowManager now always repaints the entire title
15239           area. Fixes #79844->1/4/5.
15240         - Added RequestNCRecalc on mdi child windowstate changes.
15241           Fixes #79772.
15242
15243 2006-11-20  Mike Kestner  <mkestner@novell.com>
15244
15245         * ComboBox.cs: setup LargeChange on the scrollbar. Invoke FireMouseUp
15246         in the MouseUp handler of the listbox and move the return handling
15247         code to FireMouseUp to avoid scrolling on ups.  Fixes #79952.
15248
15249 2006-11-20  Everaldo Canuto  <everaldo@simios.org>
15250
15251         * Toolbar.cs: Ignore right mouse clicks in toolbar. Fixes #79855. 
15252
15253 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
15254
15255         * MimeIcon.cs: Seems that DllImports that were fine in 1.2 are not
15256           working in 1.2.x anymore. So, updated.
15257
15258 2006-11-19  Gert Driesen  <drieseng@users.sourceforge.net>
15259
15260         * NumericUpDown.cs: Use NegativeSign, NumberDecimalSeparator and
15261         NumberGroupSeparator of current culture instead of assuming en-US.
15262         Fixed bug #79967.
15263
15264 2006-11-17  Mike Kestner  <mkestner@novell.com>
15265
15266         * Control.cs: Add the concept of implicit bounds setting so that
15267         dock/undock round trips preserve explicitly set size/locations.
15268         Fixes #79313.
15269
15270 2006-11-17  Alexander Olk  <alex.olk@googlemail.com>
15271
15272         * FileDialog.cs: Trim all filters, otherwise DirInfo.GetFiles
15273           can't handle those filters. (Fixes bug #79961)
15274
15275 2006-11-17  Chris Toshok  <toshok@ximian.com>
15276
15277         [ fixes the exit/crashes associated with #79835.  it's clearly
15278         suboptimal though, we need to figure out a better way to solve
15279         this. ]
15280         
15281         * PrintPreviewControl.cs: deal with the new invalid printer
15282         exceptions.
15283
15284         * PageSetupDialog.cs: if the printer is invalid, pop up a dialog
15285         and return false (so CommonDialog.ShowDialog doesn't actually show
15286         the form.)
15287
15288         * PrintDialog.cs: enable/disable the Ok button depending on
15289         whether or not the printer is valid.
15290
15291         * CommonDialog.cs (ShowDialog): only actually show the form if
15292         RunDialog returns true.
15293
15294 2006-11-17  Jackson Harper  <jackson@ximian.com>
15295
15296         * TextControl.cs: When soft splitting a line, mark it as a soft
15297         split line. Also carry over the current line break to the next
15298         line.
15299
15300 2006-11-17  Chris Toshok  <toshok@ximian.com>
15301
15302         * XplatUIX11.cs: when scrolling a window with an invalid area, we
15303         only want to shift the part of the invalid area that overlaps the
15304         area we're scrolling.  we also don't want to clear the invalid
15305         area unless the invalid area was entirely contained within the
15306         scrolling area.
15307
15308 2006-11-16  Chris Toshok  <toshok@ximian.com>
15309
15310         * XplatUIX11.cs: remove the handling of the TimerEvent stuff, and
15311         also make sure to free the memory returned by XGetWindowProperty
15312         in GetText().
15313
15314         * X11Structs.cs: remove the TimerEvent stuff, it's unused.
15315
15316 2006-11-16  Chris Toshok  <toshok@ximian.com>
15317
15318         * XplatUI.cs: add a new super secret way to get at the totally
15319         unsupported X11 backend.
15320
15321 2006-11-16  Gert Driesen  <drieseng@users.sourceforge.net>
15322
15323         * NumericUpDown.cs: Allow lowercase letters when in hex-mode.
15324
15325 2006-11-16  Jackson Harper  <jackson@ximian.com>
15326
15327         * TreeView.cs: Allow more explicit setting of top node position
15328         for scrollbars. Slower algo, but more accurate.
15329         - CollapseAll should maintain the current top node.
15330         * TextBoxBase.cs: When positioning the caret, use the line, pos
15331         method, since the x, y method does not grab the correct tag, and
15332         the caret height never gets set correctly. (Maybe I should just do
15333         away with the caret having its own height, and always use the
15334         carets current tag for height).
15335
15336 2006-11-16  Jonathan Pobst  <monkey@jpobst.com
15337
15338         [Fixes 79778, 79923]
15339
15340         * XplatUIWin32.cs: Don't allow a parent to be set to IntPtr.Zero.
15341         Parent to the FosterParent instead.
15342
15343 2006-11-16  Jackson Harper  <jackson@ximian.com>
15344
15345         * TreeView.cs: Need to recalc the topnode when we expand or
15346         collapse. The scrolling methods can't handle this on their own,
15347         since they use differences between the last scroll position, and
15348         those difference get completely messed up since we are expanding
15349         nodes.  This problem should probably be fixed in the scrolling
15350         methods, so they can figure out exactly where they are, but this
15351         will slow things down a little.
15352         * ThemeWin32Classic.cs: Special case for groupboxes with empty
15353         strings, makes nunit-gui look a lot nicer.
15354
15355 2006-11-16  Chris Toshok  <toshok@ximian.com>
15356
15357         * XplatUIX11.cs: nasty, nasty, nasty changes required because of
15358         the broken multithreaded event handling we have in here.  File
15359         this entry under "Why we should move to the new X11 backend".
15360
15361         Any thread can make it into UpdateMessageQueue, which gets events
15362         from the X socket - some of which could belong to hwnds being
15363         managed by a different thread.  We can also have multiple threads
15364         in UpdateMessageQueue at the same time, with each one reading from
15365         the X socket.  This leads to many problems, with the following
15366         solutions:
15367
15368         We can't use hwnd.Queue.Enqueue anywhere in here and must use
15369         EnqueueLocked.
15370
15371         The MotionNotify compression we do can't work across threads
15372         (without locking the entire queue, perhaps) since we call
15373         hwnd.Queue.Peek, so we just punt and don't compress motion events
15374         unless the owning thread is the one which got the X event.
15375
15376         ConfigureNotify is another fun one, since it modifies the hwnd's
15377         bounds and then enqueues the event.  We add a lock to Hwnd which
15378         is held when setting configure_pending to true (and enqueuing the
15379         event).
15380
15381         There is a race wrt the wake socket.  we need to make sure that
15382         only 1 thread is waiting on that socket, or else a thread could
15383         sleep waiting for data that never comes.  It's difficult (but not
15384         impossible) to make happen, because it seems to require something
15385         like the following:
15386
15387             1. Thread 1 polls on wake_receive
15388         
15389             2. poll returns saying there's data to be read on
15390                wake_receive.
15391         
15392             3. Thread 2 polls on wake_receive and immediately returns
15393                saying there's data to be read.
15394
15395             4. Thread 2 reads the wakeup byte from wake_receive
15396
15397             5. Thread 1 attempts to read the wakeup byte from
15398                wake_receive.
15399
15400             6. Thread 2 exits (due to a form closing, perhaps).
15401
15402             7. Thread 1 blocks forever.
15403         
15404         Fun, eh?
15405
15406         Fixing the Expose handling isn't done yet, and the races inherent
15407         in that piece of code are responsible for the drawing mistakes you
15408         see when generating expose events in a MT app (like NPlot).  This
15409         one is the likely to be the hardest to bandaid, and it doesn't
15410         appear to cause anything but drawing problems.  The other issues
15411         caused apps to exit or hang.
15412
15413         * XEventQueue.cs: output some spew when Dequeue/Enqueue/Peek are
15414         called from a different thread than the one that should be calling
15415         these functions.
15416
15417         * Hwnd.cs: add some locks to be used by the XplatUIX11 code.
15418
15419 2006-11-15  Chris Toshok  <toshok@ximian.com>
15420
15421         * Application.cs: null out the context's MainForm when we exit
15422         RunLoop.  Fixes a newly checked in unit test as well as the last
15423         ODE from bug #79933.
15424
15425 2006-11-15  Chris Toshok  <toshok@ximian.com>
15426
15427         * Form.cs (set_Owner): allow a null value so we can clear the
15428         form's owner.
15429         (Dispose): set all our owned_form's Owner properties to null, and
15430         clear the owned_forms collection.
15431         (WM_CLOSE): clean up this a little bit.. still not right though.
15432
15433         * ApplicationContext.cs: OnMainFormClosed should only call
15434         ExitThreadCore if the main form isn't recreating.  Fixes unit
15435         test.
15436
15437 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
15438
15439         [Fixes 78346]
15440
15441         * ComboBox.cs: Set the Hwnd.no_activate flag for the ComboListBox.
15442
15443 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
15444
15445         [Fixes 79433]
15446
15447         * Hwnd.cs: Add a flag to show a window, but not activate it, to 
15448         keep popup window types from stealing focus from the main form
15449         on Windows.
15450
15451         * XPlatUIWin32.cs: Use SW_SHOWNOACTIVATE if above field is true.
15452
15453         * MenuAPI.cs: Set above flag to true.
15454
15455 2006-11-15  Chris Toshok  <toshok@ximian.com>
15456
15457         * XplatUIX11.cs: mimic win32 behavior on BUTTONUP events, where
15458         the button being released is not in wParam.
15459
15460 2006-11-15  Jonathan Pobst  <monkey@jpobst.com>
15461
15462         * Form.cs: Add the released button to MouseEventArgs.Button
15463         for the OnMouseUp call to the MenuTracker.  Fixes menu clicking
15464         on Win32.
15465
15466 2006-11-15  Chris Toshok  <toshok@ximian.com>
15467
15468         * XplatUIX11.cs: add (untested) a _NET_WM_NAME implementation of
15469         GetText().  untested because it's unused in our implementation.
15470         Control.Text always caches the text, even if
15471         ControlStyles.CacheText is not set.
15472
15473         fixes bug #79939.
15474
15475 2006-11-15  Chris Toshok  <toshok@ximian.com>
15476
15477         [ fixes #79933 ]
15478         
15479         * Form.cs: in Close() don't do anything after we send the WM_CLOSE
15480         message.  no hiding, no disposing.
15481
15482         in the WM_CLOSE handler, hide the form if it's modal.
15483
15484 2006-11-15  Chris Toshok  <toshok@ximian.com>
15485
15486         * XplatUIX11.cs: use AddExpose instead of sending a message.
15487         fixes textbox border drawing.
15488
15489 2006-11-15  Chris Toshok  <toshok@ximian.com>
15490
15491         * PropertyGridView.cs: keep from crashing on mouse move/down when
15492         the property grid is empty.
15493
15494 2006-11-14  Jackson Harper  <jackson@ximian.com>
15495
15496         * TextControl.cs: Make PageUp and PageDown more like the MS
15497         versions.
15498         * TextBoxBase.cs: When we set the text property position the
15499         cursor at the beginning of the document.
15500
15501 2006-11-14  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15502
15503         * Form.cs: if a mdi child's WindowState has changed
15504         before it's creation, it would display wrong control
15505         buttons.
15506         
15507 2006-11-14  Alexander Olk  <alex.olk@googlemail.com>
15508
15509         * TreeView.cs: De-uglify TreeView checkbox checkmarks.
15510           (Fixes bug #79927)
15511
15512 2006-11-14  Rolf Bjarne Kvinge <RKvinge@novell.com> 
15513
15514         * XplatUIX11.cs: send a WM_NCPAINT on WM_NCCALCSIZE so that 
15515         the window gets to paint its borders even if the window is
15516         getting smaller.
15517         
15518         * Form.cs: on a WM_NCPAINT invalidate the entire menu, 
15519         otherwise the old control buttons would still be painted 
15520         if the window gets bigger.
15521         
15522         * PaintEventArgs.cs: add an internal method so that the clip 
15523         rectangle can be changed.
15524         
15525 2006-11-13  Chris Toshok  <toshok@ximian.com>
15526
15527         [ fixes bug #79745 ]
15528         
15529         * NotifyIcon.cs: lots of cleanup.
15530
15531         * X11Structs.cs: add an enum for XEMBED messages.
15532
15533         * XplatUIX11.cs: reindent one of the giant switch statements, it
15534         was taking up an additional tab stop, and this file is already way
15535         too wide for my laptop's screen.
15536
15537         Also, add handling for the XEmbed EMBEDDED_NOTIFY message.  When
15538         we get it, resize the hwnd to the WMNormalHints max_width/height.
15539
15540 2006-11-13  Jackson Harper  <jackson@ximian.com>
15541
15542         * TextBoxBase.cs: Compute the value changes for the mouse wheel
15543         teh simple way.
15544
15545 2006-11-13  Chris Toshok  <toshok@ximian.com>
15546
15547         * XplatUIX11.cs, XplatUIStructs.cs: kind of a gross fix for
15548         #79898.  force a reference to the Region to stick around so the
15549         unmanaged object isn't collected (rendering our handle in the MSG
15550         stale).
15551
15552 2006-11-13  Chris Toshok  <toshok@ximian.com>
15553
15554         * XplatUIX11.cs: fix #79917 for window managers which support
15555
15556         using XStoreName on the raw utf8, and we need to convert to
15557         COMPOUND_TEXT if it's non-latin1.
15558
15559 2006-11-13  Chris Toshok  <toshok@ximian.com>
15560
15561         * Form.cs (set_DialogResult): we need to set closing to false if
15562         we're setting our result to None.  fixes bug #79908.
15563
15564 2006-11-13  Jackson Harper  <jackson@ximian.com>
15565
15566         * TextControl.cs: When formatting text, compute the adjusted tag
15567         lengths correctly, using FindTag for the end tag instead of trying
15568         to figure it out outselves.
15569         * TreeNode.cs: Use ActualItemHeight, which is the actual height of
15570         the item, ItemHeight doesn't work, because trees with large
15571         imagelists use those for their height
15572         * TreeView.cs: ActualItemHeight factors in the image height
15573         - compute left edge of checkboxes correctly
15574         - when expanding/collapsing move the bottom down one pixel, so we
15575         aren't moving part of the node
15576
15577 2006-11-13  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15578
15579         * XplatUIX11.cs: The PaintEventArgs is also added to the drawing
15580         stack in PaintEventStart so that it won't get disposed by the gc
15581         before reaching PaintEventEnd.
15582
15583 2006-11-13  Jackson Harper  <jackson@ximian.com>
15584
15585         * TextBoxBase.cs: Don't select the word if we are on a line with
15586         no text.
15587         - We don't need to position the caret on mouse up, since the mouse
15588         move handler should be doing this
15589         - When double clicking a blank line, the caret is advanced to the
15590         next line.
15591
15592 2006-11-13  Gert Driesen  <drieseng@users.sourceforge.net>
15593
15594         * TreeNodeCollection.cs: Avoid duplicating indexer code.
15595
15596 2006-11-12  Gert Driesen  <drieseng@users.sourceforge.net>
15597
15598         * ColorDialog.cs: Reset size of dialog between calls to ShowDialog.
15599         Fixes part of bug #79910.
15600
15601 2006-11-11  Alexander Olk  <alex.olk@googlemail.com>
15602
15603         * ColorDialog.cs: Fix a NRE when adding a color to custom colors
15604           (bug #79903). Some minor string updates to match ms.
15605
15606 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
15607
15608         * FileDialog.cs: Don't add an extension if the filename
15609           already ends with that extension.
15610
15611 2006-11-10  Jackson Harper  <jackson@ximian.com>
15612
15613         * TreeView.cs: Use the currently highlighted node for the
15614         BeforeSelect event.
15615         * TextBoxBase.cs: There is no need to expand selection on
15616         MouseMove.
15617         - CanUndo means 'is there any undo operations', not 'is undo
15618         allowed on this textcontrol. Fixed ClearUndo unit test.
15619
15620 2006-11-10  Andreia Gaita  <shana.ufie@gmail.com>
15621
15622         * Button.cs: only perform click when button is Selectable (so as 
15623         not to activate default buttons when they're disabled)
15624         
15625         * Control.cs: Rewrite of the SelectNextControl and related 
15626         methods. HandleClick now selects next control if the current one
15627         is being disabled.
15628         
15629         * Form.cs: OnActivated selects next active control only if Load 
15630         has already occurred. If Load hasn't run, there's no point in 
15631         selecting here, Load might change the state of controls.
15632         
15633         * FocusTest.cs: Tests marked as working again for these fixes
15634
15635 2006-11-10  Chris Toshok  <toshok@ximian.com>
15636
15637         * XplatUIX11.cs: a couple of fixes.
15638
15639         - use XInternAtoms with almost all the atoms we need to register,
15640         instead of many, many calls to XInternAtom.  should help a bit on
15641         startup time, at the expense of making the code look a little
15642         worse.
15643
15644         - fall back to setting TransientFor on TOOLWINDOW's if their hwnd
15645         isn't reparented (which seems to be a clue that we're running fon
15646         compiz) and they have an Owner form.  This fixes the tool windows
15647         in paint.net when running under compiz.
15648
15649         - when setting the opacity of a window, support both the case
15650         where the window has been reparented and also when it hasn't been.
15651         Since compiz/beryl doesn't seem to reparent windows, and these are
15652         the only window managers which support translucency, I'm not sure
15653         why we need the hwnd.reparented case at all.. but leave it in.
15654         now we get translucent windows in paint.net under compiz/beryl.
15655
15656 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
15657
15658         * FileDialog.cs: Always return the value for FilterIndex that
15659           was set. Internally convert it to values that make sense.
15660
15661 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
15662         
15663         * ThemeWin32Classic.cs: Fix drowp down arrow borders.
15664
15665 2006-11-10  Everaldo Canuto  <everaldo@simios.org>
15666
15667         * Toolbar.cs: Change default value of DropDownArrows to true, the 
15668         signature still using false to make it compatible with MS but the 
15669         initial value is true. Fixes #79855.
15670
15671 2006-11-10  Alexander Olk  <alex.olk@googlemail.com>
15672
15673         * MimeIcon.cs: Don't throw an exception on windows. Mime stuff is
15674           only available on Linux.
15675
15676 2006-11-09  Everaldo Canuto  <everaldo@simios.org>
15677
15678         * Toolbar.cs, ToolBarButton.cs: Fix wrong separator size and
15679         reduce number of calls to redraw method during toolbar creation.
15680
15681 2006-11-09  Mike Kestner  <mkestner@novell.com>
15682
15683         * ListView.cs : raise SelectedIndexChanged when an item is selected
15684         programmatically via the Item.Selected property.  Gert's nice 
15685         ListViewSelectedIndexChanged test fixture now runs clean.
15686
15687 2006-11-09  Mike Kestner  <mkestner@novell.com>
15688
15689         * ListView.cs : raise SelectedIndexChanged when a selected item is
15690         removed from the item collection using Remove or RemoveAt.
15691
15692 2006-11-09  Mike Kestner  <mkestner@novell.com>
15693
15694         * ListView.cs : raise SelectedIndexChanged once per selected item
15695         for compat with MS.  Fixes #79849+.
15696
15697 2006-11-09  Chris Toshok  <toshok@ximian.com>
15698
15699         * TabControl.cs: initialize row_count to 0, and set it to 1 when
15700         we need to (if we have any tab pages).  Fixes unit test.
15701
15702 2006-11-09  Chris Toshok  <toshok@ximian.com>
15703
15704         * Label.cs (CalcPreferredWidth): if Text == "", our preferred
15705         width is 0, not 3.  Fixes a unit test.
15706
15707 2006-11-09  Mike Kestner  <mkestner@novell.com>
15708
15709         * ListView.cs : use Implicit scrollbars so that focus isn't 
15710         stolen from the listview when they are clicked. Fixes #79850.
15711
15712 2006-11-09  Chris Toshok  <toshok@ximian.com>
15713
15714         * PropertyGridView.cs (OnPaint): only call DrawGridItems if we
15715         have a root item.  Fixes #79879.
15716
15717 2006-11-09  Alexander Olk  <alex.olk@googlemail.com>
15718
15719         * FileDialog.cs:
15720           - Fix ToString ()
15721           - An ArgumentException is now thrown if a wrong filter
15722             is applied (matches ms). The previous filter doesn't change
15723             anymore if an exception is thrown.
15724           - Changing the FileName property also affects FileNames
15725         * ColorDialog.cs: The length of the CustomColors array is always
15726           16. It doesn't matter if we use a smaller array or null to update
15727           or change the custom colors property.
15728         * FolderBrowserDialog.cs: Throw an InvalidEnumArgumentException if
15729           for RootFolder if we get a undefined value.
15730
15731 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15732
15733         * StatusBarPanel.cs: 
15734         - Width is set to MinWidth if Width is smaller than
15735         MinWidth. Fixes #79842.
15736         - MinWidth now always overrides Width (MSDN says MinWidth
15737         is set to Width when AutoSize = None, but they do not 
15738         behave like that).
15739         - Style has now the the correct default value.
15740         
15741 2006-11-09  Rolf Bjarne Kvinge  <RKvinge@novell.com>
15742  
15743         * TrackBar.cs: 
15744         - The control is completely invalidated on 
15745         Got/LostFocus to draw the focus rectangle correctly.
15746         - When AutoSize then height is always 45 (width for 
15747         vertical controls).
15748         
15749         * ThemeWin32Classic.cs: The TrackBar thumb is now centered
15750         on the mouse when moved and it doesn't move when grabbed
15751         until the mouse moves as well. Also fixed some wrong 
15752         calculations when clicking on the thumb (control thought
15753         click was outside of thumb and didn't grab it).
15754         Fixes some of the issues in #79718.
15755
15756 2006-11-08  Everaldo Canuto  <everaldo@simios.org>
15757
15758         * Toolbar.cs: Prevent disabled button to highlight. Fixes #79868.
15759
15760 2006-11-08  Chris Toshok  <toshok@ximian.com>
15761
15762         * PropertyGridView.cs: only call ToggleValue if the item is not
15763         readonly.
15764
15765 2006-11-08  Jackson Harper  <jackson@ximian.com>
15766
15767         * TextBoxBase.cs: The RichTextBox and textbox have very different
15768         word selection methods.  Implement the textbox's simple word
15769         selection here, and let the RichTextBox override and provide it's
15770         own.
15771         - Don't do extra selection on mouseup
15772         * RichTextBox.cs: Use the documents word selection algorithm, I
15773         think ideally, this function will be pulled into the
15774         RichTextBox.cs code someday.
15775
15776 2006-11-08  Chris Toshok  <toshok@ximian.com>
15777
15778         * RootGridEntry.cs: new class to represent GridItemType.Root.
15779
15780         * CategoryGridEntry.cs: reformat, and add boilerplate.
15781         
15782         * GridEntry.cs: remove the UIParent stuff - turns out .Parent
15783         returns the UI parent anyway, and we need special handling to
15784         implement the GetTarget method in the face of it.  Also, implement
15785         Select().
15786
15787         * PropertyGrid.cs, PropertyGridView.cs: a number of fixes.  create
15788         a root grid item, and use that instead of PropertyGrid.grid_items.
15789         Also, make use of TypeConverters (and add limitted support for
15790         ICustomTypeDescriptors) when initially populating the grid.
15791         Arrays now show up more or less properly.
15792
15793 2006-11-08  Chris Toshok  <toshok@ximian.com>
15794
15795         * Application.cs: set the modal dialog to non modal after we close
15796         it.  Fixes bug #79866.
15797
15798 2006-11-08  Jackson Harper  <jackson@ximian.com>
15799
15800         * TextControl.cs: When combining lines carry over the line end
15801         style from the end line.
15802         - Invalidate the selected area when setting it, if it is visible.
15803         * TextBoxBase.cs: Only rich text box can do full line selects.
15804         - Make sure to set the cursor position when there is a click,
15805         otherwise two clicks in separate areas could cause a large chunk
15806         to be selected.
15807
15808 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
15809
15810         * Toolbar.cs: Release flat button borders when Toolbar lost focus. 
15811         Fixes #79863.
15812
15813 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
15814
15815         * Toolbar.cs: Prevent toolbar to open more than one tooltip at same
15816         time. Remove tooltips when ToolButton click events.  Fixes #79856.
15817
15818 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
15819
15820         * MenuAPI.cs: Ignore right click for menu actions and fixes
15821         menu border when clicked.  Fixes #79846.
15822
15823 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
15824
15825         * XplatUIX11.cs, XplatUIX11.cs: Fix MouseRelease to only release
15826         MouseState after create wParam for message, this fixes mouse button 
15827         equal none in mouse up events.
15828         
15829 2006-11-07  Andreia Gaita  <shana.ufie@gmail.com>
15830
15831         * Control.cs : Focus() now calls Select to set the Container's
15832         Active Control and to give it focus. To avoid infinite recursion
15833         (because ActiveControl also calls Focus at one point), a check 
15834         is made in Focus with the help of a new internal variable
15835         is_focusing.
15836
15837 2006-11-07  Mike Kestner  <mkestner@novell.com>
15838
15839         * ListView.cs : raise OnSelectedIndexChanged in CreateHandle
15840         if there's a selection.  Fixes #79849.
15841
15842 2006-11-07  Gert Driesen  <drieseng@users.sourceforge.net>
15843
15844         * PropertyGrid.cs: Avoid fixed height of help description label.
15845         Fixes part of bug #79829.
15846
15847 2006-11-07  Chris Toshok  <toshok@ximian.com>
15848
15849         * XplatUIX11.cs: fix #79790 again, by using the
15850         _NET_WM_STATE_SKIP_TASKBAR atom to implement Form.ShowInTaskbar.
15851
15852 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
15853
15854         * ToolBar.cs: Fix left click checking.
15855
15856 2006-11-07  Chris Toshok  <toshok@ximian.com>
15857
15858         * ProgressBar.cs: fix a typo in ToString().  fixes a unit test.
15859
15860 2006-11-07  Chris Toshok  <toshok@ximian.com>
15861
15862         * RelatedPropertyManager.cs: set property_name in our ctor.  fixes
15863         PropertyManager unit tests.
15864
15865         * PropertyManager.cs: make property_name internal.
15866
15867 2006-11-07  Chris Toshok  <toshok@ximian.com>
15868
15869         * ButtonBase.cs: initialize base.ime_mode to ImeMode.Disable to
15870         pass a unit test.  Also, don't set image_index to anything in
15871         response to setting the ImageList property.
15872
15873 2006-11-07  Everaldo Canuto  <everaldo@simios.org>
15874
15875         * ToolBar.cs: Ignore click events when mouse button is not a
15876         left button, only accepts other button for dropdown menus.  
15877         Fixes #79854.
15878
15879 2006-11-07  Chris Toshok  <toshok@ximian.com>
15880
15881         * DataGrid.cs: make the back and parent row buttons a little less
15882         ugly.
15883
15884 2006-11-07  Jackson Harper  <jackson@ximian.com>
15885
15886         * TextBoxBase.cs: When converting to Text don't put line breaks in
15887         for soft line breaks.
15888         * TextControl.cs: There is an initial "fake" line in the document,
15889         this is now a soft break line, so that an extra line feed doesn't
15890         get added to the end of documents.
15891
15892 2006-11-07  Chris Toshok  <toshok@ximian.com>
15893
15894         [ fix bug #79778 ]
15895         
15896         * CurrencyManager.cs: if the list is readonly, don't bother
15897         checking if IBindingList.AllowNew is true.
15898
15899         * ThemeWin32Classic.cs (DataGridPaintParentRow): make this work
15900         for non-DataRowView datasources..  or rather, make it not crash.
15901         (DataGridPaintRelationRow): make sure we limit the row painting to
15902         the area not covered by the row header, and make our cell width at
15903         least large enough to cover the relation area.  This allows grids
15904         that have relations but no rows to render correctly.
15905         (DataGridPaintRowContents): same type of changes here.
15906         (SetDataSource): move back to always calling
15907         CalcAreasAndInvalidate.  this fixes a crash/drawing problem when
15908         navigating back through relations.
15909         (HitTest): handle the case where we have no cells but have
15910         relations.  Right now we generate a hit in cell 0 of whatever the
15911         row is, not sure if this is strictly correct, but it works for our
15912         purposes.
15913         
15914         * DataGrid.cs (EndEdit, CancelEdit): if we have no columns, don't
15915         bother doing anything.
15916
15917 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
15918
15919         * StatusStrip.cs, ToolStripStatusLabel.cs: By request, an
15920         early version of StatusStrip.  Not responsible for eaten
15921         application or firstborn children.
15922
15923 2006-11-06  Chris Toshok  <toshok@ximian.com>
15924
15925         * TabControl.cs: in OnGotFocusInternal/OnLostFocusInternal don't
15926         call GetTabRect with a -1 index.  Fixes #79847.
15927
15928 2006-11-06  Jackson Harper  <jackson@ximian.com>
15929
15930         * TreeNodeCollection.cs: Update scrollbars after clearing.
15931
15932 2006-11-06  Chris Toshok  <toshok@ximian.com>
15933
15934         * NumericUpDown.cs: fix the ToString method for some unit test
15935         love.
15936
15937 2006-11-06  Chris Toshok  <toshok@ximian.com>
15938
15939         * PropertyGrid.cs:
15940         - set the initial SelectedGridItem if we can.
15941
15942         - Exclude non-mergable properties only if we're merging > 1
15943         object.  Merging 1 object isn't really merging, obviously.
15944
15945         - Handle PropertySort.NoSort just like Alphabetical, which is
15946         wrong of course, but at least gets things on the screen.
15947         
15948         * PropertyGridView.cs:
15949         - Add method "FindFirstItem" which finds the first property grid
15950         item, so we can select it by default.
15951
15952         - make use of GridEntry.CanResetValue.
15953
15954         - Don't call RedrawBelowItemOnExpansion here anymore, the
15955         individual GridEntry's will do that.
15956
15957         - Remove the ITypeDescriptorContextImpl internal class.
15958         
15959         * GridEntry.cs:
15960         - this class needs to implement ITypeDescriptorContext, as it's
15961         what MS's PropertyDescriptorGridEntry does, which means we can
15962         remove the ITypeDescriptorContextImpl internal class from
15963         PropertyGrid.cs.  This fixes the crashing portion of bug #79829.
15964
15965         - keep a reference to our PropertyGridView, and move the call to
15966         RedrawBelowItemOnExpansion here from PGV.  This means
15967         programmaticly setting Expanded actually does something visible.
15968
15969         - add a CanResetValue() function which takes into account our
15970         possibly multiple "selected_objects" in the merged case.  Shifting
15971         PropertyGridView to use this method fixes another unreported
15972         crasher found running the test for #79829.
15973
15974         - when Top or Bounds is updated, make sure the PropertyGridTextBox
15975         is updated to reflect this.
15976
15977         * CategoryGridEntry.cs: the ctor takes the PGV now.
15978         
15979 2006-11-06  Jackson Harper  <jackson@ximian.com>
15980
15981         * TextControl.cs: These are 1 based.
15982         * TextBoxBase.cs: When setting the selected text, don't change the
15983         selected text tags, this is done by ReplaceText, just position the
15984         cursor at the end of the new text.
15985
15986 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
15987
15988         * ListView.cs: Allow label edit only when, when LabelEdit is
15989           set to true.
15990
15991 2006-11-06  Jackson Harper  <jackson@ximian.com>
15992
15993         * TextControl.cs: If a suitable wrapping position isn't found,
15994         just wrap right in the middle of a word.
15995
15996 2006-11-06  Alexander Olk  <alex.olk@googlemail.com>
15997
15998         * ListView.cs, ListViewItem.cs: Implement LabelEdit. Fixes
15999           bug #79820.
16000
16001 2006-11-06  Jackson Harper  <jackson@ximian.com>
16002
16003         * TreeView.cs: Can't use the VisibleCount property when setting
16004         scrollbar heights, because this doesn't take into account whether
16005         or not the horz scrollbar just came visible.
16006
16007 2006-11-05  Everaldo Canuto  <everaldo@simios.org>
16008
16009         * MenuAPI.cs: Deactivate menu on mouse up when menus it is already
16010         activated.  Fixes #79369, #79832.
16011
16012 2006-11-05  Alexander Olk  <alex.olk@googlemail.com>
16013
16014         * FileDialog.cs: *sigh* Because of recent runtime changes (r67043) I
16015           had to remove support for links that point to a directory. FileInfo
16016           returns no usefull information (means, the directory they point to)
16017           for such links. Replaced some empty string ("") with String.Empty.
16018
16019 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
16020
16021         * TreeNodeCollection.cs: To match MS, in 1.0 profile throw 
16022         NullReferenceException when attempting to remove node that is not in
16023         collection. Throw NullReferenceException when null is passed to 
16024         Remove. Allow first element of the collection to be removed. Fixes
16025         bug #79831.  In GetEnumerator ().Current return null if positioned 
16026         before the first element of the collection. In GetEnumerator ().Reset,
16027         position before first element of the collection.
16028
16029 2006-11-04  Gert Driesen  <drieseng@users.sourceforge.net>
16030
16031         * PropertyGrid.cs: To match MS, remove default title and description
16032         for panel. Fixed tooltips for Categorized and Alphabetic toolbar
16033         buttons.
16034
16035 2006-11-04  Chris Toshok  <toshok@ximian.com>
16036
16037         * Theme.cs: add a Clamp method, just for kicks.
16038
16039         * ThemeWin32Classic.cs: clamp all color components to [0..255].
16040
16041 2006-11-04  Chris Toshok  <toshok@ximian.com>
16042
16043         * Form.cs: if the form isn't visible, Close() does nothing.
16044
16045 2006-11-03  Chris Toshok  <toshok@ximian.com>
16046
16047         * Form.cs (Close): if the form is modal, don't Dispose of it, only
16048         Hide it.
16049         (WndProc): don't Dispose after handling the WM_CLOSE message.
16050
16051         * Application.cs (RunLoop): toplevels is a list of Forms, so treat
16052         them as such, instead of using casts from Control to Form.  Also,
16053         don't Dispose of the modal dialog when we fall out of the loop -
16054         Close() it instead.
16055
16056         fixes bug #79813.
16057
16058 2006-11-03  Chris Toshok  <toshok@ximian.com>
16059
16060         * Control.cs (Dispose): only go through the dispose thing if we're
16061         @disposing, and we haven't already been disposed.  Fixes bug
16062         #79814.
16063
16064         * Form.cs: no reason to call "base.Dispose()" here instead of
16065         "Dispose()".
16066
16067 2006-11-03  Mike Kestner  <mkestner@novell.com>
16068
16069         * ComboBox.cs : use ToString instead of casts in AddItem for
16070         sorting functionality.  Fixes #79812.
16071
16072 2006-11-03  Chris Toshok  <toshok@ximian.com>
16073
16074         * Application.cs: pave the way for actually using the thread
16075         exception dialog.  it's ifdefed out at the moment.
16076
16077 2006-11-03  Chris Toshok  <toshok@ximian.com>
16078
16079         * ThreadExceptionDialog.cs: until we get a better layout, actually
16080         hide the details textbox and label when we shouldn't see them.
16081
16082 2006-11-03  Jackson Harper  <jackson@ximian.com>
16083
16084         * TextBoxBase.cs: Don't bail from the scrollbar calcs for non
16085         multiline textboxes anymore.  This method also determines the
16086         width/height of a textboxes canvas area.
16087         - Sorta a revert of the last patch.  For multiline just position
16088         the controls, then bail.  This way the scrollbar width won't be
16089         altered.
16090
16091 2006-11-03  Everaldo Canuto  <everaldo@simios.org>
16092
16093         * ThemeWin32Classic.cs: Dont paint inner lines of 3D border when
16094         it dont need.  Fixes #79537.
16095
16096 2006-11-02  Jackson Harper  <jackson@ximian.com>
16097
16098         * X11Dnd.cs: We always allow copy, since XDND implies Copy.  Also
16099         send the status after firing the DndOver event.
16100
16101 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16102
16103         * TrackBar.cs: Now orientation only switches height / width if
16104         the control's handle is created (Win32 does it like this). Also 
16105         fixed a typo in ToString() for a test to pass, changed the 
16106         exception thrown in set_LargeChange and set_SmallChange to 
16107         match Win32 behaviour, and added TrackBar tests to the unit 
16108         tests.
16109
16110 2006-11-02  Chris Toshok  <toshok@ximian.com>
16111
16112         * XplatUIX11.cs: the atom we want is _NET_WM_STATE_SKIP_TASKBAR,
16113         not _NET_WM_STATE_NO_TASKBAR.
16114
16115 2006-11-02  Jackson Harper  <jackson@ximian.com>
16116
16117         * TextControl.cs: Increment count by one, since in the update view
16118         count - 1 is used.
16119
16120 2006-11-02  Jackson Harper  <jackson@ximian.com>
16121
16122         * TextBoxBase.cs: Use client rectangle not bounds for checking if
16123         the mouse is in the client rectangle (duh).
16124
16125 2006-11-02  Rolf Bjarne Kvinge  <RKvinge@novell.com>
16126         
16127         * TrackBar.cs: Fixed trackbar jumping around when clicking
16128         on it - the trackbar was not detecting correctly at which
16129         side of the thumb the click was done. (fixes #79718)
16130
16131 2006-11-02  Everaldo Canuto  <everaldo@simios.org>
16132
16133         * ListBox.cs: scroll visible area when change SelectedIndex to
16134         a non visible area.  Fixes #79481.
16135
16136 2006-11-01  Jackson Harper  <jackson@ximian.com>
16137
16138         * TextControl.cs: When replacing the selection move the selection
16139         start/end/anchor to the end of the new text.
16140
16141 2006-11-01  Jackson Harper  <jackson@ximian.com>
16142
16143         * XplatUIWin32.cs: When setting the parent change the controls
16144         visibility to it's visibility flag, not to it's old parents
16145         visibility (.Visible walks the parent chain).
16146
16147 2006-11-01  Chris Toshok  <toshok@ximian.com>
16148
16149         * XplatUIX11.cs: revert the #79790 fix, as the simple.
16150         XSetTransientForHint fix breaks paint .net's tool windows.  more
16151         work needed for that one.
16152
16153 2006-11-01  Chris Toshok  <toshok@ximian.com>
16154
16155         * ScrollBar.cs: throw ArgumentException instead of Exception in
16156         LargeChange/SmallChange setters.  fixes unit tests.
16157
16158 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
16159
16160         * ContainerControl.cs: reverted rev.67183 (which was itself
16161         a reversion of rev.66853... eh).
16162         
16163         * Control.cs: Fixes Reflector hang by changing Focus() call
16164         to what it was before rev.66643 (calling Select() here sets 
16165         ActiveControl, which in some situations calls back Focus and 
16166         eventually does a stack overflow). Temp fix.    
16167         Changes to GetNextControl() to not look for children to select when
16168         parent cannot be selectable (so it looks for siblings instead)  
16169         
16170 2006-10-31  Mike Kestner  <mkestner@novell.com>
16171
16172         * CheckedListBox.cs : off by one error in returned index from
16173         ObjectCollection.Add.  Fixes #79758.
16174
16175 2006-10-31  Chris Toshok  <toshok@ximian.com>
16176
16177         * UpDownBase.cs: remove the OnGotFocusInternal/OnLostFocusInternal
16178         calls for the textbox/spinner, to keep from recursing to the point
16179         where we crash.  Fixes #79760.
16180
16181 2006-10-31  Chris Toshok  <toshok@ximian.com>
16182
16183         * ListControl.cs (set_SelectedValue): don't throw exceptions on
16184         null/"" value, just return.  matches ms's behavior and fixes some
16185         failing tests.
16186
16187 2006-10-31  Chris Toshok  <toshok@ximian.com>
16188
16189         * Control.cs (set_Capture): make a logic a little easier to
16190         follow.
16191
16192         * XplatUIX11.cs (CleanupCachedWindows): zero out the Grab window
16193         if it's being destroyed.  A necessary fix surely, but a bandaid
16194         also, to fix the stuck capture problem in bug #78413.
16195
16196 2006-10-31  Chris Toshok  <toshok@ximian.com>
16197
16198         * XplatUIX11.cs: fix a couple of compiler warnings, and follow the
16199         convention of clearing hwnd.ClientRect when we set the
16200         width/height (so it'll be recalculated by Hwnd).
16201
16202 2006-10-31      Andreia Gaita <shana.ufie@gmail.com>
16203
16204         * ContainerControl.cs: reversed Contains check from
16205         ActiveControl due to hanging problems. This fix
16206         partly regresses #79667 (button does not have
16207         initial focus), so this might be a symptom for 
16208         a larger parenting problem (set_ActiveControl
16209         is being called but the child control does
16210         not have the parent set yet?)   
16211         
16212 2006-10-31  Mike Kestner  <mkestner@novell.com>
16213
16214         * MenuAPI.cs : fix keynav when menu is click activated.
16215
16216 2006-10-31  Jonathan Pobst  <monkey@jpobst.com>
16217
16218         * ToolStrip*: Version 0.2.
16219
16220         * MenuStrip.cs: Version 0.1.
16221
16222         * Form.cs: Add a 2.0 MenuStrip tracker like the 1.1 Menu one.
16223
16224 2006-10-30  Chris Toshok  <toshok@ximian.com>
16225
16226         [ fixes the oversized notify icon issue in bug #79745 ]
16227         
16228         * NotifyIcon.cs: scale the icon down to the size we're given by
16229         the XplatUI layer (this would be faster if we did it once instead
16230         of whenever we paint..)  Also, remove the WM_NCPAINT handling,
16231         since it's never invoked.
16232
16233         * XplatUIX11.cs: the gnome and kde systrays use icons that are 24
16234         pixels high by default, so let's hardcode our systray icon to that
16235         size.  The SYSTEM_TRAY protocol should really have a way for
16236         client apps to query for the correct icon size.. but oh well.  A
16237         couple of patches to deal with the screwy client_window ==
16238         whole_window notifyicon stuff (we don't want to PerformNCCalc, for
16239         instance, and also make sure we don't XSelectInput twice).
16240
16241 2006-10-30  Chris Toshok  <toshok@ximian.com>
16242
16243         * Control.cs: ugh, the unit test fix (CH11, yesterday) breaks when
16244         recreating forms.  Control recreation is the bane of my existence.
16245         Fix it in a way that keeps everyone happy.
16246
16247 2006-10-30  Chris Toshok  <toshok@ximian.com>
16248
16249         * XplatUIX11.cs: use StructureNotifyMask on all whole_windows, not
16250         just non-CHILD ones.  otherwise sometimes scrollbars end up with
16251         client_windows not being resized to the proper size (ReportBuilder
16252         shows this extremely well).
16253
16254 2006-10-30  Chris Toshok  <toshok@ximian.com>
16255
16256         * XplatUIX11.cs (SetWMStyles): reinstate the XSetTransientForHint
16257         for non-WS_EX_APPWINDOW windows.  This is what keeps them from
16258         showing up in the gnome taskbar.  Fixes bug #79790.
16259
16260 2006-10-30  Chris Toshok  <toshok@ximian.com>
16261
16262         * ApplicationContext.cs: guard against a NRE.
16263
16264         * Application.cs: null out the old MainForm for the context, so we
16265         don't try to use it again once it's disposed.  Fixes bug #79783.
16266
16267 2006-10-30  Chris Toshok  <toshok@ximian.com>
16268
16269         * DataGrid.cs (set_DataSource, set_DataMember): if we have a
16270         BindingContext, set the data source directly, otherwise do the
16271         lazy approach - the actual ListManager will be created when we get
16272         a BindingContext. Fixes bug #79700.
16273
16274 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
16275
16276         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
16277           XplatUIX11.cs: Remove old 2 parameter SetVisible.
16278
16279         * Control.cs: Use the new 3 parameter SetVisible with activate = true.
16280
16281 2006-10-30  Jonathan Pobst  <monkey@jpobst.com>
16282
16283         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Add an overload
16284         of SetVisible that allows a window to be shown, but not activated.
16285         This is needed on Windows for MenuStrip, and can probably be used
16286         with MainMenu and ComboBox to fix the focus stealing issues on
16287         Windows.
16288
16289         * XplatUIOSX.cs, XplatUIX11.cs: Not needed, call existing SetVisible.
16290
16291 2006-10-30  Alexander Olk  <alex.olk@googlemail.com>
16292
16293         * PictureBox.cs: Fix the output of the ToString method.
16294
16295 2006-10-29  Chris Toshok  <toshok@ximian.com>
16296
16297         * Control.cs (get_TopLevelControl): fix bug #79781.
16298
16299 2006-10-29  Chris Toshok  <toshok@ximian.com>
16300
16301         * ListControl.cs (set_DataSource): throw Exception here, not
16302         ArgumentException, to match MS behavior.
16303
16304 2006-10-29  Chris Toshok  <toshok@ximian.com>
16305
16306         * Form.cs: remove the try-catch's around calls to GetWindowState.
16307         We can just check the return value.
16308
16309         * XplatUIX11.cs: don't throw exceptions from GetWindowState.
16310         Instead return -1.
16311
16312         * XplatUI.cs: Add note about additional return value for
16313         GetWindowState.
16314
16315 2006-10-29  Chris Toshok  <toshok@ximian.com>
16316
16317         * Control.cs (CreateHandle): when we create our handle, we also
16318         create the handles of our child controls.  Fixes one of the
16319         Control unit tests (CH11).
16320
16321 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
16322
16323         * MimeIcon.cs: If a gnome icon doesn't exist add a default icon.
16324
16325 2006-10-28  Alexander Olk  <alex.olk@googlemail.com>
16326
16327         * ThemeClearlooks.cs: A little speedup.
16328
16329 2006-10-27  Chris Toshok  <toshok@ximian.com>
16330
16331         * Control.cs: implement Control.FromChildHandle in a way that
16332         matches the docs (and fixes the failed test.)
16333
16334 2006-10-27  Chris Toshok  <toshok@ximian.com>
16335
16336         * DataGridTableStyle.cs: reproduce buggy MS behavior (with
16337         comments).
16338
16339         * DataGrid.cs: implement ResetForeColor such that the tests
16340         succeed.
16341         
16342 2006-10-27  Chris Toshok  <toshok@ximian.com>
16343
16344         * ToolBarButton.cs: setting text/tooltiptext to null results in it
16345         being set to "".  Fixes bug #79759.
16346
16347 2006-10-27  Jackson Harper  <jackson@ximian.com>
16348
16349         * TextControl.cs: We need to clear the entire selection area when
16350         setting the start, otherwise multiline selections are still
16351         visible.
16352
16353 2006-10-26  Chris Toshok  <toshok@ximian.com>
16354
16355         * PropertyGridView.cs: 
16356
16357         - ifdef all the code specific to the double
16358         buffer case, and provide some alternatives in the non-doublebuffer
16359         code, which makes heavy use of XplatUI.ScrollWindow to move things
16360         around without having to invalidate (and cause flicker).  There
16361         are still some drawing problems in the non-doublebuffered case, so
16362         DOUBLEBUFFER is defined by default.
16363
16364         - Fix the way dropdowns are handled.  now we explicitly watch for
16365         the events which might cause the dropdown to close, and break out
16366         of the nested event loop there.  This gets rid of all Capture
16367         code, at the expense of the Msg special casing.  Seems to work,
16368         though, and fixes bug #79743.
16369
16370 2006-10-27  Rolf Bjarne Kvinge <RKvinge@novell.com>
16371         * Control.cs: SetIsRecreating now recreates implicitly added
16372         child controls as well. Finally fixes #79629. The flag passed to 
16373         SetIsRecreating has also been removed since it wasn't used.
16374         
16375 2006-10-26  Carlos Alberto Cortez <calberto.cortez@gmail.com>
16376
16377         * PageSetupDialog.cs: Clean some code, fix some bits, 
16378         add some checks, and add a printer sub-dialog.
16379
16380 2006-10-26  Chris Toshok  <toshok@ximian.com>
16381
16382         * PropertyGrid.cs: make set_SelectedObject call
16383         set_SelectedObjects, and move the duplicate logic to the
16384         SelectedObjects setter.  Also, raise SelectedObjectsChanged.
16385
16386         * PropertyGridView.cs: hide the textbox when we get a
16387         SelectedObjectsChanged event.
16388
16389         Fixes bug #79748.
16390
16391 2006-10-26  Chris Toshok  <toshok@ximian.com>
16392
16393         * PropertyGridView.cs: deal with the type converter not supporting
16394         GetStandardValues() or GetStandardValues() returning null, which
16395         is does in the default case.  Fixes #79742.
16396
16397 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
16398
16399         * CheckedListBox.cs: nunit no longer crashes when selecting 
16400         Project/Edit menu option
16401         
16402 2006-10-25  Andreia Gaita <shana.ufie@gmail.com>
16403
16404         * MenuAPI.cs: prevent ExecFocusedItem from blowing up if there
16405         is no menu selected. fixes #79739
16406
16407 2006-10-25  Chris Toshok  <toshok@ximian.com>
16408
16409         * PropertyGridView.cs: factor out the splitter invalidation code
16410         into the SplitterPercent setter, and for kicks implement the
16411         Ctrl-Left/Ctrl-Right handling that moves the splitter by a small
16412         amount in either direction.
16413
16414 2006-10-25  Chris Toshok  <toshok@ximian.com>
16415
16416         * PropertyGridView.cs: do some cleanup of the brush used to draw
16417         text - read only fields should be grayed out.  not sure how to do
16418         this with the textbox, though.  but the textbox's should also be
16419         readonly now at least.  Also, hide/show the textbox when resizing
16420         the control.
16421         
16422         * CursorConverter.cs: use System.Reflection when getting the
16423         properties of Cursors, as TypeDescriptor.GetProperties isn't
16424         returning static properties.
16425
16426 2006-10-25  Chris Toshok  <toshok@ximian.com>
16427
16428         * PropertyGridView.cs: factor out the up/down handling, and reuse
16429         it for page up/down.  also add End/Home support.
16430
16431 2006-10-25  Chris Toshok  <toshok@ximian.com>
16432
16433         * PropertyGridView.cs:
16434
16435         - ensure the selected grid item is visible in the scrolled area,
16436         fixes bug #79572.
16437
16438         - fix Keys.Down handling when you're on the last item in the
16439         propertygrid.
16440
16441 2006-10-25  Mike Kestner  <mkestner@novell.com>
16442
16443         * MenuAPI.cs : set the ActiveTracker for MainMenu non-popup 
16444         clicks too.  Fixes #79725.
16445
16446 2006-10-24  Chris Toshok  <toshok@ximian.com>
16447
16448         * PropertyGrid.cs: use property.Converter instead of
16449         TypeDescriptor.GetConverter(property.PropertyType), so we catch
16450         TypeConverters declared on the property as well as on the
16451         PropertyType.  Fixes bug #79678.
16452
16453 2006-10-24  Alexander Olk  <alex.olk@googlemail.com>
16454
16455         * MimeIcon.cs, Mime.cs:
16456           Fallback to the default platform handler if no shared mime info
16457           stuff exists (fixes #79693).
16458
16459 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
16460         * ContainerControl.cs: Incorrect contains check in ActiveControl 
16461         from previous fix (duh).
16462
16463 2006-10-20  Chris Toshok  <toshok@ximian.com>
16464
16465         * PropertyGridView.cs: the dropdown should be MIN(number of items
16466         in list, 15).  Fixes #79551.
16467
16468 2006-10-20 Andreia Gaita <shana.ufie@gmail.com>
16469         Fixes #79384, #79394, #79652, #79667
16470         * Application.cs: 
16471         
16472         - Modal windows are now destroyed in the proper order for windows
16473         
16474         * ContainerControl.cs:
16475         
16476         - ActiveControl setter has more conditions on when to return:
16477                 - if we're reselecting the active control, but it actually
16478                 didn't have focus (window hidden or some such), it runs
16479                 - if the active control being selected doesn't actually 
16480                 exist in the container, it returns
16481         
16482         * Form.cs
16483         
16484         - The ShowDialog now gets the current form as the owner when
16485         invoking without parameters, and correctly activates the owner 
16486         when returning
16487         
16488         * MessageBox.cs
16489         
16490         - MessageBox now catches the Escape key to exit
16491
16492 2006-10-20  Chris Toshok  <toshok@ximian.com>
16493
16494         * PropertyGridView.cs: fix a number of issues (bug #78565, and
16495         most of bug #79676):
16496
16497         - you can navigate around the property grid with the arrow keys.
16498
16499         - the dropdown is sized properly when the pg has a vertical
16500         scrollbar.
16501
16502         - fix the indentation for subentries, and properly select the
16503         entire label rect.
16504
16505         - fix the gray bar's drawing (only draw it to the last element,
16506         not for the height of the control.  Also make sure we draw that
16507         last horizontal grid line.
16508
16509         - use the same mechanism the datagrid uses wrt the editing textbox
16510         when scrolling/resizing/etc.  Namely, we hide it first, do the
16511         operation, then show it again (if it's still visible).
16512         
16513         - aggressively remove a lot of unnecessary refreshes (and also
16514         calls to Invalidate(). call more limited variants, and only redraw
16515         what we need.)
16516         
16517         * PropertyGrid.cs:
16518
16519         - when we're populating the merged collection, fill in the UI
16520         parent with either the passed in item, or the category item we
16521         create.
16522
16523         - remove the Refresh call from the BorderHelpControl.OnSizeChanged.
16524
16525         * GridItem.cs: drop some fully qualified names.
16526         
16527         * GridEntry.cs: add a "UIParent", which is basically the parent
16528         treenode.
16529
16530         * GridItemCollection.cs: add an IndexOf method.
16531
16532 2006-10-20  Mike Kestner  <mkestner@novell.com>
16533
16534         * MainMenu.cs : go back to Draw in OnMenuChanged.  Until we get
16535         a working win32 NC invalidation mechanism, we can't invalidate
16536         menus.  [Fixes #79705]
16537
16538 2006-10-20  Mike Kestner  <mkestner@novell.com>
16539
16540         * ListBox.cs : don't update the VScrollbar if the list is empty,
16541         just hide it.  [Fixes #79692]
16542
16543 2006-10-20  Jackson Harper  <jackson@ximian.com>
16544
16545         * RichTextBox.cs: Handle some special chars better, and don't skip
16546         the entire group when we encounter a special char that we don't
16547         handle correctly.
16548
16549 2006-10-18  Chris Toshok  <toshok@ximian.com>
16550
16551         * PropertyGridView.cs: address a number of issues from bug #79676,
16552         mostly of the cosmetic variety.
16553
16554         - The highlight rectangle for indented items not extends all the
16555         way to the left.
16556
16557         - Indented items aren't indented so much.
16558
16559         - the dropdown is properly sized width-wise if the pg has a
16560         vertical scrollbar.
16561
16562 2006-10-18  Chris Toshok  <toshok@ximian.com>
16563
16564         * XplatUIX11.cs (SystrayAdd): a rather convoluted change, but the
16565         systray stuff is rather convoluted to begin with.
16566
16567         systray icons are a single window for some reason (that I haven't
16568         figured out yet), and for them, client_window == whole_window.
16569         Given the way the tests are structured elsewhere to determine
16570         which paints are pending (client vs. nc), that situation will
16571         always yield PAINT, not NCPAINT.  So, if we have a pending
16572         nc_expose and no pending expose, remove the hwnd from the paint
16573         queue, and also set nc_expose_pending to false, to keep us from
16574         blocking further expose's adding the hwnd to the paint queue.
16575
16576         phew.  like i said, a rather convoluted change.  Fixes the
16577         notifyicon repaint issues in bug #79645.
16578
16579 2006-10-18  Chris Toshok  <toshok@ximian.com>
16580
16581         * Form.cs: when getting the backcolor of the form, don't get
16582         base.BackColor, as this allows parents to influence the background
16583         color.  This breaks mdi forms.  Instead, if the background_color
16584         is empty, return the default.
16585
16586 2006-10-18  Chris Toshok  <toshok@ximian.com>
16587
16588         * XplatUIX11.cs: change some debug ifdefs, and return XGetParent
16589         to being private instead of internal static.
16590
16591         * Control.cs: remove all the stupid ParentWaitingOnRecreation
16592         crap, it wasn't working for more deeply nested controls anyway,
16593         and we already have the is_recreating flag - use that instead.
16594         Before calling DestroyHandle in RecreateHandle, recurse through
16595         the control tree setting it to true.  this returns the recreate
16596         code to much of its original simplicity, while now guaranteeing we
16597         actually recreate everything we're supposed to.  This change gets
16598         fyireporting actually showing mdi children.
16599
16600 2006-10-17  Chris Toshok  <toshok@ximian.com>
16601
16602         * Form.cs: remove some debug spew, and collapse some duplicate
16603         code at the end of SetClientSizeCore.
16604
16605         * XplatUIX11.cs: 
16606         - add some more debug spew here too wrt Destroy handling.
16607         - don't call hwnd.Dispose in DestroyWindow, it's effectively done
16608         in Control's handling of WM_DESTROY.
16609         - Remove the handling of zombie window DestroyNotifies from the
16610         event loop - we don't need it.  Now the only DestroyNotifies we
16611         actually handle are ones generated by X.
16612         - When sending _NET_ACTIVE_WINDOW, the first param should be 1, to
16613         match gtk's (functioning) handling of this. This keep metacity
16614         from leaving droppings in the form of wm borders with no window
16615         contents all over the place.
16616
16617         * Control.cs:
16618         - add a bunch of debug spew wrt control recreation.
16619         - fix a bug where we weren't tracking Visible properly on
16620         recreated hwnds.
16621         - fixed the WM_PAINT double buffer handling to support re-entrant
16622         calls (yes, i know it's gross, but it's happening to us).
16623
16624 2006-10-17  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
16625         * ThemeWin32Classic.cs: changed drawing of selected days
16626         to make them look better.
16627
16628 2006-10-16  Chris Toshok  <toshok@ximian.com>
16629
16630         * Hwnd.cs: replace the user_data/client_dc/non_client_dc with
16631         drawing_stack.  Nuke the ClientDC/NonClientDC properties.
16632
16633         * XplatUIX11.cs: move away from using hwnd.client_dc and
16634         hwnd.non_client_dc and on to a stack of dc's (and in window's
16635         case, PAINTSTRUCT's), so we can deal with nested Paint calls
16636         without puking or not disposing of Graphics objects.
16637
16638         * XplatUIOSX.cs: same.
16639
16640         * XplatUIWin32.cs: same.
16641
16642 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
16643
16644         * FileDialog.cs: Don't call on_directory_changed inside
16645           OnSelectedIndexChanged (it changes the SelectedIndex too).
16646           Instead move it to OnSelectionChangeCommitted.
16647
16648 2006-10-13  Chris Toshok  <toshok@ximian.com>
16649
16650         * XplatUIX11.cs: more Destroy work.  the current code does the
16651         following things, in order:
16652
16653         1. Enumerates all handles of all controls at or below the one
16654         being destroyed, in pre-order.  As it is doing this, it marks the
16655         handles as zombie and clears all references to them.
16656         
16657         2. calls XDestroyWindow on the window passed in.
16658
16659         3. SendMessage's WM_DESTROY to all he handles in the accumulated
16660         list.
16661
16662 2006-10-13  Chris Toshok  <toshok@ximian.com>
16663
16664         * XplatUIX11.cs: set hwnd.zombie to true before calling
16665         SendMessage (WM_DESTROY).  this keeps us from marking the new
16666         window a zombie, and also keeps us from calling sendmessage at
16667         all.
16668
16669 2006-10-13  Jackson Harper  <jackson@ximian.com>
16670
16671         * TextControl.cs: Do not show the caret and selection at the same
16672         time.  Reduces ugliness by 35%.
16673
16674 2006-10-13  Chris Toshok  <toshok@ximian.com>
16675
16676         * XplatUIX11.cs (SendWMDestroyMessages): set the hwnd to be a
16677         zombie after we do the recursive call, so we actually do call
16678         SendMessage on the children controls.
16679         (GetMessage): if we find a pending paint event for a zombie hwnd,
16680         remove the hwnd from the paint queue, or else it will always be
16681         there (and we'll effectively loop infinitely)
16682
16683 2006-10-13  Mike Kestner  <mkestner@novell.com>
16684
16685         * MenuItem.cs : add Selected format under keynav too.
16686         Fixes #79528.
16687
16688 2006-10-13  Gert Driesen  <drieseng@users.sourceforge.net>
16689
16690         * PropertyGrid.cs: Fixed some NRE's and small difference between our
16691         implementation and that of MS.
16692
16693 2006-10-13  Chris Toshok  <toshok@ximian.com>
16694
16695         * Control.cs (OnInvalidated) only futz with the invalid_region if
16696         the control is double buffered.  this fixes the apparent hang in
16697         the ListView unit tests.  Someone needs to make the
16698         BeginEndUpdateTest not call OnInvalidated 15004 times, though..
16699
16700 2006-10-13  Chris Toshok  <toshok@ximian.com>
16701
16702         * PropertyGridView.cs:
16703
16704         - do a little refactoring so that only one place calls
16705         dropdown_form.Hide, and that is CloseDropDown.  make everywhere
16706         else call that.  Also make it Refresh, since there are redraw bugs
16707         otherwise (we should take a look at that...)
16708
16709         - do a little more refactoring work to share the body of code
16710         involved with the drop down.  it was duplicated in the code
16711         dealing with the listbox handling and in the code dealing with the
16712         UITypeEditors.
16713
16714         - add a Capture to the dropdown form's control once it's
16715         displayed, and add a MouseDown handler that checks to make sure
16716         the position is inside the control.  If it's not, close the
16717         dropdown.  This fixes #78190.
16718
16719         - in SetPropertyValueFromUITypeEditor, only call SetPropertyValue
16720         if the value is different than the initial value.
16721         
16722 2006-10-13  Andreia Gaita  <shana.ufie@gmail.com>
16723
16724         * Control.cs: see #78650
16725         - Fixed GetNextControl for several cases:
16726                 - Changed FindFlatForward to return 
16727                 correct sibling control when more than one
16728                 control has same TabIndex as the currently 
16729                 focused one.
16730                 - Changed FindFlatBackward to loop children
16731                 from last to first and apply same logic as in
16732                 FindFlatForward
16733                 - Changed FindControlForward to search for
16734                 children when control is not a container
16735                 but has children, or search for siblings if
16736                 control is a container...
16737                 - Changed FindControlBackward   to continue
16738                 searching for child controls when hitting 
16739                 Panel-like parents
16740                 
16741         - Fixed Focus method to update ActiveControl
16742         (FocusTest.FocusSetsActive failure)
16743         
16744         * TabControl.cs:
16745         - Focus rectangle now refreshes when gaining
16746         or losing focus
16747         - Removed grab for Tab key on IsInputKey that 
16748         was keeping tab navigation from working (#78650)
16749
16750 2006-10-13  Chris Toshok  <toshok@ximian.com>
16751
16752         * PropertyGridView.cs:
16753         - Rewrite SetPropertyValue to loop over SelectedGridItem's
16754         SelectedObjects.
16755
16756         - Deal with GridItem.Value == null a few places.
16757
16758         * PropertyGrid.cs: 
16759         - replace the PopulateGridItemCollection with a pair of methods
16760         which compute the intersection of all the properties in the
16761         SelectedObjects array.  Fixes #79615.
16762
16763         - Throw ArgumentException from set_SelectedObjects if there's a
16764         null in the array.
16765
16766         - Add GetTarget method which can be used to traverse up the
16767         GridItem.Parent chain.  It depends on the assumption that
16768         selected_objects for different GridEntries are always in the same
16769         order (a safe assumption).  Use this method and loop over all the
16770         selected objects in the entry when calling RemoveValueChanged and
16771         AddValueChanged.
16772         
16773         * GridEntry.cs: Make this handle multiple selected objects.
16774         .Value returns null if not all the selected objects share the same
16775         value.
16776
16777 2006-10-12  Jonathan Pobst  <monkey@jpobst.com>
16778         * ToolStrip.cs, ToolStripButton.cs, ToolStripComboBox.cs,
16779           ToolStripControlHost.cs, ToolStripItem.cs, ToolStripLabel.cs,
16780           ToolStripProfessionalRenderer.cs, ToolStripProgressBar.cs,
16781           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs,
16782           ToolStripTextBox.cs: Add accessibility, fix attributes/API and
16783         add additional functionality.
16784
16785 2006-10-12  Mike Kestner  <mkestner@novell.com>
16786
16787         * ErrorProvider.cs : new ToolTipWindow ctor sig.
16788         * HelpProvider.cs : new ToolTipWindow ctor sig.
16789         * ToolTip.cs : remove ToolTip param from Window sig since it is
16790         not used.
16791         * ToolBar.cs : add tooltip support.  Fixes #79565.
16792
16793 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
16794
16795         * ComboBox.cs: move the events in set_SelectedIndex to 
16796         after the call to HighlightIndex in order to avoid 
16797         possible recursion and subsequent problems with the call
16798         to HighlightIndex and include a range check in 
16799         set_HighlightIndex. Fixes #79588
16800         
16801 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
16802
16803         * MonthCalendar.cs: When FirstDayOfWeek is default set firstday 
16804         to ui thread's settings instead of sunday. 
16805         * ThemeWin32Classic.cs: Localize the day string. Fixes #79563
16806
16807 2006-10-12  Rolf Bjarne Kvinge  <rolfkvinge@ya.com>
16808
16809         * DateTimePicker.cs
16810         * MonthCalendar.cs
16811         * ThemeWin32Classic.cs: rewrote DateTimePicker to fix bug #78364
16812         and implement missing functionality (selecting different parts 
16813         of the date and edit them individually with the keyboard).
16814         
16815 2006-10-11  Chris Toshok  <toshok@ximian.com>
16816
16817         * Control.cs (OnInvalidated): fix NRE relating to last change.
16818
16819 2006-10-11  Chris Toshok  <toshok@ximian.com>
16820
16821         * XplatUIX11.cs (SetWMStyles): make sure we include the MAXIMIZED
16822         atoms in _NET_WM_STATE here if the window is maximized.  We need
16823         to do this because we're *replacing* the existing _NET_WM_STATE
16824         property, so those atoms will be lost otherwise, and any further
16825         call to GetWindowState will return Normal for a window which is
16826         actually maximized.  Fixes #79338.
16827
16828 2006-10-11  Jackson Harper  <jackson@ximian.com>
16829
16830         * TextControl.cs: Special case for setting selection end to
16831         selection start, we basically kill the anchor.
16832         - some todo comments.
16833
16834 2006-10-11  Chris Toshok  <toshok@ximian.com>
16835
16836         * Control.cs: switch to using an "invalid_region" to track which
16837         parts of the image buffer need updating.  This is more code than
16838         the simple fix from r66532.  That version just attempted to always
16839         fill the entire buffer on redraw, which turns out to be
16840         inefficient when invalidating small rectangles.  This version
16841         simply adds the invalid rectangle to the invalid region.  When we
16842         get any WM_PAINT message we see if it can be filled using the
16843         image buffer, and if it can't (if the paint event's clip rectangle
16844         is visible in the invalid region) we first fill the image buffer.
16845         So, the image buffer is still a cache, we just fill it lazily.
16846
16847         * PaintEventArgs.cs: remove the SetClipRectangle method, we don't
16848         need it any longer.
16849
16850 2006-10-11  Chris Toshok  <toshok@ximian.com>
16851
16852         * XplatUIX11.cs (SetWindowPos): we need to update both position as
16853         well as size after calling XMoveResizeWindow.  This keeps us from
16854         ignoring future SetWindowPos calls.  Fixes the disappearing
16855         DateTimePicker in the ToolBarDockExample from bug #72499.
16856
16857 2006-10-11  Chris Toshok  <toshok@ximian.com>
16858
16859         * TextBoxBase.cs: reorder things a bit when it comes to
16860         resizing-causing-recalculation.  we were recalculating the
16861         document when our position was changed, which shouldn't happen.
16862         We only care about size changes.  Clear up some more redundant
16863         recalculation calls while I'm at it.  This makes the toolbar dock
16864         example snappy when you're just dragging toolbars around (since it
16865         causes a relayout whenever you move one.)
16866
16867 2006-10-11  Chris Toshok  <toshok@ximian.com>
16868
16869         * ToolBarButton.cs (get_Rectangle): this only returns
16870         Rectangle.Empty if Visible == false, or Parent == null.
16871         Parent.Visible doesn't matter.
16872
16873 2006-10-10  Chris Toshok  <toshok@ximian.com>
16874
16875         * Control.cs, PaintEventArgs.cs: "internal set { .. }" isn't loved
16876         by .net 1.1, so switch to an internal method instead.
16877
16878 2006-10-10  Chris Toshok  <toshok@ximian.com>
16879
16880         * Control.cs (WM_PAINT): when a control is double buffered we draw
16881         initially to the ImageBuffer and then copy from there.  But when a
16882         parent control which has child controls is double buffered, the
16883         initial drawing doesn't encompass the entire ClientRectangle of
16884         the parent control, so we end up with uninitialized bits (this is
16885         easily seen by dragging the top toolbar in
16886         wf-apps/ToolBarDockExample to the right, quickly).  The fix is to
16887         manually set the ClipRectangle of the paint_event (only the one we
16888         use to populate the ImageBuffer) to ClientRectangle.  Fixes more
16889         of the nastiness in bug #72499.
16890
16891         * PaintEventArgs.cs: Add an internal setter for ClipRectangle,
16892         which we use in Control.cs's WM_PAINT handling.
16893
16894 2006-10-10  Jackson Harper  <jackson@ximian.com>
16895
16896         * TextBoxBase.cs: Finish off the autoscrolling stuff.
16897
16898 2006-10-10  Chris Toshok  <toshok@ximian.com>
16899
16900         * Cursor.cs: Apply a slightly different patch to the one suggested
16901         in #79609.
16902
16903 2006-10-10  Jackson Harper  <jackson@ximian.com>
16904
16905         * MenuItem.cs: Make sure to put the mdi child in the hashtable,
16906         not the parent form.
16907         * TextControl.cs: use difference in old line count vs new count to
16908         calculate how many lines were added, this takes into account soft
16909         line breaks properly.
16910
16911 2006-10-10  Chris Toshok  <toshok@ximian.com>
16912
16913         * LinkLabel.cs: don't call MeasureCharacterRanges against a
16914         rectangle located at 0,0 and the size of the text.  Use
16915         ClientRectangle instead.  This fixes rendering of non-left aligned
16916         link labels.
16917
16918 2006-10-10  Jackson Harper  <jackson@ximian.com>
16919
16920         * TextBoxBase.cs: When we set the selection start position the
16921         caret.
16922         * TextControl.cs: Need to update the caret when we decrement it to
16923         zero.
16924         - Make sure that the selection_visible flag gets reset to false if
16925         the selection isn't visible.  Before this you could get it set to
16926         visible by changing the selection start, then changing the end to
16927         equal the start.
16928
16929 2006-10-09  Jackson Harper  <jackson@ximian.com>
16930
16931         * TreeView.cs: Don't update scrollbars when we aren't visible.
16932         * TreeNodeCollection.cs: Only need to update scrollbars if being
16933         added to an expanded visible node or the root node.
16934
16935 2006-10-09  Chris Toshok  <toshok@ximian.com>
16936
16937         * XplatUIX11.cs (SendMessage): fix NRE.
16938
16939 2006-10-09  Jackson Harper  <jackson@ximian.com>
16940
16941         * TextBoxBase.cs: Implement horizontal autoscrolling.
16942         * TextControl.cs: Add a movement types that allows moving forward
16943         and backwards without wrapping.
16944
16945 2006-10-09  Mike Kestner  <mkestner@novell.com>
16946
16947         * ListViewItem.cs : layout changes for wrapped LargeIcon labels
16948         with focus "expansion" of labels.  Fixes #79532 and then some.
16949         * ThemeWin32Classic.cs : add LineLimit to ListView label format
16950         when wrapping.
16951
16952 2006-10-09  Jackson Harper  <jackson@ximian.com>
16953
16954         * TextBoxBase.cs: Set the default max values to MaxValue since
16955         we use the scrollbar for autoscrolling and the default value is
16956         100.  If we don't do this the caret won't keep up with typing
16957         after about 18 characters.
16958         * TextControl.cs: Make sure the selection is offset by the
16959         viewport x.  This fixes selection when using auto scrolling.
16960
16961 2006-10-07  Andreia Gaita <shana.ufie@gmail.com>
16962         
16963         * Form.cs: The active control should be selected after the 
16964         OnLoad so that any child control initialization that affects
16965         the selection is done. Fixes #79406
16966
16967 2006-10-06  Chris Toshok  <toshok@ximian.com>
16968
16969         * XplatUIX11.cs: This is perhaps a dangerous change, but it seems
16970         to have no evil effects.
16971
16972         - Stop selecting StructureNotifyMask on non-toplevel windows.
16973
16974           The only way children should be resized is by using the SWF api,
16975           and we already send WM_WINDOWPOSCHANGED messages in those cases.
16976           Toplevel windows can be interacted with via the window manager,
16977           and so we keep the input mask there.
16978
16979           The other event StructureNotifyMask gives us (that we care
16980           about) is DestroyNotify.  The code is already structured such
16981           that it assumes we won't be getting a DestroyNotify event for
16982           the window we pass to XDestroyWindow (which is what
16983           StructureNotifyMask is supposed to guarantee.)  So, that code
16984           shouldn't be affected by this either.
16985
16986         - Stop selecting VisibilityChangeMask altogether.
16987
16988           We weren't doing anything with the resulting events anyway.
16989         
16990         This vastly reduces the number of X requests and events we see
16991         when resizing/laying out a large ui.
16992
16993 2006-10-06  Chris Toshok  <toshok@ximian.com>
16994
16995         * ScrollableControl.cs (DisplayRectangle): we need to take into
16996         account the DockPadding regardless of whether or not auto_scroll
16997         == true.  rework this slightly to this effect, and fix bug #79606,
16998         and part of #72499 (you can now see the drag handles and drag
16999         toolbars around).
17000
17001 2006-10-06  Gert Driesen  <drieseng@users.souceforge.net>
17002
17003         * ListViewItem.cs: Collections of selected and checked items are now
17004         dynamically rebuilt. Whenever an item is (un)checked or (de)selected
17005         we mark the collection "dirty".
17006         * ListView.cs: Marked collections readonly. Modified UpdateSelection
17007         to only clear SelectedItems when a new item is selected and MultiSelect
17008         is enabled. CheckedItems and SelectedItems now subscribe to Changed
17009         event of ListViewItemCollection, and mark its list dirty whenever
17010         that event is fire. This allows us to return selected/checked items 
17011         in the same order as they are in the Items collection. This matches
17012         the MS behavior.
17013
17014 2006-10-06  Chris Toshok  <toshok@ximian.com>
17015
17016         * NotifyIcon.cs (HandleMouseUp): only show the context menu on
17017         right mouse clicks.  Fixes bug #79593.
17018
17019 2006-10-06  Chris Toshok  <toshok@ximian.com>
17020
17021         * Splitter.cs: doh, fix splitters that don't want to cancel the
17022         movement when you drag them.  Also, impose the limits on the
17023         values we send to the SplitterMovingEvent.  Fixes #79598.
17024
17025 2006-10-06  Jackson Harper  <jackson@ximian.com>
17026
17027         * TextBoxBase.cs: Ignore whether or not the scrollbar is enabled,
17028         since we use this for auto scrolling also.
17029
17030 2006-10-05  Chris Toshok  <toshok@ximian.com>
17031
17032         * DataGridBoolColumn.cs: Nuke the code from ConcedeFocus.  I'm
17033         beginning to think that most datagrid column types don't need this
17034         method.  Fixes bug #79392.
17035
17036 2006-10-05  Chris Toshok  <toshok@ximian.com>
17037
17038         * DataGrid.cs: move back to a more lazy scheme for creating the
17039         CurrencyManager, so we aren't updating it every time you set
17040         either DataSource or DataMember.  Also, don't call
17041         RecreateDataGridRows if the currency manager hasn't changed.
17042
17043 2006-10-05  Chris Toshok  <toshok@ximian.com>
17044
17045         * ComboBox.cs: by the time the OnSelectionChangeCommitted event is
17046         emitted, SelectedIndex should already be updated.  Fixes bug
17047         #78929.
17048
17049 2006-10-05  Jonathan Pobst  <monkey@jpobst.com>
17050
17051         * ToolStripComboBox.cs, ToolStripControlHost.cs, ToolStripProgressBar,
17052           ToolStripTextBox.cs: Initial commit.
17053         * ToolStripItem.cs: Fixes for OnLayout, BackColor, Parent.
17054
17055 2006-10-05  Jackson Harper  <jackson@ximian.com>
17056
17057         * TabControl.cs: We need to invalidate the tab control area when
17058         new ones are added (duh).
17059
17060 2006-10-03  Chris Toshok  <toshok@ximian.com>
17061
17062         * Form.cs (ProcessDialogKey): if the focused control is in this
17063         form and is a button, call its PerformClick method here.  Fixes
17064         #79534.
17065
17066 2006-10-04  Jackson Harper  <jackson@ximian.com>
17067
17068         * TabPage.cs: Ignore setting of Visible, and add an internal
17069         method for setting the controls visibility.  TabPage's Visible
17070         property is a little strange on MS, this seems to make us
17071         compatible, and fixes cases where people set all the tab pages to
17072         visible.
17073         * TabControl.cs: Use the new internal setting on tab pages
17074         visibility.
17075
17076 2006-10-03  Mike Kestner  <mkestner@novell.com>
17077
17078         * ComboBox.cs : raise Click on ComboTextBox clicks. Fixes #79555.
17079
17080 2006-10-03  Mike Kestner  <mkestner@novell.com>
17081
17082         * ListView.cs : use is_visible instead of Visible to check if 
17083         scrollbars should be placed/sized.  Also some max_wrap_width
17084         love for LargeIcon view.  [Fixes #79533]
17085
17086 2006-10-03  Atsushi Enomoto  <atsushi@ximian.com>
17087
17088         * TextControl.cs :
17089           Make set_TextAlign() do actually update the align. Fixed #78403.
17090
17091 2006-10-03  Chris Toshok  <toshok@ximian.com>
17092
17093         * DataGrid.cs: fix a crash when switching datasources if the
17094         vertical scrollbar is at someplace other than Value = 0.  Also,
17095         reduce the number of recalculation passes we do in SetDataSource
17096         from 2 to 1.
17097
17098 2006-10-03  Jackson Harper  <jackson@ximian.com>
17099
17100         * TextBoxBase.cs: Move the if value the same bail check up, we
17101         don't want to empty the document if it is already empty, this
17102         seems to severly mess up the caret.  TODO: I should probably fix
17103         the empty statement to update teh caret somehow.
17104
17105 2006-10-03  Chris Toshok  <toshok@ximian.com>
17106
17107         * ThemeWin32Classic.cs, DataGrid.cs: some changes so that the
17108         incredibly hacky Windows.Forms FAQ autosize rows entry (it uses
17109         reflection, an internal row type, properties on said type, etc.)
17110         will work with our datagrid.  Fixes #79531.
17111
17112 2006-10-03  Alexander Olk  <alex.olk@googlemail.com>
17113
17114         * FileDialog.cs: Don't crash if a path is not accessible
17115           (System.UnauthorizedAccessException). Fixes #79569.
17116         * MimeIcon.cs: Workaround for a Uri bug. Unix paths/files can have
17117           a ':' too. Return unknown icon for those paths/files.
17118
17119 2006-10-03  Sebastien Pouliot  <sebastien@ximian.com>
17120
17121         * ToolTip.cs: Fix rare, but possible, NRE on MouseEnter when 
17122         GetContainerControl returns null.
17123
17124 2006-10-02  Chris Toshok  <toshok@ximian.com>
17125
17126         * XplatUIX11.cs (GetWindowState): use hwnd.client_window in the
17127         call to XGetWindowAttributes instead of "handle".  fixes an X
17128         error using notifyicon after the NotifyIconWindow to Form base
17129         class switch.
17130
17131 2006-10-02  Chris Toshok  <toshok@ximian.com>
17132
17133         * XplatUIX11.cs (QueryPointer): new function, encapsulating the
17134         server grab and looping we need to do to get down to the most
17135         deeply nested child window.
17136         (SetCursorPos): use QueryPointer instead of GetCursorPos, and call
17137         QueryPointer again after the WarpPointer so we can generate a
17138         proper (fake) MotionNotify event to be enqueued in the destination
17139         window's queue.
17140         (GetCursorPos): call QueryPointer.
17141
17142         Fixes #79556.
17143
17144 2006-10-02  Jackson Harper  <jackson@ximian.com>
17145
17146         * NotifyIcon.cs: Derive the notify icon from a form, so things
17147         like FindForm work on it.
17148         - Swallow the WM_CONTEXTMENU message, since that is generated on
17149         mouse down, and context menu is a mouse up kinda guy.  I believe
17150         the correct fix here is probably to make the notify icon entirely
17151         NC area, but this seems to work fine for anyone not manipulating
17152         WndProc.
17153
17154 2006-10-02  Jonathan Pobst  <monkey@jpobst.com>
17155
17156         * ToolStrip.cs, ToolStripButton.cs, ToolStripItem.cs,
17157           ToolStripItemCollection.cs, ToolStripLabel.cs,
17158           ToolStripProfessionalRenderer.cs, ToolStripRenderer.cs,
17159           ToolStripSeparator.cs, ToolStripSplitStackLayout.cs:
17160           Initial implementation.
17161         * TextRenderer.cs: Provide padding to MeasureText.
17162
17163 2006-10-02  Sebastien Pouliot  <sebastien@ximian.com>
17164
17165         * ButtonBase.cs: Fix CreateAccessibilityInstance to return an instance
17166         of ButtonBaseAccessibleObject. Fix bug #79552.
17167
17168 2006-10-02  Jackson Harper  <jackson@ximian.com>
17169
17170         * MdiWindowManager.cs: When maximizing use the containers client
17171         rect, not it's bounds, so nc area is accounted correctly.
17172         - Use the parent form's size for the menu position, since the
17173         client isn't always the full form size.
17174
17175 2006-10-01  Chris Toshok  <toshok@ximian.com>
17176
17177         * ScrollableControl.cs: make sure neither right_edge or
17178         bottom_edge are < 0, since they're used as LargeChange for the
17179         horiz/vert scrollbars respectively.  Fixes #79539.
17180
17181 2006-10-01  Chris Toshok  <toshok@ximian.com>
17182
17183         * NotifyIcon.cs: add NotifyIconWindow.InternalRecreateHandle, so
17184         the xplatuix11 code can cause us to destroy/recreate our handle.
17185
17186         * XplatUIX11.cs
17187         (SystrayAdd):
17188         - this code can be invoked many times for the same Hwnd.  Make
17189           sure we only destroy the client window once (the first time this
17190           method is called).  This fixes bug #79544.
17191         - Remove the call to the improperly bound XSync.  why we had two
17192           bindings to this, I will never know, but this call resulted in
17193           events being discarded from the queue(!).
17194         - correct a misunderstanding of _XEMBED_INFO - the second atom is
17195           not our current state but the state we wish to be in.  So, 0 if
17196           we don't want to be mapped.  Change it to 1.
17197         (SystrayRemove): The XEMBED spec makes mention of the fact that
17198         gtk doesn't support the reparent of client windows away from the
17199         embedder.  Looking at gtksocket-x11.c seems to agree with this.
17200         The only avenue we have for removing systray icons is to destroy
17201         them.  We don't want the handle to go away for good, though, so
17202         call InternalRecreateHandle on the NotifyIconWindow.  Fixes
17203         #79545.
17204         
17205 2006-10-01  Chris Toshok  <toshok@ximian.com>
17206
17207         * Form.cs (WndProc): inline the native_enabled variable usage into
17208         the cases in which it's used.  Fixes #79536.
17209
17210 2006-09-29  Mike Kestner  <mkestner@novell.com>
17211
17212         * ListView.cs : toggle the selection state for ctrl clicks in 
17213         multiselect mode. [Fixes #79417]
17214
17215 2006-09-29  Mike Kestner  <mkestner@novell.com>
17216
17217         * ListView.cs : kill CanMultiSelect and refactor the selection
17218         code to support multiselection in the absence of mod keys. Steal
17219         arrow/home/end keys by overriding InternalPreProcessMessage to
17220         restore regressed keynav behavior.
17221         [Fixes #79416]
17222
17223 2006-09-29  Jackson Harper  <jackson@ximian.com>
17224
17225         * MdiClient.cs: Repaint the titlebars when the active window is
17226         changed.
17227
17228 2006-09-29  Chris Toshok  <toshok@ximian.com>
17229
17230         * Application.cs: when entering a runloop with a modal, make sure
17231         the hwnd is enabled.  Fixes #79480.
17232
17233 2006-09-29  Chris Toshok  <toshok@ximian.com>
17234
17235         * DataGrid.cs (CurrentCell): if we try to navigate to the add row
17236         when ListManager.CanAddRows == false, bump us back one.
17237
17238         * DataGridColumnStyle.cs (ParentReadOnly): remove the
17239         listmanager.CanAddRows check.  This makes ArrayLists uneditable
17240         using a datagrid, which is not right.
17241         (SetColumnValueAtRow): call IEditable.BeginEdit if source[rowNum]
17242         is an IEditable, but call property_descriptor.SetValue regardless.
17243         fixes #79435.
17244
17245 2006-09-29  Chris Toshok  <toshok@ximian.com>
17246
17247         * DataGridBoolColumn.cs: we need to test equality in the face of
17248         possible null values (as is the case with the default NullValue).
17249         This patch keeps us from crashing in that case.
17250
17251 2006-09-29  Jackson Harper  <jackson@ximian.com>
17252
17253         * TreeNodeCollection.cs: Don't do a recalculate/updatescrollbars
17254         here, since it will get called for every node collection in the
17255         tree. This is now done in the treeview once the sorting is
17256         finished.
17257         * TreeView.cs: Recalculate the visible order, and update the
17258         scrollbars after sorting, set the top nope to the root so that the
17259         recalc actually works.
17260
17261 2006-09-29  Chris Toshok  <toshok@ximian.com>
17262
17263         * LinkLabel.cs: more handling of the default link collection in
17264         the face of LinkArea manipulation.  The default link collection
17265         contains 1 element (start=0,length=-1).  If the user sets LinkArea
17266         to anything and the links collection is the default, clear it.
17267         Then only add the link if its nonempty.  Fixes #79518.
17268
17269 2006-09-29  Chris Toshok  <toshok@ximian.com>
17270
17271         * LinkLabel.cs (CreatePiecesFromText): calculate the length of a
17272         piece correctly when we hit a '\n'.  Fixes #79517.
17273
17274 2006-09-29  Chris Toshok  <toshok@ximian.com>
17275
17276         * MimeIcon.cs, ThemeGtk.cs, X11DesktopColors.cs, XplatUIX11GTK.cs:
17277         change the binding of gdk_init_check to take two IntPtr's, and
17278         pass IntPtr.Zero for both of them.  Fixes #79520.
17279
17280 2006-09-29  Mike Kestner  <mkestner@novell.com>
17281
17282         * ComboBox.cs : raise TextChanged on ComboTextBox.TextChanged.
17283         [Fixes #78779]
17284
17285 2006-09-28  Jackson Harper  <jackson@ximian.com>
17286
17287         * XplatUIX11.cs: When translating NC messages make sure we go from
17288         whole window to screen, not client window to screen.
17289         * MdiClient.cs: Remove the calls to PaintWindowDecorations, this
17290         method doesn't exist
17291         - Skip over controls that aren't forms when arranging.
17292
17293 2006-09-28  Jackson Harper  <jackson@ximian.com>
17294
17295         * XplatUIWin32.cs: Clip the rect to the parent window.
17296         * XplatUIStructs.cs: Add clipping modes struct.
17297         * InternalWindowManager.cs: New private method that factors title
17298         bar heights in when calculating the pos of an NC mouse message.
17299         - Use SendMessage to force a paint when the form's size is changed
17300         instead of painting the decorations immediately.
17301         - Don't let the NC button click messages get to DefWndProc,
17302         because they will attempt to handle windowing themself, and this
17303         messes up z-order (it will put them in front of the scrollbars).
17304         * XplatUIX11.cs: Make sure that we don't reset window managers if
17305         we already have one (ie the window is an MDI window).
17306
17307 2006-09-28  Chris Toshok  <toshok@ximian.com>
17308
17309         * MainMenu.cs: fix #79405 by way of a disgusting hack.  all the
17310         menu code really needs going over.
17311
17312 2006-09-27  Chris Toshok  <toshok@ximian.com>
17313
17314         * XplatUIX11.cs (SetWMStyles): more metacity wonderment.  turns
17315         out metacity ignores the MAXIMIZE_HORZ/VERT messages unless the
17316         window is maximizable.  So, we need to make sure that even if we
17317         clear the border/wm frame of those functions, they're still
17318         available (basically, we remove the decoration without removing
17319         the function).  Half the fix for #79338.
17320
17321 2006-09-27  Chris Toshok  <toshok@ximian.com>
17322
17323         * DataGrid.cs (ProcessGridKey): implement Shift-Tab handling.
17324         Fixes bug #79515.
17325
17326 2006-09-27  Chris Toshok  <toshok@ximian.com>
17327
17328         * Splitter.cs: reorder things a bit so that we don't actually
17329         draw/move the splitter until after calling OnSplitterMoving.  This
17330         lets users cancel/disallow the movement by explicitly setting
17331         event.SplitX/SplitY.  Fixes #79372.
17332
17333 2006-09-27  Jackson Harper  <jackson@ximian.com>
17334
17335         * XplatUIX11.cs: Don't hide the caret when it is being destroyed,
17336         because it is most likely on a window being destroyed, and that
17337         will give us an X11 error.
17338
17339 2006-09-27  Chris Toshok  <toshok@ximian.com>
17340
17341         * PropertyGridView.cs: half of the fix for #78190.  Clicking on
17342         the dropdown button now toggles between showing and hiding the
17343         dropdown.  Also, get rid of dropdown_form_showing and just use
17344         dropdown_form.Visible.  We still don't do a grab, but I'll leave
17345         that part to someone who has handled Capture-fu before.
17346
17347 2006-09-27  Chris Toshok  <toshok@ximian.com>
17348
17349         * DataGrid.cs: return false if alt isn't pressed when '0' is
17350         pressed.  this keeps the '0' key from being swallowed, and fixes
17351         bug #79350.
17352
17353 2006-09-27  Chris Toshok  <toshok@ximian.com>
17354
17355         * ComboBox.cs: use Invalidate when scrolling the dropdown list.
17356         Calling Refresh (in response to a scrollbar event) screws up the
17357         scrollbar painting.  Fixes bug #78923.
17358
17359 2006-09-27  Chris Toshok  <toshok@ximian.com>
17360
17361         * Theme.cs (SystemResPool): make the "if hashtable[key] == null
17362         then insert into hashtable" blocks threadsafe.
17363
17364 2006-09-27  Chris Toshok  <toshok@ximian.com>
17365
17366         * MessageBox.cs (CreateParams): the styles should be |'ed with our
17367         baseclass's, since otherwise the
17368         ControlBox/MinimizeBox/MaximizeBox assignments above have no
17369         effect.  This gets the close button back in messageboxes.
17370
17371 2006-09-27  Chris Toshok  <toshok@ximian.com>
17372
17373         * XplatUIX11.cs: make StyleSet and ExStyleSet check == with the
17374         flag, not just != 0.  this makes flags that are actually multiple
17375         bits (like WS_CAPTION) work.  fixes bug #79508.
17376
17377 2006-09-27  Jordi Mas i Hernandez <jordimash@gmail.com>
17378
17379         * PageSetupDialog.cs: add support for getting and settings the 
17380         paper size, source and orientation.
17381
17382 2006-09-26  Chris Toshok  <toshok@ximian.com>
17383
17384         * XplatUIX11.cs (SetWMStyles): turns out when SYSMENU is not set
17385         and caption == "", we need to remove the resize handles as well as
17386         the title bar.
17387
17388         * Control.cs (set_Text): turns out that setting Text on a form
17389         should change the WM styles on the window, since if ControlBox ==
17390         false, the only way to get a window border is to have a non-""
17391         Text property.  check winforms/forms/text.cs for an example.  so,
17392         call both XplatUI.SetWindowStyle and XplatUI.Text here to properly
17393         update both window styles and title.  This fixes a lot of dialogs
17394         (including the preferences dialog in MonoCalendar.)
17395
17396 2006-09-26  Chris Toshok  <toshok@ximian.com>
17397
17398         * XplatUIWin32.cs (SetParent): if parent == IntPtr.Zero (and the
17399         control isn't a Form), call Win32ShowWindow to hide the window,
17400         but don't update the control Visible property.  When we reparent
17401         back to a parent control, call SetVisible in order for the
17402         window's visibility to be reinstated.
17403
17404         * XplatUIX11.cs (SetParent): if hwnd.parent == null, reparent to
17405         the FosterParent.
17406
17407         * Control.cs (ControlCollection.Remove): remove that value.Hide()
17408         call for good, since it breaks MonoCalendar (and other things I'm
17409         sure.) Also, set all_controls to null *after* the owner calls,
17410         which end up regenerating it.
17411         (ChangeParent): allow new_parent to be == null, passing
17412         IntPtr.Zero down to XplatUI.
17413
17414         this fixes #79294 the right way.
17415
17416 2006-09-26  Mike Kestner  <mkestner@novell.com>
17417
17418         * GridEntry.cs : internal SetParent method.
17419         * PropertyGrid.cs : attach to property changed on the proper
17420         target if we have a hierarchical grid with subobjects. Setup
17421         GridItem.Parent for hierarchical items.
17422         * PropertyGridView.cs : Set value on the correct target for
17423         hierarchical grids. [Fixes #78903]
17424
17425 2006-09-26  Chris Toshok  <toshok@ximian.com>
17426
17427         * Control.cs (ChildNeedsRecreating): this should return true if
17428         either we're being recreated and the child is in our list, or our
17429         parent is waiting for our recreation.
17430
17431 2006-09-26  Chris Toshok  <toshok@ximian.com>
17432
17433         * Control.cs (ControlCollection.Remove): reinstate the
17434         value.Hide() call as suggested in bug #79294.
17435
17436 2006-09-26  Sebastien Pouliot  <sebastien@ximian.com>
17437
17438         * XplatUIX11.cs: Fixed SetCursorPos to move the cursor to screen
17439         coordinates (versus a relative move).
17440
17441 2006-09-26  Chris Toshok  <toshok@ximian.com>
17442
17443         * Control.cs: rework child recreation a little bit.  It turns out
17444         that we race between the DestroyNotify the WM_DESTROY message.  If
17445         the parent gets its DestroyNotify before the child gets the
17446         WM_DESTROY message, the child ends up not recreating (since the
17447         parent finishes its recreation on DestroyNotify, and the child
17448         checks ParentIsRecreating.)
17449
17450         So, instead we store off a list of all the child controls which
17451         need to be recreated when the parent control starts to recreate
17452         itself.  Then, when child controls get their WM_DESTROY message we
17453         check to see if they're in the parent's pending recreation list,
17454         and if so, we recreate.  This removes all dependency on ordering
17455         from the code and fixes the initial MonoCalendar upgrade dialog.
17456         
17457 2006-09-26  Jackson Harper  <jackson@ximian.com>
17458
17459         * TextControl.cs: Use the Line to get the length of the line,
17460         since soft line breaks can change the end line.
17461
17462 2006-09-26  Chris Toshok  <toshok@ximian.com>
17463
17464         * Control.cs (ControlCollection.AddImplicit): don't add the
17465         control again if it's already in one of our lists.  This keeps us
17466         from adding controls over and over again for comboboxes when their
17467         handle gets recreated (as the combobox adds implicit controls in
17468         OnHandleCreated).  Fixes the X11 errors in bug #79480.
17469
17470 2006-09-26  Jackson Harper  <jackson@ximian.com>
17471
17472         * TextControl.cs: When deleting characters make sure that any
17473         orphaned zero lengthed tags get deleted.
17474         - Fix ToString for zero lengthed tags.
17475
17476 2006-09-25  Jackson Harper  <jackson@ximian.com>
17477
17478         * TextControl.cs: When getting a tag at the location there can be
17479         multiple tags at the same spot, these are 0-lengthed tags that
17480         appear when extra formatting has been stuck in a location.  We
17481         need to pull out the last of these 0 lengthed tags.
17482
17483 2006-09-25  Jackson Harper  <jackson@ximian.com>
17484
17485         * TextControl.cs: Fix print out in debug method.
17486         * TextBoxBase.cs: When text is set bail if we are setting to the
17487         previous value.
17488         
17489 2006-09-24  Alexander Olk  <alex.olk@googlemail.com>
17490
17491         * FontDialog.cs: Fixed the up/down arrow keys issue from bug #79478.
17492           It is now possible to change the selected index in a FontXXXListBox
17493           with the up and down arrow keys from the FontXXXTextBoxes.
17494           Also, send the FontXXXTextBox mouse wheel event to the corresponding
17495           FontXXXListBoxes to match ms.
17496
17497 2006-09-22  Sebastien Pouliot  <sebastien@ximian.com>
17498
17499         * SystemInformation.cs: Return a clone of the theme's MenuFont because
17500         anyone can dispose it, anytime. All other properties returns enums, 
17501         structs or basic types so they don't need such tricks.
17502
17503 2006-09-22  Jackson Harper  <jackson@ximian.com>
17504
17505         * XplatUI.cs:
17506         * XplatUIWin32.cs:
17507         * Clipboard.cs:
17508         * DataFormats.cs:
17509         * XplatUIOSX.cs:
17510         * XplatUIDriver.cs: Update interface to add a primary selection
17511         flag, so the driver can use the primary selection buffer if
17512         needed.
17513         * XplatUIX11.cs: Allow the clipboard to retrieve from PRIMARY.
17514
17515         * RichTextBox.cs: We need to supply the data object to paste now
17516         (so we can choose to supply CLIPBOARD or PRIMARY).
17517         * TextBoxBase.cs: Supply data object to paste (see above).
17518         - Middle click uses the primary selection data object.
17519         
17520 2006-09-21  Chris Toshok  <toshok@ximian.com>
17521
17522         * XplatUIX11.cs: first little cleanup of the StyleSet (...) block
17523         of SetWMStyles.  It's still a rat's nest and is largely
17524         order-dependent which I dislike immensely.  This also fixes the X
17525         button disappearing from toplevel forms.
17526
17527 2006-09-21  Mike Kestner <mkestner@novell.com>
17528
17529         * ListBox.cs: move Jordi's click/dblclick raising code to the
17530         mouse up handler.
17531
17532 2006-09-21  Jordi Mas i Hernandez <jordimash@gmail.com>
17533
17534         * ListBox.cs: Fixes 79450
17535
17536 2006-09-21  Mike Kestner <mkestner@novell.com>
17537
17538         * TreeView.cs: guard against disposed conditions in UpdateScrollbars
17539         to deal with people updating the TreeNodeCollection after the tree
17540         is disposed.  "Fixes" 79330.
17541
17542 2006-09-20  Jackson Harper <jackson@ximian.com>
17543
17544         * TextControl.cs: Push the cursor record onto the undo stack
17545         before the delete action. This fixes 78651.
17546
17547 2006-09-20  Jonathan Chambers  <joncham@gmail.com>
17548
17549         * PropertyGridView.cs: Remove WindowStyles.WS_VISIBLE from
17550         CreateParams. Fixes 79329.
17551
17552 2006-09-19  Chris Toshok  <toshok@ximian.com>
17553
17554         * XplatUIX11.cs: a couple of blanket code massage passes to clean
17555         things up a bit.  First, get rid of the NetAtoms array (and the NA
17556         enum), and just embed the atoms as static fields.  Also, add a
17557         couple of functions (StyleSet and ExStyleSet) to clean up all the
17558         bitmask testing of styles.
17559
17560         * X11Structs.cs: remove the NA enum, not needed anymore.
17561         
17562 2006-09-19  Chris Toshok  <toshok@ximian.com>
17563
17564         * XplatUIX11.cs: apply Alexander's tool window fix for bug #79245
17565         (mapping them to _NET_WM_WINDOW_TYPE_UTILITY).  and add a little
17566         added cleanup to get MessageBox titles appearing again, which were
17567         broken by my earlier fix for caption-less/ControlBox-less windows.
17568
17569 2006-09-18  Jonathan Pobst <monkey@jpobst.com>
17570
17571         * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
17572           ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
17573           ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
17574           ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
17575           ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
17576           ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
17577           ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
17578           ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
17579           ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
17580           ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
17581           ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
17582             Inital import.
17583         * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
17584           ToolStripButton.cs: Stubs needed for above.
17585         * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
17586
17587 2006-09-15  Chris Toshok  <toshok@ximian.com>
17588
17589         * XplatUIX11.cs:
17590         - make the MessageQueues hashtable Synchronized.
17591         
17592         - SendMessage: if the Hwnd is owned by a different thread, use the
17593         AsyncMethod stuff to dispatch the SendMessage on the hwnd's
17594         thread.  Fixes bug #79201.
17595
17596 2006-09-15  Chris Toshok  <toshok@ximian.com>
17597
17598         * XplatUIX11.cs (SetWMStyles): rework the #79368 fix slightly.  If
17599         ControlBox == false, we disallow maximize/minimize/close.  If the
17600         form Caption is "" we also disallow move (and get rid of the Title
17601         decoration).  Unfortunately, regardless of how things are set,
17602         we're stuck with the Title and WM menu.
17603
17604 2006-09-15  Chris Toshok  <toshok@ximian.com>
17605
17606         * Application.cs: add locking around the static message_filters
17607         ArrayList, part of #79196.
17608
17609 2006-09-15  Chris Toshok  <toshok@ximian.com>
17610
17611         * XplatUIX11.cs (SetWMStyles): if Form.Text == "" and
17612         Form.ControlBox == false, the window has no titlebar nor resize
17613         handles.  fixes bug #79368.
17614
17615 2006-09-15  Chris Toshok  <toshok@ximian.com>
17616
17617         * TextBoxBase.cs: in CalculateScrollBars make sure LargeChange is
17618         >= 0.  Fixes bug #79370.
17619
17620 2006-09-15  Jonathan Pobst <monkey@jpobst.com>
17621         * FlowLayoutPanel.cs, FlowLayoutSettings.cs: Initial commit.
17622         * Control.cs:
17623             Add properties: LayoutEngine, Margin, DefaultMargin.
17624             Add method: GetPreferredSize.
17625             Move layout logic from PerformLayout to layout engines. 
17626
17627 2006-09-13  Chris Toshok  <toshok@ximian.com>
17628
17629         * XplatUIX11.cs: more destroy work.  Jackson pointed out that my
17630         fix for #79326 broke #78718, so this change addresses that.
17631
17632         - in SendWMDestroyMessages remove the call to
17633         CleanupCachedWindows, since we might be recreating the control and
17634         need to maintain the references to right Hwnd handles.  Also, set
17635         the zombie flag to true for each of the children in the hierarchy
17636         instead of calling hwnd.Dispose.  This will cause GetMessage to
17637         ignore all events for the window except for DestroyNotify.
17638
17639         - In GetMessage, ignore messages except for DestroyNotify for
17640         zombie hwnds.
17641         
17642         * Control.cs: revert the is_recreating fix from the last
17643         ChangeLog.  It's definitely "right", but it breaks switching from
17644         an MDI form to a non-MDI form.  Will need to revisit that.
17645
17646         * Hwnd.cs: add a zombie flag, which means "the
17647         client_window/whole_window handles are invalid, but we're waiting
17648         for the DestroyNotify event to come in for them".  Set the flag to
17649         false explicitly if setting WholeWindow/ClientWindow, and also
17650         when Disposing.
17651         
17652 2006-09-13  Chris Toshok  <toshok@ximian.com>
17653
17654         * XplatUIX11.cs: rework window destruction slightly.
17655
17656         - when destroying the windows associated with a control, we don't
17657         need 2 separate XDestroyWindow calls.  Just the one for the
17658         whole_window (or for client_window if whole_window is somehow
17659         IntPtr.Zero -- can this happen?) is enough.
17660
17661         - reworked SendWMDestroyMessages slightly, so we always dispose
17662         the child control hwnd's after sending the messages.
17663         
17664         - refactored out the ActiveWindow/FocusWindow/Caret clearing from
17665         the two places it was used (one was even using hwnd.Handle and the
17666         other hwnd.client_window.  ugh), adding another call in
17667         SendWMDestroyMessages.  We need this new call because now the
17668         DestroyNotify events in the queue will be ignored for the child
17669         controls (as their hwnd's were disposed, and the window id's
17670         removed from the hashtable in SendWMDestroyMessages.) fun, eh?
17671
17672         - this fixes bug #79326.
17673
17674 2006-09-13  Chris Toshok  <toshok@ximian.com>
17675
17676         * Control.cs: don't always set is_recreating to false at the end
17677         of RecreateHandle, since sometimes we're not done (and won't be
17678         until WndProc handles the WM_DESTROY message).  Also, set
17679         is_recreating to false in the WM_DESTROY handling code.  Part of
17680         the fix for bug #79326.
17681
17682 2006-09-13  Miguel de Icaza  <miguel@novell.com>
17683
17684         * X11DesktopColors.cs: Start the droppage of debugging messages.
17685
17686         * FileDialog.cs: Store the configuration file in ~/.mono/mwf_config
17687
17688 2006-09-13  Jonathan Pobst <monkey@jpobst.com>
17689
17690         * SplitContainer.cs, SplitterPanel.cs: Initial implementation [2.0].
17691
17692 2006-09-12  Chris Toshok  <toshok@ximian.com>
17693
17694         * DataGrid.cs (get_ListManager): if the list_manager is null, try
17695         to create it using SetDataSource.  Fixes bug #79151.
17696
17697 2006-09-11  Chris Toshok  <toshok@ximian.com>
17698
17699         * XEventQueue.cs: add a DispatchIdle property.
17700
17701         * XplatUIX11.cs (UpdateMessageQueue): only emit the Idle event if
17702         either the queue is null, or the queue has DispatchIdle set to
17703         true.
17704         (DoEvents): set queue.DispatchIdle to false around the
17705         peek/translate/dispatch message loop in this method.  This keeps
17706         Application.Doevents from emitting idle events.  Part of the fix
17707         for #78823.
17708
17709 2006-09-11  Chris Toshok  <toshok@ximian.com>
17710
17711         * DataGrid.cs (set_DataSource): make this work for both the
17712         winforms/datagrid test and ReportBuilder.  It seems as though when
17713         we've created a ListManager (or maybe it's if we have a
17714         BindingContext?), when we set the DataSource it clears the
17715         DataMember to "".  otherwise we reuse the datamember.  Fixes bug
17716         #79333.
17717
17718 2006-09-11  Chris Toshok  <toshok@ximian.com>
17719
17720         * XplatUIX11.cs: deal with queue being null, which happens in all
17721         the Clipboard functions.  Fixes one of the two problems mentioned
17722         in #78612.
17723
17724 2006-09-11  Chris Toshok  <toshok@ximian.com>
17725
17726         * MenuAPI.cs: rework OnMouseUp a bit so that releasing the mouse
17727         button on various spots (including outside the menu) works closer
17728         to MS, and doesn't crash.  Fixes #79343.
17729
17730 2006-09-11  Gert Driesen  <drieseng@users.sourceforge.net>
17731
17732         * ListView.cs: Do not initialize item_sorter in init. To match MS,
17733         return null for ListViewItemSorter if View is SmallIcon or LargeIcon
17734         and the internal comparer is set. When a new ListViewItemSorter is set,
17735         sort the items. Use Enum.IsDefined to verify whether a valid SortOrder
17736         was specified. No further processing is necessary if SortOrder is set
17737         to it's current value. If Sorting is modified to None, and View is
17738         neither SmallIcon nor LargeIcon then: on 2.0 profile set item_sorter
17739         (either custom or our internal ItemComparer) to null, on 1.0 profile
17740         only set item_sorter to null if its our internal IComparer. If Sorting
17741         is modified to Ascending or Descending, then use our internal IComparer
17742         if none is set, and if the current IComparer is our internal one then:
17743         on 2.0 profile always replace it with one for new Sorting, and on 1.0
17744         profile only use new Sorting if view is not SmallIcon or LargeIcon. Use
17745         Enum.IsDefined to verify whether a valid View value is specified in
17746         its setter. Automatically sort listview items when listview is
17747         created. In Sort, do nothing if ListView is not yet created, or if
17748         no item_sorter is set (no Sorting was set, Sorting was explicitly set
17749         to None or ListViewItemSorter was set to null). Added Sort overload
17750         taking a bool to indicate whether the ListView should be redrawn when
17751         items are sorted (we use this in ListViewItemCollection to avoid double
17752         redraws). Modified our internal IComparer to take the sort order into
17753         account. In Add and AddRange methods of ListViewItemCollection, also
17754         call Sort if Sorting is None (necessary for SmallIcon and LargeIcon
17755         view), but use overload with noredraw option to avoid double redraw.
17756         On 2.0 profile, throw NotSupportedException when setting CheckBoxes to
17757         true when View is Tile, and do the same when attempting to set View to
17758         Tile when CheckBoxes is true. Avoid maintaining separate ArrayLists
17759         for selected/checked indices, as it involves overhead when sorting is
17760         done while these collections are not used all that often. Instead
17761         we'll build the indices on demand. Modified IList implementation of
17762         CheckedIndexCollection to use public methods if object is int.
17763         Modified CheckedListViewItemCollection to hide checked items if
17764         ListView.CheckBoxes is false. Removed LAMESPEC remark in 
17765         ListViewItemCollection as the .NET SDK docs have been fixed. Modified
17766         IList implementation in SelectedIndexCollection to use public methods
17767         if object is int. Modified SelectedListViewItemCollection to hide
17768         selected items if listview is not yet created.
17769         * ListViewItem.cs: CheckedIndices list no longer needs to be
17770         maintained separately (see ListView changes). Also clone font, fixes
17771         test failure.
17772
17773 2006-09-11  Mike Kestner  <mkestner@novell.com>
17774
17775         * ComboBox.cs: if we are updating the contents of the currently
17776         selected index, refresh the control or the textbox selection.
17777         [Fixes #79066]
17778
17779 2006-09-11  Mike Kestner  <mkestner@novell.com>
17780
17781         * ComboBox.cs (UpdateBounds): use SetBounds not SetBoundsCore since 
17782         the 'specified' logic has been moved there.  This seems like a bug 
17783         in Control.cs, since our current SetBoundsCore completely ignores 
17784         the specified parameter.  Peter's commit seems to indicate that is 
17785         the way the MS control implementation works.  [Fixes #79325]
17786
17787 2006-09-10  Jonathan Chambers  <joncham@gmail.com>
17788
17789         * XplatUI.cs: Set default_class_name to be composed
17790         of current domain id. This allows MWF to be loaded in multiple
17791         domains on Win32.
17792
17793 2006-09-09  Miguel de Icaza  <miguel@novell.com>
17794
17795         * X11Keyboard.cs: If we are unable to obtain the input method, do
17796         not call CreateXic to create the input context.   Should fix
17797         #78944/79276.
17798
17799 2006-09-08  Alexander Olk  <alex.olk@googlemail.com>
17800
17801         * MimeIcon.cs: Rewrote major parts. Dropped KDE support for now.
17802           Simplified gnome support by adding more pinvokes to get the
17803           icon for a file or mime type.
17804
17805 2006-09-08  Jackson Harper  <jackson@ximian.com>
17806
17807         * MenuAPI.cs: Deslect popup context menu items before closing the
17808         window, so that you don't see the previously selected item
17809         selected when you reopen the menu.
17810         * TextControl.cs: Update the cursor position even if we don't have
17811         focus.  This fixes typing in things like the ComboBox.  I'm not
17812         totally sure we should always set the visibility if we don't have
17813         focus, but couldn't find any corner cases where the cursor showed
17814         up when it shouldn't.
17815
17816 2006-09-08  Chris Toshok  <toshok@ximian.com>
17817
17818         * X11Keyboard.cs: In UpdateKeyState vkey can be any integer, but
17819         our arrays are length 256.  & 0xff before indexing.  Fixes the
17820         crash in bug #78077.
17821         
17822 2006-09-08  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17823
17824         * ThemeWin32Classic.cs: 
17825         * DateTimePicker.cs: Draw check box if DateTimePicker.ShowCheckBox
17826         is true. Handle that check box too.
17827
17828 2006-09-07  Chris Toshok  <toshok@ximian.com>
17829
17830         * MenuAPI.cs: move the PerformClick call to OnMouseUp.  Fixes bug
17831         79244.
17832
17833 2006-09-07  Chris Toshok  <toshok@ximian.com>
17834
17835         * Control.cs: in set_BackColor only do the work if
17836         background_color != value.
17837
17838         * XplatUIX11.cs: move the clearing of invalid areas (both client
17839         and nc) to the same block of code where we set (nc_)expose_pending
17840         to false.  That is, move it from PaintEventEnd to PaintEventStart,
17841         so things that cause invalidates from within OnPaint will trigger
17842         another call to OnPaint.  Fixes bug #79262.
17843
17844 2006-09-07  Alexander Olk  <alex.olk@googlemail.com>
17845
17846         * Theme.cs: Use correct icon for UIIcon.PlacesPersonal
17847         * FileDialog.cs: Fix typo
17848
17849 2006-09-07  Jackson Harper  <jackson@ximian.com>
17850
17851         * ThemeWin32Classic.cs:  oops, forgot to commit.  Draw the images
17852         for tab pages if they have any.
17853
17854 2006-09-06  Mike Kestner  <mkestner@novell.com>
17855
17856         * Splitter.cs: use the "current" rect when finishing drag handle
17857         to avoid an artifact demonstrated by resedit.exe.  [Fixes #79251]
17858
17859 2006-09-06  Mike Kestner  <mkestner@novell.com>
17860
17861         * Splitter.cs: draw the drag handle at X or Y instead of 0 to deal
17862         support offset splitters. [Fixes #79298]
17863
17864 2006-09-06  Alexander Olk  <alex.olk@googlemail.com>
17865
17866         * Mime.cs: Fixed a bug that could override the global mime type
17867           result.
17868
17869 2006-09-05  Jackson Harper  <jackson@ximian.com>
17870
17871         * TabControl.cs: Better calculation method for setting the slider
17872         pos. Prevents crashes on really wide tabs.
17873         - Draw Image on tab pages if an image list is used.
17874
17875 2006-09-02  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17876
17877         * MonthCalendar.cs: When Font changes, the Size should be
17878         updated to fit the new font's space requirements.
17879
17880 2006-09-02  Alexander Olk  <alex.olk@googlemail.com>
17881
17882         * ListBox.cs: If the items are cleared with Items.Clear set
17883           top_index to 0.
17884
17885 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17886
17887         * MonthCalendar.cs: Handle arrow keys as input keys. Also
17888         fire DateChanged event instead of DateSelected event when
17889         the date was changed by keyboard interaction.
17890
17891 2006-09-01  Carlos Alberto Cortez <calberto.cortez@gmail.com>
17892
17893         * DateTimePicker.cs: Handle DateChanged for the associated
17894         month_calendar control, and set month_calendar.Font from 
17895         OnFontChanged method, as well as resize the height of the
17896         control when needed. Make PreferredHeight proportional.
17897
17898 2006-09-01  Chris Toshok  <toshok@ximian.com>
17899
17900         * DataGrid.cs: grr, stop overthinking the DataMember/DataSource
17901         properties.
17902
17903         * BindingContext.cs (HashKey.GetHashCode): use ^ instead of +.
17904
17905 2006-09-01  Peter Dennis Bartok  <pbartok@novell.com> 
17906
17907         * FileDialog.cs: Set ClientSize instead of window size, to allow space
17908           for decorations (Fixes #79219)
17909
17910 2006-09-01  Mike Kestner  <mkestner@novell.com>
17911
17912         * ComboBox.cs: first stab at sorting plus some selection handling
17913         fixes to bring us more in line with MS behavior.  Also switches back
17914         to index based selection.  Alternative patches for index-based 
17915         selection were provided by Jackson Harper, Carlos Alberto Cortez, 
17916         and latency@gmx.de on bug 78848.  I assume they were similar to this
17917         code I've had simmering in my tree forever.
17918         [Fixes #78848]
17919
17920 2006-09-01  Chris Toshok  <toshok@ximian.com>
17921
17922         * CurrencyManager.cs (ListChangedHandler): in the ItemAdded case,
17923         when setting list position guard against ending up with a -1 index
17924         (the other part of the fix for #78812).  Should probably make sure
17925         we don't need the analogous fix in the ItemDeleted case.
17926
17927         * DataGrid.cs:
17928         - in SetDataSource, work around the fact that the way
17929         OnBindingContextChanged is invoked will cause us to re-enter this
17930         method.  I'll remove the hack once I investigate
17931         OnBindingContextChanged.
17932
17933         - fix the logic in set_DataSource and set_DataMember (basically
17934         what to do if the other of the two is null.)
17935         
17936         - in OnListManagerItemChanged, we need to take into account the
17937         edit row when deciding whether or not to call RecreateDataGridRows
17938         (part of the fix for #78812).
17939
17940 2006-09-01  Jackson Harper  <jackson@ximian.com>
17941
17942         * Splitter.cs: Don't do anything if there is no control to affect
17943         (prevents us from crashing in weird tet cases).
17944         * TreeView.cs: Bounding box for the mouse movement reverting
17945         focus/selection back to previously selected node.  This matches
17946         MS, and makes the tree a lot more useable.
17947         * GroupBox.cs: Instead of drawing over the lines of the groupbox,
17948         use clipping so they are not drawn.  This fixes when the control
17949         is set to have a transparent background, or if it was over an
17950         image.
17951
17952 2006-09-01  Alexander Olk  <alex.olk@googlemail.com>
17953
17954         * MimeIcon.cs: Improved handling for reading default icons when
17955           using gnome (2.16 made it necessary). Check and read svg icons
17956           first, then 48x48 and then 32x32 icons.
17957
17958 2006-08-31  Chris Toshok  <toshok@ximian.com>
17959
17960         * DataGridTextBoxColumn.cs: only hide the textbox if it's still
17961         visible.
17962
17963         * DataGridTextBox.cs: Pass Tab's up to the datagrid by calling
17964         ProcessKeyPreview.  Fixes part of #77806.
17965
17966         * DataGrid.cs: big patch.
17967
17968         - revert the queueing up of DataSource/DataMember if inside
17969         BeginInit/EndInit calls.  That's not the way the datagrid achieves
17970         its delayed databinding.  Instead, call SetDataSource in
17971         OnBindingContextChanged.  This mimic's MS's behavior, and fixes
17972         #78811.
17973
17974         - Also, it wasn't mentioned in #78811, but the test case exhibits
17975         behavior that was lacking in our datagrid implementation - Columns
17976         that have mapping names that don't exist in the datasource's
17977         properties aren't shown.  Yuck.  To fix this I added the bound
17978         field to the column style, and basically any calculation to figure
17979         out anything about columns uses a loop to find the bound columns.
17980         still need to investigate if I can cache an array of the bound
17981         columns or if the indices must be the same.
17982
17983         - When setting CurrentCell, we no longer abort if the cell being
17984         edited was in the add row.  This fixes the other part of #77806.
17985
17986         - The new code also fixes #78807.
17987         
17988         * ThemeWin32Classic.cs: perpetrate the same disgusting
17989         column.bound field hack, and only render bound fields.
17990
17991 2006-08-31  Chris Toshok  <toshok@ximian.com>
17992
17993         * DataGridColumnStyle.cs: add bound field.  this field is true if
17994         the datasource has a property corresponding to the mapping name.
17995
17996         * DataGridTableStyle.cs: set the bound field on the column styles
17997         depending on whether or not we have a column for that property.
17998
17999 2006-08-31  Peter Dennis Bartok  <pbartok@novell.com> 
18000
18001         * Splitter.cs (SetBoundsCore): Don't ignore width/height of the 
18002           splitter control (fixes #79228)
18003
18004 2006-08-31  Chris Toshok  <toshok@ximian.com>
18005
18006         * DataGridColumnStyle.cs: we need to delay the assignment of
18007         property descriptor until the last possible moment due to the lazy
18008         databinding stuff in the datagrid.  Also, fix the exceptions
18009         thrown by CheckValidDataSource to match MS.
18010
18011 2006-08-31  Jackson Harper  <jackson@ximian.com>
18012
18013         * Form.cs: When activated select the active control, if there is
18014         no active control, we select the first control.
18015         * XplatUIX11.cs: If there is no focus control when we get a
18016         FocusIn event, find the toplevel form and activate it.  This
18017         occurs when you popup a window, it becomes the focus window, then
18018         you close that window, giving focus back to the main window.
18019
18020 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18021
18022         * MonthCalendar.cs: 
18023         * ThemeWin32Classic.cs: Cache Font in bold style, as well
18024         as StringFormat with Center alignments in MonthCalendar,
18025         instead of creating new ones when drawing the control. 
18026         Also, draw the month name in bold style.
18027
18028 2006-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
18029
18030         * Control.cs:
18031           - PerformLayout(): It would seem MS performs the fill even if the 
18032             control is not visible (part of #79218 fix)
18033           - ResetBackColor(): Use the setter to reset the color, to allow
18034             overriders to catch the change.
18035         * Form.cs:
18036           - .ctor: Call UpdateBounds to adjust client rectangle (part of #79218 fix)
18037           - CreateHandle(): dito (part of $79218 fix)
18038           - Don't set an icon if we have a dialog
18039         * ScrollableControl.cs:
18040           - set_AutoScrollMinSize: Setting the property enables AutoScroll (#79218)
18041           - ScrollIntoView(): No need to scroll if control is already visible
18042             (resolves fixme and fixes #79218)
18043
18044 2006-08-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18045
18046         * MonthCalendar.cs: Change proportions in SingleMonthSize
18047         to match the aspect of the original control.
18048
18049 2006-08-29  Alexander Olk  <alex.olk@googlemail.com>
18050
18051         * XplatUIX11.cs: Fix for a metacity/X problem where windows don't
18052           get updated when they get maximized.
18053
18054 2006-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
18055
18056         * XplatUIX11.cs: Handle windows with no border (Fixes part of #79160)
18057
18058 2006-08-29  Chris Toshok  <toshok@ximian.com>
18059
18060         * XplatUIX11.cs: when destroying the FocusWindow, send KILLFOCUS.
18061
18062 2006-08-29  Jackson Harper  <jackson@ximian.com>
18063
18064         * TreeView.cs: Need to track selected node and highlighted node,
18065         they aren't always the same thing, when the mouse is down on a
18066         node it is hilighted, but not selected yet.
18067         - Do the HideSelection stuff right
18068         - Need to focus on rbutton mouse down. And redraw selection when
18069         right click is mouse upped.
18070
18071 2006-08-29  Mike Kestner  <mkestner@novell.com>
18072
18073         * ThemeWin32Classic.cs: draw selections for columns in FullRowSelect
18074         when SubItems.Count < Columns.Count.  [Fixes #79167]
18075
18076 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com> 
18077
18078         * TextControl.cs (FindCursor): Fix math error (Fixes #78402)
18079
18080 2006-08-28  Peter Dennis Bartok  <pbartok@novell.com>
18081
18082         * XplatUIX11.cs: Preempt the roundtrip for getting the location back
18083           from X. Only send based on ConfigureNotify if we don't have the
18084           correct location in hwnd (if the window manager moved us)
18085
18086 2006-08-28  Mike Kestner  <mkestner@novell.com>
18087
18088         * ListView.cs: remove a TODO. 
18089         * ThemeWin32Classic.cs: implement HideSelection support for ListView.
18090         [Fixes ListView part of #79166]
18091
18092 2006-08-28  Mike Kestner  <mkestner@novell.com>
18093
18094         * ListView.cs: move wheel handler to parent since it is focused
18095         instead of the item_control now.  [Fixes #79177]
18096
18097 2006-08-28  Mike Kestner  <mkestner@novell.com>
18098
18099         * ThemeWin32Classic.cs: only highlight subitems in fullrowselect
18100         when the control is focused. [Fixes #79171]
18101
18102 2006-08-28  Mike Kestner  <mkestner@novell.com>
18103
18104         * ListView.cs: size the item and header controls for empty and
18105         unscrollable views.
18106         * ThemeWin32Classic.cs: draw disabled backgrounds.
18107         [Fixes #79187]
18108
18109 2006-08-28  Chris Toshok  <toshok@ximian.com>
18110
18111         * Form.cs: remove unused "active_form" static field.
18112
18113         * Hwnd.cs: lock around accesses to static windows collection.
18114
18115         * Application.cs: lock threads in Exit ().
18116
18117 2006-08-28  Chris Toshok  <toshok@ximian.com>
18118
18119         * NativeWindow.cs: lock around accesses to window_collection.
18120         
18121 2006-08-28  Chris Toshok  <toshok@ximian.com>
18122
18123         * Control.cs: err, fix this the right way, by locking on controls
18124         when using it.  not by making it synchronized.
18125
18126 2006-08-28  Chris Toshok  <toshok@ximian.com>
18127
18128         * Control.cs: make the static "controls" field synchronized, as it
18129         gets updated from multiple threads.
18130
18131 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
18132
18133         * XplatUIX11.cs: PostQuitMessage is thread-specific not app-specific.
18134           Prevent other threads from exiting when calling thread sets quit state.
18135         * XEventQueue.cs: Added PostQuitState property
18136
18137 2006-08-27  Chris Toshok  <toshok@ximian.com>
18138
18139         * AsyncMethodData.cs: add a slot for the window handle.
18140
18141         * XplatUIX11.cs (SendAsyncMethod): send the event to the right
18142         window (the destination control's window, not the foster window).
18143
18144         * Control.cs (BeginInvokeInternal): store the window's handle in
18145         the AsyncMethodData.
18146         
18147
18148 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com>
18149
18150         * XplatUIX11.cs:
18151           - PostQuitMessage: Removed resetting S.D display handle, we might have
18152             another loop started after calling PostQuitMessage (Fixes #79119)
18153           - Created destructor to reset S.D handle
18154
18155 2006-08-27  Peter Dennis Bartok  <pbartok@novell.com> 
18156
18157         * XplatUIX11.cs (SetCursor): Issue flush after setting the cursor (#79168)
18158
18159 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
18160
18161         * TextControl.cs (Insert): Update the caret position even if we don't
18162           have a handle yet, just don't call the driver in that case.
18163         * TextBoxBase.cs (set_SelectedText): Set the Start and End selection
18164           to the end of the new selection text (Fixes #79184)
18165
18166 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
18167
18168         * Form.cs (Activate): Only activate if the handle is created)
18169         * Control.c:
18170           - Mark window as invisible when it's disposed
18171           - Check if window handle is created when setting window visible, 
18172             instead of relying just on the is_created variable
18173           - Check if object is disposed when creating the control (Fixes #79155)
18174
18175 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
18176
18177         * ScrollableWindow.cs (ScrollWindow): Don't actually perform layouting
18178           when allowing layout again. Otherwise we re-generate the anchoring 
18179           distance to the border again and actually alter what the user wanted
18180           This is ugly, it'd be better if we used DisplayRectangle instead of
18181           ClientRectangle for Control.UpdateDistances, but that causes us to
18182           have other problems (initial anchoring positons would be wrong)
18183           (Fixes #78835)
18184
18185 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
18186
18187         * Control.cs:
18188           - The size and location setters shouldn't go directly to 
18189             SetBoundsCore, but to SetBounds, which triggers layout on the
18190             parent, then calls SetBoundsCore. (Related to fix for #78835)
18191           - SetBounds: Moved actual location update code into this function
18192             from SetBoundsCore, to match MS. Added call to PerformLayout if
18193             we have a parent (to trigger resizing of anchored parents if the 
18194             child size has changed (see testcase for #78835) 
18195         * ListBox.cs, Form.cs: Call SetBounds instead of SetBoundsCore to match 
18196           new control code
18197         * ScrollableControl.cs (CalculateCanvasSize): Use shortcut variable
18198
18199 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
18200
18201         * XplatUIX11.cs: Don't reset the DisplayHandle that's stored in
18202           System.Drawing when a toplevel window gets closed; there might
18203           be other toplevel windows belonging to the same app (Fixes #78052)
18204
18205 2006-08-26  Alexander Olk  <alex.olk@googlemail.com>
18206
18207         * FileDialog.cs: After reading FileDialog settings from mwf_config
18208           use Desktop prefix only if a real folder doesn't exist anymore.
18209         * FontDialog.cs: Added char sets.
18210           It is now possible to select the font, size or style with the
18211           textboxes.
18212
18213 2006-08-25  Kornél Pál  <kornelpal@gmail.com>
18214
18215         * PrintPreviewDialog.cs: Use assembly name constants.
18216
18217 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
18218
18219         * XplatUIWin32.cs (ScrollWindow): Use clipping rectangle arg (prevents
18220           scrollbar from whacking it's buttons)
18221
18222 2006-08-24  Chris Toshok  <toshok@ximian.com>
18223
18224         * ScrollableControl.cs: fix #78271.  There's a lot of misc stuff
18225         in this patch (aggregating setting Left/Top/Width/Height to
18226         setting Bounds on the scrollbars), but the crux of the fix is in
18227         Recalculate, where we scroll by the remaining scroll_position if
18228         we're hiding a scrollbar.  The 2*$5 reward in the comment is
18229         serious.
18230
18231 2006-08-24  Jackson Harper  <jackson@ximian.com>
18232
18233         * MdiClient.cs:
18234         * MdiWindowManager.cs: If the form is made a non-mdi window we
18235         need to remove the form closed event so that closing forms works
18236         correctly.
18237
18238 2006-08-24  Jackson Harper  <jackson@ximian.com>
18239
18240         * Control.cs: Make IsRecreating internal so that the driver can
18241         check it
18242         - Temporarily remove the Hide when controls are removed, its
18243         making a whole bunch of things not work because visibility isn't
18244         getting reset elsewhere correctly
18245         * Form.cs: Need to do a full handle recreation when the mdi parent
18246         is set.
18247         * XplatUIX11.cs: If we are recreating handles don't dispose the
18248         HWNDs.  What was happening is the handles were being recreated in
18249         SendWMDestroyMessages, but then flow continued on in that method
18250         and destroyed the new handles.
18251
18252 2006-08-23  Jackson Harper  <jackson@ximian.com>
18253
18254         * Form.cs: MdiClient is always at the back of the bus
18255         * Control.cs: When the order of items in the collection is changed
18256         we need to reset the all_controls array
18257         - do the same sorta setup thats done when adding a control when a
18258         control is set on the collection.
18259
18260 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com>
18261
18262         * TextBoxBase.cs (get_Text): Return an empty array if our document
18263           is empty (fixes #79052)
18264
18265 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
18266
18267         * Control.cs: We should call IsInputChar on only on WM_CHAR but not
18268           on WM_SYSCHAR messages (fixes #79053)
18269
18270 2006-08-23  Chris Toshok  <toshok@ximian.com>
18271
18272         * DataGrid.cs: fix flickering when scrolling vertically.
18273
18274 2006-08-23  Chris Toshok  <toshok@ximian.com>
18275
18276         * DataGrid.cs (EndEdit): only invalidate the row header when we
18277         need to.
18278
18279 2006-08-23  Chris Toshok  <toshok@ximian.com>
18280
18281         * ThemeWin32Classic.cs: fix the clip munging of the datagrid paint
18282         methods.  fixes the flicker when scrolling around.
18283
18284 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
18285
18286         * FileDialog.cs: Making sure the control is created before we get a 
18287           chance to use it with BeginInvoke (Fixes #79096)
18288
18289 2006-08-23  Chris Toshok  <toshok@ximian.com>
18290
18291         * ThemeWin32Classic.cs (DataGridPaintRows): calculate the proper
18292         width to use when painting the rows.
18293
18294 2006-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
18295
18296         * TextBoxBase.cs:
18297           - Throw ArgumentException if a negative value is passed to SelectionLength
18298           - Update the selection end if start is moved. end needs to be always
18299             after start. (Fixes #79095)
18300           - Track selection length; MS keeps the selection length even if start
18301             is changed; reset on all other operations affection selection
18302
18303 2006-08-22  Jackson Harper  <jackson@ximian.com>
18304
18305         * TreeView.cs: Make sure both scrollbars get displayed and sized
18306         correctly when the other bar is visible.
18307         - Use the original clip rectangle for checking if the area between
18308         the two scrollbars is visible, not the viewport adjusted clipping
18309         rectangle.
18310
18311 2006-08-22  Jackson Harper  <jackson@ximian.com>
18312
18313         * Binding.cs: We don't use IsBinding because it requires the
18314         control to be created, which really shouldn't be necessary just to
18315         set a property on the control.
18316
18317 2006-08-21  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18318
18319         * ComboBox.cs: Some CB.ObjectCollection methods must throw
18320         ArgumentNullReferenceException when the argument is null.
18321
18322 2006-08-21  Jackson Harper  <jackson@ximian.com>
18323
18324         * Timer.cs: Track the thread that the timer is started in (NOT
18325         CREATED), this way messages for it will only be triggered on its
18326         queue.
18327         * XEventQueue.cs: Track the timers here, this makes timers per
18328         thread, like MS.
18329         * XplatUIX11.cs: The timers are moved to the XEventQueue.
18330
18331 2006-08-19  Chris Toshok  <toshok@ximian.com>
18332
18333         * XplatUIX11.cs: after further communication with pdb, we get the
18334         best of both worlds.  SetZOrder working for un-Mapped windows, and
18335         no X errors for un-mapped windows.
18336
18337 2006-08-19  Chris Toshok  <toshok@ximian.com>
18338
18339         * XplatUIX11.cs (SetZOrder): remove the if (!hwnd.mapped) check,
18340         as it was causing pdn toolbars to not have the correct stacking.
18341
18342 2006-08-18  Mike Kestner  <mkestner@novell.com> 
18343
18344         * ListView.cs : guard against negative ClientArea.Width in scrollbar
18345         calculation.  Not sure why control should ever be setting a negative
18346         width though.  Fixes #78931.
18347
18348 2006-08-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18349
18350         * ComboBox.cs: Throw ArgumentNullException when adding/modifyng
18351         null items in ObjectCollection class.
18352         * ListBox.cs.: Likewise.
18353
18354 2006-08-18  Atsushi Enomoto  <atsushi@ximian.com>
18355
18356         * ThemeNice.cs, ThemeClearlooks.cs : remove RadioButton_DrawFocus()
18357           as the base method in ThemeWin32Classic should work fine.
18358           Fixed bug #78607.
18359
18360 2006-08-18  Jackson Harper  <jackson@ximian.com>
18361
18362         * Binding.cs: When validating if the value entered doesn't convert
18363         properly reset to the old value.
18364         * RadioButton.cs: Don't fire click when we get focus.
18365
18366 2006-08-18  Jackson Harper  <jackson@ximian.com>
18367
18368         * FileDialog.cs: Paint the selection on the directory combobox the
18369         same way as on MS. 
18370
18371 2006-08-17  Jackson Harper  <jackson@ximian.com>
18372
18373         * ErrorProvider.cs: Don't allow the error control to be selected.
18374         * Control.cs: Don't send the SetFocus messages, the control
18375         activation will do this, and if we do it blindly here validation
18376         does not work.
18377
18378 2006-08-17  Jackson Harper  <jackson@ximian.com>
18379
18380         * Control.cs:
18381         * ContainerControl.cs: Make validation events fire in the correct
18382         order.  TODO: For some reason the first validation event is not
18383         getting fired.
18384
18385 2006-08-17  Mike Kestner  <mkestner@novell.com> 
18386
18387         * ComboBox.cs : some null guarding for ComboListBox.Scroll.
18388
18389 2006-08-17  Mike Kestner  <mkestner@novell.com> 
18390
18391         * ComboBox.cs : implement scroll wheel support for popped-down
18392         state. Fixes #78945. 
18393
18394 2006-08-17  Jackson Harper  <jackson@ximian.com>
18395
18396         * TreeView.cs: Specify treeview actions (old patch that didn't get
18397         committed for some reason).
18398         - Don't let the mouse wheel scroll us too far.  Just want to make
18399         the bottom node visible, not scroll it all the ways to the top.
18400
18401 2006-08-17  Jackson Harper  <jackson@ximian.com>
18402
18403         * XplatUIX11.cs: Mouse wheel events go to the focused window.
18404
18405 2006-08-17  Mike Kestner  <mkestner@novell.com> 
18406
18407         * ComboBox.cs : don't do mouseover selection in simple mode.
18408
18409 2006-08-16  Jackson Harper  <jackson@ximian.com>
18410
18411         * Form.cs: Fire the closing events for all the mdi child windows
18412         when a window is closed.  If the cancel args are set to true, the
18413         main window still gets the event fired, but it doesn't not close.
18414         * MdiWindowManager.cs: Do this closing cleanup in a Closed
18415         handler, instead of when the button is clicked, so cancelling the
18416         close works correctly.
18417         * ComboBox.cs: Send the mouse down to the scrollbar.
18418
18419 2006-08-16  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18420
18421         * ListBox.cs: When passing 'null' to SelectedItem,
18422         set SelectedIndex to -1, to unselect items. This is the
18423         observed behaviour in .Net.
18424
18425 2006-08-16  Peter Dennis Bartok  <pbartok@novell.com> 
18426
18427         * TextBoxBase.cs: Overriding HandleClick to get clicks in spite of
18428           MS flags saying there won't be any. (fixes #78800)
18429         * Control.cs (HandleClick): Made virtual
18430
18431 2006-08-16  Atsushi Enomoto  <atsushi@ximian.com>
18432
18433         * PageSetupDialog.cs : use Yard-Pound units only in en-GB and en-US
18434           cultures. Fixed bug #78399.
18435
18436 2006-08-16  Jackson Harper  <jackson@ximian.com>
18437
18438         * Form.cs: Use the MdiClients MdiChildren property to access
18439         MdiChildren instead of creating the array from the child controls.
18440         * MdiClient.cs: Maintain a separate array of the mdi children, so
18441         that insertion order is maintained when the Z-order is changed.
18442
18443 2006-08-16  Mike Kestner  <mkestner@novell.com> 
18444
18445         * ListView.cs : add an ItemComparer and default to it for sorting.
18446         Fixes #79076, but sorting needs a complete overhaul to be compat with
18447         MS.
18448
18449 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
18450
18451         * XplatUIX11.cs (SetZOrder): Fix debugging leftover (fixes #79080)
18452
18453 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
18454
18455         * Hwnd.cs (Mapped): Properly traverse the tree
18456
18457 2006-08-15  Chris Toshok  <toshok@ximian.com>
18458
18459         * Binding.cs: fix PullData/SetPropertyValue.  We don't want to
18460         pass manager.Current.GetType() to ParseData.  It has to be the
18461         property type.  So, hold off doing the ParseData until we're in
18462         SetPropertyValue where we know the type.  This fixes the crash in
18463         #78821 but the textbox is still empty.
18464
18465 2006-08-15  Chris Toshok  <toshok@ximian.com>
18466
18467         * DataGrid.cs:
18468         - when we're scrolling, only call Edit() again if the
18469         current cell is still unobscured. Fixes bug #78927.
18470         - when handling mousedown on a cell, ensure the cell is visible
18471         before calling Edit.
18472         - remove the properties from DataGridRow, and remove the
18473         DataGridParentRow class altogether.
18474         
18475
18476 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
18477
18478         * TextBoxBase.cs (set_Text): Don't use base.Text, instead just
18479           fire OnTextChanged by ourselves. There's no point calling base,
18480           we don't set the base value anywhere else. Fixes #78773.
18481
18482 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18483
18484         * ListBox.cs: Call CollectionChanged when modifying
18485         an item from Items indexer, to update the actual items
18486         in the list box.
18487
18488 2006-08-15  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18489
18490         * PrintDialog.cs: Small fixes for focus and a pair of checks,
18491         to match .Net behaviour.
18492
18493 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
18494
18495         * XplatUIX11.cs (SetZOrder): Handle raising toplevel windows
18496
18497 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com> 
18498
18499         * Control.cs: Handle BringToFront for toplevel windows (Fixes #78737)
18500
18501 2006-08-15  Peter Dennis Bartok  <pbartok@novell.com>
18502
18503         * MessageBox.cs: Prevent potential NRE exception.
18504         * TextBoxBase.cs: AutoSize only applies if MultiLine is false. Fixes #78889
18505
18506 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
18507
18508         * MessageBox.cs: Calculate the owner of a messagebox, also make
18509           it topmost. Fixes #78753
18510
18511 2006-08-14  Chris Toshok  <toshok@ximian.com>
18512
18513         * XplatUIX11.cs: A couple of fixes so that metacity will let us
18514         programmatically move windows.  first, set the PPosition hint as
18515         well as the USPosition hint.  Second include some code from pdb
18516         that sets the window type to NORMAL when we set the transient for
18517         hint.  This is because, in the absence of a window type, metacity
18518         thinks any window with TransientFor set is a dialog, and refuses
18519         to let us move it programmatically.  fascists.
18520
18521 2006-08-14  Peter Dennis Bartok  <pbartok@novell.com>
18522
18523         * XplatUIX11.cs: When setting normal hints, take into consideration
18524           an different hints previously set so we don't delete them (fixes #78866)
18525
18526 2006-08-12  Chris Toshok  <toshok@ximian.com>
18527
18528         * ToolBarButton.cs: make Layout return a boolean, if something to
18529         do with the button's layout changed.
18530
18531         * ToolBar.cs:
18532         - add another parameter to Redraw, @force, which all existing
18533           calls set to true.
18534         - make the Layout function return a boolean which is true if the
18535           layout has actually changed.  Redraw now uses this (and @force)
18536           to determine when to invalidate.  At present the only place
18537           where @force can be false is the call from OnResize, when
18538           background_image == null.  So, resizing a toolbar when the
18539           layout doesn't change results in no drawing.
18540
18541 2006-08-12  Chris Toshok  <toshok@ximian.com>
18542
18543         * ThemeWin32Classic.cs: fix the bottom right corner painting.  had
18544         the VScrollBar and HScrollbar reversed.  oops.
18545
18546         * DataGrid.cs: fix the logic that assigns sizes to the implicit
18547         scrollbars.  we were assigning them twice (once in
18548         Calc{Horiz,Vertical}Scrollbar, and once in CalcGridAreas),
18549         therefore causing two scrollbar resizes (and redraws?) to happen
18550         per grid resize.
18551
18552 2006-08-12  Chris Toshok  <toshok@ximian.com>
18553
18554         * ToolBarButton.cs: redraw the entire button if the theme tells us
18555         to.
18556
18557         * Theme.cs: add ToolBarInvalidateEntireButton.
18558
18559         * ThemeWin32Classic.cs: we don't need to redraw the entire toolbar
18560         buttons, just the border.
18561
18562         * ThemeNice.cs: redraw the entire toolbar button since we need to
18563         draw the highlight image.
18564
18565         * ThemeClearlooks.cs: the rounded corners of toolbar buttons mean
18566         we need to redraw the entire button (not just the border).
18567
18568 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
18569
18570         * TextBoxBase.cs (CalculateScrollbars): Set the proper thumb size
18571           for vertical bars. Fixes the mismatches shown by #78513
18572
18573 2006-08-11  Alexander Olk  <alex.olk@googlemail.com>
18574
18575         * FileDialog.cs: If a saved/remembered path doesn't exist
18576           anymore, fall back to "Desktop".
18577
18578 2006-08-11  Peter Dennis Bartok  <pbartok@novell.com>
18579
18580         * Form.cs (CreateParams): Don't use Parent.Handle unless we have a
18581           parent. It's apparently legal to not have one
18582         * XplatUIX11.cs:
18583           - SetZOrder: Don't try to set Z-Order on an unmapped window
18584           - CreateWindow: 0,0 are legal coordinates for a window. don't move
18585             it unless the coordinates are negative
18586
18587 2006-08-10  Mike Kestner  <mkestner@novell.com>
18588
18589         * ListControl.cs: allow null for DataSource.  Clear DisplayMember
18590         when setting to null per msdn docs.  Fixes #78854.
18591
18592 2006-08-10  Chris Toshok  <toshok@ximian.com>
18593
18594         * Menu.cs, MainMenu.cs, MenuAPI.cs: get rid of most of the
18595         flickering by setting a clip rectangle on the Graphics when we
18596         need to redraw just a particular menuitem.  Also, rename "OnClick"
18597         to "OnMouseDown" to reflect what it actually is.
18598         
18599         * Form.cs: track the OnMouseDown change.
18600
18601 2006-08-10  Peter Dennis Bartok  <pbartok@novell.com>
18602
18603         * CommonDialog.cs: Properly inherit the CreateParams from the form
18604           and only change what we need. Fixes #78865
18605
18606 2006-08-10  Chris Toshok  <toshok@ximian.com>
18607
18608         * ToolBar.cs, ToolBarButton.cs: fix the redraw-on-highlight
18609         flickering in flat mode (and most of the flickering in general) by
18610         only invalidating the button border (and not the entire rectangle)
18611         when the state changes.  A couple of cases still flicker:
18612         ToggleButtons, and the dropdown arrow case when the user mouse
18613         ups.
18614
18615 2006-08-10  Alexander Olk  <alex.olk@googlemail.com>
18616
18617         * X11Keyboard.cs: Fixed handling of the Del key on the cursorblock
18618           for german keyboards. Numlock state shouldn't affect the behaviour
18619           of the Del key. Fixes bug #78291.
18620
18621 2006-08-10  Chris Toshok  <toshok@ximian.com>
18622
18623         * ListControl.cs: remove the items.Clear line from BindDataItems,
18624         as this is the first thing done by both subclasses in their
18625         SetItemsCore overrides.  Also, add a ItemChanged handler, and when
18626         passed -1, refresh the list.  This gets databinding working when
18627         the datasource is set on the list before the datasource is
18628         populated (as in wf-apps/ReportBuilder.)
18629
18630         * ComboBox.cs: remove the argument to BindDataItems.  This call
18631         should really go away, and be initiated by the ListControl code.
18632
18633         * ListBox.cs: same.
18634
18635 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
18636
18637         * TextControl.cs (Document.ctor): Initialize caret so we don't crash
18638           if no data is in the document when the control is displayed
18639
18640 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com> 
18641
18642         * TextBoxBase.cs: Don't try moving the caret if we don't have a window
18643           yes (fixes #78806)
18644         * TextControl.cs: 
18645           - PositionCaret: Allow positioning of caret but don't call methods 
18646             requiring a handle if the window isn't created yet
18647           - CharIndexToLineTag: Fix ending loop early error. Lines is 1 based
18648           - owner_HandleCreated: Don't position the caret, just update it's 
18649             location. User might have already set a different position
18650
18651 2006-08-09  Peter Dennis Bartok  <pbartok@novell.com>
18652
18653         * XplatUIWin32.cs: Don't use the desktop as basis for foster-parented
18654           windows. Screws up the returned coordinates for child windows. 
18655           Fixes #78825. I'm hoping this doesn't break something, since the
18656           code was explicitly put in 8 months ago, but no bug was attached.
18657           Menus still seem to work properly.
18658
18659 2006-08-08  Chris Toshok  <toshok@ximian.com>
18660
18661         * DataGrid.cs: make BeginInit/EndInit actually do what they're
18662         supposed to do - delay data binding until the EndInit call.  Also,
18663         make the table style collection's CollectionChangeAction.Refresh
18664         work properly.
18665
18666         * GridTableStylesCollection.cs: raise a CollectionChangeEvent
18667         (with action = Refresh) when a consituent table's MappingName is
18668         changed.
18669
18670 2006-08-08  Chris Toshok  <toshok@ximian.com>
18671
18672         * ToolBarButton.cs: in set_Text, call Parent.Redraw, not
18673         Invalidate, since changing the text can change the size of the all
18674         toolbar buttons.
18675
18676 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
18677
18678         * Form.cs (AddOwnedForm): Still need to add the form to our listif
18679           we don't have it yet
18680
18681 2006-08-08  Chris Toshok  <toshok@ximian.com>
18682
18683         * PrintControllerWithStatusDialog.cs: don't .Close() the status
18684         dialog, as this causes X errors later on, since we actually
18685         destroy the window.  Instead, .Hide() it.
18686
18687 2006-08-08  Peter Dennis Bartok  <pbartok@novell.com>
18688
18689         * ComboBox.cs: Added focus reflection for popup window
18690         * XplatUIX11.cs: 
18691           - Removed transient setting for non-app windows for now, not sure it
18692             was needed
18693           - Fixed logic checking if we have captions when deciding 
18694             override_redirect, WS_CAPTION is two bits and a 0 check was not
18695             sufficient
18696           - Removed the WINDOW_TYPE stuff, it was unneeded and making things
18697             complicated
18698         * Form.cs: 
18699           - AddOwnedForm: Don't just add the form to the list, call the property
18700             to ensure the driver is informed about the ownership as well
18701           - CreateHandle: Set the TopMost status in the driver if we have an owner
18702         * XplatUI.cs: Fixed debug statement
18703
18704 2006-08-08  Jonathan Pobst <monkey@jpobst.com>
18705         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
18706           GroupBoxRenderer.cs, ProgressBarRenderer.cs, RadioButtonRenderer.cs,
18707           ScrollBarRenderer.cs, TabRenderer.cs, TextBoxRenderer.cs, 
18708           TrackBarRenderer.cs: Make constructor private.
18709         * ProfessionalColors.cs, ProfessionalColorTable.cs: Fix misnamed properties.
18710         * ProfessionalColorTable.cs: Make properties virtual.
18711
18712 2006-08-06  Duncan Mak  <duncan@novell.com>
18713
18714         * NumericUpDown.cs (Value): Don't call OnValueChanged if the value
18715         is not changing.
18716
18717 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
18718         * ButtonRenderer.cs, CheckBoxRenderer.cs, ComboBoxRenderer.cs
18719           GroupBoxRenderer.cs, ProfessionalColors.cs, ProfessionalColorTable.cs,
18720           ProgressBarRenderer.cs, RadioButtonRenderer.cs, ScrollBarRenderer.cs,
18721           TabRenderer.cs, TextBoxRenderer.cs, TextRenderer.cs, TrackBarRenderer.cs:
18722           Initial import of new 2.0 classes.
18723
18724 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
18725         * Application.cs: Add 2.0 VisualStyles properties.
18726
18727 2006-08-04  Jonathan Pobst <monkey@jpobst.com>
18728         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
18729           XplatUIX11.cs: Create property to allow access to existing private
18730           variable "themes_enabled"
18731
18732 2006-08-04 Gonzalo Paniagua Javier <gonzalo@ximian.com>
18733
18734         * ImageListStreamer.cs: generate the MemoryStreams with the exact BMP
18735         file size, as otherwise our class libraries fail using windows. Fixes
18736         bug #78759.
18737
18738 2006-08-04  Jackson Harper  <jackson@ximian.com>
18739
18740         * Form.cs:
18741         * XplatUIX11.cs: Move the toolwindow window manager creation into
18742         the X11 driver, this way on win32 we can let windows create/handle
18743         the toolwindows.
18744
18745 2006-08-04  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18746
18747         * PrintDialog.cs: Remove some redundant checks, add some others,
18748         clean some code, and move the focus to the text boxes when the
18749         values are incorrect.
18750
18751 2006-08-04  Alexander Olk  <alex.olk@googlemail.com>
18752
18753         * FontDialog.cs: Remove Form.MinimumSize. It's not needed.
18754
18755 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
18756
18757         * NumericUpDown.cs: Setting the Minimum and Maximum is now
18758           handled correctly. Fixes bug #79001.
18759
18760 2006-08-03  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18761
18762         * PrintDialog.cs: The "Copies" numeric up down must have
18763         set the Minimum property to 1; only if the value is bigger
18764         than 1, activate "Collate" check box. This is the behaviour of .Net.
18765         Also modify the Document elements only if it is not null.
18766
18767 2006-08-03  Jackson Harper  <jackson@ximian.com>
18768
18769         * TreeNodeCollection.cs: Fix copyto to use the correct nodes
18770         length. (We have a larger array then actual node count).
18771                 
18772 2006-08-03  Jackson Harper  <jackson@ximian.com>
18773
18774         * ComboBox.cs: Don't show selection by default.
18775         - The SelectAll isn't needed here, since the focus code should do
18776         that
18777         - DDL style lists to manual selection drawing, so when they
18778         get/lose focus they have to invalidate.
18779
18780 2006-08-03  Peter Dennis Bartok  <pbartok@novell.com>
18781
18782         * TextBoxBase.cs: Don't always show all selections by default.
18783
18784 2006-08-03  Jonathan Pobst  <monkey@jpobst.com>
18785         * ControlUpdateMode.cs, DataSourceUpdateMode.cs,
18786           HelpNavigator.cs, WebBrowserEncryptionLevel.cs:
18787           Fixed various typos.
18788
18789 2006-08-03  Alexander Olk  <alex.olk@googlemail.com>
18790
18791         * Control.cs: Removing the controls in a ControlCollection with
18792           Clear now hides the controls as expected. Fixes bug #78804. 
18793
18794 2006-08-03  Jackson Harper  <jackson@ximian.com>
18795
18796         * Control.cs: Revert previous focus patch, it breaks reflector.
18797
18798 2006-08-03  Jackson Harper  <jackson@ximian.com>
18799
18800         * ComboBox.cs: Cleanup selection and focus with the combobox.
18801         This also eliminates some duplicated keyboard code, since now
18802         everything is handled by the main class.
18803         - Make list selection work on mouse up instead of down, to match
18804         MS.
18805
18806 2006-08-02  Jackson Harper  <jackson@ximian.com>
18807
18808         * Control.cs: Setting focus needs to go through the whole
18809         selection mechanism.
18810
18811 2006-08-02  Chris Toshok  <toshok@ximian.com>
18812
18813         * PrintPreviewDialog.cs: change MinimumSize to use
18814         base.MinimumSize so it works.
18815
18816 2006-08-02  Peter Dennis Bartok  <pbartok@novell.com>
18817
18818         * TextControl.cs:
18819           - UpdateCaret: Added sanity check in case caret isn't defined yet
18820           - Line.Delete: Now updating selection and caret markers if we're
18821             transfering a node (Properly fixes #78323)
18822           - SetSelectionEnd: Added sanity check
18823         * TextBoxBase.cs: Removed broken attempt to fix #78323
18824
18825 2006-08-01  Chris Toshok  <toshok@ximian.com>
18826
18827         * PrintPreviewDialog.cs: the CancelEventArgs stuff surrounding the
18828         Close() call is handled in Form, not here.
18829
18830 2006-08-01  Chris Toshok  <toshok@ximian.com>
18831
18832         * Theme.cs, ThemeWin32Classic.cs: fix the PrintPreviewControl
18833         layout/rendering.
18834
18835         * PrintPreviewDialog.cs: add scrollbars, and add an image cache
18836         for sizes < 100% zoom.  The code now aggressively attempts to keep
18837         from calling document.Print (), and tries not to use the scaling
18838         g.DrawImage whenever possible (it still does if you scale to >
18839         100%, since usually that involves huge images).
18840
18841         * PrintPreviewControl.cs: hook up the close button.
18842
18843 2006-08-01  Jonathan Pobst  <monkey@jpobst.com>
18844         * ColumnClickEventHandler.cs, DrawItemEventHandler.cs,
18845           ItemChangedEventHandler.cs, ItemCheckEventHandler.cs,
18846           ItemDragEventHandler.cs, LabelEditEventHandler.cs,
18847           LinkClickedEventHandler.cs, LinkLabelLinkClickedEventHandler.cs,
18848           MeasureItemEventHandler.cs, MethodInvoker.cs, PaintEventHandler.cs,
18849           PropertyTabChangedEventHandler.cs, PropertyValueChangedEventHandler.cs,
18850           SelectedGridItemChangedEventHandler.cs, ToolBarButtonClickEventHandler.cs:
18851           Removed [Serializable] for 2.0 Event Handlers.
18852
18853 2006-07-31  Jackson Harper  <jackson@ximian.com>
18854
18855         * TextBoxBase.cs: Make ShowSelection invalidate when changed.
18856         * TextControl.cs: Uncomment out the body of this method.
18857
18858 2006-07-31  Alexander Olk  <alex.olk@googlemail.com>
18859
18860         * XplatUIX11.cs: Use the correct cursor shapes for arrow and default
18861           standard cursors.
18862
18863 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
18864
18865         * TextBoxBase.cs: Added internal property ShowSelection to allow controls
18866           that embed TextBox and need selections visible even if textbox is not
18867           focused to enforce that behaviour.
18868         * TextControl.cs (Draw): Use ShowSelection instead of has_focus to determine
18869           selection drawing
18870
18871 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
18872
18873         * TextControl.cs:
18874           - Added new SetSelectionStart/SetSelectionEnd overloads
18875           - Fixed viewport width assignment to be accurate
18876           - Adjusted alignment line shift calculations to allow cursor on right
18877             aligned lines to be always visible at the right border (like MS)
18878         * TextBoxBase.cs:
18879           - SetBoundsCore: Re-adjust caret location after resize (Fixes #78323)
18880           - TextBoxBase_SizeChanged: recalculating canvas on size changes
18881           - CalculateScrollBars: Use ViewPort size instead of window size, to
18882             properly consider space occupied by the border and scrollbars 
18883             (Fixes #78661)
18884           - hscroll_ValueChanged, vscroll_ValueChanged: Fixed scroll 
18885             calculations; no longer leaves artifacts
18886           - CaretMoved: Adjusted window scrolling to match MS and fixed several
18887             calculation bugs (Still missing right/center align calculations)
18888
18889 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com> 
18890
18891         * XPlatUIWin32.cs: Made ScrollRectEx a bit more flexible, and removed
18892           use of both scroll rect and clip rect, as they do the same.
18893
18894 2006-07-31  Peter Dennis Bartok  <pbartok@novell.com>
18895
18896         * Control.cs (WM_CHAR WndProc): 2.0 profile allows changing the key 
18897           in the event handler (fixes #78912)
18898
18899 2006-07-31  Chris Toshok  <toshok@ximian.com>
18900
18901         * ThemeWin32Classic.cs: use grid.RowsCount here instead of
18902         grid.ListManager.Count, since grid.ListManager might be null.
18903         This of course begs the question "why are we drawing rows for a
18904         grid with no list manager (and therefor no rows)?"  Fixes the
18905         crash in bug #78929.
18906
18907 2006-07-31  Chris Toshok  <toshok@ximian.com>
18908
18909         * RelatedPropertyManager.cs: Don't always chain up to the parent
18910         ctor.  instead, call SetDataSource if the parent's position is !=
18911         -1.  Fixes the crash in #78822.
18912
18913 2006-07-31  Chris Toshok  <toshok@ximian.com>
18914
18915         * DataGrid.cs (get_ListManager): use field instead of property
18916         accessors for datasource and datamember.
18917         (RowsCount): make internal again.
18918         (OnMouseDown): end edits before resizing columns/rows.
18919         (OnMouseUp): restart edits after resizing columns/rows.
18920
18921 2006-07-30  Peter Dennis Bartok  <pbartok@novell.com>
18922
18923         * XplatUIX11.cs: Default cursor cannot be 0 or it will not get set.
18924           This fixes the situation where the last set cursor is displayed
18925           whenever the mouse is over scrollbars.
18926
18927 2006-07-30  Carlos Alberto Cortez <calberto.cortez@gmail.com>
18928
18929         * PrintDialog.cs: Fix the behaviour of PrinterSettings and
18930         Document properties, as well as initial values.
18931
18932 2006-07-29  Peter Dennis Bartok  <pbartok@novell.com>
18933
18934         * XplatUIWin32.cs (SetBorderStyle): Setting both border
18935           and ClientEdge results in a 3-pixel border, which is
18936           wrong.
18937
18938 2006-07-28  Jackson Harper  <jackson@ximian.com>
18939
18940         * TreeNodeCollection.cs: Fix the clear method.
18941         - Fix the Shrink also
18942
18943 2006-07-27  Jackson Harper  <jackson@ximian.com>
18944
18945         * TreeView.cs: Make sure the visible order is computed when we
18946         attempt to size the scrollbars (for trees that mess with the
18947         scrolling when they shouldn't.
18948         - Make sure to give the scrollbars valid values.
18949
18950 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
18951
18952         * XplatUIX11.cs: Move motion compression code to where it
18953           has less performance impact
18954
18955 2006-07-26  Jackson Harper  <jackson@ximian.com>
18956
18957         * UpDownBase.cs: When the control is selected make the child
18958         controls non selectable, so that a click on them won't do a
18959         focus/unfocus cycle.
18960         - Don't give focus to the text box when the spinner is selected.
18961         * XEventQueue.cs: Peek on both the x11 queue and the lock queue.
18962
18963 2006-07-26  Chris Toshok  <toshok@ximian.com>
18964
18965         * ThemeWin32Classic.cs: add print preview rendering.  I'm not
18966         satisfied with this solution.  If the bitmaps are small, we should
18967         just cache them in the PrintPreviewDialog and draw them here.
18968         Also, the layout is broken for the 2-up and 3-up cases.
18969
18970         * Theme.cs: add PrintPReviewControlPaint.
18971
18972         * PrintPreviewDialog.cs: first pass implementation.
18973
18974         * PrintPreviewControl.cs: first pass implementation.  No
18975         scrollbars yet.
18976
18977         * PrintDialog.cs: only validate fields if that particular portion
18978         of the UI is enabled.  Also, set the document's controller to a
18979         PrintControllerWithStatusDialog wrapping the document's print
18980         controller.
18981
18982         * PrintControllerWithStatusDialog.cs: if we're printing to a file,
18983         bring up a SaveFileDialog (i hope we don't want to match the
18984         behavior of the crappy windows file entry) and set the
18985         PrinterSettings.PrintFileName accordingly.
18986
18987 2006-07-26  Jackson Harper  <jackson@ximian.com>
18988
18989         * ContainerControl.cs: Add a field that disables auto selecting
18990         the next control in a container when the container is activated.
18991         * UpDownBase.cs: Don't select the text box when the up down is
18992         selected.
18993
18994 2006-07-26  Peter Dennis Bartok  <pbartok@novell.com> 
18995
18996         * XEventQueue.cs: Added methods for peeking (used for compression
18997           of successive events)
18998         * XplatUIX11.cs (GetMessage): We're now compressing consecutive
18999           mouse move events (fixes #78732)
19000
19001 2006-07-25  Jackson Harper  <jackson@ximian.com>
19002
19003         * UpDownBase.cs: Use an internal class for the textbox so that we
19004         can control focus.  the updown control should always have focus,
19005         if either the text area or the buttons are clicked.
19006         - Send the key messages to the textbox, since it never actually
19007         has focus
19008         - Activate and decativate the textbox caret.
19009
19010 2006-07-24  Jackson Harper  <jackson@ximian.com>
19011
19012         * Control.cs: Use the directed select when selecting a control,
19013         this way the container controls override will get called and the
19014         whole ActiveControl chain will get triggered.  TODO: probably need
19015         to make sure this gets done everywhere instead of the old
19016         Select(Control).
19017         * ContainerControl.cs: Implement the directed Select method to
19018         find and activate the correct child control.    
19019         
19020 2006-07-22  Mike Kestner  <mkestner@novell.com>
19021
19022         * Form.cs: use Control.MousePosition for NCLBUTTONDOWN in the menu
19023         menu handling code so that clicks without a grab work too.
19024         [Fixes #78914]
19025
19026 2006-07-22  Alexander Olk  <alex.olk@googlemail.com>
19027
19028         * FileDialog.cs: Enable the BackButton when dirstack has one element.
19029           Added some small optimizations.
19030
19031 2006-07-21  Matt Hargett  <matt@use.net>
19032
19033         * Control.cs: Implemented 2.0 MinimumSize/MaximumSize properties
19034
19035 2006-07-21  Peter Dennis Bartok  <pbartok@novell.com> 
19036
19037         * Control.cs (GetNextControl): Fixes to make all of Jackson's unit 
19038           tests pass and match MS in some strange border cases.
19039
19040 2006-07-21  Chris Toshok  <toshok@ximian.com>
19041
19042         * ThemeWin32Classic.cs: handle drawing of the relation links and
19043         parent row buttons.
19044
19045         * Theme.cs: change args to DataGridPaintParentRow.
19046
19047         * DataGrid.cs: Don't use controls for the relation links and
19048         parent buttons, so we have to handle all their interactions in
19049         MouseMove, MouseDown, MouseUp, etc.  Also, store a lot more stuff
19050         when we're navigating through child tables, so we can reinstate
19051         selection, expanded state, current cell, etc.
19052
19053 2006-07-20  Chris Toshok  <toshok@ximian.com>
19054
19055         * ToolBar.cs: When we redraw a button, for whatever reason,
19056         there's no reason to redraw the entire toolbar.  Also, don't call
19057         Control.Refresh from within Redraw, as it's much heavier than
19058         Invalidate (which is really what we want).
19059
19060 2006-07-20  Chris Toshok  <toshok@ximian.com>
19061
19062         * DataGrid.cs, CurrencyManager.cs, DataGridColumnStyle.cs,
19063         DataGridTextBoxColumn.cs, DataGridTextBox.cs,
19064         ThemeWin32Classic.cs, ListControl.cs: After staring at stack
19065         traces from within a debug IBindingList datasource
19066         (in mono/winforms/datagrid) for *days*, I've finally gotten things
19067         to work in a similar fashion.
19068
19069 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19070
19071         * ListBox.cs: Don't call Sort () when setting 
19072         the Sorted property to false (avoid an unnecessary sort).
19073
19074 2006-07-20  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19075
19076         * ListControl.cs: DataSource should throw an ArgumentException
19077         instead of a normal exception when the argument is not of the 
19078         correct type.
19079
19080 2006-07-20  Mike Kestner  <mkestner@novell.com>
19081
19082         * Control.cs: add InternalPreProcessMessage to allow us to steal
19083         key events before MWF gets its paws on them.  Adapted from a
19084         suggestion by eno.
19085         * ToolBar.cs: add GotLostFocus handing for flat toolbars, with 
19086         up/down/left/right navigation. Override the new internal control
19087         method to steal the events since they never make it to WndProc.
19088         * ToolBarButton.cs: don't worry about pushed when setting hilight
19089         since the drawing code prefers pushed to hilight. Invalidate on 
19090         Hilight changes. Fixes #78547 and #78525.
19091
19092 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
19093
19094         * ScrollableControl.cs: Consider AutoScrollMinSize when calculating
19095           the canvas size. Fixes #78868
19096
19097 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com>
19098
19099         * Splitter.cs: Track requested split position until first layout
19100           is performed. Fixes #78871
19101
19102 2006-07-20  Peter Dennis Bartok  <pbartok@novell.com> 
19103
19104         * Application.cs: Removed code that forces 1.x for the version
19105           number if the version started with 0. Not sure why that code was
19106           there and I couldn't find any bugs that indicated we needed it.
19107           Fixes #78869
19108
19109 2006-07-20  Alexander Olk  <alex.olk@googlemail.com>
19110
19111         * ThemeWin32Classic.cs: Don't throw a NotImplementedException in
19112           ResetDefaults(), just write some output to the console until it's
19113           implemented. Fixes bug #78907 for now. Eliminated two warnings.
19114
19115 2006-07-19  Jonathan Chambers  <joncham@gmail.com>
19116
19117         * PropertyGridView.cs: set StartPosition of drop down forms
19118         so they appear in correct initial spot.  Fixes #78190.
19119
19120 2006-07-19  Mike Kestner  <mkestner@novell.com>
19121
19122         * ThemeWin32Classic.cs: use parent background color when drawing
19123         flat toolbars.  Restructure the conditionals to make sure non-flat
19124         non-Divider toolbars are filled too.  Fixes #78837.
19125
19126 2006-07-19  Mike Kestner  <mkestner@novell.com>
19127
19128         * ListBox.cs: Sort on collection changes even if the handle
19129         isn't created yet.  Fixes #78813.
19130
19131 2006-07-18  Carlos Alberto Cortez <calberto.cortez@gmail.com>
19132
19133         * ListControl.cs: DisplayMember should never be null,
19134         and now we assign String.Empty when null is passed to it (this
19135         is the .Net way).
19136
19137 2006-07-17  Mike Kestner  <mkestner@novell.com>
19138
19139         * ListViewItem.cs: restructure Font and subitem Font handling 
19140         to hold a specific font and refer back to owner on null.
19141         Fixes #78761.
19142
19143 2006-07-17  Mike Kestner  <mkestner@novell.com>
19144
19145         * ToolBar.cs: bandaid for side-effect of previous patch which was
19146         discarding explicit heights for non-AutoSize toolbars.  Need to
19147         extend my format tester to deal with AutoSize=false. Fixes #78864.
19148
19149 2006-07-15  Jackson Harper  <jackson@ximian.com>
19150
19151         * LabelEditTextBox.cs:
19152         * TreeView.cs: Use a new LabelEdit class for node editing, this
19153         class automatically 'closes' itself when it gets the enter key or
19154         loses focus.
19155         - Use the client rectangle when setting the trees scrollbars, so
19156         border style is taken into account.
19157         
19158 2006-07-14  Jackson Harper  <jackson@ximian.com>
19159
19160         * TreeNode.cs:
19161         * TreeView.cs: Make the editing work similar to MSs, firing the
19162         events correctly and ending edits correctly.
19163
19164 2006-07-14  Mike Kestner  <mkestner@novell.com>
19165
19166         * ToolBarButton.cs:
19167         * ToolBar.cs: layout restructuring and redraw enhancements to support
19168         formatting changes gracefully, like setting TextAlign, ImageList, 
19169         ButtonSize, and Appearance.  Handles explicit button sizing quirks
19170         of the MS controls.  Things like flat toolbars ignoring button size
19171         but becoming constant sized at the largest button's size.  Normal
19172         toolbars with an image set cannot be shrunk smaller than the image,
19173         but text can be clipped/ignored.
19174         * ThemeWin32Classic.cs: don't draw text if text_rect height or width
19175         is zero.  Seems like DrawString should be smart enough to not put
19176         anything on screen though. Also trim labels and ellipsize at the char
19177         boundary, not word.
19178         Fixes #78711 and #78483.
19179
19180 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
19181
19182         * FolderBrowserDialog.cs: Disable "New Folder" button and
19183           "New Folder" contextmenu menuitem if a folder like "My Computer"
19184           is selected.
19185
19186 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
19187
19188         * FileDialog.cs: Don't create a new folder in "MyComputer" folder.
19189         * FolderBrowserDialog.cs:
19190           - Use MWFConfig to store and read size and position settings
19191           - Added code to create a new folder (button or context menu).
19192             Use TreeView labeledit to change the name of the new folder.
19193
19194 2006-07-14  Jackson Harper  <jackson@ximian.com>
19195
19196         * TreeView.cs: Raise the OnAfterLabelEdit event correctly.  Also,
19197         when the tree is scrolled we end editing.
19198
19199 2006-07-14  Alexander Olk  <alex.olk@googlemail.com>
19200
19201         * ThemeWin32Classic.cs: Fixed position of CPDrawScrollButton Up and
19202           Down arrows
19203
19204 2006-07-14  Jonathan Pobst  <monkey@ipobst.com> 
19205
19206         WebBrowserProgressChangedEventHandler.cs, BindingCompleteEventArgs.cs,
19207         BindingCompleteEventHandler.cs, BindingManagerDataErrorEventArgs.cs,
19208         BindingManagerDataErrorEventHandler.cs, CacheVirtualItemsEventArgs.cs,
19209         CacheVirtualItemsEventHandler.cs, ColumnReorderedEventArgs.cs,
19210         ColumnReorderedEventHandler.cs, ColumnWidthChangedEventArgs.cs,
19211         ColumnWidthChangedEventHandler.cs, ColumnWidthChangingEventArgs.cs,
19212         ColumnWidthChangingEventHandler.cs, FormClosedEventArgs.cs,
19213         FormClosedEventHandler.cs, FormClosingEventArgs.cs,
19214         FormClosingEventHandler.cs, ItemCheckedEventArgs.cs,
19215         ItemCheckedEventHandler.cs, ListControlConvertEventArgs.cs,
19216         ListControlConvertEventHandler.cs, ListViewItemMouseHoverEventArgs.cs,
19217         ListViewItemMouseHoverEventHandler.cs, ListViewItemSelectionChangedEventArgs.cs,
19218         ListViewItemSelectionChangedEventHandler.cs,
19219         ListViewVirtualItemsSelectionRangeChangedEventArgs.cs,
19220         ListViewVirtualItemsSelectionRangeChangedEventHandler.cs,
19221         MaskInputRejectedEventArgs.cs, MaskInputRejectedEventHandler.cs,
19222         PopupEventArgs.cs, PopupEventHandler.cs, PreviewKeyDownEventArgs.cs,
19223         PreviewKeyDownEventHandler.cs, RetrieveVirtualItemEventArgs.cs,
19224         RetrieveVirtualItemEventHandler.cs, SearchForVirtualItemEventArgs.cs,
19225         SearchForVirtualItemEventHandler.cs, SplitterCancelEventArgs.cs,
19226         SplitterCancelEventHandler.cs, TabControlCancelEventArgs.cs, 
19227         TabControlCancelEventHandler.cs, TabControlEventArgs.cs, 
19228         TabControlEventHandler.cs, TableLayoutCellPaintEventArgs.cs,
19229         TableLayoutCellPaintEventHandler.cs, ToolStripDropDownClosedEventArgs.cs,
19230         ToolStripDropDownClosedEventHandler.cs, ToolStripDropDownClosingEventArgs.cs,
19231         ToolStripDropDownClosingEventHandler.cs, TreeNodeMouseClickEventArgs.cs,
19232         TreeNodeMouseClickEventHandler.cs, TreeNodeMouseHoverEventArgs.cs,
19233         TreeNodeMouseHoverEventHandler.cs, TypeValidationEventArgs.cs,
19234         TypeValidationEventHandler.cs, WebBrowserDocumentCompletedEventArgs.cs,
19235         WebBrowserDocumentCompletedEventHandler.cs, WebBrowserNavigatedEventArgs.cs,
19236         WebBrowserNavigatedEventHandler.cs, WebBrowserNavigatingEventArgs.cs,
19237         WebBrowserNavigatingEventHandler.cs, 
19238         WebBrowserProgressChangedEventArgs.cs: New 2.0 Event Handlers
19239
19240 2006-07-14  Jonathan Pobst  <monkey@ipobst.com>
19241
19242         MergeAction.cs, PowerLineStatus.cs, PowerState.cs, PreProcessControlState.cs,
19243         RichTextBoxLanguageOptions.cs, ScreenOrientation.cs, ScrollOrientation.cs,
19244         SearchDirectionHint.cs, SystemParameter.cs, TabControlAction.cs,
19245         TableLayoutPanelCellBorderStyle.cs, TextDataFormat.cs, TextImageRelation.cs,
19246         ToolStripDropDownCloseReason.cs, ToolStripDropDownDirection.cs,
19247         ToolStripGripDisplayStyle.cs, ToolStripGripStyle.cs,
19248         ToolStripItemAlignment.cs, ToolStripItemDisplayStyle.cs,
19249         ToolStripItemImageScaling.cs, ToolStripItemOverflow.cs,
19250         ToolStripItemPlacement.cs, ToolStripLayoutStyle.cs,
19251         ToolStripManagerRenderMode.cs, ToolStripRenderMode.cs,
19252         ToolStripStatusLabelBorderSides.cs, ToolStripTextDirection.cs,
19253         ToolTipIcon.cs, TreeNodeStates.cs, TreeViewDrawMode.cs,
19254         TreeViewHitTestLocations.cs, UnhandledExceptionMode.cs, ValidationConstraints.cs,
19255         WebBrowserEncryptionLevel.cs, WebBrowserReadyState.cs, WebBrowserRefreshOption.cs,
19256         ArrowDirection.cs, AutoCompleteMode.cs, AutoCompleteSource.cs, AutoSizeMode.cs,
19257         AutoValidate.cs, BatteryChargeStatus.cs, BindingCompleteContext.cs,
19258         BindingCompleteState.cs, CloseReason.cs, ColumnHeaderAutoResizeStyle.cs,
19259         ControlUpdateMode.cs, DataSourceUpdateMode.cs, DockingBehavior.cs,
19260         FixedPanel.cs, FlowDirection.cs, GetChildAtPointSkip.cs,
19261         HtmlElementInsertionOrientation.cs, InsertKeyMode.cs, ListViewHitTestLocations.cs,
19262         ListViewItemStates.cs, MaskFormat.cs: Added
19263
19264 2006-07-13  Jonathan Chambers  <joncham@gmail.com>
19265
19266         * PropertyGridView.cs: Fix keyboard navigation of drop down.
19267         Patch from eno for bug 78558.
19268         
19269 2006-07-13  Jackson Harper  <jackson@ximian.com>
19270
19271         * TreeView.cs: When an edit is finished make sure that the
19272         selected node is visible.
19273         - When setting the top/bottom use the scrollbars is_visible, so
19274         everything will be set correctly even if the tree isn't visible
19275         yet.
19276
19277 2006-07-13  Jackson Harper  <jackson@ximian.com>
19278
19279         * ComboBox.cs: Revert the item->index part of my previous patch.
19280         * TreeView.cs: Use LostFocus instead of Leave for detecting when
19281         the edit box has lost focus (duh).
19282         - Just make the edit box not visible when we get return, that will
19283         take the focus, which will call EndEdit
19284         * TreeNode.cs When we start editing, notify the treeview.
19285
19286 2006-07-12  Jackson Harper  <jackson@ximian.com>
19287
19288         * ComboBox.cs: Clear out old items before setting the item list.
19289         This prevents databound controls from having their items added
19290         twice.
19291         - Switch the combobox to use indices whereever possible instead of
19292         using Item's.  This allows usto navigate through lists that have
19293         more then one item with the same string value (ie a, b, b, a).
19294         - Scroll the listboxes scrollbar when a non visible item is
19295         highlighted
19296         - Allow keypress to cycle through all the possible values. For
19297         example if you have b1, b2, b3 and hold down the B key all the
19298         values will be cycled through.
19299         
19300 2006-07-12  Jackson Harper  <jackson@ximian.com>
19301
19302         * TextBoxBase.cs:
19303         * ListView.cs: Don't need to override SETFOCUS anymore, we can do
19304         this using the internal methods.
19305         * Control.cs: Add OnGotFocusInternal.  A new method that allows
19306         controls to "override" OnGotFocus and change focus behavior if
19307         needed.
19308         - Same thing for LostFocus
19309         * ComboBox.cs: Pass off focus to the text control properly.
19310
19311 2006-07-12  Alexander Olk  <alex.olk@googlemail.com>
19312
19313         * FileDialog.cs: Added GetFoldersOnly to MWFVFS
19314         * FolderBrowserDialog.cs: Almost a complete rewrite.
19315           - Better support for Environment.Specialfolders
19316           - Added support for MWFVFS
19317           - Made setting SelectedPath work
19318
19319 2006-07-12  Jackson Harper  <jackson@ximian.com>
19320
19321         * Control.cs: Optimze getting all the controls.
19322
19323 2006-07-11  Jackson Harper  <jackson@ximian.com>
19324
19325         * ContainerControl.cs: Override SETFOCUS in the container control,
19326         so that it is not selected on mouse click.
19327
19328 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com> 
19329
19330         * LinkLabel.cs: Hack to handle Shift-Tabbing to the linklabel. 
19331           Hopefully we will have a better way once all of focus is complete.
19332
19333 2006-07-11  Peter Dennis Bartok  <pbartok@novell.com>
19334
19335         * ThemeWin32Classic.cs: Commented out some debug code and fixed
19336           a compile error with csc.
19337
19338 2006-07-11  Jackson Harper  <jackson@ximian.com>
19339
19340         * Control.cs: When hiding a control only select the next control
19341         if the current control was focused.
19342         - Don't handle enter/leave when setting/killing focus, this is
19343         done by the container control.
19344         - Remove is_selected, it's not needed anymore.
19345         - Add utility methods for selecting a child control, and for
19346         firing the Enter/Leave events.
19347         * ContainerControl.cs: When a control is activated fire the
19348         enter/leave events.
19349         - Don't wrap when processing the tab key, so that focus can be
19350         moved outside of the container.
19351         - Use the correct active control
19352
19353 2006-07-11  Jackson Harper  <jackson@ximian.com>
19354
19355         * ComboBox.cs: Remove some debug code that was blinding me.
19356         * UpDownBase.cs: These controls actually aren't implicit, they are
19357         visible to the user.
19358
19359 2006-07-10  Chris Toshok  <toshok@ximian.com>
19360
19361         * DataGrid.cs: move back to the is_adding boolean field.  god i
19362         hate this is_editing/is_adding/is_changing stuff.
19363
19364 2006-07-10  Chris Toshok  <toshok@ximian.com>
19365
19366         * DataGridTableStyle.cs: just check if the property type is bool.
19367         if it is, use DataGridBoolColumn, otherwise DataGridTextBoxColumn.
19368         Don't use CanRenderType.
19369
19370         * DataGridTextBoxColumn.cs: set the value to DBNull.Value, not "",
19371         if our text == NullText.  Remove CanRenderType.
19372
19373         * DataGridBoolColumn.cs: nuke CanRenderType.
19374
19375         * DataGrid.cs: reenable some code to end the current edit inside
19376         of set_CurrentCell.  This fixes the other 1.1.16 regression.
19377         Also, remove rowhdrs_maxheight and just use rowhdrs_area.Height.
19378         Also, remove the visible_row_count arg from CalcRowHeaders, since
19379         we don't need to worry about the actual height of the area.
19380
19381 2006-07-10  Chris Toshok  <toshok@ximian.com>
19382
19383         * DataGridTextBoxColumn.cs: if when we Commit we're in navigate
19384         mode, just return.
19385
19386         * DataGridTextBox.cs: change "isedit" to "isnavigating" to reflect
19387         the real sense of the IsInEditOrNavigateMode property (true =
19388         navigate, false = edit).  Also, update OnKeyPress to reflect this.
19389
19390         * DataGridTableStyle.cs (CreateColumnsForTable): even if the
19391         column style exists, we still need to set its property descriptor
19392         to match up with our list manager.
19393
19394 2006-07-10  Chris Toshok  <toshok@ximian.com>
19395
19396         * ThemeWin32Classic.cs: implement the new row/header painting
19397         approach.  The parent row painting will likely go away and
19398         replaced with label controls, but the rest seems to work ok (and
19399         efficiently).
19400
19401         * Theme.cs: change the way we draw datagrid rows.  we don't draw
19402         the row headers as a block now.  Instead we draw them in the
19403         normal draw-row loop.  Add some calls for drawing parent rows and
19404         relation rows.
19405
19406         * DataGridTableStyle.cs: add tons of ArgumentExceptions if this is
19407         a default table style.  Set the defaults from ThemeEngine.Current,
19408         not SystemColors.  Fix lots of misc issues with property setters.
19409
19410         * DataGrid.cs: move loads of style information out of this class
19411         as it's being duplicated with DataGridTableStyle.  keep track of a
19412         special DataGridTableStyle for the properties we used to mirror
19413         here.  Switch all the style properties to access this table style
19414         instead of instance fields of this class.  Also add a internal
19415         class to represent parent rows (more needs to be stored here, like
19416         the selection state from the parent table, as well as the
19417         expansion state.)  Also, for datasources with relations, do the
19418         right thing for collapse/expand, and add support for the
19419         navigation/parent row buttons.
19420
19421         Lastly, fix the crash in the 1.1.16 build.
19422
19423         * GridTableStylesCollection.cs: make the explicit interface
19424         implementations call the class's methods as opposed to duplicating
19425         them.
19426
19427         * DataGridTextBoxColumn.cs: set the x/y offset of the textfield to
19428         0 so the text doesn't jump around when we move the cursor.
19429
19430 2006-07-10  Jackson Harper  <jackson@ximian.com>
19431
19432         * TextBoxBase.cs:
19433         * ListBox.cs: Match MS's ToString (this makes debugging focus
19434         stuff infinitely easier).
19435
19436 2006-07-10  Jackson Harper  <jackson@ximian.com>
19437
19438         * Control.cs (SelectNextControl): When checking the control's
19439         parent use this instead of ctrl.parent so that null can be passed
19440         to SelectNextControl. (I have unit tests for this).
19441         - Remove unused var.
19442
19443 2006-07-10  Chris Toshok  <toshok@ximian.com>
19444
19445         * CurrencyManager.cs: correct one regression, the removal of the
19446         finalType field.  Also, add a MonoTODO on CanAddRows, implement
19447         Refresh() correctly, and fix some event emission in
19448         ListChangedHandler.
19449
19450 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
19451
19452         * FileDialog.cs: Don't use brackets for new folders if they exist
19453           under *nix. Instead use -(number of existing folders +1).
19454
19455 2006-07-07  Alexander Olk  <alex.olk@googlemail.com>
19456
19457         * FileDialog.cs:
19458           - Fixed really nasty bug #78771
19459           - Don't block the whole GUI when reading directories with a lot of
19460             entries. Use an other thread instead and call BeginInvoke to
19461             update the ListView in MWFFileView
19462
19463 2006-07-07  Chris Toshok  <toshok@ximian.com>
19464
19465         * Control.cs (Dispose): release any Capture when disposing.
19466
19467 2006-07-07  Chris Toshok  <toshok@ximian.com>
19468
19469         * LinkLabel.cs (Select): if we chain up to the parent, set
19470         focused_index to -1 so we'll search for the first available link
19471         the next time the user tabs into us.  Also, if the direction is
19472         backward and focused_index == -1, start the search from the last
19473         element.
19474
19475 2006-07-07  Chris Toshok  <toshok@ximian.com>
19476
19477         * LinkLabel.cs (CreatePiecesFromText): if the link's range piece
19478         is beyond the end of the text, don't do anything.
19479         (CreateLinkPieces): set our ControlStyles.Selectable based on
19480         whether or not we have any links.
19481         (Link.Invalidate): use a loop instead of foreach.
19482         (Link.set_Start): null out owner.sorted_links so it'll be
19483         recreated by CreateLinkPieces.
19484
19485 2006-07-06  Chris Toshok  <toshok@ximian.com>
19486
19487         * LinkLabel.cs: revert the SetStyle change.
19488
19489 2006-07-06  Chris Toshok  <toshok@ximian.com>
19490
19491         * LinkLabel.cs (.ctor): SetStyle Selectable to true.
19492         (OnEnableChanged): s/Refresh/Invalidate
19493         (OnGotFocus): if we have a focused index already, refocus it (so
19494         if we mouse out/in to the window it'll focus the right link).
19495         (OnKeyDown): move the tab handling out of here.
19496         (OnLostFocus): don't set focused_index to -1, so we can refocus it
19497         when we lose focus.
19498         (OnMouseDown): don't Capture here - Control handles it.  Also,
19499         focus the active link.
19500         (OnMouseUp): don't deal with Capture.
19501         (OnPaintBackgroundInternal): remove.
19502         (OnTextAlignChanged): CreateLinkPieces before calling the
19503         superclass's method.
19504         (OnTextChanged): call CreateLinkPieces before calling superclass's
19505         method.
19506         (ProcessDialogKey): handle Tab here, and call Select(bool,bool) to
19507         move around.
19508         (Select): implement this, moving the selection between different
19509         links, and call parent.SelectNextControl if we don't have another
19510         link to focus in the given direction.
19511         (CreateLinkPieces): call Invalidate instead of Refresh.
19512         
19513 2006-07-06  Chris Toshok  <toshok@ximian.com>
19514
19515         * ThemeWin32Classic.cs: DrawLinkLabel changes to accomodate the
19516         new LinkLabel internals.
19517
19518         * LinkLabel.cs: fairly major rewrite.  get rid of all the loops
19519         over pieces looking for active/focused/etc links.  also, deal with
19520         runs of text (and links) with embedded \n's in them, and use
19521         MeasureCharacterRanges instead of MeasureString to figure out the
19522         regions text occupies.  Lastly, do the usual s/Refresh/Invalidate
19523         two-step.
19524
19525 2006-07-04  Jackson Harper  <jackson@ximian.com>
19526
19527         * XplatUIX11.cs: Enable key auto repeat. If the user doesn't have
19528         XKB or key auto repeat, do it manually.  Without key auto repeat,
19529         when a key is held down we get key press, key release, key press,
19530         key release, ... with auto repeat we get key press, key press, key
19531         press ..., and then a release when the key is actually released.
19532
19533 2006-07-03  Jackson Harper  <jackson@ximian.com>
19534
19535         * TabControl.cs:
19536         * ThemeWin32Classic.cs: Tabs do not obey normal background color
19537         rules, they are always control color regardless of the background
19538         color.
19539
19540 2006-07-02  Alexander Olk  <alex.olk@googlemail.com>
19541
19542         * FileDialog.cs: Added internal class MWFConfig.
19543           Removed Registry support and replaced it with support for the new
19544           MWFConfig class. See MWFConfig comments for more information.
19545
19546 2006-06-30  Alexander Olk  <alex.olk@googlemail.com>
19547
19548         * ThemeWin32Classic.cs: Added RadioButton and CheckBox focus
19549           rectangle. Added some patches from eno from bug #78490 and fixed
19550           the arrow position for small up and down CPDrawScrollButtons.
19551
19552 2006-06-30  Jackson Harper  <jackson@ximian.com>
19553
19554         * InternalWindowManager.cs: Remove some debug code.
19555         * Form.cs: When an MdiParent is set to null, the window is
19556         "detatched" and becomes a normal window.
19557         * MdiClient.cs: Don't bring the new child form to the front until
19558         it is activated (setting it as active does this), this makes the
19559         previously active forms titlebar get redrawn as inactive.
19560
19561 2006-06-29  Peter Dennis Bartok  <pbartok@novell.com>
19562
19563         * PrintDialog.cs: Labels need a tab index too, otherwise they overlap
19564           with later controls
19565
19566 2006-06-29  Mike Kestner  <mkestner@novell.com>
19567
19568         * MenuAPI.cs: handle arrow keys in keynav state. Go active on down
19569         arrow in keynav state.  Fixes #78682.
19570
19571 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
19572
19573         * PrintDialog.cs: Reorder, relayout, remove extra code, set tab 
19574           order (fixes #78393)
19575
19576 2006-06-28  Jonathan Pobst  <monkey@ipobst.com>
19577
19578         * AccessibleRole.cs, AccessibleStates.cs, AnchorStyles.cs, 
19579           ArrangeDirection.cs, ArrangeStartingPosition.cs, ColorDepth.cs,
19580           ControlStyles.cs, DataGridViewImageCellLayout.cs, DrawMode.cs,
19581           FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs,
19582           GridItemType.cs, HelpNavigator.cs, ImeMode.cs, ItemActivation.cs,
19583           ItemBoundsPortion.cs, Keys.cs, ListViewAlignment.cs, 
19584           PictureBoxSizeMode.cs, PropertySort.cs, SelectionMode.cs,
19585           Shortcut.cs, SizeGripStyle.cs, SortOrder.cs, StructFormat.cs,
19586           TextFormatFlags.cs, ToolBarAppearance.cs, ToolBarButtonStyle.cs,
19587           ToolBarTextAlign.cs, View.cs: 2.0 Changes to existing 1.x
19588           enumerations (FlagsAttribute, SerializableAttribute, added/removed
19589           values)
19590
19591 2006-06-28  Mike Kestner  <mkestner@novell.com>
19592
19593         * ComboBox.cs: implement scroll wheel support. Fixes #78360.
19594
19595 2006-06-28  Atsushi Enomoto  <atsushi@ximian.com>
19596
19597         * PropertyGrid.cs,
19598           PropertyGridTextBox.cs : explicitly set BackColor to differentiate
19599           item lines from other area (It also makes BackColor consistent and
19600           compatible with .NET). Fixed bug #78564.
19601
19602 2006-06-28  Jonathan Chambers  <jonathan.chambers@ansys.com>
19603
19604         * PropertyGrid.cs: refresh toolbar when PropertySort is set.
19605         Patch from Eno for #78555.
19606
19607 2006-06-27  Chris Toshok  <toshok@ximian.com>
19608
19609         * ThemeWin32Classic.cs: s/grid.grid_drawing/grid
19610
19611         * DataGridColumnStyle.cs: same.
19612
19613         * DataGrid.cs: Roll DataGridDrawingLogic.cs into this file.
19614         
19615         * DataGridDrawingLogic.cs: nuke.
19616
19617 2006-06-27  Chris Toshok  <toshok@ximian.com>
19618
19619         * DataGridTableStyle.cs: clean up the constructors, and build the
19620         list of child relations for this table.  I have no idea if this is
19621         where we should be doing it (it probably isn't), but since we're
19622         already iterating over the properties..
19623
19624         * DataGrid.cs: add row resizing.  for now we add a DataGridRow
19625         struct and array for keeping track of row information, similar to
19626         what's shown in a hack on
19627         http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx.
19628
19629         * Theme.cs: be consistent about the naming of DataGrid methods,
19630         prefering ColumnWidths and RowHeights over columnsWidths and
19631         RowsHeights.
19632
19633         * ThemeWin32Classic.cs: same, and also add support for variable
19634         sized rows (and the +/- expansion icons for related rows).
19635
19636 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
19637
19638         * TextBoxBase.cs: Applied Eno's patch from #78660
19639
19640 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
19641
19642         * Form.cs (ScaleCore): We don't want to scale our form if it's
19643           state is minimized or maximized, but we still need to scale our
19644           child windows. Also, added try/finally block to ensure layout
19645           gets reset (Fixes #78697)
19646
19647 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com>
19648
19649         * Control.cs: Added 2.0 Scale(SizeF) method (Fixes 78700)
19650
19651 2006-06-27  Peter Dennis Bartok  <pbartok@novell.com> 
19652
19653         * Form.cs: Fixed c+p error and added check to resize form if minimum
19654           size is bigger than current size (Fixes #78709)
19655
19656 2006-06-26  Peter Dennis Bartok  <pbartok@novell.com> 
19657
19658         * ThemeEngine.cs (..ctor): Properly use ToLower() (Fixes #78704)
19659
19660 2006-06-26  Mike Kestner  <mkestner@novell.com>
19661
19662         * ComboBox.cs: only do Keypress handling in the combo when there  
19663         are items in the collection. Fixes #78710.
19664
19665 2006-06-26  Chris Toshok  <toshok@ximian.com>
19666
19667         * Binding.cs: make this work bi-directionally.  also, clear up
19668         other mixups between Push/Pull Data (e.g. we're supposed to pull
19669         data when validating).
19670
19671         * BindingManagerBase.cs: trim some fully qualified collection
19672         types.
19673
19674         * PropertyManager.cs (get_IsSuspended): oops, fix this check.
19675
19676 2006-06-23  Chris Toshok  <toshok@ximian.com>
19677
19678         * PropertyManager.cs: It appears (according to the unit tests)
19679         that PropertyManager doesn't use
19680         PropertyDescriptor.AddValueChanged to track propery value changes
19681         in its datasource, but uses the same scheme as Binding, where it
19682         looks for a <Property>Changed event and binds to it.
19683
19684         Also, according to the docs, IsSuspended always returns false for
19685         a property manager with a non-null datasource.
19686
19687 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com> 
19688
19689         * Form.cs: (ShowDialog): If we're returning a forced cancel we still
19690           need to update the actual DialogResult. (Fixes #78613)
19691
19692 2006-06-22  Peter Dennis Bartok  <pbartok@novell.com>
19693
19694         * Form.cs (ShowDialog): Release any captures before running the
19695           new message pump (fixes #78680)
19696
19697 2006-06-22  Mike Kestner  <mkestner@novell.com>
19698
19699         * ListView.cs: Layout column widths properly in details mode even 
19700         if HeaderStyle.None is set.  Fixes #78691.
19701
19702 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com>
19703
19704         * FileDialog.cs: Fixed taborder to match MS. Fixes #77873 partially.
19705
19706 2006-06-21  Peter Dennis Bartok  <pbartok@novell.com> 
19707
19708         * Control.cs (ContainsFocus): Using new driver method to get focused
19709           window, instead of trying to use internal tracking var, which can
19710           recursion issues (Fixes #78685)
19711         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
19712           XplatUIWin32.cs: Added GetFocus method to return focused window
19713
19714 2006-06-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19715
19716         * ColorDialog.cs: when the mouse button is pressed inside the color
19717         matrix, don't let the cursor move out of it until the button is
19718         released, which is the behavior on windows. Changed 'colours' by
19719         'colors' to use the same word consistently.
19720
19721 2006-06-21  Chris Toshok  <toshok@ximian.com>
19722
19723         * DataGrid.cs: add in some basic navigation stuff (navigating to a
19724         child relation and back, using a stack).  Also, remove
19725         GetDataSource and the code that calls it - it's not needed.  Also,
19726         track CurrencyManager.ListName's removal.
19727
19728 2006-06-21  Chris Toshok  <toshok@ximian.com>
19729
19730         * CurrencyManager.cs: push some of the original type checking from
19731         BindingContext.CreateBindingManager to here, and remove some of
19732         the finalType stuff.  Need more tests to make sure I've got the
19733         ListName part right, and we might need more in SetDataSource.
19734
19735         * PropertyManager.cs: add a ctor that takes just the datasource,
19736         and no property name.  Make SetDataSource work with a null
19737         property_name, and make Current return the data_source if the
19738         property descriptor is null.  this makes 'string foo = "hi";
19739         BindingContext[foo].Current' return "hi" as it should.
19740
19741         * RelatedCurrencyManager.cs: make this code more generic - there's
19742         no reason the parent manager has to be CurrencyManager, and
19743         there's no reason to pass the DataRelation.  It suffices to use a
19744         BindingManagerBase and PropetyDescriptor.
19745
19746         * RelatedPropertyManager.cs: make a similar change here.
19747         
19748         * BindingContext.cs: make CreateBindingManager the beautiful, tiny
19749         flower I knew it could be.
19750
19751 2006-06-20  Chris Toshok  <toshok@ximian.com>
19752
19753         * PropertyManager.cs: the PropertyChangedHandler is invoked when
19754         data in the source has changed and we need to update the control,
19755         so s/PullData/PushData.
19756
19757         * CurrencyManager.cs: Refresh is meant to update the control from
19758         data in the datasource.  So, s/PullData/PushData.
19759
19760         * BindingContext.cs: add more ugliness (we weren't handling the
19761         case where data_source = DataTable and data_member = column_name).
19762
19763         * Binding.cs: fix PushData/PullData mixup.  Both are interpreted
19764         from the perspective of the datasource.  PullData pulls from the
19765         control, PushData pushes to the control.
19766
19767 2006-06-20  Chris Toshok  <toshok@ximian.com>
19768
19769         * BindingContext.cs: rewrite the CreateBindingManager code to
19770         handle navigation paths more or less properly.  This could
19771         definitely stand some more work, in particular to push the
19772         recursion up to the toplevel.  But that relies on fixes in other
19773         places (System.Data comes to mind).
19774
19775         Also, move to a flat hashtable (and encode the twolevel nature of
19776         the dictionary into the hash key).  This lets us implement the
19777         IEnumerable.GetEnumerator method.
19778
19779         * RelatedCurrencyManager.cs: new class.  Update our view based on
19780         our relation and our parent CurrencyManager's position.
19781
19782         * CurrencyManager.cs: split out some logic from the ctor into
19783         SetView, so it can be called from the new RelatedCurrencyManager
19784         subclass.
19785
19786         * RelatedPropertyManager.cs: new class.  Update our datasource
19787         based on the position of our parent CurrencyManager.
19788
19789         * PropertyManager.cs: split out some logic from the ctor into
19790         SetDataSource, so it can be called from the new RelatedDataSource
19791         subclass.  Also, make the Current getter return the value
19792         of the PropertyDescriptor, not the data_source.
19793
19794         * Binding.cs: no need to duplicate the string splitting code here.
19795
19796 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
19797
19798         * Control.cs:
19799           - set_Enabled: OnEnabledChanged is not called if the inherited state 
19800             of the control is not altered, even though  we might be changing the
19801             internal state of the control (#78458)
19802           - set_Enabled: (Re)Moved the enabling/disabling of the window to 
19803             OnEnabledChanged, to allow easy altering of any child window state
19804           - OnEnabledChanged: Added code to enable/disable driver window state
19805           - OnParentEnabledChanged: Instead of firing the event, call 
19806             OnEnabledChanged, which will fire the event and also a) set driver
19807             window state and pass the enabled state to any grandchildren (#78458)
19808
19809 2006-06-19  Jackson Harper  <jackson@ximian.com>
19810
19811         * InternalWindowManager.cs: We don't set the cursor explicitly
19812         thats done via the response to NCHITTESTs.
19813         - Don't need to adjust for titlebar heights anymore, the
19814         coordinates are coming in the correct coordinates now (see peters
19815         last patch).
19816
19817
19818 2006-06-19  Peter Dennis Bartok  <pbartok@novell.com> 
19819
19820         * XplatUIX11.cs (GetMessage): WM_NCxBUTTONx messages were wrongly
19821           being translated relative to whole window, instead of client window.
19822           That caused broken offsets on mouseclick (and caused gas for our
19823           InternalWindowManager)
19824
19825 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
19826
19827         * TextControl.cs:
19828           - MoveCaret: Implemented PgUp, PgDown, CtrlPgUp and CtrlPgDown
19829           - Undo(): Added replay of cursor move on DeleteChars action; added
19830             calling Undo() again if a recorded cursor move is invalid (to
19831             ensure that some action is performed on Undo)
19832         * TextBoxBase.cs (ProcessKey): Added handling of PgUp and PgDown (#78482)
19833
19834 2006-06-16  Jackson Harper  <jackson@ximian.com>
19835
19836         * MdiClient.cs: Instead of just sizing maximized windows when
19837         there is a resize we also have to adjust the Y of minimized
19838         windows, so they stay pinned to the bottom of the mdi container.
19839         - Eliminate separate tracking of the active control, we can just
19840         get this from the controls collection.
19841         - Paint the decorations for the newly activated titlebar so we get
19842         a pretty blue bar.
19843         * InternalWindowManager.cs:
19844         * ThemeWin32Classic.cs: Minimized windows get all three buttons
19845         even if they are a tool window.
19846         
19847 2006-06-15  Peter Dennis Bartok  <pbartok@novell.com> 
19848
19849         * TextControl.cs (Undo): Handle non-existent cursor locations in the
19850           undo buffer, these can happen when text was deleted and the cursor
19851           was recorded first. Since we will also have a recorded cursor
19852           after the delete this is not an issue. (Fixes #78651)
19853
19854 2006-06-14  Peter Dennis Bartok  <pbartok@novell.com> 
19855
19856         * AccessibleObject.cs: Remove dependence on Control.is_selected;
19857           instead properly track control states internally (allows us to
19858           remove is_selected from Control)
19859
19860 2006-06-14 Gonzalo Paniagua Javier <gonzalo@ximian.com>
19861
19862         * ImageListStreamer.cs: correctly generate the 1bpp mask for images
19863         whose width is not a multiple of 8.
19864
19865 2006-06-13  Jackson Harper  <jackson@ximian.com>
19866
19867         * MdiClient.cs:  Only maximize the next child if the current one
19868         is maximized.
19869
19870 2006-06-13  Chris Toshok  <toshok@ximian.com>
19871
19872         * DataGridColumnStyle.cs: Invalidate the column when HeaderText is
19873         modified.  Also, guard against grid or grid_drawing being null in
19874         Invalidate.
19875
19876         * DataGrid.cs: Reformat tons of getters/setters.  In the
19877         DataMember setter, just call SetNewDataSource instead of
19878         duplicating some of its functionality.  In SetNewDataSource, don't
19879         check ListManager for null, since the property getter creates the
19880         object if needed.
19881
19882         * DataGridTableStyle.cs: don't set TableStyle or call
19883         SetDataGridInternal on the column here, it's done in
19884         GridColumnStylesCollection.Add.
19885
19886         * GridColumnStylesCollection.cs: fix all the explicit interface
19887         implementations to just call our methods.  Nuke AddInternal() and
19888         move the body of it to Add().  Also, add a call to
19889         column.SetDataGridInternal to Add().
19890
19891         * DataGridTextBoxColumn.cs (.ctors): call this() instead of
19892         base()+duplicate code.  Also, use the Format property instead of
19893         format to generate an Invalidate ala MS.  Lastly, create the
19894         textbox here, unconditionally.
19895         (set_Format): call Invalidate.
19896         (get_TextBox): no need to call EnsureTextBox.
19897         (Commit): remove the message box.
19898         (Edit) remove the call to EnsureTextBox.
19899         (EndEdit): call HideEditBox instead of ReleaseHostedControl.
19900         (EnterNullValue): no need to check textbox for null.
19901         (HideEditBox): no need to check textbox for null.
19902         (SetDataGridInColumn): add the textbox to the grid's controls.
19903         (EnsureTextBox): nuke.
19904         
19905 2006-06-13  Jackson Harper  <jackson@ximian.com>
19906
19907         * MdiWindowManager.cs: Hook up to the maximized menus paint event
19908         and redraw the buttons when needed. Unhook when the window is
19909         unmaximized.
19910         * MainMenu.cs: Add an internal Paint event, the mdi window manager
19911         needs this so that it can redraw its buttons when the menu is
19912         repainted.
19913         * InternalWindowManager.cs:
19914         * Form.cs: The method order has changed for DrawMaximizedButtons,
19915         so that it can be a PaintEventHandler.
19916         
19917 2006-06-13  Jackson Harper  <jackson@ximian.com>
19918
19919         * MdiClient.cs: When we close a maximized mdi window, the next mdi
19920         window is activated and maximized, even if it wasn't before.
19921         - When  a new window is activated repaint the decorations of the
19922         old one, so that it no longer has the Active "look" (the blue
19923         titlebar).
19924         * InternalWindowManager.cs: Open up CreateButtons to base classes
19925         so they can recreate the buttons on state changes.
19926         - If a window is maximized give it all three buttons
19927         * MdiWindowManager.cs: Create the titlebar buttons when the state
19928         is changed, this is needed because a toolwindow will not have all
19929         three buttons until it is maximized.
19930
19931 2006-06-13  Atsushi Enomoto  <atsushi@ximian.com>
19932
19933         * ProgressBar.cs : PerformStep() shouldn't exceed Maximum.
19934           Fixed bug #78609.
19935
19936 2006-06-12  Jackson Harper  <jackson@ximian.com>
19937
19938         * KeysConverter.cs: Make sure we handle the Ctrl special case
19939         if its the only key.
19940         
19941 2006-06-12  Jackson Harper  <jackson@ximian.com>
19942
19943         * Theme.cs: Add a method to get the size of a managed window
19944         toolbar button.
19945         * InternalWindowManager.cs: Remove the ButtonSize property, this
19946         should be retrieved from the theme.
19947         * MdiWindowManager.cs: Get the button size from the theme
19948         * ThemeWin32Classic.cs: Make the method to get the managed window
19949         titlebar button size public.
19950         - Handle the different button sizes of maximized toolwindows
19951         (should match any maximized window).
19952         - Get the titlebar height from the theme, not the WM (which gets
19953         it from the theme).
19954
19955 2006-06-12  Jackson Harper  <jackson@ximian.com>
19956
19957         * InternalWindowManager.cs: Handle NC Double Clicks, passing the
19958         event down to the mdi window manager.
19959         - Expose some extra stuff to base classes
19960         - Make sure to end the Capture on an NC Mouse up, so that we can
19961         get double clicks properly, and the sizing doens't stick.
19962         - When doing PointToClient contain it in the workable desktop
19963         area, this prevents windows from changing size when the cursor is
19964         pulled outside of the working area while sizing.
19965         * MdiWindowManager.cs: When we get a double click maximize the
19966         window.
19967         - Reset the cursor after handling mode changes.
19968
19969 2006-06-12  Peter Dennis Bartok  <pbartok@novell.com> 
19970
19971         * XplatUIX11.cs (WorkingArea): Read the actual workarea for the 
19972           current desktop, instead of just assuming a 0, 0 origin. This
19973           is needed for our internal window manager, to know the top
19974           margin of the desktop
19975
19976 2006-06-12  Chris Toshok  <toshok@ximian.com>
19977
19978         * DataGrid.cs (set_CurrentCell): concede focus as we move around.
19979         we need this to get rid of the selected background in the bool
19980         column.
19981         (CancelEditing): move the ConcedeFocus call to above the Abort
19982         call.  Also, set is_changing to false and invalidate the row
19983         header if we were changing before.
19984         (ProcessKeyPreviewInternal): remove, since noone outside this
19985         class calls it anymore.  Roll the code into ProcessKeyPreview.
19986         (EndEdit): remove the internal version.
19987         (InvalidateCurrentRowHeader): make private.
19988
19989         * DataGridBoolColumn.cs: simplify this class a bunch.  remove the
19990         Keys.Escape handling (and with it the last call to
19991         DataGrid.EndEdit from outside the class.)
19992
19993
19994 2006-06-12  Chris Toshok  <toshok@ximian.com>
19995
19996         * DataGridTextBox.cs (.ctor): isedit defaults to false.
19997         (OnKeyPress): set isedit to true.
19998         (ProcessKeyMessage): remove Keys.Enter handling from here.  it's
19999         already handled by the grid.
20000
20001         * DataGrid.cs (set_CurrentCell): more work here.  it's still not
20002         right.  ugh.
20003         (set_DataSource): SetDataSource always returns true, so stop
20004         putting it in an if statement.
20005         (EndEdit): get rid of some {}'s
20006         (ProcessGridKey): return true in case Keys.Escape.
20007         (ProcessKeyPreviewInternal): only handle KEYDOWN messages.
20008         (ConnectListManagerEvents,DisconnectListManagerEvents): connect to
20009         PositionChanged, stopped connecting to CurrentChanged.
20010         (GetDataSource): simplify this a bunch.
20011         (SetDataSource): change return type from bool to void.
20012         (OnListManagerPositionChanged): rename OnListManagerCurrentChanged
20013         to this, and make sure we don't set ListManager.Position inside
20014         set_CurrentCell.
20015         (OnListManagerItemChanged): if we're passed an actual index,
20016         redraw that row.
20017
20018         * CurrencyManager.cs (set_Position): don't call PullData here.
20019
20020 2006-06-09  Jackson Harper  <jackson@ximian.com>
20021
20022         * TreeNode.cs:  Recalculate the visible order before doing the
20023         Expand/Collapse Below calls, because those calls generate an
20024         expose.
20025         - Reduce calls to the TreeView property, which is mildly expensive
20026         by using a local var.
20027         * Form.cs: Layout the MDI child windows when creating the parent
20028         form.
20029         - Don't use the internal constructor anymore
20030         * MdiClient.cs: use the parent form width/height (if available)
20031         when laying out the child windows, we do this because the
20032         mdiclient isn't docked yet when the initial layout is done.
20033         - Don't need an internal constructor anymore.
20034
20035 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20036
20037         * FileDialog.cs: handle access errors when trying to create a folder
20038         or changing to a directory. No need to initialize out parameters.
20039
20040 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
20041
20042         * FileDialog.cs: Append a number when creating a new folder if the
20043           folder already exists (use parenthesis instead of square brackets)
20044
20045 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
20046
20047         * FileDialog.cs:
20048           - Disabled registry support for windows and added better registry
20049             error checking for other systems (need to investigate why it
20050             works perfectly on my system)
20051           - If a folder already exist show an error MessageBox instead of
20052             trying to create an indexed name.
20053           - Fixed a non intentional typo.
20054
20055 2006-06-08 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20056
20057         * FileDialog.cs: (SetFileName) don't crash if CurrentRealFolder is null.
20058
20059 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
20060
20061         * FileDialog.cs: When creating a new folder don't crash if the
20062           folder already exists.
20063
20064 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
20065
20066         * FileDialog.cs: Allmost a complete rewrite.
20067           - added a "virtual" file system that handles the differences
20068             between unix and windows file systems (especially the directory
20069             structure). Moved most of the directory and file handling code
20070             into the vfs.
20071             Added vfs classes: MWFVFS, FileSystem, WinFileSystem,
20072             UnixFileSystem and FSEntry.
20073           - Recently used folder/directory, size, location and used file names
20074             (file name ComboBox) are now stored in the registry and get read
20075             before the dialog shows up (fixes part 6 of bug #78446).
20076           - Creation of new folders/directories is now possible (context menu
20077             or ToolBar). Added TextEntryDialog for this that fills in the gap
20078             until ListView.LabelEdit works.
20079           - Fixed cursor handling (bug #78527) and focus handling for
20080             PopupButtonPanel
20081           - Various "Search in" ComboBox enhancements. The content of the
20082             dropdown listbox now almost matches ms.
20083           - Changed the behaviour when the user switches to SpecialFolder
20084             Recent to show the ListView in View.Details.
20085           - Beside using the ToolBar to change the View property of the
20086             file ListView it is now possible to use the context menu too.
20087
20088 2006-06-08  Alexander Olk  <alex.olk@googlemail.com>
20089
20090         * ComboBox.cs: Don't create a new ObjectCollection when an item
20091           gets inserted. Just insert the item in the existing object_items
20092           ArrayList.
20093
20094 2006-06-08  Jackson Harper  <jackson@ximian.com>
20095
20096         * OpenTreeNodeEnumerator.cs: Fix to use the Parent property, so
20097         that the treeview and root node checks are done also, this fixes a
20098         regression i caused in the unit tests.
20099
20100 2006-06-07  Wade Berrier <wberrier@novell.com> 
20101
20102         * RichTextBox.cs: More ISO8859-1 -> unicode
20103
20104 2006-06-07  Mike Kestner  <mkestner@novell.com>
20105
20106         * ComboBox.cs : use items to hold highlight/selection so that
20107         collection insertions don't require synchronization.
20108
20109 2006-06-07  Jackson Harper  <jackson@ximian.com>
20110
20111         * InternalWindowManager.cs: Simplify (and FIX) the window sizing
20112         routine.  We now always keep the sized edge at the cursor instead
20113         of computing movement and adjusting rects.  There is one buglet
20114         with this method though when the cursor is moved over area that
20115         the window can not expand too (such as the toolbars on the desktop).
20116
20117 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20118
20119         * XplatUIX11.cs: (IsEnabled,IsVisible) the window handler can be null
20120         here. Fixes crash on startup in AlbumSurfer.
20121
20122 2006-06-07  Peter Dennis Bartok  <pbartok@novell.com> 
20123
20124         * RichTextBox.cs: Replaced embedded ISO8859-1 chars with proper unicode
20125           values
20126
20127 2006-06-07 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20128
20129         * XplatUIX11.cs: call XPending and XNextEvent inside the same lock()
20130         statement to avoid calling XNextEvent which will block if another thread
20131         took the event that we were expecting. Fixes bug #78605.
20132
20133 2006-06-07  Mike Kestner  <mkestner@novell.com>
20134
20135         * ListView.cs : isolated checkbox clicking from the selection logic.
20136         Toggle check state on item doubleclicks.  Really fixes #78454 part2.
20137
20138 2006-06-06  Carlos Alberto Cortez <calberto.cortez@gmail.com>
20139
20140         * Form.cs: Check that the value passed to Form.DialogResult
20141         is a valid enum value.
20142
20143 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20144
20145         * FileDialog.cs: disable the up button when in 'Recently Used' or 'My
20146         Computer'. Clicking it in the network view goes to 'My Computer'.
20147         Added CIFS filesystem type. Display the mount point of filesystems.
20148         Avoid duplicate mount points (happens for me with CIFS);
20149
20150 2006-06-06  Jackson Harper  <jackson@ximian.com>
20151
20152         * InternalWindowManager.cs: Draw the maximized windows buttons
20153         when resizing.
20154
20155 2006-06-06 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20156
20157         * Form.cs: when running a modal dialog, ignore WM_CLOSE requests for
20158         all other dialogs. Fixes bug #78585.
20159
20160 2006-06-06  Mike Kestner  <mkestner@novell.com>
20161
20162         * CheckedListBox.cs : apply CheckOnClick behavior to unchecking too.
20163         Only invalidate checkbox on checkstate changes to avoid flicker.
20164         * ListBox.cs : avoid unselect/select when clicking selected item.
20165         avoid reselection flicker for already multiselected items.
20166         Fixes #78382.
20167
20168 2006-06-06  Jackson Harper  <jackson@ximian.com>
20169
20170         * MdiWindowManager.cs: When the window is closed do an NCRecalc on
20171         the parent form so that the menu is removed if needed.
20172
20173 2006-06-06  Mike Kestner  <mkestner@novell.com>
20174
20175         * ListBox.cs : add ScrollWindow call to UpdateTopItem.  fix
20176         Prev/Next/PrevPage/NextPage/Home/End index calculation.  Fixes #78559.
20177
20178 2006-06-06  Mike Kestner  <mkestner@novell.com>
20179
20180         * CheckedListBox.cs : rebuild check collection on Add.  Fixes #78426.
20181
20182
20183 2006-06-06  Jackson Harper  <jackson@ximian.com>
20184
20185         * Control.cs: Use the property (instead of the field) to get the
20186         default cursor so it is instantiated correctly.
20187         * InternalWindowManager.cs: The OS doesn't give us an NCPAINT with
20188         resizes so we need to manually repaint the window decorations here.
20189         - Set the titlebar button locations as soon as they are created,
20190         otherwise they are not set correctly on win32.
20191         
20192 2006-06-06  Chris Toshok  <toshok@ximian.com>
20193
20194         * CurrencyManager.cs (set_Position): call PullData before
20195         OnCurrentChanged.
20196         (AddNew): after calling IBindingList.AddNew, update our
20197         listposition, and call OnCurrentChanged/OnPositionChanged (without
20198         calling PullData).
20199         (OnCurrentChanged): remove the call to PullData from here.
20200         (OnItemChanged): remove the call to PushData from here.
20201         (OnPositionChanged): change the test from == null to != null to
20202         match the other methods.
20203         (ListChangedHandler): the grossest part of the patch.  Implement
20204         this such that it passes the unit tests in CurrencyManagerTest and
20205         the output more or less matches that of MS's implementation.
20206  
20207 2006-06-06  Mike Kestner  <mkestner@novell.com>
20208
20209         * ListView.cs : only update check state on single click.
20210         * ThemeWin32Classic.cs : fix focus drawing for details view without
20211         fullrowselect.  Fixes #78454.
20212         * XplatUIX11.cs : fix for double click emission.
20213
20214 2006-06-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
20215
20216         * PropertyGridView.cs : Applied Atsushi's patch to fix
20217         font dialog bug  (#78197).
20218
20219 2006-06-05  Jackson Harper  <jackson@ximian.com>
20220
20221         * TreeNode.cs: Compute the next node for expanding/collapsing
20222         correctly. We now factor in nodes without a NextNode
20223         correctly. (Fixes somes cases in nunit-gui).
20224         * InternalWindowManager.cs: Set the bounds when updating the
20225         virtual position of a tool window.
20226         
20227 2006-06-05  Chris Toshok  <toshok@ximian.com>
20228
20229         * DataGrid.cs: rename cached_currencymgr to list_manager.
20230         (set_CurrentCell): move SetCurrentCell code here, and clean it up
20231         some.
20232         (CurrentRow, CurrentColumn): single accessors so we can make the
20233         cursor movement code a lot easier to understand.
20234         (CurrentRowIndex): implement this in terms of CurrentRow.
20235         (BeginEdit): clean this up a bit.
20236         (CancelEditing): sort out the is_editing/is_changing/is_adding
20237         stuff a little.
20238         (EndEdit): minor changes.
20239         (OnKeyDown): add a comment about a (most likely) unnecessary
20240         check.
20241         (OnMouseDown): cancel editing when we click on a row header.  And
20242         use the CurrentRow setter, not CurrentCell.
20243         (ProcessDialogKey): directly call ProcessGridKey.
20244         (UpdateSelectionAfterCursorMove): factor out this common block of
20245         code (it's used everywhere that we move the cursor by updating row
20246         or column).
20247         (ProcessGridKey): pretty substantial overhaul.  Use the
20248         CurrentRow/CurrentColumn properties to make the code a lot more
20249         readable.  Only use the CurrentCell property when we have to
20250         modify both row and column at once.  Tab behavior is still broken,
20251         and Delete is untested.
20252         (Select): if we have no selected rows, set selection_start to
20253         @row.
20254         (EditCurrentCell): rename EditCell this.  It was only ever invoked
20255         with CurrentCell as the arg, so drop the arg and rename it.
20256
20257         * DataGridColumnStyle.cs: clean up the constructors a little, and
20258         drop CommonConstructor().
20259
20260         * DataGridTextBox.cs (.ctor): set accepts_return to true so we
20261         actually get notified when the user hits it.
20262         (ProcessKeyMessage): *substantially* simplify this method.
20263         There's no reason (that I can see) for the textbox to be making
20264         calls into the datagrid at all.  Remove all of them but the ones
20265         for Enter handling.  those will take some more work.
20266
20267         * DataGridTextBoxColumn.cs (ConcedeFocus): implement this by
20268         calling HideEditBox.
20269         (HideEditBox): if we have an active textbox, render it invisible
20270         without causing a re-layout of the datagrid.
20271
20272 2006-06-05  Mike Kestner  <mkestner@novell.com>
20273
20274         * ListView.cs : fix NRE crasher when focuseditem is cleared by
20275         collection changes by resetting it to Items[0].  Fixes #78587.
20276
20277 2006-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20278
20279         * MessageBox.cs: if the height of the text is larger than the icon_size,
20280         use that. Fixes bug #78575.
20281
20282 2006-06-05  Jackson Harper  <jackson@ximian.com>
20283
20284         * TreeView.cs: Fix line drawing when scrolling.  To do this each
20285         node is basically responsible for drawing its entire horizontal
20286         area.  When drawing a node it draws its parent node lines if
20287         needed.
20288         - Adjust the clip area to the viewport rectangle
20289         - Fix Left/Right key handling to match MS. (It expand/collapses
20290         and moves to parents/first child but does not move selection to
20291         sibling nodes).
20292         - Fix SetTop to work with new bound calculation code
20293         - When scrollbars are no longer needed we need to reset scrolling
20294         vars and recalculate the visible order so the redraw is correct
20295         * TreeNode.cs: We can't expand/collapse nodes with no children.
20296
20297 2006-06-03  John Luke  <john.luke@gmail.com> 
20298
20299         * X11DesktopColors.cs: dllimport the exact gtk and gdk versions
20300         so the colors work without dev packages
20301         
20302 2006-06-02  Peter Dennis Bartok  <pbartok@novell.com> 
20303
20304         * Control.cs 
20305           - Select: Implemented to just use activate. Seems to match MS 
20306             behaviour closest. Documented to only do actual control walking 
20307             based on it's parameters if in a container control so I moved 
20308             the code there.
20309           - Removed selection check logic from our internal Select() method
20310         * ContainerControl.cs:
20311           - Select: Moved selection logic from Control here, since MS documents
20312             that containers obey the bool arguments. No longer calling base
20313
20314 2006-06-02  Jackson Harper  <jackson@ximian.com>
20315
20316         * TreeView.cs: If the selected node isn't changed when we get
20317         focus update the previously selected node so that we see the
20318         selection box.
20319
20320 2006-06-02  Mike Kestner  <mkestner@novell.com>
20321
20322         * ComboBox.cs: restructure grab and general mouse event handling.
20323         Make the composite control raise mouse events like it was a single
20324         control for leaves/enters/motion/up/down events.  fix dropdown list
20325         coordinate mangling and refactor it into the scrollbar subclass to
20326         reduce code duplication.  Fixes #78282 #78361 and #78457.
20327
20328 2006-06-02  Mike Kestner  <mkestner@novell.com>
20329
20330         * ScrollBar.cs: remove Capture setting/clearing, as it happens
20331         automatically in the Control.WndProc.
20332
20333 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20334
20335         * FileDialog.cs: fix crash when running SharpChess, which sets the
20336         FilterIndex to 2 with only one Filter.
20337
20338 2006-06-01 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20339
20340         * ToolBar.cs: add SizeSpecified property.
20341         * ToolBarButton.cs: when the ButtonSize is calculated by the container,
20342         try to figure out our real size, otherwise fallback to what the
20343         container says.
20344
20345 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
20346
20347         * XplatUIX11.cs (DefWndProc): WM_MOUSEWHEEL needs to be passed up
20348         * Control.cs (WndProc): MS always calls the DefWndProc to pass
20349           up the event
20350
20351 2006-06-01  Mike Kestner  <mkestner@novell.com>
20352
20353         * ListView.cs: revamp the focus management in ListView.  It still
20354         causes churn of LostFocus/GotFocus emissions on clicks, but it's
20355         better than not handling focus at all.  Will revisit when pdb feels
20356         the general focus handling is solid.  Fixes #78526.
20357
20358 2006-06-01  Jackson Harper  <jackson@ximian.com>
20359
20360         * TreeView.cs: Set the default border style in the constructor.
20361         - Move painting to use OnPaintInternal instead of capturing
20362         WM_PAINT, this is the correct way of doing things
20363         - UpdateBelow shouldn't invalidate the scrollbar area
20364         - Cap the top on update below in case the node was above the top
20365         of the viewport rectangle.
20366         - ExpandBelow and Collapse below need to obey Begin/End Update.
20367         * TreeNode.cs: Make is_expanded internal so the treenode
20368         collection can change it without firing the whole event chain.
20369         * TreeNodeCollection.cs: When clearing all the child nodes make
20370         sure to recalc the visible order.
20371         - Improve algo for remove the top node
20372
20373 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com> 
20374
20375         * XplatUIX11.cs (SetFocus): Make sure we can handle re-entrancy due to
20376           SendMessage directly calling window procedures, which in turn might
20377           call SetFocus()
20378
20379 2006-06-01  Peter Dennis Bartok  <pbartok@novell.com>
20380
20381         * Control.cs: Don't handle WM_SETFOCUS if the same window already
20382           has focus (works around X11 sending a FocusIn after our SetFocus)
20383         * XplatUIX11.cs: Send KILLFOCUS before setting SETFOCUS on new window
20384
20385 2006-06-01  Alexander Olk  <alex.olk@googlemail.com>
20386
20387         * Mime.cs: Fix for the NET_2_0 build.
20388           NameValueCollection needs StringComparer now.
20389
20390 2006-05-31  Chris Toshok  <toshok@ximian.com>
20391
20392         * DataGridDrawingLogic.cs (FromPixelToColumn): modify this to also
20393         return (via an out parameter) the starting X of the column.
20394         (UpdateVisibleColumn): track change to FromPixelToColumn.
20395         (HitTest): add a ColumnResize case here.
20396         (DrawResizeLine): new function, probably poorly named.
20397
20398         * DataGrid.cs (.ctor): get rid of cached_currencymgr_events.  We
20399         only need to keep one reference.
20400         (set_ListManager): same.
20401         (OnMouseDown): call HitTest instead of grid_drawing.HitTest.
20402         Also, add support for HitTestType.ColumnResize.
20403         (OnMouseMove): add column resize behavior here, and change the
20404         cursor to the correct one as we move around the datagrid.
20405         (OnMouseUp): terminate the column resize if we're resizing.
20406         (ProcessGridKey): from the MS docs, Alt-0 enters the null value
20407         for the current cell.
20408         (ConnectListManagerEvents): use cached_currencymgr.
20409         (DisconnectListManagerEvents): fill this in, using
20410         cached_currencymgr.
20411         (SetCurrentCell): remove cached_currencymgr_events handling.
20412         (SetDataMember): only call DisconnectListManagerEvents if
20413         cached_currencymgr is != null.
20414         (SetDataSource): same.
20415         (OnListManagerCurrentChanged): cached_currencymgr_events ->
20416         cached_currencymgr.
20417
20418 2006-05-31  Jackson Harper  <jackson@ximian.com>
20419
20420         * BindingManagerBase.cs: Remove somedebug code that creeped into
20421         SVN.
20422         * TreeNode.cs: We get the indent level dynamically right now, so
20423         don't track it as a member.
20424         * TreeNodeCollection.cs: Make sure all nodes added to the list
20425         have parents, treeviews/topnodes setup properly.
20426         - Don't attempt to track indent level.
20427
20428 2006-05-30  Jackson Harper  <jackson@ximian.com>
20429
20430         * BindingContext.cs: Create the currency manager tables here.
20431         This allows us to more easily create null tables (when bad data
20432         members are used), and more easily create related currency
20433         managers.
20434         * CurrencyManager.cs: All the table creation stuff is done by the
20435         binding context now.
20436         - Current should throw an exception if listposition is -1.
20437         - CancelCurrentEdit/EndCurrentEdit, do nothing if the list hasn't
20438         been bound yet.
20439
20440 2006-05-30  Mike Kestner  <mkestner@novell.com>
20441
20442         * ListView.cs: allow reexpansion of zero-width column headers.
20443         Fixes #78528.
20444
20445 2006-05-28  Chris Toshok  <toshok@ximian.com>
20446
20447         * CurrencyManager.cs (get_Current): after the late binding
20448         listposition = -1 fix, we need to guard against it here and return
20449         null, otherwise we raise an exception (which is swallowed
20450         elsewhere, and breaks datagrid databinding.)
20451
20452 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
20453
20454         * MenuAPI.cs (ProcessMenuKey): We can legally get msg types other
20455           than WM_SYSKEY, don't throw if get something unexpected (#78507)
20456
20457 2006-05-26  Jackson Harper  <jackson@ximian.com>
20458
20459         * ControlPaint.cs:
20460         * ThemeWin32Classic.cs: For color comparisons just use the ARGB
20461         values, it's faster and it's all we care about (we don't care if
20462         the names aren't equal).
20463         * KeyboardLayouts.cs: Eliminate some dead code.
20464         - Lazy init things
20465         * X11Keyboard.cs: Lazy init keyboard detection.
20466         - Cleanup access modifiers a little.
20467
20468 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com>
20469
20470         * XplatUIX11.cs: Once again, attempting to get layout just right.
20471
20472 2006-05-26  Peter Dennis Bartok  <pbartok@novell.com> 
20473
20474         * LinkLabel.cs (CreateLinkPieces): Use MeasureString to calculate
20475           the sizes of each link section, that will result in sizes that
20476           match DrawString's layout (Fixes #78391)
20477
20478 2006-05-27  Alexander Olk  <alex.olk@googlemail.com>
20479
20480         * FileDialog.cs: If AddExtension property is true autocomplete the
20481           extensions in SaveFileDialog correctly. Fixes bug #78453.
20482           Set MyNetwork and MyComputer to "C:\" for windows. This should
20483           fix part 8 of bug #78446 for now.
20484
20485 2006-05-26  Chris Toshok  <toshok@ximian.com>
20486
20487         * DataGrid.cs (ColumnStartedEditing): fill these in.  for now just
20488         invalidate the current row header if we need to, but presumably
20489         we'll invalidate the row corrsponding to the bounds or
20490         editingControl.
20491         (GridHScrolled): switch back to this method, as it's part of the
20492         public api.  *sigh*.
20493         (GridVScrolled): same.
20494         (OnMouseWheel): hack up something that more or less works.  Call
20495         GridHScrolled/GridVScrolled directly, instead of duplicating much
20496         of their code here.
20497         (EnsureCellVisibility): reinstate a bunch of this code, since we
20498         can't just set the scrollbar Value and expect to do all the work
20499         in the ValueChanged handler.  Also, Call Update() after scrolling
20500         in one direction so the other XplatX11.ScrollWindow call has the
20501         proper stuff in the proper places.
20502         (EditCell): set is_editing to true before calling .Edit.
20503
20504         * DataGridTextBox.cs (set_IsInEditOrNavigateMode): just set it,
20505         don't bother comparing first.
20506         (OnKeyPress): call grid.ColumnStartedEditing before calling
20507         base.OnKeyPress.  this will set is_changing and invalidate the row
20508         header if necessary.
20509         (ProcessKeyMessage): for WM_CHAR messages, call
20510         ProcessKeyEventArgs directly.  swallow anything other than WM_CHAR
20511         and WM_KEYDOWN.
20512         
20513         * DataGridBoolColumn.cs (Edit): don't set is_editing to true here.
20514         it's done in the DataGrid.
20515         (NextState): call grid.ColumnStartedEditing, which takes care of
20516         invalidating the row header (and setting is_changing).
20517
20518         * DataGridTextBoxColumn.cs (Edit): don't set is_editing to true
20519         here.  it's done in the DataGrid.
20520
20521 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20522
20523         * Control.cs: allow changing the cursor when the mouse position is
20524         out of bounds but Capture is set.
20525         * LinkLabel.cs: handle the case when the mouse button is pressed on the
20526         linklabel but released somewhere else.
20527
20528 2006-05-25  Jackson Harper  <jackson@ximian.com>
20529
20530         * TreeView.cs: When we get focus if there is no selected node make
20531         it the top node
20532         - Remove some uneeded setup code from Draw.
20533         * TreeNodeCollection.cs: If the tree doesn't have a top node when
20534         a new node is inserted make the new node the top.
20535         * XplatUIX11.cs:
20536         * Timer.cs: Use Utc time so that no local time zone stuff needs to
20537         be used (should be faster).
20538         
20539 2006-05-25  Chris Toshok  <toshok@ximian.com>
20540
20541         * DataGrid.cs (EnsureCellVisibility): remove some code to fix a
20542         problem with the last commit.
20543
20544 2006-05-25  Chris Toshok  <toshok@ximian.com>
20545
20546         * DataGridTextBoxColumn.cs (ReleaseHostedControl): turns out we do
20547         need the invalidate call here, while scrolling right-to-left via
20548         the left arrow key (i.e. moving the editing cell while scrolling).
20549
20550         * DataGrid.cs (.ctor): remove the initialization of
20551         ctrl_pressed/shift_pressed.  We no longer track them using key
20552         up/down handlers, but by using Control.ModifierKeys.  Also, switch
20553         to using ValueChanged handlers on the scrollbars instead of
20554         Scrolled event handlers.  This simplifies a bunch of the scrolling
20555         code.
20556         (GridHValueChanged): rename from GridHScrolled, and change it to
20557         work with the new event args.
20558         (GridVValueChanged): same.
20559         (OnMouseDown): initialize ctrl_pressed/shift_pressed here.
20560         (OnMouseWheel): actually scroll the datagrid.  Don't change the
20561         selected cell.
20562         (ProcessGridKey): correct all the keyboard navigation stuff I
20563         could find.  Ctrl up/down/left/right/home/end work now.
20564         (EnsureCellVisibility): correct method name spelling.  Also,
20565         simplify this a touch by not explicitly calling the
20566         ScrollToRow/ScrollToColumnInPixels methods.  We just set the
20567         scrollbar value.
20568         (OnKeyUpDG): no need for this method now.
20569         
20570 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20571
20572         * LinkLabel.cs: display the OverrideCursor when hovering the label.
20573         Fixes bug #78392.
20574
20575 2006-05-25  Chris Toshok  <toshok@ximian.com>
20576
20577         * ThemeWin32Classic.cs: fix datagrid clipping problems caused by
20578         r61019.
20579
20580 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
20581
20582         * Application.cs: Moved setting of is_modal and closing to before
20583           we create the control, to allow the event handlers called as a
20584           result of creation affect closing. Also removed Gonzalo's previous
20585           change to setting DialogResult, the behaviour has been moved to 
20586           Form.ShowDialog()
20587         * Form.cs: 
20588           - ShowDialog(): Removed explicit creation of the form, let RunLoop
20589             handle it instead
20590           - ShowDialog(): If no dialog result is set, we need to return Cancel
20591           - WM_CLOSE: Fire Closing/Closed events, and reset dialog result if
20592             the close is cancelled
20593
20594 2006-05-25  Jackson Harper  <jackson@ximian.com>
20595
20596         * StatusBar.cs: We only need to update the sizes of the other
20597         panels when we have auto size contents.  Also we are only updating
20598         the contents of the panel, not the borders, so compensate for the
20599         border width (TODO: get this width from the theme somehow).
20600         * TreeView.cs: Scrollable is true by default
20601         - Use invalidate instead of refresh where needed
20602         - Factor the scrollable value into scrollbar updating
20603         - Update the scrollbars if the Scrollable property is altered
20604         - Update the selected node if its ImageIndex is changed
20605         - Handle null nodes in UpdateNode (mainly so we don't have to
20606         check if selected is null when updating it
20607         - Fix VisibleCount to use the ViewportRectangle so that scrollbars
20608         are factored into the visible count
20609         - Use VisibleCount for clarity in the code
20610         - When the font is changed we need to recurse through all the
20611         nodes and invalidate their sizes
20612         
20613 2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
20614
20615         * Application.cs: set the DialogResult to fixed when the main form is
20616         hidden or destroyed while being modal.
20617
20618 2006-05-25  Miguel de Icaza  <miguel@novell.com>
20619
20620         * Theme.cs: Use Tangoified messagebox icons. 
20621
20622         (GetSizedResourceImage): Also cope with width = 0 and do not
20623         trigger a warning in that case (0 means "give me your icon from
20624         the resouce, no special size needed).
20625
20626 2006-05-25  Peter Dennis Bartok  <pbartok@novell.com> 
20627
20628         * Application.cs: Leave runloop if the the main modal form is 
20629           hidden (fixes #78484)
20630
20631 2006-05-25  Atsushi Enomoto  <atsushi@ximian.com>
20632
20633         * BindingContext.cs : reject null datasource in Contains() and
20634           Item[].
20635         * CurrencyManager.cs : check data_member validity when data_source
20636           is dataset. When it is late binding, the initial position is -1.
20637
20638 2006-05-24  Jackson Harper  <jackson@ximian.com>
20639
20640         * TreeNodeCollection.cs: Dont't recalculate the visible order on
20641         inserted nodes that aren't visible.  This changes the
20642         max_visible_order which confuses scrollbar settings.
20643         - Use the enumerator to get the prev node instead of duplicating
20644         code.
20645         * TreeView.cs: Use new method for setting scrollbar values
20646         - Don't set the bounds every time the scrollbar is updated
20647         - When updating below the root node use an invalidate instead of a
20648         refresh to prevent the child controls (scrollbars) from being
20649         refreshed. (UpdateBelow still needs to be reworked anyways).
20650         - Reenable SetBottom now that visible orders are set correctly,
20651         added some debug code incase we ever get bad values there again.
20652         - Set the scrollbar max to 2 less then the max value, this
20653         compensates for the max value being one above the node count, and
20654         for scrollbars adding one extra "notch".
20655         - When drawing image nodes if there is an imagelist we draw the
20656         first image in the list if the supplied image index is out of the
20657         image list's bounds.
20658         
20659 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
20660
20661         * XplatUIX11.cs: Don't blindly cache hwnd.ClientRect, reset it when 
20662           we receive a size change from the WM (Fixes #78503)
20663
20664 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com>
20665
20666         * XplatUIWin32.cs, XplatUIX11.cs: Refresh when setting the Clip 
20667           rectangle (Fixes #78501)
20668
20669 2006-05-24  Peter Dennis Bartok  <pbartok@novell.com> 
20670
20671         * ButtonBase.cs: 
20672           - Fixed MouseUp, MouseDown and MouseMove to treat mouseevent.Button 
20673             as a bitfield.
20674           - Fixed MouseMove to no longer switch pressed state unless the left
20675             mouse button is pressed. Atsushi provided the original patch (#78485)
20676           
20677 2006-05-24  Jackson Harper  <jackson@ximian.com>
20678
20679         * ScrollBar.cs: New internal methods that allow us to change a
20680         couple values on the scrollbar (the most common case is maximum
20681         and large change) without getting multiple invalidates.
20682
20683 2006-05-24  Chris Toshok  <toshok@ximian.com>
20684
20685         * DataGridBoolColumn.cs (Abort): revert back to the saved setting.
20686         (Edit): save off the original state in oldState, and set
20687         grid.is_editing to true.
20688         (OnKeyDown): abort editing if escape is pressed.  also, call
20689         NextState if space is pressed.
20690         (OnMouseDown): call NextState.
20691         (NextState): factor out shared code from OnKeyDown and OnMouseDown
20692         here.  Also, only invalidate the row header once (on the initial
20693         is_changing switch) to save on redraws.
20694
20695 2006-05-24  Chris Toshok  <toshok@ximian.com>
20696
20697         * DataGridTextBoxColumn.cs (Commit): only call SetColumnValueAtRow
20698         if the value in the cell is different than it was before.  This
20699         keeps us from triggering a layout when we move around a datarid
20700         with a highlighted cell.
20701         (Edit): suspend layout when creating/positining the text box, and
20702         resume passing false so we don't ever actually re-layout.
20703         (ReleaseHostedControl): same.
20704         (EnsureTextBox): reformat slightly, and set WordWrap to false.
20705
20706         * DataGridTextBox.cs (ProcessKeyMessage): it's not true that all
20707         control-key sequences should go to the datagrid - remove that
20708         lock.  Also, modify the conditions under which we move between
20709         cells when moving the cursor within a cell, and remove the "this"
20710         and "base" from field accesses.  We weren't even consistent, given
20711         they all were in the base class.
20712
20713 2006-05-24  Atsushi Enomoto  <atsushi@ximian.com>
20714
20715         * Binding.cs : (.ctor)
20716           An obvious NRE fix for BindingTest.CtorNullTest().
20717
20718 2006-05-23  Chris Toshok  <toshok@ximian.com>
20719
20720         * TextBoxBase.cs (get_Text): don't add a trailing newline, add
20721         them between lines.  This fixes some quirks editing cells in the
20722         datagrid.
20723
20724 2006-05-23  Jackson Harper  <jackson@ximian.com>
20725
20726         * TreeView.cs: Use begin/end update when doing expand/collapse all
20727         so that we don't get flicker on the scrollbar.
20728
20729 2006-05-23  Jackson Harper  <jackson@ximian.com>
20730
20731         * TreeNode.cs: Bounds are computed 'on the fly' now.  This allows
20732         treenode calculations to be independant of the painting code. To
20733         do this nodes track a visible order which is calculated by the
20734         treeview.
20735         - Call new methods for expanding/collapsing nodes.  These methods
20736         use scrollwindow so we don't have to update everything below the
20737         node.
20738         * TreeView.cs: Refactored drawing and scrolling code.  We don't
20739         need to update nodes when drawing anymore or calculate scrollbar
20740         stuff.
20741         - Added new methods for expanding/collapsing nodes. These methods
20742         use ScrollWindow so as to not have to redraw all the nodes below.
20743         * TreeNodeCollection.cs: Recalc visible order and scrollbars when
20744         we add/remove nodes or sort.
20745         - Handle removing the selected and the top node properly.
20746
20747 2006-05-23  Chris Toshok  <toshok@ximian.com>
20748
20749         * DataGridTextBoxColumn.cs (Edit): set grid.is_editing to true.
20750         maybe this should actually happen in the datagrid code?
20751         (EndEdit): no need to invalidate anything, given that
20752         ReleaseHostedControl causes the datagrid to relayout, which
20753         invalidates everything anyway.
20754
20755         * DataGrid.cs (set_CurrentCell): remove duplicate check (it's also
20756         in SetCurrentCell).
20757         (set_SelectionBackColor): call InvalidateSelection instead of
20758         Refresh.
20759         (set_SelectionForeColor): same.
20760         (BeginEdit): Flesh this out a bit.
20761         (CancelEditing): only do any of this if we're editing/adding.
20762         (EndEdit): same.
20763         (OnMouseDown): there's no need to cancel editing here, it's done
20764         in SetCurrentCell.
20765         (SetCurrentCell): only invalidate the current row header if it's a
20766         different row than the new one.
20767         (ShiftSelection): fix this to work like MS does.
20768         (ResetSelection): factor out the invalidation of selected_rows to
20769         InvalidateSelection.
20770         (SetDataSource): cancel any editing that's going on.
20771
20772         * DataGridColumnStyle.cs
20773         (IDataGridColumnStyleEditingNotificationService.ColumnStartedEditing):
20774         call the non-interface version.
20775
20776         * ThemeWin32Classic.cs (DataGridPaintColumsHdrs): intersect the
20777         header rectangle with the clip rectangle so we don't redraw the
20778         entire header for just a small area.  Gets rid of the last flicker
20779         when horizontally scrolling.
20780         (DataGridPaintRow): same.
20781
20782 2006-05-23  Mike Kestner  <mkestner@novell.com>
20783
20784         * ListViewItem.cs: remove size for line hack from LargeIcon layout.
20785         * ThemeWin32Classic.cs: don't draw line.  it's really the top of a
20786         poorly placed checkbox on the MS control.  Fixes Alex's unfiled
20787         Critical bug report.
20788
20789 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
20790
20791         * PictureBox.cs: Fixed broken ControlStyles. Unit test no longer fails,
20792           and this fixes #78493
20793
20794 2006-05-23  Miguel de Icaza  <miguel@novell.com>
20795
20796         * Theme.cs (GetSizedResourceImage): Scale images if the proper
20797         size is not found.  
20798         
20799         * FileDialog.cs: Do not change the background for the side bar as
20800         it wont work nicely with the theme, and also reduces the artifacts
20801         in rendering the icons (which I want to fix too).
20802
20803         * MimeIcon.cs (ResourceImageLoader): Load images from assembly
20804         resources, not resgen resources. 
20805
20806         (PlatformDefaultHandler): Pull images using the new API.
20807
20808 2006-05-23  Peter Dennis Bartok  <pbartok@novell.com> 
20809
20810         * Hwnd.cs (Dispose): Remove any pending exposures. XEventQueue holds
20811           a reference to the hwnd and will not remove it unless there are
20812           no pending exposures (fixes #78341)
20813         * XplatUI.cs: Improved debug
20814
20815 2006-05-23  Atsushi Enomoto  <atsushi@ximian.com>
20816
20817         * MenuAPI.cs : don't handle OnClick event when it was not the left
20818           button. Fixed bug #78487.
20819
20820 2006-05-23  Mike Kestner  <mkestner@novell.com>
20821
20822         * MenuAPI.cs: fix placement of submenus for multi-row menu bars, and
20823         prefer submenus to the top menu for item lookup, to avoid popping down
20824         top-row items.
20825
20826 2006-05-23  Alexander Olk  <alex.olk@googlemail.com>
20827
20828         * ThemeWin32Classic.cs: Rewrote CPCPDrawScrollButton to drop
20829           Graphics.FillRectangle as the visual results are really bad (even
20830           on win). We now draw perfect arrows (and perfect shadows when the
20831           scrollbar is disabled). Simplified CPDrawGrid. CPDrawGrid now uses
20832           Pen.DashPattern to draw the dots of each line.
20833
20834 2006-05-22  Alexander Olk  <alex.olk@googlemail.com>
20835
20836         * FileDialog.cs: Update the filename combobox when navigating through
20837           the ListView with the cursor keys. Fixes part 7 of bug #78446.
20838
20839 2006-05-22  Mike Kestner  <mkestner@novell.com>
20840
20841         * ListView.cs: raise SelectedIndexChanged on keyboard selection.
20842         Fixes #78463.
20843
20844 2006-05-22  Mike Kestner  <mkestner@novell.com>
20845
20846         * ComboBox.cs: Refresh in EndUpdate to pick up all the dropped Paint
20847         requests. Fix a misspelled parameter and a copy paste exception error
20848         in Select.
20849
20850 2006-05-22  Peter Dennis Bartok  <pbartok@novell.com> 
20851
20852         * ThemeWin32Classic.cs: Changed DefaultFont emSize from 8.25 to 8
20853           to get the same width/height (5/13) on X11 as the default font has on
20854           win32. This means that our DefaultFont emSize is smaller than the 
20855           the MS SWF equivalent (even thought the width/height stays the same)
20856
20857 2006-05-20  Jackson Harper  <jackson@ximian.com>
20858
20859         * MdiClient.cs:
20860         * MdiWindowManager.cs:
20861         * InternalWindowManager.cs: Make sure to use the border width from
20862         the theme.
20863
20864 2006-05-20  Jordi Mas i Hernandez <jordimash@gmail.com>
20865
20866         * PrintDialog.cs: Implements printer details
20867
20868 2006-05-19  Alexander Olk  <alex.olk@googlemail.com>
20869
20870         * FileDialog.cs: Added focus handling for PopupButtonPanel.
20871           Fixes part 1 and 2 of bug #78446
20872
20873 2006-05-19  Peter Dennis Bartok  <pbartok@novell.com> 
20874
20875         * XplatUIX11.cs (SetWindowPos): Recalculate client area size on resizes
20876           instead of sticking to the first ever calculated value
20877
20878 2006-05-19  Mike Kestner  <mkestner@novell.com>
20879
20880         * ComboBox.cs: fix mouse motion selection to use MousePosition and
20881         PointToClient, since Capture is set. Fixes #78344.
20882
20883 2006-05-19  Mike Kestner  <mkestner@novell.com>
20884
20885         * ListView.cs: match MS behavior in Details view where items are not
20886         drawn if Columns.Count == 0. 
20887         * ThemeWin32Classic.cs: only highlight ListView selection if focused.
20888         Use a separate pen to draw the check, since changing the width affects
20889         the box as well.  Fixes #78454.
20890
20891 2006-05-18  Miguel de Icaza  <miguel@novell.com>
20892
20893         * ListView.cs: ArgumentOutOfRangeException, single versions of the
20894         exception should throw the name of the invalid argument.
20895
20896         * FileDialog.cs (OnClickOpenSaveButton): Avoid crash in open if
20897         there are no files listed. 
20898
20899 2006-05-18  Jackson Harper  <jackson@ximian.com>
20900
20901         * ThemeWin32Classic.cs: Don't use endcaps, they mess the drawing
20902         up.
20903
20904 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
20905
20906         * Control.cs: Brought back our old UpdateZOrder method as a private
20907           function and switched our calls from UpdateZOrder to the new one.
20908           This fixes the Paint.Net canvas disappearing bug.
20909
20910 2006-05-18  Jackson Harper  <jackson@ximian.com>
20911
20912         * Theme.cs:
20913         * ThemeWin32Classic.cs:
20914         * InternalWindowManager.cs: Move the drawing into the theme,
20915         expose everything the theme should need from the window manager.
20916
20917 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
20918
20919         * XplatUIX11.cs (DefWndProc): WM_SETCURSOR: Assign the return value 
20920           from the call to NativeWindow to avoid walking up the parent chain
20921           further than needed (speeds up setting cursors and avoids setting
20922           the wrong cursor if a parent has another cursor defined)
20923         * Cursor.cs: When loading an icon as cursor, MS uses the center of
20924           the icon as hotspot, not what's contained as hotspot in the icon
20925           file. This fixes the perceived drawing offset seen with Paint.Net
20926         
20927 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com> 
20928
20929         * XplatUIX11.cs: 
20930           - Store the calculated rectangle in Hwnd object and use it when 
20931             setting the client size
20932           - Force Toolwindows to always be type Dock, to ensure they're on top
20933
20934 2006-05-18  Mike Kestner  <mkestner@novell.com>
20935
20936         * ComboBox.cs: first pass at ComboBox rework.  Layout is more
20937         consistent with MS positioning.  IntegralHeight, ItemHeight, Sizing.
20938         Correctly initialize textcontrol and ListBox on DropDownStyle changes. 
20939         Substantial refactoring to remove confusing nested classes. Coding
20940         standard and Get+Set->property refactorings.  Shift to index based
20941         highlighting in ComboListBox instead of constantly using IndexOf and
20942         Items[]. Add invalidations on resize for DropDownList to fix ugliness
20943         in FileDialog growth.  Draw borders manually since Simple mode needs
20944         to look like two independent controls.  Make listbox border
20945         conditional to DropDownStyle.  Improved OwnerDraw support.
20946
20947 2006-05-18  Sebastien Pouliot  <sebastien@ximian.com>
20948
20949         * PaintEventArgs.cs: For 2.0, check for a null Graphics in the .ctor. 
20950         Don't set the disposed graphics to null, so we can throw the "right"
20951         exception if the graphics is reused later (added a flag to avoid 
20952         double disposing). Some behaviours are different under 2.0 and are
20953         filled under bug #78448.
20954
20955 2006-05-18  Peter Dennis Bartok  <pbartok@novell.com>
20956
20957         * Control.cs: When double-buffering is enabled, we need to reset
20958           our graphics context between paint calls. Otherwise, any 
20959           transformations and other alterations on the context will 
20960           become cumulative (#77734)
20961
20962 2006-05-18  Mike Kestner  <mkestner@novell.com>
20963
20964         * ListView.cs: do focused item selection like MS on clicks. 
20965         Rework focus handling for ItemControl so LostFocus invalidates as
20966         well.
20967         * ThemeWin32Classic.cs: only draw focus rectangle for ListViewItems if
20968         the ListView ItemControl has focus.
20969
20970 2006-05-17  Peter Dennis Bartok  <pbartok@novell.com>
20971
20972         * XplatUIX11.cs: If client_window ends up being width or height zero
20973           due to border settings, move it off window inside whole_window (#78433)
20974
20975 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
20976
20977         * Mime.cs: Shrink the mime file cache correctly.
20978
20979 2006-05-17  Alexander Olk  <alex.olk@googlemail.com>
20980
20981         * ThemeWin32Classic.cs: Readded button focus drawing code. (#78429)
20982
20983 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
20984
20985         * XplatUIX11.cs (AddExpose): More sanity checks
20986
20987 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
20988
20989         * XplatUIX11.cs:
20990           - AddExpose: Don't add expose ranges outside the size of our
20991             window
20992           - Cast opacity values to Int32 to avoid crashes with certain
20993             values
20994           - Added disabled code paths that protect against illegal cross-
20995             thread painting (Developers.exe)
20996
20997 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
20998
20999         * ProgressBar.cs: Invalidate the control when it's resized
21000           since block size is based on control size. (#78388)
21001
21002 2006-05-16  Miguel de Icaza  <miguel@novell.com>
21003
21004         * DataGrid.cs (SetDataBinding): per the discussion on irc, instead
21005         of setting the incoming argument to the "reset" value, we set the
21006         this.datamember to string.empty (before we were invalidating the
21007         incoming data).   
21008
21009         Fixes 78420
21010
21011 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
21012
21013         * Form.cs: Only apply transparency settings after the form
21014           is created. (Fixes #77800)
21015
21016 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com>
21017
21018         * ApplicationContext.cs: Grab the HandleDestroyed event so
21019           we know when to fire OnMainFormClosed 
21020
21021 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
21022
21023         * Application.cs: Introduced sub-class to allow tracking of
21024           threads and centralized triggering of the event mess for
21025           ThreadExit, AppExit, etc..  (#76156)
21026
21027 2006-05-16  Alexander Olk  <alex.olk@googlemail.com>
21028
21029         * MimeIcon.cs:
21030           - Do not return a null icon index value for a mime subclass.
21031             Instead try the main mime type class too.
21032           - Seems that some newer distributions don't have a link to some
21033             gnome default icons anymore. So check the default gnome dir too.
21034           
21035
21036 2006-05-16  Jackson Harper  <jackson@ximian.com>
21037
21038         * MdiClient.cs: Don't paint the parent background image if we have
21039         our own background image.
21040
21041 2006-05-16  Peter Dennis Bartok  <pbartok@novell.com> 
21042
21043         * Control.cs:
21044           - PerformLayout: Do not shrink space filled by DockStyle.Fill
21045             controls, all filled controls are supposed to overlap (#78080)
21046           - UpdateZOrder is supposed to update the control's z-order in the
21047             parent's z-order chain. Fixed to behave like that
21048           - BringToFront: Removed obsolete code
21049           - SendToBack: Simplyfied
21050           - SetChildIndex: Trigger layout calculations when Z-order changes
21051             since layout is done by z-order
21052
21053 2006-05-16  Chris Toshok  <toshok@ximian.com>
21054
21055         [ fixes bug #78410 ]
21056         * DataGrid.cs (set_AlternatingBackColor): use
21057         grid_drawing.InvalidateCells instead of Refresh().
21058         (set_BackColor): call grid_drawing.InvalidateCells.
21059         (set_BackgroundColor): use Invalidate instead of Refresh.
21060
21061         * DataGridDrawingLogic.cs (InvalidateCells): new function, just
21062         invalidate the cell area.
21063
21064 2006-05-15  Chris Toshok  <toshok@ximian.com>
21065
21066         [ fixes bug #78011 ]
21067         * ThemeWin32Classic.cs (DataGridPaintRows): pass the clip argument
21068         on to DataGridPaintRow.
21069         (DataGridPaintRow): take a clip argument, and only draw the cells
21070         which intersect it.  same with the not_usedarea.
21071
21072         * Theme.cs (DataGridPaintRow) add @clip parameter.
21073
21074         * DataGrid.cs (ScrollToColumnInPixels): simplify, use
21075         XplatUI.ScrollWindow.
21076         (ScrollToRow): same.
21077
21078         * DataGridDrawingLogic.cs (UpdateVisibleColumn): fix corner case
21079         with last column which was causing a gray swath to appear with the
21080         XplatUI.ScrollWindow code.
21081
21082 2006-05-15  Chris Toshok  <toshok@ximian.com>
21083
21084         * ListBox.cs (HorizontalScrollEvent): in the non-multicolumn case,
21085         use XplatUI.ScrollWindow.
21086         (VerticalScrollEvent): use XplatUI.ScrollWindow.
21087
21088 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com> 
21089
21090         * TextBoxBase.cs: Added handling of middle-button paste for X11. (#78375)
21091
21092 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
21093
21094         * Cursors.cs: For X11, read NWSE and NESW cursors from our resource
21095           file since there are no equivalent X11 cursors
21096
21097 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
21098
21099         * MonthCalendar.cs : DateTimePicker should reflect selected date
21100           on mouse*up*, not mouse*down*. Fixed originally reported part of
21101           bug #76474.
21102
21103 2006-05-15  Atsushi Enomoto  <atsushi@ximian.com>
21104
21105         * TabControl.cs : When argument index is equal or more than tab
21106           count, just ignore. Fixed bug #78395.
21107
21108 2006-05-15  Peter Dennis Bartok  <pbartok@novell.com>
21109
21110         * Control.cs: Dispose all child controls when control is diposed (#78394)
21111
21112 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
21113
21114         * ColorDialog.cs: Finally it is possible to select the color with
21115           the text boxes
21116
21117 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
21118
21119         * PrintDialog.cs: Fix typo
21120
21121 2006-05-14  Alexander Olk  <alex.olk@googlemail.com>
21122
21123         * PrintDialog.cs: PrintDialog is not resizable
21124         * ThemeWin32Classic.cs: Draw non links in LinkLabel with the correct
21125           color. Made some ToolBar drawing methods protected virtual.
21126
21127 2006-05-13  Jordi Mas i Hernandez <jordimash@gmail.com>
21128
21129         * PrintDialog.cs: Implementation of the PrintDialog
21130
21131 2006-05-12  Chris Toshok  <toshok@ximian.com>
21132
21133         * ScrollBar.cs (set_Value): don't use Dirty/Invalidate to move the
21134         thumb, instead use MoveThumb.  This has the side effect of making
21135         most of the other thumb moving machinery use MoveThumb as well.
21136         (OnHandleCreated): pass false for @dirty to UpdateThumbPos, as we
21137         need to actually invalidate the rectangle where the new thumb will
21138         go.
21139         (MoveThumb): use XplatUI.ScrollWindow to move the thumb around.
21140         We force an Update() after, so it's not as fast as it could be,
21141         but at least there's zero flicker and no droppings.
21142         (OnMouseMoveSB): in the thumb dragging case, use MoveThumb.
21143         (UpdateThumbPos): add another argument (dirty), which says whether
21144         or not to calculate/add dirty regions which we later invalidate.
21145         For cases where we know we're going to use MoveThumb, we pass
21146         false for this.  Otherwise, pass true.
21147
21148 2006-05-12  Jackson Harper  <jackson@ximian.com>
21149
21150         * ThemeWin32Class.cs: Fixes for alignment and icon rendering in
21151         the status bar.
21152         
21153 2006-05-12  Peter Dennis Bartok  <pbartok@novell.com>
21154
21155         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new SetClipRegion
21156           and GetClipRegion methods and UserClipWontExposeParent property.
21157         * XplatUIWin32.cs: Implemented SetClipRegion/GetClipRegion methods,
21158           overriding UserClipWontExposeParent property, setting to false, since
21159           Win32 handles the required expose messages to draw our clipped parent
21160           areas internally
21161         * XplatUIX11.cs: Implemented SetClipRegion and GetClipRegion; updated
21162           PaintEventStart to set the user clip region if set.
21163         * Control.cs: 
21164           - Now internally tracking the Region for the control since we need to
21165             store it if the handle is not yet created and only set it when it
21166             becomes created. Before setting the region forced handle creation
21167           - Added code to draw the parents underneath a user-clipped region
21168         * Hwnd.cs: Added UserClip property
21169
21170 2006-05-12  Chris Toshok  <toshok@ximian.com>
21171
21172         * ScrollBar.cs (set_LargeChange): Refresh() -> InvalidateDirty()
21173         (set_Maximum): same.
21174         (set_Minimum): same.
21175         (set_SmallChange): same.
21176         (OnMouseUpSB): remove the call to refresh when releasing the
21177         thumb.  We shouldn't need it.
21178         
21179 2006-05-12  Miguel de Icaza  <miguel@novell.com>
21180
21181         * StatusBar.cs (UpdatePanel): If the panel being refreshes has the
21182         AutoSize set to None, we do not need to relayout everything, we
21183         just need to invalidate the current region.
21184
21185         (Draw): Do not draw the entire ClientArea, just redraw the
21186         clip area being passed.
21187
21188         * MdiClient.cs: Make MdiClient constructor with the Form argument
21189         internal. 
21190
21191 2006-05-12  Jackson Harper  <jackson@ximian.com>
21192
21193         * ThemeWin32Classic.cs (DrawToolBar): Flat toolbars get their
21194         parents background image,  but strangely not their own.
21195         - (DrawStatusBarPanel): Take into account horizontal alignment
21196         when drawing the strings and icons.
21197
21198 2006-05-12  Mike Kestner  <mkestner@novell.com>
21199
21200         * ListBox.cs: avoid invalidations for focus when the collection is
21201         empty. 
21202
21203 2006-05-12  Chris Toshok  <toshok@ximian.com>
21204
21205         * ScrollBar.cs (OnMouseMoveSB): when dragging the thumb, don't
21206         invalidate the entire thumb area.  Call InvalidateDirty which
21207         limits the redraw to the thumb itself and surrounding pixels.
21208
21209         * XplatUIX11.cs (ScrollWindow): optimize copying.
21210         
21211 2006-05-12  Chris Toshok  <toshok@ximian.com>
21212
21213         * DataGridDrawingLogic.cs: make CalcGridAreas non-reentrant.
21214         Figure out the positioning/layout in a single pass instead of
21215         multiple recursive invocations.  Speeds up the initial display of
21216         the data grid.  Also, make many things private that were
21217         originally public but unused outside this class.
21218
21219 2006-05-11  Jackson Harper  <jackson@ximian.com>
21220
21221         * MdiClient.cs: Improved layout code.
21222
21223 2006-05-11  Jonathan Chambers  <jonathan.chambers@ansys.com>
21224
21225         * PropertyGrid.cs : Only check GetPropertiesSupported for properties,
21226           not SelectedObject.
21227
21228 2006-05-11  Chris Toshok  <toshok@ximian.com>
21229
21230         * Hwnd.cs (Invalid): don't start off with Rectangle.Empty, as
21231         union of that will always be {0,0,width,height}.
21232
21233 2006-05-11  Jackson Harper  <jackson@ximian.com>
21234
21235         * Form.cs: Match MS's DefaultSize for forms (they must have
21236         changed the size in sp2).
21237
21238 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
21239
21240         * TextBoxBase.cs : implement CTRL+A (select all). Fixed bug #78368.
21241
21242 2006-05-11  Atsushi Enomoto  <atsushi@ximian.com>
21243
21244         * TextControl.cs : Fixed bug #78109. This incorrect position
21245           comparison caused crash on automatic line split.
21246         * TextBoxBase.cs : reduce duplicate code.
21247
21248 2006-05-10  Jackson Harper  <jackson@ximian.com>
21249
21250         * MdiClient.cs: Active form is only sent to the back when using
21251         the Next form functionality, when a form is clicked the current
21252         active shouldn't be sent to the back.
21253         - Layout the mdi windows when the container is first made visible.
21254         * Form.cs: Give the MdiClient a ref to the containing form when we
21255         create it.
21256         
21257 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
21258
21259         * LinkLabel.cs : link_font could be uninitialized, so populate one
21260           before actual use. Fixed bug #78340.
21261
21262 2006-05-10  Atsushi Enomoto  <atsushi@ximian.com>
21263
21264         * XplatUIX11.cs : clipboard format native value is IntPtr.
21265           Fixed bug #78283.
21266
21267 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
21268
21269         * Control.cs: 
21270           - Instead of showing context menus directly we send WM_CONTEXTMENU, 
21271             which is passed up the parent chain by DefWndProc
21272           - We now handle WM_CONTEXTMENU to display any menu, or pass it 
21273             to DefWndProc (#77956)
21274         * XplatUIX11.cs: Added handling of WM_CONTEXTMENU (pass up) to DefWndProc
21275
21276 2006-05-10  Jackson Harper  <jackson@ximian.com>
21277
21278         * MdiClient.cs: We need to remove the controls from the mdi
21279         collection, when we close the window.
21280         * MdiWindowManager.cs: Special handling of closing mdi windows.
21281         * InternalWindowManager.cs: Make the close method virtual so the
21282         mdi window manager can handle it specially.
21283
21284 2006-05-10  Jordi Mas i Hernandez <jordimash@gmail.com>
21285
21286         * DataGrid.cs:
21287           - Recalculate grid when the data source has changed
21288           - Matches styles provided by user from all data sources types
21289         * DataGridTableStyle.cs: For columns that provided by the user set the
21290         with the preferred value is there was unassigned.
21291         * CurrencyManager.cs: throw OnItemChanged event
21292
21293 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com> 
21294
21295         * PictureBox.cs: Don't animate until handle is created. Start animation
21296           when handle is created.
21297
21298 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
21299
21300         * XplatUIX11.cs, Hwnd.cs: Adopted Mike's patch from #77979 to match
21301           current codebase.
21302         * XEventQueue.cs: We don't need to provide the extra info
21303
21304 2006-05-10  Jackson Harper  <jackson@ximian.com>
21305
21306         * MdiClient.cs: If the mdi clients parent form has a background
21307         image set, we draw that background image for the mdi area's
21308         background.
21309
21310 2006-05-10  Peter Dennis Bartok  <pbartok@novell.com>
21311
21312         * TextBoxBase.cs: Set IBeam cursor (#78347)
21313
21314 2006-05-10  Mike Kestner  <mkestner@novell.com>
21315
21316         * ToolBar.cs: fix some text padding issues with ButtonSize
21317         calculation. Update the default size to match MS documentation.
21318         * ToolBarButton.cs: use ToolBar.ButtonSize for layout of unspecified
21319         button size. Fixes #78296.
21320
21321 2006-05-10  Mike Kestner  <mkestner@novell.com>
21322
21323         * ListBox.cs: use is_visible for scrollbar positioning in case the
21324         control isn't on screen yet.  Fix off by one with Right vs Width
21325         usage.  Update Scrollbars in SetBoundsCore. Fixes #78188 and #78258.
21326         
21327 2006-05-10  Jackson Harper  <jackson@ximian.com>
21328
21329         * X11Dnd.cs: Drop to a control with another control on top of it.
21330         * ToolBar.cs: Work on a copy of the buttons list, so that it can
21331         be modified in click handlers. TODO: Look for similar problems in
21332         other controls.
21333
21334 2006-05-09  Jackson Harper  <jackson@ximian.com>
21335
21336         * Form.cs: Window managers need the old window state when setting
21337         window state now.
21338         * InternalWindowManager.cs: Allow the base mdi window manager to
21339         handle more of the MDI only stuff (like maximize buttons).
21340         * MdiWindowManager.cs: Fix some snafus in changing the window
21341         state.  Add all the menu functionality, for both popup and
21342         maximized menus.
21343         * MdiClient.cs: When a new form is selected the currently
21344         activated form is sent to the back, this matches MS.
21345         - Implement a new method to activate the next mdi child window.
21346
21347 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com>
21348
21349         * Control.cs: 
21350           - Added new InternalCapture method to allow controls to prevent
21351             the capture behaviour on the click handlers
21352           - Switched to use InternalCapture
21353         * ComboBox.cs:
21354           - Using InternalCapture to prevent mouse captures from being released
21355             on mouse button release (Fixes #78100)
21356         * XplatUIX11.cs (DeriveStyles): Now checks caption state and only
21357           returns Form borders if a caption is present. (Fixes #78310)
21358
21359 2006-05-08  Peter Dennis Bartok  <pbartok@novell.com> 
21360
21361         * TreeNode.cs: Changed serialization .ctor to not require every field
21362           to be present. (#78265)
21363         * OwnerDrawPropertyBag.cs: Added serialization .ctor
21364
21365 2006-05-05  Alexander Olk  <alex.olk@googlemail.com>
21366
21367         * MimeIcon.cs: for is faster than foreach for strings.
21368
21369 2006-05-05  Mike Kestner  <mkestner@novell.com>
21370
21371         * CheckedListBox.cs: update check handling code to not use selected.
21372         * ListBox.cs: rewrite of mouse selection handling to correspond to MS
21373         behavior for visual feedback, motion response, shift/ctrl handling,
21374         and properly deal with all 4 selection modes. Updates to bounds
21375         handling logic.  Add scroll wheel support. [Fixes #77842]
21376
21377 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
21378
21379         * ListView.cs:
21380           - Moved adding of Implicit controls into .ctor. That way, subsequent
21381             creation of the controls will not cause them to think they are 
21382             toplevel windows (fixes #78200 header problem)
21383           - Added 2.0 ShowGroups and UseCompatibleStateImageBehaviour
21384           - Switched visibility setting of header control to use internal field
21385             to avoid triggering handle creation
21386           - Now checking if handle is created before causing a refresh when items
21387             are added (This makes us now match handle creation time with MS)
21388         * Splitter.cs: Removed loading of private splitter cursor, switched to
21389           Cursors version now that that is loading the right ones
21390         * Cursors.cs: Load proper splitter cursors from resources
21391         * Cursor.cs: Added second method of loading resource cursors for the 
21392           VS.Net users amongst us
21393
21394 2006-05-05  Mike Kestner  <mkestner@novell.com>
21395
21396         * ListView.cs: give header_control a minimum size based on the
21397         ListView size.
21398
21399 2006-05-05  Peter Dennis Bartok  <pbartok@novell.com> 
21400
21401         * XplatUIX11.cs: WS_EX_TOPMOST requires window to be on top. A dock
21402           window seems to do that with metacity, so set that type. (#78120)
21403
21404 2006-05-05  Mike Kestner  <mkestner@novell.com>
21405
21406         * ListViewItem.cs: fix Details mode checkbox layout bug.
21407         * ThemeWin32Classic.cs: draw a ListView column header for unused space
21408         at the end of the header, if it exists. [Fixes for #78200]
21409
21410 2006-05-04  Jackson Harper  <jackson@ximian.com>
21411
21412         * MdiClient.cs: Add a helper property to get the container form.
21413         * MdiWindowManager.cs: We have to make sure to use the menu origin
21414         when drawing the icons and buttons, this fixes maximized window
21415         icons/buttons on win32.
21416         * InternalWindowManager.cs: Reset the restore captions when a
21417         window goes from Maximized to Minimized and vice versa. Move the
21418         DrawMaximizedButtons into the MdiWindowManager source, tool
21419         windows can't be maximized. NOTE: This could use a little
21420         refactoring if time ever permits.
21421         
21422 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
21423
21424         * TextBox.cs: Add MWFCategoryAttributes
21425         * TextBoxBase.cs: Add MWFCategoryAttributes
21426         * Form.cs: Add MWFCategoryAttributes
21427
21428 2006-05-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
21429
21430         * Control.cs: Add MWFCategoryAttributes
21431         * ScrollableControl.cs: Add MWFCategoryAttributes
21432
21433 2006-05-03  Alexander Olk  <alex.olk@googlemail.com>
21434
21435         * ThemeWin32Classic.cs: Draw the ToolBar top border only if
21436           Divider is true. Fix a little glitch in PropertyToolBar
21437           drawing code
21438
21439 2006-05-02  Peter Dennis Bartok  <pbartok@novell.com> 
21440
21441         * Control.cs:
21442           - Dispose: Call base.Dispose, this causes the disposed event
21443             to be fired (and probably other, more important stuff)
21444           - SetVisibleCore: Set is_visible to true after creating the
21445             window so that the window still gets created invisible (if
21446             WM_VISIBLE isn't set). That will cause the ShowWindow afterwards
21447             to generate a WM_ACTIVE message
21448         * Form.cs: Call Dispose when we want to destroy the window, instead of
21449           just destroying the handle (Dispose will do that for us)
21450         * XplatUIX11.cs:
21451           - RootWindow also needs a queue, so we can properly process the
21452             property change events from RootWindow (like Activate)
21453           - Generatic synthetic WM_ACTIVE message when the active window is
21454             being destroyed
21455
21456 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
21457
21458         * LinkLabel.cs: Trigger a recalc of our label dimensions when
21459           bounds are changed
21460
21461 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com>
21462
21463         * ThemeWin32Classic.cs (ButtonBase_DrawImage): Use the proper image
21464           for determining width and height (image might not be assigned if
21465           we're drawing an imagelist)
21466
21467 2006-05-01  Peter Dennis Bartok  <pbartok@novell.com> 
21468
21469         * XplatUI.cs, XplatUIDriver.cs: Added MenuHeight property
21470         * XplatUIWin32.cs: Overriding new MenuHeight property, retrieving
21471           height from system
21472         * Theme.cs: No longer returns hardcoded menu height, instead calls
21473           new driver method
21474         * Form.cs (OnLoad): Scaling happens before triggering Load events 
21475           on MS (# 78257)
21476
21477 2006-05-01  Mike Kestner  <mkestner@novell.com>
21478
21479         * MenuItem.cs: fix NRE for text == null.  Fixes #78250.
21480
21481 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com> 
21482
21483         * TextBoxBase.cs: Removed Fixme
21484         * RichTextBox.cs (set_RTF): Invalidate document after update (#78247)
21485
21486 2006-04-30  Peter Dennis Bartok  <pbartok@novell.com>
21487
21488         * XplatUIX11.cs:
21489           - ScrollWindow: We were passing hwnd.ClientRectangle which returns
21490             the rectangle relative to the parent, considering borders. We
21491             don't really want that.
21492           - ScrollWindow: Fixed warning to be more understandable
21493         * TextBoxBase.cs: Fixed ScrollWindow calculations to consider our
21494           scrollbars and scroll only the visible area
21495         * RichTextBox.cs: Removed debug output
21496
21497 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
21498
21499         * NumericUpDown.cs (Text): Just use base
21500         * UpDownBase.cs: Ensure txtView is created before using it
21501
21502 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
21503
21504         * XplatUIX11.cs (SetWindowTransparency): Casting opacity to int before
21505           casting to IntPtr to avoid 64bit overflow errors
21506
21507 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
21508
21509         * Control.cs:
21510           - AllowDrop: Don't force handle creation.
21511           - CreateHandle: Added call to tell driver if we're allowed to drop
21512
21513 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
21514
21515         * FileDialog.cs: Remember the last directory not only for the
21516           current instance but also for new FileDialog instances.
21517
21518 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com> 
21519         
21520         * XplatUIX11.cs: Forgot to set the queue on the foster parent. That
21521           broke sending async messages
21522
21523 2006-04-29  Peter Dennis Bartok  <pbartok@novell.com>
21524
21525         * XplatUIX11.cs:
21526           - ScrollWindow: Fixed method. We finally generate expose events again
21527             for scrolled areas. This was causing 'garbage' when scrolling
21528             textbox and other controls that used ScrollWindow
21529           - Switched from using the regular queue for paint events to the MS 
21530             model of 'generating' paint events when the queue is empty.
21531             We use the new XQueueEvent.Paint subclass to store which windows
21532             need painting.
21533           - AddExpose now takes the x/y/width/height of the exposed area
21534             and inserts the window into the paint queue if not already there
21535           - InvalidateWholeWindow: Switched to use new AddExpose method
21536           - UpdateMessageQueue: Added which queue to monitor for paint events
21537           - DefWndProc: Added default handler for WM_PAINT and WM_NCPAINT in
21538             the unlikely case nothing above handles it. We reset the expose
21539             pending states to get them off the queue.
21540           - GetMessage: Now pulls a paint event if no other events are in the
21541             queue
21542           - Invalidate: Switched to new AddExpose method
21543           - PeekMessage: Updated to understand pending paint events
21544           - UpdateWindow: Fixed logic bug. We were only updating if the window
21545             didn't need updating. Also switched to sending WM_PAINT directly,
21546             like MS does.
21547         * XEventQueue.cs: Added Paint queue support. Allows enqueue/dequeue
21548           and random access Remove(). The random access is needed to handle
21549           UpdateWindow() where a WM_PAINT is sent directly without accessing
21550           the queue.
21551         * ScrollBar.cs: Added Update() calls to cause immediate updates to
21552           allow for better feedback when scrolling. Scrollbars are small and
21553           the immediate update should make it 'feel' more responsive without
21554           slowing things down. ScrollBar still needs it's invaliate logic
21555           updated to not always invalidate the whole bar on certain changes.
21556
21557 2006-04-28 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21558
21559         * Control.cs:
21560         (BackColor): if the control does not support a transparent background,
21561         return the default backcolor when the parent backcolor is transparent.
21562
21563 2006-04-28  Peter Dennis Bartok  <pbartok@novell.com>
21564
21565         * Application.cs: Updated to new StartLoop/GetMessage API
21566         * RichTextBox.cs: Provide some output on RTF parsing errors
21567         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs: Added
21568           new queue_id argument to GetMessage and PeekMessage to allow faster
21569           handling of per-thread queues in drivers.
21570         * Hwnd.cs: Added Queue tracking and property
21571         * MenuAPI.cs: Updated to new StartLoop/GetMessage API
21572         * XEventQueue.cs: Added thread trackingA
21573         * PropertyGridView.cs: Updated to new StartLoop/GetMessage API
21574         * XplatUIX11.cs:
21575           - Implemented new per-thread queue
21576           - GetMessage: Fixed return/break behaviour on several cases. We were
21577             returning stale messages in some cases, instead of just processing
21578             the next message
21579
21580 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
21581
21582         * PropertyGrid.cs: Call GetPropertiesSupported on TypeConverter.
21583
21584 2006-04-27  Peter Dennis Bartok  <pbartok@novell.com>
21585
21586         * ThemeWin32Classic.cs (DrawToolBar): Refactored, simplified the logic,
21587           fixed off-by-one comparisons between Width/Height and Right/Bottom.
21588
21589 2006-04-27  Jonathan Chambers  <jonathan.chambers@ansys.com>
21590
21591         * PropertyGridView.cs: Fix drop down width.
21592
21593 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
21594
21595         * ThemeWin32Classic.cs: Peter thinks that three additional lines are
21596           a mess in DrawToolBar, so I removed one of them.
21597
21598 2006-04-27  Alexander Olk  <alex.olk@googlemail.com>
21599
21600         * ThemeWin32Classic.cs: Draw the ToolBar border lines only if
21601           needed (clip). Otherwise we get artifacts.
21602
21603 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
21604
21605         * FixedSizeTextBox.cs: Added constructor to allow specifying which
21606           dimension is fixed
21607         * UpDownBase.cs: Set the spinner control to be fixed height vertical,
21608           and switched FixedSizeTextBox to only be fixed vertical (#78116)
21609         * Form.cs: Not applying the 'MS 0.08 fudge factor' for a given dimension
21610           if it matches the scale base font (avoids unneeded scaling)
21611
21612 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
21613
21614         * X11DesktopColors.cs: One gtk_init_check should be enough
21615
21616 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com> 
21617
21618         * TextBoxBase.cs: Moved Backspace handling into WM_CHAR block to
21619           match MS behaviour
21620
21621 2006-04-26  Peter Dennis Bartok  <pbartok@novell.com>
21622
21623         * TextBoxBase.cs: 
21624           - Generate OnTextChanged for Backspace even if we're only deleting
21625             the current selection
21626           - When setting the Text property, only select all text if the
21627             control does not have focus when it is being set. Otherwise
21628             just place the cursor at the beginning of the control
21629
21630 2006-04-26  Alexander Olk  <alex.olk@googlemail.com>
21631
21632         * ThemeWin32Classic.cs: ToolBars get drawn with two lines at the top.
21633           Added a little helper to draw PropertyGrid ToolBar with a different
21634           border and a different BackColor.
21635         * PropertyGrid.cs: Some background parts didn't get painted with the
21636           correct background color. Added a class that helps us to draw the
21637           correct border for PropertyGridView and a class that helps us to
21638           draw ToolBars with a different backcolor
21639         * PropertyGridView.cs: Draw PlusMinus with the correct colors.
21640
21641 2006-04-25  Jonathan Chambers  <jonathan.chambers@ansys.com>
21642
21643         * PropertyGrid.cs: Bug 78196, font size, and splitter location.
21644         * PropertyGridView.cs: Bug 78196, font size, and splitter location.
21645
21646 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
21647
21648         * XplatUIWin32.cs (DIBtoImage): ORing instead of ANDing the alpha
21649           into the palette entries. Also, since we're working on a copy
21650           we needed to copy the palette back onto the bitmap.
21651         * Cursor.cs: Same fix as XplatUIWin32.cs.
21652
21653 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com>
21654
21655         * ImageListStreamer.cs: Need to read the var (or we're off)
21656
21657 2006-04-25  Peter Dennis Bartok  <pbartok@novell.com> 
21658
21659         * TextControl.cs, ComboBox.cs, CommonDialog.cs, Theme.cs, 
21660           XplatUIWin32.cs, RichTextBox.cs, ImageListStreamer.cs,
21661           TextBoxBase.cs: Unused var fixes
21662         * AxHost.cs: Small 2.0 fix
21663         * XplatUIX11.cs: Switched to IntPtr from int for XA_CARDINAL atoms 
21664           as it seems that is what at least Metacity expects. This will make
21665           icons show up on 64bit platforms. We still have some 64bit size
21666           issues, though, since the startup app window size still won't match.
21667
21668 2006-04-25  Mike Kestner  <mkestner@novell.com>
21669
21670         * *.cs: cleanup newly reported exception var unused warnings.
21671
21672 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
21673
21674         * ThemeWin32Classic.cs: Button image alignment now matches exactly
21675           ms
21676
21677 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
21678
21679         * ThemeWin32Classic.cs: Fixed drawing code for buttons with an
21680           image. The image position is always the same, no matter if the
21681           button is pressed or not.
21682
21683 2006-04-25  Alexander Olk  <alex.olk@googlemail.com>
21684
21685         * FileDialog.cs: SaveFileDialog shouldn't rely on a MWFFileView
21686           selection and set the correct filename for SaveFileDialog.
21687           Patch by Emery Conrad.
21688
21689 2006-04-24  Mike Kestner  <mkestner@novell.com>
21690
21691         * ListView.cs (LastVisibleIndex): when in List mode of Alignment.Left,
21692         check for item.X outside the ClientRect instead of item.Y. Fixes
21693         #78151.
21694
21695 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21696
21697         * ImageListStreamer.cs: some images store a wrong grow factor, so don't
21698         trust that value blindly and do some sanity check. Fixes bug #77814.
21699
21700 2006-04-21 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21701
21702         * ImageListStreamer.cs: save the mask as a 1bpp image.
21703
21704 2006-04-21  Mike Kestner  <mkestner@novell.com>
21705
21706         * CheckedListBox.cs: maintain CheckStatus here. Use DrawItemState to
21707         pass Checked and Indeterminate to the Theme Engine. Improve
21708         encapsulation with ListBox.
21709         * ListBox.cs: Keep a StringFormat instead of calculating it every item
21710         draw. Kill ListBoxItem. Refactor away the ListBoxInfo and ListBoxItem
21711         nested types.  Move all CheckState functionality to CheckedListBox.
21712         Make IntegralHeight work like MS.  Rewrite of Layout engine.  Fix
21713         OwnerDrawVariable layout/rendering.  Fix multicolumn rendering.  Fix
21714         ScrollAlwaysVisible handling. Refactor "selected" collections to use a
21715         single base list. Fix scrollbar sizing and placement to mirror MS.
21716         * Theme.cs: remove CheckedListBoxCheckRectangle. It wasn't really
21717         used.
21718         * ThemeWin32Classic.cs: implement Indeterminate CheckState rendering
21719         for CheckedListBox by using new DrawItemState info.  Center the
21720         checkboxes on the items. Use new StringFormat property.
21721
21722 2006-04-18  Jackson Harper  <jackson@ximian.com>
21723
21724         * Form.cs: MdiChildren don't do default locations the same way as
21725         regular forms.  This prevents a crash when trying to position the
21726         mdi windows.
21727
21728 2006-04-17  Jonathan Chambers  <jonathan.chambers@ansys.com>
21729
21730         * PropertyGridTextBox.cs: Formatting, copyright
21731         * PropertiesTab.cs: Formatting
21732         * PropertyGrid.cs: Formatting
21733         * PropertyGridView.cs: Formatting, fix drop down, enabled double 
21734           click toggling of values
21735           
21736 2006-04-17  Peter Dennis Bartok  <pbartok@novell.com> 
21737
21738         * KeyPressEventArgs: Added 2.0 only setter for KeyChar
21739         * Control.cs (.ctor): verify_thread_handle is static, don't reset
21740           every time a control is created
21741         * Application.cs: Removed obsolete EnableRTLMirroring method
21742
21743 2006-04-18  Gert Driesen  <drieseng@users.sourceforge.net>
21744
21745         * TabControl.cs: Avoid ArgumentOutOfRangeException when setting
21746         SelectedIndex to -1. Fixes bug #78121.
21747
21748 2006-04-17  Jackson Harper  <jackson@ximian.com>
21749
21750         * Binding.cs: Handle null values for Current and BindingContext.
21751         This occurs when binding is a little delayed.
21752         * CurrencyManager.cs: return null for Current when there are no
21753         items in the list.
21754         - Hookup to the listchanged event on the DataView and update
21755         bindings when the list is changed.  This fixes late binding of
21756         controls.
21757
21758 2006-04-17  Jackson Harper  <jackson@ximian.com>
21759
21760         * X11Dnd.cs:
21761         * XplatUIX11.cs: Drops should not create a mousedown. Patch by Tim
21762         Ringenbach.
21763
21764 2006-04-15  Alexander Olk  <alex.olk@googlemail.com>
21765
21766         * ThemeWin32Classic.cs: Draw disabled combo button in the correct
21767           place
21768         * ComboBox.cs: If the combobox is disabled call CPDrawComboButton
21769           with the correct ButtonState
21770
21771 2006-04-14  Peter Dennis Bartok  <pbartok@novell.com>
21772
21773         * XplatUIX11.cs: Improved distinguishing between window types to
21774           tell the WM a type closer to what the app wants (Fixes #78107)
21775
21776 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
21777
21778         * ThemeWin32Classic.cs: Fixed drawing of ContainerGrabHandle and
21779           GrabHandle
21780
21781 2006-04-14  Alexander Olk  <alex.olk@googlemail.com>
21782
21783         * ThemeWin32Classic.cs: Fixed size grip drawing and updated StatusBar
21784           drawing code to reflect the size grip changes
21785
21786 2006-04-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
21787
21788         * ImageListStreamer.cs: fix handling of the mask that follows the main
21789         bitmap when deserializing and serialize it properly. The generated mask
21790         should better be a 1bpp image, but I'll do that later.
21791
21792 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
21793
21794         * FileDialog.cs: Show something in the DirComboBox on *nix if the
21795           path doesn't fit into some of our Current.Places
21796
21797 2006-04-13  Jackson Harper  <jackson@ximian.com>
21798
21799         * ComboBox.cs: Use borders instead of drawing our own decorations,
21800         try to obey correct rules for heights.
21801         * Theme.cs:
21802         * ThemeNice.cs:
21803         * ThemeClearLooks.cs:
21804         * ThemeWin32Classic.cs: Remove combobox decoration drawing code,
21805         this is now handled by borders.
21806         - Remove unused DrawListBoxDecorationSize method.
21807         
21808 2006-04-13  Mike Kestner  <mkestner@novell.com>
21809
21810         * MenuAPI.cs: null guarding for the disbled click check fixes crash
21811         reported by Alex.
21812
21813 2006-04-13  Alexander Olk  <alex.olk@googlemail.com>
21814
21815         * ThemeWin32Classic.cs: 
21816           - Fixed CPDrawStringDisabled
21817           - Corrected drawing of disabled menu items
21818           - Fixed drawing of disabled radio buttons (bug #78095)
21819           - Draw check in a disabled CheckBox with color ControlDark 
21820
21821 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
21822
21823         * Form.cs: Use the provided width when calculating the menu size;
21824           when being maximized we get WM_NCCALCSIZE before WM_WINDOWPOSCHANGED
21825           and ClientSize.Width won't be updated yet
21826         * Application.cs: Use Visible instead of Show() to make form visible,
21827           this way we create the handle later and menusize is considered
21828
21829 2006-04-12  Mike Kestner  <mkestner@novell.com>
21830
21831         * MenuAPI.cs: ignore clicks on disabled menu items. Thanks to Alex for
21832         reporting.
21833
21834 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
21835
21836         * TextBox.cs: Implemented context menu
21837
21838 2006-04-12  Mike Kestner  <mkestner@novell.com>
21839
21840         * ListView.cs: implement box selection. fixes #77838.
21841         * ThemeWin32Classic.cs: draw box select rect, remove a ResetClip.
21842
21843 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
21844
21845         * XplatUIX11.cs: Added setting of window type when transient window
21846           is created (metacity would move it otherwise)
21847         * X11Structs.cs: Added WINDOW_TYPE atoms
21848         * LinkLabel.cs: Override OnPaintBackgroundInternal and draw the
21849           background (the control is Opaque but still wants transparent
21850           backgrounds)
21851
21852 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
21853
21854         * Control.cs: Added OnPaintBackgroundInternal to allow controls
21855           that set Opaque but don't mean it (like all ButtonBase-derived
21856           controls) to still draw their background
21857         * ButtonBase.cs: Override OnPaintBackgroundInternal and draw
21858           the background
21859
21860 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com> 
21861
21862         * Control.cs (PaintControlBackground): Set the graphics object
21863           on our PaintEvent to null to prevent it from being disposed
21864           when the PaintEvent gets disposed
21865
21866 2006-04-12  Alexander Olk  <alex.olk@googlemail.com>
21867
21868         * ThemeWin32Classic.cs: Use even more SystemBrushes and SystemPens
21869         * ThemeNice.cs, ThemeClearlooks.cs: fix typo
21870
21871 2006-04-12  Peter Dennis Bartok  <pbartok@novell.com>
21872
21873         * Control.cs: 
21874           - Added transparency check to BackColor property. Transparent
21875             backgrounds are only allowed if the control styles permit it
21876           - Added recursive painting of parent control background and
21877             foreground if a control with a transparent backcolor is drawn
21878             (Thanks to Tim Ringenback for providing his 'hack' as a base
21879              for this patch) Fixes #77985 and #78026.
21880           - Added Opaque style check before calling OnPaintBackground, no
21881             need to draw the background if the control is opaque
21882           - Removed ControlAccessibleObject owner variable (inherited from
21883             base, no need to define again)
21884           - Added some documentation links explaining the drawing events
21885             and styles
21886
21887 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
21888
21889         * Splitter.cs (CalculateSplitPosition): Corrected the bad assumption
21890           that the affected control is the located at the left border of our
21891           parent (Fixes #77936)
21892
21893 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
21894
21895         * TextBoxBase.cs: When rendering disabled or readonly controls,
21896           draw the background with 'Control' instead of 'Window' color as
21897           long as the user hasn't specifically set a color
21898
21899 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com> 
21900
21901         * TextBoxBase.cs: Don't try to shortcut by checking against base.Text
21902           since that won't be updated if the user types text (only if it's
21903           programatically set)
21904
21905 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
21906
21907         * ScrollableControl.cs: Calculate DisplayRect dynamically, so that
21908           layout changes do to app-triggered resizes will have the proper
21909           display rectangle for layout
21910
21911 2006-04-11  Alexander Olk  <alex.olk@googlemail.com>
21912
21913         * ThemeWin32Classic.cs:
21914           - Make use of the SystemBrushes and SystemPens wherever possible
21915           - Corrected some highlight colors
21916           - Corrected RadioButton and CheckBox FlatStyle.Flat and Popup
21917             drawing
21918         * Theme.cs: Added Empty field to CPColor struct
21919
21920 2006-04-11  Peter Dennis Bartok  <pbartok@novell.com>
21921
21922         * ScrollabeControl.cs: We need to consider whether or not a scrollbar
21923           is displayed when calculating the display rectangle. Thanks to Mike
21924           for teaching me the err of my ways.
21925
21926 2006-04-10  Peter Dennis Bartok  <pbartok@novell.com>
21927
21928         * ScrollableControl.cs:
21929           - Rewrote DisplayRectangle code, now returning the proper x/y coords 
21930             (instead of 0,0) and we now return the real width/height instead of
21931             just the clientrectangle, adjusted for padding. The rectangle is
21932             now cached and created by the new CalculateDisplayRectangle method.
21933           - Created new CalculateDisplayRectange method, which basically does
21934             what get_DisplayRectangle() did originally, but now using the 
21935             right edge instead of DisplayRectangle to determine the size of
21936             our scrollbars
21937           - get_Canvas(): Fixed it to properly calculate canvas for 
21938             right/bottom controls which seem to be placed to the right/bottom
21939             of any controls that have a fixed location
21940           - Removed TODO that's taken care of
21941           - Removed NotImplementeds and attempted to implement AdjustFormScrollBars
21942             and SetDisplayRectLocation according to new MSDN2 docs
21943           - Added call to PerformLayout in OnVisibleChanged, MS causes a layout
21944             event when that is called, this is added for compatibility
21945           - ScrollControlIntoView(): Implemented.
21946           - Switched scrollbars to be implicit, they shouldn't be selectable
21947         * ContainerControl: Now that ScrollControlIntoView is implemented, we 
21948           call it when the active control is set/changed
21949         * ScrollBar.cs: Added support for generating Win32 scrollbar messages
21950         * ImplicitHScrollBar.cs, ImplicitVScrollBar.cs: Now setting new base
21951           implicit_control variable (used for native Win32 message generation)
21952         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs: Added new 
21953           HorizontalScrollBarHeight and VerticalScrollBarWidth properties
21954         * ThemeWin32Classic.cs: Now calling the driver for the scrollbar sizes
21955         * XplatUIStructs.cs: Added ScrollBarCommands enum
21956
21957 2006-04-10  Jackson Harper  <jackson@ximian.com>
21958
21959         * ButtonBase.cs:
21960         * CheckedListBox.cs:
21961         * ComboBox.cs:
21962         * DataGrid.cs:
21963         * DataGridView.cs:
21964         * Form.cs:
21965         * GroupBox.cs:
21966         * ListBox.cs:
21967         * PrintPreviewControl.cs:
21968         * ProgressBar.cs:
21969         * PropertyGrid.cs:
21970         * Splitter.cs:
21971         * StatusBar.cs:
21972         * TrackBar.cs:
21973         * UpDownBase.cs: Fixup base event overrides.
21974         
21975 2006-04-06  Mike Kestner  <mkestner@novell.com>
21976
21977         * ScrollBar.cs: fix "new event" declarations (#76509) and bounds check
21978         all user-initiated value changes to min <= value <= max-thumbsz+1.
21979         (set_Value): check for vert/horiz when calculating new thumb position.
21980         (LargeIncrement): bounds check to stop pos at max - thumb_size + 1
21981         like MS does.
21982         (OnMouseMoveSB): refactor the thumb dragging code and refine
21983         invalidation logic to reduce flicker.
21984         (SetEndPosition): bounds check to stop pos at max - thumb_size + 1
21985         (SmallIncrement): bounds check to stop pos at max - thumb_size + 1
21986         (UpdateThumbPosition): small code readability cleanup
21987
21988 2006-04-10  Alexander Olk  <alex.olk@googlemail.com>
21989
21990         * ThemeNice.cs: Small UI polishing. Draw borders a little bit
21991           different
21992
21993 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
21994
21995         * ThemeNice.cs: Use a better graphics effect when a button is pressed
21996
21997 2006-04-08  Alexander Olk  <alex.olk@googlemail.com>
21998
21999         * Theme.cs: Added GetDashPen and GetSizedPen to SystemResPool
22000         * ThemeWin32Classic.cs: Make use of the new SystemResPool methods.
22001           This dramatically reduces the number of Pen.Dispose calls. 
22002           Where possible call ResPool methods only once instead of calling it
22003           over and over again (for example for the same color).
22004
22005 2006-04-06  Mike Kestner  <mkestner@novell.com>
22006
22007         * TabControl.cs: fix for SelectedIndex updating on TabPage removals.
22008         Also remove an unused private field on the collection. Fixes #77972.
22009
22010 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
22011
22012         * ThemeNice.cs: Added ToolBar drawing code
22013
22014 2006-04-06  Mike Kestner  <mkestner@novell.com>
22015
22016         * Form.cs (ShowDialog): MS allows IWin32Window param to be a non-form.
22017         I'm assuming that means we need to look up the toplevel for the
22018         provided control. Fixes the crash trace in #77911 but exposes another
22019         crash in some strange reflection usage in NDocGui.
22020
22021 2006-04-06  Alexander Olk  <alex.olk@googlemail.com>
22022
22023         * ThemeNice.cs: Gave it a little silver touch and added Images
22024           method
22025         * FontDialog.cs: FontDialog is not resizable
22026         * FileDialg.cs: Added SizeGripStyle.Show
22027
22028 2006-04-05  Jackson Harper  <jackson@ximian.com>
22029
22030         * KeyboardLayouts.cs: Remove warning.
22031
22032 2006-04-05  Jackson Harper  <jackson@ximian.com>
22033
22034         * Control.cs: Enable OnPaintInternal so we can use it for drawing
22035         all of our controls instead of Paint +=.
22036         * ListBox.cs:
22037         * ListView.cs:
22038         * MenuAPI.cs:
22039         * MessageBox.cs:
22040         * NotifyIcon.cs:
22041         * ProgressBar.cs:
22042         * ScrollBar.cs:
22043         * Splitter.cs:
22044         * StatusBar.cs:
22045         * TabControl.cs:
22046         * TextBoxBase.cs:
22047         * ToolBar.cs:
22048         * TrackBar.cs:
22049         * UpDownBase.cs:
22050         * ComboBox.cs: Remove handling of WM_PAINT and WM_ERASEBKGND and
22051         use OnPaintInternal. Remove Width/Height and Visible checks in
22052         paint handler, this is done at a higher level now.
22053         * GroupBox.cs: Don't need to handle WM_ERASEBKGND anymore.
22054         * PaintEventArgs.cs: Add a handled flag so controls that don't
22055         want anymore painting after OnPaintInternal can make sure OnPaint
22056         isn't called.
22057
22058 2006-04-05  Mike Kestner  <mkestner@novell.com>
22059
22060         * Form.cs: fix the menu WndProc hacks to respect the native enabled
22061         state of the form, so that we don't process events when Modal dialogs
22062         are up. Fixes #77922.
22063
22064 2006-04-05  Alexander Olk  <alex.olk@googlemail.com>
22065
22066         * Mime.cs: Default for range length is 1 not 0. If set to 0 no match
22067           checking is done.
22068
22069 2006-04-05  Mike Kestner  <mkestner@novell.com>
22070
22071         * XplatUIX11.cs: fix typo in the EX_APPWINDOW transient patch.
22072
22073 2006-04-05  Mike Kestner  <mkestner@novell.com>
22074
22075         * ListView.cs (HeaderMouseMove): null guarding for the over column
22076         when setting up the drag_to_index.  Fixes #78015.
22077
22078 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com>
22079
22080         * XplatUIX11.cs: If WS_EX_APPWINDOW isn't set we don't want to show up
22081           in the taskbar. Transient windows seem to accomplish that.
22082
22083 2006-04-04  Peter Dennis Bartok  <pbartok@novell.com> 
22084
22085         * Form.cs:
22086           - Re-enabled CreateParams.X/Y code for FormStartPosition
22087           - Added code for manual placement when creating the Control
22088           - Incomplete patch to treat MDI forms differently when
22089             setting the ClientSizeCore. (Still need to figure out handling
22090             x/y coords there)
22091         * XplatUIX11.cs:
22092           - When we're explicitly setting the X/Y position of a non-Child
22093             window, let the WM know. Metacity really wants this.
22094
22095 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
22096
22097         * ThemeNice.cs: Added CPDrawButton
22098
22099 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
22100
22101         * ThemeNice.cs: Changed the color for focused buttons and activated
22102           the arrows for small scroll buttons.
22103
22104 2006-04-04  Alexander Olk  <alex.olk@googlemail.com>
22105
22106         * ThemeWin32Classic.cs: Removed DrawFlatStyleButton, not needed
22107           anymore. Changed some method modifiers to protected (virtual)
22108         * ThemeClearlooks.cs: Updated to reflect the ThemeWin32Classic
22109           changes
22110         * ThemeNice.cs: Updated to reflect the ThemeWin32Classic changes.
22111           Updated drawing of menus, buttons and progressbars; added
22112           CPDrawBorder3D 
22113
22114 2006-04-03 Gonzalo Paniagua Javier <gonzalo@ximian.com>
22115
22116         * ImageListStreamer.cs: implemented serialization/deserialization
22117         of the images.
22118
22119 2006-04-03  Alexander Olk  <alex.olk@googlemail.com>
22120
22121         * ThemeWin32Classic.cs:
22122           - Removed all the DrawFrameControl stuff; CPDrawButton,
22123             CPDrawCheckBox and CPDrawRadioButton are now handled directly
22124             inside the methods
22125           - Updated and corrected the drawing code of CPDrawButton,
22126             CPDrawCheckBox and CPDrawRadioButton to better match ms
22127           - Updated theme checkbox and radiobutton code to use the CP*
22128             methods
22129
22130 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
22131
22132         * XplatUIX11.cs: Enable clipping again now that the libgdiplus
22133           bug is fixed
22134
22135 2006-03-31  Jackson Harper  <jackson@ximian.com>
22136
22137         * XplatUIX11.cs: Somehow we get SETCURSORS for bad windows
22138         sometimes.
22139         * UpDownBase.cs: Don't CreateGraphics manually, use a
22140         Refresh. Ideally we would invalidate the correct areas here.
22141
22142 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com> 
22143
22144         * XplatUIX11.cs: 
22145           - We now track the mapping state of windows. If a window (or 
22146             one of it's parents) is not mapped we no longer permit
22147             WM_PAINT messages to be generated since we'd otherwise get 
22148             lots of BadMatch X errors. Jackson did all the work figuring
22149             out the problem.
22150           - Destroying the caret if the window it's contained in is 
22151             destroyed. Can't use regular DestroyCaret method since it
22152             might fall into a drawing function (trying to remove the
22153             caret) and with that generate new BadMatch errors. Again,
22154             Jackson tracked this down.
22155           - Changed DestroyChildWindows to SendWMDestroyMessages, we now
22156             make sure we send the messages to all windows. (The old code
22157             would send the WM_DESTROY to the window, and then all child
22158             windows would be 'gone' because the WM_DESTROY handle lookup
22159             would no longer find the destroyed window)
22160         * Hwnd.cs: Added Mapping property to track mapping state of hwnd
22161         * X11Structs.cs: Added WindowType enum for MapWindow/UnmapWindow
22162
22163 2006-03-31  Jackson Harper  <jackson@ximian.com>
22164
22165         * ScrollableControl.cs: Dont recalc if we are not visible.
22166
22167 2006-03-31  Mike Kestner  <mkestner@novell.com>
22168
22169         * Control.cs (SetVisibleCore): move the CreateControl call up ahead of
22170         the visibility branch.
22171
22172 2006-03-31  Jackson Harper  <jackson@ximian.com>
22173
22174         * ScrollBar.cs: Cap values when incrementing/decrementing.
22175
22176 2006-03-31  Mike Kestner  <mkestner@novell.com>
22177
22178         * MenuAPI.cs: setup menu.tracker for popup/context menus.
22179         * ToolTip.cs: guard against timer expirations with no active control.
22180         Not sure why it happened.
22181
22182 2006-03-31  Mike Kestner  <mkestner@novell.com>
22183
22184         * ThemeWin32Classic.cs: add some horizontal padding space for the tip
22185         text.
22186         * ToolTip.cs: Position the tooltip based on where the cursor is at
22187         popup time, not at MouseEnter time.  Add a Down state so that we don't
22188         redisplay tips without a Leave. Use faked XplatUI.GetCursorInfo for
22189         positioning offset. Lookup DisplaySize at positioning time, since it
22190         can theoretically change during invocation.
22191         * XplatUIWin32.cs: fake GetCursorInfo until pdb can do it properly.
22192         * XplatUIX11.cs: fake GetCursorInfo until pdb can do it properly.
22193
22194 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
22195
22196         * ThemeWin32Classic.cs: Use CPDrawBorder3D to draw a GroupBox.
22197           Fixes behaviour when the Text property of the box is String.Empty
22198
22199 2006-03-31  Peter Dennis Bartok  <pbartok@novell.com>
22200
22201         * XplatUIX11.cs: Only send mouseleave for our client windows, not
22202           for the whole window (otherwise we get WM_MOUSE_LEAVE twice for
22203           a window)
22204
22205 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
22206
22207         * FileDialog.cs: Visual enhancement for the popup buttons in 
22208           PopupButtonPanel
22209
22210 2006-03-31  Alexander Olk  <alex.olk@googlemail.com>
22211
22212         * ColorDialog.cs, FontDialog.cs: Make use of the updated 3D border
22213           code
22214
22215 2006-03-30  Alexander Olk  <alex.olk@googlemail.com>
22216
22217         * ThemeWin32Classic.cs: Updated MainMenu drawing of selected and
22218           highlighted menu items to match ms
22219
22220 2006-03-30  Peter Dennis Bartok  <pbartok@novell.com> 
22221
22222         * XplatUIX11.cs: Don't set a clip rectangle unless it's not empty
22223
22224 2006-03-30  Mike Kestner  <mkestner@novell.com>
22225
22226         * Menu.cs (SelectedItem): use new MenuItem.Selected prop.
22227         * MenuAPI.cs: use new MenuItem.Selected prop. redraw MainMenu when we
22228         go active to account for HotLight to Selected transition.
22229         * MenuItem.cs: add internal Selected prop. Fill out the Status
22230         property by calculating it from item info. Add HotLight,
22231         NoAccelerator, Checked, Grayed, and Disabled flags where appropriate.
22232
22233 2006-03-30  Mike Kestner  <mkestner@novell.com>
22234
22235         * MenuItem.cs: only emit DrawItem and MeasureItem for OwnerDraw.
22236
22237 2006-03-29  Jackson Harper  <jackson@ximian.com>
22238
22239         * Form.cs: Implement TODO.
22240
22241 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com> 
22242
22243         * PrintPreviewDialog.cs: Implemented missing methods and events; still
22244           missing proper dialog setup in the constructor
22245
22246 2006-03-29  Peter Dennis Bartok  <pbartok@novell.com>
22247
22248         * ProgressBar.cs: Added 2.0 Style property that apps seem to use
22249         * Control.cs:
22250           - Implemented CheckForIllegalCrossThreadCalls, removed TODO
22251           - Fixed ResetBindings and removed TODO
22252           - Added check for cross-thread calls to get_Handle()
22253           - Added Marshaller attribute for set_Font to satisfy class status
22254         * FontDialog.cs: Removed TODOs that seemed implemented
22255         * UpDownBase.cs: Removed unneeded TODO and Fixme
22256         * MessageBox.cs: Implemented support for Default button and removed TODO
22257         * FileDialog.cs: Removed obsolete TODO
22258         * DomainUpDown.cs: Removed obsolete TODO
22259         * ButtonBase.cs: Removed obsolete TODO
22260         * XplatUIWin32.cs: Removed obsolete TODO
22261         * Form.cs:
22262           - Removed obsolete TODO
22263           - Calling CheckAcceptButton when the acceptbutton is changed to allow
22264             internal status updates
22265           - Making sure the active control is selected when the control is created
22266         * CurrencyManager.cs: Removed obsolete TODO
22267
22268 2006-03-29  Mike Kestner  <mkestner@novell.com>
22269
22270         * *.cs: fix remaining corcompare issues for 1.1 API with the exception
22271         of PrintPreviewDialog and RichTextBox.
22272
22273 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
22274
22275         * Theme.cs: Added a little helper to SystemResPool to get the Dark,
22276           DarkDark, Light and LightLight colors for a specific color
22277         * ThemeWin32Classic.cs:
22278           - Use Button drawing code to draw RadioButtons and CheckBoxes with
22279             Appearance = Button 
22280           - Make use of the new ResPool helper CPColor
22281           - Draw ProgressBar and StatusBar with correct 3D borders
22282
22283 2006-03-29  Alexander Olk  <alex.olk@googlemail.com>
22284
22285         * ColorDialog.cs: Return selected color. Fixes bug #77940.
22286
22287 2006-03-28  Mike Kestner  <mkestner@novell.com>
22288
22289         * ListView.cs: fix Icon layout to plan for scrollbar widths when
22290         calculating col/row counts.
22291
22292 2006-03-28  Mike Kestner  <mkestner@novell.com>
22293
22294         * ColumnHeader.cs:
22295         * ListView.cs:
22296         * ListViewItem.cs:
22297         * Menu.cs: 
22298         switch to explicit interface method implementation for some methods
22299         corcompare identifies as inconsistent with MS.
22300
22301 2006-03-28  Mike Kestner  <mkestner@novell.com>
22302
22303         * MainMenu.cs: 
22304         * Menu.cs:
22305         add a few missing methods from the class status output.
22306
22307 2006-03-28  Alexander Olk  <alex.olk@googlemail.com>
22308
22309         * ControlPaint.cs: Fixed ControlPaint.Light method. Results are now
22310           correct.
22311
22312 2006-03-28  Mike Kestner  <mkestner@novell.com>
22313
22314         * MenuAPI.cs: Deactivate on MainMenu item click. Fixes #77917.
22315
22316 2006-03-27  Mike Kestner  <mkestner@novell.com>
22317
22318         * ThemeWin32Classic.cs: Switch flat toolbars to use RaisedInner for
22319         the Hilight state to adapt to Alex's CPDrawBorder3D changes.
22320
22321 2006-03-27  Alexander Olk  <alex.olk@googlemail.com>
22322
22323         * ThemeWin32Classic.cs: Rewrote Button drawing code to match ms.
22324
22325 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
22326
22327         * ThemeWin32Classic.cs:
22328           - GroupBox: Inserted a little gap between the text and the lines
22329             on the right side
22330           - Made the code in CPDrawBorder3D more readable
22331           - Corrected the drawing location of the up and down arrows in 
22332             CPDrawScrollButton
22333
22334 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
22335
22336         * ControlPaint.cs: Corrected line widths in DrawBorder for
22337           ButtonBorderStyle Inset and Outset
22338
22339 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
22340
22341         * ThemeWin32Classic.cs:
22342           - Rewrote the totally broken CPDrawBorder3D method. That was
22343             one of the main problems for the terrific ThemeWin32Classic
22344             look
22345           - Updated and corrected Button drawing
22346           - Correct the dimensions of the SizeGrip to match ms ones
22347           - Removed a small drawing glitch in DrawComboBoxEditDecorations
22348         * XplatUIX11.cs: Draw borders with BorderStyle = Fixed3D with
22349           Border3DStyle.Sunken to match ms.
22350
22351 2006-03-25  Alexander Olk  <alex.olk@googlemail.com>
22352
22353         * ThemeWin32Classic.cs: First small part of the "de-uglify
22354           ThemeWin32Classic" effort, SizeGrip
22355
22356 2006-03-24  Jackson Harper  <jackson@ximian.com>
22357
22358         * XplatUIX11.cs: Give a max idle time of one second, this matches
22359         MS and forces an Idle event every second when there are no other
22360         events in the queue.
22361
22362 2006-03-24  Mike Kestner  <mkestner@novell.com>
22363
22364         * ListView.cs: Handle (Large|Small)ImageList == null more robustly.
22365         * ListView.Item.cs: fix layout issues with null image lists and images
22366         smaller than checkbox size.
22367         * ThemeWin32Classic.cs: Draw a 12 pixel line in ListView LargeIcon
22368         mode like MS does.  It's weird, but consistent.  ;-)
22369         Fixes #77890.
22370
22371 2006-03-24  Mike Kestner  <mkestner@novell.com>
22372
22373         * ListView.cs: Scroll wheel support for the item control.  Fixes
22374         #77839.
22375
22376 2006-03-23  Jackson Harper  <jackson@ximian.com>
22377
22378         * ScrollableControl.cs: Special case negative sized areas, not
22379         zero.
22380         * MonthCalendar.cs: Save the rect of the clicked date so we can
22381         use it for invalidation.
22382         - Try to cut down on the number of invalidates
22383         - Invalidate the rect the mouse is over and was over when moving
22384         the mouse, so we get the focus box following the cursor.
22385
22386 2006-03-23  Mike Kestner  <mkestner@novell.com>
22387
22388         * ThemeWin32Classic.cs: fix FullRowSelect selection background and
22389         focus rectangle drawing. Fixes #77835.
22390
22391 2006-03-23  Mike Kestner  <mkestner@novell.com>
22392
22393         * XplatUIX11.cs: rework the fix for #77828 by changing the order of
22394         the if and else if and reverting back to the original == check on the
22395         None conditional.
22396
22397 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
22398
22399         * FontDialog.cs: Update the example panel if the selected index of
22400           the fontListBox changes.
22401
22402 2006-03-23  Alexander Olk  <alex.olk@googlemail.com>
22403
22404         * FileDialog.cs: Make FileDialog remember which directory it was in
22405           last in the same execution.
22406
22407 2006-03-22  Mike Kestner  <mkestner@novell.com>
22408
22409         * FileDialog.cs: make the DropDownMenu on the toolbar display
22410         RadioChecks since they are mutually exclusive and that's what MS does.
22411
22412 2006-03-22  Mike Kestner  <mkestner@novell.com>
22413
22414         * Theme.cs: add Color param to CPDrawMenuGlyph.
22415         * ThemeWin32Classic.cs: do color specific menu glyph rendering so that
22416         checks and radio marks and arrows are visible on highlighted items.
22417         * ControlPaint.cs: update to use new Theme signature.
22418
22419 2006-03-22  Mike Kestner  <mkestner@novell.com>
22420
22421         * MenuAPI.cs: only process Enter and arrow keypresses if the tracker
22422         is active. Fixes #77870.
22423
22424 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
22425
22426         * FileDialog.cs: Corrected TabIndex order and set fileNameComboBox
22427           to be focused/selected after startup
22428
22429 2006-03-22  Alexander Olk  <alex.olk@googlemail.com>
22430
22431         * ColorDialog.cs: 
22432           - Corrected behaviour of Color, AllowFullOpen, FullOpen,
22433             CustomColors and ShowHelp properties
22434           - Some internal rewrites to get better results when using the
22435             ColorMatrix
22436
22437 2006-03-22  Mike Kestner  <mkestner@novell.com>
22438
22439         * ListView.cs: hook into Peter's new ResetMouseHover capability to fix
22440         HoverSelection.  Fixes #77836.
22441
22442 2006-03-22  Mike Kestner  <mkestner@novell.com>
22443
22444         * FileDialog.cs: bugfixes for the toolbar.  Use PushButtons instead of
22445         ToggleButtons.  (De)Sensitize the Back button around a stack count of
22446         1, not 0.  Update ButtonSize based on a pixel count of the win32
22447         control.  Adjust the toolbar size/location for new button size.
22448
22449 2006-03-22  Jackson Harper  <jackson@ximian.com>
22450
22451         * XplatUIX11.cs: Don't handle configurenotifys if PostQuitState is
22452         true.
22453         * ScrollBar.cs: When doing increments and decrements we need to
22454         set the Value property so that ValueChanged gets raised. A
22455         possible optimization here would be to make an internal SetValue
22456         that doesn't invalidate immediately.
22457         * ToolTip.cs: Tooltips get added to their container (when
22458         supplied) so they get disposed when the container is disposed.
22459         - Don't create tooltips for String.Empty. This prevents all these
22460         little 2-3 pixel windows from showing up when running nunit-gui
22461         and driving me mad.
22462         * Form.cs: Don't set topmost when setting the owner if the handles
22463         haven't been created yet.  The topmost set will happen when the
22464         handles are created.
22465
22466 2006-03-22  Peter Dennis Bartok  <pbartok@novell.com> 
22467
22468         * XplatUIX11.cs:
22469           - DeriveWindowStyles: Fixed typo in borderstyle generation (#77828)
22470           - SetVisible: Sending WINDOWPOSCHANGED for all controls when made 
22471             visible (to allow them to recalculate their sizes)
22472
22473 2006-03-21  Mike Kestner  <mkestner@novell.com>
22474
22475         * ThemeWin32Classic.cs: major refactoring of the ToolBar rendering
22476         methods. Removed a ton of redundant code.  Still not really happy with
22477         the border rendering, but I think that's mainly because of the
22478         ControlDarkDark being black instead of a dark grey. Depending on how 
22479         close we want to be, we might want to revisit those color choices.
22480         Among the new features added during the refactor were DropDownArrow
22481         pressed rendering, Disabled image rendering.  Proper flat appearance
22482         boundary rendering.  Removed the Divider and Wrapping dividers since I
22483         can't figure out any combination of themes and conditions to make the
22484         MS control draw a horizontal line on a toolbar despite what the
22485         Divider property docs indicate.
22486         * ToolBar.cs: rewrite the layout engine. Fixes numerous flicker
22487         conditions and incorrect layout.  Updated to coding standard.
22488         * ToolBarButton.cs: refactored layout and positioning code from
22489         ToolBar to here.  Invalidate wherever possible instead of forcing
22490         redraws of the whole toolbar. 
22491         (Known remaining issues: explicit ButtonSize smaller than provided
22492         images.)
22493
22494 2006-03-21  Mike Kestner  <mkestner@novell.com>
22495
22496         * ContextMenu.cs (Show): use the position parameter instead of just
22497         showing at the MousePosition.
22498
22499 2006-03-21  Jackson Harper  <jackson@ximian.com>
22500
22501         * TabControl.cs: Remove the call to ProcessKeyEventArgs and let
22502         control handle this.
22503         * TreeNodeCollection.cs: If we are clearing the root node we need
22504         to reset top_node so calcs can still happen.
22505         * ThemeWin32Classic.cs: This is a Flags so we need to check
22506         properly.
22507         
22508 2006-03-21  Jackson Harper  <jackson@ximian.com>
22509
22510         * DataGrid.cs: Create columns when the binding context has been
22511         changed.
22512         * X11Structs.cs: Keysyms are uints.
22513         - Add size to fix build.
22514
22515 2006-03-21  Peter Dennis Bartok  <pbartok@novell.com> 
22516
22517         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
22518           XplatUIOSX.cs: 
22519           - Added ResetMouseHover method to allow controls to retrigger
22520             hovering if they need it more than once
22521           - Implemented MouseHoverTime and MouseHoverSize properties
22522         * Timer.cs: Start() must reset the interval
22523         * SystemInformation.cs: Added 2.0 MouseHoverTime and MouseHoverSize
22524           properties
22525
22526 2006-03-21  Jackson Harper  <jackson@ximian.com>
22527
22528         * X11Keyboard.cs: improved layout detection. Move the nonchar
22529         tables into this file.
22530         * KeyboardLayouts.cs: Move the tables into resource files.
22531
22532 2006-03-21  Mike Kestner  <mkestner@novell.com>
22533
22534         * ListView.cs: use OnItemActivated to raise events. Fixes #77834.
22535
22536 2006-03-21  Alexander Olk  <alex.olk@googlemail.com>
22537
22538         * Mime.cs: Various speed optimizations. Looking up mime types
22539           is now 2 times faster than before
22540
22541 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com> 
22542
22543         * CreateParams.cs: Added internal menu field
22544         * Control.cs: 
22545           - Switched call order for UpdateBounds; now we always call
22546             the one that also takes ClientSize, and we're calculating the 
22547             client size via driver method in the others. The previous
22548             method of tracking client size by difference wasn't working
22549             for forms where even the starting client size wouldn't match
22550             the overall form size (due to borders) (Part of fix for #77729)
22551           - CreateParams(): Do not use parent.Handle unless the handle is
22552             already created. Causes havoc with Nexxia and throws off our
22553             creation of controls
22554         * XplatUIX11.cs:
22555           - Created new PerformNCCalc method to trigger WM_NCCALCSIZE message
22556           - Switched handling of ConfigureNotify over to new PerformNCCalc 
22557             method (consolidates code)
22558           - Changed RequestNCRecalc to use new PerformNCCalc method
22559           - Added calls to RequestNCRecalc when menus and borders are changed
22560             to allow app to set NC size. (Part of fix for #77729) This matches
22561             when MS send a WM_NCRECALC on Win32 windows.
22562           - Now sending WM_WINDOWPOSCHANGED when toplevel for is made visible
22563             (Part of fix for #77729). This matches what MS does, they also
22564             send that message when the form is made visible.
22565           - XException.GetMessage: Improved usability of X errors by including
22566             a translation of the window into Hwnd and Control class
22567           - Improved debug info for window creation, reparenting and destruction
22568           - Created helper method WindowIsMapped() [Currently not used]
22569         * XplatUIWin32.cs: Added ToString() debug helper to RECT structure
22570         * Form.cs:
22571           - CreateParams: Now setting our menu on the new internal menu field
22572           - SetClientSizeCore: Now passing cp.menu instead of ActiveMenu to
22573             avoid calculating the same property twice
22574         * Hwnd.cs:
22575           - Improved usability of ToString() for debugging purposes
22576           - GetWindowRectangle(): Now uses proper CalcMenuBarSize method to
22577             determine the height of the menu, instead of just the font. This
22578             required to also create a graphics context and to keep a bmp 
22579             around (for performance reasons)
22580
22581 2006-03-17  Peter Dennis Bartok  <pbartok@novell.com>
22582
22583         * MenuAPI.cs: Added OnMouseUp method
22584         * Form.cs:
22585           - Now remembering the requested client size, avoids size errors
22586           - WndProc: Now handling WM_xBUTTONUP and passing it to MenuTracker
22587             instead of base if the menu is active. This is required due to
22588             control now capturing and releasing on down/up and it would
22589             prematurely release our menu capture
22590
22591 2006-03-17  Jackson Harper  <jackson@ximian.com>
22592
22593         * KeyboardLayouts.cs: Add the czech layouts.
22594
22595 2006-03-16  Jackson Harper  <jackson@ximian.com>
22596
22597         * Control.cs: Use the viewport space when sizing not the controls
22598         client size, so things like ScrollableControl that effect the
22599         viewport size (when scrollbars are added) are computed correctly.
22600         * BindingContext.cs: Cleanup to use the DataSourceEntrys instead
22601         of ManagerEntrys.
22602         - Handle creating BindingManagers for null data sources.
22603         * DataGrid.cs: Bind the cached_currencymgr_events to the real data
22604         source, otherwise when rows are added they are added to the 'fake'
22605         datasource and we will crash when trying to set the position in
22606         those rows.
22607         - Use Implicit scrollbars on the datagrid so they arent
22608         selectable.
22609         
22610 2006-03-16  Jackson Harper  <jackson@ximian.com>
22611
22612         * Binding.cs:
22613         * InternalWindowManager.cs:
22614         * MdiWindowManager.cs:
22615         * X11Keyboard.cs: I really want Mike to love me again (fix
22616         compiler warnings).
22617
22618 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com>
22619
22620         * DataGrid.cs:
22621           - OnMouseDown: Switch to editing mode when clicking on the cell
22622                          even if we're clicking on the cell that's currently 
22623                          selected
22624           - ProcessGridKey: Left/Right now wrap like MS.Net does
22625           - ProcessGridKey: Tab now knows to add a new row when tab is
22626                             pressed in the cell of the last column of the 
22627                             last row
22628           - ProcessGridKey: Enter now adds another row  if pressed in the last
22629                             row and selectes the new row, same column cell
22630           - ProcessGridKey: Home/End navigate columns, not rows, like 
22631                             originally implemented
22632           - Broke ProcessKeyPreview code out into an extra Internal method
22633             so it can be called from the edit code
22634         * DataGridTextBox.cs (ProcessKeyMessage):
22635           - Switched to accept Tab keypresses
22636           - Added F2 handling to allow jumping to the end of the edited cell
22637           - Added logic to allow moving caret left/right inside edited cell
22638             and making the edited cell jump when the caret hits cell borders
22639           - Tab and Enter are now passed to the datagrid after being handled
22640         * TextBoxBase.cs:
22641           - Removed capture code now that Control handles it
22642           - set_SelectionStart now ensures caret is visible
22643
22644 2006-03-16  Jackson Harper  <jackson@ximian.com>
22645
22646         * TrackBar.cs: Debackwards the increment/decrement for handling
22647         mouse clicks on the bar with vertical trackbars.
22648         * ThemeWin32Classic.cs: Draw vertical trackbars with 0 at the
22649         bottom to match MS.
22650
22651 2006-03-16  Mike Kestner  <mkestner@novell.com>
22652
22653         * ListView.cs: make shift/ctrl keyboard and mouse selection 
22654         consistent with the MS control. Fix a bug in
22655         SelectedListViewItemCollection.Clear that was pissing me off for the
22656         better part of a day because the collection was being altered
22657         underneath us as we walked the list.
22658
22659 2006-03-16  Peter Dennis Bartok  <pbartok@novell.com> 
22660
22661         * Control.cs: Not sure how we could miss this so long, but it seems
22662           that MS.Net has Capture set all the way from before calling 
22663           OnMouseDown through sending the mouse events until after
22664           OnMouseUp. This will fix DataGrid's selection being set to end
22665           at the location of the MouseUp.
22666
22667 2006-03-15  Jackson Harper  <jackson@ximian.com>
22668
22669         * BindingContext.cs: Check the binding after its added so that it
22670           can initialize the binding managers and hookup to events.
22671         * Binding.cs: Data members seem to sometimes include rows/cols in
22672           the format Row.Column we now take this into account.
22673           - Hookup to the position changed event so we can update the
22674           control when the position has changed in the data set.
22675         * CurrencyManager.cs: Take into account the row/col naming
22676           convention when creating dataset tables.
22677         * BindingContext.cs: Using a newer better way of storing
22678           datasource/datamember pairs.  Hopefully this better matches MS for
22679           looking up binding managers.
22680
22681
22682 2006-03-15  Jackson Harper  <jackson@ximian.com>
22683
22684         * BindingContext.cs: The currency manager needs the data member
22685         name, if the member is a data set we use the name to find the
22686         correct table.
22687         * CurrencyManager.cs: When creating the list prefer an IList over
22688         an IListSource.
22689         - Attempt to create a DataTable from a DataSet (TODO: might need
22690         some better error checking here, although MS doesn't seem to have much)
22691         - If we have a DataTable create a view and use it as our list.
22692
22693 2006-03-15  Mike Kestner  <mkestner@novell.com>
22694
22695         * ListView.cs: keep a matrix of the icon mode layout to facilitate
22696         keyboard navigation. Support Up/Down/Left/Right selection correctly
22697         for all 4 View modes.
22698         * ListViewItem.cs: add internal row/col fields for icon layouts.
22699
22700 2006-03-15  Jackson Harper  <jackson@ximian.com>
22701
22702         * TabControl.cs: Redraw the tabs when we resize so their newly
22703         calculated sizes are drawn on screen.
22704         * X11Keyboard.cs: Begginnings of XIM support.  We also now support
22705         composite characters.
22706         * XplatUIX11.cs: Keyboard driver needs to know about focus changes
22707         - filter events so that composite characters can be created
22708         patches by peter
22709         * X11Structs.cs: Add XIMProperties enum.
22710
22711 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
22712
22713         * Control.cs (BringToFront, SendToBack): Don't use window or handle
22714           unless it's created
22715
22716 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
22717
22718         * Control.cs (PerformLayout): We don't need to consider visiblity
22719           for anchoring, only for docking. This fixes 'whacky' alignment
22720           in listbox and other controls that use implicit scrollbars after
22721           the previous PerformLayout patch
22722         * ListBox.cs: Switched to use implicit scrollbars
22723           
22724 2006-03-14  Mike Kestner  <mkestner@novell.com>
22725
22726         * ToolBar.cs: 
22727         * VScrollBar.cs:
22728         - chain up the "new event" overrides to base and use
22729         OnEvent to raise them.  Part of fix for bug #76509.
22730
22731 2006-03-14  Alexander Olk  <alex.olk@googlemail.com>
22732
22733         * FileDialog.cs: Do not select an item in the parent directory
22734           on backspace
22735
22736 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com> 
22737
22738         * Control.cs (PerformLayout): It would seem that we considered
22739           invisible windows for our layout. Not quite the right thing
22740           to do. Now we don't any longer, thereby fixing bug #76889.
22741
22742 2006-03-14  Peter Dennis Bartok  <pbartok@novell.com>
22743
22744         * Control.cs (CanFocus): I goofed. A control can have focus 
22745           even though it's not selectable. Made it match MS docs.
22746
22747 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
22748
22749         * ControlPaint.cs (DrawBorder3D): DrawBorder3D does not fill the
22750           center by default (fixes #76895)
22751         * ThemeWin32Classic.cs, ThemeNice.cs, ThemeClearlooks.cs: Replaced 
22752           all uses of Border3DSides.All with the explicit ORd together
22753           Left|Right|Top|Bottom because I assume that nobody was aware 
22754           that All also implies a center fill. Most places I checked had
22755           a fill right above.
22756         * ProgressBarStyle.cs: Added
22757
22758 2006-03-13  Mike Kestner  <mkestner@novell.com>
22759
22760         * ListView.cs: fix breakage in drag shadow header positioning 
22761         from Peter's csc compilation fix.
22762
22763 2006-03-13  Mike Kestner  <mkestner@novell.com>
22764
22765         * ListView.cs: fix NRE produced by backspacing twice in a focused
22766         FileDialog.
22767
22768 2006-03-13  Mike Kestner  <mkestner@novell.com>
22769
22770         * ListView.cs: proxy Key(Down|Up) from ItemControl to ListView.
22771
22772 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
22773
22774         * Hwnd.cs: Added fixed_size field to track windows whose size cannot
22775           be changed
22776         * XplatUIX11.cs: Now setting fixed_size on hwnd and if set, re-setting
22777           the allowed size before making programmatic size changes
22778
22779 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com> 
22780
22781         * XplatUIX11.cs: Don't call XSetWMNormalHints if no flags are 
22782           set, metacity is broken and will still use the emty sizes in 
22783           the struct. (Fix for #77089)
22784
22785 2006-03-13  Peter Dennis Bartok  <pbartok@novell.com>
22786
22787         * XplatUIStructs.cs: Split WindowStyles into WindowStyles and 
22788           WindowExStyles and marked both enums as Flags
22789         * Form.cs, ComboBox.cs, ToolTip.cs, Control.cs, PropertyGridView.cs,
22790           NotifyIcon.cs, MenuAPI.cs, XplatUIOSX.cs, MonthCalendar.cs: Updated
22791           to match WindowStyles split
22792         * XplatUIX11.cs:
22793           - SetWMStyles: Added cehck to not apply WM attributes to Child windows
22794           - Updated to match WindowStyles split
22795         * XplatUIWin32.cs:
22796           - Fixed FosterParent creation, was using ExStyle on the Style field
22797             (This should help with Popup focus issues)
22798           - Updated to match WindowStyles split
22799
22800 2006-03-13  Jackson Harper  <jackson@ximian.com>
22801
22802         * MdiWindowManager.cs: Use the system menu height. Fixes some
22803         strange sizing issues.
22804
22805 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
22806
22807         * RichTextBox.cs: Need to scroll to caret after text is inserted (#77672)
22808         * TextBoxBase.cs:
22809           - Scroll to caret after inserting text (#77672)
22810           - Make scroll range one pixel higher, fixes off-by-one error (and
22811             makes underlines visible on the last line)
22812
22813 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com> 
22814
22815         * XplatUIX11.cs: Added call to new Keyboard.ResetKeyState to prevent
22816           the keyboard state from being stuck with keys in 'pressed' state when
22817           focus is switched away via keyboard
22818         * X11Keyboard.cs: Added new ResetKeyState method to allow drivers to
22819           reset the keyboard if no X11 KeyUp events are expected to come
22820         * X11Structs.cs: Switched type of Visible to bool to match driver
22821
22822 2006-03-12  Peter Dennis Bartok  <pbartok@novell.com>
22823
22824         * TextControl.cs:
22825           - Switched caret to be just 1 pixel wide, matches MS and looks less
22826             clunky
22827           - Moved caret display 1 pixel down from the top of the control
22828             to improve view
22829           - InsertCharAtCharet: Update the selection start if moving the caret
22830             (fixes bug #77696; based on patch suggested by kazuki@panicode.com)
22831           - No longer always creating the caret when the caret methods are
22832             called. Only the actual ShowCaret/HideCaret will do that now
22833           - Only setting caret visible if the owner control has focus
22834           - UpdateView: Added invalidation-shortcut logic for center and right 
22835             aligned text. Previously we'd update all according to the left
22836             logic which caused drawing errors. Also fixed height of invalidated
22837             areas, now properly invalidating the whole area (was off-by-one)
22838           - owner_HandleCreated: Always generate the document when the
22839             handle is created; this ensures that 
22840         * TextBoxBase.cs:
22841           - Fixed situation where caret would disappear under the right
22842             window border, also improved scrolling behaviour on left-
22843             aligned textboxes
22844           - Fixed right-aligned textboxes to have a border to the
22845             right instead of the caret being under the right border
22846         * XplatUIX11.cs:
22847           - Switched from 'nested' to simple visible/not visible tracking 
22848             for caret (part of fix for #77671)
22849           - No longer passing through translated FocusIn/FocusOut messages
22850             since we were notifying too often and the wrong windows. Instead
22851             we just notify our focussed window of receiving or loosing focus
22852         * XplatUIWin32.cs: Switched from 'nested' show/hide 
22853           counting for caret to simple visible yes/no behaviour (part of 
22854           fix for #77671)
22855
22856 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
22857
22858         * Mime.cs: Remove debug code...
22859
22860 2006-03-11  Alexander Olk  <alex.olk@googlemail.com>
22861
22862         * MimeGenerated.cs: Removed
22863         * Mime.cs: Mime now reads the mime data (magic, globs, aliases
22864           and subclasses) from /usr/(local/)share/mime and
22865           $HOME/.local/share/mime.
22866
22867 2006-03-10  Jackson Harper  <jackson@ximian.com>
22868
22869         * MdiWindowManager.cs: Recalc the NC area when a window is
22870         maximized/restored so that the menu area is drawn on forms that
22871         don't have a menu.
22872
22873 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
22874
22875         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
22876           XplatUIX11.cs: Added RequestNCRecalc method to driver to allow
22877           us to force a WM_NCCALCRESIZE message being sent. This is needed
22878           for MDI maximizing.
22879
22880 2006-03-10  Jackson Harper  <jackson@ximian.com>
22881
22882         * Form.cs: We need to use the ActiveMenu when calculating menu
22883         height.
22884         - Fix nullref when the window manager hasn't been created yet.
22885         * Control.cs: Fix nullref when we try to bring a control to the
22886         front that has no parent.
22887         * MdiWindowManager.cs: Use the MaximizedMenu for calculating
22888         height.
22889         - Add a dummy item to the maximized menu so it always has the
22890         correct height. Otherwise when there are no menus we don't get our
22891         icon and buttons.
22892         
22893
22894 2006-03-10  Jackson Harper  <jackson@ximian.com>
22895
22896         * MenuAPI.cs: Make this available elsewhere. I need it in some MDI
22897         stuff.
22898         * Form.cs: Make the window_state internal so the window managers
22899         can track it.
22900         - When an MDI child is maximized let its window manager create the
22901         main menu (so it can add its icon).
22902         - Notify the window managers of state changes
22903         - Let the window manager paint its buttons and handle button
22904         clicks on the menu when it is maximized.
22905         * InternalWindowManager.cs: Move the prev_bounds into the mdi
22906         window manager, since tool windows don't use it, only mdi windows.
22907         - Tell the main form that we don't want it to handle NCPAINT
22908         itself to avoid extra painting.
22909         - Handle clicks on a maximized windows menu.
22910         - Handle window state changes
22911         - Handle minimize/maximize clicks correctly by setting the window state.
22912         * MdiWindowManager.cs: Add an icon menu that (the menu you get
22913         when clicking on the forms icon).
22914         - New method to create a forms maximized menu. This is its normal
22915         menu + an icon.
22916         - Handle window state changes.
22917         - Handle sizing of maximized windows.  Maximized windows are just
22918         drawn bigger then the parent visible area. All controls are still
22919         there, they are just outside the visible area (this matches windows).
22920         * MdiClient.cs: No scrollbars when a child window is maximized.
22921         - Let the children windows figure out how big they should be when
22922         sizing maximized windows.
22923         - Implement a version of ArrangeIconicWindows somewhat similar to
22924         Windows version.  There are some little differences, but I don't
22925         think any app will rely on the layout of minimized mdi windows.
22926
22927 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
22928
22929         * Padding.cs: Several fixes to allow compiling with csc 2.0
22930
22931 2006-03-09  Jackson Harper  <jackson@ximian.com>
22932
22933         * Menu.cs:
22934         * MenuItem.cs: Cheap hack so we can add items to the list without
22935         the events being raised.  This allows adding mdi items during
22936         drawing. TODO: Should probably find a better time to add the items.
22937
22938 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
22939
22940         * ThemeWin32Classic.cs:
22941           - CheckBox_DrawText: Added logic to not wrap if not enough space
22942             is available (Fix for bug #77727)
22943           - RadioButton_DrawText: Added logic not to wrap if not enough
22944             space is available (Fix for bug #77727). Also removed some
22945             duplicate code, DrawString always drawing the regular text
22946             before hitting the if statement.
22947
22948 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com> 
22949
22950         * XplatUIX11.cs: Handle an unmapped window state in SetWindowState
22951
22952 2006-03-10  Peter Dennis Bartok  <pbartok@novell.com>
22953
22954         * PictureBox.cs: Implemented ISupportInitialize interface (fixes #77726)
22955         * ContainerControl.cs: Partial implementation of some 2.0 scaling
22956           methods. Moved the new 2.0 properties into alphabetical order with
22957           other properties and added MonoTODO tags
22958
22959 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
22960
22961         * AutoScaleMode.cs: Added. Fix build.
22962
22963 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
22964
22965         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs, 
22966           XplatUIOSX.cs: Removed HWnd argument from CalcuateClientRect, not used
22967           and was requiring premature handle creation for calls from above
22968         * Form.cs, Control.cs: Removed handle arguments from calls to
22969           CalculateClientRect()
22970
22971 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
22972
22973         * ListView.cs (HeaderMouseMove): Fix csc compilation. 
22974           drag_column.column_rect is MarshalByRef and can't be used that way
22975
22976 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
22977
22978         * AxHost.cs: Added deserialization constructor for 
22979           AxHost+State (fixes 77743)
22980
22981 2006-03-09  Mike Kestner  <mkestner@novell.com>
22982
22983         * ListView.cs: 
22984         - Added column drag reordering for details view.
22985         - fixed behavior when mouse is dragged off column and
22986         AllowColumnReorder is false.
22987         * ColumnHeader.cs: clone the format too in Clone.
22988         * Theme.cs: add DrawListViewHeaderDragDetails method.
22989         * ThemeWin32Classic.cs:
22990         - impl new method for drawing drag column shadows and targets.
22991         - support column offset for details mode in DrawListViewItem.
22992
22993 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
22994
22995         * TextControl.cs: Reset the char_count when the document is cleared
22996           (Fixes bug reported on mono-winforms mailing list)
22997
22998 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com> 
22999
23000         * TextBoxBase.cs: Honor the Handled state of KeyPress events. Instead
23001           of calling base we simply process the key ourselves, since both
23002           DefWindowProc and the handled method would set m.Result. 
23003           (Fixes #77732)
23004
23005 2006-03-09  Peter Dennis Bartok  <pbartok@novell.com>
23006
23007         * Form.cs(ScaleCore): No longer calling base.ScaleCore since that
23008           method also moves the window; instead implemented a copy of
23009           Control.ScaleCore (Part of fix for #77456)
23010         * TextBoxBase.cs: 
23011           - Created new CreateGraphicsInternal method to allow providing
23012             a graphics context when no handle is created without triggering
23013             handle creation. (Part of fix for #77456)
23014           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
23015         * TextControl.cs: 
23016           - Switched Constructor to require TextBoxBase instead of Control (to
23017             allow uncast access to CreateGraphicsInternal)
23018           - Safeguarded use of owner.Handle property. No longer accessing it
23019             unless the handle is already created.
23020           - Replaced use of Control.CreateGraphics with CreateGraphicsInternal
23021           - Now triggering a recalc when owning control becomes visible
23022         * TextBox.cs, RichTextBox.cs: Switched to use new internal 
23023           TextBoxBase.CreateGraphicsInternal() method to avoid triggering
23024           premature handle creation (Part of fix for #77456)
23025         * Control.cs:
23026           - We now only destroy our double-buffering buffers when the
23027             control is resized or disposed, but not when visibility
23028             changes. (The code even re-created them twice every time)
23029           - Now requiring a redraw of the buffer on visibility changes
23030             (fixes bug 77654 part 2)
23031           - Not passing OnParentVisibleChanged up unless the control
23032             is visible
23033           - CanFocus: Fixed to match MS documentation
23034           - Focus: Fixed to return actual focus state and to check if
23035             setting focus is legal before setting it
23036
23037 2006-03-08  Peter Dennis Bartok  <pbartok@novell.com>
23038
23039         * ThemeWin32Classic.cs: TabPages cannot have focus. Determine
23040           when to draw focus rectangle by looking at parent focus and
23041           selected state instead. This fixes TabPages on Linux sometimes
23042           having none or multiple focus rectangles.
23043         * XplatUIX11.cs (SetFocus): 
23044           - Don't set the focus if the same window already has focus
23045           - Use SendMessage instead of PostMessage (like it's Win32
23046             equivalent) and send the WM_SETFOCUS before the WM_KILLFOCUS
23047             to match MS behaviour
23048         * TabControl.cs(SelectedIndex): Don't set Focus on TabPage, TabPages
23049           are not selectable.
23050
23051 2006-03-07  Jackson Harper  <jackson@ximian.com>
23052
23053         * PictureBox.cs: Revert line I accidently committed last week.
23054
23055 2006-03-07  Peter Dennis Bartok  <pbartok@novell.com>
23056
23057         * Control.cs: 
23058           - Added new IsRecreating and ParentIsRecreating properties to
23059             allow testing if RecreateHandle has been called on ourselves
23060             or one of our parents
23061           - WndProc(WM_DESTROY): If our control handle is being recreated
23062             we immediately need to create the handle when receiving the
23063             destroy, that way our child windows find a valid parent handle
23064             when they themselves are being recreated upon WM_DESTROY receipt
23065             (fix for bug #77654 part 1)
23066         * XplatUIX11.cs:
23067           - DestroyWindow: WM_DESTROY must be sent to our own window before
23068             notifying any child windows. MS documents that child windows
23069             are still valid when WM_DESTROY is received. (Control now relies on
23070             this behaviour)
23071           - Added some fine-grain debug options
23072
23073 2006-03-06  Jackson Harper  <jackson@ximian.com>
23074
23075         * MdiClient.cs: Redid scrolling logic a bit to create a virtual
23076         box and base calculations off this.
23077         * MdiChildContext.cs:
23078         * MdiWindowManager.cs: Don't need to ensure scrollbars here
23079         anymore.
23080         
23081 2006-03-06  Peter Dennis Bartok  <pbartok@novell.com>
23082
23083         * Splitter.cs: In situations where the affected control is added
23084           to the parent's control list after the splitter, we would not
23085           populate affected. Now we try populating it on mousedown, if
23086           it's not already set, and force it to be re-set whenever our
23087           parent changes.
23088
23089 2006-03-03  Matt Hargett  <matt@use.net>
23090
23091         * Control.cs: implement Control.Padding
23092         * Padding.cs: -Padding.All returns -1 when constructing with the
23093         implicit default ctor
23094         -Padding.ToString() matches MS.NET
23095         * ContainerControl.cs: implement
23096         ContainerControl.AutoScaleDimensions
23097         * ListControl.cs: implement ListControl.FormattingEnabled
23098         * TextBox.cs: Implemented TextBox.UseSystemPasswordChar.
23099         * ButtonBase.cs:
23100         * TabPage.cs: Implement UseVisualStyleBackColor.
23101         * PictureBox.cs: Implement PictureBox.InitialImage.
23102
23103 2006-03-03  Mike Kestner  <mkestner@novell.com>
23104
23105         * ListView.cs: Refactor into HeaderControl and ItemControl. Fix new
23106         event declarations to proxy to base event.
23107         * ListViewItem.cs: update to use ItemControl.
23108         * Theme.cs: make DrawListViewHeader. s/DrawListView/DrawListViewItems.
23109         * ThemeWin32Classic.cs: update to new ListView theme API and fix
23110         column header label rendering for 0 width columns.
23111
23112 2006-03-03  Peter Dennis Bartok  <pbartok@novell.com>
23113
23114         * Control.cs (ControlCollection.SetChildIndex): Avoid using a call
23115           that causes the control to be created. Fixes #77476.
23116
23117 2006-03-02  Jackson Harper  <jackson@ximian.com>
23118
23119         * Hwnd.cs: Clear the nc pending when clearing the NC area, not the
23120         expose_pending.
23121
23122 2006-03-02  Peter Dennis Bartok  <pbartok@novell.com>
23123
23124         * Control.cs: Implemented 2.0 feature where OnClick has MouseEventArgs
23125           passed in for the EventArgs (fixes #77690)
23126
23127 2006-03-01  Jackson Harper  <jackson@ximian.com>
23128
23129         * ScrollBar.cs: Refresh afterbeing resized.
23130
23131 2006-02-28  Mike Kestner  <mkestner@novell.com>
23132
23133         * MenuAPI.cs: Call PerformPopup internal method to emit Popup.
23134         Clean up a tracker compile warning.
23135         * MenuItem.cs: add internal PerformPopup method.
23136         [Fixes #77457]
23137
23138 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
23139
23140         * TextBoxBase.cs (set_Text): Recalculate the document (causing an
23141           implicit expose) when the text is set to null
23142
23143 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com>
23144
23145         * RichTextBox.cs (FlushText): When newline is true, we always
23146           need to split the line, even if no text is on it and we may
23147           never eat newlines. (Fixes #77669)
23148
23149 2006-02-28  Mike Kestner  <mkestner@novell.com>
23150
23151         * ListView.cs: Add UpdateSelection internal method. Remove SelectItem 
23152         and set Selected instead.
23153         * ListViewItem.cs: Call owner.UpdateSelection to manipulate the 
23154         collections.
23155
23156 2006-02-28  Peter Dennis Bartok  <pbartok@novell.com> 
23157
23158         * ComboBox.cs: Allow setting SelectedIndex to -1. Fixes #77665
23159
23160 2006-02-28  Alexander Olk  <alex.olk@googlemail.com>
23161
23162         * FontDialog.cs:
23163           - Got rid of the panel. All controls are now directly added to
23164             the dialog form
23165           - It is now possible to set a font with the Font property
23166           - MinSize and MaxSize property do now what they should
23167           - ShowApply, ShowHelp, ShowColor, ShowEffects likewise
23168           - Searching and selecting a font with the font textbox works now,
23169             the same applies to the style and size textbox
23170           - Draw the correct 3D border in the example panel
23171           - Fixed a little mem leak (unused fonts didn't get disposed)
23172           - Many other internal updates/rewrites...
23173           - Fix typo
23174
23175 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
23176
23177         * TextControl.cs: 
23178           - InsertRTFFromStream: Added 'number of characters inserted' argument
23179           - set_SelectedRTF: Now using the number of characters to calculate
23180             the new location for the selection and cursor (x/y cannot be used
23181             due to potentially already wrapped text)
23182
23183 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com>
23184
23185         * TextControl.cs: Added property and implemented means to allow 
23186           disabling recalculation of a document (can be used to speed up
23187           multiple inserts and is needed to make RTF inserts predictable, see
23188           bug #77659)
23189         * RichTextBox.cs: Using the new NoRecalc property of Document to
23190           keep x/y insert locations predictable. Also makes it faster inserting
23191           large chunks of RTF
23192
23193 2006-02-27  Peter Dennis Bartok  <pbartok@novell.com> 
23194
23195         * Control.cs: Separated special WM_SYSKEYUP keyboard handling. That way
23196           it's easier for a child control to handle the other messages without
23197           having to duplicate the special functionality
23198         * TextBoxBase.cs
23199           - WndProc: Removed calling base handler for WM_KEYDOWN and added 
23200             code to handle processing the key ourselves, in order to get 
23201             access to the result of KeyEventArgs.Handled. We now only call 
23202             ProcessKey if they key hasn't been handled already. Fixes #77526.
23203           - set_Text: If null or empty string is given, just clear the 
23204             document. Fixes part of #77526
23205
23206 2006-02-27  Jackson Harper  <jackson@ximian.com>
23207
23208         * SizeGrip.cs: Paint the background color before painting the grip
23209         so things look right.
23210         * MdiClient.cs: Add the sizegrip when both scrollbars are used.
23211
23212 2006-02-27  Mike Kestner  <mkestner@novell.com>
23213
23214         * ListView.cs:
23215           - Restructure layout and invalidation model to remove a ton of
23216           flicker from the control and speed up performance in general.
23217           - Add manual column resize, flickers like crazy, but I already have
23218           some ideas on how I'll fix that. (#76822)
23219           - Merge the three Icon-based views into a single layout method.
23220           - Move item selection interaction logic from the item since 
23221           interaction with the collections is more appropriate to the view.
23222           - Deselection on non-item clicks.
23223         * ListViewItem.cs:
23224           - Encapsulate most of the layout. Add some internal props to trigger
23225           layout.  Move to a model where Items invalidate themselves instead
23226           of just invalidating the whole control every time something changes.
23227           - Invalidate on Text/Caption changes.
23228           - switch to an offset based layout model to avoid having to absolute
23229           position every element on item moves.
23230           - correct checkbox layout to conform to MS layout.
23231         * ThemeWin32Classic.cs:
23232           - refactor some column header drawing code.
23233           - fix string justification for column headers (#76821)
23234           - make SmallIcon labels top justified for compat with MS impl.
23235         * ThemeClearlooks.cs:
23236           - adjust to new ListViewItem internal checkbox bounds api.
23237
23238 2006-02-27  Jackson Harper  <jackson@ximian.com>
23239
23240         * Control.cs:  Change where implicit controls fall in the zorder.
23241         They are now on top of all children.
23242         - Synced AddImplicit code with Add
23243         - Removed unused enumerator.
23244         * SizeGrip.cs: Remove the TODO as its been TODONE.
23245
23246 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com> 
23247
23248         * TextControl.cs(Insert): Combine the last lines unless the insertion
23249           string ends with \n\n, otherwise we leave one line too many (Fixes
23250           something I noticed with the testapp for #77526; the bug itself was
23251           already fixed in the previous checkin)
23252
23253 2006-02-26  Peter Dennis Bartok  <pbartok@novell.com>
23254
23255         * RichTextBox.cs:
23256           - SelectionColor and SelectionFont methods no longer set absolute
23257             styles. Instead, the keep font or color respectively (This 
23258             resolves a long-standing FIXME in the code)
23259           - When flushing RTF text, the insert code now considers text trailing
23260             behind the insertion point (Fixes the bug where when replacing
23261             the selected text via SelectedRTF the remainder of the line behind 
23262             the selection would stay on the first insertion line)
23263         * TextBoxBase.cs:
23264           - AppendText now updates the selection points after inserting text
23265           - AppendText now ensures that the last tag (sometimes 0-length) of
23266             the document is used for the style information (Fixes part of 
23267             bug #77220)
23268         * TextControl.cs:
23269           - Created new FontDefiniton class to allow describing partial style
23270             changes
23271           - StreamLine() now takes a lines argument, to allow it to decide
23272             whether an encountered zero-length tag is the last in the document
23273             (which must be kept to not loose the font/color contained in it,
23274             for later appends)
23275           - Created Combine() and Split() methods for Marker structs, to 
23276             support marker updates due to reformatted documents (soft line
23277             wraps)
23278           - Implemented Document.CaretTag setter
23279           - Fixed MoveCaret(CtrlEnd) handling, now moves to the last character
23280             of the last line (Not the cause, but also exposed by bug #77220)
23281           - Added LineTag argument to InsertString method, to allow callers
23282             to force a certain tag to be used (required to force use of the
23283             trailing zero-length tag of a document)
23284           - Now updating markers in Combine(), to avoid stale tag markers
23285           - Added some method descriptions to aid maintenance
23286           - Implemented new FormatText concept, allowing additive/subtractive
23287             formatting by only specifying the components that are to be 
23288             changed. This was needed for resolving the RTB.SelectedColor/
23289             RTB.SelectedFont fixmes
23290           - Added Break() support method to allow breaking up linetags (used
23291             for partial formatting)
23292           - Added GenerateTextFormat() method. It is used for partial 
23293             formatting and allows to generate a full font/color from given
23294             attributes and an existing tag.
23295
23296 2006-02-26  Jackson Harper  <jackson@ximian.com>
23297
23298         * XplatUIX11.cs:  Use the correct caption height.
23299         - Translate hittest coordinates to screen coords to match MS.
23300         * XplatUIWin32.cs: When we create MDI windows we need to reset
23301         some of the style flags, so we get a nice blank window, and can
23302         draw all the decorations ourselves.
23303         - Set a clipping rectangle on the non client paint event, the
23304         window manager drawing code needs one.
23305         * Form.cs: The window manager needs to know when the window state
23306         has been updated.
23307         * Hwnd.cs: The window manager stuff now does a proper NCCALC so we
23308         don't need to factor in border and title sizes in these
23309         methods. TODO: Remove the args and fix the call points.
23310         * InternalWindowManager.cs: Handle NCHITTEST and NCCALCAREA
23311         properly.
23312         - Let the driver set the cursors.
23313         - Improve active window handling
23314         - Correct sizes for title bars and buttons.
23315         - Match MS drawing better
23316         * MdiWindowManager.cs: We don't need to handle border style
23317         updates specially anymore.
23318         - Check for scrollbars when windows are done moving
23319         - Handle Active properly.
23320         * MimeIcon.cs: Don't crash when we can't load the GNOME stuff
23321         correctly. I am spewing the exception though, so we don't hide the
23322         bugs.
23323         
23324 2006-02-26  Pedro Martinez Julia  <pedromj@gmail.com>
23325
23326         * DataGridViewRowPostPaintEventArgs.cs,
23327           DataGridViewCellPaintingEventArgs.cs,
23328           DataGridViewRowCollection.cs,
23329           DataGridViewRowPrePaintEventArgs.cs,
23330           DataGridViewCell.cs: Clear a few warnings and implement a few
23331           exceptions that should be thrown.
23332
23333 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
23334
23335         * ScrollBar.cs (ctor): Explicitly set a cursor to avoid
23336           'inheriting' our parent's (non-default) cursor. (Part of
23337            the fix for #77479)
23338
23339 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com> 
23340
23341         * XplatUIX11.cs: Fixed cast to make csc happy
23342
23343 2006-02-22  Peter Dennis Bartok  <pbartok@novell.com>
23344
23345         * Control.cs (WndProc): Only handle WM_SETCURSOR messages if
23346           it's for the client area (part of fix for #77479 and needed
23347           for MDI window cursor handling)
23348         * XplatUIX11.cs
23349           - DefWindowProc: Now handles the WM_SETCURSOR messages, setting
23350             the appropriate default cursors and also passing the message
23351             up the parent chain 
23352           - GetMessage: Now generating WM_NCHITTEST and WM_SETCURSOR even
23353             for non-client areas
23354
23355 2006-02-15  Jackson Harper  <jackson@ximian.com>
23356
23357         * XplatUIWin32.cs: Since we fake MDI dont tell Windows that this
23358         is a real MDI window
23359
23360 2006-02-14  Alexander Olk  <alex.olk@googlemail.com>
23361
23362         * X11DesktopColors.cs: Instead of checking the desktop session
23363           string for "KDE" check if it starts with "KDE"
23364
23365 2006-02-10  Jackson Harper  <jackson@ximian.com>
23366
23367         * XplatUIX11.cs: These should be unsigned (fixes crash on 32 bit
23368         systems).
23369
23370 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
23371
23372         * FileDialog.cs: Added Refresh to RunDialog to fix some drawing
23373           errors
23374         * ColorDialog.cs:
23375           - Got rid of the panel. All controls are now directly added to
23376             the dialog form
23377           - Changed to mono coding style
23378
23379 2006-02-10  Jackson Harper  <jackson@ximian.com>
23380
23381         * InternalWindowManager.cs: We don't need the set visibility to
23382         false hack anymore now that peter has written beautiful shutdown
23383         code.
23384
23385 2006-02-10  Peter Dennis Bartok  <pbartok@novell.com>
23386
23387         * XplatUIX11.cs: Ignore DestroyNotify messages for windows that
23388           where already explicitly destroyed
23389
23390 2006-02-10  Jackson Harper  <jackson@ximian.com>
23391
23392         * MdiClient.cs: Handle the case where windows are too high or to
23393         the left and we need scrollbars.
23394
23395 2006-02-10  Alexander Olk  <alex.olk@googlemail.com>
23396
23397         * MimeIcon.cs: Added some icons
23398         * FileDialog.cs:
23399           - Fixed bug #77477
23400           - Got rid of the panel. All controls are now directly added to
23401             the dialog form
23402           - Changed to mono coding style
23403           - On Linux "My Computer" and "My Network" will now show some
23404             more usefull information. A new class, MasterMount, gathers
23405             this information from /proc/mount. Updated MWFFileView to make
23406             use of this information
23407           - Fixed a bug that caused FileDialog to crash when
23408             ".recently_used" file had a zero size
23409           - FilterIndex does now what it should
23410           - Some Refactoring
23411         * OpenFileDialog.cs, SaveFileDialog.cs: Updated to reflect latest
23412             FileDialog changes
23413
23414 2006-02-09  Jackson Harper  <jackson@ximian.com>
23415
23416         * ComboBox.cs: Don't touch if null.
23417
23418 2006-02-09  Peter Dennis Bartok  <pbartok@novell.com>
23419
23420         * Cursor.cs: 64bit safeness fix
23421         * XplatUIX11.cs: Removed several unneeded and one moronic cast.
23422
23423 2006-02-09  Jackson Harper  <jackson@ximian.com>
23424
23425         * Form.cs: If a form is made into an MDI form update the styles so
23426         all the props can get set correctly.
23427         - Kill the mdi_container when we dont need it anymore.
23428         * InternalWindowManager.cs: Add missing NOT
23429
23430 2006-02-08  Jackson Harper  <jackson@ximian.com>
23431
23432         * InternalWindowManager.cs: Respek clipping when drawing MDi
23433         decorations.
23434
23435 2006-02-08  Jackson Harper  <jackson@ximian.com>
23436
23437         * Hwnd.cs: Add bits to track non client expose events.
23438         * XplatUIX11.cs: Track non client expose events on the hwnd. This
23439         gives us a proper invalid rect and will allow for some nice
23440         optimizations with NC client drawing
23441         - MDI windows are children windows, so move their style handling
23442         into the child window block.
23443         * InternalWindowManager.cs: Remove a state reset that was
23444         getting invoked at the wrong time. Fixes managed windows getting
23445         into a 'stuck' captured state.
23446
23447 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
23448
23449         * TextControl.cs (Document.ctor): Now initializing 
23450           selection_anchor. Fixes #77493
23451
23452 2006-02-07  Jackson Harper  <jackson@ximian.com>
23453
23454         * TrackBar.cs: The increment/decrements were backwards.
23455
23456 2006-02-07  Mike Kestner  <mkestner@novell.com>
23457
23458         * Theme*.cs : remove ThemeEngine.Current usage as it just points back
23459         to the instance itself.
23460
23461 2006-02-07  Peter Dennis Bartok  <pbartok@novell.com>
23462
23463         * X11DesktopColors.cs, ThemeGtk.cs: The GObject structure is based
23464           on ulongs and pointers, the size differs between 32bit and 64bit
23465           systems. 
23466
23467 2006-02-07  Mike Kestner  <mkestner@novell.com>
23468
23469         * XplatUIX11.cs : force the WorkingArea away from XGetWindowProperty
23470         for 64 bit platforms to work around a metacity bug. 
23471
23472 2006-02-07  Jackson Harper  <jackson@ximian.com>
23473
23474         * TrackBar.cs: Process the input keys we need, and hookup to
23475         KeyDown instead of using WndProc, so we get key messages.
23476
23477 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com>
23478
23479         * XplatUIX11.cs: Atoms are only 32bit on the wire, no matter what
23480           machine we're on. 
23481         * X11Dnd.cs(SetAllowDrop): Since atoms are always 32bit on the wire
23482           we need to translate the XdndVersion atoms array before sending it
23483
23484 2006-02-06  Peter Dennis Bartok  <pbartok@novell.com> 
23485
23486         * XplatUIX11.cs: 
23487           - The preceeding 64bit fixes had a bug: ChangeProperty expects the
23488             number of bits for the property, not the number of bytes. The
23489             change to provide IntPtr.Size broke 32bit. (64bit was also wrong
23490             but would not crash since it specified 8 bits instead of 4 bits)
23491           - More 64bit fixes: Switched all atoms from int to IntPtr (they are
23492             defined as XID -> long in the C headers)
23493           - Removed 'new IntPtr((int))' and '(IntPtr)' casts from all NetAtoms 
23494             references since those are now IntPtr to begin with
23495           - Switched all Atom.XXX 'int' casts to IntPtr casts
23496           - Fixed XGrabPointer DllImport signature to work for 64bit (cursor arg)
23497           - Fixed XInternAtom signature for 64bit, now returns an IntPtr
23498           - Added XChangeActivePointerGrab DllImport (for X11DnD)
23499         * X11Structs.cs:
23500           - Changed 'int' type for Atoms in XEvent structures to IntPtr
23501           - Changed atom in HoverStruct to be IntPtr
23502         * X11DnD.cs:
23503           - Removed local DllImports, switched code to use those from XplatUIX11
23504           - Removed/fixed casts related to the switch of Atom to be a IntPtr
23505
23506 2006-02-06  Mike Kestner  <mkestner@novell.com>
23507
23508         * XplatUIX11.cs : many more 64 bit pinvoke changes.  I've audited all the 
23509         method signatures in the import region.  There may still be some
23510         lingering struct marshaling issues, as I didn't drill down into those.
23511         Yet.
23512
23513 2006-02-06  Jackson Harper  <jackson@ximian.com>
23514
23515         * ComboBox.cs: Dont manually set the top_item, this is computed
23516         when the scrollbar position is set.
23517
23518 2006-02-06  Mike Kestner  <mkestner@novell.com>
23519
23520         * XplatUIX11.cs : 64 bit changes to XGetWindowProperty usage. Fixes
23521         startup crashes on amd64.  There's other fixes needed.  All pinvoke
23522         usage of Atom needs to be mapped to IntPtr for example.  And there are
23523         likely other int/long issues to be addressed.
23524
23525 2006-02-04  Alexander Olk  <alex.olk@googlemail.com>
23526
23527         * FileDialog.cs: One more...
23528
23529 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
23530
23531         * FileDialog.cs: Next try
23532
23533 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
23534
23535         * FileDialog.cs: First part of fix for #77464
23536
23537 2006-02-03  Alexander Olk  <alex.olk@googlemail.com>
23538
23539         * ButtonBase.cs, ContainerControl.cs, Forms.cs,
23540           ThemeWin32Classic.cs: Fix for #77458. Correct handling of
23541           AcceptButton border drawing.
23542
23543 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com> 
23544
23545         * Form.cs: Moved positioning of form after auto scaling is applied,
23546           otherwise it would possibly use wrong form size.
23547
23548 2006-02-03  Peter Dennis Bartok  <pbartok@novell.com>
23549
23550         * Control.cs (RecreateHandle): No need to re-create any child
23551           controls, the child windows will get destroyed automatically by
23552           the windowing system or driver, and re-created when the handle
23553           is being accessed the first time. Fixes #77456
23554         * Form.cs: No longer setting the form to closing if the handle is 
23555           being recreated. This seems like the right thing to do, don't
23556           have a bug or testcase for this, though.
23557
23558 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
23559
23560         * FileDialog.cs: Suspend/Resume layouting when changing sizes of
23561           controls to avoid unwanted side effects
23562
23563 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com> 
23564
23565         * Control.cs: 
23566           - ScaleCore needs to scale the bounds, not the ClientSize of the 
23567             control. Fixes #77416.
23568           - DefaultSize is 0,0 for control
23569         * TextBoxBase.cs: 
23570           - DefaultSize is 100, 20
23571           - SetBoundsCore: Now enforcing the height, no matter if the provided
23572             height is more or less than the preferred one, as long as AutoSize
23573             is on
23574         * Form.cs: Apply documented fudge factor. Part of item 3 fix for #77416
23575
23576 2006-02-02  Peter Dennis Bartok  <pbartok@novell.com>
23577
23578         * Control.cs:
23579           - ResumeLayout: Fixed logic when to call PerformLayout, we may not
23580             call unless both performLayout is true *and* we have a pending
23581             layout change
23582           - ResumeLayout: MS does not completely nest Suspend and Resume,
23583             they bottom out at 0, fixed our code to match that.
23584           - UpdateBounds/SetBoundsCore: Moved calling of UpdateDistances() to
23585             SetBoundsCore, we were updating even when we shouldn't. This fixes
23586             swf-anchors mis-anchoring when resizing the app fast and lots.
23587           - UpdateDistances: Now only setting the left and top distance if 
23588             we have a parent and are not suspended, this is based on
23589             a suggestion by Don Edvaldson in bug #77355.
23590           - OnVisibleChanged: Fixed logic when to create the control. We may
23591             not create the control if we have no parent or if it's not visible;
23592             switched to using Visible property instead of is_visible field 
23593             since the property also considers parent states. This fixes a bug
23594             when starting Paint.Net
23595
23596 2006-02-02  Jackson Harper  <jackson@ximian.com>
23597
23598         * Form.cs: If the forms handle hasn't been created yet don't call
23599         into xplatui to make it top most, just set the topmost flag on the
23600         form in CreateParams
23601         * XplatUIX11.cs: Handle WS_EX_TOPMOST.
23602
23603 2006-02-01  Jackson Harper  <jackson@ximian.com>
23604
23605         * ScrollableControl.cs: Refactored the Recalculate method a
23606         little, this wasn't handling all the variants of bottom and right
23607         bars needed to be added and added/removed based on their
23608         counterparts being added/removed (which changes the drawable
23609         size). Also we special case client widths and heights of 0 and
23610         don't add the scrollbar for those.
23611
23612 2006-02-01  Peter Dennis Bartok  <pbartok@novell.com>
23613
23614         * XplatUIX11.cs: 
23615           - Added method to get AbsoluteGeometry(); currently unused, but might
23616             be used in the future, if we try again to figure out toplevel
23617             coordinates with some more crappy window managers
23618           - Added FrameExtents() method to retrieve the WM set decoration size
23619           - Tried to fix up AddConfigureNotify and handling of ReparentNotify 
23620             to deal with at least KDE, FVWM and metacity (Fixes #77092)
23621         * Hwnd.cs: 
23622           - Added whacky_wm tracking var for metacity
23623           - Added logic to have default menu height if the actual menu height
23624             has not yet been calculated (part of fix for #77426)
23625         * Form.cs: Keep track whether client size has been set and re-set 
23626           it if a menu is added/removed afterwards (Fixes #77426)
23627
23628 2006-01-31  Jackson Harper  <jackson@ximian.com>
23629
23630         * Control.cs: When a new Site is set on the component attempt to
23631         pull the AmbientProperties from it.
23632
23633 2006-01-31  Peter Dennis Bartok  <pbartok@novell.com>
23634
23635         * ThemeWin32Classic.cs: Menu background is drawn in ColorMenu, not
23636           in the background of the owning form. Fixes #77332
23637
23638 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
23639
23640         * MimeIcon.cs: Fix for #77409
23641
23642 2006-01-31  Alexander Olk  <alex.olk@googlemail.com>
23643
23644         * XplatUIX11GTK.cs: Initial import
23645
23646 2006-01-31  Jordi Mas i Hernandez <jordimash@gmail.com>
23647
23648         * FixedSizeTextBox: fixes class signature
23649
23650 2006-01-30  Jackson Harper  <jackson@ximian.com>
23651
23652         * FixedSizeTextBox.cs: New internal class that represents a
23653         textBox that will not be scaled.
23654         * TreeView.cs:
23655         * ComboBox.cs:
23656         * UpDownBase.cs: Use the new FixedSizeTextBox instead of a
23657         standard TextBox.
23658                 
23659 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com> 
23660
23661         * XplatUIX11.cs: Retrieve default screen number instead of
23662           assuming 0. Attempted fix for #77318
23663
23664 2006-01-30  Peter Dennis Bartok  <pbartok@novell.com>
23665
23666         * XplatUIWin32.cs: 
23667           - GetWindowPos: When a window is parented by FosterParent, use 
23668             the desktop instead of FosterParent as the base to get coordinates
23669           - CreateWindow: Don't make FosterParent the parent window for Popups
23670             if we don't want a taskbar entry, Popups automatically don't get one
23671         * Hwnd.cs: Need to call remove to actually remove the key from the
23672           hash table
23673
23674 2006-01-30  Mike Kestner  <mkestner@novell.com>
23675
23676         * MenuAPI.cs: adjust MainMenu item popup location to y=0.
23677
23678 2006-01-30  Jackson Harper  <jackson@ximian.com>
23679
23680         * TreeView.cs:
23681         * TreeNode.cs: Raise events no matter how the treenode is
23682         checked. Patch by Don Edvalson.
23683
23684 2006-01-30  Jackson Harper  <jackson@ximian.com>
23685
23686         * TreeNode.cs: Signature fix.
23687
23688 2006-01-29  Alexander Olk  <alex.olk@googlemail.com>
23689
23690         * ThemeClearlooks.cs: Fixed a crash in ProgressBar drawing.
23691
23692 2006-01-20  Mike Kestner  <mkestner@novell.com>
23693
23694         * Form.cs: Add ActiveTracker property to do Captures and perform mouse
23695         event forwarding when menus are active.
23696         * MenuAPI.cs: kill the GrabControl hack.  Use Form.ActiveTracker.
23697         Most of the patch is pdb's with a little rework.
23698
23699 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
23700
23701         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs: 
23702           Removed GetMenuDC and ReleaseMenuDC methods; replaced
23703           by PaintEventStart(handle, false) and PaintEventEnd(handle, false)
23704         * Form.cs: Changed WM_NCPAINT handler to use PaintEventStart and End
23705         * InternalWindowManager.cs: Added use of PaintEventStart/End to
23706           handling of WM_NCPAINT message, now passing the PaintEventArgs to
23707           the PaintWindowDecorations method
23708         * MainMenu.cs: Switched logic from GetMenuDC to PaintEventStart
23709         * MdiChildContext.cs: Switched logic from GetMenuDC to PaintEventStart
23710         * MenuAPI.cs: Made tracker window invisible
23711         * XplatUIWin32.cs:
23712           - Removed GetMenuDC and ReleaseMenuDC methods
23713           - Implemented the client=false path for PaintEventStart and
23714             PaintEventEnd
23715
23716 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
23717
23718         * XplatUIWin32.cs(SetBorderStyle): Fixed3D needs a border
23719         * XplatUIX11.cs(DeriveWindowStyles): Updated to match fixed Form
23720           styles
23721         * Form.cs: 
23722           - MaximizeBox, MinimizeBox: Recreate the handle when setting
23723             the style
23724           - CreateParams: Reworked the styles to match MS look'n'feel,
23725             removed automatic setting of MinimizeBox, MaximizeBox, etc. via
23726             the WS_OVERLAPPEDWINDOW style. This fixes #76823.
23727
23728 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com> 
23729
23730         * XplatUIX11.cs(GetWindowState): Now throwing an exception when the 
23731           window is not mapped, since otherwise every form that's being 
23732           created is considered minimized, which is wrong.
23733         * Form.cs: Catching the exception and returning our internal value
23734           instead
23735
23736 2006-01-26  Peter Dennis Bartok  <pbartok@novell.com>
23737
23738         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added new driver method
23739           SetWindowMinMax() to have means to tell the driver about the minimum,
23740           maximum and maximized state window sizes. (Part of the fix for #76485)
23741         * Form.cs:
23742           - Implemented tracking of minimum and maximum window size, now calling
23743             new SetWindowMinMax() driver method to tell the driver (Part of the
23744             fix for #76485)
23745           - Finished handling of WM_GETMINMAXINFO method, now setting all values
23746             (Completes fix for #76485)
23747           - Calling new SetWindowMinMax driver method when the handle for a 
23748             form is created, to make sure the driver knows about it even if
23749             the values have been set before the window was created
23750           - Now eating the WM_WINDOWPOSCHANGED message if the form is minimized
23751             to avoid messing up our anchoring calculations (partial fix
23752             for #77355)
23753         * XplatUIStructs.cs: Added MINMAXINFO struct (moved from Win32 driver)
23754         * XplatUIX11.cs:
23755           - Added _NET_WM_STATE_HIDDEN property for detecting minimized state
23756           - Improved GetWindowState() to detect 'Minimized' state on Metacity 
23757             (and presumably other freedesktop.org compliant WMs). Left the
23758             assumption unmapped=minimized, needed for SetVisible to work.
23759           - Now setting the window state when creating windows
23760           - Fixed SetVisible to consider/set the window state when mapping
23761             a Form. We cannot set the state before it's mapped, and we cannot
23762             use Form.WindowState once it's mapped (since it would ask the
23763             driver and get 'normal'. Therefore, we grab the state before
23764             mapping, map, and then set state.
23765           - Implmemented SetWindowMinMax method; Metacity does not seem to
23766             honor the ZoomHints, though.
23767         * XplatUIWin32.cs:
23768           - Removed MINMAXINFO (moved to XplatUIStructs)
23769           - Added SetWindowMinMax stub (on Win32 the only way to set that
23770             information is in response to the WM_GETMINMAXINFO message, which
23771             is handled in Form.cs)
23772           - Added logic to SetVisible to set the proper window state when a 
23773             form is made visible (fixes #75720)
23774
23775 2006-01-26  Jackson Harper  <jackson@ximian.com>
23776
23777         * Control.cs (BeginInvoke): Automagically handle EventHandlers the
23778         same way we handle them with Invoke.
23779
23780 2006-01-25  Peter Dennis Bartok  <pbartok@novell.com> 
23781
23782         * Form.cs:
23783           - Added tracking of window state so CreateParams can return
23784             the appropriate style
23785           - Moved setting of WS_CAPTION style in CreateParams to allow
23786             styles without caption
23787         * DataGridTextBoxColumn.cs: We are now also creating the TextBox 
23788           control if the TextBox property is accessed. Fixes #77345
23789         * Control.cs:
23790           - get_Created: now uses is_disposed and is_created to determine
23791             return value (suggested by Jackson)
23792           - CreateHandle: No longer exits if the handle is being recreated
23793           - RecreateHandle: If the handle is not yet created call the 
23794             appropriate method to create either control or handle. If the
23795             control is already created CreateHandle will simply exit instead
23796             of just creating the handle
23797         * Hwnd.cs: Removed expose_pending tracking, no longer needed since we
23798           now SendMessage WM_DESTROY directly to the control when DestroyWindow
23799           is called.
23800         * XplatUIX11.cs: 
23801           - When DestroyWindow is called, instead of waiting for the 
23802             DestroyNotification from X11, we directly post it to the WndProc
23803             and immediately dispose the hwnd object.
23804             Same applies to DestroyChildWindows, and this obsoletes the
23805             expose_pending tracking. Contrary to Win32 behaviour we destroy our
23806             child windows before our own, to avoid X11 errors.
23807           - Removed the direct sending of WM_PAINT on UpdateWindow
23808         * XplatUIWin32.cs:
23809           - Reworked DoEvents and GetMessage to allow access to internal queue
23810             even when trying non-blocking access to the queue.  Fixes #77335. 
23811             Based on a patch suggestion by Don Edvalson. The new private
23812             GetMessage can now also be used as a backend for a PeekMessage
23813             frontend version.
23814         * XplatUI.cs: Improved debug output for CreateWindow
23815
23816 2006-01-25  Jackson Harper  <jackson@ximian.com>
23817
23818         * Help.cs: Allow param to be null. Patch by Don Edvalson.
23819
23820 2006-01-24  Jackson Harper  <jackson@ximian.com>
23821
23822         * ComboBox.cs: Clamp the max value set for the vertical scrollbar
23823         when we have a MaxDropItems lower then the selected index.
23824
23825 2006-01-24  Jackson Harper  <jackson@ximian.com>
23826
23827         * Control.cs: Don't allow selection of non visible controls, allow
23828         selection of controls without parents.
23829
23830 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
23831
23832         * ThemeWin32Classic.cs: Fixes Datagrid drawing issues
23833         * DataGridDrawingLogic.cs: Add editing row only when is necessary
23834
23835 2006-01-23  Jackson Harper  <jackson@ximian.com>
23836
23837         * UpDownBase.cs: Make the textbox handle all the selection and
23838         tabbing. This fixes tabing to updown controls.
23839
23840 2006-01-24  Jordi Mas i Hernandez <jordimash@gmail.com>
23841
23842         * TextBoxBase.cs: fixes exception thown the object was null
23843
23844 2006-01-23  Jackson Harper  <jackson@ximian.com>
23845
23846         * ButtonBase.cs: Just use the base CreateParams. They set
23847         visibility and enabled correctly.
23848         * ComboBox.cs:
23849         * TrackBar.cs:
23850         * MonthCalendar.cs: Lets let the base set as much of the
23851         createparams as possible so we don't have duplicate code all over
23852         the place.
23853
23854 2006-01-22  Alexander Olk  <alex.olk@googlemail.com>
23855
23856         * ThemeGtk.cs: Added TrackBar and some experimental code to
23857           get double buffering back
23858
23859 2006-01-21  Jordi Mas i Hernandez <jordimash@gmail.com>
23860
23861         * DataGrid.cs: Allows row number set internally higher than the last
23862         when creating a new row. Restores the editing functionality.
23863
23864 2006-01-20  Mike Kestner  <mkestner@novell.com>
23865
23866         * MimeIcon.cs: delay Image creation until the icons are accessed
23867         instead of creating 190 scaled images on GnomeHandler startup.
23868
23869 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com> 
23870
23871         * TextBoxBase.cs (WndProc): When handling WM_KEYDOWN we need to
23872           first call base before processing the event. Fixes #77279
23873
23874 2006-01-19  Peter Dennis Bartok  <pbartok@novell.com>
23875
23876         * XplatUIWin32.cs, Cursor.cs: Fixed code that wrongly assumed
23877           that the stride for the GDI bitmap would match the stride of
23878           a DIB or a Cursor.
23879
23880 2006-01-19  Alexander Olk  <alex.olk@googlemail.com>
23881
23882         * ThemeGtk.cs: Added ProgressBar, RadioButton, CheckBox
23883
23884 2006-01-19  Jackson Harper  <jackson@ximian.com>
23885
23886         * ComboBox.cs: Hookup the text controls keydown event so we get
23887         those when the text control has the focus.
23888
23889 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
23890
23891         * Label.cs: Now using the base events instead of defining new ones;
23892           this allows us to just call the base properties without having to
23893           duplicate all base property logic 
23894
23895 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
23896
23897         * Label.cs: A label by default is not a tabstop (Fixes one of our
23898           failing nunit tests)
23899
23900 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com> 
23901
23902         * XplatUIWin32.cs: Fixed wrong DoEvents logic. Fixes #77282
23903         * XplatUIX11.cs: Removed WM_PAINT check from DoEvents. Fixes #77282
23904
23905 2006-01-18  Peter Dennis Bartok  <pbartok@novell.com>
23906
23907         * Cursor.cs: Reimplemented creating cursor bitmaps without using
23908           the Bitmap(Stream) constructor which is semi-broken on MS GDI+.
23909           This fixes #77218
23910         * XplatUIWin32.cs: 
23911           - Reimplemented creating Bitmaps from DIBs since the Bitmap(Stream) 
23912             constructor creates images that can't be saved. Part of the fix
23913             for #76103
23914           - Added handling of CF_BITMAP as CF_DIB to clipboard code (Fixes #76103)
23915           - SetWindowState: Switched ShowWindow flags (part of an upcoming 
23916             bug fix for handling window state in forms properly)
23917
23918 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
23919
23920         * ThemeGtk.cs: Simplify ScrollBar drawing
23921
23922 2006-01-18  Jackson Harper  <jackson@ximian.com>
23923
23924         * Splitter.cs: Set the default dock style for the splitter control
23925         in the constructor.
23926
23927 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
23928
23929         * ThemeGtk.cs: Corrected StateType and ShadowType for
23930           gtk_paint_box
23931
23932 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
23933
23934         * Control.cs: Make use of Theme.DoubleBufferingSupported
23935         * ThemeGtk.cs:
23936           - Added drawing for flat style buttons
23937           - Added ScrollBar drawing
23938
23939 2006-01-18  Alexander Olk  <alex.olk@googlemail.com>
23940
23941         * ThemeClearlooks.cs: Removed some unneeded code.
23942         * ThemeGtk.cs: First part of ThemeGtk enhancements.
23943
23944 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
23945
23946         * LinkLabel.cs: We need to update the hover drawing when
23947           leaving the control as well.
23948
23949 2006-01-18  Jordi Mas i Hernandez <jordimash@gmail.com>
23950
23951         * DataGrid.cs: Clicking on non empty areas in the columns
23952            area was giving an exception
23953
23954 2006-01-17  Jackson Harper  <jackson@ximian.com>
23955
23956         * ThemeWin32Classic.cs:
23957         * ListView.cs: Do not draw/clip the headers when the header style
23958         is None.
23959
23960 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
23961
23962         * DataGrid.cs: Fixes 77260
23963         
23964 2006-01-17  Jordi Mas i Hernandez <jordimash@gmail.com>
23965
23966         * DataGrid.cs: Clicking on a column on a empty grid was giving
23967           an exception
23968
23969 2006-01-17  Peter Dennis Bartok  <pbartok@novell.com>
23970
23971         * DataGrid.cs (OnKeyDown): Don't use the array if it's empty
23972           or any keypress will crash the grid.
23973
23974 2006-01-17  Mike Kestner  <mkestner@novell.com>
23975
23976         * MainMenu.cs (OnMenuChanged): set Height=0 to cause relayout.
23977         * ThemeWin32Classic.cs (CalcItemSize): clear Height/Width for 
23978         invisible/previously-visible items.
23979         [Fixes #76909]
23980
23981 2006-01-17  Alexander Olk  <alex.olk@googlemail.com>
23982
23983         * ThemeClearlooks.cs:
23984         - Added CL_Draw_Button method; now other theme controls that are 
23985           not derived from button or do not have a button can draw buttons
23986           too
23987         - Updated ComboBox drawing
23988         - Beautified RadioButton drawing
23989         - Corrected drawing of bottom and left tabs
23990         - Beautified DateTimePicker and MonthCalendar
23991         - Added CPDrawButton and CPDrawRadioButton
23992
23993 2006-01-16  Jackson Harper  <jackson@ximian.com>
23994
23995         * ComboBox.cs: Set the initial value of the scrollbar to the
23996         current index. Reduce the numbers of refreshs and IndexOfs called.
23997
23998 2006-01-14  Alexander Olk  <alex.olk@googlemail.com>
23999
24000         * FileDialog.cs: When the file listview is focused hitting the
24001           backspace key moves the fileview to the parent directory
24002
24003 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
24004
24005         * Form.cs: 
24006           - Added RecreateHandle call when changing taskbar visibility to 
24007             trigger reparenting in Win32 driver (Fixes #75719)
24008           - If a window has minimize or maximize buttons, it cannot have
24009             a help button
24010         * XplatUIWin32.cs:
24011           - CreateWindow: When no WS_EX_APPWINDOW style is found we parent
24012             the toplevel form with FosterParent (A toolwindow not on the
24013             taskbar) (Fixes #75719)
24014           - Made FosterParent a toolwindow
24015
24016 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
24017
24018         * FileDialog.cs: Don't crash if InitialDirectory doesn't exist
24019
24020 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
24021
24022         * ToolTip.cs: If SetToolTip is called from a control and the mouse
24023           is currently over that control, make sure that tooltip_window.Text
24024           gets updated
24025
24026 2006-01-13  Mike Kestner  <mkestner@novell.com>
24027
24028         * MimeIcon.cs: size_t on lp64 fix for gdk_pixbuf_save_to_file extern.
24029
24030 2006-01-13  Jackson Harper  <jackson@ximian.com>
24031
24032         * TreeView.cs: On MS GetNodeAt never actually factors in the X
24033         value passed.  Also redraw the selected node when we recieve
24034         focus, so tabbing between trees works correctly.
24035
24036 2006-01-13  Alexander Olk  <alex.olk@googlemail.com>
24037
24038         * MimeIcon.cs: GnomeHandler: older gnome versions don't have
24039           ~/.gconf/%gconf-tree.xml, so use
24040           .gconf/desktop/gnome/interface/%gconf.xml
24041
24042 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
24043
24044         * TextControl.cs: Draw text in gray if control is disabled
24045
24046 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com> 
24047
24048         * TreeView.cs: Draw the focus rectangle outside the highlight, to
24049           make sure it's always visible. Fixes #76680.
24050
24051 2006-01-13  Peter Dennis Bartok  <pbartok@novell.com>
24052
24053         * TreeView.cs: Implemented Wheel scrolling. Fixes #76531
24054
24055 2006-01-13  Jonathan Chambers  <jonathan.chambers@ansys.com>
24056
24057         * PageSetupDialog.cs: Added.
24058         * PrintDialog.cs: Attributes.
24059         * PrintPreviewControl.cs: Updates.
24060         * PrintPreviewDialog.cs: Updates.
24061         
24062 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
24063
24064         * Control.cs: Undid my selection check fix, since it's not needed
24065         * TextBoxBase.cs:
24066           - Now considering the presence of hscroll/vscroll when sizing
24067             vscroll/hscroll respectively. Fixed bug #77077
24068           - Added Left/Up/Down/Right to IsInputKey list to prevent
24069             ContainerControl from stealing them. This fixes what I broke
24070             with my last checkin.
24071
24072 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com> 
24073
24074         * ScrollableControl.cs: Implemented dockpadding. Fixes #77166. And
24075           I finally understand how the property can be set without a setter :-)
24076
24077 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
24078
24079         * Application.cs:
24080           - Switched RunLoop to use static Message.Create to create a 
24081             Message object
24082           - Added PreProcessMessage call in runloop for keyboard events; this
24083             is part of the fix for #77219, I overlooked this originally in the
24084             MSDN doc for PreProcessMessage
24085         * Control.cs:
24086           - Removed call to PreProcessMessage from handling of keyboard 
24087             messages; it's supposed to be done in the message pump
24088           - Moved call to ProcessKeyEventArgs inside ProcessKeyMessage as
24089             per MSDN documentation.
24090           - IsInputChar: All chars are input chars by default; removed the 
24091             parent calling chain, MS does not document that
24092           - PreProcessMessage: If IsInputChar is true, we want to return false
24093             to allow dispatching of the message
24094           - When selecting the next control, now also check that we're not
24095             selecting ourselves again and therefore return a false positive.
24096         * TextBoxBase.cs:
24097           - Tried to match return values for IsInputKey and ProcessDialogKey
24098             to what MS returns; moved processing of our special keys outside
24099             ProcessDialogKey since MS does not seem to return true on those.
24100           - Moved code that previously was in ProcessDialogKey into new private
24101             ProcessKey method, which gets called upon receipt of WM_KEYDOWN
24102           - Reworked handling of WM_CHAR to not have to duplicate code from
24103             Control.cs anymore, instead we simply call down to base.
24104            
24105 2006-01-12  Jackson Harper  <jackson@ximian.com>
24106
24107         * ComboBox.cs: We always need to refresh the text area when
24108         EndUpdate is called. Fixes the combobox in the file dialog.
24109         * Control.cs: Don't create the creator_thread until the controls
24110         handle is created.  Also in InvokeRequired we check if the
24111         creator_thread is null. This gives the effect of InvokeRequired
24112         returning true if the controls handle is not created yet, and
24113         matches MS.
24114
24115 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
24116
24117         * XplatUI.cs:
24118           - Added StartLoop() driver method. This is used to allow drivers to
24119             prepare for an upcoming GetMessage/TranslateMessage/DispatchMessage
24120             loop for a particular thread
24121           - Added EndLoop() driver method. This is called once the message
24122             pump for the thread is shut down
24123           - Added SupportsTransparency method to allow the driver to indicate
24124             opacity support for windows
24125         * Form.cs:
24126           - Removed TODO attribute, completed AllowTransparency property
24127           - Added documented logic to Opacity
24128         * GroupBox.cs, Label.cs, LinkLabel.cs, PropertyGrid.cs, Control.cs,
24129           ButtonBase.cs, CheckedListBox.cs: Combined Jackson's and Miguel's
24130           versions of CompatibleTextRendering
24131         * X11Structs.cs: Added opacity atom to our atom enumeration
24132         * Hwnd.cs: Added opacity tracking (we need to track since the opacity
24133           of a form might be set before it's reparented by the WM, and we need
24134           the opacity value without calling up to Form)
24135         * XplatUIDriver.cs: Added StartLoop(), EndLoop() and 
24136           SupportsTransparency() driver methods
24137         * Application.cs: Now calling StartLoop and EndLoop driver methods
24138         * XplatUIX11.cs:
24139           - Added opacity atom registration
24140           - Added StartLoop()/EndLoop() methods. They're empty right now but
24141             will need to get implemented when we switch to a per-thread queue
24142           - Implemented SupportsTransparency() method
24143           - Implemented SetWindowTransparency() method
24144           - Added support for setting the opacity value when a window is
24145             reparented (since the opacity needs to be set on the WM frame)
24146         * XplatUIOSX.cs, XplatUIWin32.cs:
24147           - Added SupportsTransparency(), StartLoop() and EndLoop() methods
24148
24149 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
24150
24151         * ThemeClearlooks.cs: Don't crash if TabControl.Parent is null.
24152
24153 2006-01-12  Alexander Olk  <alex.olk@googlemail.com>
24154
24155         * FileDialog.cs: Added ToolTip for MWFFileView
24156         * MimeIcon.cs: Rewrote GnomeHandler.
24157           - Get currently used gnome icon theme from
24158             ($HOME)/.gconf/%gconf-tree.xml
24159           - Make use of inherited icon themes
24160           - Support SVG icon themes like Tango via librsvg
24161
24162 2006-01-12  Miguel de Icaza  <miguel@novell.com>
24163
24164         Revert's Jackson's revert which broke 2.0 builds.   Fix both
24165         builds. 
24166         
24167         * Application.cs: Move the use_compatible_text_rendering outside
24168         the NET_2_0 define.  If we ever need to use the
24169         use_compatible_text_rendering on the individual controls they will
24170         access the variable from the common shared code paths.
24171
24172 2006-01-12  Peter Dennis Bartok  <pbartok@novell.com>
24173
24174         * XplatUI.cs:
24175           - Added more granular debug options
24176           - Added method to print both window text and id
24177           - Switched debug output to use new Window() debug method
24178           - Added IsEnabled() driver method
24179           - Added EnableWindow() driver method
24180         * Form.cs:
24181           - Removed end_modal; no longer needed, new loop handles termination
24182             via 'closing' variable
24183           - If form is modal, setting DialogResult will now initiate loop
24184             termination via 'closing' variable
24185           - Added support for is_enabled/WS_DISABLED to CreateParams
24186           - Close() now just send the WM_CLOSE message; the WM_CLOSE handler
24187             does all the work
24188           - Removed code that's now in RunLoop from ShowDialog()
24189           - Added various documented sanity checks to ShowDialog()
24190           - Added handling of WM_DESTROY message; we set 'closing' on getting
24191             the message to indicate the message pump to terminate
24192           - Added handling of new internal WM_CLOSE_INTERNAL message - it's
24193             send by the Application.ExitThread method. (We send the message
24194             to destroy the window after all other events have been
24195             processed through the queue, instead of destroying the handle 
24196             directly)
24197           - Moved code from Close() method to WM_CLOSE handler; added logic
24198             to only send close-related events if the form is not displayed
24199             modal
24200         * Splitter.cs (..ctor): Fixed typo in resource name
24201         * Control.cs:
24202           - DrawBackgroundImage: Explicitly selecting the wrap mode for the
24203             brush now
24204           - set_Cursor: Now only setting calling into XplatUI if the handle for
24205             the control is already created; this avoids implict handle creation
24206             or crashes if it's not created
24207           - set_Enabled: Now setting the enabled state via the new driver method
24208             instead of just tracking it
24209           - CreateParams: Added logic to set WS_DISABLED based on enabled state
24210           - CreateControl: Reordered event firing and method calls to more
24211             closely fire events in the order MS does. Now setting the
24212             enabled state in the driver when creating the control.
24213           - SetVisibleCore: Moved when the OnVisibleChanged event is fired to
24214             match MS order
24215         * FolderBrowserDialog.cs, MessageBox.cs, ButtonBase.cs, TrackBar.cs,
24216           MonthCalendar.cs: get_CreateParams: Added setting of WS_DISABLED 
24217         * XplatUIStructs.cs: Added internal WM_CLOSE_INTERNAL mesage id
24218         * Hwnd.cs:
24219           - Added tracking of window enabled state (get_Enabled/set_Enabled)
24220           - Added EnabledHwnd property to easily allow a driver to find the
24221             handle of the first enabled window in the parent chain (this is
24222             used by drivers to pass up input events of disabled windows)
24223         * XplatUIDriver.cs: Added IsEnabled() method
24224         * Application.cs:
24225           - Removed crude and obsolete exiting tracking variable
24226           - Removed internal ModalRun(); replaced by RunLoop()
24227           - Implemented private CloseForms() method to allow closing all 
24228             windows owned by a particular (or all) threads
24229           - Exit() now properly closes all windows without forcing the message
24230             pump to quit
24231           - Removed obsolete InternalExit() method
24232           - Changed Run() methods to use new RunLoop() message pump
24233           - Implemented new RunLoop() method for both modal and non-modal forms
24234         * CommonDialog.cs:
24235           - get_CreateParams: Added setting of WS_DISABLED
24236           - Simplified ShowDialog(); now all the work is done in RunLoop(),
24237             invoked via Form.ShowDialog()
24238         * NativeWindow.cs: We don't remove the window from the collection when
24239           the handle is destroyed; there might still be messages for it in the
24240           queue (mainly the resulting WM_DESTROY); instead it will be removed
24241           when Control calls InvalidateHandle in the WM_DESTROY handler
24242         * XplatUIX11.cs:
24243           - CreateWindow: Added logic to handle the WS_DISABLED window style
24244           - EnableWindow: Implemented based on Hwnd.Enabled
24245           - GetMessage: Reset PostQuitState so the method can be called again
24246           - Implemented support for disabled windows (passing messages to the
24247             first enabled parent) in handling all input messages
24248           - Added optimizations for handling Expose events
24249           - Implemeted new driver method IsEnabled()
24250           - Now always resetting paint pending tracking vars when we start paint
24251           - Re-implemented UpdateWindow via just sending a WM_PAINT message
24252         * XplatUIOSX.cs: Added IsEnabled method stub
24253         * XplatUIWin32.cs: Implemented new IsEnabled() method
24254
24255 2006-01-11  Jackson Harper  <jackson@ximian.com>
24256
24257         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
24258         LinkLabel.cs, PropertyGrid.cs: Unbreak 1.1 build. Consolidate the
24259         variables a little.
24260         * ColorDialog.cs: Clear out the old form before adding the new
24261         panel.  
24262
24263 2006-01-11  Jackson Harper  <jackson@ximian.com>
24264
24265         * X11Dnd.cs: Make sure to add all the text formats when adding
24266         strings to the data object.
24267         * TreeNodeCollection.cs: When adding to a sorted tree we need to
24268         do some redrawing too.  Also change the UpdateNode to an
24269         UpdateBelow so the newly added node gets painted.
24270         
24271 2006-01-11  Miguel de Icaza  <miguel@novell.com>
24272
24273         * ButtonBase.cs, CheckedListBox.cs, GroupBox.cs, Label.cs,
24274         LinkLabel.cs, PropertyGrid.cs: Implement the
24275         UseCompatibleTextRendering property for 2.x
24276
24277         * Application.cs (SetCompatibleTextRenderingDefault): Add. 
24278
24279 2006-01-11  Jackson Harper  <jackson@ximian.com>
24280
24281         * TreeView.cs: Use the property for setting the selected node so
24282         the correct events get raised.
24283         * TreeNode.cs: Update the tree when the fore/back colours of a
24284         node are set.
24285
24286 2006-01-10  Jackson Harper  <jackson@ximian.com>
24287
24288         * TreeView.cs: Allow setting SelectedNode to null.
24289
24290 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
24291
24292         * Form.cs: Fix support for Form TransparencyKey and Opacity on Windows.
24293
24294 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
24295
24296         * PrintControllerWithStatusDialog.cs: Update page number in dialog.
24297
24298 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
24299
24300         * PrintDialog.cs: Added attributes and set default property values.
24301
24302 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
24303
24304         * PrintControllerWithStatusDialog.cs: 
24305         Added PrintControllerWithStatusDialog.
24306
24307 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
24308
24309         * XplatUI.cs, Form.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs, 
24310         XplatUIWin32.cs: Added support for Form TransparencyKey and Opacity on Windows.
24311
24312 2006-01-9  Jonathan Chambers  <jonathan.chambers@ansys.com>
24313
24314         * ComboBox.cs: Fix crash when there is no selected item (due to last commit)
24315
24316 2006-01-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
24317
24318         * ComboBox.cs: Added KeyDown event handler for processing arrow keys
24319         and PgUp/PgDown. Also, scroll to selected item upon dropdown. Bugs 76857 and 76788.
24320
24321 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
24322
24323         * MimeIcon.cs: Added internal class SVGUtil.
24324
24325 2006-01-08  Alexander Olk  <alex.olk@googlemail.com>
24326
24327         * FileDialog.cs: Don't crash if there are two files with the
24328           same name but different locations.
24329
24330 2006-01-08  John BouAntoun  <jba-mono@optusnet.com.au>
24331
24332         * MonthCalendar.cs: Fixed annoying rendering bug when selecting
24333         dates across multiple month grids. Used to not highlight entire 
24334         month, but does now.
24335         
24336 2006-01-06  Jackson Harper  <jackson@ximian.com>
24337
24338         * MonthCalendar.cs: Removed DoEvents call to prevent a running
24339         message loop. Change timer intervals to numbers that seem more
24340         natural.
24341
24342 2006-01-06  John BouAntoun  <jba-mono@optusnet.com.au>
24343
24344         * DateTimePicker.cs: Modified CalculateDropDownLocation to use the screen
24345           object for location info since screen object is now implemented.
24346
24347 2006-01-05  Jackson Harper  <jackson@ximian.com>
24348
24349         * AsyncMethodData.cs: Check if the call is complete before doing a WaitOne
24350         * AsyncMethodResult.cs: We no longer use a WeakReference for the
24351         AsyncMethodResult, this is because we ALWAYS want the
24352         ManualResetEvent to get set.
24353         * Control.cs: When disposing use an async invoke to call shutdown
24354         code, so that thigns don't block on the finalizer thread.  Also
24355         check if we even have a message loop before trying to send
24356         messages, if we don't then don't bother sending messages.
24357         - No more weak references for async methods
24358         * XplatUIDriver.cs: No more weak references for async methods.
24359
24360 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
24361
24362         * FontDialog.cs: Fix, don't throw an exception if FontFamily.Families
24363           returns two FontFamily with the same name
24364
24365 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
24366
24367         * ThemeWin32Classic.cs, ThemeClearlooks.cs: Dropped stupid scheme of 
24368           drawing disabled text. Instead using the ColorGrayText color
24369
24370 2006-01-04  Jackson Harper  <jackson@ximian.com>
24371
24372         * TreeNode.cs: redraw the node when its image index is changed.
24373
24374 2006-01-04  Peter Dennis Bartok  <pbartok@novell.com>
24375
24376         * RichTextBox.cs: Same fix as last, just for SelectionColor. This
24377           time I checked there are no others like it.
24378
24379 2006-01-04  Jackson Harper  <jackson@ximian.com>
24380
24381         * AsyncMethodResult.cs: Use a ManualResetEvent instead of a mutex,
24382         this gives the behavoir I was looking for.
24383         * Control.cs: Special case Invoking EventHandlers, this matches MS
24384         and fixes part of bug #76326.
24385
24386 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
24387
24388         * ThemeClearlooks.cs, FileDialog.cs:
24389           - Reflect the latest Theme class changes
24390           - Remove Mono.Unix.Syscall.time in FileDialg and replace it 
24391             with DateTime
24392             
24393 2006-01-04  Alexander Olk  <alex.olk@googlemail.com>
24394
24395         * Theme.cs: Cache UI resource images and resize them if needed
24396
24397 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
24398
24399         * RichTextBox.cs: FormatText is 1-based, make it so when SelectionFont
24400           is called. This fixes the crash in Nexxia when setting the font
24401           attributes in the chat. [However, RTF needs a look-over to make sure
24402           that all SelectionXXX methods handle the special case that selection
24403           is empty and therefore the change must be applied to all text starting
24404           at the cursor/selection start]
24405
24406 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com> 
24407
24408         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
24409           XplatUIOSX.cs: Added SendMessage and PostMessage methods
24410         * X11Keyboard.cs: Switched to new way of calling PostMessage
24411
24412 2006-01-03  Peter Dennis Bartok  <pbartok@novell.com>
24413
24414         * Theme.cs: Added theme interface for images to allow the theme to
24415           control what images are used for things like FileDialog, MessageBox
24416           icons, etc.
24417         * MessageBox.cs: Now uses the new Theme icon/image interfaces
24418
24419 2006-01-03  Alexander Olk  <alex.olk@googlemail.com>
24420
24421         * FileDialog.cs:
24422           - Removed some dead code
24423           - Opening a recently used file does work now
24424           - Small UI enhancements
24425           - Refactoring
24426
24427 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
24428
24429         * FileDialog.cs: Forgot too add __MonoCS__
24430
24431 2006-01-02  Alexander Olk  <alex.olk@googlemail.com>
24432
24433         * FileDialog.cs: We are able to read recently used files now let's
24434           go on and write them.
24435
24436 2006-01-01  Alexander Olk  <alex.olk@googlemail.com>
24437
24438         * FileDialog.cs: Breathe some life into "last open"/"recently used"
24439           button
24440         * MimeIcon.cs: Do a check for the top level media type also
24441
24442 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
24443
24444         * ThemeClearlooks.cs:
24445           - Added CPDrawStringDisabled
24446           - ButtonBase_DrawText: Workaround for a DrawString bug; cut off
24447             some chars if the text doesn't fit into text_rect
24448           - DrawListViewItem: If View = View.LargeIcon center the image;
24449             rewrote the drawing of ListViewItem.Text if View = 
24450             View.LargeIcon
24451
24452 2005-12-31  Alexander Olk  <alex.olk@googlemail.com>
24453
24454         * MimeIcon.cs: Use default KDE icon theme if there is no
24455           "48x48" directory for the current icon theme, fixes #77114
24456         * Mime.cs: Disable not working and actually not used code. 
24457         * ThemeWin32Classic.cs:
24458           - Replace "new SolidBrush" in GetControlBackBrush and
24459             GetControlForeBrush with ResPool.GetSolidBrush
24460           - Changed DrawListViewItem from private to protected virtual
24461         * FileDialog.cs:
24462           - Added form.MaximizeBox = true
24463           - Don't throw an exception if there is a broken symbolic link
24464
24465 2005-12-23  Jackson Harper  <jackson@ximian.com>
24466
24467         * TabControl.cs: Give the panels focus, keyboard navigation is
24468         fixed so this works correctly now.
24469         - We need these key events also.
24470         * ToolBar.cs: Remove some of the poor mans double buffering.
24471         
24472 2005-12-24  Alexander Olk  <alex.olk@googlemail.com>
24473
24474         * ComboBox.cs: The internal TextBox now returns the focus.
24475
24476 2005-12-23  Jackson Harper  <jackson@ximian.com>
24477
24478         * ThemeWin32Classic.cs:  Draw the text for all tab appearances.
24479
24480 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
24481
24482         * Control.cs: Removed debug code
24483         * XplatUIX11.cs: Changed DestroyChildWindows to also consider
24484           implicit children
24485
24486 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com> 
24487
24488         * Control.cs: When creating the control, update the Z-order after
24489           all it's children are created, too. (Fixes nexxia not showing
24490           picturebox bug)
24491
24492 2005-12-23  Peter Dennis Bartok  <pbartok@novell.com>
24493
24494         * Control.cs: Do not update the anchoring distances if layout is
24495           suspended, instead do it once layout is resumed
24496
24497 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com> 
24498
24499         * Control.cs: 
24500           - After many hours of debugging, for both Jackson and
24501             myself, it turns out that it helps to set the parent of a control
24502             if you want to actually see it onscreen. In the spirit of that
24503             discovery, we're now setting the parent of the control and
24504             it's children when the control's handle is created. This fix
24505             will make Lutz Roeder's Reflector run happily. 
24506           - now just creating the handle instead of the whole control when
24507             getting a graphics context for the control.
24508
24509 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
24510
24511         * ScrollableControl.cs: When calculating the canvas, don't consider
24512           the scrollbar widths. Instead, predict if horizontal scrollbar
24513           will affect canvas when deciding on vertical display and vice versa.
24514
24515 2005-12-22  Peter Dennis Bartok  <pbartok@novell.com>
24516
24517         * RichTextBox.cs: Set default RTF font for documents that don't
24518           have a font table (Fixes #77076)
24519
24520 2005-12-22  Jackson Harper  <jackson@ximian.com>
24521
24522         * TextBoxBase.cs: It's difficult to do, but you can have an empty
24523         clipboard. This prevents a NullRef in that case.
24524         * XplatUIX11.cs: Use CLIPBOARD not PRIMARY for our
24525         clipboard. PRIMARY is for the currently selected text only. (We
24526         should implement PRIMARY at some point.
24527
24528 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
24529
24530         * XplatUIWin32.cs: Fixed the TEXTMETRIC structure, we were calling
24531           a Unicode function with a structure that was defined in Ansi way.
24532           This fixes #76942.
24533
24534 2005-12-21  Jackson Harper  <jackson@ximian.com>
24535
24536         * StatusBar.cs: Statusbar handles its fore/back colours on it's
24537         on. Because thats how it rolls. (and this avoids it using ambient
24538         colours).
24539         * ThemeWin32Classic.cs: Use the proper back color for filling.
24540         * Menu.cs: Use the system menu bar color for drawing menu
24541         bars. Using the window back color will bring ambient colours into
24542         the picture.
24543
24544 2005-12-21  Alexander Olk  <alex.olk@googlemail.com>
24545
24546         * ColorDialog.cs: Fixed a memory leak that caused a SIGSEV. A lot of
24547           Bitmaps were created and not disposed.
24548
24549 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
24550
24551         * Control.cs (CreateControl): Don't do anything if the control is
24552           already created, otherwise we'd fire the OnCreated event more than
24553           once
24554
24555 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
24556
24557         * ComboBox.cs (FindStringCaseInsensitive): Don't search for emtpy strings,
24558           will always match. Instead return -1. Fixes #76464.
24559
24560 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com>
24561
24562         * TextControl.cs (RecalculateLine): Only wrap if the wrap point is
24563           neither the beginning nor the end of the line (Fixes bug #76479)
24564
24565 2005-12-21  Peter Dennis Bartok  <pbartok@novell.com> 
24566
24567         * Control.cs:
24568           - ControlNativeWindow.ControlFromHandle(): Now handling situation
24569             where handle is invalid
24570           - FromHandle(): Now using hashtable-based ControlFromHandle() lookup
24571             instead of slower linear search
24572         * NativeWindow.cs: Don't remove the window from the hashtable until
24573           after the driver has destroyed it (since the driver might use
24574           Control.FromHandle to lookup the control object
24575         * Hwnd.cs: Added DestroyPending property to track if a window is 
24576           already destroyed as far as the driver is concerned and only hasn't
24577           yet notified the control
24578         * XplatUIX11.cs:
24579           - Activate(): Check if the window is still valid before using the 
24580             handle
24581           - Implemented DestroyChildWindow() method to mark child windows as
24582             destroyed when a window is destroyed. This prevents situations 
24583             where we might call an X method based on queued events for a
24584             window that already has been destroyed but we haven't yet pulled
24585             the destroy method from the queue.
24586           - Added a call to the new DestroyChildWindow() method to the drivers
24587             DestroyWindow code. Also now marking the destroyed window itself
24588             as pending
24589
24590 2005-12-20  Jackson Harper  <jackson@ximian.com>
24591
24592         * StatusBar.cs:
24593         * StatusBarPanel.cs: Don't calculate panel sizes on draw
24594         anymore. Just do them when needed, also track the rects of panels
24595         so that we can optimize refreshing more in the future.
24596
24597 2005-12-20  Alexander Olk  <alex.olk@googlemail.com>
24598
24599         * ColorDialog.cs: Fixed focus drawing in small color controls
24600
24601 2005-12-19  Jackson Harper  <jackson@ximian.com>
24602
24603         * InternalWindowManager.cs:
24604         * MdiWindowManager.cs: Cleanup some coordinate system changes so
24605         moving windows works properly.
24606
24607 2005-12-19  Peter Dennis Bartok  <pbartok@novell.com> 
24608
24609         * Control.cs: 
24610           - Removed call to InitLayout() from SetBoundsCore(); doc says
24611             it's only called when a control is added to a container
24612           - Split InitLayout logic, moved to separate UpdateDistances() method
24613             since we need to perform those calculations more often than just
24614             when adding the control to a container. (Needed to fix #77022)
24615           - Now calling UpdateDistances() from UpdateBounds() (fixes #77022)
24616           - Reduced the OnBindingContextChanged events count, don't send them
24617             unless the control is created, we still aren't totally matching
24618             MS, but I can't quite figure out some of their rules
24619
24620 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
24621
24622         * ThemeClearlooks.cs: Corrected distance between ProgressBar
24623           stripes
24624
24625 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
24626
24627         * ThemeClearlooks.cs:
24628           - Updated ProgressBar drawing
24629           - Corrected drawing of ScrollBars and scroll buttons
24630           - Some temporary fixes for minor pixel artefacts
24631
24632 2005-12-18  Peter Dennis Bartok  <pbartok@novell.com> 
24633
24634         * Control.cs:
24635           - Reworked Controls.Add(), Controls.Remove() and set_Parent() to
24636             cause events to be sent in the same order as MS does.
24637           - Added ChangeParent() method to trigger various OnXXXChanged events
24638             that need to be fired when a parent changes (This is a reworking
24639             of the patch from r54254, with the X11 errors fixed)
24640           - Removed SuspendLayout()/ResumeLayout() calls from Controls.Clear()
24641             since on MS we get OnLayoutChanged events when calling Clear()
24642           - Changed Enabled property to consider parent state as well, if a
24643             parent is not enabled, the control will not be either
24644           - Changed Parent property to simply call Controls.Add() since that
24645             now does all the work required, this way we avoid code duplication
24646           - Threw in a few OnBindingsContextChanged calls to try and match
24647             when MS sends them. We seem to send a few too many, though.
24648           - Added call to CreateControl when adding the control to a parent.
24649             We were never calling CreateControl. Still needs some work, in
24650             some places we treat HandleCreated and ControlCreated as equal, 
24651             which is wrong
24652           - Removed obsolete commented out code from UpdateZOrder()
24653
24654 2005-12-18  Alexander Olk  <alex.olk@googlemail.com>
24655
24656         * ThemeClearlooks.cs: Updated TrackBar drawing.
24657
24658 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
24659
24660         * FileDialog.cs: Patch for #76901 by Atsushi Enomoto
24661
24662 2005-12-17  Alexander Olk  <alex.olk@googlemail.com>
24663
24664         * FileDialog.cs: Add the Help button and the open readonly
24665           checkbox only if needed
24666
24667 2005-12-16  Jackson Harper  <jackson@ximian.com>
24668
24669         * Control.cs: Make sure we have an active menu before trying to
24670         process commands on it. Prevents menu-less forms from crashing
24671         when Alt is pressed.
24672         * TreeNodeCollection.cs: Some fixes to prevent null refs. Patch by
24673         Dieter Bremes.
24674         * RichTextBox.cs: Expand statement to help out gmcs and fix the
24675         2.0 build.
24676
24677 2005-12-16  Jackson Harper  <jackson@ximian.com>
24678
24679         * InternalWindowManager.cs: Don't translate tool windows screen
24680         coordinates. This fixes windows 'bouncing' around when being moved.
24681
24682 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
24683
24684         * TextBoxBase.cs:
24685           - MaxLength now treats 2^31-1 equal to unlimited length (this is
24686             not quite MS compatible, MS uses that number only for single line
24687             and 2^32-1 for multi-line, but I figure it won't hurt keeping
24688             the limit at 2GB)
24689           - Now enforcing the MaxLength limit when entering characters
24690           - Added argument to internal Paste() method to track if it's called
24691             from programatically or via keyboard, since keyboard driven pastes
24692             need to enforce max-length
24693           - Added logic to Paste to only paste as many chars as MaxLength 
24694             allows
24695         * RichTextBox.cs: Updated to use new obey argument for internal Paste()
24696         * TextControl.cs:
24697           - Added Length property to return number of characters in document
24698           - Added private CharCount property which only tracks actual chars
24699             in the document (no linefeeds) and fires event when CharCount
24700             changes
24701           - Added tracking of character count to all methods that alter it
24702           - Added LengthChanged event to allow applications to subscribe
24703             to any changes to the document
24704
24705 2005-12-15  Peter Dennis Bartok  <pbartok@novell.com> 
24706
24707         * TextBox.cs: 
24708           - Removed local password_char field (moved to TextBoxBase)
24709           - Now setting the document's password var when password is
24710             set
24711         * TextBoxBase.cs:
24712           - Added password_char field (needed here so MultiLine can
24713             access it)
24714           - Added logic to MultiLine property setter to set the document's
24715             variable when password display is allowed
24716           - Removed debug code and made some debug code conditional
24717         * TextControl.cs:
24718           - Added RecalculatePasswordLine() method to handle special password
24719             char only lines
24720           - Added PasswordChar property, also added related tracking vars
24721           - Draw() method now uses local text var for grabbing text to draw,
24722             this var is set to line.text unless we're doing password display,
24723             then it is set to the pre-generated all-password-chars line
24724           - Added calling RecalculatePasswordLine() method for password lines
24725
24726 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
24727
24728         * Hwnd.cs: 
24729           - Added Reparented property to allow tracking of Window Manager
24730             reparenting actions (which affect X/Y calculations of toplevel 
24731             windows)
24732           - Made ToString() print window handles in hex
24733         * XplatUIX11.cs:
24734           - AddConfigureNotify(): Now uses reparented state off Hwnd to
24735             determine if X/Y needs offsetting
24736           - AddConfigureNotify(): Fixed offset calculations
24737           - Now adds ReparentNotify messages into the queue
24738           - Now processes ReparentNotify messages and causes a 
24739             WM_WINDOWPOSCHANGED message to be sent upstream if a window
24740             is reparented (as most likely it's X/Y coordinates are changed
24741             due to that)
24742
24743 2005-12-14  Jackson Harper  <jackson@ximian.com>
24744
24745         * XplatUIX11.cs: Tool windows still need to respek focus.
24746
24747 2005-12-14  Peter Dennis Bartok  <pbartok@novell.com> 
24748
24749         * Control.cs: Undid 54254 (causing XConfigure errors) so we can
24750           have a working release
24751
24752 2005-12-13  Jackson Harper  <jackson@ximian.com>
24753
24754         * Form.cs: Update styles after setting the border style regardless
24755         of whether or not the window is using a window manager.
24756
24757 2005-12-13  Jackson Harper  <jackson@ximian.com>
24758
24759         * Form.cs: We now hook into an internal window manager instead of just an
24760         MDI subsystem, this is so we can have properly behaving tool windows.
24761         * MdiClient.cs: Naming change, MdiChildContext is now WindowManager
24762         * InternalWindowManager.cs: New internal class that acts as a
24763         window manager for tool windows and as a base for mdi windows.
24764         * MdiWindowManager.cs: New class that acts as a window manager for
24765         mdi windows.
24766
24767 2005-12-12  Jackson Harper  <jackson@ximian.com>
24768
24769         * Control.cs: Updates so we match behavoir for for implicit
24770         controls. Fixes explosions in MDI.
24771
24772 2005-12-12  Jackson Harper  <jackson@ximian.com>
24773
24774         * Control.cs: Implement Invalidate (Region).
24775
24776 2005-12-12  Peter Dennis Bartok  <pbartok@novell.com> 
24777
24778         * Control.cs: 
24779           - Changed handling of Controls.Add/Controls.Remove to fire (almost) 
24780             the same events as MS does. MS fires events for each property 
24781             except, for unknown reasons, Cursor, when the control is reparented. 
24782             I can't seem to totally match add/remove since MS also fires some 
24783             VisibleChanged events, which makes no sense. Consolidated the
24784             parenting code into a separate method so it can be called from
24785             both Add and Remove. set_Parent no longer needs any special logic
24786             as it calls the parent's add method which implicitly fires
24787             all events
24788           - Removed some obsolete code and debug output
24789           - Enabled state is inherited from parents, if this is enabled
24790
24791 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com> 
24792
24793         * Form.cs: Removed commented out code
24794
24795 2005-12-08  Peter Dennis Bartok  <pbartok@novell.com>
24796
24797         * Control.cs:
24798           - Added internal version of Invoke, with additional argument 
24799             indicating if we're calling it from a Dispose() handler. That
24800             way we can avoid BeginInvoke throwing an exception if we're
24801             calling for an already destroyed window.
24802           - Added a dispose argument to BeginInvokeInternal, and made the
24803             check if a valid window handle chain exists conditional on
24804             it not being a dispose call
24805           - Removed code in DestroyHandle to destroy our children. Since we
24806             now handle the WM_DESTROY message we will catch all our children
24807             being destroyed.
24808           - Now calling OnHandleDestroyed from our new WM_DESTROY handler
24809         * Form.cs:
24810           - Added a field to track the application context of the form.
24811           - No need to set closing variable as response to WM_CLOSE, instead
24812             we destroy the window. We also call PostQuitMessage if the form
24813             has an application context (which makes it the main app form,
24814             which, when closed terminates the app)
24815         * XplatUI.cs:
24816           - Dropped Exit() method, it's naming was confusing
24817           - Added PostQuitMessage() which causes GetMessage to return false
24818             once the message queue is empty
24819         * XplatUIDriver.cs, XplatUIWin32.cs: Dropped Exit(), added 
24820           PostQuitMessage()
24821         * XplatUIOSX.cs: Switched signature for Exit method since Exit() is
24822           no longer a valid XplatUI method, but left it in since it's used
24823           internally. Added empty PostQuitMessage() method.
24824         * MenuAPI.cs: Replaced call to Exit() with call to
24825           PostQuitMessage, even though this is probably no longer needed.
24826         * Hwnd.cs: Added 'pretty' ToString() to support debugging.
24827         * X11Structs.cs: Added pretty XEvent.ToString() to support debugging.
24828         * Application.cs:
24829           - Replaced call to XplatUI.Exit() with PostQuitMessage()
24830           - Removed old debug code that would call XplatUI for exception
24831             display, enabled standard exception handling (Still not enabled
24832             though, until NativeWindow's ExternalExceptionHandler define
24833             is removed
24834         * NativeWindow.cs:
24835           - Added internal method to allow control to update NativeWindow
24836             after a window has been destroyed
24837           - Added handling of already destroyed windows when calling i
24838             DestroyWindow
24839           - Added removal of handle from list on ReleaseHandle
24840         * XplatUIX11.cs:
24841           - Dropped GetMessageResult var and related code
24842           - Added PostQuitState to field to track if PostQuitMessage has been
24843             called
24844           - Dropped Exit() method
24845           - Added PostQuitMessage() method
24846           - GetMessage now will return false if PostQuitState is set and no
24847             more messages are in the queue.
24848           - Expose handler will no longer generate WM_PAINT messages if we are
24849             in PostQuitState since it's very likely any windows have already
24850             been destroyed, and since Hwnd won't get updated until we have
24851             processed the DestroyNotify we'd be causing X errors.
24852         
24853 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
24854
24855         * Control.cs(WndProc): Apparently I'm suffering from brain cloud.
24856           Thanks to Mike for pointing out the err of my ways.
24857
24858 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
24859
24860         * Control.cs(PreProcessMessage): Moved menu handling back, but
24861           after all other key handling, to match MS (who handles Menu in
24862           DefWndProc)
24863         * Menu.cs (WndProc): Removed my brainfart
24864
24865 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
24866
24867         * Control.cs(PreProcessMessage): Removed special menu handling 
24868         * Menu.cs (WndProc): Added handling of WM_SYSKEYUP for menu purposes.
24869
24870 2005-12-07  Mike Kestner  <mkestner@novell.com>
24871
24872         * Control.cs : special case SYSKEYUP so that we can adjust keynav
24873         state according in tracker.
24874         * Menu.cs : promote tracker field to base class and provide a tracker
24875         lookup capability.  Add/Remove shortcuts dynamically if the top menu
24876         has a tracker. Unparent items that are removed from the collection.
24877         * MenuAPI.cs : implement mnemonic, shortcut, and arrow-based keynav.
24878         * Theme*.cs: add always_show_hotkeys field to support configurability
24879         of mnemonic display.  win32 doesn't show mnemonics until Alt is
24880         pressed.
24881
24882 2005-12-07  Jackson Harper  <jackson@ximian.com>
24883
24884         * MdiChildContext.cs: Use Control.ResetCursor.
24885         * Control.cs: ResetCursor needs to set the property so that the
24886         correct XplatUI call gets made.
24887
24888 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
24889
24890         * Control.cs: More fixes to make our key events match MS. We
24891           were not setting the modifier state on KeyData, and we were
24892           not generating any events when Alt was pressed with a key
24893           since handling of WM_SYSxxx was missing for the OnKey methods.
24894
24895 2005-12-07  Jackson Harper  <jackson@ximian.com>
24896
24897         * MdiChildContext.cs: reenable the sizing code.
24898         - When the mouse leaves a window reset its cursor.
24899
24900 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
24901
24902         * ThemeClearlooks.cs: Reflect latest Hwnd changes
24903
24904 2005-12-07  Peter Dennis Bartok  <pbartok@novell.com>
24905
24906         * Hwnd.cs: Now using the theme 3d bordersize to calculate
24907           widths of Fixed3D borders
24908
24909 2005-12-07  Jackson Harper  <jackson@ximian.com>
24910
24911         * MdiClient.cs: Fix warnings. Earn Mike's love.
24912
24913 2005-12-07  Alexander Olk  <alex.olk@googlemail.com>
24914
24915         * ThemeClearlooks.cs:
24916           - Adjusted mouse over button color
24917           - Added first parts of CheckBox drawing
24918           - Added correct color for selected text background
24919           - Fixed ComboBox drawing
24920           - Added CPDrawBorder3D and CPDrawBorder
24921
24922 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
24923
24924         * XplatUIX11.cs: Added call to XBell for AudibleAlert
24925
24926 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com> 
24927
24928         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIWin32.cs,
24929           XplatUIOSX.cs: Added AudibleAlert() method to have a means to
24930           alert users via sound. We could add an enum arg with different
24931           types of alerts in the future
24932
24933 2005-12-06  Peter Dennis Bartok  <pbartok@novell.com>
24934
24935         * Control.cs: Fix behaviour problems pointed out by Mike
24936
24937 2005-12-05  Mike Kestner  <mkestner@novell.com>
24938
24939         * StatusBarPanel.cs: add Invalidate method and hook it into all the
24940         prop setters.  Calls parent.Refresh for now, but could be maybe be
24941         optimized with an internal method on StatusBar at some point.
24942         [Fixes #76513]
24943
24944 2005-12-05  Peter Dennis Bartok  <pbartok@novell.com> 
24945
24946         * RichTextBox.cs: Implemented get_SelectionColor
24947
24948 2005-12-05  Alexander Olk  <alex.olk@googlemail.com>
24949
24950         * ThemeClearlooks.cs:
24951           - Removed dead code
24952           - Draw black button border only if button is Form.AcceptButton
24953           - Draw correct button color for pressed RadioButton if the mouse 
24954             has entered the button
24955           - Updated ProgressBar drawing!
24956           - Updated CPDrawSizeGrip drawing
24957           - Updated StatusBarPanel drawing
24958
24959 2005-12-05  Mike Kestner  <mkestner@novell.com>
24960
24961         * Control.cs (PreProcessMessage): add Keys.Alt based on LParam value.
24962         * X11Keyboard.cs (SendKeyboardInput): formal lParam for alt mod.
24963
24964 2005-12-04  Alexander Olk  <alex.olk@googlemail.com>
24965
24966         * ThemeClearlooks.cs: Initial check-in, activate with
24967           export MONO_THEME=clearlooks
24968         * ThemeEngine.cs: Added ThemeClearlooks
24969
24970 2005-12-03  Mike Kestner  <mkestner@novell.com>
24971
24972         * MenuAPI.cs: deactivate menus prior to calling item.PerformClick.
24973         [Fixes #76897]
24974
24975 2005-12-02  Jackson Harper  <jackson@ximian.com>
24976
24977         * Form.cs: If the child form has no menu the default main menu is
24978         used as the active menu.
24979
24980 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com> 
24981
24982         * ListBox.cs: Check if any items exist before trying to resolve 
24983           coordinates into items
24984
24985 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
24986
24987         * ThemeWin32Classic.cs: Hatchbrush on Win32 seems to always use white
24988           as the second color for the background hatch
24989
24990 2005-12-02  Peter Dennis Bartok  <pbartok@novell.com>
24991
24992         * TextBoxBase.cs: Now uses Jackson's new and improved ImplicitScrollbar
24993         * RichTextBox.cs: FormatText position arguments are 1-based, now making
24994           sure that what we pass to FormatText is always 1-based. Fixes #76885
24995
24996 2005-11-29  Miguel de Icaza  <miguel@novell.com>
24997
24998         * NumericUpDown.cs (EndInit): When we are done initializing,
24999         reflect any updates on the UI.
25000
25001 2005-12-02  Jackson Harper  <jackson@ximian.com>
25002
25003         * ImplicitHScrollBar.cs:
25004         * ImplicitVScrollBar.cs: New scrollbars that don't take focus from
25005         their container controls.
25006         * TreeView.cs: Use the new implicit scrollbars.
25007
25008 2005-12-02  Jackson Harper  <jackson@ximian.com>
25009
25010         * TreeView.cs: Make top_node internal so the TreeNodeCollections
25011         can play with it.
25012         * TreeNodeCollection.cs: If we remove the topnode we need to
25013         update topnode to the next node in line.
25014         - When clearing nodes go through the same process as removing
25015         them, so they get depareneted and checked if they are top node.
25016
25017 2005-12-01  Jackson Harper  <jackson@ximian.com>
25018
25019         * TreeView.cs: When imagelists are used the image area is
25020         selectable as well as the text.
25021         - If there are no selected nodes select the first one.
25022         * TreeNodeCollection.cs: Getting the TreeView is mildly expensive,
25023         so don't do it more then we need to.
25024
25025 2005-12-01  Jackson Harper  <jackson@ximian.com>
25026
25027         * ThemeWin32Classic.cs: Reimplement the scroll arrow drawing so
25028         that arrows can be scaled.
25029
25030 2005-12-01  Jackson Harper  <jackson@ximian.com>
25031
25032         * TreeNode.cs : Fixed bugs that caused FullPathTest + Traverse to
25033         fail. Patch by Dieter Bremes
25034
25035 2005-11-30  Jackson Harper  <jackson@ximian.com>
25036
25037         * Form.cs: Property is 2.0 only
25038         * PrintDialog.cs: Signature fix.
25039
25040 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
25041
25042         * TextControl.cs: 
25043           - No longer artificially moves text 2 pixels down (now that we have
25044             borders this is no longer needed)
25045           - Added calcs for left, hanging and right indent
25046
25047 2005-11-23  Mike Kestner  <mkestner@novell.com>
25048
25049         * Menu.cs: mark MenuChanged internal, since it's not exposed by MS.
25050
25051 2005-11-30  Jackson Harper  <jackson@ximian.com>
25052
25053         * MdiChildContext.cs: Set the cloned menus forms, as these don't
25054         get cloned as part of CloneMenu ().
25055         * Menu.cs: Make sure the parent of the items get set correctly
25056         when they are added.  And the owners are notified of the changes.
25057         * Form.cs: Create an ActiveMenu property, so that when MDI is used
25058         we can change the menu being displayed/handled by the form without
25059         changing the menu assosciated with the form.
25060         - Don't let Mdi children draw/handle menus.
25061         
25062 2005-11-30  Jackson Harper  <jackson@ximian.com>
25063
25064         * Menu.cs: Switch the MenuChanged method to OnMenuChanged and add
25065         a MenuChanged event. Just to make the API a little more
25066         consistent.
25067         * MainMenu.cs:
25068         * MenuItem.cs: Use the new OnMenuChanged
25069         * MdiChildContext.cs: Handle menu merging.
25070         * Form.cs: Implement MergedMenu.
25071         
25072 2005-11-30  Jackson Harper  <jackson@ximian.com>
25073
25074         * Menu.cs: We were misusing Add. Add goes behind the specified
25075         index according to the docs, and does not replace the specified
25076         index. So I added an Insert method.
25077
25078 2005-11-30  Peter Dennis Bartok  <pbartok@novell.com>
25079
25080         * TextBoxBase.cs:  Implemented Ctrl-Ins (Copy), Shift-Ins (Paste) and
25081           Shift-Del (Cut), apparently Emacs uses these old Win 2.x keys. This
25082           is for Jackson
25083         * RichTextBox.cs: Added calls to base for DnD events
25084
25085 2005-11-28  Peter Dennis Bartok  <pbartok@novell.com>
25086
25087         * TextControl.cs:
25088           - Fixed drag-selection related crash; style fixes
25089           - Implemented undo class
25090             o Implemented method to capture document state for specified
25091               range in document tree
25092             o Implemented method to restore captured document state
25093             o Implemented cursor tracking
25094             o Implemented basic undo stack
25095           - Added undo cursor tracking to methods altering cursor location
25096           - Added undo tracking to selection deletion (still missing
25097             other text-altering hookups)
25098         * RichTextBox.cs:
25099           - Added SelectionLength property
25100           - Implemented CanPaste()
25101           - Implemented Paste()
25102           - Added missing protected methods
25103           - Fixed RTF->Document conversion; now uses font index 0 and color 
25104             index 0 as the default font for the parsed text
25105           - Fixed RTF<->Document font size translation
25106           - Fixed RTF generation, now properly handles cross-tag boundaries
25107             for single line selection
25108           - No longer always appends blank line to generated RTF
25109           - Removed TODOs
25110           - Added missing attributes
25111           - Hooked up undo-related methods
25112         * TextBoxBase.cs:
25113           - Implemented Copy()
25114           - Implemented Paste()
25115           - Implemented Cut()
25116           - Fixed caret mis-behaviour on backspace across line-boundaries
25117
25118 2005-11-29  Jackson Harper  <jackson@ximian.com>
25119
25120         * MdiClient.cs: Add a method for activating mdi children. Very
25121         basic right now. I imagine someday it might need more girth.
25122         * MenuItem.cs: Implement MDI lists. When mdilist is true the mdi
25123         children windows names are added to the menu item.
25124         * ThemeWin32Classic.cs: Draw the arrow if the item is an
25125         mdilist. This happens regardless of whether or not there are any
25126         mdi windows to see in the list, and according to my tests happens
25127         before the items are even added. Also happens if there isn't even
25128         an mdi client to get windows from.
25129
25130 2005-11-29  Alexander Olk  <alex.olk@googlemail.com>
25131
25132         * ThemeWin32Classic.cs: Make DrawFlatStyleRadioButton protected
25133         * ThemeNice.cs: Fix drawing of flatstyle radiobuttons
25134
25135 2005-11-29  Jordi Mas i Hernandez <jordimash@gmail.com>
25136
25137         * DataGridTableStyle.cs:
25138           - Create always the styles for the missing columns even if they are
25139             provided by the user (not default table style)
25140         * DataGrid.cs:
25141           - Fixes bug 76770
25142           - Fixes SetDataBinding (always re-attach source)
25143           - Fixes SetNewDataSource (only clear styles if they are not for 
25144             this source)
25145          -  Expands OnTableStylesCollectionChanged to handle style refresh 
25146             and remove properly
25147
25148 2005-11-29  Jackson Harper  <jackson@ximian.com>
25149
25150         * FileDialog.cs: Implement missing bits, remove some dead
25151         code.
25152         * FontDialog.cs: Implement missing Apply stuff, and ToString. Move
25153         creation of the panel so that the options set on the dialog are
25154         seen when the panel is created.
25155         * TreeView.cs: raise a click when items are clicked.
25156         
25157 2005-11-29  Jackson Harper  <jackson@ximian.com>
25158
25159         * MdiClient.cs: Pass some signature methods through to base.
25160
25161 2005-11-28  Jackson Harper  <jackson@ximian.com>
25162
25163         * ListView.cs: Raise the click event when items are clicked.
25164
25165 2005-11-28  Jackson Harper  <jackson@ximian.com>
25166
25167         * MdiClient.cs: Make this algorithm even more beautiful.  And fix
25168         a nullref.
25169
25170 2005-11-27  Alexander Olk  <alex.olk@googlemail.com>
25171
25172         * ThemeNice.cs: - Removed 1 pixel bitmaps
25173           - Use SmoothingMode.AntiAlias where it makes sense
25174             (ScrollButton arrow for example)
25175           - Enhanced Button focus drawing
25176           - Fixed ComboBox drawing (no artefacts anymore, focus
25177             rectangle is back again, reduced size of ComboButton, etc.)
25178           - Fixed RadioButton focus drawing for Appearence.Button
25179           - Slight ScrollButton redesign
25180           - Some LinearGradientBrush size fixes
25181           - GroupBoxes have now rounded edges
25182           - Fixed StatusBar drawing
25183
25184 2005-11-25  Alexander Olk  <alex.olk@googlemail.com>
25185
25186         * ThemeNice.cs: - Remove dead code
25187           - use correct background colors for menus, etc.
25188           - Fake pixel drawing with 1 pixel bitmaps
25189
25190 2005-11-24  Jackson Harper  <jackson@ximian.com>
25191
25192         * MdiClient.cs: Size the scrollbars when resizing the window.
25193         - Resize the maximized windows when the client is resized
25194         * Form.cs: Make the child context available
25195         
25196 2005-11-23  Jackson Harper  <jackson@ximian.com>
25197
25198         * MdiChildContext.cs: Don't size windows if they are maximized.
25199
25200 2005-11-23  Mike Kestner  <mkestner@novell.com>
25201
25202         * ContextMenu.cs: use MenuTracker.
25203         * Control.cs: remove menu handle usage.
25204         * Form.cs: remove menu handle usage.
25205         * Hwnd.cs: remove menu handle usage.
25206         * MainMenu.cs: Draw method moved here from MenuAPI.DrawMenuBar. Proxy
25207         motion and clicks to the new Tracker handlers.
25208         * Menu.cs: add sizing accessors, SelectedItem prop, kill CreateItems
25209         and handle usage.
25210         * MenuAPI.cs: refactored to combine popup and menubar event handling.
25211         Killed the MENU and MENUITEM data types and associated collections
25212         since we now keep the info on Menu and MenuItem. Expanded TRACKER into
25213         MenuTracker class that exposes the leftovers from the old MenuAPI
25214         static methods. Restructured Capture handling so that only one grab is
25215         done for the entire menu hierarchy instead of handing off grabs to
25216         submenus. Tracker now has an invisible control to Capture when active.
25217         * MenuItem.cs: add sizing accessors, kill Create
25218         and handle usage.
25219         * Theme.cs: remove menu handle and MENU(ITEM) usage.
25220         * ThemeWin32Classic.cs: use Menu/MenuItem sizing props instead of
25221         MENU(ITEM). remove menu handle usage, use Menu directly.
25222         * XplatUIDriver.cs: remove menu handle usage.
25223         * XplatUIOSX.cs: remove menu handle usage.
25224         * XplatUIWin32.cs: remove menu handle usage.
25225         * XplatUIX11.cs: remove menu handle usage.
25226
25227 2005-11-22  Jackson Harper  <jackson@ximian.com>
25228
25229         * Hwnd.cs: Don't compute the menu size for
25230         DefaultClientRectangle.
25231         - Reenable menu sizes being computed for GetClienRectangle.
25232         * Form.cs: Remove comment of trechery
25233         
25234 2005-11-22  Jackson Harper  <jackson@ximian.com>
25235
25236         * Hwnd.cs: The adjustments for the menu bar are made when it is
25237         attached to the form.
25238
25239 2005-11-19  Jackson Harper  <jackson@ximian.com>
25240
25241         * XplatUIX11.cs: Create an HGRN of the invalid area for WM_NCPAINT
25242         (just like on windows).
25243
25244 2005-11-19  Jackson Harper  <jackson@ximian.com>
25245
25246         * MdiChildContext.cs: Handle all the buttons ourselves. We can't
25247         use real buttons anymore because they are in non client area. The
25248         one TODO here is that I need to somehow invalidate a section of
25249         the non client area.
25250
25251 2005-11-18  Jackson Harper  <jackson@ximian.com>
25252
25253         * Control.cs: Put the enum check back in now that MDI doesnt have
25254         to use this to set border styles.
25255         * Form.cs: Only set mdi child windows borders if the handle has
25256         been created.
25257         * MdiChildContext.cs: Don't set the InternalBorderStyle, just pass
25258         this directly on to the driver.
25259         - Get the move start position before adjusting for the titlebar
25260         height, this fixes the windows "skipping" when they are first
25261         moved.
25262
25263 2005-11-18  Jackson Harper  <jackson@ximian.com>
25264
25265         * XplatUIX11.cs: Just compute the mdi borders separately as they
25266         don't totally match up with normal form borders.
25267
25268 2005-11-18  Jackson Harper  <jackson@ximian.com>
25269
25270         * Control.cs: Set WS_ styles for borders, so that the driver does
25271         not have to retrieve the control instance to figure out what kind
25272         of borders it should have.
25273         * Form.cs: Set the WS_EX_MDICHILD flag on mdi children, so the
25274         driver can know its an mdi child easily.
25275         * XplatUIX11.cs: Get the border styles and whether the window is
25276         MDI from the Styles and ExStyles params instead of having to get a
25277         control. This prevents a chicken and egg problem.       
25278
25279 2005-11-18  Jackson Harper  <jackson@ximian.com>
25280
25281         * MdiClient.cs: Fix typo so scrollbars show up correctly.
25282
25283 2005-11-18  Jackson Harper  <jackson@ximian.com>
25284
25285         * MdiClient.cs: Calculate when to add and remove scrollbars
25286         correctly.
25287         * MdiChildContext.cs: Adjust the y position to take the titlebar
25288         into account.
25289         - No height for FormBorderStyle.None
25290
25291 2005-11-18  Jackson Harper  <jackson@ximian.com>
25292
25293         * Control.cs: Allow non enum values to be used for
25294         InternalBorderStyle.  MDI does this to set a special border style.
25295         - New utility methods for converting points to/from client coords
25296         - Add the newly created control to the Controls collection before
25297         updating its style. This way UpdateStyle can walk the control
25298         heirarchy to find the control if needed.
25299         so I don't need to create a new Point object all the time.
25300         * Form.cs: Let MDI windows handle their border styles.
25301         - Set styles on MDI windows so the correct title style is derived.
25302         * MdiChildContext.cs: Move all the painting and window handling
25303         into the non client area.
25304         - Use correct sizing and put correct buttons on frames based on
25305         the FormBorderStyle.
25306         - Notify the mdi client about scrolling
25307         - Need to handle the buttons ourselves now, because they are all
25308         in non client areas and we can't add controls there.
25309         * MdiClient.cs: Halfway to scrolling, this implementation is
25310         somewhat broken though, we need to check to make sure other
25311         windows aren't causing scrolling before removing the bars. Also
25312         the bars need to be drawn on top, maybe I can switch implicit
25313         controls to be on top.
25314         * Hwnd.cs: caption_height and tool_caption_height are now
25315         properties of an hwnd, this way they can be set by the driver
25316         based on the type of window they are.  In X11 the window manager
25317         handles the decorations so caption_height is zero unless its an
25318         MDI window.
25319         - Add 3 pixel borders for MDI windows (0xFFFF).
25320         - Get rid of some code duplication, have DefaultClientRectanle
25321         just call GetClientRectangle.
25322         * XplatUIX11.cs: Pass caption_height and tool_caption_height to
25323         Hwnd now.
25324         - Set border styles differently for mdi windows.
25325         * XplatUIOSX.cs: Pass caption_height and tool_caption_height to
25326         Hwnd now.
25327         
25328 2005-11-15  Mike Kestner  <mkestner@novell.com>
25329
25330         * Menu.cs: when adding an item to the collection, if item is already 
25331         parented, remove it from the parent.
25332
25333 2005-11-13  Alexander Olk  <alex.olk@googlemail.com>
25334
25335         * X11DesktopColors.cs: Added KDE support
25336
25337 2005-11-11  Peter Dennis Bartok  <pbartok@novell.com>
25338
25339         * XplatUIWin32.cs: 
25340           - Clipboard methods now can translate Rtf format
25341           - No longer removes clipboard contents whenever a new format is added
25342             to allow placing multiple formats on the clipboard
25343         * Clipboard.cs: Clipboard now supports getting a IDataObject and
25344           will place all formats contained in it onto the clipboard. Also
25345           now cleans the clipboard before placing a new object onto it
25346         * RichTextBox.cs:
25347           - Implemented set_Rtf
25348           - Implemented set_SelectedRtf
25349           - Created InsertRTFFromStream() method to allow single code base
25350             for all properties and methods that insert RTF into document
25351           - Removed debug output
25352         * TextControl.cs:
25353           - Fixed Delete(int) to fix up line numbers
25354           - Fixed ReplaceSelection to combine start and end line
25355           - Fixed serious DeleteChars bug that would leave the document tree
25356             broken
25357           - Improved DumpTree with several logic checks to detect broken
25358             document trees
25359           - Removed debug lines
25360           - Fixed Caret.WordForward/WordBack moving code, now always also 
25361             updates caret.tag (fixes crash when word-selecting across tag
25362             boundaries via keyboard)
25363           - Added Insert() method for inserting multiline text into documents
25364           - Fixed DeleteChars() calculation errors that would cause a broken
25365             tag chain with multiple tag lines
25366           - DeleteChars() no longer crashes on multi-tag lines if not all tags
25367           - Split() no longer moves caret if split is at caret location
25368           - ReplaceSelection() now updates the cursor and re-displays it
25369           - ReplaceSelection() now uses new Insert() method to avoid code
25370             duplication
25371           - FormatText() can now handle formatting partial lines
25372         * TextBoxBase.cs:
25373           - Append now uses new TextControl.Insert() method (this avoids 
25374             duplicate code)
25375           - Implemented Ctrl-X (Cut) (
25376           - Implemented Ctrl-C (Copy)
25377           - Implemented Ctrl-V (Paste) (Still some bugs related to screen 
25378             regeneration when pasting text; roundtripping Copy&Paste within
25379             edit control still fails due to some calculation bugs in GenerateRTF)
25380           - The Delete key will now remove the current selection if it is visible
25381         * TextBox.cs: Removed debug lines
25382         * XplatUI.cs: Trigger initialization of DataFormats (which requires the
25383           driver to be initialized and can't therefore be done via a static ctor)
25384
25385 2005-11-10  Peter Dennis Bartok  <pbartok@novell.com>
25386
25387         * TextControl.cs: Added backend code for finding char arrays and strings
25388         * TextBoxBase.cs:
25389           - Added mouse wheel scroll support
25390           - Added support for VScroll and HScroll events
25391         * RichTextBox.cs:
25392           - Implemented all seven Find() variants
25393           - Implemented GetCharFromPosition()
25394           - Implemented GetCharIndexFromPosition()
25395           - Implemented GetLineFromIndex()
25396           - Implemented GetPositionFromCharIndex();
25397           - Implemented SaveFile for PlainText and UnicodeText
25398           - Fixed set_Font, now setting a new font applies that font to
25399             the whole document
25400           - Implemented generic Document to RTF converter
25401           - Implemented SaveFile for RichText format (still missing unicode
25402             conversion for non-ansi chars)
25403           - Implemented get_Rtf
25404           - Implemented get_SelectedRtf
25405
25406 2005-11-09  Peter Dennis Bartok  <pbartok@novell.com>
25407
25408         * Control.cs (WndProc): Call HandleClick after having sent OnMouseUp
25409           to allow any captures to be released before triggering OnClick. This
25410           way a click handler may capture the mouse without interference.
25411         * XplatUIX11.cs: Always send mouse messages to grab window if one exists.
25412           This way we send them even though X may not allow a grab (if the window
25413           isn't visible, for example)
25414
25415 2005-11-08  Pedro Martinez Julia <pedromj@gmail.com>
25416
25417         * DataGridViewRowEventArgs.cs: DataGridView implementation
25418         * DataGridViewElement.cs: DataGridView implementation
25419         * DataGridViewComboBoxCell.cs: DataGridView implementation
25420         * DataGridViewDataErrorContexts.cs: DataGridView implementation
25421         * DataGridViewCellErrorTextNeededEventArgs.cs: DataGridView implementation
25422         * DataGridViewColumnHeadersHeightSizeMode.cs: DataGridView implementation
25423         * ImageLayout.cs: DataGridView implementation
25424         * DataGridViewComboBoxColumn.cs: DataGridView implementation
25425         * DataGridViewCellMouseEventHandler.cs: DataGridView implementation
25426         * DataGridViewSelectionMode.cs: DataGridView implementation
25427         * IDataGridViewEditingControl.cs: DataGridView implementation
25428         * DataGridViewSortCompareEventHandler.cs: DataGridView implementation
25429         * DataGridViewCellStyleContentChangedEventHandler.cs: DataGridView implementation
25430         * DataGridViewAutoSizeModeEventHandler.cs: DataGridView implementation
25431         * DataGridViewColumnStateChangedEventHandler.cs: DataGridView implementation
25432         * DataGridViewColumnSortMode.cs: DataGridView implementation
25433         * DataGridView.cs: DataGridView implementation
25434         * DataGridViewRowStateChangedEventHandler.cs: DataGridView implementation
25435         * DataGridViewRowPostPaintEventArgs.cs: DataGridView implementation
25436         * DataGridViewDataErrorEventArgs.cs: DataGridView implementation
25437         * Padding.cs: DataGridView implementation
25438         * DataGridViewCellParsingEventArgs.cs: DataGridView implementation
25439         * DataGridViewCellStateChangedEventHandler.cs: DataGridView implementation
25440         * DataGridViewRowEventHandler.cs: DataGridView implementation
25441         * DataGridViewCellPaintingEventHandler.cs: DataGridView implementation
25442         * DataGridViewCellFormattingEventHandler.cs: DataGridView implementation
25443         * DataGridViewButtonCell.cs: DataGridView implementation
25444         * DataGridViewCellStyleContentChangedEventArgs.cs: DataGridView implementation
25445         * DataGridViewEditMode.cs: DataGridView implementation
25446         * DataGridViewCellValueEventArgs.cs: DataGridView implementation
25447         * DataGridViewRowCancelEventArgs.cs: DataGridView implementation
25448         * DataGridViewRowHeadersWidthSizeMode.cs: DataGridView implementation
25449         * DataGridViewCheckBoxColumn.cs: DataGridView implementation
25450         * DataGridViewCellToolTipTextNeededEventHandler.cs: DataGridView implementation
25451         * DataGridViewAutoSizeColumnsMode.cs: DataGridView implementation
25452         * DataGridViewCellEventHandler.cs: DataGridView implementation
25453         * DataGridViewEditingControlShowingEventHandler.cs: DataGridView implementation
25454         * DataGridViewCellStyleConverter.cs: DataGridView implementation
25455         * DataGridViewSelectedRowCollection.cs: DataGridView implementation
25456         * DataGridViewBindingCompleteEventHandler.cs: DataGridView implementation
25457         * DataGridViewColumnEventArgs.cs: DataGridView implementation
25458         * DataGridViewRowHeightInfoPushedEventHandler.cs: DataGridView implementation
25459         * DataGridViewRowContextMenuStripNeededEventHandler.cs: DataGridView implementation
25460         * QuestionEventArgs.cs: DataGridView implementation
25461         * IDataGridViewEditingCell.cs: DataGridView implementation
25462         * DataGridViewTriState.cs: DataGridView implementation
25463         * DataGridViewColumnDesignTimeVisibleAttribute.cs: DataGridView implementation
25464         * DataGridViewCellStateChangedEventArgs.cs: DataGridView implementation
25465         * DataGridViewColumnCollection.cs: DataGridView implementation
25466         * DataGridViewCellValueEventHandler.cs: DataGridView implementation
25467         * DataGridViewRowDividerDoubleClickEventHandler.cs: DataGridView implementation
25468         * DataGridViewCellFormattingEventArgs.cs: DataGridView implementation
25469         * DataGridViewColumn.cs: DataGridView implementation
25470         * DataGridViewCellBorderStyle.cs: DataGridView implementation
25471         * DataGridViewCellContextMenuStripNeededEventHandler.cs: DataGridView implementation
25472         * DataGridViewCellValidatingEventArgs.cs: DataGridView implementation
25473         * DataGridViewRow.cs: DataGridView implementation
25474         * DataGridViewImageCellLayout.cs: DataGridView implementation
25475         * DataGridViewImageCell.cs: DataGridView implementation
25476         * DataGridViewTopLeftHeaderCell.cs: DataGridView implementation
25477         * DataGridViewCheckBoxCell.cs: DataGridView implementation
25478         * DataGridViewHeaderCell.cs: DataGridView implementation
25479         * DataGridViewCellErrorTextNeededEventHandler.cs: DataGridView implementation
25480         * DataGridViewRowHeightInfoPushedEventArgs.cs: DataGridView implementation
25481         * DataGridViewAutoSizeColumnsModeEventHandler.cs: DataGridView implementation
25482         * DataGridViewTextBoxColumn.cs: DataGridView implementation
25483         * QuestionEventHandler.cs: DataGridView implementation
25484         * DataGridViewCellStyleScopes.cs: DataGridView implementation
25485         * DataGridViewSortCompareEventArgs.cs: DataGridView implementation
25486         * DataGridViewCellContextMenuStripNeededEventArgs.cs: DataGridView implementation
25487         * DataGridViewCell.cs: DataGridView implementation
25488         * DataGridViewCellEventArgs.cs: DataGridView implementation
25489         * DataGridViewClipboardCopyMode.cs: DataGridView implementation
25490         * DataGridViewCellStyle.cs: DataGridView implementation
25491         * DataGridViewColumnHeaderCell.cs: DataGridView implementation
25492         * DataGridViewRowPrePaintEventHandler.cs: DataGridView implementation
25493         * DataGridViewRowCancelEventHandler.cs: DataGridView implementation
25494         * TextFormatFlags.cs: DataGridView implementation
25495         * DataGridViewCellToolTipTextNeededEventArgs.cs: DataGridView implementation
25496         * DataGridViewDataErrorEventHandler.cs: DataGridView implementation
25497         * DataGridViewAdvancedCellBorderStyle.cs: DataGridView implementation
25498         * DataGridViewCellPaintingEventArgs.cs: DataGridView implementation
25499         * DataGridViewButtonColumn.cs: DataGridView implementation
25500         * DataGridViewRowsRemovedEventArgs.cs: DataGridView implementation
25501         * HandledMouseEventArgs.cs: DataGridView implementation
25502         * DataGridViewCellParsingEventHandler.cs: DataGridView implementation
25503         * DataGridViewColumnDividerDoubleClickEventHandler.cs: DataGridView implementation
25504         * DataGridViewCellMouseEventArgs.cs: DataGridView implementation
25505         * DataGridViewAutoSizeRowsMode.cs: DataGridView implementation
25506         * DataGridViewRowCollection.cs: DataGridView implementation
25507         * DataGridViewAdvancedBorderStyle.cs: DataGridView implementation
25508         * DataGridViewCellCancelEventHandler.cs: DataGridView implementation
25509         * DataGridViewHitTestType.cs: DataGridView implementation
25510         * DataGridViewAutoSizeModeEventArgs.cs: DataGridView implementation
25511         * DataGridViewColumnStateChangedEventArgs.cs: DataGridView implementation
25512         * DataGridViewColumnEventHandler.cs: DataGridView implementation
25513         * DataGridViewRowDividerDoubleClickEventArgs.cs: DataGridView implementation
25514         * DataGridViewAutoSizeRowMode.cs: DataGridView implementation
25515         * DataGridViewRowHeightInfoNeededEventArgs.cs: DataGridView implementation
25516         * DataGridViewRowsDeletedEventArgs.cs: DataGridView implementation
25517         * DataGridViewTextBoxEditingControl.cs: DataGridView implementation
25518         * DataGridViewContentAlignment.cs: DataGridView implementation
25519         * DataGridViewRowPostPaintEventHandler.cs: DataGridView implementation
25520         * DataGridViewComboBoxEditingControl.cs: DataGridView implementation
25521         * DataGridViewCellValidatingEventHandler.cs: DataGridView implementation
25522         * DataGridViewSelectedColumnCollection.cs: DataGridView implementation
25523         * DataGridViewPaintParts.cs: DataGridView implementation
25524         * DataGridViewCellCollection.cs: DataGridView implementation
25525         * DataGridViewRowsAddedEventArgs.cs: DataGridView implementation
25526         * DataGridViewImageColumn.cs: DataGridView implementation
25527         * DataGridViewRowsRemovedEventHandler.cs: DataGridView implementation
25528         * DataGridViewElementStates.cs: DataGridView implementation
25529         * DataGridViewRowHeightInfoNeededEventHandler.cs: DataGridView implementation
25530         * DataGridViewColumnDividerDoubleClickEventArgs.cs: DataGridView implementation
25531         * DataGridViewRowPrePaintEventArgs.cs: DataGridView implementation
25532         * DataGridViewRowStateChangedEventArgs.cs: DataGridView implementation
25533         * DataGridViewEditingControlShowingEventArgs.cs: DataGridView implementation
25534         * DataGridViewCellCancelEventArgs.cs: DataGridView implementation
25535         * DataGridViewRowHeaderCell.cs: DataGridView implementation
25536         * DataGridViewBindingCompleteEventArgs.cs: DataGridView implementation
25537         * DataGridViewTextBoxCell.cs: DataGridView implementation
25538         * DataGridViewBand.cs: DataGridView implementation
25539         * DataGridViewAutoSizeColumnModeEventArgs.cs: DataGridView implementation
25540         * DataGridViewHeaderBorderStyle.cs: DataGridView implementation
25541         * DataGridViewRowsAddedEventHandler.cs: DataGridView implementation
25542         * DataGridViewAutoSizeColumnMode.cs: DataGridView implementation
25543         * DataGridViewAutoSizeColumnModeEventHandler.cs: DataGridView implementation
25544         * DataGridViewAutoSizeColumnsModeEventArgs.cs: DataGridView implementation
25545         * DataGridViewRowErrorTextNeededEventHandler.cs: DataGridView implementation
25546         * DataGridViewSelectedCellCollection.cs: DataGridView implementation
25547         * DataGridViewRowContextMenuStripNeededEventArgs.cs: DataGridView implementation
25548         * DataGridViewRowErrorTextNeededEventArgs.cs: DataGridView implementation
25549         * DataGridViewComboBoxDisplayStyle.cs: DataGridView implementation
25550
25551 2005-11-08  Peter Dennis Bartok  <pbartok@novell.com>
25552
25553         * ThemeWin32Classic.cs: 
25554           - Draw the outside focus rectangle around buttons
25555           - Use CPDrawFocusRectangle to draw focus rectangles until Cairo
25556             doesn't use end caps for every dash of a line anymore. This
25557             workaround ignores the forecolor.
25558
25559 2005-11-08  Kornél Pál  <kornelpal@hotmail.com>
25560
25561         * ImageList.cs: Don't use ArgbColor with LayoutKind.Explicit as it isn't
25562           endian safe.
25563
25564 2005-11-07  Jackson Harper  <jackson@ximian.com>
25565
25566         * X11Dnd.cs: Set the X/Y positions on the DragEventArgs correctly.
25567
25568 2005-11-07  Jackson Harper  <jackson@ximian.com>
25569
25570         * ScrollableControl.cs: Calculate the maximum and change vars
25571         (more) correctly so that scrollbars appear as a sensible size.
25572
25573 2005-11-04  Jackson Harper  <jackson@ximian.com>
25574
25575         * TreeNodeCollection.cs: Refresh when nodes are cleared from the
25576         collection.
25577         * TreeView.cs: When the tree is sorted null out the top_node so
25578         that it is recalculated.
25579         - Use dotted lines instead of dashed lines to match MS better.
25580
25581 2005-11-04  Jordi Mas i Hernandez <jordimash@gmail.com>
25582
25583         * ListView.cs: 
25584           - Implements key search for items. Useful when browsing files with FileDialog
25585           - When changing view mode or when clear the items reset scrollbar positions
25586
25587 2005-11-04  Jackson Harper  <jackson@ximian.com>
25588
25589         * CurrencyManager.cs: Implement the MetaDataChanged event, the
25590         Reset method, and the CheckEmpty. CheckEmpty is just a total guess
25591         as to what the method may do as there is no real way of creating a
25592         derived CurrencyManager and calling the method. 
25593
25594 2005-11-03  Jackson Harper  <jackson@ximian.com>
25595
25596         * ThemeWin32Classic.cs: Implement ownerdrawing in the tab control
25597         * TabControl.cs: Add Ownerdrawing bits, add the UpdateTabSelection
25598         method which seems to just be used internally to refresh the tabs.
25599
25600 2005-11-03  Jackson Harper  <jackson@ximian.com>
25601
25602         * TabControl.cs: Implement the remove method. Fix some broken
25603         comments.
25604
25605 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
25606
25607         * DateTimePicker.cs:
25608           - Added missing DateTimePickerAccessibleObject class
25609           - Added missing events
25610           - Added OnFontChanged method
25611         * Form.cs: Added missing attributes
25612         * TreeView.cs: Added missing attributes
25613
25614 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com> 
25615
25616         * GridItemCollection.cs: Fix signatures
25617
25618 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
25619
25620         * XplatUI.cs: Updated build rev/date
25621         * ComboBox.cs, DataGridTextBoxColumn.cs Control.cs, 
25622           DataGridTableStyle.cs, DataGrid.cs, DateTimePicker.cs: Signature fixes
25623         * Application.cs: Trigger context-specific ExitThread events
25624
25625 2005-11-03  Jackson Harper  <jackson@ximian.com>
25626
25627         * Menu.cs:
25628         * MainMenu.cs:
25629         * GridTableStylesCollection.cs:
25630         * Timer.cs:
25631         * TabPage.cs:
25632         * HelpProvider.cs:
25633         * StatusBar.cs:
25634         * MonthCalendar.cs: Signature fixes
25635
25636 2005-11-03  Jackson Harper  <jackson@ximian.com>
25637
25638         * TreeNodeCollection.cs: Remove should not be virtual.
25639         * TreeView.cs: Implement the last of the missing methods.
25640
25641 2005-11-03  Jackson Harper  <jackson@ximian.com>
25642
25643         * TreeNodeConverter.cs: Implement to get off my class-status back.
25644
25645 2005-11-03  Jackson Harper  <jackson@ximian.com>
25646
25647         * TreeView.cs: Hookup the bits for drag and drop.
25648         * TreeNode.cs: Don't cache the tree_view or index anymore, now
25649         that nodes can be moved from tree to tree easily this just causes
25650         all sorts of problems.
25651         * TreeNodeCollection: Don't need to give treenodes an index and
25652         treeview anymore when they are added, these are computed on the
25653         fly. Also make sure to remove a node before its added.
25654
25655 2005-11-03  Peter Dennis Bartok  <pbartok@novell.com>
25656
25657         * TextControl.cs:
25658           - Added CaretSelection enum
25659           - Added comparison methods to Marker struct, makes selection code
25660             more readable
25661           - Added SelectionStart and SelectionEnd as 'moveable' location for
25662             the CaretDirection enum and handler
25663           - Added selection_prev variable to track optimized invalidation for
25664             word and line selection
25665           - Added SelectionVisible property (returns true if there is a valid 
25666             selection)
25667           - Switched CaretHasFocus to only display the caret if there is no
25668             visible selection
25669           - Avoiding StringBuilder.ToString to retrieve a single char, instead
25670             using the direct character index; should be much faster
25671           - Added various conditional debug statements
25672           - Fixed invalidation calculation for selection ranges
25673           - Added ExpandSelection() method to support word and line selection
25674           - Switched SetSelectionToCaret to use new Marker compare overloads
25675           - Added central IsWordSeparator() method to determine word 
25676             separators/whitespace and FindWordSeparator() to streamline common
25677             usage of IsWordSeparator()
25678         * TextBoxBase.cs:
25679           - Removed unneeded grabbed variable, it was just mirroring
25680             Control.Capture
25681           - No longer firing OnTextChanged event when Text setter is called,
25682             since the base will fire the event for us
25683           - Added handling of Ctrl-Up/Down selection
25684           - Added handling of Shift-Cursorkey selection
25685           - Added handling for Ctrl-Delete and Ctrl-Backspace to remove
25686             words
25687           - Added handling of Shift and Ctrl-Shift-Home/End selection
25688           - Removed some debug output
25689           - Added handling for single/double/tripple-click to place caret/
25690             select word/select line respectively (Fixes bug #76031)
25691           - Added support for drag expansion of word/line selection
25692         * RichTextBox.cs: Handle GotFocus event to trigger redrawing of
25693           current selection
25694
25695 2005-11-02  Jackson Harper  <jackson@ximian.com>
25696
25697         * X11Dnd.cs: If the drag is going to and from a MWF window just
25698         copy the data instead of sending it out through the X Selection
25699         mechanism.
25700
25701 2005-11-02  Jackson Harper  <jackson@ximian.com>
25702
25703         * X11Dnd.cs:
25704         * XplatUIX11.cs: When in a drag we don't want motion notify
25705         messages to get passed on to the other controls. This prevents
25706         mouse move messages from showing up in the drag source.
25707
25708 2005-11-02  Jackson Harper  <jackson@ximian.com>
25709
25710         * X11Dnd.cs: Remove unneeded call to XAllowEvents.  Make sure that
25711         the correct button is release to end a drag.
25712         * XplatUIX11.cs: Make the button state internal so the drag system
25713         can access it.  Dragging needs to know about all button releases,
25714         not just left button.
25715
25716 2005-11-02  Miguel de Icaza  <miguel@novell.com>
25717
25718         * Form.cs (Icon): If the icon is null, reset the icon to the
25719         default value. 
25720
25721         * Cursor.cs: When writing the AND-mask bitmap do not include the
25722         number of colors, but hardcode those to two (black and white),
25723         fixes the loading of color cursors (Paint Dot Net).
25724
25725         * Form.cs: To debug, allow MONO_MWF_SCALING=disable variable to
25726         turn off autoscaling.
25727
25728         * Cursor.cs: Allow resource type to be 1 or 2 (from ImageMagic).
25729
25730 2005-11-02  Jackson Harper  <jackson@ximian.com>
25731
25732         * X11Dnd.cs: Make sure to send a status message if the pointer
25733         enters a control that can not accept a drop, otherwise the cursor
25734         isn't updated correctly. Also tried to compress the lines of code
25735         a bit.
25736
25737 2005-11-02  Jackson Harper  <jackson@ximian.com>
25738
25739         * X11Dnd.cs: Change cursors based on drag action. Also attempt to
25740         set actions correctly.  This isn't perfect as XDND and win32 have
25741         some differences on how you allow actions. I'll clear this up by
25742         adding a path for drag from MWF to MWF windows.
25743         * XplatUIX11.cs: Hook into the dnd system.
25744
25745 2005-11-02  Jordi Mas i Hernandez <jmas@softcatala.org>
25746
25747         * ListView.cs: Fixes scroll bar visibility. Hide them if they were
25748         previously shown but they are no longer need it. Very obvious when 
25749         browsing files with FileDialog.
25750
25751 2005-11-01  Peter Dennis Bartok  <pbartok@novell.com>
25752
25753         * Control.cs: We always need to call OnPaintBackground. We pretty much
25754           ignore AllPaintingInWmPaint and always do the painting there, whether 
25755           it's set or not, since we always ignore the WM_ERASEBKGND message 
25756           (which we don't generate on X11). This fixes #76616.
25757         * Panel.cs: Removed unneeded background painting. This happens properly
25758           in Control.cs already
25759
25760 2005-10-31  Mike Kestner  <mkestner@novell.com>
25761
25762         * Menu.cs: Add items to collection before setting their index.
25763         * MenuItem.cs : add range checking with ArgumentException like MS.
25764         [Fixes #76510]
25765
25766 2005-10-31  Jackson Harper  <jackson@ximian.com>
25767
25768         * ListBox.cs: Invalidate if the area is visible at all not just
25769         contained in the visible rect. Fixes unselection of semi visible
25770         items.
25771
25772 2005-10-31  Jackson Harper  <jackson@ximian.com>
25773
25774         * Control.cs: Consistently name the dnd methods. Make them
25775         internal so we can override them to match some MS behavoir
25776         internally.
25777         * Win32DnD.cs: Use the new consistent names.
25778
25779 2005-10-31  Jackson Harper  <jackson@ximian.com>
25780
25781         * TreeView.cs: Don't draw the selected node when we lose focus.
25782
25783 2005-10-31  Jackson Harper  <jackson@ximian.com>
25784
25785         * X11Dnd.cs: We still need to reset the state even though a full
25786         reset isn't being done, otherwise status's still get sent all over
25787         the place.
25788
25789 2005-10-31  Jackson Harper  <jackson@ximian.com>
25790
25791         * Control.cs: Make the dnd_aware flag internal so the dnd
25792         subsystem can check it. Catch exceptions thrown in dnd handlers to
25793         match MS behavoir.
25794         * Hwnd.cs: Add a flag for whether or not a window is dnd aware.
25795         * X11Dnd.cs: Handle null data in the converters. Set the XDND
25796         version when sending a XdndEnter. Use the control/hwnd dnd_aware
25797         flags to reduce the number of dnd enters/status's sent.
25798
25799 2005-10-31  Jackson Harper  <jackson@ximian.com>
25800
25801         * X11Dnd.cs: Don't need the sizeof here. Patch by Jordi Mas.
25802
25803 2005-10-31  Jordi Mas i Hernandez <jordi@ximian.com>
25804
25805         * PictureBox.cs: Fixes 76512
25806
25807 2005-10-28  Jackson Harper  <jackson@ximian.com>
25808
25809         * X11Dnd.cs: Early implementation to support winforms being a drag
25810         source for data on X11. Also restructured the converters so they
25811         can go both ways now.
25812         * XplatUIX11.cs: Tie ins to the the Dnd stuff.
25813         
25814 2005-10-27  Peter Dennis Bartok  <pbartok@novell.com>
25815
25816         * XplatUIX11.cs: Fixed FIXME - implemented ASCII encoding for XA_STRING
25817           clipboard requests
25818
25819 2005-10-27  Jackson Harper  <jackson@ximian.com>
25820
25821         * TreeNode.cs: Implement serialization so my DnD examples will work.
25822
25823 2005-10-24  Kornél Pál  <kornelpal@hotmail.com>
25824
25825         * ButtonBase.cs, ListView.cs, NotifyIcon.cs, PictureBox.cs, ToolBar.cs,
25826           TreeView.cs: Don't dispose objects that are not owned.
25827           
25828 2005-10-24  Peter Dennis Bartok  <pbartok@novell.com>
25829
25830         * Cursor.cs: Defaulting the Current cursor to Cursors.Default. We
25831           should retrieve the current cursor and report that, but XplatUI
25832           doesn't (yet) have an interface for that (and I'm not sure I even
25833           can, on X11)
25834         * XplatUIWin32.cs: Fixed override behaviour. The override is temporary,
25835           until any message loop processing is done (and the WM_SETCURSOR
25836           replaces the cursor to the proper one)
25837         * XplatUIX11.cs: 
25838           - Fixed override behaviour, we can't set the cursor globally on X11, 
25839             just for our windows.
25840           - Invalidating the System.Drawing X11 display handle when we are
25841             shutting down
25842         * Control.cs: Fix to make csc happy
25843
25844 2005-10-23  Peter Dennis Bartok  <pbartok@novell.com>
25845
25846         * TextBoxBase.cs: 
25847           - get_Text: Add last line (without trailing newline) to returned
25848             value (Fixes 76212)
25849           - get_TextLength: Count last line in returned length
25850           - ToString: Call Text property instead of duplicating code
25851
25852 2005-10-23  Kornél Pál  <kornelpal@hotmail.com>
25853
25854         * ImageList.cs: Dispose ImageAttributes objects.
25855
25856 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
25857
25858         * ImageList.cs: Use attribute constructors with less arguments where
25859           possible.
25860
25861 2005-10-22  Kornél Pál  <kornelpal@hotmail.com>
25862
25863         * ImageList.cs: Added lastKeyIndex field and use in IndexOfKey.
25864           Use typeof instead of strings when assembly is referenced. Added
25865           some more comments.
25866
25867 2005-10-21  Jackson Harper  <jackson@ximian.com>
25868
25869         * ListView.cs: Raise a double click event. Also tried to somewhat
25870         fix when the selectedindexchanged event is raised. Its still
25871         broken though.
25872
25873 2005-10-21  Jackson Harper  <jackson@ximian.com>
25874
25875         * TreeView.cs: New method to invalidate the plus minus area of a
25876         node without invalidating the whole node (maybe this can be used
25877         in some more places).
25878         * TreeNodeCollection.cs: When adding to an empty node we need to
25879         invalidate its plus minus area so the little block shows up.
25880         
25881 2005-10-21  Jackson Harper  <jackson@ximian.com>
25882
25883         * TreeView.cs: Make sure that when we invalidate a node the bounds
25884         are big enough to cover the selected box and the focus
25885         rectangle. Use a different colour for the lines connecting nodes
25886         so they show up with all themes.
25887
25888 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
25889
25890         * NativeWindow.cs: Don't call anything that could call into the driver,
25891           we might be on a different thread.
25892
25893 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com> 
25894
25895         * Control.cs(Dispose): Since Dispose might run on a different thread,
25896           make sure that we call methods that could call into the driver via
25897           invoke, to avoid thread issues
25898
25899 2005-10-21  Peter Dennis Bartok  <pbartok@novell.com>
25900
25901         * XplatUI.cs: Removed finalizer
25902         * XplatUIX11.cs: Removed Destructor, was causing crashes due to X11
25903           not allowing to be called on the finalizer thread.
25904
25905 2005-10-21  Kornél Pál  <kornelpal@hotmail.com>
25906
25907         * ImageList.cs:
25908           - Reverted r51889 and r51891.
25909           - Added ImageListItem class that stores unmodified image items and image
25910             properties required to create list images until handle is created.
25911           - Added AddItem and moved image creation logic to AddItemInternal.
25912           - Added CreateHandle method that creates images based on unmodified items.
25913           - Added DestroyHandle that changes state to store unmodified items.
25914           - Add and AddStrip methods no more create handle.
25915           - ReduceColorDepth has no return value.
25916           - Dispose destroys handle.
25917           - Modified other methods to reflect the above changes.
25918           - Implemented key support.
25919           - Added profile 2.0 members and attributes.
25920           - Added private Reset and ShouldSerialize methods that provide the same
25921             behavior as MS.NET but the Visual Studio .NET designer seems to ignore
25922             them as they are private.
25923           - Added some more comments about implementation details.
25924
25925 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
25926
25927         * DataGrid.cs: Adds support for vertical scrolling using the mousewheel
25928
25929 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
25930
25931         * Binding.cs: No PushData/PullData if there is no binding (fixes crash)
25932
25933 2005-10-21  Jordi Mas i Hernandez <jordi@ximian.com>
25934
25935         * DataGridDrawingLogic.cs: Fixes column hit calcultation
25936         * DataGridColumnStyle.cs: Remove debug message
25937
25938 2005-10-20  Jackson Harper  <jackson@ximian.com>
25939
25940         * TreeView.cs: We can always get input keys regardless of whether
25941         or not editing is enabled. They are used for navigation.
25942
25943 2005-10-20  Jackson Harper  <jackson@ximian.com>
25944
25945         * TreeNode.cs: Use the viewport rect for determining if a node
25946         needs to be moved for visibility. Don't use Begin/End edit. This
25947         calls a full refresh when its done.
25948         * TreeView.cs: New SetBottom works correctly.  Make the viewport
25949         rect property internal so the treenodes can see it. When clicking
25950         on a node we need to ensure that its visible because it might just
25951         be partly visible when clicked.
25952
25953 2005-10-20  Jackson Harper  <jackson@ximian.com>
25954
25955         * TreeNodeCollection.cs: Remove debug code.
25956
25957 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
25958
25959         * Datagrid.cs: Implements column sorting in Datagrid
25960         * DataGridColumnStyle.cs: Implements column sorting in Datagrid
25961
25962 2005-10-20  Jackson Harper  <jackson@ximian.com>
25963
25964         * TreeNodeCollection.cs: Remove items properly. Update the correct
25965         area after removing them.
25966
25967 2005-10-20  Jordi Mas i Hernandez <jordi@ximian.com>
25968
25969         * Datagrid.cs: Should not call base.OnPaintBackground
25970
25971 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
25972
25973         * XplatUIX11.cs (GetMessage):
25974           - Now properly calculates NC_xBUTTONDOWN coordinates off the whole
25975             window instead of client window
25976           - Now properly calculates NC_xBUTTONUP message coordinates
25977           - ScreenToMenu now properly calculates it's coordinates of whole 
25978             window, since menus are in the whole window, not in the client
25979             window
25980           - Added WholeToScreen coordinate translation method
25981
25982 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com> 
25983
25984         * XplatUIX11.cs (GetMessage): Don't return in situations where we don't
25985           want to return a message, loop back to the beginning of the function
25986           and grab the next real message to process instead.
25987
25988 2005-10-20  Peter Dennis Bartok  <pbartok@novell.com>
25989
25990         * Splitter.cs: Properly set limits if no filler control is used
25991
25992 2005-10-19  Jackson Harper  <jackson@ximian.com>
25993
25994         * ColorDialog.cs: Don't show the help button if it is not enabled
25995         instead of disabling it (this is what MS does). Don't create the
25996         panel until the dialog is run, otherwise the vars (such as
25997         ShowHelp) are not set yet.
25998
25999 2005-10-19  Jackson Harper  <jackson@ximian.com>
26000
26001         * TreeView.cs: Implement Begin/EndEdit more correctly so refreshes
26002         are reduced when adding nodes.
26003         * TreeNode.cs:
26004         * TreeNodeCollection.cs: Use UpdateNode instead of refreshing the
26005         tree.
26006         
26007 2005-10-19  Jackson Harper  <jackson@ximian.com>
26008
26009         * FolderBrowserDialog.cs: End editing our treeview so the window
26010         actually gets refreshed.
26011
26012 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
26013
26014         * Control.cs: Fixed logic flip on when to call OnPaintBackground. 
26015           Obsoleted handling of WM_ERASEBKGND, now always draws our background
26016           inside of WM_PAINT
26017
26018 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
26019
26020         * MenuAPI.cs: Returns after Hidding window
26021         * XplatUIX11.cs: Added TODO found while debugging menu issues
26022
26023 2005-10-18  Peter Dennis Bartok  <pbartok@novell.com>
26024
26025         * XplatUIX11.cs: Do not re-map the whole window when it's size
26026           becomes non-zero unless it's supposed to be actually visible
26027
26028 2005-10-18  Jackson Harper  <jackson@ximian.com>
26029
26030         * TreeView.cs: We don't need to keep a count anymore.
26031         * TreeNodeCollection.cs: Fix off by one in RemoveAt, Insert can
26032         use the Grow method.
26033
26034 2005-10-18  Jackson Harper  <jackson@ximian.com>
26035
26036         * TreeNodeCollection.cs: Insert is not supported on arrays, so
26037         implement it manually here.
26038
26039 2005-10-18  Jackson Harper  <jackson@ximian.com>
26040
26041         * ImageList.cs: Dont kill the list when the colour depth is
26042         changed, just change the colour depth of all the images.
26043         - Same goes for setting the image size. Just resize them all
26044         instead of killing the list softly.
26045
26046 2005-10-18  Jackson Harper  <jackson@ximian.com>
26047
26048         * Control.cs: Don't invalidate empty rectangles.
26049
26050 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
26051
26052         * ListViewItem.cs:
26053           - Adds checked item to the Checked/Item lists (where empty before)
26054           - Do not add items to the Selected lists if they are already present
26055         * ListView.cs:
26056           - Fixes IsFixedSize, SyncRoot, IsReadOnly in many collections
26057           - When deleting items make sure that we delete them for the Selected
26058           and Checked list also.
26059
26060 2005-10-18  Jordi Mas i Hernandez <jordi@ximian.com>
26061
26062         * Label.cs: Dispose objects no longer used
26063         * ThemeWin32Classic.cs: Dispose objects no longer used
26064
26065 2005-10-18  Jackson Harper  <jackson@ximian.com>
26066
26067         * TabControl.cs: Don't refresh the whole control when the tabs are
26068         scrolled, we just need to refresh the tab area.
26069
26070 2005-10-17  Jackson Harper  <jackson@ximian.com>
26071
26072         * XplatUIX11.cs: Compress code a little bit. Only calculate the
26073         after handle when we need it.
26074
26075 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
26076
26077         * Control.cs: When the parent size changes, recalculate anchor 
26078           positions. Partial fix for #76462
26079
26080 2005-10-17  Peter Dennis Bartok  <pbartok@novell.com>
26081
26082         * ThemeWin32Classic.cs: Make sure the picturebox has it's background 
26083           drawn. Fixes #76462
26084
26085 2005-10-17  Jackson Harper  <jackson@ximian.com>
26086
26087         * MonthCalendar.cs: Don't create the numeric up down until our
26088         handle is created. Otherwise our handle is created in the
26089         constructor and we don't know if we are a WS_CHILD or WS_POPUP
26090         yet.
26091
26092 2005-10-17  Jackson Harper  <jackson@ximian.com>
26093
26094         * TreeView.cs: Merge in patch by Rafael Teixeira to align strings
26095         correctly.
26096
26097 2005-10-17  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
26098         * TreeNode.cs : small logical fix (was using local var instead of field)
26099         
26100 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
26101
26102         * ThemeWin32Classic.cs: Fixes vert/horz scrollbar colours
26103
26104 2005-10-17  Jordi Mas i Hernandez <jordi@ximian.com>
26105
26106         * ThemeWin32Classic.cs: Fixes focus drawing in for non-flat/popup buttons
26107
26108 2005-10-16  Peter Dennis Bartok  <pbartok@novell.com> 
26109
26110         * Control.cs: 
26111           - Re-implemented anchoring code. My first version was really broken.
26112             This fixes bug #76033. Unlike the previous implementation we will
26113             no longer have round errors since all numbers are calculated from
26114             scratch every time. Removed various anchor-related obsolete vars.
26115           - InitLayout no longer causes layout event firing and layout to be 
26116             performed
26117
26118 2005-10-16  Jackson Harper  <jackson@ximian.com>
26119
26120         * Hwnd.cs: Compute invalid area correctly (fixes my last commit
26121         which was broken).
26122
26123 2005-10-16  Jackson Harper  <jackson@ximian.com>
26124
26125         * TabControl.cs: Remove debug code.
26126
26127 2005-10-16  Jackson Harper  <jackson@ximian.com>
26128
26129         * XEventQueue.cs: Increase the default queue size (very simple
26130         apps needed to grow the queue).
26131         * Hwnd.cs: No finalizer so we don't need to suppress
26132         finalization. Compute the invalid area manually so a new rectangle
26133         does not newto be created.
26134         * ScrollableControl.cs: Don't set any params (otherwise visibility
26135         isn't set correctly).
26136         * MdiChildContext.cs: New constructor takes the mdi parent so it
26137         doesn't have to be computed and avoids a crash on windows. Draw
26138         the window icon properly, and allow the text to be seen.
26139         * Form.cs: Use new MdiChildContext constructor. Make sure the
26140         child context isn't null in wndproc.
26141         * TabControl.cs: Don't set focus, this is muddling keyboard
26142         behavoir. Expand the tab rows when a window size increase will
26143         allow extra tabs to be seen. Don't allow tabs smaller than the
26144         width of a window to be scrolled out of view.
26145         * TreeNode.cs:
26146         * TreeView.cs: Use measure string to calculate a nodes width, the
26147         width is cached and only updated when the text or the font is
26148         changed. Don't check for expand/collapse clicks on the first level
26149         nodes if root lines are disabled.
26150         
26151 2005-10-16  Ritvik Mayank  <mritvik@novell.com>
26152
26153         * TextBoxBase.cs: Fixes #76352 (passing tab key in a multiline textbox)
26154
26155 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
26156
26157         * DataGridBoolColumn.cs: fixes warning
26158
26159 2005-10-16  Jordi Mas i Hernandez <jordi@ximian.com>
26160
26161         * ControlPaint.cs: Fixes methods Dark, DarkDark, Light, LightLight
26162         to match more to match more precisely the MS Net behavior
26163
26164 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
26165
26166         * Hwnd.cs: Added field to track if window is mapped
26167         * XplatUIX11.cs: 
26168           - Unmap windows if they become 0-size, re-map when 
26169             they are >0 again; fixes #76035
26170           - Re-set our error handler after initializing X11Desktop
26171             to override any error handlers Gtk or whatever was called
26172             may have set.
26173
26174 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com> 
26175
26176         * CheckedListBox.cs: Removed unused vars
26177         * ListView.cs: Fixed signatures
26178         * RichTextBox.cs: Removed unused vars
26179         * TextBoxBase.cs: Removed unused vars
26180         * XplatUIWin32.cs: Removed unused vars
26181         * XplatUIX11.cs: Removed unused vars
26182         * XplatUI.cs: Updated version and date to latest published
26183
26184 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
26185
26186         * Cursor.cs: Added private .ctor to work around a bug in
26187           resourceset (Thanks to Geoff Norton for the help on this)
26188         * SplitterEventArgs.cs: Made fields accessible so we don't
26189           waste boatloads of objects and can reuse the same one
26190           in Splitter
26191         * XplatUIWin32.cs(DrawReversibleLine): Now also considers
26192           any captions and borders when generating screen coordinates
26193         * Splitter.cs: Reimplemented control, now fully complete, uses
26194           rubberband drawing, supports and obeys all properties, has
26195           proper cursors
26196
26197 2005-10-13  Miguel de Icaza  <miguel@novell.com>
26198
26199         * Form.cs (Form): Setup default values for autoscale and
26200         autoscale_base_size;  Make these instance variables, not static
26201         variables. 
26202
26203         (OnLoad): on the first load, adjust the size of the form.
26204
26205 2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
26206
26207         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs: Added 
26208           width argument to DrawReversibleRectangle()
26209         * XplatUIWin32.cs, XplatUIX11.cs: 
26210           - Implemented width for DrawReversibleRectangle()
26211           - Added logic to DrawReversibleRectangle that recognizes a zero
26212             width or height and only draws a line in that situation
26213         
26214 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com> 
26215
26216         * XplatUI.cs, XplatUIDriver.cs: Added GetAutoScaleSize()
26217         * XplatUIOSX.cs: Stubbed GetAutoScaleSize() method
26218         * XplatUIWin32.cs, XplatUIX11.cs: Implemented GetAutoScaleSize()
26219           method (it uses our FosterParent window to get a graphics context)
26220
26221 2005-10-12  Peter Dennis Bartok  <pbartok@novell.com>
26222
26223         * XplatUI.cs, XplatUIDriver.cs: Removed EraseWindowBackground 
26224           and SetWindowBackground methods
26225         * Control.cs:
26226           - Setting proper ControlStyles
26227           - We no longer call XplatUI.SetWindowBackground and XplatUI.
26228             EraseWindowBackground, instead we draw the window background
26229             ourselves in PaintControlBackground. This behaviour is
26230             required to match MS, where, when OnPaintBackground is not
26231             called, the background is not drawn.
26232           - Removed unneeded Refresh() in set_Text
26233         * Hwnd.cs: Dropped the ErasePending support. No longer needed
26234         * XplatUIX11.cs:
26235           - Created DeriveStyles method to translate from CreateParams to
26236             FormBorderStyle and TitleStyle, also handles BorderStyle (which
26237             matches FormBorderStyle enum values)
26238           - Consolidated SetHwndStyles and CalculateWindowRect border/title
26239             style calculations into single DeriveStyles method
26240           - Fixed CreateWindow to (finally) use Gravity. This prevents X11
26241             from redrawing the whole window on any resize or expose.
26242           - Fixed CreateWindow usage of SetWindowValuemask. Before not
26243             all styles were applied to our whole/client window appropriately
26244           - Removed EraseWindowBackground() and SetWindowBackground() methods
26245           - Removed handling of WM_ERASEBKGND message from DefWndProc, we
26246             no longer clear/redraw the background through X
26247           - Removed handling of erase_pending bit, we have no use for it (or
26248             so it seems)
26249         * XplatUIOSX.cs:
26250           - Removed generation and handling of WM_ERASEBKGND message
26251           - Removed EraseWindowBackground() and SetWindowBackground() methods
26252           - Removed handling of hwnd.ErasePending flag
26253         * XplatUIWin32.cs:
26254           - Removed EraseWindowBackground() and SetWindowBackground() methods
26255           - We no longer call EraseWindowBackground on PaintEventStart, we 
26256             ignore the fErase flag, erasing is handled in Control in the
26257             background handler
26258         * Button.cs, GroupBox.cs, Label.cs, CheckBox.cs, ProgressBar.cs,
26259           LinkLabel.cs, ListControl.cs, TabPage.cs, UpDownBase.cs,
26260           TextBoxBase.cs, TextBox.cs, ListView.cs, ButtonBase.cs, 
26261           CheckedListBox.cs, MdiClient.cs, Panel.cs, DataGrid.cs, 
26262           DataGridTextBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, 
26263           TabControl.cs, ScrollableControl.cs, ToolBar.cs, PictureBox.cs,
26264           DateTimePicker.cs, StatusBar.cs, MonthCalendar.cs: Setting proper ControlStyles
26265
26266 2005-10-12  Jonathan Chambers <jonathan.chambers@ansys.com>
26267
26268         * PropertyGrids.cs: Get sub properties
26269         * PropertyGridView.cs: Fix drawing code
26270
26271 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
26272
26273         * ListBox.cs: Fixes 76383
26274
26275 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
26276
26277         * DataGridTextBoxColumn.cs: Sets location and size before attachment
26278         * ThemeWin32Classic.cs: Fixes border drawing and calculations
26279         * DataGridDrawingLogic.cs: Fixes border drawing and calculations
26280
26281
26282 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
26283
26284         * ComboBox.cs: Fixes border drawing
26285
26286 2005-10-10  Miguel de Icaza  <miguel@novell.com>
26287
26288         * MimeIcon.cs: Ignore errors if the file can not be read.
26289
26290 2005-10-11  Jordi Mas i Hernandez <jordi@ximian.com>
26291
26292         * Theme.cs, ThemeWin32Classic.cs, ListBox.cs:
26293          - Fixed border calculations
26294          - Fixed horizontal scrolling in single column listboxes
26295          - Fixed drawing issues
26296
26297 2005-10-10  Peter Dennis Bartok  <pbartok@novell.com>
26298
26299         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched from BorderStyle to 
26300           FormBorderStyle enum
26301         * XplatUIX11.cs: Switched BorderStyle to FormBorderStyle, added 
26302           code to determine FormBorderStyles from CreateParams
26303         * Form.cs:
26304           - Fixed bug where we'd set the wrong window styles if we were
26305             not creating an MDI window
26306           - Added call to XplatUI.SetBorderStyle when form borders are set
26307         * Control.cs: Casting BorderStyles to accommodate changed XplatUI APIs
26308         * Hwnd.cs:
26309           - Removed obsolete edge style
26310           - Switched from BorderStyle to FormBorderStyle
26311         
26312 2005-10-10  Jackson Harper  <jackson@ximian.com>
26313
26314         * Form.cs: Use the property to get the window handle instead of
26315         accessing it directly. Prevents a null reference exception.
26316
26317 2005-10-10  Jackson Harper  <jackson@ximian.com>
26318
26319         * TreeView.cs: Don't adjust the rect given to DrawString now that
26320         our libgdiplus draws correctly.
26321
26322 2005-10-08  Jackson Harper  <jackson@ximian.com>
26323
26324         * TreeView.cs: Don't try to find the clicked on node if there are
26325         no nodes in the tree.
26326
26327 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
26328
26329         * RichTextBox.cs:
26330
26331           restore
26332
26333 2005-10-08  Alexander Olk  <alex.olk@googlemail.com>
26334
26335         * ImageListStreamer.cs, TreeView.cs, UpDownBase.cs, RichTextBox.cs,
26336           ColorDialog.cs, TextControl.cs, Panel.cs, MdiChildContext.cs,
26337           ErrorProvider.cs:
26338           Use ResPool for brushes and dispose System.Drawing objects that
26339           are not used anymore.
26340
26341 2005-10-07  Jackson Harper  <jackson@ximian.com>
26342
26343         * MdiChildContext.cs: Use the new borders instead of drawing them
26344         ourselves.
26345
26346 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
26347
26348         * Calling UpdateBounds after changing the window's BorderStyle 
26349         since the style can change the ClientSize
26350
26351 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
26352
26353         * Control.cs: Made PaintControlBackground virtual
26354         * Panel.cs: Overriding PaintControlBackground instead of using paint
26355           event; paint event method was interfering with 'real' users of the
26356           event.
26357
26358 2005-10-06  Jordi Mas i Hernandez <jordi@ximian.com>
26359
26360         * ThemeWin32Classic.cs: remove border drawing since it is handled
26361         by the base control class now and was causing double border drawing.
26362
26363 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
26364
26365         * Panel.cs: Redraw our background on paint. Not a pretty solution,
26366           but it does seem to match MS behaviour. This fixes bug #75324
26367
26368 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
26369
26370         * XplatUIX11.cs: A better DrawReversibleRectangle version, however
26371           somewhat hackish looking
26372
26373 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
26374
26375         * TextBoxBase.cs:
26376           - We now accept Enter even if AcceptEnter is false, if the containing
26377             form does not have an AcceptButton configured (fixes bug #76355)
26378           - Calculations are now fixed to no longer use Width/Height, but
26379             ClientSize.Width/Height, since we now support borders (this was
26380             a result of fixing borders and therefore bug #76166)
26381           - We no longer show the horizontal scrollbar if TextBox.WordWrap is 
26382             true (fixes bug #76354)
26383         
26384 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
26385
26386         * Control.cs: 
26387           - Defaulting BorderStyle and setting it in XplatUI when our window 
26388             is created
26389           - Added enum check to InternalBorderStyle setter
26390         * XplatUIX11.cs: 
26391           - Added drawing of window borders
26392           - Now properly calculates WM decorations offset for toplevel 
26393             windows (fixes bug #74763)
26394         * XplatUIWin32.cs: 
26395           - Implemented BorderStyles for windows (we're letting win32 draw 
26396             the border for us)
26397           - Fixed the signature for SetWindowLong
26398         * PictureBox.cs, DataGrid.cs, TextBoxBase.cs, ToolBar.cs, Panel.cs,
26399           ListBox.cs, Label.cs: Now uses Control.InternalBorderStyle for 
26400           setting borders
26401         * UpDownBase.cs: Remove drawing of borders, this is handled by
26402           the driver, outside the client area
26403         * ListView.cs: Removed bogus border calculations. The control should
26404           be oblivious to borders, since those are not part of the client
26405           area. 
26406         * X11DesktopColors.cs: Commented out (currently) unneeded variables
26407         * ThemeWin32Classic.cs: Removed border calculations from ListView 
26408           drawing code
26409
26410 2005-10-06  Jackson Harper  <jackson@ximian.com>
26411
26412         * MdiChildContext.cs: Clear out the old virtual position remove
26413         all the unneeded calls to CreateGraphics.
26414
26415 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
26416
26417         * TextControl.cs: Use proper color for highlighted text; fixes #76350
26418
26419 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com> 
26420
26421         * Form.cs: 
26422           - Added loading and setting of our new default icon
26423           - Only set icon if window is already created
26424
26425 2005-10-06  Peter Dennis Bartok  <pbartok@novell.com>
26426
26427         * Label.cs:
26428           - Do not explicitly set the foreground and background colors, to
26429             allow inheriting from parents (fixes #76302)
26430           - Use Control's InternalBorderStyle property to deal with borders
26431
26432 2005-10-06  Jackson Harper  <jackson@ximian.com>
26433
26434         * MdiChildContext.cs: Use the new xplatui function to draw a
26435         reversible rect.
26436
26437 2005-10-06  Jackson Harper  <jackson@ximian.com>
26438
26439         * Form.cs: Add the parent before creating the child context cause
26440         we need the parent when setting up the child.
26441
26442 2005-10-06  Jackson Harper  <jackson@ximian.com>
26443
26444         * FolderBrowserDialog.cs: redo the tree population code so a
26445         second thread isn't used. Should be a lot faster and more stable
26446         now.
26447
26448 2005-10-05  Jackson Harper  <jackson@ximian.com>
26449
26450         * TreeView.cs: There are no expand/collapse boxes if the node has
26451         no children.
26452
26453 2005-10-05  Jackson Harper  <jackson@ximian.com>
26454
26455         * X11DesktopColors.cs: Get menu colours for the gtk theme.
26456
26457 2005-10-05  Alexander Olk  <alex.olk@googlemail.com>
26458
26459         * FileDialog.cs: Fix InitialDirectory
26460
26461 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
26462
26463         * ComboBox.cs:
26464                 - Fixes changing between styles
26465                 - Fixes simple mode
26466                 - Fixes last item crashing when navigating with keyboard
26467
26468 2005-10-05  Jordi Mas i Hernandez <jordi@ximian.com>
26469
26470         * LinkLabel.cs: Related to 76045. Stops the LinkLabel been drawn as a Label
26471
26472 2005-10-05  Jackson Harper  <jackson@ximian.com>
26473
26474         * TreeView.cs: If updating the root node do a full refresh.
26475         * TreeNode.cs: The root node should be expanded by default. Also
26476         added a utility prop to tell if we are the root node.
26477         * TreeNodeCollection.cs: Only refresh if the node we are being
26478         added to is expanded. Also added a comment on a potential
26479         optimization.
26480         
26481 2005-10-04  Peter Dennis Bartok  <pbartok@novell.com>
26482
26483         * Cursor.cs, Hwnd.cs: Added call to GC.SuppressFinalize() 
26484           in dispose method. Fixes #76330
26485
26486 2005-10-04  Jordi Mas i Hernandez <jordi@ximian.com>
26487
26488         * ListView.cs, ThemeWin32Classic.cs, ListViewItem.cs:
26489
26490                 - Implements vertical and horizontal scrolling using XplatUI
26491                 - Fixes keyboard navagation
26492                 - Fixes EnsureVisible
26493                 - Drawing fixes
26494                 - Handles and draws focus properly
26495
26496
26497 2005-10-04  Kornél Pál  <kornelpal@hotmail.com>
26498
26499         * ImageList.cs: Use upper case initials for internal fields. ImageStream:
26500           Create handle. NET_2_0: Destroy handle when value is null.
26501
26502 2005-10-03  Jackson Harper  <jackson@ximian.com>
26503
26504         * ScrollBar.cs: My last scrollbar patch was broken. This is a
26505         revert and a new patch to prevent the thumb from refreshing so
26506         much.
26507
26508 2005-10-02  Jackson Harper  <jackson@ximian.com>
26509
26510         * ScrollBar.cs: Don't update position if it hasn't actually
26511         changed. This occurs when you hold down the increment/decrement
26512         buttons and the thumb gets to the max/min.
26513
26514 2005-10-01  Jackson Harper  <jackson@ximian.com>
26515
26516         * Form.cs:
26517         * MdiChildContext.cs:
26518         * MdiClient.cs: Implement ActiveMdiChild in Form.
26519
26520 2005-10-01  Jordi Mas i Hernandez <jordi@ximian.com>
26521
26522         * ComboBox.cs: Include ComboBoxEdit flag for the edit item
26523
26524 2005-10-01  Peter Dennis Bartok  <pbartok@novell.com>
26525
26526         * X11DesktopColors.cs: Bow out gracefully if the Gtk libs cannot
26527           be found
26528
26529 2005-09-30  Jackson Harper  <jackson@ximian.com>
26530
26531         * ListBox.cs: Don't do a full refresh unless some data has
26532         actually changed.
26533
26534 2005-09-30  Jackson Harper  <jackson@ximian.com>
26535
26536         * TreeView.cs: Make sure that the checkboxes size is factored in
26537         even when not visible.
26538
26539 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
26540
26541         * FileDialog.cs: Fix Jordi's build break
26542
26543 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
26544
26545         * FileDialog.cs: 
26546                 - Use standard the Windows colours for the combobox as espected
26547                 - Dispose objects that use resouces when no longer need them
26548
26549 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com> 
26550
26551         * X11DesktopColors.cs: Initial incomplete implementation
26552         * XplatUIX11.cs: Added call to initialize X11DesktopColors
26553
26554 2005-09-30  Peter Dennis Bartok  <pbartok@novell.com>
26555
26556         * Theme.cs: 
26557           - Switched Theme color names to match the names defined in 
26558             System.Drawing.KnownColors. Life's hard enough, no need to make 
26559             it harder.
26560           - Added setters to all theme color properties so themes can set
26561             their color schemes. The setters also propagate the color changes
26562             to System.Drawing.KnownColors via reflection
26563         * ControlPaint.cs,  Label.cs, TextControl.cs, ToolTip.cs, ThemeNice.cs,
26564           ComboBox.cs, MdiChildContext.cs, TextBoxBase.cs, DateTimePicker.cs
26565           DataGridColumnStyle.cs, MonthCalendar.cs, TreeView.cs: Updated to
26566           use the new, more logical theme color names
26567         * XplatUIWin32.cs: Updated the GetSysColorIndex enum to include new
26568           post-NT colors
26569         * ThemeWin32Classic.cs:
26570           - Removed code to set the old classic Windows colors. Instead it
26571             now relies on the colors returned by System.Drawing.KnownColors
26572             which will be either modern static colors (Unix) or colors
26573             read from the user's configuration (Win32)
26574           - Updated to use the new, more logical theme color names
26575           - Switched DataGrid drawing code to use only Theme colors instead of
26576             a mix of System.Drawing.KnownColors and Theme colors
26577           - DrawFrameControl(): Removed code that fills the button area, the
26578             fill would overwrite any previous fill done by a control. This
26579             fixes bug #75338 
26580           - Added DrawReversibleRectangle() stub
26581         * ScrollableControl.cs: Set visible state to false when scrollbars
26582           are removed (pdn fix)
26583         * XplatUI.cs, XplatUIOSX.cs, XplatUIDriver.cs: Added 
26584           DrawReversibleRectangle() method to allow drawing primitive 
26585           'rubber bands'
26586         * XplatUIX11.cs: Implemented DrawReversibleRectangle()
26587
26588 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
26589
26590         * ImageList.cs: Add(Icon): Create handle.
26591
26592 2005-09-30  Jordi Mas i Hernandez <jordi@ximian.com>
26593
26594         * ListView.cs:
26595         * ThemeWin32Classic.cs:
26596                 - Fixes detail mode
26597                 - Sets clippings
26598                 - Issues with drawing
26599
26600 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
26601
26602         * ImageList.cs: Moved RecreateHandle back to ImageList as event
26603           source has to be the ImageList.
26604
26605 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
26606
26607         * ImageList.cs: Add(Icon): Use Graphics.DrawIcon instead of Icon.ToBitmap.
26608
26609 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
26610
26611         * ImageList.cs: ReduceColorDepth: Clean up pointer operations.
26612
26613 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
26614
26615         * ImageList.cs: ImageCollection: Removed owner field as it is no more used.
26616
26617 2005-09-29  Jonathan Chambers <jonathan.chambers@ansys.com>
26618         * GridItem.cs: Fixed TODOs
26619         * GridItemCollection.cs: Added ICollection interface
26620
26621 2005-09-30  Kornél Pál  <kornelpal@hotmail.com>
26622
26623         * ImageList.cs: Resize icons when needed.
26624
26625 2005-09-29  Jordi Mas i Hernandez <jordi@ximian.com>
26626
26627         * ListViewItem.cs
26628                 - Fixes GetBounds and returns on screen rects
26629         * ListView.cs:
26630                 - Fixes vertical and horzintal scrolling of items
26631         * ThemeWin32Classic.cs:
26632                 - Fixes drawing
26633                 
26634 2005-09-29  Raja R Harinath  <harinath@gmail.com>
26635
26636         * ImageList.cs (ImageStream) [NET_2_0]: Reflect re-factoring.
26637
26638 2005-09-29  Kornél Pál  <kornelpal@hotmail.com>
26639
26640         * ImageList.cs: Added comments about handle creation. Moved Handle,
26641           HandleCreated and OnRecreateHandle implementations to ImageCollection.
26642           Handle is created in Add methods.
26643
26644 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
26645          
26646         * DataGridDrawingLogic.cs: 
26647                 - Takes rows into account on Colum calculations
26648                 - Returns the column when clickig
26649         * DataGrid.cs:
26650                 - Fixes default HitTestInfo values
26651                 - Fixes HitTestInfo.ToString
26652                 - Fixes ResetBackColor          
26653         
26654 2005-09-28  Jackson Harper  <jackson@ximian.com>
26655
26656         * MdiChildContext.cs: Obey rules for fixed sized windows (no
26657         sizing or cursor changes). Also added some temp code to draw the
26658         titlebars text (Makes dev a little easier).
26659
26660 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
26661
26662         * ImageList.cs: AddStrip: Throw ArgumentException when Image is not a Bitmap.
26663
26664 2005-09-28  Jordi Mas i Hernandez <jordi@ximian.com>
26665          
26666         * ListBox.cs: Fixes bug 76253
26667
26668 2005-09-28  Kornél Pál  <kornelpal@hotmail.com>
26669
26670         * ImageList.cs: Added comments about the current implementation. Added
26671           ReduceColorDepth, IndexedColorDepths and GetNearestColor to can use
26672           Format32bppArgb to preserve transparency and can use Graphics.FromImage
26673           while using the specified ColorDepth. ReduceColorDepth uses unsafe code
26674           with Bitmap.LockBits for better performance. Revised the whole file to
26675           match MS.NET behaviour and provide better performance. Non-public
26676           interface members are calling public members even when they throw
26677           NotSupportedException for better maintainability. Moved ColorDepth,
26678           ImageSize, ImageStream and TransparentColor implementations to
26679           ImageCollection for better performance as these properties are not used
26680           by ImageList.
26681         * ImageListStreamer.cs: Added a new internal constructor that takes an
26682           ImageList.ImageCollection and serializes Images based on
26683           ImageCollection.ToArray(). Renamed ImageColorDepth to ColorDepth to
26684           match ImageList property name.
26685
26686 2005-09-28  Kazuki Oikawa <kazuki@panicode.com>
26687
26688         * ListBox.cs: Fixes IndexFromPoint for last item
26689
26690 2005-09-27  Jackson Harper  <jackson@ximian.com>
26691
26692         * Form.cs: Set the position of new mdi children correctly.
26693
26694 2005-09-27  Jackson Harper  <jackson@ximian.com>
26695
26696         * MdiClient.cs: New mdi children need to be added to the back of
26697         the controls collection so the zorder is set correctly. Also add a
26698         count of all the child windows that have been created.
26699
26700 2005-09-27  Jackson Harper  <jackson@ximian.com>
26701
26702         * Form.cs (CreateParams): Setup MDI forms correctly.
26703
26704 2005-09-27  Jackson Harper  <jackson@ximian.com>
26705
26706         * MdiChildContext.cs:
26707         * MonthCalendar.cs:
26708         * UpDownBase.cs:
26709         * ListBox.cs:
26710         * ListView.cs:
26711         * TextBoxBase.cs:
26712         * TreeView.cs:
26713         * ScrollableControl.cs:
26714         * ComboBox.cs: Add implicit controls using the new implict control
26715         functionality in ControlCollection. Also try to block multiple
26716         control add in a suspend/resume layout to save some cycles.
26717         
26718 2005-09-27  Jackson Harper  <jackson@ximian.com>
26719
26720         * Control.cs: Add functionality to the controls collection to add
26721         'implicit controls' these are controls that are created by the
26722         containing control but should not be exposed to the user. Such as
26723         scrollbars in the treeview.
26724         * Form.cs: The list var of the ControlsCollection is no longer
26725         available because of the potential of implicit controls getting
26726         ignored by someone accessing the list directly.
26727
26728 2005-09-26  Peter Dennis Bartok  <pbartok@novell.com>
26729
26730         * Control.cs: Fixed SetChildIndex; it no longer causes a child to
26731           loose it's parent. (Fixed bug introduced in r49103 when we added
26732           setting the child parent to null on Remove)
26733
26734 2005-09-26  Gert Driesen  <drieseng@users.sourceforge.net>
26735
26736         * DataGridBoolColumn.cs: Marked CheckState private to fix public API.
26737         * Splitter.cs: Added missing attributes for BorderStyle property.
26738         * TextBoxBase.cs: Marked Calculate* methods internal.
26739         * TextBox.cs: Fixed DefaultValue for PasswordChar property to match
26740         MS.NET.
26741
26742 2005-09-26  Jordi Mas i Hernandez <jordi@ximian.com>
26743          
26744         * ListBox.cs: Fixes navigation to the last item in multicolumn lists
26745
26746 2005-09-25  Jackson Harper  <jackson@ximian.com>
26747
26748         * TreeView.cs: Update the node bounds correctly regardless of
26749         whether the node is visible.
26750
26751 2005-09-25  Jackson Harper  <jackson@ximian.com>
26752
26753         * ImageList.cs: Don't dispose the image after it is added to the
26754         image list. Only reformat images that need to be resized.
26755
26756 2005-09-25  Jackson Harper  <jackson@ximian.com>
26757
26758         * ImageList.cs: Don't set the format when changing the image.
26759
26760 2005-09-25  Jackson Harper  <jackson@ximian.com>
26761
26762         * TreeView.cs: We can't just assume the node has a font. Use the
26763         treeviews font if no node font is available.
26764
26765 2005-09-25  Jackson Harper  <jackson@ximian.com>
26766
26767         * TreeView.cs: Allow the scrollbars to be reset with negative
26768         values.
26769         - Don't add scrollbars to negative sized windows.
26770
26771 2005-09-23  Jackson Harper  <jackson@ximian.com>
26772
26773         * XplatUIX11.cs: Update to use Mono.Posix.Native instead of plain
26774         old Mono.Posix. Also remove some stray code that shouldn't have
26775         been committed.
26776
26777 2005-09-23  Jackson Harper  <jackson@ximian.com>
26778
26779         * TreeView.cs: Attempt at proper sizing of the horizontal
26780         scrollbar. Also don't resize the scrollbars unless they are
26781         visible.
26782
26783 2005-09-23  Jackson Harper  <jackson@ximian.com>
26784
26785         * TreeView.cs: We don't need to expand the invalid area when the
26786         selection changes, as this is all drawn in the node's bounding
26787         box. The area needs to be expanded (previous typo was contracting
26788         it) when the focus rect moves.
26789
26790 2005-09-23  Jackson Harper  <jackson@ximian.com>
26791
26792         * TreeView.cs: Display the selection box under the correct
26793         circumstances. We were rendering white text with no selection box
26794         before.
26795
26796 2005-09-23  Peter Dennis Bartok  <pbartok@novell.com>
26797
26798         * TextControl.cs(Split): Now updates selection start/end if it points 
26799           into a line that's being split. Fixes a FIXME and bug #75258
26800
26801 2005-09-23  Jackson Harper  <jackson@ximian.com>
26802
26803         * Binding.cs:
26804         * ListControl.cs: Don't use the path when retrieving binding
26805         managers from the binding context. My bat sense tells me that the
26806         path is only used on insertion.
26807
26808 2005-09-22  Jackson Harper  <jackson@ximian.com>
26809
26810         * Splitter.cs: Set the cursor an easier way. (Thanks peter).
26811
26812 2005-09-22  Jackson Harper  <jackson@ximian.com>
26813
26814         * Splitter.cs: There are special cursors used for splitting.
26815         * XplatUIX11.cs: The VSplit and HSplit cursors were backwards.
26816
26817 2005-09-22  Jackson Harper  <jackson@ximian.com>
26818
26819         * Splitter.cs: Change the cursor appropriately when the splitter
26820         is moused over, so the user actually knows there is a splitter
26821         there.
26822
26823 2005-09-22 Hisham Mardam Bey <hisham.mardambey@gmail.com>
26824
26825        * Label.cs : Fix ToString method to give same output as MS.NET
26826
26827 2005-09-22  Jackson Harper  <jackson@ximian.com>
26828
26829         * TreeView.cs: Create the scrollbars when the handle is created
26830         and add them right away, just make them invisble. Also account for
26831         the window being shrunk vertically to the point that the vert
26832         scrollbar needs to be added.
26833         - Remove some 0.5 adjustments to get around anti aliasing issues.
26834         
26835 2005-09-22  Jordi Mas i Hernandez <jordi@ximian.com>
26836          
26837         * MainMenu.cs: Fixes default value
26838         * MenuItem.cs: Fixes default value
26839
26840 2005-09-22  Kazuki Oikawa  <kazuki@panicode.com>
26841
26842         * AsyncMethodResult.cs: Fixes Control.Invoke is blocked infinitely.
26843
26844 2005-09-21  Jackson Harper  <jackson@ximian.com>
26845
26846         * Control.cs: Don't try to set the border style on the window if
26847         it hasn't been created. When the window is created the border
26848         style will be used.
26849
26850 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
26851
26852         * Control.cs (Update): Don't call XplatUI if we don't have a
26853           window handle yet
26854
26855 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
26856
26857         * ContainerControl.cs: Instead of throwing an exception, print
26858           a one-time warning about Validate not being implemented
26859         * XplatUIWin32.cs: Removed debug output
26860
26861 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com> 
26862
26863         * Control.cs: Only set XplatUI background if we expect the windowing
26864           system to handle the background. This stops controls that draw their
26865           own background from flickering
26866
26867         * XplatUIX11.cs: Support custom visuals and colormaps for window 
26868           creation. This allows, amongst other things, using MWF X11 windows 
26869           with OpenGL.
26870
26871 2005-09-21  Peter Dennis Bartok  <pbartok@novell.com>
26872
26873         * OpenFileDialog.cs, ContentsResizedEventArgs.cs, LibSupport.cs, GridItem.cs,
26874           CursorConverter.cs, SplitterEventHandler.cs, PropertyGridTextBox.cs,
26875           GridTablesFactory.cs, MethodInvoker.cs, AccessibleEvents.cs,
26876           SplitterEventArgs.cs, XplatUI.cs, Mime.cs, PropertySort.cs,
26877           TreeViewCancelEventHandler.cs, Form.cs, PropertyGridCommands.cs,
26878           IDataGridEditingService.cs, DateBoldEventHandler.cs, Label.cs,
26879           KeyboardLayouts.cs, TextControl.cs, ProgressBar.cs, ToolTip.cs,
26880           RadioButton.cs, OSFeature.cs, LinkLabel.cs, ColorDialog.cs,
26881           ThemeNice.cs, ErrorIconAlignment.cs, TreeNode.cs, MimeGenerated.cs,
26882           ComboBox.cs, DataGridTextBoxColumn.cs, ArrangeStartingPosition.cs,
26883           GridColumnStylesCollection.cs, 
26884           IDataGridColumnStyleEditingNotificationService.cs,
26885           PropertyGrid.cs, IFeatureSupport.cs, ICommandExecutor.cs,
26886           MdiLayout.cs, GridEntry.cs, ControlBindingsCollection.cs,
26887           GridTableStylesCollection.cs, TreeViewCancelEventArgs.cs, 
26888           TreeNodeCollection.cs, AmbientProperties.cs, 
26889           RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
26890           DataObject.cs, ErrorProvider.cs, Splitter.cs,
26891           DataGridLineStyle.cs, Shortcut.cs, Control.cs,
26892           FontDialog.cs, SecurityIDType.cs, GridItemType.cs,
26893           BindingMemberInfo.cs, DataGridCell.cs, MdiChildContext.cs,
26894           IRootGridEntry.cs, PropertyGridView.cs, DataGridParentRowsLabelStyle.cs,
26895           FolderBrowserDialog.cs, OpacityConverter.cs, HelpProvider.cs,
26896           IComponentEditorPageSite.cs, DataGridTableStyle.cs, NavigateEventArgs.cs,
26897           NotifyIcon.cs, ContentsResizedEventHandler.cs, MenuItem.cs,
26898           PropertyTabChangedEventHandler.cs, TextBoxBase.cs, OpenTreeNodeEnumerator.cs,
26899           SelectionMode.cs, TextBox.cs, ListBindingConverter.cs,
26900           FileDialog.cs, KeysConverter.cs, DomainUpDown.cs,
26901           DataFormats.cs, SaveFileDialog.cs, GridItemCollection.cs,
26902           ArrangeDirection.cs, FeatureSupport.cs, SelectionRangeConverter.cs,
26903           RichTextBoxScrollBars.cs, NodeLabelEditEventHandler.cs, TreeNodeConverter.cs,
26904           MimeIcon.cs, X11Structs.cs, PropertyGridEntry.cs,
26905           ImageList.cs, ThemeWin32Classic.cs, X11Keyboard.cs,
26906           CheckedListBox.cs, HelpNavigator.cs, DateTimePickerFormat.cs,
26907           MdiClient.cs, DataGridDrawingLogic.cs, DataGridBoolColumn.cs,
26908           NodeLabelEditEventArgs.cs, Screen.cs, PropertyManager.cs,
26909           ComponentModel.cs, PropertiesTab.cs, CurrencyManager.cs,
26910           SizeGrip.cs, DateBoldEventArgs.cs, X11Dnd.cs, Panel.cs,
26911           Hwnd.cs, OSXStructs.cs, DrawMode.cs, XplatUIDriver.cs,
26912           RichTextBox.cs, PropertyTabChangedEventArgs.cs, CommonDialog.cs,
26913           DataGrid.cs, XplatUIX11.cs, RichTextBoxStreamType.cs, Win32DnD.cs,
26914           ErrorBlinkStyle.cs, TreeViewEventHandler.cs,
26915           PropertyValueChangedEventHandler.cs, IFileReaderService.cs,
26916           DataGridTextBox.cs, SelectedGridItemChangedEventArgs.cs, ScrollBar.cs,
26917           ListBox.cs, TreeViewAction.cs, Help.cs, TrackBar.cs,
26918           AxHost.cs, PropertyValueChangedEventArgs.cs, XplatUIOSX.cs,
26919           RichTextBoxFinds.cs, UpDownEventArgs.cs, Cursors.cs,
26920           CategoryGridEntry.cs, RichTextBoxWordPunctuations.cs, DataGridColumnStyle.cs,
26921           SelectedGridItemChangedEventHandler.cs, DateTimePicker.cs, NavigateEventHandler.cs,
26922           Clipboard.cs, UpDownEventHandler.cs, MonthCalendar.cs,
26923           SendKeys.cs, DataGridPreferredColumnWidthTypeConverter.cs, TreeView.cs,
26924           ThreadExceptionDialog.cs, ImageListConverter.cs, XplatUIWin32.cs,
26925           TreeViewEventArgs.cs: Fixed whitespace and set eol-style:native attribute
26926
26927 2005-09-21  Jackson Harper  <jackson@ximian.com>
26928
26929         * TreeNode.cs: Call Before/After Expand not Collapse when
26930         expanding.
26931
26932 2005-09-20  Jackson Harper  <jackson@ximian.com>
26933         
26934         * XplatUIX11.cs: Use the more hand looking hand (in most themes).
26935
26936 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
26937          
26938         * ListViewItem.cs:
26939                 - Fixes bug 76120
26940                 - Fixes proper storing of subitems
26941                 - Fixes not updated items
26942
26943 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com>
26944
26945         * Control.cs, TextBoxBase.cs, TextControl.cs: Don't do certain
26946           things if our window handle isn't created yet. Also disabled 
26947           debug for TextBoxBase
26948
26949 2005-09-20  Peter Dennis Bartok  <pbartok@novell.com> 
26950
26951         * MenuAPI.cs: Remove filtering of events to allow menu usage
26952
26953 2005-09-20  Miguel de Icaza  <miguel@novell.com>
26954
26955         * Cursor.cs: Allow null to be passed to Cursor.Current.
26956
26957 2005-09-20  Alexander Olk  <alex.olk@googlemail.com>
26958
26959         * ThemeWin32Classic.cs:
26960           - Change some private methods/fields to protected virtual so that 
26961             they can be accessed and overriden in derived classes
26962           - First refactoring of some methods. Derived themes now don't 
26963             need to duplicate the complete code from ThemeWin32Classic
26964         * ThemeNice.cs:
26965           - Added nice StatusBar
26966           - Derive from ThemeWin32Classic and not Theme
26967           - Removed duplicate ThemeWin32Classic code
26968
26969 2005-09-20  Miguel de Icaza  <miguel@novell.com>
26970
26971         * Control.cs (ControlCollection.Add): If the value null is passed
26972         the control is ignored. 
26973
26974         Optimize this loop.
26975
26976 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com> 
26977
26978         * MenuAPI.cs: Replaced Application.Run() with a loop that tracks
26979           PostQuitMessage state.
26980         * XplatUIWin32.cs: Removed bogus PostQuitMessage P/Invoke with HWND arg
26981
26982 2005-09-19  Peter Dennis Bartok  <pbartok@novell.com>
26983
26984         * Application.cs: Our constructor will never get called, move 
26985           initialization to fields; fixes bug #75933
26986
26987 2005-09-19 Hisham Mardam Bey <hisham.mardambey@gmail.com>
26988
26989         * FileDialog.cs :
26990                 - Allow files to be selected properly using file name
26991                 combo box.
26992                 - Add ability to change diretory (absolute / relative)
26993                 using file name combo box.
26994
26995 2005-09-16  Jordi Mas i Hernandez <jordi@ximian.com>
26996          
26997         * ListBox.cs: 
26998                 - Fixes Multicolumn listboxes item wrong calculations
26999                 - Allows to click when only one item is in the listbox
27000                 - Fixes crash when no items using keyboard navigation
27001
27002 2005-09-16  Alexander Olk  <alex.olk@googlemail.com>
27003
27004         * ComboBox.cs: Reverted almost everything from the latest patch which
27005           broke ComboBox
27006
27007 2005-09-16  Kazuki Oikawa <kazuki@panicode.com>
27008         
27009         * ToolTip.cs:
27010                 - Fixed #Mtd2 of ToolTipTest.RemoveToolTipTest.
27011         * ComboBox.cs:
27012                 - When DropDownStyle is Simple, it does not show scrollbar 
27013                 to the last item of the list.
27014                 - When DropDownStyle is Simple, it crashed when the list was 
27015                 scrolled down with the down cursor key.
27016                 - Fixed a bug that when DropDownStyle is DropDownList, the 
27017                 selected item was not shown.
27018                 - The position of the selected item was not preserved when 
27019                 the next dropdown happened.
27020         * ThemeWin32Classic.cs:
27021                 - Items were wrapped at the right end.
27022         * CheckedListBox.cs:
27023                 - Fixed Add method
27024         * ListBox.cs:
27025                 - Items should be fully shown.
27026                 - When resizing and vertical scrollbar disappeared, the item 
27027                 of index 0 should be on the top of the list.
27028                 - GetItemRectangle should consider the size of ver. scrollbar
27029         * StatusBar.cs:
27030                 - SizingGrip area should not be allocated when it is not 
27031                 displayed.
27032                 - Now it reflects MinWidth of the containing panel and 
27033                 fixed a crash that happens when its width becomes so small.
27034
27035 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
27036
27037         * CheckedListBox.cs: Fixes bug 76028
27038         * ListBox.cs: Fixes bug 76028
27039
27040 2005-09-13  Jordi Mas i Hernandez <jordi@ximian.com>
27041
27042         * ThemeWin32Classic.cs: Sets clipping on DataGridPaintRowsHeaders
27043         * DataGridDrawingLogic.cs: fixes issues with Datagrid drawing
27044
27045 2005-09-12  Jordi Mas i Hernandez <jordi@ximian.com>
27046
27047         * XplatUIX11.cs: fixes System.NullReferenceException in some situations
27048
27049 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
27050
27051         * IRootGridEntry.cs: Changed namespace to PropertyGridInternal 
27052
27053 2005-09-09  Jonathan Chambers  <jonathan.chambers@ansys.com>
27054
27055         * IRootGridEntry.cs: Added
27056         * PropertyGridCommands.cs: Added
27057         * PropertiesTab.cs: Added missing methods and property
27058         * PropertyGridView.cs: Made class internal
27059         * PropertyGridTextBox.cs: Made class internal
27060
27061 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
27062
27063         * MimeIcon.cs: Try to check some other environment variables
27064           if "DESKTOP_SESSION" returns "default"
27065
27066 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
27067
27068         * ThemeNice.cs: Corrected background colors (e.g. menus)
27069         * ColorDialog.cs: Use correct background colors for controls
27070
27071 2005-09-09  Alexander Olk  <alex.olk@googlemail.com>
27072
27073         * ThemeNice.cs: Merged r49535 from ThemeWin32Classic
27074
27075 2005-09-08  Peter Dennis Bartok  <pbartok@novell.com>
27076
27077         * RichTextBox.cs: Added initial implementation
27078         * lang.cs: Removed. Was accidentally checked in long time ago
27079         * TODO: Removed. Contents were obsolete
27080
27081 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
27082                                                                                 
27083         * PropertiesTab.cs : Added
27084
27085 2005-09-06  Jonathan Chambers  <jonathan.chambers@ansys.com>
27086                                                                                 
27087         * PropertyGrid.cs : Update
27088         * PropertyGridView.cs : Update
27089         * System.Windows.Forms.resx : Added images and strings
27090
27091 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com> 
27092
27093         * ThemeNice.cs: Do not dispose Pens retrieved from ResPool
27094  
27095 2005-09-06  Peter Dennis Bartok  <pbartok@novell.com>
27096
27097         * XplatUIX11.cs: Force a flush after Ungrab; if case the app enters
27098           a busy loop right after the Ungrab the X11 display is otherwise 
27099           blocked
27100
27101 2005-09-06  Jordi Mas i Hernandez <jordi@ximian.com>
27102
27103         * ThemeWin32Classic.cs: Optimise the use of clipping
27104
27105 2005-09-05  Jordi Mas i Hernandez <jordi@ximian.com>
27106
27107         * DataGrid.cs: fixes recursion bug
27108
27109 2005-09-03  Alexander Olk  <alex.olk@googlemail.com>
27110
27111         * ThemeNice.cs: 
27112           - Draw RadioButton and CheckBox Buttons with DrawButtonBase
27113           - Cleanup
27114
27115 2005-09-02  Alexander Olk  <alex.olk@googlemail.com>
27116
27117         * ThemeNice.cs: Draw nice ProgressBars
27118
27119 2005-09-01  Miguel de Icaza  <miguel@novell.com>
27120
27121         * VScrollBar.cs: Another buglet found by Aaron's tool. 
27122
27123         * ProgressBar.cs: Fix three recursive bugs found by Aaron Tomb's
27124         bug finder.
27125
27126 2005-08-30  Alexander Olk  <alex.olk@googlemail.com>
27127
27128         * ThemeNice.cs:
27129           - Added nicer menu drawing
27130           - Updated DrawTab
27131           - some refactoring
27132
27133 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
27134
27135         * CreateParams.cs (ToString): Made output match MS
27136         * Control.cs (Text): Don't set Text or Focus via XplatUI unless 
27137             handle is already created (to avoid forcing window creation)
27138         * XplatUIX11.cs: Set window text to caption after creating window,
27139           in case Text was set before window was created
27140         * Form.cs: Use this.Text instead of a static string as caption
27141
27142 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
27143
27144         * NotifyIcon.cs: Don't set the window to visible; this screws
27145           up Win32 (causes WM_NCPAINT to be sent on Win32, which calls
27146           OnPaint without a bitmap)
27147         * XplatUIX11.cs: Removed Visible optimization in AddExpose; doesn't 
27148           happen very often anyway; we could add the check to the WM_PAINT 
27149           event generation code
27150
27151 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com>
27152
27153         * NotifyIcon.cs: Fill the icon area with a background color, to 
27154           avoid 'residue' when transparent icons are drawn
27155         * XplatUIX11.cs:
27156           - Handle whole_window == client_window when destroying windows
27157           - SystrayAdd(): Set client_window to whole_window value to
27158             get mouse and other events passed to NotifyIcon
27159
27160 2005-08-30  Peter Dennis Bartok  <pbartok@novell.com> 
27161
27162         * Form.cs: Set proper default for Opacity property
27163         * NotifyIcon.cs:
27164           - ShowSystray(): Don't bother creating telling the OS
27165             about the systray item if no icon is provided
27166           - Now handles WM_NCPAINT message to deal with whole/client window
27167             split
27168           - Create window as visible to not get caught by Expose optimization
27169         * Hwnd.cs: Removed debug message
27170         * ComboBox.cs, ScrollBar.cs, ListBox.cs, TrackBar.cs, TabControl.cs,
27171           StatusBar.cs, TreeView.cs, XplatUIOSX.cs, XplatUIWin32.cs: Switched 
27172             PaintEventStart/End to use new client argument
27173         * TextBoxBase.cs:
27174           - Commented out debug messages
27175           - Switched PaintEventStart/End to use new client argument
27176         * XplatUI.cs: Added client window bool to PaintEventStart()/
27177           PaintEventEnd() calls, to support drawing in non-client areas
27178         * XplatUIDriver.cs: 
27179           - Added client window bool to PaintEventStart()/PaintEventEnd() 
27180             calls, to support drawing in non-client areas
27181           - Added conditional compile to allow using MWF BeginInvoke 
27182             on MS runtime
27183         * XplatUIX11.cs:
27184           - Added some conditional debug output
27185           - Fixed SystrayAdd() method to support new (for SystrayAdd, anyway)
27186             whole/client window split
27187           - Implemented handling of client argument to PaintEventStart()/End()
27188         * Control.cs:
27189           - Throw exception if BeginInvoke() is called and the window handle
27190             or one of the window's parent handles is not created
27191           - Added conditional compile to allow using MWF BeginInvoke on
27192             MS runtime
27193           - get_Parent(): Only sets parent if handle is created. This avoids
27194             forcing window handle creation when parent is set.
27195           - Now fires Layout and Parent changed events in proper order
27196           - Switched to use Handle instead of window.Handle for Z-Order setting,
27197             the get_Parent() patch above causes us to possibly get null for 'window'
27198           - Implemented handling of client argument to PaintEventStart()/End()
27199           - Now reports back to windows that WM_SETCURSOR was handled (to avoid
27200             default handling)
27201           - Now sends a Refresh() to all child windows when Refresh() is called
27202
27203 2005-08-29  Peter Dennis Bartok  <pbartok@novell.com> 
27204
27205         * Form.cs: Added (non-functional) Opacity property
27206         * XplatUIWin32.cs (SystrayAdd): Removed bogus line of code
27207
27208 2005-08-29  Alexander Olk  <xenomorph2@onlinehome.de>
27209         * ThemeNice.cs: New theme for MWF, based on ThemWin32Classic
27210           use export MONO_THEME=nice to activate it.
27211           Currently supported controls:
27212           - Button
27213           - ComboBox
27214           - ScrollBar
27215           - TabControl (TabAlignment.Top only, other will follow)
27216         * ThemeEngine.cs: Add theme nice
27217         * ButtonBase.cs: Redraw button on MouseEnter and MouseLeave everytime,
27218           if enabled
27219
27220 2005-08-25  Jonathan Chambers  <jonathan.chambers@ansys.com> 
27221
27222         * Splitter.cs: Resize docked control and its neighbor.
27223
27224 2005-08-24  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
27225         -- Making Windows with Menus layout correctly --
27226         * Form.cs : The first leg of the fix
27227                 Menu setter - adjust Client Size as needed to make space for the menu
27228                 SetClientSizeCore - doesn't call base version to be able to pass the 
27229                         menu handle to XplatUI.CalculateWindowRect
27230         * Hwnd.cs: Fix for menu_height, now gets from MenuAPI.MENU
27231         * XplatUIX11.cs: The critical second leg of the fix
27232                 GetWindowPos needs to use a recalculated client_rect
27233                 so that resizing the window doesn't break layout of child controls. 
27234                 Also a more complete rule to avoid X Server roundtrips in SetWindowPos
27235                 Lots of \t\n killed
27236
27237 2005-08-23  Peter Dennis Bartok  <pbartok@novell.com> 
27238
27239         * Label.cs: Now properly recalculates width and height on Font and Text
27240           changes if AutoSize is set
27241
27242 2005-08-19  Rafael Teixeira <rafaelteixeirabr@hotmail.com> 
27243         * TreeView.cs : Revamped drawing logic, and support for FullRowSelect
27244
27245 2005-08-19  Jordi Mas i Hernandez <jordi@ximian.com>
27246
27247         * ImageList.cs: Makes ToString method compatible with MS
27248
27249 2005-08-18  Jordi Mas i Hernandez <jordi@ximian.com>
27250
27251         * MenuAPI.cs: fixes bug 75716
27252
27253 2005-08-11 Umadevi S <sumadevi@novell.com>
27254         * Control.cs: Fixed Remove & RemoveAt to make the parent of the control null.
27255
27256 2005-08-11 Umadevi S <sumadevi@novell.com>
27257         * Contorl.cs: Fixed ResetRightToLeft and ResetImeMode to work correctly
27258
27259 2005-08-10  Umadevi S <sumadevi@novell.com>
27260         * CheckedListBox.cs: Fixed event firing on Adding to the CheckedListBox
27261
27262 2005-08-07  Jordi Mas i Hernandez <jordi@ximian.com>
27263
27264         * Menu.cs: fixes bug 75700
27265         * MenuAPI.cs: fixes navigation issues
27266
27267 2005-08-09  Umadevi S <sumadevi@novell.com>
27268         * CheckedListBox.cs - simple fix for GetItemChecked.
27269
27270 2005-08-08  Jordi Mas i Hernandez <jordi@ximian.com>
27271
27272         * ComboBox.cs: Serveral fixes
27273         * ListBox.cs: Serveral fixes
27274
27275 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
27276
27277         * ComboBox.cs: Fixes FindString methods and GetItemHeight
27278         * ListBox.cs: Fixes FindString methods
27279
27280 2005-08-05  Jordi Mas i Hernandez <jordi@ximian.com>
27281
27282         * DataGrid.cs: fixes bugs exposed by new tests
27283
27284 2005-08-04  Peter Dennis Bartok  <pbartok@novell.com> 
27285
27286         * Mime.cs: Compile Mono assembly references only if compiling
27287           with Mono (Allows to build with VS.Net again)
27288
27289 2005-07-28  Marek Safar  <marek.safar@seznam.cz>
27290
27291         * Control.cs (PaintControlBackground): Draw background image
27292         corrrectly.
27293         (CheckForIllegalCrossThreadCalls): Stubbed.
27294         
27295         * Form.cs (OnCreateControl): Center when should be centered.
27296         
27297         * ThemeWin32Classic.cs (DrawPictureBox): Pass size.
27298
27299 2005-07-19  Jordi Mas i Hernandez <jordi@ximian.com>
27300
27301         * Binding.cs: Binding to properties should be case unsensitive
27302
27303 2005-07-18 vlindos@nucleusys.com
27304
27305         * DataGrid.cs: fixes setmember order
27306
27307 2005-07-07  Alexander Olk  <xenomorph2@onlinehome.de>
27308
27309         * MimeIcon.cs: added MimeIcon stuff (MimeIconEngine)
27310         * FileDialog.cs: FileDialog is now resizable and uses the new
27311           MimeIconEngine
27312
27313 2005-07-06  Jordi Mas i Hernandez <jordi@ximian.com>
27314
27315         * DataGridTextBoxColumn.cs: default value
27316         * GridColumnStylesCollection.cs: fixes event firing, checking MappingName
27317         * GridTableStylesCollection.cs: fixes checking MappingName
27318         * DataGridDrawingLogic.cs: fixes drawing logic issues
27319         * DataSourceHelper.cs: rewritten to make compatible with more data sources
27320         * DataGrid.cs: fixes    
27321
27322 2005-07-06  Alexander Olk  <xenomorph2@onlinehome.de>
27323
27324         * MimeGenerated.cs: Use case sensitive comparer for
27325           NameValueCollections
27326
27327 2005-07-01  Jordi Mas i Hernandez <jordi@ximian.com>
27328
27329         * DataGridTextBoxColumn.cs: bug fixes, code refactoring 
27330         * ThemeWin32Classic.cs: bug fixes, code refactoring
27331         * DataGridDrawingLogic.cs:  bug fixes, code refactoring
27332         * DataGrid.cs: bug fixes, code refactoring
27333         * DataGridTextBox.cs: bug fixes, code refactoring
27334         * DataGridColumnStyle.cs:  bug fixes, code refactoring
27335         * Theme.cs:  bug fixes, code refactoring
27336
27337 2005-07-01  Peter Bartok  <pbartok@novell.com> 
27338
27339         * TextControl.cs: Quick fix for the reported crash on ColorDialog
27340           and other text box usage
27341
27342 2005-07-01  Jackson Harper  <jackson@ximian.com>
27343
27344         * TabControl.cs: Make sure the bottom of the tab covers the pages
27345         border.
27346
27347 2005-06-30  Peter Bartok  <pbartok@novell.com> 
27348
27349         * Form.cs (ShowDialog): Assign owner of the dialog
27350         * TextBoxBase.cs: Always refresh caret size when deleting, caret
27351           might have been moved to a tag with different height
27352
27353 2005-06-30  Jackson Harper  <jackson@ximian.com>
27354
27355         * Form.cs: Don't create an infinite loop when setting focus
27356         * MenuItem.cs: Don't dirty the parents if we don't have any
27357
27358 2005-06-29  Ben Maurer  <bmaurer@ximian.com>
27359
27360         * LibSupport.cs: Rename
27361
27362 2005-06-29  Peter Bartok  <pbartok@novell.com>
27363
27364         * TextBoxBase.cs: Re-align caret after deleting a character
27365         * TextControl.cs:
27366           - DeleteChars(): Ensure that tag covers the provided position
27367           - StreamLine(): Drop reference for dropped tag
27368
27369 2005-06-29  Peter Bartok  <pbartok@novell.com> 
27370
27371         * TextControl.cs: 
27372           - Selections now work properly, anchoring at the initial location
27373             and properly extending in either direction (SetSelectionToCaret(),
27374             SetSelectionStart() and SetSelectionEnd())
27375           - No longer redraws the whole control on selection change, now
27376             calculates delta between previous and new selection and only
27377             invalidates/redraws that area
27378           - Fixed FindPos() math off-by-one errors
27379           - Changed DeleteChars() to verify the provided tag covers the
27380             provided position, selections may have a tag that doesn't cover
27381             the position if the selection is at a tag border
27382           - Fixed off-by-one errors in DeleteChars()
27383           - Added missing streamlining check in DeleteChars() to remove
27384             zero-length tags
27385           - Implemented Invalidate() method, now properly calculates exposures
27386             between two given lines/positions
27387           - Implemented SetSelection()
27388           - Obsoleted and removed FixupSelection()
27389           - Improved RecalculateDocument() logic, removing code duplication
27390
27391 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27392
27393         * LibSupport.cs: changes to match different input/output arguments.
27394
27395 2005-06-29 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27396
27397         * LibSupport.cs: added libsupport.so init routine.
27398
27399 2005-06-29  Jordi Mas i Hernandez <jordi@ximian.com>
27400         
27401         * ControlBindingsCollection.cs
27402                 - Throws an exception on null datasource when adding
27403                 - Checks for duplicated bindings when adding
27404
27405 2005-06-28  Jackson Harper  <jackson@ximian.com>
27406
27407         * TreeView.cs (OnKeyDown): Support left and right properly
27408         (navigates as well as expanding and collapsing.
27409         - Add support for Multiply, this expands all the selected nodes
27410         children.
27411         - Fix some tabbing.
27412
27413 2005-06-28  Jackson Harper  <jackson@ximian.com>
27414
27415         * TreeView.cs: Implement keyboard navigation, currently supports,
27416         LEFT, RIGHT, UP, DOWN, PGUP, PGDOWN, HOME, END, ADD, SUBTRACT. Add
27417         support for toggling checkboxes with the space bar.
27418
27419 2005-06-28  Jackson Harper  <jackson@ximian.com>
27420
27421         * OpenTreeNodeEnumerator.cs: Don't move past the begining of the
27422         tree.
27423
27424 2005-06-28  Jackson Harper  <jackson@ximian.com>
27425
27426         * TreeView.cs: Add missing event.
27427
27428 2005-06-27  Peter Bartok  <pbartok@novell.com> 
27429
27430         * TextControl.cs:
27431           - Made line ending size configurable (now allows for counting 
27432             lineendings as \n or \r\n)
27433           - Added margin to viewport to keep caret visible on right side
27434           - Fixed translation routines for line/pos to documentpos to consider
27435             cr/lf when counting (Fixes RichTextBox.SelectionFont issues)
27436           - Fixed some line-endings to be unix style
27437           - Fixed Document.FormatText to perform it's calculations 1-based
27438           - Added descriptions for a few methods that might otherwise get 
27439             used wrong
27440           - Added NOTE section with some basic conventions to remember at 
27441             the top of the file
27442           - Major fixup for RichTextBox selection drawing:
27443             * Fixed crashes when multiple tags on a single line were selected
27444             * fixed selection box drawing not overlaying text
27445             * fixed bogus offset calculation for tags not starting at index 1
27446             * Switched behaviour from using multiple Substrings of a 
27447               StringBuilder.ToString() to using multiple 
27448               StringBuilder.ToString(start, length) statements, hoping this is
27449               faster (kept original version commented out in the code, in case
27450               original version was faster)
27451         * TextBox.cs (set_TextAlignment): TextBox always needs to wrap if 
27452           alignment != Left
27453         * TextBoxBase.cs (CalculateDocument): Made protected so RichTextBox can
27454           call it as well
27455
27456 2005-06-27  Jackson Harper  <jackson@ximian.com>
27457
27458         * TabControl.cs: Move to the left and right with the arrow
27459         keys. These keys don't cycle beyond first and last like
27460         tab. Refresh all the tabs when scrolling them to the left or
27461         right.
27462
27463 2005-06-27  Jackson Harper  <jackson@ximian.com>
27464
27465         * TabControl.cs:
27466           - ToString: Added method
27467           - CreateParams: Remove TODO and comment
27468           - OnKeyDown: Cycle through bounds properly.
27469           - SelectedIndex: Scroll to the right or left if we need to
27470           display the newly selected tab.
27471
27472 2005-06-23  Jackson Harper  <jackson@ximian.com>
27473
27474         * TabControl.cs: Stay in bounds when cycling. Make sure Handled is
27475         set.
27476
27477 2005-06-23  Jackson Harper  <jackson@ximian.com>
27478
27479         * TabControl.cs: Keyboard handling. We now support CTRL-TAB,
27480         CTRL-SHIFT-TAB, and HOME, END are there any others?
27481
27482 2005-06-23  Jackson Harper  <jackson@ximian.com>
27483
27484         * XplatUIX11.cs: Get the modifier keys from the keyboard driver.
27485
27486 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
27487         
27488         * DataGridTextBoxColumn.cs: fixes and enhancements
27489         * ThemeWin32Classic.cs: fixes and enhancements
27490         * DataGridBoolColumn.cs:  fixes and enhancements
27491         * DataGridDrawingLogic.cs:  fixes and enhancements
27492         * CurrencyManager.cs: fixes and enhancements
27493         * DataGrid.cs: fixes and enhancements
27494         * DataGridColumnStyle.cs:  fixes and enhancements
27495
27496 2005-06-22  Jackson Harper  <jackson@ximian.com>
27497
27498         * TabControl.cs: Add some missing methods that just call into the
27499         base. Make the TabPageCollection's IList interface behave in the
27500         same manner as the MS implementation.
27501
27502 2005-06-22  Peter Bartok  <pbartok@novell.com> 
27503
27504         * TextControl.cs: Added sanity check
27505         * TextBoxBase.cs: 
27506           - Fixed wrapping behaviour, don't set wrap on single line controls
27507             (this fixes the breakage of colordialog introduced in an earlier
27508              checkin)
27509           - Added rudimentary support for autoscrolling right-aligned controls
27510             (still needs fixing, also, center alignment scroll is missing)
27511
27512 2005-06-22  Jordi Mas i Hernandez <jordi@ximian.com>
27513         
27514         * ScrollBar.cs: Fixes thumbpos on Maximum values
27515
27516 2005-06-21  Jonathan Chambers <jonathan.chambers@ansys.com>
27517         
27518         * PropertyGridView.cs: Pass context information to UITypeEditors 
27519
27520 2005-06-21  Peter Bartok  <pbartok@novell.com> 
27521
27522         * TextBoxBase.cs:
27523           - Now calling PositionCaret with absolute space coordinates
27524           - Enabled vertical scrolling
27525           - Better tracking of scrollbar changes, tied into WidthChange
27526             event
27527           - Improved cursor tracking
27528           - Removed debug output
27529         * TextControl.cs:
27530           - PositionCaret coordinates are now works in absolute space, not 
27531             the canvas
27532           - Improved tracking of document size
27533           - Added events for width and height changes
27534
27535 2005-06-21  Peter Bartok  <pbartok@novell.com>
27536
27537         * Form.cs: Set focus to active control when form is activated
27538         * TextControl.cs: 
27539           - Added word-wrap functionality to RecalculateLine() 
27540           - Added some short function descriptions for VS.Net to aid in
27541             writing dependent controls
27542           - Added Caret property, returning the current coords of the caret
27543           - Added ViewPortWidth and ViewPortHeight properties
27544           - Added Wrap property
27545           - Added CaretMoved event
27546           - Removed some old debug code
27547           - Split() can now create soft splits
27548           - Added PreviousTag()/NextTag() to allow walking "tag-lists"
27549           - Added method to format existing text
27550           - Fixed size/alignment calculations to use viewport
27551           - RecalculateDocument now can handle changing line-numbers while
27552             calculating lines
27553
27554         * TextBox.cs:
27555           - Added some wrap logic, we don't wrap if alignment is not left
27556           - Added casts for scrollbar var, base class switched types to
27557             also support RichTextBoxA
27558           - Implemented handling of scrollbar visibility flags
27559
27560         * TextBoxBase.cs:
27561           - Switched scrollbars type to RichTextBoxScrollBars to support
27562             RichTextBox
27563           - Added tracking of canvas width/height
27564           - Switched scrollbars to be not selectable (to keep focus on text)
27565           - Added central CalculateDocument() method to handle all redraw
27566             requirements
27567           - Added ReadOnly support
27568           - Added WordWrap support
27569           - Fixed handling of Enter key (we now treat it as a DialogKey)
27570           - Fixed caret positioning when h or v scroll is not zero
27571           - Fixed placing/generation of vertical scrollbar
27572           - Added CalculateScrollBars() method to allow updating scrollbar
27573             limits and visibility
27574           - Fixed handling of horizontal scroll
27575           - Added handling of vertical scroll
27576           - Implemented auto-'jump' when caret moves to close to a left or
27577             right border and there is text to be scrolled into view (currently
27578             there's the potential for a stack overflow, until a bug in
27579             scrollbar is fixed)
27580
27581 2005-06-21  Geoff Norton  <gnorton@customerdna.com>
27582         
27583         * XplatUIOSX.cs: Initial implementation of WM_ERASEBKGND
27584
27585 2005-06-19  Alexander Olk  <xenomorph2@onlinehome.de>
27586
27587         * Mime.cs:
27588         - added inodes.
27589         - return application/x-zerosize for files with size zero
27590           (if no extension pattern matches).
27591         - check matches collection for strings too.
27592         - return only the first mime type if the name value
27593           collection has more than one mime type.
27594
27595 2005-06-18  Jonathan Chambers <jonathan.chambers@ansys.com>
27596         
27597         * PropertyGrid.cs: Cleaned up some TODOs
27598         * PropertyGridView.cs: Added support for UITypeEditors
27599
27600 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
27601         
27602         * DataGrid.cs: clears cached value
27603
27604 2005-06-17  Jordi Mas i Hernandez <jordi@ximian.com>
27605
27606         * DataGridTextBoxColumn.cs: new rows, speed improvements, fixes, readonly prop.
27607         * DataGridDrawingLogic.cs: new rows, speed improvements, fixes, readonly prop.
27608         * DataGrid.cs: new rows, speed improvements, fixes, readonly prop.
27609         * DataGridColumnStyle.cs: new rows, speed improvements, fixes, readonly prop.
27610         
27611 2005-06-16  Jordi Mas i Hernandez <jordi@ximian.com>
27612
27613         * ThemeWin32Classic.cs: fixes colour
27614
27615 2005-06-15  Peter Bartok  <pbartok@novell.com>
27616
27617         * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer support)
27618         * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer support)
27619         * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
27620         * Control.cs: Added some MWFCategory and MWFDescription attributes
27621         * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
27622
27623 2005-06-15  Alexander Olk  <xenomorph2@onlinehome.de>
27624
27625         * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs for
27626         usage
27627
27628 2005-06-14  Jordi Mas i Hernandez <jordi@ximian.com>
27629
27630         * DataGridTextBoxColumn.cs: default datagrid settings for Default Styles, fixes
27631         * DataGridTableStyle.cs: default datagrid settings for Default Styles, fixes
27632         * DataGridDrawingLogic.cs: default datagrid settings for Default Styles, fixes
27633         * DataGridBoolColumn.cs: default datagrid settings for Default Styles, fixes
27634         * DataGrid.cs: default datagrid settings for Default Styles, fixes
27635         * DataGridColumnStyle.cs: default datagrid settings for Default Styles, fixes
27636
27637 2005-06-13  Jackson Harper  <jackson@ximian.com>
27638
27639         * XplatUIX11.cs: Override SetAllowDrop on X11 so an error message
27640         isn't printed when the user enables dropping. (X11 does accept
27641         drops).
27642         
27643 2005-06-13  Jackson Harper  <jackson@ximian.com>
27644
27645         * TreeView.cs: Remove some TODOS.
27646
27647 2005-06-13  Jackson Harper  <jackson@ximian.com>
27648
27649         * Form.cs: Hook into the mdi framework.
27650         * MdiClient.cs: Use the base control collections add method so
27651         parents get setup correctly. Set the default back colour and dock
27652         style.
27653         * MdiChildContext.cs: New class, this bad actor handles an
27654         instance of an MDI window. Right now there is only basic
27655         support. You can drag, close, and resize windows. Minimize and
27656         Maximize are partially implemented.
27657
27658 2005-06-13  Jackson Harper  <jackson@ximian.com>
27659
27660         * XplatUIX11.cs: Mash numbers together properly, otherwise we get
27661         freaky when both vals are negative. NOTE: There are probably other
27662         places in XplatUIX11 that this needs to be done.
27663
27664 2005-06-13  Jordi Mas i Hernandez <jordi@ximian.com>
27665
27666         * DataGrid.cs: implement missing methods, move KeyboardNavigation
27667         * DataGridColumnStyle.cs: fixes signature
27668
27669 2005-06-12  Jackson Harper  <jackson@ximian.com>
27670
27671         * XplatUIX11.cs: Use sizing cursors similar to the ones on
27672         windows.
27673
27674 2005-06-11  Jackson Harper  <jackson@ximian.com>
27675
27676         * StatusBarPanel.cs: Signature cleanups. Implement
27677         BeginInit/EndInit.
27678
27679 2005-06-10  Jordi Mas i Hernandez <jordi@ximian.com>
27680
27681         * DataGridTextBoxColumn.cs: Honors aligment
27682         * GridColumnStylesCollection.cs: Contains is case unsensitive
27683         * GridTableStylesCollection.cs: several fixes
27684         * DataGridTableStyle.cs: default column creation
27685         * DataGridDrawingLogic.cs: fixes
27686         * CurrencyManager.cs: ListName property
27687         * DataGrid.cs: multiple styles support
27688         * DataGridColumnStyle.cs: fixes
27689         
27690
27691 2005-06-10  Peter Bartok  <pbartok@novell.com>
27692
27693         * Control.cs(Select): Moved SetFocus call to avoid potential
27694           loops if controls change the active control when getting focus
27695         * UpDownBase.cs: Fixes to allow proper keyboard focus after clicking
27696           the up/down buttons
27697
27698 2005-06-10  Matthias Felgner  <matthiasf@voelcker.ocm>
27699
27700         * ImageListConverter.cs: Implemented
27701
27702 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
27703
27704         * MonthCalendar.cs: Wired in NumericUpDown control for year
27705
27706 2005-06-10  John BouAntoun <jba-mono@optusnet.com.au>
27707
27708         * MonthCalendar.cs: Removed MonoTodo attributes on Click and
27709           DoubleClick events, since they are not meant to be fired.
27710
27711 2005-06-09  Peter Bartok  <pbartok@novell.com>
27712
27713         * UpDownBase.cs, NumericUpDown.cs, DomainUpDown.cs: Integrated
27714           Jonathan's standalone controls into MWF, implemented missing
27715           events, attributes and methods; added xxxAccessible classes
27716         * AccessibleObject.cs: Made fields internal so other classes
27717           can change them if needed
27718
27719 2005-06-09  Jonathan Gilbert  <2a5gjx302@sneakemail.com>
27720
27721         * UpDownBase.cs: Complete implementation
27722         * NumericUpDown.cs: Complete implementation
27723         * DomainUpDown.cs: Complete implementation
27724
27725 2005-06-09  Jordi Mas i Hernandez <jordi@ximian.com>
27726
27727         * DataGridTextBoxColumn.cs: drawing fixes
27728         * DataGridCell.cs: fixes ToString method to match MSNet
27729         * DataGridTableStyle.cs: fixes
27730         * DataGridBoolColumn.cs: fixes, drawing
27731         * DataGridDrawingLogic.cs: fixes, new methods
27732         * DataGridTextBox.cs: Keyboard and fixes
27733         * DataGrid.cs:
27734                 - Keyboard navigation
27735                 - Scrolling fixes
27736                 - Row selection (single, multiple, deletion, etc)
27737                 - Lots of fixes
27738         
27739 2005-06-07  Jackson Harper  <jackson@ximian.com>
27740
27741         * ThemeWin32Classic.cs: Clear the background area when drawing
27742         buttons.
27743
27744 2005-06-06  Peter Bartok  <pbartok@novell.com>
27745
27746         * ImageListStreamer.cs: Fixed signature for GetData
27747         * CheckBox.cs: Fixed base class for CheckBoxAccessibleObject
27748         * ComboBox.cs:
27749           - Added missing ChildAccessibleObject class
27750           - Added missing OnXXXFocus overrides, switched to using those
27751             instead of the event handler
27752         * Control.cs:
27753           - Added Parent property for ControlAccessibleObject
27754           - Fixed signatures
27755           - Fixed attributes
27756           - Added ResetBindings()
27757         * ListBindingConverter.cs: Implemented some methods
27758         * ButtonBase.cs: Added missing ButtonBaseAccessibleObject class
27759         * ImageList.cs: Implemented basic handle scheme, removed TODOs
27760         * ContainerControl.cs: Fixed signature, now subscribing to the
27761           ControlRemoved event instead of overriding the handler, LAMESPEC
27762         * CurrencyManager.cs: Added missing attribute
27763         * MonthCalendar.cs: Added missing properties
27764
27765 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
27766
27767         * DataGridColumnStyle.cs: fixes for DataGridColumnStyle
27768         
27769 2005-06-06  Gaurav Vaish and Ankit Jain
27770
27771         * DataSourceHelper.cs: Gaurav Vaish and Ankit Jain patch for databinding
27772         * DataGrid.cs: Gaurav Vaish and Ankit Jain patch for databinding
27773         
27774 2005-06-06  Jordi Mas i Hernandez <jordi@ximian.com>
27775
27776         * Control.cs: fixes CreateParams Width / Height.
27777
27778 2005-06-05  Peter Bartok  <pbartok@novell.com>
27779
27780         * Win32DnD.cs: Removed compilation warnings
27781
27782 2005-06-05  Peter Bartok  <pbartok@novell.com>
27783
27784         * Control.cs (CreateParams): Since we don't know if one of the
27785           properties we use is overridden, lets make sure if we fail accessing
27786           we continue with a backup plan
27787
27788 2005-06-05  Peter Bartok  <pbartok@novell.com>
27789
27790         * Win32DnD.cs:
27791           - Removed debug output
27792           - Added MarshalAs attribute to ensure proper marshalling of FORMATETC
27793             struct
27794           - Plugged resource leak
27795         * XplatUIStructs.cs: Changed ClipboardFormats size to ushort, to match
27796           MS size
27797
27798 2005-06-05  Peter Bartok  <pbartok@novell.com>
27799
27800         * XplatUIWin32.cs: Removed DnD code
27801         * Win32DnD.cs: Implemented drop source and drop target functionality
27802
27803 2005-06-05 Gonzalo Paniagua Javier <gonzalo@ximian.com>
27804
27805         * UpDownBase.cs: remove duplicate addition of event, enable some code
27806         that was commented out.
27807         * NumericUpDown.cs: added missing attributes and Hexadecimal property.
27808         Validate input when a key is pressed. It works fine now for every
27809         combination of Hexadecimal. Only missing some drawing love when sharing
27810         space with other controls.
27811
27812 2005-06-04  Peter Bartok  <pbartok@novell.com>
27813
27814         * Control.cs:
27815           - We need to pass a window for DragDrop, so enable callback events
27816           - Added DnD callback events when being a DragSource
27817         * XplatUI.cs (StartDrag): Added window handle argument
27818         * XplatUIDriver.cs (StartDrag): Added window handle argument
27819         * QueryContinueDragEventArgs: Made fields internally accessible so
27820           drivers can set them
27821         * GiveFeedbackEventArgs: Made fields internally accessible so drivers
27822           can set them
27823
27824 2005-06-03  Jordi Mas i Hernandez <jordi@ximian.com>
27825
27826         * DataGridTextBoxColumn.cs: column text editing
27827         * DataGridTableStyle.cs: Respect columns styles created by the user
27828         * DataGridDrawingLogic.cs: lots of drawing fixes and enhanments
27829         * DataGridBoolColumn.cs: bool column editing
27830         * DataGrid.cs: fixes to scrolling, properties, etc
27831         * DataGridTextBox.cs: handle keyboard
27832         * DataGridColumnStyle.cs: fixes
27833
27834 2005-06-02  Jackson Harper  <jackson@ximian.com>
27835
27836         * ImageListStreamer.cs: Somewhat broken implementation of
27837         GetObjectData. The RLE needs some work to match MS properly.
27838
27839 2005-06-02  Jackson Harper  <jackson@ximian.com>
27840
27841         * X11Dnd.cs: Attempting to keep at least one file in MWF
27842         monostyled.
27843
27844 2005-06-02  Peter Bartok  <pbartok@novell.com>
27845
27846         * X11DnD.cs: Use Marshal.SizeOf instead of sizeof, no /unsafe required
27847           that way
27848
27849 2005-06-02  Peter Bartok  <pbartok@novell.com>
27850
27851         * Control.cs: Removed MonoTODO from DoDragDrop and added call to Xplat
27852         * XplatUI.cs: Added DoDragDrop() method
27853         * XplatUIDriver.cs: Added DoDragDrop() method
27854
27855 2005-06-02  Jackson Harper  <jackson@ximian.com>
27856
27857         * Splitter.cs: Implement BorderStyle.
27858
27859 2005-06-02  Jackson Harper  <jackson@ximian.com>
27860
27861         * XplatUIX11.cs: Tie into the X11Dnd subsystem.
27862         * X11Dnd.cs: New file. A subsystem that handles drag and drop on
27863         X11 using XDND.
27864
27865 2005-06-02  Peter Bartok  <pbartok@novell.com>
27866
27867         * DataObject.cs:
27868           - Added Data setter
27869           - Fixed broken insertion code for SetData, now also
27870             overwrites any existing entry of the same format name
27871         * Hwnd.cs: Added list of pointers that automatically gets
27872           freed when the window is disposed
27873         * XplatUI.cs: Call driver initialization method when loading
27874           a driver
27875         * Control.cs:
27876           - OnDragLeave takes EventArgs, not DragEventArgs
27877           - Added setting of WS_EX_ACCEPTFILES style when dropping is
27878             supported
27879           - Forces style update when drop state changes
27880         * XplatUIWin32.cs: Implemented Drag'n'Drop (as good as possible,
27881           not perfect since we cannot (yet) call the IDataObject.GetData()
27882           method, we keep getting 0x80004005 error, dunno why)
27883
27884 2005-06-02  Peter Bartok  <pbartok@novell.com>
27885
27886         * DragEventArgs.cs: Make fields internal so we can cache the
27887           object and re-set the fields from XplatUI
27888
27889 2005-06-02  Jackson Harper  <jackson@ximian.com>
27890
27891         * Control.cs: Add some internal methods so the DnD subsystem can
27892         raise DnD events. Also call into the driver when AllowDrop is set.
27893         * XplatUI.cs:
27894         * XplatUIDriver.cs: New method for setting whether or not a window
27895         is allowed to accept drag and drop messages.
27896                 
27897 2005-06-01  Jordi Mas i Hernandez <jordi@ximian.com>
27898         
27899         * ScrollBar.cs: Make sure that values sent in Scroll events
27900         are always between Maximum and Minimum.
27901
27902 2005-06-01  Marek Safar  <marek.safar@seznam.cz>
27903
27904         * Menu.cs: Call MenuChanged when menuitem visibility has been
27905         changed.
27906         * MenuItem.cs: Rebuild menu when item is (not) visible.
27907         * MainMenu.cs: MainMenu has special MenuChanged.
27908         * Theme.cs: Caption and FrameBorderSize are not fixed.
27909         * XplatUI.cs: Added CaptionHeight,FrameBorderSize.
27910         * XplatUIDriver.cs: Introduced Caption and FrameBorderSize.
27911         * XplatUIX11.cs,
27912         * XplatUIOSX: Caption and FrameBorderSize not implemented yet.
27913         * XplatUIWin32.cs: Get Caption and FrameBorderSize from system.
27914
27915 2005-05-30  Jackson Harper  <jackson@ximian.com>
27916
27917         * DataFormat.cs: We can't statically initialize this stuff because
27918         it calls into the xplatui and could create a loop. So we lazy init
27919         it.
27920
27921 2005-05-28  Jackson Harper  <jackson@ximian.com>
27922
27923         * Control.cs: Proper implementation of Product(Name/Version).
27924
27925 2005-05-27  Jackson Harper  <jackson@ximian.com>
27926
27927         * DataObject.cs: Dont crash if no data is found.
27928
27929 2005-05-26  Rafael Teixeira  <rafaelteixeirabr@hotmail.com>
27930         * MdiClient.cs: Add missing Localizable attribute to BackgroundImage property
27931                 as per status page, guessing it should be set to true
27932
27933 2005-05-26  Jordi Mas i Hernandez <jordi@ximian.com>
27934
27935         * DataGridTextBoxColumn.cs: Draws text and basic text formatting
27936         * DataGridTableStyle.cs: set proper formatting text, def header text
27937         * ThemeWin32Classic.cs: new themable paramaters
27938         * DataGridBoolColumn.cs: paint check box, get data, fixes
27939         * DataGridDrawingLogic.cs: huge improvements in painting, fixes, new methods
27940         * DataGrid.cs: fixes properties, implements vertical and horizontal scrolling
27941         * DataGridColumnStyle.cs: fixes
27942         * Theme.cs: new themable paramaters
27943                 
27944 2005-05-26  Peter Bartok  <pbartok@novell.com>
27945
27946         * ContainerControl.cs: Pass AdjustFormScrollbars() call on to base
27947
27948 2005-05-24 Jonathan S. Chambers <jonathan.chambers@ansys.com>
27949         * Control.cs: Fixed LowOrder and HighOrder to preserve sign.
27950
27951 2005-05-24  Peter Bartok  <pbartok@novell.com>
27952
27953         * OpenFileDialog.cs, Form.cs, Menu.cs, GroupBox.cs, UserControl.cs,
27954           Label.cs, DataGridTextBoxColumn.cs, PropertyGrid.cs, ErrorProvider.cs
27955           Splitter.cs, Control.cs, FontDialog.cs, TabPage.cs,
27956           FolderBrowserDialog.cs, HelpProvider.cs, DataGridTableStyle.cs,
27957           NotifyIcon.cs, FileDialog.cs, ListView.cs, SaveFileDialog.cs,
27958           ToolBarButton.cs, ImageList.cs, DataGridBoolColumn.cs, Panel.cs,
27959           DataGrid.cs, DataGridTextBox.cs, ListBox.cs, TrackBar.cs,
27960           AxHost.cs, TabControl.cs, ScrollableControl.cs, ToolBar.cs,
27961           DataGridColumnStyle.cs, PictureBox.cs, DateTimePicker.cs,
27962           StatusBar.cs, MonthCalendar.cs, TreeView.cs: Added
27963           missing attributes, etc
27964         * DataGridPreferredColumnWidthTypeConverter.cs: Added
27965
27966 2005-05-24  Peter Bartok  <pbartok@novell.com>
27967
27968         * Help.cs: Added, implemented trivial functions, throws up MessageBox
27969           when user tries to get help
27970         * DataObject.cs, DataFormats.cs, LinkArea.cs,
27971           SelectionRangeConverter.cs, Clipboard.cs : Removed unused variables
27972           to suppress warnings
27973         * XplatUIWin32.cs, XplatUIOSX.cs, XplatUIX11.cs: Removed unused code to
27974           avoid unreachable code warning
27975
27976 2005-05-20  Peter Bartok  <pbartok@novell.com>
27977
27978         * CursorConverter.cs (ConvertTo): Switched to use Cursor.GetObjectData
27979
27980 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
27981
27982         * DataGridTextBoxColumn.cs: Basic painting methods
27983         * DataGridTableStyle.cs: Set table style in the column
27984         * ThemeWin32Classic.cs: Use Theme for colors
27985         * DataGridDrawingLogic.cs: Implement more drawing
27986         * DataGrid.cs: drawing, theming, enhacements, fixes
27987         * DataGridColumnStyle.cs: fixes, drawing
27988         * Theme.cs: theming for Datagrid
27989
27990 2005-05-20  Peter Bartok  <pbartok@novell.com>
27991
27992         * Cursor.cs: Implemented GetObjectData() method
27993
27994 2005-05-20  Peter Bartok  <pbartok@novell.com>
27995
27996         * Cursors.cs: Added setting of cursor name
27997         * Cursor.cs:
27998           - Implemented constructors
27999           - Implemented Draw and DrawStretched
28000           - Implemented Current property
28001           - Implemented == and != operators
28002           - Implemented Dispose()
28003           - Implemented ToString
28004           - Added missing attributes
28005         * XplatUIX11.cs:
28006           - Added missing reset for OverrideCursor when DoEvents is called
28007           - Fixed creation of cursor, logic was wrong
28008         * XplatUIWin32.cs:
28009           - Added missing reset for OverrideCursor when DoEvents is called
28010           - Fixed creation of cursor, bit arrays were swapped
28011         * Clipboard.cs: Removed obsolete MonoTODO attribute
28012
28013 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
28014
28015         * ComboBox.cs: fixes OnSelectedItemChanged
28016         * ControlBindingsCollection.cs: fixes item range check
28017
28018 2005-05-20  Jordi Mas i Hernandez <jordi@ximian.com>
28019
28020         * UpDownBase.cs:
28021                 - Calc preferred height properly
28022                 - Implement missing properties
28023                 
28024         * NumericUpDown.cs: Implement missing events
28025
28026 2005-05-19  Jackson Harper  <jackson@ximian.com>
28027
28028         * TabControl.cs: New method that resizes the tab pages before
28029         redrawing them. This as needed as the control is double buffered
28030         and sizing will not be recalculated unless ResizeTabPages is
28031         called.
28032         * TabPage.cs: Set base.Text instead of Text in the constructor so
28033         that UpdateOwner does not get called. Use the new Redraw method of
28034         TabControl instead of Refresh so the sizing is recalculated.
28035         * ThemeWin32Classic.cs: Draw the text for button tabs.
28036
28037 2005-05-19  Jackson Harper  <jackson@ximian.com>
28038
28039         * Control.cs: Paint control background images. Fix typo where
28040         PaintControlBackground was not getting called correctly.
28041
28042 2005-05-19  Peter Bartok  <pbartok@novell.com>
28043
28044         * ScrollableControl.cs (DisplayRectangle): Undid my last change until
28045           I can investigate, apparently I broke FileDialog
28046
28047 2005-05-19  Marek Safar  <marek.safar@seznam.cz>
28048
28049         * AxHost.cs: Some simple properties.
28050         * Control.cs: window must be accessible after ctor.
28051         * Form.cs: Added TransparencyKey property.
28052         * TextBoxBase.cs: Implemented Clear. Text property can be null.
28053         * XplatUIWin32.cs: SetBorderStyle implemented.
28054
28055 2005-05-18  Peter Bartok  <pbartok@novell.com>
28056
28057         * DataObject.cs: Entries are not global but particular to the
28058           DataObject, now it behaves that way
28059         * XplatUIWin32.cs: Implemented Clipboard methods
28060         * Clipboard.cs: Implemented
28061         * ScrollableControl.cs (DisplayRectangle): Fixed calculation
28062         * XplatUIOSX.cs: Updated to final clipboard prototypes
28063         * XplatUIX11.cs: Implemented Clipboard methods
28064         * XplatUIDriver.cs: Updated to final clipboard prototypes
28065         * XplatUIStructs.cs:
28066           - Added BITMAPINFOHEADER struct
28067           - Added ClipboardFormats enum
28068         * X11Structs.cs:
28069           - Added ClipboardStruct
28070           - Added Atom enum items for clipboard types
28071           - Fixed atom types for Selection event structures
28072         * DataFormats.cs:
28073           - Added internal properties and methods for drivers to enumerate
28074             all known formats
28075           - Switched initialization method to allow drivers to assign their
28076             own IDs even for the MS predefined clipboard IDs
28077         * XplatUI.cs: Updated to final clipboard interface
28078
28079 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
28080         * PropertyGridView.cs: Fixed compiler warnings.
28081
28082 2005-05-18 Jonathan S. Chambers <jonathan.chambers@ansys.com>
28083         * PropertyGrid.cs: Added some event calls
28084         * PropertyGridView.cs: Change drawing code to use double buffering
28085         * PropertyGridTextBox.cs: Changed Text property name
28086         * GridItem.cs: Added Bounds property.
28087         * GridEntry.cs: Added Bounds property.
28088
28089 2005-05-17  Lluis Sanchez Gual  <lluis@novell.com>
28090
28091         * Binding.cs: Use IsInstanceOfType instead of IsAssignableFrom
28092         since GetType() may not return the correct type if the object is
28093         a remoting proxy.
28094
28095 2005-05-17  Jordi Mas i Hernandez <jordi@ximian.com>
28096
28097         * TreeNodeCollection.cs: fixes get/set item ranges
28098         
28099 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
28100
28101         * ListBox.cs: Kazuki Oikawa's PreferredHeight and ItemHeight fixes
28102                 
28103 2005-05-15  Jordi Mas i Hernandez <jordi@ximian.com>
28104
28105         * ComboBox.cs: Fix item range comparation
28106         * ListView.cs: Fix item range comparation
28107
28108 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
28109
28110         * FontDialog.cs:
28111           - Clear example panel when OnPaint is called
28112           - Better solution for displaying the example panel text
28113           - Select default indexes in the ListBoxes
28114
28115 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
28116
28117         * XplatUIOSX.cs: Avoid painting into invisible views.  Fixes #74926
28118
28119 2005-05-11  Peter Bartok  <pbartok@novell.com>
28120
28121         * LinkArea.cs: Added and implemented LinkAreaTypeConverter class
28122         * SelectionRangeConverter.cs: Implemented
28123         * PropertyGrid.cs: Fixed attribute value
28124         * Control.cs:
28125           - Invoke(): Don't call Begin/EndInvoke if it is not neccessary
28126           - Added Sebastien Pouliot's CAS Stack Propagation fixes
28127         * XplatUIDriver.cs: Added new XplatUIDriverSupport class, for code
28128           that's common to all drivers. First methods to go there are
28129           Sebastien Pouliot's CAS Stack Propagation helper methods
28130         * XplatUIWin32.cs, XplatUIX11.cs, AsyncMethodData.cs: Fixes by
28131           Sebastien Pouliot for CAS Stack Propagation
28132
28133 2005-05-11  Geoff Norton  <gnorton@customerdna.com>
28134
28135         * OSXStructs.cs:
28136           XplatUIOSX.cs: More cosmetic cleanup courtesy of Artyom Tyazhelov (Artyom.Tyazhelov@helmes.ee)
28137
28138 2005-05-12  Jordi Mas i Hernandez <jordi@ximian.com>
28139
28140         * DataGridTextBoxColumn.cs: fixed some members
28141         * GridColumnStylesCollection.cs: indexed column is case insensitive
28142         * DataGridTableStyle.cs: fixes
28143         * ThemeWin32Classic.cs: add new theme parameter
28144         * Theme.cs: add new theme parameter
28145         * DataGridDrawingLogic.cs: Datagrid's drawing logic
28146         * DataGrid.cs: fixes, new internal properties, etc.
28147         * DataGridColumnStyle.cs: allows to set grid value
28148         *
28149
28150 2005-05-10  Peter Bartok  <pbartok@novell.com>
28151
28152         * AccessibleObject.cs:
28153           - Removed MonoTODO attribute on help, method is correct
28154           - Fixed Bounds property
28155         * AxHost.cs: Moved MonoTODO
28156         * ButtonBase.cs: Now setting AccessibleObject properties
28157         * RadioButton.cs: Setting proper AccessibleObject role
28158         * CheckBox.cs: Setting proper AccessibleObject role
28159         * ControlBindingsCollection.cs: Added properties, methods and attributes
28160         * DataFormats.cs: Fixed awkward internal API, and changed to enable
28161           userdefined DataFormats.Format items as well
28162         * ListControl.cs: Removed data_member from the public eye
28163         * OpenFileDialog.cs:
28164           - Made class sealed
28165           - Added missing attributes
28166         * SaveFileDialog.cs: Added missing attributes
28167         * ImageListStreamer.cs: Fixed code that caused warnings
28168         * LinkLabel.cs: Removed unreachable code
28169         * TreeView.cs: Fixed code that caused warnings
28170         * PropertyGridView.cs: Fixed code that caused warnings
28171         * GridColumnStylesCollection.cs: Added missing attributes
28172         * GridTableStylesCollection: Added missing attribute
28173         * PropertyManager: Added .ctor
28174         * SecurityIDType: Added
28175         * DataObject.cs: Implemented class
28176         * LinkArea.cs: Added missing attribute
28177
28178 2005-05-11  Jordi Mas i Hernandez <jordi@ximian.com>
28179
28180         * RadioButton.cs: call base method to allow to fire OnClick event
28181         * UpDownBase.cs: OnMouseUp call base method
28182         * CheckedListBox.cs: call base method before returning
28183         * TrackBar.cs: call base method before returning
28184         
28185
28186 2005-05-10  Peter Bartok  <pbartok@novell.com>
28187
28188         * XplatUIX11.cs: Fix for #74902, check pending timers when peeking
28189           for messages
28190
28191 2005-05-10  Peter Bartok  <pbartok@novell.com>
28192
28193         * DataFormats.cs: Implemented
28194         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs,
28195           XplatUIX11.cs: Added Clipboard APIs
28196         * XplatUIWin32.cs: Implemented Clipboard APIs
28197         * FolderBrowserDialog.cs: Added missing event, attributes
28198
28199 2005-05-10  Jordi Mas i Hernandez <jordi@ximian.com>
28200
28201         * CheckBox.cs: call base method to allow to fire OnClick event
28202
28203 2005-05-09  Sebastien Pouliot  <sebastien@ximian.com>
28204
28205         * XplatUI.cs: Use PlatformID.Unix under NET_2_0.
28206
28207 2005-05-06  Peter Bartok  <pbartok@novell.com>
28208
28209         * XplatUIX11.cs: Redid Jackson's fix, it was causing a busy loop
28210         * Screen.cs: Implemented
28211         * HelpNavigator.cs: Added
28212         * XplatUIWin32.cs: Added SystemParametersInfo call, fixed WorkArea
28213           property
28214         * HelpProvider.cs: Implemented all we can do until we have a CHM
28215           help library (which means that "What's This" does work now)
28216
28217 2005-05-06  Jackson Harper  <jackson@ximian.com>
28218
28219         * XplatUIX11.cs: Fix waking up the main loop.
28220                 
28221 2005-05-05  Peter Bartok  <pbartok@novell.com>
28222
28223         * XplatUI.cs: Updated revision
28224         * Form.cs: Removed enless loop
28225         * GroupBox.cs (OnPaint): Added call to base.OnPaint()
28226         * Label.cs (OnPaint): Added call to base.OnPaint()
28227         * ToolTip.cs: Made ToolTipWindow reusable for other controls
28228         * LinkLabel.cs (OnPaint): Added call to base.OnPaint()
28229         * UpDownBase.cs (OnPaint): Moved base.OnPaint() call to end of method
28230         * AxHost.cs: Added
28231         * ButtonBase.cs: Moved base.OnPaint() call to end of method
28232         * ThemeWin32Classic.cs: Replaced references to ToolTip with references
28233           to ToolTip.ToolTipWindow for drawing and size methods; this allows
28234           reuse of ToolTipWindow by other controls
28235         * SizeGrip.cs: Moved base.OnPaint() call to end of method
28236         * XplatUIX11.cs: Now clipping drawing area (experimental)
28237         * PictureBox.cs: Moved base.OnPaint() call to end of method
28238         * Theme.cs: Fixed ToolTip abstracts to match new format
28239         * ErrorProvider.cs: Implemented
28240
28241 2005-05-05  Jordi Mas i Hernandez <jordi@ximian.com>
28242
28243         * Label.cs: fire events using OnAutoSizeChanged and OnTextAlignChanged
28244         * LinkLabel.cs:
28245                 - Adds cursors
28246                 - Handles focus
28247                 - Implements LinkBehavior
28248                 - Fixes many issues
28249
28250 2005-05-03  Jackson Harper  <jackson@ximian.com>
28251
28252         * ListView.cs: Calculate the scrollbar positioning on resize and
28253         paint, so they get put in the correct place.
28254
28255 2005-05-03  Alexander Olk  <xenomorph2@onlinehome.de>
28256
28257         * ColorDialogs.cs: The small color panels are now handled by
28258           SmallColorControl. This fixes drawing of the focus rectangle
28259           and adds a 3D border.
28260
28261 2005-05-03  Peter Bartok  <pbartok@novell.com>
28262
28263         * Control.cs: Modified version of Jonathan Chamber's fix for
28264           double-buffering
28265
28266 2005-05-03  Jackson Harper  <jackson@ximian.com>
28267
28268         * ListView.cs: Remove redraw variable. Control now handles whether
28269         or not a redraw needs to be done, and will only raise the paint
28270         event if redrawing is needed.
28271
28272 2005-05-03  Jackson Harper  <jackson@ximian.com>
28273
28274         * Splitter.cs: No decorations for the splitter form. Cache the
28275         hatch brush.
28276
28277 2005-05-03  Jackson Harper  <jackson@ximian.com>
28278
28279         * TreeView.cs: Use dashed lines to connect nodes. Use the
28280         ControlPaint method for drawing the focus rect instead of doing
28281         that in treeview.
28282
28283 2005-05-02  Peter Bartok  <pbartok@novell.com>
28284
28285         * LinkLabel.cs: Fixed the fixes from r43566 and 43521
28286
28287 2005-04-29  Jackson Harper  <jackson@ximian.com>
28288
28289         * ThemeWin32Classic.cs: Don't clear the GC that will clear the
28290         entire image buffer. Just clear the clipping rectangle.
28291
28292 2005-04-29  Jackson Harper  <jackson@ximian.com>
28293
28294         * ThemeWin32Classic.cs: Don't draw list view items that are
28295         outside the clipping rectangle.
28296
28297 2005-04-29  Jordi Mas i Hernandez <jordi@ximian.com>
28298
28299         * ListBox.cs: added horizontal item scroll
28300
28301 2005-04-29  Jackson Harper  <jackson@ximian.com>
28302
28303         * ThemeWin32Classic.cs: Remove some old debug code that was
28304         causing flicker with the new double buffering code.
28305
28306 2005-04-29  John BouAntoun  <jba-mono@optusnet.com.au>
28307
28308         * MonthCalendar.cs, DateTimePicker.cs: Made monthcalendar dropdwon
28309         behave like combobox and comboboxlist (still not sure if this is
28310         correct though).
28311
28312 2005-04-28  Jackson Harper  <jackson@ximian.com>
28313
28314         * ThemeWin32Classic.cs: Don't fill the middle of progress
28315         bars. This fills areas outside of the clip bounds that don't need
28316         to be filled.
28317
28318 2005-04-28  Jackson Harper  <jackson@ximian.com>
28319
28320         * Control.cs: Don't expose functionality to touch the image buffers.
28321         * ProgressBar.cs:
28322         * ListView.cs: We do not need to (and no longer can) manipulate
28323         the image buffers directly. All of this is handled by Control.
28324
28325 2005-04-28  Peter Bartok  <pbartok@novell.com>
28326
28327         * RichTextBoxSelectionAttribute.cs, RichTextBoxSelectionTypes.cs,
28328           RichTextBoxScrollBars.cs, RichTextBoxStreamType.cs,
28329           RichTextBoxFinds.cs, RichTextBoxWordPunctuations.cs: Added
28330
28331 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
28332
28333         * Combobox:
28334                 - Adjust control's height for non-simple comboboxes (bug fix)
28335                 - Remove dead code
28336         * MenuAPI.cs: remove unused var
28337         * ScrollBar.cs: remove unsed var
28338                  
28339         * ListBox.cs: unselect items when clearing
28340
28341 2005-04-28  Jordi Mas i Hernandez <jordi@ximian.com>
28342
28343         * ListControl.cs: honors OnPositionChanged and default Selected Item
28344         * ListBox.cs: unselect items when clearing
28345
28346 2005-04-27  Jackson Harper  <jackson@ximian.com>
28347
28348         * X11Keyboard.cs: Initialize a default keyboard and give a warning
28349         if a "correct" keyboard is not found. This will make us not crash,
28350         but might give some users bad keyboard layouts...seems to be the
28351         same thing rewind does.
28352
28353 2005-04-27  Jackson Harper  <jackson@ximian.com>
28354
28355         * BindingManagerBase.cs: Attach the current/position changed
28356         handlers to their respective events.
28357
28358 2005-04-27  Jackson Harper  <jackson@ximian.com>
28359
28360         * Control.cs: Make sure that the first WM_PAINT does a full draw,
28361         not just a blit.
28362         * ThemeWin32Classic.cs: Don't fill the background for picture
28363         boxes. This could overright user drawing.
28364         * ComboBox.cs: Just fill the clipping rect not the entire client
28365         rect when drawing the background. This prevents pieces of the
28366         image buffer from getting overwritten and is theoretically faster.
28367
28368 2005-04-26  Jordi Mas i Hernandez <jordi@ximian.com>
28369
28370         * ComboBox.cs: Databinding support fixes, fire missing events
28371         * ListControl.cs: implement missing methods and properties, fixes
28372         * ThemeWin32Classic.cs: Databiding support on Drawing
28373         * CheckedListBox.cs: Databinding support fixes, fire missing events
28374         * ListBox.cs: Databinding support fixes, fire missing events
28375         
28376 2005-04-25  Peter Bartok  <pbartok@novell.com>
28377
28378         * LinkLabel.cs: Length of LinkArea is not allowed to be negative
28379
28380 2005-04-25  Jackson Harper  <jackson@ximian.com>
28381
28382         * TreeView.cs: Use the horizontal scrollbars height not width when
28383         determining how much of the client area is available.
28384
28385 2005-04-25  Jackson Harper  <jackson@ximian.com>
28386
28387         * Control.cs: Double buffering is handled differently now. As per
28388         the spec, the extra buffer is created in the WM_PAINT message and
28389         passed down to the control's drawing code.
28390         * GroupBox.cs:
28391         * Label.cs:
28392         * CheckBox.cs:
28393         * ProgressBar.cs:
28394         * RadioButton.cs:
28395         * ColorDialog.cs:
28396         * ComboBox.cs:
28397         * PropertyGridView.cs:
28398         * UpDownBase.cs:
28399         * MessageBox.cs:
28400         * MenuAPI.cs:
28401         * ListView.cs:
28402         * ButtonBase.cs:
28403         * SizeGrip.cs:
28404         * ScrollBar.cs:
28405         * ListBox.cs:
28406         * TrackBar.cs:
28407         * ToolBar.cs:
28408         * PictureBox.cs:
28409         * DateTimePicker.cs:
28410         * StatusBar.cs:
28411         * TreeView.cs: Update to new double buffering system.
28412         * MonthCalendar.cs: Uncomment block, as Capture is now
28413         working. Update to new double buffering
28414         * LinkLabel.cs: Lazy init the link collection. Update to new double buffering
28415         * PaintEventArgs.cs: New internal method allows us to set the
28416         graphics object. This is used for double buffering.
28417         * ThemeWin32Classic.cs: Give the picture box drawing code a clip
28418         rectangle. The internal paint_area var has been removed from
28419         StatusBar. The clipping rect should be used instead.
28420         * Theme.cs: Give the PictureBox drawing method a clipping rect.
28421         * TabPage.cs: The RefreshTabs method was removed, so just call the
28422         tab controls Refresh method now.
28423         * TabControl.cs: Update to new double buffering. Make sure the
28424         handle is created before sizing the tab pages, otherwise we will
28425         get stuck in a loop.
28426
28427 2005-04-24  Borja Sanchez Zamorano <borsanza@gmail.com>
28428
28429         * LinkLabel.cs: Fix typo, bug #74719; patch
28430           from Borja Sanchez Zamorano
28431
28432 2005-04-22  Jackson Harper  <jackson@ximian.com>
28433
28434         * TreeNode.cs: Implement Handle stuff.
28435         * TreeView.cs: Utility methods so nodes can get/lookup by handle.
28436
28437 2005-04-22  Jordi Mas i Hernandez <jordi@ximian.com>
28438
28439         * DataGridTextBoxColumn.cs: call base constructors, fixes
28440         * GridColumnStylesCollection.cs: missing events, methods, and functionality
28441         * GridTableStylesCollection.cs: fixes, check duplicate mapping names
28442         * DataGridTableStyle.cs: implements create default column styles
28443         * DataGridBoolColumn.cs: which types can handle
28444         * DataGrid.cs: missing methods, fixes, new functionality
28445         * DataGridColumnStyle.cs: fixes
28446
28447 2005-04-20  Alexander Olk  <xenomorph2@onlinehome.de>
28448         * FolderBrowserDialog.cs:
28449         - Use a thread to fill the TreeView
28450         - Adjusted some sizes
28451
28452 2005-04-19  Peter Bartok  <pbartok@novell.com>
28453
28454         * LinkLabel.cs: (Re-)create the pieces when setting the Text
28455           property. Fixes #74360.
28456
28457 2005-04-19  Jackson Harper  <jackson@ximian.com>
28458
28459         * XEventQueue.cs: Lock when getting the lockqueue size.
28460         * PictureBox.cs: Call base OnPaint
28461         
28462 2005-04-19  Peter Bartok  <pbartok@novell.com>
28463
28464         * XplatUIX11.cs: Fixed bug introduced with the HWND rewrite, Async
28465           messages were no longer being processed (this broke BeginInvoke)
28466
28467           
28468 2005-04-18  Jackson Harper  <jackson@ximian.com>
28469
28470         * TreeView.cs: buglet that caused node images to get drawn
28471         regardless of whether or not they were in the clipping rectangle.
28472
28473 2005-04-18  Jackson Harper  <jackson@ximian.com>
28474
28475         * CurrencyManager.cs: There are four rules for GetItemProperties:
28476         - If the type is an array use the element type of the array
28477         - If the type is a typed list, use the type
28478         - If the list contains an Item property that is not an object, use
28479         that property
28480         - use the first element of the list if there are any elements in
28481         the list.
28482         
28483 2005-04-17  Jackson Harper  <jackson@ximian.oom>
28484
28485         * TreeView.cs: Calculate plus minus and checkbox bounds when there is a
28486         click. This handles offsets for scrolling properly and reduces
28487         memory. Also fixed GetNode to not offset now that TopNode works
28488         properly.
28489         * TreeNode.cs: No longer need to track the plus minus or checkbox bounds.
28490         
28491 2005-04-17  Jackson Harper  <jackson@ximian.com>
28492
28493         * CursorConverter.cs: Initial implementation.
28494
28495 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
28496
28497         * ListControl.cs: work towards complex data binding support on ListControl
28498         * CurrencyManager.cs: work towards complex data binding support on ListControl
28499         * ListBox.cs: work towards complex data binding support on ListControl
28500
28501
28502 2005-04-15  Jordi Mas i Hernandez <jordi@ximian.com>
28503
28504         * GridTableStylesCollection.cs: fixes name and constructor
28505         * DataGridTableStyle.cs: fixes
28506         * DataGridBoolColumn.cs: fixes names and constructors
28507         * DataGrid.cs: define methods and properties. Some init implementations
28508         * DataGridCell.cs: define methods and properties. Some init implementations
28509         * GridTablesFactory.cs: Define methods and properties
28510
28511 2005-04-15  Geoff Norton  <gnorton@customerdna.com>
28512
28513         * XplatUIOSX.cs:  Handle proper mouse tracking even if the current
28514         graphics port changes.  We still want the coordinates in global screen
28515         coordinates.
28516
28517 2005-04-14  Jackson Harper  <jackson@ximian.com>
28518
28519         * TreeView.cs: Handle clicks when plus minus is disabled. Don't
28520         check plus minus or checkbox clicks unless those features are enabled.
28521
28522 2005-04-14  Jackson Harper  <jackson@ximian.com>
28523
28524         * TreeView.cs: Add methods for setting the top and bottom visible
28525         nodes. TreeNode::EnsureVisible uses these methods.
28526         * TreeNode.cs: Implement EnsureVisible
28527
28528 2005-04-13  Jordi Mas i Hernandez <jordi@ximian.com>
28529
28530         * Form.cs: Pospone menu assignation if the window has not been created yet
28531         * XplatUIWin32.cs: Fixes Win32SetWindowPos, then does not change window
28532         size and position
28533
28534 2005-04-12  Jackson Harper  <jackson@ximian.com>
28535
28536         * TreeView.cs: Set the TopNode properly when scrolling
28537         occurs. This has the added benifit of reducing the amount of
28538         walking that needs to be done when drawing. Also removed an old
28539         misleading TODO.
28540         * OpenTreeNodeEnumerator.cs: Fix moving backwards.
28541         
28542 2005-04-11  Jordi Mas i Hernandez <jordi@ximian.com>
28543
28544         * Timer.cs: fixes interval setting when the timer is already enabled
28545         
28546 2005-04-10  Alexander Olk  <xenomorph2@onlinehome.de>
28547
28548         * FolderBrowserDialog.cs: First approach
28549
28550 2005-04-09  Peter Bartok  <pbartok@novell.com>
28551
28552         * FolderBrowserDialog: Added
28553
28554 2005-04-07  Jordi Mas i Hernandez <jordi@ximian.com>
28555
28556         * LinkLabel.cs: move drawing code into the theme
28557         * ThemeWin32Classic.cs: drawing code and painting background bugfix
28558         * Theme.cs: define DrawLinkLabel method
28559
28560 2005-04-05  Jackson Harper  <jackson@ximian.com>
28561
28562         * BindingContext.cs: Use weak references so these bad actors don't
28563         stay alive longer then they need to.
28564
28565 2005-04-05  Jackson Harper  <jackson@ximian.com>
28566
28567         * ListControl.cs: Basic implementation of complex databinding.
28568         * ComboBox.cs:
28569         * ListBox.cs: Add calls to ListControl databinding methods.
28570
28571 2005-04-05  Alexander Olk  <xenomorph2@onlinehome.de>
28572
28573         * FileDialog.cs:
28574           - Don't change PopupButtonState to Normal when the
28575             PopupButton gets pressed several times.
28576           - Renamed ButtonPanel to PopupButtonPanel
28577
28578 2005-04-05  Jordi Mas i Hernandez <jordi@ximian.com>
28579
28580         * ColorDialog.cs: Use cached objects instead of creating them
28581         * LinkLabel.cs: Use cached objects instead of creating them
28582         * Splitter.cs: Use cached objects instead of creating them
28583         * FontDialog.cs: Use cached objects instead of creating them
28584         * PropertyGridView.cs: Use cached objects instead of creating them
28585         * MessageBox.cs: Use cached objects instead of creating them
28586         * FileDialog.cs: Use cached objects instead of creating them
28587         * ThemeWin32Classic.cs: Use cached objects instead of creating them
28588         * TreeView.cs: Use cached objects instead of creating them
28589         
28590 2005-04-04  Jordi Mas i Hernandez <jordi@ximian.com>
28591
28592         * Control.cs: use Equals to compare the font since no == op
28593         * ScrollBar.cs: use Equals to compare the font since no == op
28594
28595 2005-04-04  Alexander Olk  <xenomorph2@onlinehome.de>
28596
28597         * SaveFileDialog.cs: Open stream in OpenFile with FileMode Create
28598
28599 2005-04-01  Jackson Harper  <jackson@ximian.com>
28600
28601         * Binding.cs: Implement IsBinding.
28602         * BindingManagerBase.cs:
28603         * PropertyManager.cs:
28604         * CurrencyManager.cs: Add IsSuspended property.
28605
28606 2005-04-01  Jackson Harper  <jackson@ximian.com>
28607
28608         * Binding.cs: Had some IsAssignableFrom calls backwards.
28609
28610 2005-04-01  Jackson Harper  <jackson@ximian.com>
28611
28612         * Binding.cs: Handle null data members when pulling data.
28613         * PropertyManager.cs: Handle the data member being a property that
28614         does not exist.
28615
28616 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
28617
28618         * DataGridTextBoxColumn.cs: fixes signature
28619         * DataGrid.cs: calls right constructor
28620
28621 2005-04-01  Jordi Mas i Hernandez <jordi@ximian.com>
28622
28623         * DataGridTextBoxColumn.cs: implements DataGridTextBoxColumn class
28624         * GridColumnStylesCollection.cs: implements GridColumnStylesCollection
28625         * GridTableStylesCollection.cs: implements GridTableStylesCollection
28626         * DataGridTableStyle.cs: implements DataGridTableStyle
28627         * DataGridBoolColumn.cs: implements DataGridBoolColumn
28628         * DataGridTextBox.cs: implements DataGridTextBox
28629         * DataGridColumnStyle.cs: implements DataGridColumnStyle
28630
28631 2005-03-31  Alexander Olk  <xenomorph2@onlinehome.de>
28632
28633         * FileDialog.cs: Added simple PopupButton class for ButtonPanel
28634
28635 2005-03-29  Peter Bartok  <pbartok@novell.com>
28636
28637         * Application.cs:
28638           - Properly implemented CompanyName property
28639           - Fixed LocalUserAppDataPath and UserAppDataPath, now properly
28640             returns a path that includes CompanyName, ProductName and
28641             Version (fixes bug #70330)
28642
28643 2005-03-29  Stefan Buehler  <sbuehler@gmx.ch>
28644
28645         * TabPage.cs: Don't use Owner.DisplayRectangle unless owner is valid,
28646           fixes bug #72588.
28647
28648 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
28649
28650         * FileDialog.cs, SaveFileDialog.cs OpenFileDialog.cs:
28651         
28652           - Added ReadOnly CheckBox
28653           - Further refactoring: moved some code from Open-/SaveFileDialog
28654             to FileDialog
28655
28656 2005-03-28  Alexander Olk  <xenomorph2@onlinehome.de>
28657
28658         * OpenFileDialog.cs: Fixed CheckFileExists
28659         * FileDialog.cs:
28660           Moved FileView and DirComboBox outside FileDialog class.
28661           They can now be used outside FileDialog
28662
28663 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
28664
28665         * FileDialog.cs: Added a contextmenu to change ShowHiddenFiles
28666         * SaveDialog.cs, OpenFileDialog.cs: Fixes for Reset() method
28667
28668 2005-03-27  Alexander Olk  <xenomorph2@onlinehome.de>
28669
28670         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
28671           - Added missing CreatePrompt property in SaveDialog
28672           - Overall SaveDialog handling should be better now
28673           - Added non standard ShowHiddenFiles property
28674           - Added extension, CreatePrompt and OverwritePrompt support in SaveDialog
28675           - Added InitialDirectory and RestoreDirectory support
28676
28677 2005-03-26  Alexander Olk  <xenomorph2@onlinehome.de>
28678
28679         * FileDialog.cs: Made dirComboBox usable
28680
28681 2005-03-24  Alexander Olk  <xenomorph2@onlinehome.de>
28682
28683         * FileDialog.cs: Added Filter support (case sensitiv)
28684
28685 2005-03-24  Jackson Harper  <jackson@ximian.com>
28686
28687         * TabControl.cs: Need a couple more pixels for the lines.
28688
28689 2005-03-23  Jackson Harper  <jackson@ximian.com>
28690
28691         * TabControl.cs: Give the tab page focus when it is selected.
28692
28693 2005-03-23  Jackson Harper  <jackson@ximian.com>
28694
28695         * TabControl.cs: Account for the drawing of tabs borders when
28696         invalidating. If the slider was clicked dont do click detection on
28697         the tabs.
28698
28699 2005-03-23  Jackson Harper  <jackson@ximian.com>
28700
28701         * TabControl.cs: Fix typo, emilinates an unneeded expose event.
28702
28703 2005-03-22  Jonathan Chambers  <jonathan.chambers@ansys.com>
28704
28705         * CategoryGridEntry.cs: Added
28706         * GridItem.cs: Added helper properties
28707         * PropertyGridTextBox.cs: Custom textbox control for PropertyGrid.
28708         * GridEntry.cs: Updated code for collection
28709         * PropertyGrid.cs: Cleaned up some formatting
28710         * PropertyGridView.cs: Added drop down functionality for enums.
28711         * GridItemCollection.cs: Added enumerator logic
28712         * PropertyGridEntry.cs: Added
28713
28714 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
28715
28716         * FileDialog.cs:
28717           - Removed unnecessary commented code
28718           - Fixed handling for entering the filename manually in the combobox
28719
28720 2005-03-19  Alexander Olk  <xenomorph2@onlinehome.de>
28721
28722         * FileDialog.cs, OpenFileDialog.cs: OpenFileDialog Multiselect now works
28723
28724 2005-03-18  Peter Bartok  <pbartok@novell.com>
28725
28726         * ThemeWin32Classic.cs: Moved listview column headers a bit, to avoid
28727           them being touching the border
28728
28729 2005-03-18  Peter Bartok  <pbartok@novell.com>
28730
28731         * TextControl.cs: Quick hack to center text better
28732
28733 2005-03-18  Peter Bartok  <pbartok@novell.com>
28734
28735         * ControlPaint.cs:
28736           - Don't throw NotImplemented exceptions, just print a notice once
28737             instead (requested by Miguel). This makes running existing SWF
28738             apps a bit easier
28739         * Control.cs:
28740           - Commented out Drag'N'Drop XplatUI call (no driver support yet)
28741           - Added context menu trigger on right click
28742         * Panel.cs: Trigger invalidate on resize
28743         * StatusBar.cs:
28744           - Removed old double-buffer drawing
28745           - Added ResizeRedraw style to force proper update of statusbar
28746         * ListView.cs:
28747           - Removed debug output
28748         * ThemeWin32Classic.cs:
28749           - Fixed drawing of status bar, now draws Text property if there
28750             are no defined panels
28751
28752 2005-03-18  Jackson Harper  <jackson@ximian.com>
28753
28754         * ImageList.cs: When the image stream is set pull all the images
28755         from it.
28756         * ImageListStreamer.cs: Implement reading image list streams.
28757
28758 2005-03-18  Peter Bartok  <pbartok@novell.com>
28759
28760         * ThemeWin32Classic.cs (DrawPictureBox):
28761           - Fixed calculations for centered drawing
28762           - Fixed drawing for normal mode, not scaling the image on normal
28763
28764 2005-03-18  Peter Bartok  <pbartok@novell.com>
28765
28766         * ComboBox.cs: Now also firing the OnKeyPress events for the embedded
28767           textbox
28768         * FileDialog.cs:
28769           - Made Open/Save button the accept button for FileDialog
28770           - Tied the cancel button to the IButtonControl cancel button
28771           - Save/Open now properly builds the pathname
28772           - Now handles user-entered text
28773           - Preventing crash on right-click if no item is selected
28774           - Fixed Text property, now uses contents of textbox
28775           - Fixed SelectedText property, now just returns the text part that
28776             is selected in the text box
28777
28778 2005-03-18  Jackson Harper  <jackson@ximian.com>
28779
28780         * ThemeWin32Classic.cs: Use the proper func for drawing the focus
28781         rect, make sure to de-adjust the interior rect after drawing the
28782         tab text.
28783
28784 2005-03-18  Peter Bartok  <pbartok@novell.com>
28785
28786         * MenuAPI.cs: Remove menu *before* executing selected action to
28787           prevent the menu from 'hanging around'
28788           
28789 2005-03-17  Geoff Norton  <gnorton@customerdna.com>
28790
28791         * XplatUIOSX.cs: Implemented WorkingArea property
28792
28793 2005-03-17  Peter Bartok  <pbartok@novell.com>
28794
28795         * XplatUIX11.cs: Fixed menu coord calculations
28796         * MenuAPI.cs: Now using new ScreenToMenu()/MenuToScreen() methods
28797           for calculating offsets
28798
28799 2005-03-17  Peter Bartok  <pbartok@novell.com>
28800
28801         * Hwnd.cs: Do not consider menu presence for default client
28802           rectangle location/size
28803         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs, XplatUIOSX.cs,
28804           XplatUIWin32.cs: Added MenuToScreen() and ScreenToMenu() coord
28805           translation functions
28806         * FileDialog.cs: Fixed (what I presume is a) typo
28807
28808 2005-03-17  Jonathan Gilbert  <logic@deltaq.org>
28809
28810         * XplatUIX11.cs: Added call to XInitThreads() to allow multi-threaded
28811           X access (avoids X-Async errors)
28812
28813 2005-03-16  Jackson Harper  <jackson@ximian.com>
28814
28815         * TabControl.cs: Raise the SelectedIndexChanged event.
28816
28817 2005-03-16  Alexander Olk  <xenomorph2@onlinehome.de>
28818
28819         * FileDialog.cs, OpenFileDialog.cs, SaveFileDialog.cs:
28820           - Removed vertical ToolBar and replaced it with a custom panel
28821             (desktop and home button already work)
28822           - Added Help button (some controls get resized or relocated then)
28823           - Draw correct text depending on Open or Save.
28824           - Fixed some typos...
28825
28826 2005-03-16  Jordi Mas i Hernandez <jordi@ximian.com>
28827
28828         * ScrollBar.cs:
28829           - Only change Maximum and Minimum when need it (bug fix)
28830
28831 2005-03-15  Peter Bartok  <pbartok@novell.com>
28832
28833         * Form.cs: Use Handle for icon, to trigger creation if
28834           the window does not yet exist
28835         * Control.cs:
28836           - CanSelect: Slight performance improvement
28837           - Focus(): Preventing possible recursion
28838           - Invalidate(): Removed ControlStyle based clear flag setting
28839           - WM_PAINT: fixed logic for calling OnPaintBackground
28840           - WM_ERASEBKGND: Fixed logic, added call to new driver method
28841             EraseWindowBackground if the control doesn't paint background
28842         * XplatUIWin32.cs:
28843           - Moved EraseWindowBackground() method to internal methods
28844           - Removed unused WM_ERASEBKGND handling in GetMessage; msg never comes;
28845             is sent via SendMessage on BeginPaint call on Win32
28846         * XplatUIX11.cs:
28847           - Added EraseWindowBackground() method
28848           - No longer sends WM_ERASEBKGND on .Expose, but on call to
28849             PaintEventStart, which more closely matches Win32 behaviour
28850           - Fixed Invalidate() call, now updates new ErasePending Hwnd property
28851           - Fixed SetFocus() to properly deal with client and whole windows
28852         * Hwnd.cs: Added ErasePending property
28853         * XplatUIOSX.cs: Stubbed EraseWindowBackground() method
28854         * XplatUI.cs, XplatUIDriver.cs: Added EraseWindowBackground() method
28855
28856 2005-03-12  Geoff Norton  <gnorton@customerdna.com>
28857
28858         * XplatUIOSX.cs:
28859           - Fix hard loop when timers exist.
28860           - Fix bugs with middle and right click for 3 button mice.
28861
28862 2005-03-11  Peter Bartok  <pbartok@novell.com>
28863
28864         * XplatUIX11.cs:
28865           - get_WorkingArea: Need to call X directly, GetWindowPos only
28866             returns cached data now
28867           - Added sanity check to GetWindowPos hwnd usage
28868
28869 2005-03-11  Jackson Harper  <jackson@ximian.com>
28870
28871         * BindingManagerBase.cs: This method isn't used anymore as
28872         PullData now updates the data in the control.
28873
28874 2005-03-11  Jordi Mas i Hernandez <jordi@ximian.com>
28875
28876         * Form.cs: fixes menu drawing on X11
28877         * MenuAPI.cs:  fixes menu drawing on X11
28878
28879 2005-03-11  Peter Bartok  <pbartok@novell.com>
28880
28881         * Control.cs: Changed OnCreateControl behaviour based on a suggestion
28882           from Jonathan Gilbert; should fix bug #73606
28883         * XplatUIX11.cs: Fixed NC Mouse message coordinates, they need to be
28884           in Screen coordinates. Thanks, Jordi.
28885         * Form.cs: Added missing attribute
28886
28887 2005-03-11  Peter Bartok  <pbartok@novell.com>
28888
28889         * Form.cs:
28890           - Rudimentary Mdi support
28891           - Removed outdated FormParent code
28892           - Implemented lots of missing properties and methods, still missing
28893             transparency support
28894           - Added missing attributes
28895           - Implemented support for MaximumBounds
28896           - Added firing of various events
28897         * XplatUI.cs: Added SetIcon() method
28898         * XplatUIDriver.cs: Added SetIcon() abstract
28899         * XplatUIOSX.cs: Stubbed out SetIcon() method
28900         * XplatUIX11.cs:
28901           - Implemented SetIcon() support
28902           - Moved SetMenu() and SetBorderStyle() to proper alphabetical pos
28903           - Switched to unix line endings
28904         * XplatUIWin32.cs:
28905           - Made POINT internal so for can access it as part of MINMAX
28906           - Implemented SetIcon() support
28907           - Implemented support for CLIENTCREATESTRUCT (but might have to drop
28908             native Mdi support again, might have to go managed)
28909         * Control.cs: Now fires the StyleChanged event
28910         * MdiClient.cs: Added; still mostly empty
28911
28912 2005-03-10  Peter Bartok  <pbartok@novell.com>
28913
28914         * SaveFileDialog.cs: Added emtpy file
28915
28916 2005-03-08  Peter Bartok  <pbartok@novell.com>
28917
28918         * Control.cs: Fixed bug #73190; now invokes CreateControl (which
28919           in turn triggers OnCreateContro) when creating a handle for the
28920           first time.
28921         * TextControl.cs: Fixed endless loop in certain cases when
28922           replacing the current selection
28923
28924 2005-03-08  Jordi Mas i Hernandez <jordi@ximian.com>
28925
28926         * ScrollBar.cs:
28927           - Honors NewValue changes in Scroll events allowing apps to change it
28928           - Adds First and Last Scroll events
28929           - Fixes Thumb events
28930
28931 2005-03-07  Peter Bartok  <pbartok@novell.com>
28932
28933         * Hwnd.cs: Added DefaultClientRectangle property
28934         * XplatUI.cs: Now using the X11 driver Where() method, which provides
28935           more detailed debug information
28936         * XplatUIX11.cs:
28937           - Fixed size-change feedback loop, where we would pull an old size
28938             off the queue and mistakenly change our window's size to an
28939             earlier value
28940           - Now compressing ConfigureNotify events, to reduce looping and
28941             redraw issues
28942         * TextBoxBase.cs: Preventing crash when no text is set and ToString()
28943           is called
28944
28945 2005-03-07  Jackson Harper  <jackson@ximian.com>
28946
28947         * Binding.cs: Push data pushes from data -> property. Check if the
28948         property is readonly when attempting to set it.
28949
28950 2005-03-07  Jackson Harper  <jackson@ximian.com>
28951
28952         * Binding.cs: Format and parse data correctly. Use ASsignableFrom
28953         instead of IsSubclassOf. Pulling data now sets the value on the
28954         control.
28955         * PropertyManager.cs:
28956         * CurrencyManager.cs: Just need to pull data when updating now,
28957         because PullData will set the value on the control.
28958
28959 2005-03-04  Jackson Harper  <jackson@ximian.com>
28960
28961         * Binding.cs: Implement data type parsing and converting on pulled
28962         data. TODO: Are there more ways the data can be converted?
28963
28964 2005-03-04  Jackson Harper  <jackson@ximian.com>
28965
28966         * Binding.cs: Support <Property>IsNull checks. Also bind to the
28967         controls Validating method so we can repull the data when the
28968         control loses focus.
28969
28970 2005-03-03  Jordi Mas i Hernandez <jordi@ximian.com>
28971
28972         * ColumnHeader.cs:
28973           - Fixes null string format
28974           
28975         * ListView.cs:
28976           - Adds enum type checks
28977           - Fixes redrawing and recalc need after changing some properties
28978           - Fixes on focus_item set after the event
28979           - Fixes adding columns after the control has been created
28980           
28981         * ThemeWin32Classic.cs:
28982           - Fixes CheckBox focus rectangle
28983           - Fixes ColumnHeader drawing
28984
28985
28986 2005-03-03  Jackson Harper  <jackson@ximian.com>
28987
28988         * Binding.cs: Bind to <Property>Changed events so we can detect
28989         when properties are changed and update the data.
28990
28991 2005-03-02  Jordi Mas i Hernandez <jordi@ximian.com>
28992
28993         * ImageList.cs:
28994           - Changes 32-bit pixel format to Format32bppArgb to allow transparency
28995           - Fixes ImageList constructor with ImageList container
28996           - Fixes image scaling (wrong parameters at DrawImage)
28997
28998 2005-02-02  Jackson Harper  <jackson@ximian.com>
28999
29000         * Binding.cs: Make property searches case-insensitive. Eliminate
29001         some duplicated code.
29002
29003 2005-03-01  Jordi Mas i Hernandez <jordi@ximian.com>
29004
29005         * ComboBox.cs:
29006                 - Handle focus event
29007                 - Fix scrollbar events
29008                 - Discard highlighted item if remove it
29009                 - Fixes SelectedItem with strings
29010
29011 2005-03-01  Peter Bartok  <pbartok@novell.com>
29012
29013         * Control.cs:
29014           - Fixed Visible property, now follows (once again) parent chain
29015             to return false if any control in the chain is visible=false
29016           - Fixed OnParentVisibleChanged, now just calls OnVisibleChanged event
29017           - Fixed several places where is_visible instead of Visible was used
29018           - Implemented FIXME related to focus selection when setting focused
29019             control to be invisible
29020
29021         * XplatUIWin32.cs: Now using proper method to find out if window is
29022           visible. Thanks to Jordi for pointing it out
29023
29024 2005-02-28  Jordi Mas i Hernandez <jordi@ximian.com>
29025
29026         * ComboBox.cs: show/hide scrollbar instead of creating it
29027
29028 2005-02-27  Jackson Harper  <jackson@ximian.com>
29029
29030         * CurrencyManager.cs: Add PositionChanged stuff.
29031
29032 2005-02-27  Peter Bartok  <pbartok@novell.com>
29033
29034         * XplatUI.cs, XplatUIDriver.cs: Added new GetMenuOrigin() method
29035         * XplatUIOSX.cs: Added GetMenuOrigin() stub
29036         * XplatUIWin32.cs: Implemented GetMenuOrigin()
29037         * XplatUIX11.cs:
29038           - Implemented GetMenuDC()
29039           - Implemented GetMenuOrigin()
29040           - Implemented ReleaseMenuDC()
29041           - Implemented generation of WM_NCPAINT message
29042           - Implemented generation and handling of WM_NCCALCSIZE message
29043         * Form.cs: Added debug helper message for Jordi's menu work
29044         * Hwnd.cs:
29045           - Modified ClientRect property; added setter, fixed getter to handle
29046             setting of ClientRect
29047           - Added MenuOrigin property
29048
29049 2005-02-26  Peter Bartok  <pbartok@novell.com>
29050
29051         * XplatUIX11.cs:
29052           - Destroys the caret if a window that's being destroyed contains it
29053           - Ignores expose events coming from the X11 queue for windows that
29054             already are destroyed
29055           - Now uses the proper variable for handling DestroyNotify, before we
29056             marked the wrong window as destroyed
29057           - Improved/added some debug output
29058
29059 2005-02-26  Peter Bartok  <pbartok@novell.com>
29060
29061         * X11Keyboard.cs: Fixes to work on 64bit systems
29062
29063 2005-02-26  Peter Bartok  <pbartok@novell.com>
29064
29065         * Control.cs:
29066           - Now calling OnHandleDestroyed from DestroyHandle()
29067             instead of Dispose()
29068           - Removed bogus call to controls.Remove() from DestroyHandle()
29069
29070 2005-02-26  Peter Bartok  <pbartok@novell.com>
29071
29072         * Control.cs: Properly destroy child windows when our handle is
29073           destroyed
29074
29075 2005-02-25  Peter Bartok  <pbartok@novell.com>
29076
29077         * XplatUI.cs:
29078           - Added 'DriverDebug' define to allow tracing XplatUI API calls
29079           - Alphabetized Static Methods and Subclasses
29080
29081         * XplatUIX11.cs:
29082           - Added XException class to allow custom handling of X11 exceptions
29083           - Created custom X11 error handler, tied into XException class
29084           - Added support for MONO_XEXCEPTIONS env var to allow the user
29085             to either throw an exception on X errors or continue running
29086             after displaying the error
29087           - Added handling of DestroyNotify message
29088           - Added handler for CreateNotify message (still disabled)
29089           - Improved (tried to at least) Where method to provide file and lineno
29090         * X11Structs.cs:
29091           - Added XErrorHandler delegate
29092           - Added XRequest enumeration (to suppor translation of errors)
29093
29094 2005-02-25  Jackson Harper  <jackson@ximian.com>
29095
29096         * PropertyManager.cs: Implement editing features
29097         * CurrencyManager.cs:
29098         * Binding.cs: First attempt at UpdateIsBinding
29099         * BindingManagerBase.cs: Call UpdateIsBinding before
29100         pushing/pulling data.
29101
29102 2005-02-25  Jordi Mas i Hernandez <jordi@ximian.com>
29103
29104         * MenuAPI.cs: Respect disabled items
29105         * ThemeWin32Classic.cs
29106                 - Caches ImageAttributes creation for DrawImageDisabled
29107                 - Fixes vertical menu line drawing
29108                 - Draws disabled arrows in disable menu items
29109
29110 2005-02-24  Peter Bartok  <pbartok@novell.com>
29111
29112         * Hwnd.cs:
29113           - Added UserData property to allow associating arbitrary objects
29114             with the handle
29115           - Fixed leak; now removing Hwnd references from static windows array
29116         * XplatUIWin32.cs:
29117           - Fixed Graphics leak in PaintEventEnd
29118           - Removed usage of HandleData, switched over to Hwnd class
29119         * HandleData.cs: Removed, obsoleted by Hwnd.cs
29120
29121 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
29122
29123         * ThemeWin32Classic.cs: Adds Cliping to TrackBar drawing
29124         * ScrollBar.cs: Fixes bug
29125         * TrackBar.cs: removes death code, clipping, mimize refreshes,
29126          keyboard navigation enhancements
29127
29128 2005-02-24  Jordi Mas i Hernandez <jordi@ximian.com>
29129
29130         * Control.cs: Call DefWndProc at WM_PAINT only if UserPaint not defined
29131         * GroupBox.cs: Add control styles
29132         * Label.cs: Add control styles
29133         * UpDownBase.cs: Add control styles
29134         * ListBox.cs: Add control styles
29135         * XplatUIWin32.cs: Fixes wrong parameter order
29136
29137
29138 2005-02-23  Chris Bacon  <chris.bacon@docobo.co.uk>
29139
29140         * ListView.cs: Assign owner for ColumnHeader. Patch by Chris Bacon
29141
29142 2005-02-23  Jackson Harper  <jackson@ximian.com>
29143
29144         * PropertyManager.cs: Implement property binding. This doesn't
29145         seem to work yet though as (I think) there are some bugs in
29146         System.ComponentModel.PropertyDescriptor.
29147         * BindingContext.cs: Use new PropertyManager constructor.
29148
29149 2005-02-23  Jordi Mas i Hernandez <jordi@ximian.com>
29150
29151         * ProgressBar.cs: use clip region in ProgressBar
29152         * ThemeWin32Classic.cs: use clip region in ProgressBar
29153
29154 2004-02-22  Jackson Harper  <jackson@ximian.com>
29155
29156         * BindingsCollection.cs: Remove some debug code.
29157
29158 2005-02-22  Jackson Harper  <jackson@ximian.com>
29159
29160         * BindingContext.cs:
29161         * ControlBindingsCollection.cs:
29162         * CurrencyManager.cs:
29163         * Binding.cs:
29164         * BindingManagerBase.cs: Initial implementation
29165         * BindingsCollection.cs: Add an internal contains method that the
29166         BindingManagerBase uses to ensure bindings aren't added twice to
29167         the collection.
29168         * PropertyManager.cs: Stubbed out.
29169         * Control.cs:
29170         * ContainerControl.cs: Hook up databinding
29171         
29172 2005-02-22  Geoff Norton  <gnorton@customerdna.com>
29173
29174         * XplatUIOSX.cs:
29175           OSXStructs.cs: Refactored to handle the new Hwnd NC logic area.
29176           Fixed Invalidate/Update chain.
29177           Fixed tons of other minor bugs (this is almost a complete rewrite).
29178
29179 2005-02-22  Jordi Mas i Hernandez <jordi@ximian.com>
29180
29181         * ComboBox.cs: do subcontrol creation when the control is created
29182
29183 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
29184
29185         * Label.cs: fixes image drawing (image and imagelist)
29186         * ThemeWin32Classic.cs: cache brushes
29187         
29188 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
29189
29190         * Form.cs: Move menu drawing code to Theme class
29191         * ComboBox.cs: Move ComboBox drawing code to Theme class
29192         * MenuItem.cs: Move menu drawing code to Theme class
29193         * MenuAPI.cs: Move menu drawing code to Theme class
29194         * ThemeWin32Classic.cs: New methods
29195         * CheckedListBox.cs: Move CheckedListbox drawing code to Theme class
29196         * ListBox.cs: Move Listbox drawing code to Theme class
29197         * Theme.cs: New methods
29198
29199 2005-02-20  Peter Bartok  <pbartok@novell.com>
29200
29201         * Control.cs:
29202           - Fixed ProcessKeyEventArgs to also handle WM_SYSKEY messages (and
29203             only process mnemonics on those)
29204           - Fixed event sequence for key handling; first calling
29205             ProcessKeyEventArgs now
29206         * TextBoxBase.cs:
29207           - Removed WM_KEYDOWN hook, instead we now use ProcessDialogKey()
29208             for processing non-character keys
29209           - Fixed WM_CHAR to generate proper event sequence before processing
29210         * XplatUIWin32.cs: Added ALT key state to ModifierKeys property
29211           generation
29212
29213 2005-02-19  Peter Bartok  <pbartok@novell.com>
29214
29215         * UserControl.cs: Added TextChanged event; added attributes
29216         * SizeGrip.cs: Implemented resizing and optional display of grip
29217         * Form.cs: Fixed attribute
29218         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs:
29219           Changed meaning of ScrollWindow bool argument; instead of the
29220           clear attribute (which will be true usually anyway), it gives the
29221           option of moving child controls as well.
29222         * XplatUIX11.cs:
29223           - Changed to match new ScrollWindow argument
29224           - Fixed GetWindowPos/SetWindowPos behaviour for toplevel controls,
29225             now handles the implicit parent window a WM puts around us
29226         * ScrollableControl.cs: Implemented (not the prettiest, but it seems
29227           to work)
29228         * TextBoxBase.cs: Adjusted to new ScrollWindow arguments
29229         * TreeView.cs: Adjusted to new ScrollWindow arguments
29230
29231 2005-02-19  Jordi Mas i Hernandez <jordi@ximian.com>
29232
29233         * Form.cs: Menu integration with non-client area
29234         * MenuItem.cs: Menu integration with non-client area
29235         * MenuAPI.cs: Menu integration with non-client area
29236
29237 2005-02-18  Peter Bartok  <pbartok@novell.com>
29238
29239         * MethodInvoker.cs: Added
29240         * MdiLayout.cs: Added
29241         * SendKeys.cs: Started implementation
29242         * ErrorIconAlignment.cs: Added
29243
29244 2005-02-18  Peter Bartok  <pbartok@novell.com>
29245
29246         * XplatUIWin32.cs: Implemented SetMenu(); fixed GetMenuDC()
29247         * Form.cs: Added handling for Menu-related Non-client messages
29248
29249 2005-02-17  Peter Bartok  <pbartok@novell.com>
29250
29251         * UpDownBase.cs: Fixed typo, compilation errors
29252         * DomainUpDown.cs: Fixed attribute value
29253
29254 2005-02-16  Miguel de Icaza  <miguel@novell.com>
29255
29256         * UpDownBase.cs: Attach entry events.
29257         Propagate events.
29258         Add ForeColor property, Focused, InterceptArrowKeys (interception
29259         does not work yet).
29260
29261 2005-02-17  Jordi Mas i Hernandez <jordi@ximian.com>
29262
29263         * Form.cs:
29264                 - Redraw non client are on Setmenu
29265                 - Calc proper menu starting point
29266
29267 2005-02-17  Peter Bartok  <pbartok@novell.com>
29268
29269         * Application.cs: Fixed message_filter check
29270
29271 2005-02-17  Peter Bartok  <pbartok@novell.com>
29272
29273         * Application.cs: Now calls registered message filters
29274         * DockStyle.cs: Fixed attribute
29275         * Form.cs: Fixed attribute
29276         * Menu.cs: Fixed attribute
29277         * ToolTip.cs: Fixed attribute
29278         * TreeNode.cs: Added missing attributes and arranged in regions
29279         * PropertyGrid.cs: Fixed signatures
29280         * TreeNodeCollection.cs: Added attributes
29281         * Splitter.cs: Added missing attributes; arranged into regions
29282         * TabPage.cs: Added missing attributes; arranged into regions
29283         * TextBoxBase.cs: Added missing attributes
29284         * TextBox.cs: Added missing attributes
29285         * ArrangeDirection.cs: Added missing attributes
29286         * TreeNodeConverter.cs: Added stub (needed for TreeNode)
29287         * ToolBarButton.cs: Fixed attributes
29288         * AnchorStyles.cs: Fixed attribute
29289         * TrackBar.cs: Fixed attributes
29290         * TabControl.cs: Added missing attributes and arranged into regions
29291         * ToolBar.cs: Fixed attribute
29292         * StatusBar.cs: Fixed signature, organized into regions and added
29293           attributes
29294         * StatusBarPanel.cs: Fixed attributes
29295         * ContentsResizedEventArgs.cs: Implemented
29296         * ContentsResizedEventHandler.cs: Implemented
29297         * DateBoldEventArgs.cs: Implemented
29298         * DateBoldEventHandler.cs: Implemented
29299         * UpDownEventArgs.cs: Implemented
29300         * UpDownEventHandler.cs: Implemented
29301         
29302 2005-02-16  Jordi Mas i Hernandez <jordi@ximian.com>
29303
29304         * Form.cs: first Menu NC refactoring
29305         * MenuAPI.cs: first Menu NC refactoring
29306         
29307 2005-02-16  Peter Bartok  <pbartok@novell.com>
29308
29309         * ImeMode.cs: Added missing attributes
29310         * Menu.cs: Fixed attribute
29311         * GroupBox.cs: Fixed attribute
29312         * Label.cs: Fixed attribute
29313         * ColorDialog.cs (RunDialog): Removed TODO attribute
29314         * ComboBox.cs: Fixed attributes
29315         * ListControl.cs: Added missing attributes
29316         * PropertyGrid.cs: Fixed attributes
29317         * Control.cs: Fixed attributes
29318         * ListViewItem.cs: Added TypeConverter attribute
29319         * NotifyIcon.cs: Fixed attributes
29320         * ListView.cs: Fixed attributes
29321         * ButtonBase.cs: Fixed attribute
29322         * ImageList.cs: Added missing attributes
29323         * ContainerControl.cs: Fixed signature
29324         * CheckedListBox.cs: Fixed attribute; added missing attributes
29325         * Panel.cs: Fixed attributes
29326         * PropertyTabChangedEventArgs.cs: Added missing attribute
29327         * PropertyValueChangedEventArgs.cs: Added missing attribute
29328         * Binding.cs: Fixed attribute
29329         * ListViewItemConverter: Implemented ListViewSubItemConverter class
29330         * ListBox.cs: Fixed attribute; added missing attributes;
29331         * ScrollableControl.cs: Added missing attributes
29332         * PictureBox.cs: Added missing attributes; implemented missing property
29333         * DateTimePicker.cs: Added missing attributes
29334         * Theme.cs (ToolWindowCaptionHeight): Fixed type
29335         * MonthCalendar.cs: Fixed attributes
29336         * StatusBarPanel.cs: Added missing attributes
29337         * SystemInformation.cs (ToolWindowCaptionHeight): Fixed type
29338
29339 2005-02-16  Peter Bartok  <pbartok@novell.com>
29340
29341         * TextBoxBase.cs: The previous method to enforce height yet remember
29342           the requested high was less than ideal, this is an attempt to do
29343           it better.
29344         * Control.cs: Added comment about possible problem
29345         * Copyright: Updated format
29346         * GridItemType.cs: Fixed swapped values
29347
29348 2005-02-15  Jackson Harper  <jackson@ximian.com>
29349
29350         * BaseCollection.cs: Use property so we never access an
29351         uninitialized list. Also initialize the list in the property.
29352
29353 2005-02-15  Peter Bartok  <pbartok@novell.com>
29354
29355         * GroupBox.cs (ProcessMnemonic): Implemented
29356         * Label.cs (ProcessMnemonic): Implemented
29357         * ThemeWin32Classic.cs (DrawGroupBox): Added stringformat to show
29358           hotkeys
29359
29360 2005-02-15  Peter Bartok  <pbartok@novell.com>
29361
29362         * RadioButton.cs (ProcessMnemonic): Implemented
29363         * CheckBox.cs (ProcessMnemonic): Implemented
29364         * Control.cs:
29365           - Added handling of WM_SYSxxx keyboard messages to support mnemonic
29366             handling
29367           - Added internal method to allow calling ProcessMnemonic from other
29368             controls
29369         * ContainerControl.cs:
29370           - Started support for handling validation chain handling
29371           - Implemented ProcessMnemonic support
29372           - Added Select() call to Active, to make sure the active control
29373             receives focus
29374         * Form.cs: Setting toplevel flag for Forms (this was lost in the
29375           FormParent rewrite)
29376         * ThemeWin32Classic.cs:
29377           - DrawCheckBox(): Fixed stringformat to show hotkeys
29378           - DrawRadioButton(): Fixed stringformat to show hotkeys
29379         * CommonDialog.cs: Removed WndProc override, not needed
29380
29381 2005-02-14  Peter Bartok  <pbartok@novell.com>
29382
29383         * XplatUIX11.cs: Fixed NotImplemented exceptions for properties,
29384           missed those in the rewrite
29385
29386 2005-02-14  Miguel de Icaza  <miguel@novell.com>
29387
29388         * NumericUpDown.cs (Increment, ToString): Add.
29389         (DecimalPlaces): implement.
29390         
29391         Add attributes.
29392         
29393         * UpDownBase.cs: Add the designer attributes.
29394
29395 2005-02-13  Peter Bartok  <pbartok@novell.com>
29396
29397         * Panel.cs: Removed border_style, now in Control
29398         * XplatUIDriver.cs: Added SetBorderStyle, SetMenu, GetMenuDC and
29399           ReleaseMenuDC Methods; renmaed ReleaseWindow to UngrabWindow
29400
29401 2005-02-13  Peter Bartok  <pbartok@novell.com>
29402
29403         * MouseButtons.cs: Added missing attributes
29404         * XplatUIStructs.cs: Added enumeration for title styles
29405         * LeftRightAlignment.cs: Added missing attributes
29406         * Hwnd.cs: Switched to use client_window as handle (slower, but makes
29407           it compatible with Graphics.FromHwnd()
29408         * SelectedGridItemChangedEventArgs.cs: Fixed property type
29409         * Keys.cs: Added missing attributes
29410         * SelectionRange.cs: Added missing attributes
29411         * SelectionRangeConverter.cs: Added
29412         * XplatUI.cs:
29413           - Introduced SetBorderStyle, SetMenu, GetMenuDC and
29414             ReleaseMenuDC methods
29415           - Renamed ReleaseWindow to UngrabWindow
29416           - Added proper startup notice to allow version identification
29417         * Form.cs:
29418           - Added missing attributes
29419           - Removed FormParent concept
29420         * Label.cs: Removed border_style field, now in Control
29421         * RadioButton.cs: Now properly selects RadioButton when focus is
29422           received
29423         * ThemeGtk.cs: Fixed SetDisplay call to match new X11 behaviour
29424         * Control.cs:
29425           - Added missing attributes
29426           - Added borderstyle handling
29427           - Removed FormParent concept support
29428           - Fixed calls to XplatUI to match changed APIs
29429           - Fixed bug that would case us to use disposed Graphics objects
29430           - Removed unneeded internal methods
29431           - PerformLayout(): Fixed to handle DockStyle.Fill properly
29432           - SelectNextControl(): Fixed to properly check common parents
29433         * TextBoxBase.cs: Removed border_style field (now in Control)
29434         * MessageBox.cs:
29435           - Patch by Robert Thompson (rmt@corporatism.org): Added icon support,
29436             fixed calculations for form size
29437           - Added support for localized strings and icons
29438           - Improved form size calculations, added border
29439         * ListView.cs: Removed border_style field (now in Control)
29440         * X11Structs.cs: Moved several structs from X11 driver here
29441         * X11Keyboard.cs: Changed debug message
29442         * Application.cs: Removed FormParent concept support
29443         * CommonDialog.cs:
29444           - Resetting end_modal flag
29445           - Removed FormParent concept support
29446         * NativeWindow.cs: Removed FormParent concept support
29447         * XplatUIX11.cs: Rewritten, now using the new Hwnd class, implementing
29448           Client area and Non-Client whole window to allow support for WM_NC
29449           messages
29450         * XplatUIOSX.cs: Updated to match latest driver spec; added exception
29451           prevent using it until it supports Hwnd as per Geoff Norton's request
29452         * ToolBar.cs: Fixed drawing, was not doing proper drawing
29453         * PictureBox.cs: Removed border_style field, now in Control
29454         * XplatUIWin32.cs: Added new driver methods
29455
29456 2005-02-12  Peter Bartok  <pbartok@novell.com>
29457
29458         * OpacityConverter.cs: Implemented
29459         * Hwnd.cs: Internal class to support drivers that need to emulate
29460           client area/non-client area window behaviour
29461
29462 2005-02-11  Peter Bartok  <pbartok@novell.com>
29463
29464         * KeysConverter.cs: Implemented
29465
29466 2005-02-11  Jordi Mas i Hernandez <jordi@ximian.com>
29467
29468         * Menu.cs: fixes methods GetContextMenu, GetMainMenu, ToString
29469         * LinkLabel: Added missing attributes
29470         * MainMenu.cs: fixes ToString
29471         * MenuItem.cs: fixes methods GetContextMenu, GetMainMenu
29472         * ListBox.cs: fixes event position
29473         * TrackBar.cs: adds missing attributes and events
29474         
29475 2005-02-10  Jordi Mas i Hernandez <jordi@ximian.com>
29476
29477         * MenuItem.cs: Use SystemInformation and bug fixes
29478         * MenuAPI.cs: Use SystemInformation and bug fixes
29479
29480 2005-02-09  Jackson Harper  <jackson@ximian.com>
29481
29482         * X11Keyboard.cs: We ignore some keys, but still need to set/reset
29483         their keystate otherwise things like VK_MENU get stuck "on".
29484
29485 2005-02-09  Kazuki Oikawa <kazuki@panicode.com>
29486
29487         * ListBox.cs: Fixes AddRange bug
29488         
29489 2005-02-09  Jordi Mas i Hernandez <jordi@ximian.com>
29490
29491         * ProgressBar.cs
29492                 - Add missing attributes
29493                 - Add missing method
29494                 
29495         * CheckedListBox.cs: Added missing attributes
29496                 - Add missing attributes
29497                 - Remove extra method
29498         
29499         * ComboBox.cs: Added missing attributes
29500         * VScrollBar.cs: Added missing attributes
29501         * ScrollBar.cs:  Added missing attributes
29502         * ListBox.cs: Fixes signature, add missing consts
29503         * LinkArea.cs:   Added missing attributes
29504         
29505
29506 2005-02-08  Peter Bartok  <pbartok@novell.com>
29507
29508         * Menu.cs: Added missing attributes
29509         * MainMenu.cs: Added missing attributes
29510         * GroupBox.cs: Added missing attributes
29511         * Label.cs: Added missing attributes
29512         * CheckBox.cs: Implemented CheckBoxAccessibleObject class
29513         * ColorDialog.cs:
29514           - Added Instance and Options properties
29515           - Added missing attributes
29516         * Cursor.cs: Made Serializable
29517         * NotifyIcon: Added missing attributes
29518         * MenuItem.cs: Added missing attributes
29519         * TextBoxBase.cs: Implemented AppendText() and Select() methods
29520         * Panel.cs: Added Missing attributes
29521         * MonthCalendar.cs: Fixed CreateParams
29522
29523 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
29524         
29525         * LinkLabel.cs:
29526                 - Fixes signature
29527                 - Fixes issues with links
29528                 - Adds the class attributes
29529
29530 2005-02-08  Jordi Mas i Hernandez <jordi@ximian.com>
29531         
29532         * ComboBox.cs:
29533                 - Fixes button when no items available in dropdown
29534                 - Fixes repainting problems
29535                 - Adds the class attributes
29536                 
29537 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
29538
29539         * XplatUIOSX.cs: Detect the menu bar and title bar height from
29540         the current theme.  Cache these on startup.
29541
29542 2005-02-07  Jackson Harper  <jackson@ximian.com>
29543
29544         * ScrollBar.cs: Give the correct clipping rect to the theme. Dirty
29545         the scrollbar buttons when they are depressed.
29546
29547 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
29548
29549         * XplatUIOSX.cs: Really fix working at resolutions not 1024x768.
29550         Get the display size from the main displayid.  We currently dont
29551         support multiple display configurations.
29552
29553 2005-02-07  Geoff Norton  <gnorton@customerdna.com>
29554
29555         * XplatUIOSX.cs: Ensure the window doesn't get stuck behind the statusbar.
29556
29557 2005-02-07  Miguel de Icaza  <miguel@novell.com>
29558
29559         * UpDownBase.cs: Add ReadOnly and UpDownAlign properties.
29560
29561 2005-02-05  Jonathan Chambers  <jonathan.chambers@ansys.com>
29562
29563         * PropertyGrid.cs: Updated. Patch by Jonathan Chambers
29564
29565 2005-02-04  Jackson Harper  <jackson@ximian.com>
29566
29567         * ThemeWin32Classic.cs: Respect the clipping rect when
29568         drawing. Only fill the intersection of clips and rects so there
29569         isn't a lot of large fills.
29570         * ScrollBar.cs: Pass the correct clipping rect to the theme
29571         engine. Remove some debug code.
29572
29573 2005-02-05  John BouAntoun  <jba-mono@optusnet.com.au>
29574         
29575         * DateTimePicker.cs:
29576                 - Fixed crash on DateTime.Parse, use Constructor instead
29577
29578 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
29579         
29580         * MenuItem.cs:
29581         * MenuAPI.cs:
29582                 - Owner draw support (MeasureItem and DrawItem)
29583
29584 2005-02-04  Jordi Mas i Hernandez <jordi@ximian.com>
29585         
29586         *  Menu.cs:
29587                 - Implements FindMergePosition and MergeMenu functions (very poor documented)
29588                 - Fixes MenuItems.Add range
29589         * MenuItem.cs:
29590                 - MergeMenu and Clone and CloneMenu functions
29591
29592 2005-02-03  Jackson Harper  <jackson@ximian.com>
29593
29594         * ScrollBar.cs: Make abstract
29595         * ScrollableControl.cs: Create H/V scrollbars now that scrollbar
29596         is abstract.
29597
29598 2005-02-03  Jackson Harper  <jackson@ximian.com>
29599
29600         * ScrollBar.cs: First part of my scrollbar fixups. This removes
29601         all the unneeded refreshes and uses invalidates with properly
29602         computed rects.
29603
29604 2005-02-03  Peter Bartok  <pbartok@novell.com>
29605
29606         * ComponentModel.cs: Added
29607         * IDataGridEditingService.cs: Added
29608         * Timer.cs: Added missing attributes
29609         * ToolTip.cs: Added missing attributes
29610
29611 2005-02-03  Jonathan Chambers  <jonathan.chambers@ansys.com>
29612
29613         * PropertyGridView.cs: Added. Patch by Jonathan Chambers
29614
29615 2005-02-03  Peter Bartok  <pbartok@novell.com>
29616
29617         * ListBox.cs: Added missing attributes
29618
29619 2005-02-03  Jordi Mas i Hernandez <jordi@ximian.com>
29620         
29621         * ListBox.cs:
29622                 - Fixes font height after font change
29623                 - Avoid generating unnecesary OnSelectedIndexChanged on clearing
29624                 
29625 2005-02-02  Peter Bartok  <pbartok@novell.com>
29626
29627         * HandleData.cs: Introduced static methods to allow class
29628           to be more self-contained and track it's own HandleData objects
29629         * XplatUIOSX.cs, XplatUIWin32.cs, XplatUIX11.cs: Fixed usage of
29630           HandleData to use new static methods
29631
29632 2005-02-02  Jordi Mas i Hernandez <jordi@ximian.com>
29633
29634         * Combobox.cs:
29635                 - Fixes default size and PreferredHeight
29636                 - Missing events
29637                 - ObjectCollection.Insert implementation
29638                 
29639         * ListControl.cs
29640                 - Fixes signature
29641         * ListBox.cs:
29642                 - Several fixes
29643                 - ObjectCollection.Insert implementation
29644                 - No selection after clean
29645                 - Small fixes
29646
29647 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
29648
29649         * ThemeWin32Classic.cs: quick fix to comboboxbutton pushed painting
29650
29651 2005-02-01  Jordi Mas i Hernandez <jordi@ximian.com>
29652
29653         * Combobox.cs:
29654                 - Caches ItemHeight calculation for OwnerDrawVariable
29655                 - Handles dropdown properly
29656                 - Fixes several minor bugs
29657
29658 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
29659
29660         * ListBox.cs:
29661                 - Fixes 71946 and 71950
29662                 - Fixes changing Multicolumn on the fly
29663                 - Fixes keyboard navigation on Multicolumn listboxes
29664
29665 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
29666         
29667         * XplatUIOSX.cs: Call ExitToShell in our teardown to avoid a
29668         crash reporter log.
29669
29670 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
29671
29672         * XplatUIOSX.cs: Allow applications to actually exit.
29673
29674 2005-01-31  Geoff Norton  <gnorton@customerdna.com>
29675
29676         * XplatUIOSX.cs: SetWindowStyle implemented.  Reposition views in
29677         their parent at creation time rather than lazily later.  Fixes a major
29678         regression we were experiencing.
29679
29680 2005-01-31      John BouAntoun  <jba-mono@optusnet.com.au>
29681
29682         * ThemeWin32Classic.cs: more date time picker painting fixes
29683         * DateTimePicker.cs: more monthcalendar drop down fixes
29684         * MonthCalendar.cs: more CreateParams fixes to ensure correct drop down
29685
29686 2005-01-31  Jordi Mas i Hernandez <jordi@ximian.com>
29687
29688         * ScrollBar.cs:
29689                 - When moving the thumb going outside the control should stop the moving
29690                 - Adds the firing of missing events
29691                 - Fixes no button show if Size is not specified
29692                 - End / Home keys for keyboard navigation
29693
29694 2005-01-30  Peter Bartok  <pbartok@novell.com>
29695
29696         * NotifyIcon.cs (CalculateIconRect): Removed debug output and added
29697           sanity check to prevent theoretical loop
29698         * XplatUIWin32.cs (SetVisible): Removed debug output
29699         * XplatUIX11.cs (SystrayChange): Added sanity check
29700         * ScrollableControl.cs (OnVisibleChanged): Now calls base method
29701         * Control.cs (OnVisibleChanged): Added workaround for ParentForm
29702           behaviour, valid until the X11 client window rewrite is done
29703         * TextBox.cs (ctor): Setting proper default foreground and background
29704           colors
29705
29706 2005-01-30      John BouAntoun  <jba-mono@optusnet.com.au>
29707
29708         * Theme: Added DrawDateTimePicker to interface
29709         * ThemeWin32Classic.cs: Added DrawDateTimePicker (incomplete)
29710         * DateTimePicker.cs: Created (still needs keys and painting code)
29711         * DateTimePickerFormat.cs: added
29712         * MonthCalendar.cs: fixed CreateParams for popup window mode
29713           
29714 2005-01-29  Peter Bartok  <pbartok@novell.com>
29715
29716         * ControlPaint.cs: Fixed luminace value returned on achromatic colors,
29717           this should also the calculations for ligher/darker
29718         * Theme.cs: Fixed defaults for ScrollBar widths/heights
29719
29720 2005-01-29  Peter Bartok  <pbartok@novell.com>
29721
29722         * ArrangeDirection.cs: Added
29723         * ArrangeStartingPositon.cs: Added
29724         * SystemInformation.cs: Implemented
29725         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
29726           XplatUIX11.cs, Theme.cs: Added/implemented new static properties
29727           used by SystemInformation class
29728         * X11Strucs.cs: Added XSizeHints structure
29729         * MenuAPI.cs:
29730           - Fixed CreateParams to make sure the menu window is always visible
29731           - TrackPopupMenu: Added check to make sure we don't draw the
29732             menu offscreen
29733
29734 2005-01-29  Peter Bartok  <pbartok@novell.com>
29735
29736         * HandleData.cs: Added method for altering invalid area
29737         * TextBoxBase.cs: Implemented TextLength
29738
29739 2005-01-28  Peter Bartok  <pbartok@novell.com>
29740
29741         * XplatUIX11.cs: Improvement over last patch, not sending
29742           the WM_PAINT directly anymore, instead we scroll any pending
29743           exposed areas and let the system pick out the WM_PAINT later
29744
29745 2005-01-28  Peter Bartok  <pbartok@novell.com>
29746
29747         * SWF.csproj: Deleted, no longer used. Instead,
29748           Managed.Windows.Forms/SWF.csproj should be used
29749         * XplatUIX11.cs: Instead of posting the WM_PAINT, we send it
29750           directly, to avoid a potential race condition with the next
29751           scroll
29752
29753 2005-01-28  Peter Bartok  <pbartok@novell.com>
29754
29755         * XplatUI.cs: Made class internal
29756
29757 2005-01-28  Jordi Mas i Hernandez <jordi@ximian.com>
29758
29759         * CheckedListBox.cs:
29760                 - Draw focus
29761                 - Fixed Drawing
29762                 - Missing methods and events
29763
29764 2005-01-27  Peter Bartok  <pbartok@novell.com>
29765
29766         * Application.cs (Run): Don't use form if we don't have one
29767
29768 2005-01-27  Peter Bartok  <pbartok@novell.com>
29769
29770         * TextBoxBase.cs (get_Lines): Fixed index off by one error
29771
29772 2005-01-27  Peter Bartok  <pbartok@novell.com>
29773
29774         * GridEntry.cs: Added; Patch by Jonathan S. Chambers
29775         * GridItem.cs: Added; Patch by Jonathan S. Chambers
29776         * GridItemCollection.cs: Added; Patch by Jonathan S. Chambers
29777         * GridItemType.cs: Added; Patch by Jonathan S. Chambers
29778         * PropertyGrid.cs: Added; Patch by Jonathan S. Chambers
29779         * PropertySort.cs: Added; Patch by Jonathan S. Chambers
29780         * PropertyTabChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
29781         * PropertyTabChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
29782         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
29783         * PropertyValueChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
29784         * SelectedGridItemChangedEventArgs.cs: Added; Patch by Jonathan S. Chambers
29785         * SelectedGridItemChangedEventHandler.cs: Added; Patch by Jonathan S. Chambers
29786
29787 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
29788
29789         * Combobox.cs:
29790                 - Draw focus on Simple Combobox
29791                 - Fixes drawing issues
29792                 - fixes 71834
29793
29794 2005-01-27  Peter Bartok  <pbartok@novell.com>
29795
29796         * Form.cs:
29797           - Place window in default location, instead of hardcoded 0/0
29798           - Send initial LocationChanged event
29799         * Control.cs:
29800           - UpdateBounds after creation to find out where the WM placed us
29801           - Make sure that if the ParentForm changes location the Form
29802             is notified
29803         * XplatUIX11.cs: XGetGeometry will not return the coords relative
29804             to the root, but to whatever the WM placed around us.
29805             Translate to root coordinates before returning toplevel
29806             coordinates
29807         * XplatUIWin32.cs: Removed debug output
29808         * XplatUIOSX.cs, XplatUI.cs, XplatUIDriver.cs: Added toplevel
29809           flag to GetWindowPos, to allow translation of coordinates on X11
29810
29811 2005-01-27  Jordi Mas i Hernandez <jordi@ximian.com>
29812
29813         * ListBox.cs: connect LostFocus Event
29814
29815 2005-01-27  Peter Bartok  <pbartok@novell.com>
29816
29817         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
29818           XplatUIX11.cs: Extended the Systray API
29819         * Form.cs: Removed debug output
29820         * Application.cs: Fixed focus assignment, always need to call
29821           XplatUI.Activate() since Form.Activate() has rules that may
29822           prevent activation
29823         * NotifyIcon.cs: Should be complete now
29824         * ToolTip.cs: Worked around possible timer bug
29825
29826 2005-01-27  Jackson Harper  <jackson@ximian.com>
29827
29828         * TabControl.cs:
29829         - Only invalidate the effected tabs when the
29830         selected index changes. This reduces drawing and gets rid of some
29831         flicker.
29832         - Only refresh if the tabs need to be shifted, otherwise only
29833         invalidate the slider button.
29834         - On windows the tabs are not filled to right if the slider is
29835         visible.
29836         
29837 2005-01-27  Jackson Harper  <jackson@ximian.com>
29838
29839         * TabControl.cs: Only refresh on mouseup if we are showing the
29840         slider. Also only invalidate the button whose state has changed.
29841
29842 2005-01-26  Peter Bartok  <pbartok@novell.com>
29843
29844         * XplatUI.cs, XplatUIDriver.cs: Added Systray methods
29845         * XplatUIWin32.cs: Implemented SystrayAdd(), SystrayChange()
29846           and SystrayRemove() methods
29847         * XplatUIOSX.cs: Stubbed Systray methods
29848         * XplatUIX11.cs:
29849           - Implemented SystrayAdd(), SystrayChange() and SystrayRemove()
29850             methods
29851           - Fixed broken XChangeProperty calls (marshalling messed up things)
29852         * X11Structs.cs: Added enums and structs required for Size hinting
29853         * NotifyIcon.cs: Added & implemented
29854
29855 2005-01-26  Jackson Harper  <jackson@ximian.com>
29856
29857         * TabControl.cs: Space vertically layed out tabs properly.
29858
29859 2005-01-26  Peter Bartok  <pbartok@novell.com>
29860
29861         * Form.cs (CreateClientParams): Always set the location to 0,0
29862           since we're a child window.
29863
29864         * Control.cs (SetVisibleCore): Always explicitly setting the location
29865           of a toplevel window, apparently X11 doesn't like to move windows
29866           while they're not mapped.
29867
29868 2005-01-26  Jackson Harper  <jackson@ximian.com>
29869
29870         * TabControl.cs: Implement FillToRight size mode with vertically
29871         rendered tabs.
29872
29873 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
29874
29875         * ControlPaint.cs, ThemeWin32Classic.cs
29876                 - Fixes DrawFocusRectangle
29877
29878 2005-01-26  Jordi Mas i Hernandez <jordi@ximian.com>
29879
29880         * MenuAPI.cs:
29881                 - MenuBar tracking only starts when item is first clicked
29882                 - Fixes menu hidding for multiple subitems
29883                 - Unselect item in MenuBar when item Executed
29884                 - Fixes bug 71495
29885
29886 2005-01-25  Jordi Mas i Hernandez <jordi@ximian.com>
29887
29888         * ListControl.cs:
29889                 - IsInputKey for ListBox
29890         * ListBox.cs:
29891                 - Focus item
29892                 - Shift and Control item selection
29893                 - Implement SelectionMode.MultiExtended
29894                 - Fixes RightToLeft
29895         * ComboBox.cs:
29896                 - IsInputKey implemented
29897                 - Do not generate OnTextChangedEdit on internal txt changes
29898                 
29899 2005-01-23  Peter Bartok  <pbartok@novell.com>
29900
29901         * AccessibleObject.cs: Partially implemented Select()
29902         * MonthCalendar.cs: Added missing attributes and events
29903         * Form.cs: Fixed CreateParams behaviour, now controls derived from
29904           form can properly override CreateParams.
29905         * XplatUI.cs, XplatUIDriver.cs, XplatUIOSX.cs, XplatUIWin32.cs,
29906           XplatUIX11.cs: Dropped RefreshWindow method, not needed if
29907           Control performs Invalidate & Update
29908         * NativeWindow (CreateHandle): Added special handling for Form
29909           and Form.FormParent classes to allow overriding of From.CreateParams
29910         * Control.cs:
29911           - ControlNativeWindow: Renamed 'control' variable to more intuitive
29912             name 'owner'
29913           - ControlNativeWindow: Added Owner property
29914           - Removed usage of Refresh() on property changes, changed into
29915             Invalidate(), we need to wait until the queue is processed for
29916             updates, direct calls might cause problems if not all vars for
29917             Paint are initialized
29918           - Added call to UpdateStyles() when creating the window, to set any
29919             styles that CreateWindow might have ignored.
29920           - Added support for Form CreateParent overrides to UpdateStyles()
29921         * MessageBox.cs: Removed no longer needed FormParent override stuff,
29922           CreateParams are now properly overridable
29923         * CommonDialog.cs: Removed no longer needed FormParent override stuff,
29924           CreateParams are now properly overridable
29925
29926 2005-01-23  Miguel de Icaza  <miguel@ximian.com>
29927
29928         * UpDownBase.cs (ctor): Connect TextChanged in the entry to the
29929         OnTextBoxChanged.
29930
29931         Capture LostFocus and OnTextBoxChanged.  The later introduces a
29932         recursive invocation that I have not figured out yet.
29933
29934         Reset the timer when not using (it was accumulating).
29935
29936
29937         (OnTextBoxChanged): Set UserEdit to true here to track whether the
29938         user has made changes that require validation.
29939
29940         Reset changing to avoid loops.
29941
29942 2005-01-22  Miguel de Icaza  <miguel@ximian.com>
29943
29944         * NumericUpDown.cs: Display value at startup.
29945
29946         * UpDownBase.cs (Text): Do not call UpdateEditText here, only call
29947         ValidateEditText.
29948
29949         * NumericUpDown.cs: Minimum, Maximum, Text, Value properties
29950         filled in.  Added some basic parsing of text.
29951
29952         Still missing the OnXXX method overrides, and figuring out the
29953         events that must be emitted.
29954
29955         * UpDownBase.cs: Handle UserEdit on the Text property.
29956         
29957 2005-01-22  Jordi Mas i Hernandez <jordi@ximian.com>
29958
29959         * ComboBox.cs:
29960           - Fixes IntegralHeight
29961           - ToString method
29962
29963 2005-01-21  Jackson Harper  <jackson@ximian.com>
29964
29965         * TabControl.cs: Set the SelectedIndex property when SelectedTab
29966         is set so that the page visibility is updated and the tabs are
29967         sized correctly.
29968
29969 2005-01-21  Jackson Harper  <jackson@ximian.com>
29970
29971         * TabControl.cs: Use cliping rectangle for blitting. Give the
29972         theme the clipping rect so we can do clipping while
29973         drawing. Remove some debug code.
29974
29975 2005-01-21  Jackson Harper  <jackson@ximian.com>
29976
29977         * TabPage.cs: Add a new method so tab pages can force the tab
29978         control to recalculate the tab page sizes.
29979         * TabControl.cs: UpdateOwner needs to make the tab control recalc
29980         sizes.
29981
29982 2005-01-20  Jackson Harper  <jackson@ximian.com>
29983
29984         * ThemeWin32Classic.cs: Clip text to the staus bar panels rects.
29985
29986 2005-01-20  Jackson Harper  <jackson@ximian.com>
29987
29988         * TreeView.cs: Set the bounds for nodes properly. They were
29989         getting screwed up when checkboxes were not enabled, but images
29990         were.
29991
29992 2005-01-20  Jordi Mas i Hernandez <jordi@ximian.com>
29993
29994         * ListBox.cs:
29995                 - Owner draw support
29996                 - Fixes
29997                 
29998 2005-01-20  Jackson Harper  <jackson@ximian.com>
29999
30000         * XplatUIStructs.cs: More misc keys
30001         * X11Keyboard.cs: Ignore some control keys.
30002
30003 2005-01-20  Jackson Harper  <jackson@ximian.com>
30004
30005         * X11Structs.cs: Add the modmaps to the keymask struct and tabify.
30006         * X11Keyboard.cs: Set the AltGr mask when we get a key event.
30007
30008 2005-01-19  Peter Bartok  <pbartok@novell.com>
30009
30010         * Control.cs: Un-selecting the control when it is loosing focus
30011
30012 2005-01-19  Jackson Harper  <jackson@ximian.com>
30013
30014         * TreeView.cs: Hook up to the text controls leave event so we can
30015         end editing when the users clicks outside the text box.
30016         
30017 2005-01-19  Jackson Harper  <jackson@ximian.com>
30018
30019         * X11Keyboard.cs: Fix typo that was causing the wrong keycodes to
30020         get set in the conversion array.
30021
30022 2005-01-19  Peter Bartok  <pbartok@novell.com>
30023
30024         * Application.cs (ModalRun): Added a call to CreateControl to ensure
30025           focus is properly set
30026         * Button.cs:
30027           - Added missing attributes
30028           - removed styles, those are already set in the base class
30029         * ButtonBase.cs:
30030           - Added missing attributes
30031           - Added clip window styles
30032         * CheckBox.cs: Added missing attributes
30033         * CommonDialog.cs:
30034           - FormParentWindow.CreateParams: Added required clip styles
30035         * Form.cs (ProcessDialogKey): Fixed handling of Escape key, now
30036           also filters modifier keys
30037         * MessageBox.cs:
30038           - Added assignment of Accept and Cancel button to enable Enter
30039             and Esc keys in MessageBox dialogs
30040           - FormParentWindow.CreateParams: Added required clip styles
30041         * RadioButton.cs: Added missing attributes
30042         * TextControl.cs: No longer draws selection if control does not
30043           have focus
30044         * TextBoxBase.cs:
30045           - Now draws simple rectangle around test area to make it obvious
30046             there's a control. This is a hack until we properly support borders
30047           - A few simple fixes to support selections better, now erases selected
30048             text when typing, and resets selection when using movement keys
30049
30050 2005-01-19  Miguel de Icaza  <miguel@ximian.com>
30051
30052         * UpDownBase.cs: Added some new properties.
30053
30054         * DomainUpDown.cs: Implement a lot to get my test working.
30055
30056 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
30057
30058         * XplatUIOSX.cs: Fix a minor bug to bring the close box back
30059
30060 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
30061
30062         * OSXStructs (WindowAttributes): Fixed csc complaints
30063
30064 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
30065
30066         * XplayUIOSX.cs:
30067           OSXStructs.cs: Initial refactor to move enums and consts into
30068           OSXStructs and use them in the driver for greater readability.
30069
30070 2005-01-19  Geoff Norton  <gnorton@customerdna.com>
30071
30072         * XplatUIOSX.cs: Initial support for Standard Cursors.
30073         * OSXStructs.cs: Move our structs here; added ThemeCursor enum
30074
30075 2005-01-19  Jordi Mas i Hernandez <jordi@ximian.com>
30076
30077         * ComboBox.cs: ability to change style when the ctrl is already
30078         created, missing methods and events, bug fixes, signature fixes
30079
30080 2005-01-19  Peter Bartok  <pbartok@novell.com>
30081
30082         * Cursors.cs (ctor): Added ctor to fix signature
30083
30084 2005-01-18  Peter Bartok  <pbartok@novell.com>
30085
30086         * Button.cs: Implemented DoubleClick event
30087         * ButtonBase.cs:
30088           - Fixed keyboard handling to behave like MS, where the press of
30089             Spacebar is equivalent to a mousedown, and the key release is
30090             equivalent to mouseup. Now a spacebar push will give the same
30091             visual feedback like a mouse click.
30092           - Added missing attributes
30093           - Added ImeModeChanged event
30094           - Added support for generating DoubleClick event for derived classes
30095         * CheckBox.cs:
30096           - Implemented DoubleClick event
30097           - Added missing attributes
30098         * CommonDialog.cs: Added missing attribute
30099         * ContextMenu.cs: Added missing attributes
30100         * RadioButton.cs:
30101           - AutoChecked buttons do not allow to be unselected when clicked
30102             (otherwise we might end up with no selected buttons in a group)
30103           - Added missing attributes
30104           - Implemented DoubleClickEvent
30105         * ThreadExceptionDialog.cs: Enabled TextBox code
30106
30107 2005-01-18  Peter Bartok  <pbartok@novell.com>
30108
30109         * Form.cs: Removed debug output
30110         * Button.cs: Added support for DoubleClick method
30111
30112 2005-01-18  Peter Bartok  <pbartok@novell.com>
30113
30114         * Form.cs:
30115           - Added method to parent window that allows triggering size
30116             calculations when a menu is added/removed
30117           - set_Menu: Cleaned up mess from early days of Form and Control,
30118             now properly triggers a recalc when a menu is added/removed
30119           - Added case to select form itself as focused form if no child
30120             controls exist
30121           - Added PerformLayout call when showing dialog, to ensure properly
30122             placed controls
30123         * Control.cs:
30124           - Select(): Made internal so Form can access it
30125           - Focus(): Only call Xplat layer if required (avoids loop), and sets
30126             status
30127         * Application.cs (Run): Removed hack and calls PerformLayout instead
30128           to trigger calculation when Form becomes visible
30129
30130 2005-01-18  Jordi Mas i Hernandez <jordi@ximian.com>
30131
30132         * ComboBox.cs: fixes for ownerdraw
30133
30134 2005-01-18  Peter Bartok  <pbartok@novell.com>
30135
30136         * TextControl.cs:
30137           - Sentinel is no longer static, each Document gets it's own, this
30138             avoids locking or alternatively overwrite problems when more
30139             than one text control is used simultaneously.
30140           - Switched to use Hilight and HilightText brushes for text selection
30141
30142         * TextBoxBase.cs (PaintControl): Disabled AntiAliasing to improve looks
30143
30144 2005-01-18  Peter Bartok  <pbartok@novell.com>
30145
30146         * Control.cs:
30147           - Hooked up the following events:
30148                 o ControlAdded
30149                 o ControlRemoved
30150                 o HandleDestroyed
30151                 o ImeModeChanged
30152                 o ParentChanged
30153                 o TabStopChanged
30154                 o Invalidated
30155                 o SystemColorsChanged
30156                 o ParentFontChanged
30157                 o Move
30158           - Removed debug output
30159           - Added a call to the current theme's ResetDefaults when a color change
30160             is detected
30161         * Form.cs: Now setting the proper ImeMode
30162         * Theme.cs: Defined a method to force recreation of cached resources
30163           and rereading of system defaults (ResetDefaults())
30164         * ThemeWin32Classic.cs: Added ResetDefaults() stub
30165
30166 2005-01-17  Peter Bartok  <pbartok@novell.com>
30167
30168         * Control.cs: Added missing attributes
30169
30170 2005-01-17  Jackson Harper  <jackson@ximian.com>
30171
30172         * TreeNode.cs: Implement editing. Add missing properties selected
30173         and visible.
30174         * TreeView.cs: Implement node editing. Also some fixes to use
30175         Invalidate (invalid area) instead of Refresh when selecting.
30176
30177 2005-01-17  Peter Bartok  <pbartok@novell.com>
30178
30179         * Control.cs:
30180           - Implemented InvokeGotFocus() method
30181           - Implemented InvokeLostFocus() method
30182           - Implemented InvokePaint() method
30183           - Implemented InvokePaintBackground() method
30184           - Implemented InvokeClick() method
30185           - Implemented FindForm() method
30186           - Implemented RectangleToClient() method
30187           - Implemented ClientToRectangle() method
30188           - Implemented ResetBackColor() method
30189           - Implemented ResetCursor() method
30190           - Implemented ResetFont() method
30191           - Implemented ResteForeColor() method
30192           - Implemented ResetImeMode() method
30193           - Implemented ResetLeftToRight() method
30194           - Implemented ResetText() method
30195           - Implemented Scale() methods
30196           - Implemented ScaleCore() method
30197           - Implemented Update() method
30198           - Removed unused variables
30199           - Stubbed AccessibilityNotifyClients and
30200             ControlAccessibleObject.NotifyClients() methods (dunno what to do
30201             with those yet)
30202           - Now setting proper default for RightToLeft property
30203           - Fixed bug in SetClientSizeCore that would cause windows to get
30204             really big
30205           - Now sending Click/DoubleClick events
30206           - Now selecting controls when left mouse button is clicked on
30207             selectable control
30208         * AccessibleEvents.cs: Added
30209         * XplatUI.cs, XplatUIDriver.cs: Added UpdateWindow() method
30210         * XplatUIOSX.cs: Stubbed UpdateWindow() method
30211         * XplatUIWin32.cs: Implemented UpdateWindow() method
30212         * XplatUIX11.cs: Implemented UpdateWindow() method
30213         * Form.cs: Removed stray semicolon causing CS0162 warning
30214         * ThemeWin32Classic.cs: Fixed unused variable warnings
30215         * ScrollableControl.cs: Now calls base method for ScaleCore
30216         * ButtonBase.cs: Now disabling StandardClick and StandardDoubleClick
30217           style to avoid interference with internal click handler (which is
30218           different than standard Control click handling)
30219         * RadioButton.cs:
30220           - Now unchecks all sibling radio buttons when control is
30221             selected (Fixes #68756)
30222           - Removed internal tabstop variable, using the one inherited from
30223             Control
30224
30225 2005-01-17  Jackson Harper  <jackson@ximian.com>
30226
30227         * NavigateEventArgs.cs: Fix base type.
30228         * LinkLabel.cs: Sig fix
30229         
30230 2005-01-17  Jackson Harper  <jackson@ximian.com>
30231
30232         * TreeView.cs: Only invalidate the effected nodes bounds when
30233         selecting nodes.
30234
30235 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
30236
30237         * XplatUIWin32.cs: fixes Win32 marshaling
30238         * XplatUIX11.cs: fixes method signature
30239
30240 2005-01-17  Peter Bartok  <pbartok@novell.com>
30241
30242         * XplatUIX11.cs: Clean up resources when we no longer need them
30243
30244 2005-01-17  Peter Bartok  <pbartok@novell.com>
30245
30246         * XplatUI.cs, XplatUIDriver.cs: Added SetCursor(), ShowCursor(),
30247           OverrideCursor(), DefineCursor(), DefineStdCursor(), GetCursorInfo()
30248           and DestroyCursor() methods.
30249         * Cursor.cs: Partially implemented, now supports standard cursors;
30250           still contains some debug code
30251         * Cursors.cs: Implemented class
30252         * Control.cs:
30253           - WndProc(): Added handling of WM_SETCURSOR message, setting the
30254             appropriate cursor
30255           - Implemented Cursor property
30256           - Replaced break; with return; more straightforwar and possibly
30257             faster
30258           - Now properly setting the result for WM_HELP
30259         * X11Structs.cs: Added CursorFontShape enum
30260         * XplatUIStructs.cs:
30261           - Added StdCursor enum (to support DefineStdCursor() method)
30262           - Added HitTest enum (to support sending WM_SETCURSOR message)
30263         * XplatUIX11.cs:
30264           - Now sends the WM_SETCURSOR message
30265           - Implemented new cursor methods
30266         * XplatUIOSX.cs: Stubbed new cursor methods
30267         * XplatUIWin32.cs:
30268           - Implemented new cursor methods
30269           - Added GetSystemMetrics function and associated enumeration
30270
30271 2005-01-15  Peter Bartok  <pbartok@novell.com>
30272
30273         * Control.cs:
30274           - WndProc(): Now handles EnableNotifyMessage
30275           - SelectNextControl(): Fixed bug where if no child or sibling
30276             controls exist we looped endlessly
30277
30278 2005-01-14  Jackson Harper  <jackson@ximian.com>
30279
30280         * TreeView.cs: Recalculate the tab pages when a new one is added
30281         so that the proper bounding rects are created.
30282
30283 2005-01-14  Jackson Harper  <jackson@ximian.com>
30284
30285         * TreeView.cs: Draw a gray box instead of a grip in the lower
30286         right hand corner when there are both horizontal and vertical
30287         scroll bars.
30288
30289 2005-01-14  Jackson Harper  <jackson@ximian.com>
30290
30291         * Control.cs: When erasing backgrounds use FromHwnd instead of
30292         FromHdc when there is a NULL wparam. This occurs on the X driver.
30293         * XplatUIX11.cs: Set the wparam to NULL.
30294
30295 2005-01-13  Jackson Harper  <jackson@ximian.com>
30296
30297         * PictureBox.cs: Implement missing methods (except ToString, need
30298         to test that on windows) and events. When visibility is changed we
30299         need to redraw the image because the buffers are killed. When size
30300         is changed refresh if the sizemode needs it.
30301
30302 2005-01-13  Peter Bartok  <pbartok@novell.com>
30303
30304         * Control.cs (SelectNextControl): Was using wrong method to select
30305           a control
30306
30307 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
30308
30309         * ComboBox.cs: fixes dropstyle
30310
30311 2005-01-13  Peter Bartok  <pbartok@novell.com>
30312
30313         * Form.cs:
30314           - Implemented Select() override
30315           - Now handles WM_SETFOCUS/WM_KILLFOCUS messages
30316           - Now sets keyboard focus on startup
30317         * Control.cs (SelectNextControl): Now properly handles directed=true
30318         * TextBoxBase.cs:
30319           - WndProc: Now passes tab key on to base if AcceptTabChar=false
30320           - Added (really bad) focus rectangle (mostly for testing)
30321         * TextBox.cs: Added code to handle getting/loosing focus and invalidating
30322           to enforce redraw on focus changes
30323         * ContainerControl.cs:
30324           - Fixed detection of Shift-Tab key presses
30325           - Fixed traversal with arrow keys
30326         * XplatUIX11.cs: Implemented simulated keyboard focus; not sure if we're
30327           gonna keep this or if it's complete yet
30328         
30329 2005-01-13  Jordi Mas i Hernandez <jordi@ximian.com>
30330
30331         * ComboBox.cs: missing properties, fixes
30332
30333 2005-01-13  Peter Bartok  <pbartok@novell.com>
30334
30335         * Panel.cs (ctor): Setting Selectable window style to off
30336         * Splitter.cs (ctor): Setting Selectable window style to off
30337         * GroupBox.cs (ctor): Setting Selectable window style to off
30338         * Label.cs (ctor): Setting Selectable window style to off
30339
30340 2005-01-12  Miguel de Icaza  <miguel@ximian.com>
30341
30342         * UpDownBase.cs (InitTimer): If the timer has been already
30343         created, enable it.
30344
30345         Use a TextBox instead of a Label.
30346
30347 2005-01-12  Jackson Harper  <jackson@ximian.com>
30348
30349         * TreeView.cs: Refresh the tree after sorting the nodes. Always
30350         draw the connecting node lines (when ShowLines is true).
30351         * TreeNode.cs: The nodes index can now be updated. This is used
30352         when a node collection is sorted.
30353         * TreeNodeCollection.cs: Implement sorting. Nodes can be sorted on
30354         insert or an existing unsorted node collection can be sorted.
30355         
30356 2005-01-12  Peter Bartok  <pbartok@novell.com>
30357
30358         * ContainerControl.cs: Implemented ProcessDialogKeys()
30359
30360 2005-01-12  Peter Bartok  <pbartok@novell.com>
30361
30362         * Control.cs:
30363           - Implemented SelectNextControl() method
30364           - Several focus related bug fixes
30365           - Fixed Docking calculations to match MS documentation and
30366             behaviour
30367
30368 2005-01-12  Jordi Mas i Hernandez <jordi@ximian.com>
30369
30370         * ContainerControl.cs, ListControl.cs, ListBox.cs: keyboard navigation and
30371         bug fixes
30372
30373 2005-01-12  Peter Bartok  <pbartok@novell.com>
30374
30375         * Control.cs:
30376           - Fixed broken Contains() method
30377           - Implemented GetNextControl() method. Finally. This is the pre-
30378             requisite for focus handling.
30379
30380 2005-01-12  Peter Bartok  <pbartok@novell.com>
30381
30382         * OSXStrucs.cs: Added
30383
30384 2005-01-12  Peter Bartok  <pbartok@novell.com>
30385
30386         * XplatUIWin32.cs:
30387           - Removed PeekMessageFlags
30388           - Implemented SetWindowStyle() method
30389         * XplatUIStructs.cs: Added PeekMessageFlags
30390         * X11Structs: Added missing border_width field to XWindowChanges struct
30391         * XplatUIX11.cs:
30392           - PeekMessage: Now throws exception if flags which are not yet
30393             supported are passed
30394           - Implemented SetWindowStyle() method
30395           - Fixed SetZOrder to handle AfterHwnd properly
30396         * XplatUI.cs: Added SetWindowStyle() method
30397         * XplatUIDriver.cs: Added SetWindowStyle() abstract
30398         * Control.cs:
30399           - Implemented UpdateStyles() method
30400           - Implemented UpdateZOrder() method
30401         * XplatUIOSX.cs: Added SetWindowStyle() stub
30402
30403 2005-01-12  Geoff Norton  <gnorton@customerdna.com>
30404
30405         * XplatUIOSX.cs: Fix SetZOrder (this needs more testing with a 3
30406         button mouse).
30407
30408
30409 2005-01-11  Jackson Harper  <jackson@ximian.com>
30410
30411         * TreeView.cs: Still need to draw lines to siblings even if out of
30412         the current node is out of the clip.
30413
30414 2005-01-11  Jackson Harper  <jackson@ximian.com>
30415
30416         * TreeView.cs: When setting the hbar/vbar/grip position use
30417         SetBounds so that perform layout is only called once. Also suspend
30418         and resume layout so layout is only done once for all controls.
30419         - Removed some debug fluff
30420         * SizeGrip.cs: Call base implmentation in overriding methods.
30421         - When visibility is changed the drawing buffers are killed so we
30422         need to redraw.
30423
30424 2005-01-11  Jackson Harper  <jackson@ximian.com>
30425
30426         * TreeView.cs: Calculate the open node count while drawing. This
30427         saves us an entire tree traversal for every paint operation. Use
30428         a member var for the open node count so less vars are passed around.
30429
30430 2005-01-11  John BouAntoun  <jba-mono@optusnet.com.au>
30431
30432         * MonthCalendar.cs:
30433         - fixed selection to use mousemove, not mouse polling on timer
30434         * ThemeWin32Classic.cs
30435         - removed redundant unused variable "no_more_content"
30436         
30437 2005-01-11  Peter Bartok  <pbartok@novell.com>
30438
30439         * XplatUIX11.cs (DoEvents): Needs to return when no more events
30440           are pending, so it now calls PeekMessage instead of GetMessage;
30441           implemented a incomplete version of PeekMessage
30442         
30443 2005-01-11  Peter Bartok  <pbartok@novell.com>
30444
30445         * XplatUIWin32.cs: Switched P/Invokes to unicode charset to avoid
30446           I18n issues
30447         * TextBoxBase.cs: Added sending of TextChanged event
30448
30449 2005-01-10  Jackson Harper  <jackson@ximian.com>
30450
30451         * TreeView.cs: Try not to draw outside the clipping rectangle on
30452         each node element.
30453
30454 2005-01-10  Jordi Mas i Hernandez <jordi@ximian.com>
30455
30456         * ComboBox.cs: keyboard navigation, item navigation, bug fixes
30457
30458 2005-01-10  Jackson Harper  <jackson@ximian.com>
30459
30460         * TreeView.cs:
30461         - Implement fast scrolling. Now only the newly
30462         exposed nodes are drawn and the old image is moved using the
30463         XplatUI::ScrollWindow method.
30464         - Factor in height of nodes when calculating whether or not the
30465         node is in the clipping rect.
30466
30467 2005-01-10  Jackson Harper  <jackson@ximian.com>
30468
30469         * TreeNodeCollection.cs: Refresh the tree when a new node is added.
30470
30471 2005-01-10  Peter Bartok  <pbartok@novell.com>
30472
30473         * Application.cs: Added temporary hack to resolve all our resize
30474           required issues on startup. This will get fixed properly at
30475           some point in the future
30476
30477 2005-01-10  Jackson Harper  <jackson@ximian.com>
30478
30479         * SizeGrip.cs: New internal class that is used as a sizing
30480         grip control...hence the name.
30481
30482 2005-01-10  Peter Bartok  <pbartok@novell.com>
30483
30484         * Control.cs: Implemented proper TabIndex handling, now assigning
30485           a tabindex when a control is added to a container
30486         * GroupBox.cs (ctor): Now sets the Container style bit, required
30487           for Control.GetNextControl()
30488
30489 2005-01-09  Jackson Harper  <jackson@ximian.com>
30490
30491         * TextBoxBase.cs: Clear window when scrolling (fixes build).
30492
30493 2005-01-09  Peter Bartok <pbartok@novell.com>
30494
30495         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIOSX.cs,
30496           XplatUIX11.cs: Added ability to control ScrollWindow expose and
30497           an overload for ScrollWindow to allow only scrolling a rectangle
30498
30499 2005-01-09  Peter Bartok <pbartok@novell.com>
30500
30501         * Form.cs:
30502           - Implemented SetDesktopBounds method
30503           - Implemented SetDesktopLocation method
30504
30505 2005-01-08  Jackson Harper  <jackson@ximian.com>
30506
30507         * TreeView.cs: Only set the vbar's Maximum and LargeChange when
30508         the node count has changed, this removes to VScroll::Refresh calls
30509         when drawing.
30510
30511 2005-01-08  Geoff Norton  <gnorton@customerdna.com>
30512
30513         * XplatUIOSX.cs: Fix GetWindowState & SetWindowState
30514
30515 2005-01-07  Jackson Harper  <jackson@ximian.com>
30516
30517         * TreeNode.cs: Just update the single node when it is
30518         checked. Don't refresh after toggling, the Expand/Collapse already
30519         handles this.
30520         * TreeView.cs: Respect clipping a little more when drawing. Try
30521         not to redraw things that don't need to be redrawn. Just hide the
30522         scrollbars when they are no longer needed instead of removing
30523         them, so they don't have to be created again and again.
30524         
30525 2005-01-07  Geoff Norton  <gnorton@customerdna.com>
30526
30527         * XplatUIOSX.cs (SetCaretPos):  We need to translate the view
30528         coordinates to window space to place the caret properly, FIXED.
30529         Implement GetWindowState & SetWindowState
30530
30531 2005-01-06  Peter Bartok <pbartok@novell.com>
30532
30533         * Form.cs:
30534           - Implemented ClientSize property
30535           - Implemented DesktopBounds property
30536           - Implemented DesktopLocation property
30537           - Implemented IsRestrictedWindow property
30538           - Implemented Size property
30539           - Implemented TopLevel property
30540           - Implemented FormWindowState property
30541         * Control.cs:
30542           - Implemented GetTopLevel() method
30543           - Implemented SetTopLevel() method
30544         * X11Structs.cs (Atom):
30545           - Added AnyPropertyType definition
30546           - Added MapState definiton and updated XWindowAttribute struct
30547         * XplatUI.cs: Added GetWindowState() and SetWindowState() methods
30548         * XplatUIDriver.cs: Added GetWindowState() and SetWindowState() methods
30549         * XplatUIOSX.cs: Stubbed GetWindowState() and SetWindowState() methods
30550         * XplatUIWin32.cs:
30551           - Implemented GetWindowState() and SetWindowState() methods
30552           - Fixed Win32GetWindowLong return type
30553         * XplatUIX11.cs:
30554           - Introduced central function for sending NET_WM messages
30555           - Implemented GetWindowState() and SetWindowState() methods
30556         * TextBoxBase.cs (set_Lines):
30557           - Now uses Foreground color for text added via Text property (Duh!)
30558           - Added code to remember programmatically requested size (fixes
30559             behaviour when Multiline is set after Size)
30560           - Added AutoSize logic
30561
30562 2005-01-06  Jackson Harper  <jackson@ximian.com>
30563
30564         * TreeView.cs: Draw the image after the checkbox if checkboxes are enabled.
30565
30566 2005-01-06  Jackson Harper  <jackson@ximian.com>
30567
30568         * ListBox.cs: Don't allow the horizontal scrollbars maximum to be
30569         set to less then 0.
30570
30571 2005-01-06  Jackson Harper  <jackson@ximian.com>
30572
30573         * ScrollableControl.cs: Lazy init the scrollbars.
30574         
30575 2005-01-06  Jackson Harper  <jackson@ximian.com>
30576
30577         * Theme.cs: Speed up getting pens and solid brushes, by using
30578         their ARGB as a hash instead of tostring and not calling Contains.
30579
30580 2005-01-06  Peter Bartok <pbartok@novell.com>
30581
30582         * Form.cs:
30583           - Implemented OnActivated and OnDeactivate event trigger
30584           - Implemented Activate() method
30585           - Fixed ShowDialog() to activate the form that was active before
30586             the dialog was shown
30587         * XplatUIX11.cs:
30588           - Added global active_window var that tracks the currently active
30589             X11 window
30590           - Now always grabs Property changes from the root window to always
30591             catch changes on the active window property
30592           - Added code to PropertyNotify handler to send Active/Inactive
30593             messages when state changes. This puts X11 and Win32 en par on
30594             WM_ACTIVATE notifications (except for double notifications when
30595             the user clicks away from our modal window to another one of our
30596             windows)
30597
30598 2005-01-05  Jackson Harper  <jackson@ximian.com>
30599
30600         * ImageList.cs: Implment ctor
30601
30602 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
30603
30604         * XplatUIOSX.cs: Implement Activate/SetTopmost
30605
30606 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
30607
30608         * XplatUIOSX.cs: Implement SetZOrder, minor cleanup
30609
30610 2005-01-05  Geoff Norton  <gnorton@customerdna.com>
30611
30612         * XplatUIOSX.cs: Implement GetActive/SetFocus.
30613
30614 2005-01-05  Peter Bartok <pbartok@novell.com>
30615
30616         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs,
30617           XplatUIOSX.cs: Added GetActive method to return the currently
30618           active window for the application (or null, if none is active)
30619         * Form.cs:
30620           - Implemented ActiveForm
30621           - Commented out owner assignment for modal dialogs (causes problems
30622             on Win32, since the owner will be disabled)
30623           - Reworked some Active/Focus handling (still incomplete)
30624         * CommonDialog.cs: Commented out owner assignment for modal dialogs
30625           (causes problems on Win32, since the owner will be disabled)
30626         * IWin32Window: Added ComVisible attribute
30627
30628 2005-01-05  Peter Bartok <pbartok@novell.com>
30629
30630         * ToolTip.cs (WndProc): Enable setting focus now that we have the
30631           required XplatUI functions.
30632
30633 2005-01-05  Peter Bartok <pbartok@novell.com>
30634
30635         * XplatUI.cs, XplatUIOSX.cs, XplatUIWin32.cs, XplatUIDriver.cs,
30636           XplatUIX11.cs, X11Structs.cs, Form.cs: Framework code required
30637           to implement focus and activation handling; still incomplete and
30638           with debug output
30639
30640 2005-01-04  Peter Bartok <pbartok@novell.com>
30641
30642         * TextBoxBase.cs: Changed access level for Document property to
30643           match switch to internal for TextControl
30644
30645 2005-01-04  Peter Bartok <pbartok@novell.com>
30646
30647         * AccessibleObject: Added ComVisible attribute
30648
30649 2005-01-04  Jackson Harper  <jackson@ximian.com>
30650
30651         * X11Keyboard.cs: Remove unneeded var.
30652
30653 2005-01-04  Jackson Harper  <jackson@ximian.com>
30654
30655         * XplatUIX11.cs (DoEvents): Implement, Just cast aside all events
30656         but PAINT.
30657         * XplatUIX11.cs (GetMessage): Call Exit when we get an unknown
30658         ClientMessage. This makes apps exit cleanly (more often).
30659         
30660 2005-01-04  Jackson Harper  <jackson@ximian.com>
30661
30662         * TreeNode.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) for
30663         handling focus, return correct colors and fonts,
30664         * TreeView.cs: Patches by Kazuki Oikawa (kazuki@panicode.com) to
30665         handle selection, horizontal scrolling, and mouse interaction.
30666
30667 2005-01-04  Peter Bartok <pbartok@novell.com>
30668
30669         * ICommandExecutor.cs: Added
30670         * IDataGridColumnStyleEditingNotificationService.cs: Added
30671         * IFeatureSupport.cs: Added
30672         * IFileReaderService.cs: Added
30673         * IDataObject.cs: Added ComVisible attribute
30674         * AmbientProperties.cs: Added
30675         * BaseCollection.cs: Added missing attributes
30676         * ListBindingConverter.cs: Added (stubbed, required for certain attributes)
30677         * BaseCollection.cs: Added missing attributes
30678         * Binding.cs: Added TypeConverter attribute
30679         * BindingContext.cs: Added DefaultEvent attribute
30680         * BindingsCollection.cs: Added DefaultEvent attribute
30681         * Button.cs: Added DefaultValue attribute
30682         * DragEventArgs.cs: Added ComVisible attribute
30683         * GiveFeedbackEventArgs.cs: Added ComVisible attribute
30684         * KeyEventArgs.cs: Added ComVisible attribute
30685         * KeyPressEventArgs.cs: Added ComVisible attribute
30686         * MouseEventArgs.cs: Added ComVisible attribute
30687         * NavigateEventArgs.cs: Added
30688         * NavigateEventHandler.cs: Added
30689         * FeatureSupport.cs: Added
30690         * OSFeature.cs: Added
30691         * Theme.cs: Added abstract Version property to support OSFeature
30692         * ThemeWin32Classic.cs: Added Version property to
30693           support OSFeature.Themes
30694         * ProgressBar.cs: Removed OnPaintBackground override, not required since
30695           the proper styles to avoid background drawing are set, also doesn't
30696           match MS signature
30697         * QueryAccessibilityHelpEventArgs.cs: Added ComVisible attribute
30698         * QueryContinueDragEventArgs.cs: Added ComVisible attribute
30699         * ScrollEventArgs.cs: Added ComVisible attribute
30700         * SplitterEventArgs.cs: Added ComVisible attribute
30701         * AccessibleSelection.cs: Added Flags attribute
30702         * Appearance.cs: Added ComVisible attribute
30703         * Border3DSide.cs: Added ComVisible attribute
30704         * Border3DStyle.cs: Added ComVisible attribute
30705         * BorderStyle.cs: Added ComVisible attribute
30706         * DragAction.cs: Added ComVisible attribute
30707         * ErrorBlinkStyle.cs: Added
30708         * ScrollEventType.cs: Added ComVisible attribute
30709         * AnchorStyles.cs: Added Editor attribute
30710         * DockStyle.cs: Added Editor attribute
30711         * HorizontalAlignment.cs: Added ComVisible attribute
30712         * HelpEventArgs.cs: Added ComVisible attribute
30713         * PaintEventArgs.cs: Added IDisposable
30714
30715 2005-01-04  Peter Bartok <pbartok@novell.com>
30716
30717         * TextControl.cs: Switched Line, LineTag and Document classes to
30718           internal
30719
30720 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
30721
30722         * ComboBox.cs, ThemeWin32Classic.cs, ListBox.cs, Theme.cs:
30723         Simple mode, fixes, IntegralHeight, etc.
30724
30725 2005-01-04  Peter Bartok <pbartok@novell.com>
30726
30727         * TextBoxBase.cs: Using proper font variable now
30728
30729 2005-01-04  Peter Bartok <pbartok@novell.com>
30730
30731         * Form.cs (ShowDialog): Set parent to owner, if provided
30732         * GroupBox.cs: Removed unused vars
30733         * TextControl.cs:
30734           - Added GetHashCode() for Document and LineTag classes
30735           - Removed unused variables
30736           - Added CharIndexToLineTag() and LineTagToCharIndex() methods
30737             to allow translation between continuous char position and line/pos
30738         * CheckBox.cs: Removed vars that are provided by base class
30739         * RadioButton.cs: Removed vars that are provided by base class, added
30740           new keyword where required
30741         * LinkLabel.cs: Added new keyword where required
30742         * Control.cs (WndProc): Removed unused variable
30743         * TextBoxBase.cs:
30744           - Finished SelectionLength property
30745           - Implemented SelectionStart property
30746           - Implemented Text property
30747           - Removed unused vars
30748         * MessageBox.cs: Added new keyword where required
30749         * TextBox.cs: Removed Text property code (now in TextBoxBase), fixed
30750           WndProc signature
30751         * MenuAPI.cs: Added new keyword where required
30752         * ButtonBase.cs: Removed vars that are provided by base class, added
30753           new keyword where required
30754         * ThemeWin32Classic.cs (DrawMonthCalendarDate): Now cast Math.Floor
30755           argument to double, to allow compiling with csc 2.0 (Atsushi ran
30756           into this)
30757         * Application.cs (Run): Now triggers the ThreadExit event
30758         * CommonDialog.cs: Added new keyword where required; now properly sets
30759           parent (owner) for dialog
30760         * XplatUIX11.cs: Commented out unused vars
30761         * StatusBar.cs: Fixed signature for Text property
30762         * TabPage.cs: Undid Jordi's removal of unused var, now using the var
30763
30764 2005-01-04  Jordi Mas i Hernandez <jordi@ximian.com>
30765
30766         * ComboBox.cs, TabPage.cs, MenuAPI.cs, ThemeWin32Classic.cs,
30767         TrackBar.cs, MonthCalendar.cs: remove unused vars
30768
30769 2005-01-03  Jackson Harper  <jackson@ximian.com>
30770
30771         * ThemeWin32Classic.cs:
30772         * X11Keyboard.cs: Remove unused vars.
30773
30774 2005-01-03  Peter Bartok  <pbartok@novell.com>
30775
30776         * TextBox.cs:
30777           - set_Text: Tied into TextControl
30778           - set_TextAlignment: Tied into TextControl
30779         * TextControl.cs:
30780           - Added alignment properties and implemented alignment handling
30781             and drawing (still has a bug, not generating proper expose events)
30782           - Added new Line() constructor to allow passing the line alignment
30783           - Fixed selection setting, properly handling end<start now
30784           - Added aligment considerations to RecalculateDocument()
30785         * TextBoxBase.cs:
30786           - Now properly enforces control height for single line controls
30787           - Added support for CharacterCasing
30788           - Added IsInputKey override
30789           - Fixed Keys.Enter logic
30790           - Added SetBoundsCore override
30791           - Fixed mouse selection handling
30792
30793 2005-01-03  Jackson Harper  <jackson@ximian.com>
30794
30795         * TreeView.cs:
30796           - Collapse and uncheck all nodes when CheckBoxes is disabled.
30797           - Checkboxes are always aligned to the bottom of the node,
30798           regardless of item height.
30799           - Use the node bounds to draw the text so we can center it when
30800           the item height is greater then the font height.
30801           - Node::Bounds are only the text part of the node.
30802         * TreeNode.cs: New method to combine collapsing and unchecking all
30803           nodes recursively.
30804
30805 2005-01-02  Jackson Harper  <jackson@ximian.com>
30806
30807         * TreeView.cs: Draw checkmarks, handle detecting check mark clicks
30808         * TreeNode.cs: Add a bounding box for the checkbox, refresh the
30809         tree when a check is changed. TODO: Only refresh the checked node.
30810
30811 2004-12-30  Jackson Harper  <jackson@ximian.com>
30812
30813         * TreeView.cs: Draw checkbox boxes when checkboxes are enabled.
30814         * TreeNode.cs: When collapsing make sure to never collapse the
30815         root node.
30816
30817 2004-12-29  Jackson Harper  <jackson@ximian.com>
30818
30819         * TreeView.cs: Align lines to the bottom of plus minus boxes properly.
30820         
30821 2004-12-28  Zoltan Varga  <vargaz@freemail.hu>
30822
30823         * X11Structs.cs X11Keyboard.cs XplatUIX11.cs: Fix 64 bit issues.
30824
30825 2004-12-28  Peter Bartok  <pbartok@novell.com>
30826
30827         * MessageBox.cs (get_CreateParams): Don't use owner var if it's
30828           not yet assigned
30829
30830 2004-12-28  Peter Bartok  <pbartok@novell.com>
30831
30832         * Control.cs (WndProc): Added WM_HELP handler, now generates
30833           HelpRequested event
30834         * Form.cs: Added HelpButton property and required support code
30835         * XplatUIStructs.cs: Added HELPINFO structure for WM_HELP handling
30836
30837 2004-12-28  Peter Bartok  <pbartok@novell.com>
30838
30839         * CommonDialog.cs:
30840           - Made DialogForm.owner variable internal
30841           - Added check to ensure owner form is set before setting
30842             owner properties in CreateParams
30843
30844 2004-12-28  Geoff Norton  <gnorton@customerdna.com>
30845
30846         * XplatUIOSX.cs: Implement mouse hovering.  Fix QDPoint struct to avoid
30847           swizzling.  Implement ClientToScreen and ScreenToClient.  Implement
30848           GetCursorPos.  Fix major visibility issues.  Rework the windowing
30849           system to support borderless/titleless windows (implements menus).
30850           Fix GetWindowPos.  Implement initial background color support for
30851           views.
30852
30853 2004-12-28  Peter Bartok  <pbartok@novell.com>
30854
30855         * Form.cs (get_CreateParams): Make sure we have an owner before using
30856           the owner variable. Implement proper default if no owner exists
30857
30858 2004-12-28  Peter Bartok  <pbartok@novell.com>
30859
30860         * In preparation for making Managed.Windows.Forms the default build target
30861           for System.Windows.Forms, the following stubbed files were added.
30862           Dialogs are currently being implemented by contributors and are only
30863           short-term place holders.
30864         * ColorDialog.cs: Initial check-in (minmal stub)
30865         * DataGrid.cs: Initial check-in (minimal stub)
30866         * DataGridLineStyle.cs: Initial check-in (minimal stub)
30867         * DataGridParentRowsLabelStyle.cs: Initial check-in (minimal stub)
30868         * DataGridTableStyle.cs: Initial check-in (minimal stub)
30869         * FontDialog.cs: Initial check-in (minimal stub)
30870         * FileDialog.cs: Initial check-in (minimal stub)
30871         * GridColumnStylesCollection.cs: Initial check-in (minimal stub)
30872         * GridTableStylesCollection.cs: Initial check-in (minimal stub)
30873         * OpenFileDialog: Initial check-in (minimal stub)
30874         * IComponentEditorPageSite.cs: Initial check-in
30875         * Splitter.cs: Initial check-in (for Jackson)
30876         * SplitterEventArgs.cs: Initial check-in (for Jackson)
30877         * SplitterEventHandler.cs: Initial check-in (for Jackson)
30878         * TextBox.cs: Initial check-in; still needs some wiring to
30879           TextControl backend
30880         * Form.cs: Implemented ControlBox property
30881         * MessageBox.cs: Added proper coding for Minimize/Maximize/ControlBox
30882         * CommonDialog.cs: Added proper coding for Minimize/Maximize/ControlBox
30883         * TextControl.cs: Added selection functionality; added todo header
30884         * TextBoxBase.cs:
30885           - Implemented Lines property
30886           - Implemented TextHeight property
30887           - Implemented SelectedText property
30888           - Implemented SelectionLength property
30889           - Implemented SelectAll method
30890           - Implemented ToString method
30891           - Removed and cleaned up some debug code
30892           - Implemented (still buggy) mouse text selection
30893
30894 2004-12-27  Jordi Mas i Hernandez <jordi@ximian.com>
30895
30896         * ComboBox.cs: Complete DropDownList implementation, fixes.
30897
30898 2004-12-26  Jordi Mas i Hernandez <jordi@ximian.com>
30899
30900         * ThemeWin32Classic, Theme.cs: ComboBox drawing methods
30901         * ComboBoxStyle.cs: ComboBoxStyle enum
30902         * ComboBox.cs: Initial work on ComboBox control
30903
30904 2004-12-21  Peter Bartok  <pbartok@novell.com>
30905
30906         * Control.cs (ctor, CreateParams): Moved setting of is_visible
30907           forward so that anything that creates a window gets the default,
30908           also no longer uses Visible property in CreateParams to avoid
30909           walking up the parent chain and possibly get the wrong visible
30910           status. Fixed IsVisible to no longer walk up to the parent.
30911
30912 2004-12-21  Peter Bartok  <pbartok@novell.com>
30913
30914         * Form.cs (ShowDialog): Unset modality for the proper window
30915  
30916 2004-12-20  Peter Bartok  <pbartok@novell.com>
30917
30918         * CommonDialog.cs: Initial check-in
30919
30920 2004-12-20  Peter Bartok  <pbartok@novell.com>
30921
30922         * Control.cs (Visible): Now uses the parent window instead of the
30923           client area window for the property
30924
30925         * Form.cs
30926           - ShowDialog(): Now uses the proper window for modality
30927           - The default visibility state for the form parent is now false. This
30928             will prevent the user from seeing all the changes to the form and
30929             its controls before the application hits Application.Run()
30930           - Removed some stale commented out code
30931
30932         * NativeWindow.cs:
30933           - Added FindWindow() method to have a method to check for existence
30934             of a window handle
30935           - Added ability to override default exception handling (for example
30936             when debugging with VS.Net; to do this the ExternalExceptionHandler
30937             define must be set
30938           - Removed some useless debug output
30939
30940         * XplatUIX11.cs:
30941           - Removed r37929 (SetModal patch from Ashwin Bharambe), was
30942             not working as expected
30943           - Implemented modal_window stack and checking for _WM_ACTIVE_WINDOW
30944             property to allow switching back to the modal window if focus is
30945             given to another one of our windows (Application Modal)
30946           - Now only sets override_redirect if we create a window
30947             without WS_CAPTION
30948           - Moved EventMask selection before mapping of newly created window
30949             so we can catch the map event as well
30950           - Implemented Activate() method via the _WM_ACTIVE_WINDOW property
30951           - Added various Atom related DllImports
30952           - Implemented Exit() method
30953           - .ctor() : No longer shows window if WS_VISIBLE is not defined
30954             in the CreateParams
30955
30956         * MessageBox.cs: Now properly deals with the FormParent window by
30957           providing an override the FormParent CreateParams property to
30958           set as POPUP instead of OVERLAPPED window.
30959
30960 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
30961
30962         * XplatUIOSX.cs: Implement DestroyWindow.  Implement ScrollWindow
30963         Minor code cleanup.
30964
30965 2004-12-19  Geoff Norton  <gnorton@customerdna.com>
30966         
30967         * XplatUIOSX.cs (SetModal): Implement this method on OSX.
30968
30969 2004-12-18  Peter Bartok  <pbartok@novell.com>
30970
30971         * XplatUIX11.cs (SetModal): Applied patch from Ashwin Bharambe,
30972           implementing SetModal() method
30973
30974 2004-12-18  Peter Bartok  <pbartok@novell.com>
30975
30976         * X11Structs.cs (XGCValues): Fixed type of function element
30977         * XplatUI.cs: Added ScrollWindow() method
30978         * XplatUIDriver.cs: Added ScrollWindow() abstract
30979         * XplatUIWin32.cs: Implemented ScrollWindow() method
30980         * XplatUIX11.cs: Implemented ScrollWindow() method
30981         * XplatUIOSX.cs: Stubbed out ScrollWindow() method
30982
30983 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
30984
30985         * XplatUIOSX.cs:  Fix cursor to use an Invert instead of drawing it
30986         Some more keyboard support (INCOMPLETE)
30987
30988 2004-12-17  Peter Bartok  <pbartok@novell.com>
30989
30990         * TextControl.cs:
30991         - Added color attribute to line tags.
30992         - Added color argument to all functions dealing with tags
30993         - Added color argument support to various functions
30994         - Fixed miss-calculation of baseline/shift in certain circumstances
30995
30996         * TextBoxBase.cs: Added new color option to test code
30997
30998 2004-12-17  Jackson Harper  <jackson@ximian.com>
30999
31000         * TreeNode.cs:
31001         * MonthCalendar.cs: Signature fixes
31002
31003 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
31004
31005         * XplatUIOSX.cs: Find the missing caret; caret was dissappearing after a
31006         keyboard event moved it.  Create a new graphics context for each paint resolves this
31007
31008 2004-12-17  Geoff Norton  <gnorton@customerdna.com>
31009
31010         * XplatUIOSX.cs: Fix hard cpu eat on loop with existing timers,
31011         Make caret exist and go blink blink.  Initial keyboard support.
31012         Fix exception handler, Add Invalidate support.  Change way RefreshWindow
31013         works.
31014
31015 2004-12-17  Jackson Harper  <jackson@ximian.com>
31016
31017         * XplatUIStructs.cs: Updated set of virtual keycodes.
31018         * KeyboardLayouts.cs: SCROLL_LOCK is now SCROLL
31019
31020 2004-12-17  Jackson Harper  <jackson@ximian.com>
31021
31022         * XplatUIX11.cs: Prune old keyboard code.
31023
31024 2004-12-17  Jackson Harper  <jackson@ximian.com>
31025
31026         * XplatUIX11.cs: When generating mouse wparams get the modifier
31027         keys from the ModifierKeys property.
31028
31029 2004-12-17  Jackson Harper  <jackson@ximian.com>
31030
31031         * X11Keyboard.cs: Send up/down input when generating
31032         messages. Remove some unused vars.
31033
31034 2004-12-17  Jackson Harper  <jackson@ximian.com>
31035
31036         * TabControl.cs:
31037         * TreeView.cs: get rid of warnings.
31038
31039 2004-12-17  Jackson Harper  <jackson@ximian.com>
31040
31041         * XplatUIStructs.cs: Fix a couple wrong virtual keycodes.
31042
31043 2004-12-17  Jordi Mas i Hernandez <jordi@ximian.com>
31044
31045         * ListBox.cs: bug fixes, changes for CheckedListBox.cs
31046           CheckedListBox.cs: Implementation
31047
31048 2004-12-17  Peter Bartok  <pbartok@novell.com>
31049
31050         * TextControl.cs (RecalculateLine): Fixed baseline aligning calcs
31051
31052 2004-12-16  Peter Bartok  <pbartok@novell.com>
31053
31054         * TextControl.cs:
31055           - InsertCharAtCaret(): Fixed start pos fixup
31056           - CaretLine_get: No longer derives the line from the tag, the tag
31057             could be stale if lines in the document have been added or deleted
31058           - RebalanceAfterDelete(): Fixed bug in balancing code
31059           - RebalanceAfterAdd(): Fixed really stupid bug in balancing code
31060           - Line.Streamline(): Now can also elminate leading empty tags
31061           - DumpTree(): Added a few more tests and prevented exception on
31062             uninitialized data
31063           - Added Debug section for Combining lines
31064           - Delete(): Now copies all remaining properties of a line
31065           
31066         * TextBoxBase.cs:
31067           - Left mousebutton now sets the caret (and middle button still acts
31068             as formatting tester, which must go away soon)
31069           - Added Debug section for Deleting/Combining lines
31070           - Fixed calculations for UpdateView after Combining lines
31071
31072 2004-12-16  Peter Bartok  <pbartok@novell.com>
31073
31074         * TextControl.cs: Now properly aligns text on a baseline, using the
31075           new XplatUI.GetFontMetrics() method. Simplified several calculations
31076         * TextBoxBase.cs: Moved #endif to allow compiling if Debug is not
31077           defined
31078
31079 2004-12-16  Peter Bartok  <pbartok@novell.com>
31080
31081         * XplatUI.cs: Added GetFontMetrics() method
31082         * XplatUIDriver.cs: Added GetFontMetrics() abstract
31083         * XplatUIX11.cs: Implemented GetFontMetrics() method, now calls
31084           into libgdiplus, our private GetFontMetrics function
31085         * XplatUIOSX.cs: Implemented GetFontMetrics() method, same as X11
31086         * XplatUIWin32.cs: Implemented GetFontMetrics() method
31087
31088 2004-12-16  Jackson Harper  <jackson@ximain.com>
31089
31090         * XplatUIStruct.cs: Add enum for dead keys
31091         * X11Keyboard.cs: Map and unmap dead keys.
31092
31093 2004-12-16  Jackson Harper  <jackson@ximian.com>
31094
31095         * X11Keyboard.cs: Detect and use the num lock mask.
31096
31097 2004-12-16  Peter Bartok  <pbartok@novell.com>
31098
31099         * Control.cs (CreateGraphics): Added check to make sure the
31100           handle of the window exists before calling Graphics.FromHwnd()
31101
31102 2004-12-16  Peter Bartok  <pbartok@novell.com>
31103
31104         * TextBoxBase.cs: Initial check-in. DO NOT TRY TO USE THIS YET. It
31105           contains a lot of code that's not supposed to be there for the
31106           real thing, but required for developing/testing the textbox
31107           backend.
31108
31109 2004-12-16  Peter Bartok  <pbartok@novell.com>
31110
31111         * TextControl.cs:
31112         - Fixed Streamline method
31113         - Added FindTag method to Line
31114         - Added DumpTree method for debugging
31115         - Added DecrementLines() method for deleting lines
31116         - Fixed UpdateView to update the cursor to end-of-line on single-line
31117           updates
31118         - Added PositionCaret() method
31119         - Fixed MoveCaret(LineDown) to move into the last line, too
31120         - Added InsertChar overload
31121         - Fixed InsertChar tag offset calculations
31122         - Added DeleteChar() method
31123         - Added Combine() method for folding lines
31124         - Fixed Delete() method, no longer allocates wasted Line object and
31125           now copies all properties when swapping nodes
31126         - Delete() method now updates document line counter
31127
31128 2004-12-15  Jackson Harper  <jackson@ximian.com>
31129
31130         * XplatUIX11.cs: Get the modifier keys from the keyboard driver
31131         * X11Keyboard.cs: Expose the currently selected modifier keys
31132         through a property.
31133
31134 2004-12-15  Peter Bartok  <pbartok@novell.com>
31135
31136         * TextControl.cs: Initial check-in. Still incomplete
31137
31138 2004-12-15  Jackson Harper  <jackson@ximian.com>
31139
31140         * TreeNode.cs:
31141         * TreeView.cs: Fix build on csc (second time today ;-))
31142
31143 2004-12-15  Jackson Harper  <jackson@ximian.com>
31144
31145         * TreeView.cs: Store the treenodes plus/minus box bounds when it
31146         is calculated and use this for click testing.
31147         * TreeNode.cs: Add functionality to store the nodes plus minus box bounds.
31148
31149 2004-12-15  Jackson Harper  <jackson@ximian.com>
31150
31151         * TreeView.cs: Pass the nodes image index to the image list when
31152         drawing that image.
31153
31154 2004-12-15  Jackson Harper  <jackson@ximian.com>
31155
31156         * X11Keyboard.cs: Set messages hwnd.
31157         * XplatUIX11.cs: Pass proper hwnd wot keyboard driver. Set hwnd on
31158         post_message calls.
31159
31160 2004-12-15  Jackson Harper  <jackson@ximian.com>
31161
31162         * X11Keyboard.cs: Fix to compile with csc.
31163         
31164 2004-12-15  Jackson Harper  <jackson@ximian.com>
31165
31166         * X11Structs.cs: Add key mask values
31167         * XplatUIStruct.cs: Add keyboard event flags, and keyboard definitions
31168         * X11Keyboard.cs: New file - Extrapolates and interpolates key
31169         down/up foo into WM_CHAR foo
31170         * KeyboardLayouts.cs: Common keyboard layouts
31171         * XplatUIX11.cs: Add the keyboard driver. Add functionality to
31172         post messages into the main queue.
31173
31174 2004-12-13  Jordi Mas i Hernandez <jordi@ximian.com>
31175
31176         * Button.cs: implement ProcessMnemonic
31177         * ThemeWin32Classic.cs: use ResPool (caching) instead of creating
31178           brushes everytime
31179         * Control.cs: fixes IsMnemonic (support for &&, case insensitive, etc)
31180         * ButtonBase.cs: Show HotkeyPrefix (not the &)
31181
31182 2004-12-12  John BouAntoun  <jba-mon@optusnet.com.au>
31183         
31184         * MonthCalendar.cs: Implemented click-hold for next/previous month
31185           and date selection
31186           
31187 2004-12-11  Peter Bartok  <pbartok@novell.com>
31188
31189         * X11Structs.cs:
31190           - Added XKeyboardState (moved from XplatUIX11.cs)
31191           - Added XCreateGC related enums and structures
31192           - Added GXFunction for XSetFunction
31193
31194         * XplatUIStructs.cs: Added missing WS_EX_xxx definitions
31195
31196         * XplatUI.cs: Added CreateCaret(), DestroyCaret(), SetCaretPos() and
31197           CaretVisible() calls
31198
31199         * ToolTip.cs: Added code to prevent stealing focus from app windows
31200
31201         * XplatUIDriver.cs: Added abstracts for caret functions (CreateCaret,
31202           DestroyCaret, SetCaretPos and CaretVisible)
31203
31204         * XplatUIX11.cs:
31205           - Added implementation for caret functions
31206           - Moved hover variables into a struct, to make it a bit easier
31207             on the eyes and to debug
31208           - Removed XKeyboardState (moved to XplatUIX11.cs)
31209           - Moved Keyboard properties into the properties region
31210
31211         * Control.cs (get_Region): Control.CreateGraphics is the appropriate
31212           call to get a graphics context for our control
31213
31214         * XplatUIOSX.cs: Added empty overrides for the new caret functions
31215
31216         * TreeView.cs: Fixed bug. No matter what color was set it would always
31217           return SystemColors.Window
31218
31219         * XplatUIWin32.cs: Implemented caret overrides
31220
31221 2004-12-10  Jordi Mas i Hernandez <jordi@ximian.com>
31222
31223         * ListBox.cs: fire events, implement missing methods and properties,
31224         sorting.
31225
31226 2004-12-10  John BouAntoun <jba-mono@optusnet.com.au>
31227
31228         * MonthCalendar.cs: invalidation bug fixing
31229         * ThemeWin32Classic.cs: paint fixing
31230
31231 2004-12-09  Geoff Norton  <gnorton@customerdna.com>
31232
31233         * XplatUIOSX.cs: Refactor to pass the real hwnd into Graphics.FromHwnd, we
31234         prepare the CGContextRef there now.
31235
31236 2004-12-09  John BouAntoun <jba-mono@optusnet.com.au>
31237
31238         * MonthCalendar.cs:
31239           - optimisationL only invalidate areas that have changed
31240         * ThemeWin32Classic.cs:
31241           - only paint parts that intersect with clip_area
31242
31243 2004-12-09  Peter Bartok  <pbartok@novell.com>
31244
31245         * Application.cs: Undid changes from r37004 which cause problems
31246         on X11
31247
31248 2004-12-09  Ravindra  <rkumar@novell.com>
31249
31250         * ToolBar.cs: Added support for displaying ContextMenu
31251         attached to a button on ToolBar.
31252         * ToolBarButton.cs: Uncomment/fixed the DropDownMenu
31253         property.
31254
31255 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
31256
31257         * Label.cs: autosize works in text change and removes unnecessary
31258         invalidate
31259
31260 2004-12-09  Jordi Mas i Hernandez <jordi@ximian.com>
31261
31262         * ThemeWin32Classic.cs, XplatUIOSX.cs, XplatUIWin32.cs:
31263         remove warnings
31264
31265 2004-12-08  Geoff Norton  <gnorton@customerdna.com>
31266
31267         * XplatUIOSX.cs: Added mouse move/click/grab support
31268         Remove some debugging WriteLines not needed anymore.
31269         Add window resizing/positioning.
31270         Fix visibility on reparenting.
31271
31272 2004-12-08  Peter Bartok  <pbartok@novell.com>
31273
31274         * XplatUIOSX.cs: Added Idle event, now compiles on VS.Net
31275
31276 2004-12-07  Geoff Norton  <gnorton@customerdna.com>
31277
31278         * XplatUIOSX.cs: Initial checkin
31279         * XplatUI.cs: Use the Quartz driver if the environment is set to use it
31280
31281 2004-12-03  Ravindra <rkumar@novell.com>
31282
31283         * ListView.cs: Added some keybindings and fixed scrolling.
31284         ScrollBars listen to ValueChanged event instead of Scroll
31285         Event. This would let us take care of all changes being
31286         done in the scrollbars' values programmatically or manually.
31287         * ListView.cs (CanMultiselect): Added a check for shift key.
31288         * ListView.cs (EnsureVisible): Fixed. Do proper scrolling.
31289         * ListViewItem.cs (Clone): Fixed. We need to make a copy
31290         of ListViewSubItemCollection as well.
31291
31292 2004-12-06  Peter Bartok <pbartok@novell.com>
31293
31294         * Control.cs (Parent): Added check and exception to prevent
31295         circular parenting
31296
31297 2004-12-03  Jordi Mas i Hernandez <jordi@ximian.com>
31298
31299         * ListBox.cs: implemented clipping, selection single and multiple,
31300         bug fixing
31301
31302 2004-12-03  Ravindra <rkumar@novell.com>
31303
31304         * ListView.cs (ListView_KeyDown):
31305         * ListView.cs (ListView_KeyUp): Fixed multiple selection handling
31306         when CTRL key is pressed.
31307         * ListViewItem.cs (Selected): Fixed setting the property.
31308
31309 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
31310
31311         * Application.cs (OnThreadException): Use ThreadExceptionDialog.
31312
31313         * Form.cs: Add ActiveForm, FormBorderStyle, MaximizeBox,
31314         MinimizeBox, ShowInTaskbar, TopMost properties.
31315
31316         * ThreadExceptionDialog.cs: Implemented (disabled TextBox until
31317         will be implemented).
31318
31319 2004-12-03  Marek Safar  <marek.safar@seznam.cz>
31320
31321         * OwnerDrawPropertyBag.cs: New internal parameterless ctor.
31322
31323         * TreeNode.cs: Implemented ICloneable, Fixed to pass my simple
31324         tests.
31325         
31326         * TreeNodeCollection.cs: Add exception throwing for Add,AddRange.
31327         
31328         * TreeView.cs: BackColor is Colors.Window.
31329
31330 2004-12-01  Jackson Harper  <jackson@ximian.com>
31331
31332         * TreeView.cs: When resizing the tree if the user is making it
31333         smaller we don't get expose events, so we need to handle adding
31334         the horizontal scrollbar in the size changed handler as well as
31335         the expose handler.
31336
31337 2004-12-02  Jordi Mas i Hernandez <jordi@ximian.com>
31338
31339         * DrawItemState.cs: fixes wrong enum values
31340
31341 2004-12-01  Jackson Harper  <jackson@ximian.com>
31342
31343         * TreeView.cs: Resize the hbar as well as the vbar on resize.
31344
31345 2004-12-01  Jackson Harper  <jackson@ximian.com>
31346
31347         * NodeLabelEditEventArgs.cs:
31348         * NodeLabelEditEventHandler.cs:
31349         * OpenTreeNodeEnumerator.cs:
31350         * TreeNode.cs:
31351         * TreeNodeCollection.cs:
31352         * TreeView.cs:
31353         * TreeViewAction.cs:
31354         * TreeViewCancelEventArgs.cs:
31355         * TreeViewCancelEventHandler.cs:
31356         * TreeViewEventArgs.cs:
31357         * TreeViewEventHandler.cs: Initial implementation.
31358
31359 2004-12-01  Ravindra <rkumar@novell.com>
31360
31361         * ListView.cs (CalculateListView): Fixed scrolling related
31362         calculations. Also, removed some debug statements from other
31363         places.
31364         * ListViewItem.cs: Changed access to 'selected' instance variable
31365         from private to internal.
31366         * ThemeWin32Classic.cs (DrawListViewItem): Fixed SubItem drawing.
31367
31368 2004-12-01  Jordi Mas i Hernandez <jordi@ximian.com>
31369
31370         * ThemeWin32Classic.cs: remove cache of brush and pens for
31371         specific controls and use the global system, fixes scrollbutton
31372         bugs (for small sizes, disabled, etc)
31373         
31374         * ScrollBar.cs: does not show the thumb for very small controls
31375         (as MS) and allow smaller buttons that the regular size
31376
31377 2004-12-01  Miguel de Icaza  <miguel@ximian.com>
31378
31379         * UpDownBase.cs: Add abstract methods for the interface.
31380         Add new virtual methods (need to be hooked up to TextEntry when it
31381         exists).
31382         Add override methods for most features.
31383         Computes the size, forces the height of the text entry.
31384
31385         * NumericUpDown.cs: Put here the current testing code.
31386
31387         * Set eol-style property on all files that do not have mixed line
31388         endings, to minimize the future problems.  There are still a few
31389         files with mixed endings, and someone should choose whether they
31390         want to move it or not.
31391
31392 2004-11-30  Jordi Mas i Hernandez <jordi@ximian.com>
31393
31394         * MonthCalendar.cs, ListView.cs: use Theme colours instead of
31395         System.Colors
31396         
31397 2004-11-30  Ravindra <rkumar@novell.com>
31398
31399         * ThemeWin32Classic.cs (DrawListViewItem): Fixed selected item
31400         drawing and replaced use of SystemColors by theme colors.
31401         * ListView.cs (ListView_Paint): Fixed painting done during scrolling.
31402         * ListView.cs (ListViewItemCollection.Add): Throw exception when
31403         same ListViewItem is being added more than once.
31404
31405 2004-11-30  John BouAntoun <jba-mono@optusnet.com.au>
31406
31407         * MonthCalendar.cs:
31408           - ControlStyles love to make the control not flicker
31409           
31410 2004-11-30  Peter Bartok  <pbartok@novell.com>
31411
31412         * CharacterCasing.cs: Added
31413
31414 2004-11-29  Peter Bartok  <pbartok@novell.com>
31415
31416         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
31417           TreeViewAction.cs, TreeViewEventArgs.cs: Removed new files.
31418           I am removing these files as they conflict with already completed
31419           work. While it is fantastic to get contributions to MWF, I
31420           respectfully ask that everyone please coordinate their contributions
31421           through mono-winforms-list or #mono-winforms at this time. We're
31422           explicitly avoiding stubbing and don't want controls that don't have
31423           their basic functionality implemented in svn. Please also see
31424           http://www.mono-project.com/contributing/winforms.html
31425
31426
31427 2004-11-29  Marek Safar  <marek.safar@seznam.cz>
31428
31429         * Application.cs (ModalRun): Don't hang after exit.
31430
31431         * Theme.cs: New TreeViewDefaultSize property.
31432
31433         * ThemeWin32Classic.cs: Replaced hardcoded defaultWindowBackColor
31434         with less hardcoded SystemColors constant.
31435         Implemented TreeViewDefaultSize.
31436
31437         * TreeNode.cs, TreeNodeCollection.cs, TreeView.cs,
31438         TreeViewAction.cs, TreeViewEventArgs.cs: New files.
31439
31440
31441 2004-11-29  John BouAntoun <jba-mono@optusnet.com.au>
31442
31443         * MonthCalendar.cs:
31444           - Fix NextMonthDate and PrevMonthDate click moving calendar
31445
31446 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
31447
31448         * MonthCalendar.cs:
31449           - Fix usage of ScrollChange Property when scrolling months
31450
31451 2004-11-26  Jordi Mas i Hernandez <jordi@ximian.com>
31452
31453         * Menu.cs, MainMenu.cs, MenuItem.cs, MenuAPI.cs
31454          - Fixes menu destroying
31455          - Support adding and removing items on already created menus
31456
31457 2004-11-26  John BouAntoun <jba-mono@optusnet.com.au>
31458
31459         * MonthCalendar.cs:
31460           - Re-worked all bolded dates handling to match win32
31461         * ThemeWin32Classic.cs:
31462           - Fixed rendering with bolded dates
31463
31464 2004-11-25  Jordi Mas i Hernandez <jordi@ximian.com>
31465
31466         * ListBox.cs, Theme.cs, ThemeWin32Classic.cs:
31467         - Horizontal scroolbar
31468         - Multicolumn
31469         - Fixes
31470
31471
31472 2004-11-25  John BouAntoun <jba-mono@optusnet.com.au>
31473
31474         * MonthCalendar.cs:
31475           - Fix Usage of MaxSelectionCount from SelectionRange
31476           - Fixed Shift + Cursor Selection
31477           - Fixed Shift + (Pg up/Pg dn, Home/End) selection
31478           - Fixed normal cursor selection to be compat with win32
31479           - Fixed Shift + Mouse Click selection
31480
31481 2004-11-24  Peter Bartok <pbartok@novell.com>
31482
31483         * XplatUI.cs (DispatchMessage): Switched to return IntPtr
31484         * XplatUIDriver.cs (DispatchMessage): Switched to return IntPtr
31485         * XplatUIX11.cs:
31486           - CreatedKeyBoardMsg now updates keystate with Alt key
31487           - Added workaround for timer crash to CheckTimers, Jackson will
31488             develop a proper fix and check in later
31489           - Implemented DispatchMessage
31490           - Removed calling the native window proc from GetMessage (call
31491             now moved to DispatchMessage)
31492
31493         * KeyEventArgs.cs (Constructor): Now combines modifierkeys into
31494           the keydata (Fixes bug #69831)
31495
31496         * XplatUIWin32.cs:
31497           - (DispatchMessage): Switched to return IntPtr
31498           - Added DllImport for SetFocus
31499
31500 2004-11-24  Ravindra <rkumar@novell.com>
31501
31502         * ThemeWin32Classic.cs: Fixed ListView border and checkbox
31503         background drawing.
31504         * ListViewItem.cs: Fixed various properties, calculations
31505         and Clone() method. Fixed ListViewSubItemCollection.Clear() method.
31506         * ListView.cs: Fixed calculations, BackColor, ForeColor properties
31507         and some internal properties. Fixed MouseDown handler and Paint
31508         method.
31509
31510 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
31511
31512         * MonthCalendar.cs: Add TitleMonth ContextMenu handling
31513
31514 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
31515
31516         * ContainerControl.cs: correct accidental check in of local changes
31517
31518 2004-11-24  John BouAntoun <jba-mono@optusnet.com.au>
31519
31520         * ThemeWin32Classic.cs:
31521                 - Fixed Drawing Last month in grid (sometimes not showing)
31522         * MonthCalendar.cs:
31523                 - Fixed title width calculation bug (makeing title small)
31524
31525 2004-11-23  Peter Bartok <pbartok@novell.com>
31526
31527         * XplatUIX11.cs:
31528           - Added generation of WM_MOUSEHOVER event
31529           - Added missing assignment of async_method atom
31530           - Fixed WM_ERASEBKGND; now only redraws the exposed area
31531
31532 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
31533
31534         * ThemeWin32Classic.cs:
31535                 - Fixed Drawing of today circle when showtodaycircle not set
31536                 - fixed drawing of first and last month in the grid (gay dates)
31537         * MonthCalendar.cs:
31538                 - Fixed Drawing of today circle
31539                 - Fixed drawing of grady dates
31540                 - Fixed HitTest for today link when ShowToday set to false
31541                 - Fixed DefaultSize to obey ShowToday
31542
31543 2004-11-23  John BouAntoun <jba-mono@optusnet.com.au>
31544
31545         * ThemeWin32Classic.cs: Fixed DrawMonthCalendar and private support methods
31546         * System.Windows.Forms/Theme.cs
31547         * MonthCalendar.cs: added for MonthCalendar
31548         * SelectionRange.cs: added for MonthCalendar
31549         * Day.cs: added for MonthCalendar: added for MonthCalendar
31550         * DateRangeEventArgs.cs: added for MonthCalendar
31551         * DateRangeEventHandler.cs: added for MonthCalendar
31552
31553 2004-11-22  Ravindra <rkumar@novell.com>
31554
31555         * ThemeWin32Classic.cs: Fixed ListViewDrawing with 'UseItemStyleForSubItems'
31556         property.
31557
31558 2004-11-22  Miguel de Icaza  <miguel@ximian.com>
31559
31560         * UpDownBase.cs (InitTimer): Use prehistoric C# 1.0 notation for
31561         event handler.
31562         
31563         * NumericUpDown.cs: Added new implementation.
31564         * UpDownBase.cs: Added new implementation.
31565
31566         * XplatUIWin32.cs (KeyboardSpeed, KeyboardDelay): added default
31567         implementations.
31568         
31569         * XplatUIX11.cs (KeyboardSpeed, KeyboardDelay): added default
31570         implementations.
31571
31572         * XplatUIDriver.cs ((KeyboardSpeed, KeyboardDelay): added new
31573         methods.
31574
31575 2004-11-21  Miguel de Icaza  <miguel@ximian.com>
31576
31577         * Timer.cs  (Dispose): Should call the base dispose when
31578         overriding.
31579
31580 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
31581
31582         * ScrollBar.cs: updates thumb position when max, min or increment
31583         is changed
31584
31585 2004-11-21  Ravindra <rkumar@novell.com>
31586
31587         * ListView.cs: Implemented item selection, activation and
31588         column header style. Fixed properties to do a redraw, if
31589         required. Added support for MouseHover, DoubleClick, KeyDown
31590         and KeyUp event handling and some minor fixes.
31591         * ListViewItem.cs: Fixed constructor.
31592         * ThemeWin32Classic.cs: Improved drawing for ListView.
31593
31594 2004-11-19  Jordi Mas i Hernandez <jordi@ximian.com>
31595
31596         * ThemeWin32Classic.cs: initial listbox drawing code
31597         * DrawMode.cs: new enumerator
31598         * ListControl.cs: stubbed class
31599         * ListBox.cs: initial implementation
31600         * Theme.cs: new methods definitions
31601         * SelectionMode.cs: new enumerator
31602
31603 2004-11-17  Peter Bartok  <pbartok@novell.com>
31604
31605         * XplatUIWin32.cs: Added double-click events to the class style
31606         * Control.cs (WndProc):
31607           - Added handling of click-count to MouseDown/ MouseUp events.
31608           - Added handling of middle and right mouse buttons
31609           - Removed old debug code
31610
31611 2004-11-17  Jackson Harper  <jackson@ximian.com>
31612
31613         * XplatUIX11.cs: Use the new Mono.Unix namespace.
31614
31615 2004-11-17  Ravindra <rkumar@novell.com>
31616
31617         * ListView.cs: Added event handling for MouseMove/Up/Down.
31618         * ColumnHeader.cs: Added a read-only internal property 'Pressed'.
31619         * ThemeWin32Classic.cs: We need to clear the graphics context and
31620         draw column header in a proper state.
31621
31622
31623 2004-11-17  Jordi Mas i Hernandez <jordi@ximian.com>
31624
31625         *  Menu.cs: fixes signature
31626
31627 2004-11-16  Peter Bartok  <pbartok@novell.com>
31628
31629         * XplatUIX11.cs (GetMessage): Implemented generation of
31630           double click mouse messages
31631
31632 2004-11-12  Jordi Mas i Hernandez <jordi@ximian.com>
31633
31634         *  Form.cs, MainMenu.cs, MenuAPI.cs: tracker should be for tracking session
31635         not by menu
31636
31637 2004-11-11  Peter Bartok  <pbartok@novell.com>
31638
31639         * HandleData.cs: Added Visible property
31640         * XplatUIX11.cs (IsVisible): Now uses Visible property from
31641           HandleData
31642         * XplatUIX11.cs: Removed old debug leftovers
31643         * XplatUIX11.cs (DefWndProc): Added WM_ERASEBKGND handler
31644         * Control.cs (WndProc): Removed old debug leftovers,
31645           streamlined handling of WM_WINDOWPOSCHANGED, removed un-
31646           needed WM_SIZE handling
31647
31648 2004-11-11  Jackson Harper  <jackson@ximian.com>
31649
31650         * OwnerDrawPropertyBag.cs:
31651         * TreeViewImageIndexConverter.cs: Initial implementation
31652
31653 2004-11-10  Jackson Harper  <jackson@ximian.com>
31654
31655         * ThemeWin32Classic.cs:
31656         * TabControl.cs: instead of moving tabs by the slider pos just
31657         start drawing at the tab that is offset by the slider. This way
31658         scrolling always moves by exactly one tab.
31659
31660 2004-11-10  Jackson Harper  <jackson@ximian.com>
31661
31662         * TabControl.cs: You can only scroll left when the slider has
31663         already ben moved right.
31664         
31665 2004-11-10  Jackson Harper  <jackson@ximian.com>
31666
31667         * ThemeWin32Classic.cs: Do not draw the selected tab if its not in
31668         the clip area.
31669         
31670 2004-11-10  Jackson Harper  <jackson@ximian.com>
31671
31672         * ThemeWin32Classic.cs: Don't bother drawing tabs outside of the
31673         clip area.
31674         
31675 2004-11-09  Jackson Harper  <jackson@ximian.com>
31676
31677         * TabControl.cs (CalcXPos): New helper method so we can determine
31678         the proper place to start drawing vertical tabs.
31679         * ThemeWin32Classic.cs (DrawTab): Draw right aligned tabs.
31680         
31681 2004-11-09  Jackson Harper  <jackson@ximian.com>
31682
31683         * TabControl.cs: Calculate sizing and rects for left aligned tabs.
31684         * ThemeWin32Classic.cs (GetTabControl*ScrollRect): Only handle Top
31685         and Bottom, left and right are illegal values for this and
31686         multiline is enabled when the alignment is set to left or right.
31687         (DrawTab): Each alignment block should draw the text itself now
31688         because Left requires special love. Also add rendering for Left
31689         aligned tabs.
31690         
31691 2004-11-09  Jordi Mas i Hernandez <jordi@ximian.com>
31692
31693         *  Form.cs, MainMenu.cs, MenuAPI.cs: fixes menu navigation, fixes popups,
31694         does not destroy the windows, removes debugging messages
31695
31696 2004-11-09  jba  <jba-mono@optusnet.com.au>
31697
31698         * ThemeWin32Classic.cs
31699         (DrawButtonBase): Fix verticle text rect clipping in windows
31700         (DrawCheckBox): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
31701         rendering and incorrect text rect clipping
31702         (DrawRadioButton): Fix CheckAlign.TopCenter and CheckAlign.BottomCenter
31703         rendering and incorrect text rect clipping
31704         
31705 2004-11-08  Jackson Harper  <jackson@ximian.com>
31706
31707         * ThemeWin32Classic.cs (DrawTabControl): Render tabs from top to
31708         bottom when they are bottom aligned so the bottoms of the tabs get
31709         displayed.
31710         * TabControl.cs (DropRow): Move rows up instead of down when the
31711         tab control is bottom aligned.
31712
31713 2004-11-08 13:59  pbartok
31714
31715         * XplatUIX11.cs:
31716           - Added handling for various window styles
31717           - Added handling for popup windows
31718           - Added SetTopmost handling
31719
31720 2004-11-08 13:55  pbartok
31721
31722         * XplatUIWin32.cs:
31723           - Added argument to SetTopmost method
31724           - Fixed broken ClientToScreen function
31725
31726 2004-11-08 13:53  pbartok
31727
31728         * XplatUIStructs.cs:
31729           - Added missing WS_EX styles
31730
31731 2004-11-08 13:53  pbartok
31732
31733         * XplatUI.cs, XplatUIDriver.cs:
31734           - Added argument to SetTopmost
31735
31736 2004-11-08 13:52  pbartok
31737
31738         * X11Structs.cs:
31739           - Added XSetWindowAttributes structure
31740           - Improved XWindowAttributes structure
31741           - Added SetWindowValuemask enum
31742           - Added window creation arguments enum
31743           - Added gravity enum
31744           - Added Motif hints structure
31745           - Added various Motif flags and enums
31746           - Added PropertyMode enum for property functions
31747
31748 2004-11-08 13:50  pbartok
31749
31750         * Form.cs:
31751           - Fixed arguments for updated SetTopmost method
31752
31753 2004-11-08 13:49  pbartok
31754
31755         * ToolTip.cs:
31756           - Fixed arguments for updated SetTopmost function
31757           - Fixed usage of PointToClient
31758
31759 2004-11-08 13:44  pbartok
31760
31761         * MenuAPI.cs:
31762           - Added Clipping of children and siblings
31763
31764 2004-11-08 13:41  pbartok
31765
31766         * MainMenu.cs:
31767           - Removed SetMenuBarWindow call. We do this in Form.cs
31768
31769 2004-11-08 13:40  jackson
31770
31771         * TabControl.cs, Theme.cs, ThemeWin32Classic.cs: Render the little
31772           scrolling jimmi in the correct location with bottom aligned tabs
31773
31774 2004-11-08 13:36  pbartok
31775
31776         * ContainerControl.cs:
31777           - Implemented BindingContext
31778           - Implemented ParentForm
31779
31780 2004-11-08 12:46  jackson
31781
31782         * TabControl.cs: Put bottom rendered tabs in the right location
31783
31784 2004-11-08 07:15  jordi
31785
31786         * ScrollBar.cs, ThemeWin32Classic.cs: fixes vertical scrollbar and
31787           removes dead code
31788
31789 2004-11-05 17:30  jackson
31790
31791         * TabControl.cs: When selected tabs are expanded make sure they
31792           don't go beyond the edges of the tab control
31793
31794 2004-11-05 14:57  jackson
31795
31796         * TabControl.cs: Reset show_slider so if the control is resized to
31797           a size where it is no longer needed it's not displayed anymore
31798
31799 2004-11-05 13:16  jackson
31800
31801         * TabControl.cs: Make tab pages non visible when added to the
31802           control
31803
31804 2004-11-05 12:42  jackson
31805
31806         * TabControl.cs: Implement SizeMode.FillToRight
31807
31808 2004-11-05 12:16  jackson
31809
31810         * Control.cs: Do not call CreateHandle if the handle is already
31811           created
31812
31813 2004-11-05 11:46  jackson
31814
31815         * TabControl.cs: Remove superflous call to CalcTabRows
31816
31817 2004-11-05 09:07  jackson
31818
31819         * XplatUIX11.cs: Update for Mono.Posix changes
31820
31821 2004-11-05 07:00  ravindra
31822
31823         * ListView.cs, ListViewItem.cs: Implemented some methods and fixed
31824           scrolling.
31825
31826 2004-11-04 22:47  jba
31827
31828         * ThemeWin32Classic.cs:
31829           - Fix Button rendering for FlatStyle = Flat or Popup
31830           - Fix RadioButton and CheckBox rendering when Appearance = Button
31831             (normal and flatstyle).
31832           - Correct outer rectangle color when drawing focus rectangle
31833           - Adjust button bounds to be 1 px smaller when focused
31834           - Make button not draw sunken 3d border when pushed (windows compat)
31835           - Fix CPDrawBorder3D to not make bottom right hand corner rounded
31836           - Offset the text in RadioButton and Checkbox when being rendered as
31837           a button.
31838           - Hover and Click behaviour for Colored FlatStyle.Flat and Popup
31839           radiobuttons
31840           - Fixed disabled rendering for colored flatstyle radiobuttons (both)
31841           - Fixed disabled text rendering for normally rendered radiobuttons
31842
31843 2004-11-04 10:26  jackson
31844
31845         * TabControl.cs: Recalculate tab rows when resizing
31846
31847 2004-11-04 07:47  jordi
31848
31849         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs:
31850           collection completion, drawing issues, missing features
31851
31852 2004-11-04 05:03  ravindra
31853
31854         * ScrollBar.cs:
31855                 - We need to recalculate the Thumb area when
31856                 LargeChange/maximum/minimum values are changed.
31857           - We set the 'pos' in UpdatePos() method to minimum, if it's less
31858                 than minimum. This is required to handle the case if large_change is
31859                 more than max, and use LargeChange property instead of large_change
31860                 variable.
31861           - We return max+1 when large_change is more than max, like MS does.
31862
31863 2004-11-04 04:29  ravindra
31864
31865         * ColumnHeader.cs, ListView.cs, ListViewItem.cs:
31866                 - Changed default value signatures (prefixed all with ListView).
31867                 - Fixed/implemented layout LargeIcon, SmallIcon and List views for
31868                 ListView.
31869           - Fixed calculations for ListViewItem and implemented Clone()
31870           method.
31871
31872 2004-11-04 04:26  ravindra
31873
31874         * Theme.cs, ThemeWin32Classic.cs:
31875                 - Changed default ListView values signatures (prefixed all with
31876                 ListView).
31877           - Fixed default size values for VScrollBar and HScrollBar.
31878                 - Fixed DrawListViewItem method.
31879
31880 2004-11-04 04:05  ravindra
31881
31882         * ColumnHeaderStyle.cs: Typo. It should be Nonclickable.
31883
31884 2004-11-04 04:04  ravindra
31885
31886         * ImageList.cs: Implemented the missing overload for Draw method.
31887
31888 2004-11-03 19:29  jackson
31889
31890         * TabControl.cs: Handle dropping rows on selection properly
31891
31892 2004-11-03 11:59  jackson
31893
31894         * TabControl.cs: remove debug code
31895
31896 2004-11-03 11:52  jackson
31897
31898         * TabControl.cs, ThemeWin32Classic.cs: Initial implementation of
31899           the scrolly widgerywoo
31900
31901 2004-11-02 13:52  jackson
31902
31903         * TabControl.cs: Resize the tab pages and tabs when the tab control
31904           is resized
31905
31906 2004-11-02 13:40  jackson
31907
31908         * TabControl.cs, ThemeWin32Classic.cs: Move the row with the
31909           selected tab to the bottom
31910
31911 2004-11-02 13:39  jackson
31912
31913         * TabPage.cs: Store the tab pages row
31914
31915 2004-11-02 12:33  jordi
31916
31917         * MenuItem.cs: fixes handle creation
31918
31919 2004-11-02 11:42  jackson
31920
31921         * TabControl.cs: signature fix
31922
31923 2004-11-02 08:56  jackson
31924
31925         * TabControl.cs: Calculate whether the tab is on an edge properly.
31926           Remove top secret debugging code
31927
31928 2004-11-01 19:57  jackson
31929
31930         * TabControl.cs: Add click handling, and proper sizing
31931
31932 2004-11-01 19:47  jackson
31933
31934         * Theme.cs, ThemeWin32Classic.cs: New rendering and sizing code for
31935           tab controls
31936
31937 2004-11-01 19:39  jackson
31938
31939         * TabPage.cs: add internal property to store the bounds of a tab
31940           page
31941
31942 2004-10-30 04:23  ravindra
31943
31944         * Theme.cs, ThemeWin32Classic.cs: Drawing ListView and some default
31945           values.
31946
31947 2004-10-30 04:21  ravindra
31948
31949         * ListView.cs, ListViewItem.cs: Added support for scrolling and
31950           fixed calculations.
31951
31952 2004-10-30 03:06  pbartok
31953
31954         * XplatUIX11.cs:
31955           - Removed extension of DllImported libs
31956
31957 2004-10-29 09:55  jordi
31958
31959         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: Menu key
31960           navigation, itemcollection completion, menu fixes
31961
31962 2004-10-27 22:58  pbartok
31963
31964         * XplatUIX11.cs:
31965           - Now throws a nice error message when no X display could be opened
31966
31967 2004-10-26 13:51  jordi
31968
31969         * ListView.cs: removes warning
31970
31971 2004-10-26 03:55  ravindra
31972
31973         * ColumnHeader.cs, ListView.cs, ListViewItem.cs,
31974           ThemeWin32Classic.cs: Some formatting for my last checkins.
31975
31976 2004-10-26 03:36  ravindra
31977
31978         * ThemeWin32Classic.cs: Implemented DetailView drawing for ListView
31979           control and default values.
31980
31981 2004-10-26 03:35  ravindra
31982
31983         * Theme.cs: Added some default values for ListView control.
31984
31985 2004-10-26 03:33  ravindra
31986
31987         * ToolBar.cs: ToolBar should use the user specified button size, if
31988           there is any. Added a size_specified flag for the same.
31989
31990 2004-10-26 03:33  ravindra
31991
31992         * ColumnHeader.cs: Added some internal members and calculations for
31993           ColumnHeader.
31994
31995 2004-10-26 03:32  ravindra
31996
31997         * ListViewItem.cs: Calculations for ListViewItem.
31998
31999 2004-10-26 03:31  ravindra
32000
32001         * ListView.cs: Added some internal members and calculations for
32002           ListView.
32003
32004 2004-10-22 13:31  jordi
32005
32006         * MenuAPI.cs: speedup menus drawing
32007
32008 2004-10-22 13:16  jackson
32009
32010         * XplatUIX11.cs: Make sure to update exposed regions when adding an
32011           expose event
32012
32013 2004-10-22 11:49  jackson
32014
32015         * Control.cs: oops
32016
32017 2004-10-22 11:41  jackson
32018
32019         * Control.cs: Check to see if the window should have its background
32020           repainted by X when drawing.
32021
32022 2004-10-22 11:31  jackson
32023
32024         * XplatUIX11.cs: When invalidating areas only use XClearArea if
32025           clear is true, this way we do not get flicker from X repainting the
32026           background
32027
32028 2004-10-22 11:28  jackson
32029
32030         * XEventQueue.cs: Queue properly
32031
32032 2004-10-21 09:38  jackson
32033
32034         * XEventQueue.cs: Fix access modifier
32035
32036 2004-10-21 09:36  jackson
32037
32038         * XEventQueue.cs: Don't loose messages
32039
32040 2004-10-21 09:22  jackson
32041
32042         * XEventQueue.cs: Don't loose messages
32043
32044 2004-10-20 04:15  jordi
32045
32046         * BootMode.cs: enum need it by SystemInfo
32047
32048 2004-10-19 21:58  pbartok
32049
32050         * XplatUIWin32.cs:
32051           - Small sanity check
32052
32053 2004-10-19 21:56  pbartok
32054
32055         * Form.cs:
32056           - Added private FormParentWindow class which acts as the container
32057             for our form and as the non-client area where menus are drawn
32058           - Added/Moved required tie-ins to Jordi's menus
32059           - Fixed/Implemented the FormStartPosition functionality
32060
32061 2004-10-19 21:52  pbartok
32062
32063         * Control.cs:
32064           - Removed unneeded locals
32065           - Added code to all size and location properties to understand and
32066             deal with the parent container of Form
32067
32068 2004-10-19 21:33  pbartok
32069
32070         * Application.cs:
32071           - Fixed to deal with new Form subclasses for menus
32072
32073 2004-10-19 17:48  jackson
32074
32075         * XEventQueue.cs: commit correct version of file
32076
32077 2004-10-19 16:50  jackson
32078
32079         * XEventQueue.cs, XplatUIX11.cs: New optimized event queue
32080
32081 2004-10-19 16:15  jordi
32082
32083         * MenuAPI.cs: MenuBarCalcSize returns the height
32084
32085 2004-10-19 08:31  pbartok
32086
32087         * Control.cs:
32088           - Added missing call to PreProcessMessage before calling OnXXXKey
32089           methods
32090
32091 2004-10-19 00:04  ravindra
32092
32093         * ToolTip.cs: Fixed constructor.
32094
32095 2004-10-18 09:31  jordi
32096
32097         * MenuAPI.cs: menuitems in menubars do not have shortcuts
32098
32099 2004-10-18 09:26  jordi
32100
32101         * MenuItem.cs: fixes MenuItem class signature
32102
32103 2004-10-18 08:56  jordi
32104
32105         * MenuAPI.cs: prevents windows from showing in the taskbar
32106
32107 2004-10-18 00:28  ravindra
32108
32109         * ToolTip.cs: Suppressed a warning message.
32110
32111 2004-10-18 00:27  ravindra
32112
32113         * Control.cs: Default value of visible property must be true.
32114
32115 2004-10-17 23:19  pbartok
32116
32117         * ToolTip.cs:
32118           - Complete implementation
32119
32120 2004-10-17 23:19  pbartok
32121
32122         * XplatUIX11.cs:
32123           - Added EnableWindow method
32124           - Added SetModal stub
32125           - Added generation of WM_ACTIVATE message (still needs testing)
32126           - Added SetTopMost stub
32127           - Changes to deal with VirtualKeys being moved to XplatUIStructs.cs
32128
32129 2004-10-17 23:17  pbartok
32130
32131         * XplatUIWin32.cs:
32132           - Removed VirtualKeys to XplatUIStructs
32133           - Implemented SetTopMost method
32134           - Implemented EnableWindow method
32135           - Bugfix in ScreenToClient()
32136           - Bugfixes in ClientToScreen()
32137
32138 2004-10-17 22:51  pbartok
32139
32140         * XplatUIStructs.cs:
32141           - Added WS_EX styles to WindowStyles enumeration
32142
32143 2004-10-17 22:50  pbartok
32144
32145         * XplatUI.cs, XplatUIDriver.cs:
32146           - Added method for enabling/disabling windows
32147           - Added method for setting window modality
32148           - Added method for setting topmost window
32149
32150 2004-10-17 22:49  pbartok
32151
32152         * ThemeWin32Classic.cs:
32153           - Added ToolTip drawing code
32154
32155 2004-10-17 22:49  pbartok
32156
32157         * Theme.cs:
32158           - Added ToolTip abstracts
32159
32160 2004-10-17 22:47  pbartok
32161
32162         * Form.cs:
32163           - Fixed Form.ControlCollection to handle owner relations
32164           - Added Owner/OwnedForms handling
32165           - Implemented Z-Ordering for owned forms
32166           - Removed unneeded private overload of ShowDialog
32167           - Fixed ShowDialog, added the X11 incarnation of modal handling (or
32168             so I hope)
32169           - Fixed Close(), had wrong default
32170           - Added firing of OnLoad event
32171           - Added some commented out debug code for Ownership handling
32172
32173 2004-10-17 22:16  pbartok
32174
32175         * Control.cs:
32176           - Fixed/implemented flat list of controls
32177
32178 2004-10-17 22:14  pbartok
32179
32180         * Application.cs:
32181           - Added code to simulate modal dialogs on Win32
32182
32183 2004-10-17 16:11  jordi
32184
32185         * ScrollBar.cs: disabled scrollbar should not honor any keyboard or
32186           mouse event
32187
32188 2004-10-17 13:39  jordi
32189
32190         * MenuAPI.cs: menu drawing fixes
32191
32192 2004-10-15 09:10  ravindra
32193
32194         * StructFormat.cs: General Enum.
32195
32196 2004-10-15 09:09  ravindra
32197
32198         * SizeGripStyle.cs: Enum for Form.
32199
32200 2004-10-15 09:08  ravindra
32201
32202         * Theme.cs, ThemeWin32Classic.cs: Added ColumnHeaderHeight property
32203           in Theme for ListView.
32204
32205 2004-10-15 09:06  ravindra
32206
32207         * ColumnHeader.cs: Flushing some formatting changes.
32208
32209 2004-10-15 09:05  ravindra
32210
32211         * ListViewItem.cs: Implemented GetBounds method and fixed coding
32212           style.
32213
32214 2004-10-15 09:03  ravindra
32215
32216         * ListView.cs: Implemented Paint method and fixed coding style.
32217
32218 2004-10-15 07:34  jordi
32219
32220         * MenuAPI.cs: fix for X11
32221
32222 2004-10-15 07:32  ravindra
32223
32224         * ButtonBase.cs, CheckBox.cs, RadioButton.cs:
32225                 - Renamed Paint() method to Draw() for clarity. Also, moved
32226                 DrawImage() to OnPaint().
32227
32228 2004-10-15 07:25  ravindra
32229
32230         * CheckBox.cs, RadioButton.cs:
32231                 - Removed Redraw (), we get it from ButtonBase.
32232                 - Implemented Paint (), to do class specific painting.
32233
32234 2004-10-15 07:16  ravindra
32235
32236         * ButtonBase.cs:
32237                 - Redraw () is not virtual now.
32238                 - Added an internal virtual method Paint (), so that
32239                 derived classes can do their painting on their own.
32240                 - Modified OnPaint () to call Paint ().
32241
32242 2004-10-15 06:43  jordi
32243
32244         * ContextMenu.cs, DrawItemEventHandler.cs, Form.cs, MainMenu.cs,
32245           MenuAPI.cs, MenuItem.cs: menu work, mainmenu, subitems, etc
32246
32247 2004-10-15 00:30  ravindra
32248
32249         * MessageBox.cs:
32250                 - MessageBox on windows does not have min/max buttons.
32251                 This change in CreateParams fixes this on Windows. We
32252                 still need to implement this windowstyle behavior in
32253                 our X11 driver.
32254
32255 2004-10-14 05:14  ravindra
32256
32257         * ToolBar.cs:
32258                 - Changed Redraw () to do a Refresh () always.
32259                 - Fixed the MouseMove event handling when mouse is pressed,
32260                 ie drag event handling.
32261                 - Replaced the usage of ToolBarButton.Pressed property to
32262                 ToolBarButton.pressed internal variable.
32263
32264 2004-10-14 05:10  ravindra
32265
32266         * ToolBarButton.cs:
32267                 - Added an internal member 'inside' to handle mouse move
32268                 with mouse pressed ie mouse drag event.
32269                 - Changed 'Pressed' property to return true only when
32270                 'inside' and 'pressed' are both true.
32271                 - Some coding style love.
32272
32273 2004-10-14 00:17  ravindra
32274
32275         * Form.cs: Fixed class signature. ShowDialog (Control) is not a
32276           public method.
32277
32278 2004-10-14 00:15  ravindra
32279
32280         * ButtonBase.cs: Redraw () related improvements.
32281
32282 2004-10-14 00:14  ravindra
32283
32284         * MessageBox.cs: Moved InitFormSize () out of Paint method and
32285           removed unnecessary calls to Button.Show () method.
32286
32287 2004-10-13 17:50  pbartok
32288
32289         * XplatUIX11.cs:
32290           - Formatting fix
32291           - Removed destroying of window until we solve the problem of X
32292             destroying the window before us on shutdown
32293
32294 2004-10-13 16:32  pbartok
32295
32296         * ButtonBase.cs:
32297           - Now Redraws on MouseUp for FlatStyle Flat and Popup
32298
32299 2004-10-13 14:18  pbartok
32300
32301         * XplatUIX11.cs:
32302           - Added code to destroy the X window
32303
32304 2004-10-13 14:18  pbartok
32305
32306         * XplatUIWin32.cs:
32307           - Added code to destroy a window
32308
32309 2004-10-13 14:12  pbartok
32310
32311         * ButtonBase.cs:
32312           - Added the Redraw on Resize that got dropped in the last rev
32313
32314 2004-10-13 09:06  pbartok
32315
32316         * ThemeWin32Classic.cs:
32317           - Path from John BouAntoun:
32318             * Fix check rendering (centre correctly for normal style, offset
32319               correctly for FlatStyle).
32320             * Fix border color usage (use backcolor) for FlatStyle.Popup
32321             * Use checkbox.Capture instead of checkbox.is_pressed when
32322               rendering flatstyle states.
32323
32324 2004-10-12 21:48  pbartok
32325
32326         * ThemeWin32Classic.cs:
32327           - Removed all occurences of SystemColors and replaced them with the
32328             matching theme color
32329
32330 2004-10-12 21:41  pbartok
32331
32332         * ThemeWin32Classic.cs:
32333           - From John BouAntoun: Added an overload to CPDrawBorder3D to allow
32334             him using the function for flatstyle drawing
32335           - Changed functions to use the new version of CPDrawBorder3D
32336
32337 2004-10-12 21:15  pbartok
32338
32339         * ControlPaint.cs:
32340           - Fixed Dark(), DarkDark(), Light() and LightLight() methods to
32341             match MS documentation. They need to return defined colors if the
32342             passed color matches the configured control color. Thanks to John
32343             BouAntoun for pointing this out.
32344
32345 2004-10-12 20:57  pbartok
32346
32347         * Control.cs:
32348           - Fix from John BouAntoun: Raise ForeColorChanged event when text
32349             color is changed
32350
32351 2004-10-12 20:46  pbartok
32352
32353         * CheckBox.cs:
32354           - Fix from John BouAntoun: Now properly sets the Appearance property
32355
32356 2004-10-12 20:45  pbartok
32357
32358         * ThemeWin32Classic.cs:
32359           - Fixes from John BouAntoun: now handles forecolors and backcolors
32360             for flatstyle rendered controls much better; It also fixes normal
32361             checkbox rendering when pushed or disabled.
32362
32363 2004-10-08 02:50  jordi
32364
32365         * Form.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs: more menu
32366           work
32367
32368 2004-10-07 08:56  jordi
32369
32370         * ThemeWin32Classic.cs: Removes deletion of cached brushes
32371
32372 2004-10-06 03:59  jordi
32373
32374         * Control.cs, StatusBar.cs, ThemeWin32Classic.cs, ToolBar.cs,
32375           XplatUIWin32.cs: removes warnings from compilation
32376
32377 2004-10-05 12:23  jackson
32378
32379         * RadioButton.cs: Fix ctor
32380
32381 2004-10-05 11:10  pbartok
32382
32383         * MessageBox.cs:
32384           - Partial implementation by Benjamin Dasnois
32385
32386 2004-10-05 10:15  jackson
32387
32388         * ThemeWin32Classic.cs: Improve rendering of the radio button patch
32389           by John BouAntoun
32390
32391 2004-10-05 03:07  ravindra
32392
32393         * ToolBar.cs:
32394                 - Removed a private method, Draw ().
32395                 - Fixed the ButtonDropDown event handling.
32396                 - Fixed MouseMove event handling.
32397
32398 2004-10-05 03:04  ravindra
32399
32400         * ThemeWin32Classic.cs:
32401                 - Added DrawListView method and ListViewDefaultSize property.
32402                 - Changed ControlPaint method calls to CPDrawXXX wherever possible.
32403                 - Changed DOS style CRLF to Unix format (dos2unix).
32404
32405 2004-10-05 03:03  ravindra
32406
32407         * Theme.cs:
32408                 - Added DrawListView method and ListViewDefaultSize property.
32409
32410 2004-10-05 02:42  ravindra
32411
32412         * ToolBarButton.cs: Added an internal member dd_pressed to handle
32413           clicks on DropDown arrow.
32414
32415 2004-10-04 22:56  jackson
32416
32417         * ButtonBase.cs, Label.cs, MenuAPI.cs, ProgressBar.cs,
32418           ScrollBar.cs, StatusBar.cs, ToolBar.cs, TrackBar.cs: Let the base
32419           Control handle the buffers, derived classes should not have to
32420           CreateBuffers themselves.
32421
32422 2004-10-04 21:20  jackson
32423
32424         * StatusBar.cs: The control handles resizing the buffers now.
32425
32426 2004-10-04 21:18  jackson
32427
32428         * Control.cs: When resizing the buffers should be invalidated. This
32429           should be handled in Control not in derived classes.
32430
32431 2004-10-04 14:45  jackson
32432
32433         * TabPage.cs: oops
32434
32435 2004-10-04 02:14  pbartok
32436
32437         * LeftRightAlignment.cs:
32438           - Initial check-in
32439
32440 2004-10-04 01:09  jordi
32441
32442         * ThemeWin32Classic.cs: fixes right button position causing right
32443           button not showing on horizontal scrollbars
32444
32445 2004-10-02 13:12  pbartok
32446
32447         * XplatUIX11.cs:
32448           - Simplified the Invalidate method by using an X call instead of
32449             generating the expose ourselves
32450           - Added an expose when the window background is changed
32451           - Implemented ClientToScreen method
32452
32453 2004-10-02 13:08  pbartok
32454
32455         * XplatUIWin32.cs:
32456           - Added Win32EnableWindow method (test for implementing modal
32457           dialogs)
32458           - Added ClientToScreen method and imports
32459
32460 2004-10-02 13:07  pbartok
32461
32462         * XplatUI.cs, XplatUIDriver.cs:
32463           - Added ClientToScreen coordinate translation method
32464
32465 2004-10-02 13:06  pbartok
32466
32467         * KeyPressEventArgs.cs:
32468           - Fixed access level for constructor
32469
32470 2004-10-02 13:06  pbartok
32471
32472         * NativeWindow.cs:
32473           - Changed access level for the window_collection hash table
32474
32475 2004-10-02 13:05  pbartok
32476
32477         * Form.cs:
32478           - Added KeyPreview property
32479           - Added Menu property (still incomplete, pending Jordi's menu work)
32480           - Implemented ProcessCmdKey
32481           - Implemented ProcessDialogKey
32482           - Implemented ProcessKeyPreview
32483
32484 2004-10-02 13:02  pbartok
32485
32486         * Control.cs:
32487           - Added private method to get the Control object from the window
32488           handle
32489           - Implemented ContextMenu property
32490           - Implemented PointToScreen
32491           - Implemented PreProcessMessage
32492           - Implemented IsInputChar
32493           - Implemented IsInputKey
32494           - Implemented ProcessCmdKey
32495           - Completed ProcessKeyEventArgs
32496           - Fixed message loop to call the proper chain of functions on key
32497           events
32498           - Implemented ProcessDialogChar
32499           - Implemented ProcessDialogKey
32500           - Implemented ProcessKeyMessage
32501           - Implemented ProcessKeyPreview
32502           - Added RaiseDragEvent stub (MS internal method)
32503           - Added RaiseKeyEvent stub (MS internal method)
32504           - Added RaiseMouseEvent stub (MS Internal method)
32505           - Added RaisePaintEvent stub (MS Internal method)
32506           - Added ResetMouseEventArgs stub (MS Internal method)
32507           - Implemented RtlTranslateAlignment
32508           - Implemented RtlTranslateContent
32509           - Implemented RtlTranslateHorizontal
32510           - Implemented RtlTranslateLeftRight
32511           - Added generation of KeyPress event
32512
32513 2004-10-02 05:57  ravindra
32514
32515         * ListViewItem.cs: Added attributes.
32516
32517 2004-10-02 05:32  ravindra
32518
32519         * ListView.cs: Added attributes.
32520
32521 2004-10-01 11:53  jackson
32522
32523         * Form.cs: Implement the Close method so work on MessageBox can
32524           continue.
32525
32526 2004-09-30 14:06  pbartok
32527
32528         * XplatUIX11.cs:
32529           - Bug fixes
32530
32531 2004-09-30 11:34  jackson
32532
32533         * RadioButton.cs: Fix typo. Patch by John BouAntoun.
32534
32535 2004-09-30 07:26  ravindra
32536
32537         * ListViewItemConverter.cs: Converter for ListViewItem.
32538
32539 2004-09-30 07:26  ravindra
32540
32541         * SortOrder.cs: Enum for ListView control.
32542
32543 2004-09-30 07:25  ravindra
32544
32545         * ColumnHeader.cs: Supporting class for ListView control.
32546
32547 2004-09-30 07:24  ravindra
32548
32549         * ListView.cs, ListViewItem.cs: Initial implementation.
32550
32551 2004-09-30 07:20  ravindra
32552
32553         * ItemActivation.cs: Enum for ListView Control.
32554
32555 2004-09-29 20:29  pbartok
32556
32557         * XplatUIX11.cs:
32558           - Added lookup of pixel value for background color; tries to get a
32559             color 'close' to the requested color, it avoids having to create a
32560             colormap.  Depending on the display this could mean the used color
32561             is slightly off the desired color. Might have to change it to a more
32562             resource intensive colormap approach, but it will work as a
32563           workaround to avoid red screens.
32564
32565 2004-09-29 14:27  jackson
32566
32567         * XplatUIX11.cs: Set the X DisplayHandle in System.Drawing
32568
32569 2004-09-28 12:44  pbartok
32570
32571         * ButtonBase.cs, CheckBox.cs, ControlPaint.cs, GroupBox.cs,
32572           HScrollBar.cs, Label.cs, LinkLabel.cs, Panel.cs, PictureBox.cs,
32573           ProgressBar.cs, RadioButton.cs, ScrollBar.cs, StatusBar.cs,
32574           Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs, ToolBar.cs,
32575           TrackBar.cs, VScrollBar.cs:
32576           - Streamlined Theme interfaces:
32577             * Each DrawXXX method for a control now is passed the object for
32578               the control to be drawn in order to allow accessing any state the
32579               theme might require
32580
32581             * ControlPaint methods for the theme now have a CP prefix to avoid
32582               name clashes with the Draw methods for controls
32583
32584             * Every control now retrieves it's DefaultSize from the current
32585             theme
32586
32587 2004-09-28 12:17  jackson
32588
32589         * Button.cs: Do not redraw OnClick MouseUp/Down will handle the
32590           drawing
32591
32592 2004-09-24 14:57  jackson
32593
32594         * XplatUIX11.cs: Don't lock/enqueue/dequeue for unhandled messages.
32595           Gives us a nice little performance boost.
32596
32597 2004-09-24 12:02  jackson
32598
32599         * TabAlignment.cs, TabAppearance.cs, TabControl.cs, TabDrawMode.cs,
32600           TabPage.cs, TabSizeMode.cs: Partial implementation of the Tab
32601           Control and supporting classes. Initial checkin
32602
32603 2004-09-23 13:08  jackson
32604
32605         * Form.cs: Temp build fixage
32606
32607 2004-09-23 01:39  ravindra
32608
32609         * ItemChangedEventArgs.cs, ItemChangedEventHandler.cs,
32610           ItemCheckEventArgs.cs, ItemCheckEventHandler.cs,
32611           ItemDragEventArgs.cs, ItemDragEventHandler.cs,
32612           LabelEditEventArgs.cs, LabelEditEventHandler.cs: EventArgs and
32613           EventHandlers needed by ListView Control.
32614
32615 2004-09-22 14:12  pbartok
32616
32617         * ScrollableControl.cs:
32618           - Implemented DockPadding property
32619           - Implemented AutoScroll property
32620           - Implemented AutoScrollMargin property
32621           - Implemented AutoScrollMinSize property
32622           - Implemented AutoScrollPosition property
32623           - Implemented DisplayRectangle property (still incomplete)
32624           - Implemented CreateParams property
32625           - Implemented HScroll property
32626           - Implemented VScroll property
32627           - Implemented OnVisibleChanged property
32628
32629 2004-09-22 14:09  pbartok
32630
32631         * Form.cs:
32632           - Added Form.ControllCollection class
32633           - Added handling for Form owners: Owner, OwnedForms, AddOwnedForm,
32634             RemoveOwnedForm (still incomplete, missing on-top and common
32635             minimize/maximize behaviour)
32636           - Added StartPosition property (still incomplete, does not use when
32637             creating the form)
32638           - Added ShowDialog() methods (still incomplete, missing forcing the
32639             dialog modal)
32640
32641 2004-09-22 14:05  pbartok
32642
32643         * Application.cs:
32644           - Added message loop for modal dialogs
32645
32646 2004-09-22 14:02  pbartok
32647
32648         * GroupBox.cs:
32649           - Fixed wrong types for events
32650
32651 2004-09-22 14:00  pbartok
32652
32653         * Shortcut.cs, FormWindowState.cs:
32654           - Fixed wrong values
32655
32656 2004-09-22 12:01  jackson
32657
32658         * Control.cs: Text is never null
32659
32660 2004-09-20 22:14  pbartok
32661
32662         * XplatUIWin32.cs:
32663           - Fixed accessibility level for Idle handler
32664
32665 2004-09-20 18:54  jackson
32666
32667         * Application.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
32668           XplatUIX11.cs: New message loop that uses poll so we don't get a
32669           busy loop
32670
32671 2004-09-17 10:43  pbartok
32672
32673         * ScrollBar.cs:
32674           - Fixed behaviour of arrow buttons. Now properly behaves like
32675             Buttons (and like Microsoft's scrollbar arrow buttons)
32676
32677 2004-09-17 10:14  pbartok
32678
32679         * ScrollBar.cs:
32680           - Added missing release of keyboard/mouse capture
32681
32682 2004-09-17 06:18  jordi
32683
32684         * ContextMenu.cs, MainMenu.cs, Menu.cs, MenuAPI.cs, MenuItem.cs,
32685           Theme.cs: Very early menu support
32686
32687 2004-09-16 17:45  pbartok
32688
32689         * XplatUIWin32.cs:
32690           - Fixed sending a window to the front
32691           - Added overload for SetWindowPos to avoid casting
32692
32693 2004-09-16 17:44  pbartok
32694
32695         * Control.cs:
32696           - Added SendToBack and BringToFront methods
32697
32698 2004-09-16 07:00  ravindra
32699
32700         * Copyright: Added Novell URL.
32701
32702 2004-09-16 07:00  ravindra
32703
32704         * ToolBar.cs: Invalidate should be done before redrawing.
32705
32706 2004-09-15 21:19  ravindra
32707
32708         * ColumnHeaderStyle.cs: Enum for ListView Control.
32709
32710 2004-09-15 21:18  ravindra
32711
32712         * ColumnClickEventArgs.cs, ColumnClickEventHandler.cs: Event for
32713           ListView Control.
32714
32715 2004-09-13 18:26  jackson
32716
32717         * Timer.cs, XplatUIX11.cs: Remove test code so timers are updated
32718           properly
32719
32720 2004-09-13 18:13  jackson
32721
32722         * Timer.cs, X11Structs.cs, XplatUIX11.cs: Timers are now handled in
32723           a second thread and post messages into the main threads message
32724           queue. This makes timing much more consistent. Both win2K and XP
32725           have a minimum timer value of 15 milliseconds, so we now do this
32726           too.
32727
32728 2004-09-13 15:18  pbartok
32729
32730         * X11Structs.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
32731           XplatUIX11.cs:
32732           - Added Z-Ordering methods
32733
32734 2004-09-13 10:56  pbartok
32735
32736         * Form.cs:
32737           - Fixed #region names
32738           - Moved properties and methods into their proper #regions
32739
32740 2004-09-13 10:51  pbartok
32741
32742         * Form.cs:
32743           - Added Accept and CancelButton properties
32744           - Added ProcessDialogKey() method
32745
32746 2004-09-13 08:18  pbartok
32747
32748         * IWindowTarget.cs:
32749           - Initial check-in
32750
32751 2004-09-10 21:50  pbartok
32752
32753         * Control.cs:
32754           - Added DoDragDrop() [incomplete]
32755           - Properly implemented 'Visible' handling
32756           - Added SetVisibleCore()
32757           - Implemented FindChildAtPoint()
32758           - Implemented GetContainerControl()
32759           - Implemented Hide()
32760
32761 2004-09-10 19:28  pbartok
32762
32763         * Control.cs:
32764           - Moved methods into their appropriate #regions
32765           - Reordered methods within regions alphabetically
32766
32767 2004-09-10 18:57  pbartok
32768
32769         * XplatUIX11.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
32770           - Added method to retrieve text from window
32771
32772 2004-09-10 18:56  pbartok
32773
32774         * Control.cs:
32775           - Moved some internal functions into the internal region
32776           - Implemented FontHeight
32777           - Implemented RenderRightToLeft
32778           - Implemented ResizeRedraw
32779           - Implemented ShowFocusCues
32780           - Implemented ShowKeyboardCues
32781           - Implemented FromChildHandle
32782           - Implemented FromHandle
32783           - Implemented IsMnemonic
32784           - Implemented ReflectMessage
32785           - All public and protected Static Methods are now complete
32786
32787 2004-09-10 16:54  pbartok
32788
32789         * Control.cs:
32790           - Implemented remaining missing public instance properties
32791           - Alphabetized some out of order properties
32792
32793 2004-09-10 05:51  ravindra
32794
32795         * PictureBox.cs: Added a check for null image.
32796
32797 2004-09-10 00:59  jordi
32798
32799         * GroupBox.cs: remove cvs tag
32800
32801 2004-09-09 05:25  ravindra
32802
32803         * ToolBar.cs: Make redraw accessible from ToolBarButton.
32804
32805 2004-09-09 05:23  ravindra
32806
32807         * ToolBarButton.cs: Changes in ToolBarButton need to make it's
32808           parent redraw.
32809
32810 2004-09-09 02:28  pbartok
32811
32812         * ThemeWin32Classic.cs:
32813           - Improve disabled string look
32814
32815 2004-09-09 01:15  jordi
32816
32817         * MeasureItemEventArgs.cs, MeasureItemEventHandler.cs: measureitem
32818           args and handler
32819
32820 2004-09-08 23:56  ravindra
32821
32822         * ItemBoundsPortion.cs: It's enum, not a class!
32823
32824 2004-09-08 23:47  ravindra
32825
32826         * FormBorderStyle.cs, FormStartPosition.cs, FormWindowState.cs:
32827           Enums for Form.
32828
32829 2004-09-08 21:13  ravindra
32830
32831         * ItemBoundsPortion.cs, ListViewAlignment.cs, View.cs: Enums for
32832           ListView control.
32833
32834 2004-09-08 21:03  ravindra
32835
32836         * ThemeWin32Classic.cs: PictureBox would not draw a null image to
32837           avoid crash.
32838
32839 2004-09-08 21:01  ravindra
32840
32841         * ScrollableControl.cs: Removed unreachable code.
32842
32843 2004-09-08 06:45  jordi
32844
32845         * MenuMerge.cs, Shortcut.cs: enumerations need it by menus
32846
32847 2004-09-08 01:00  jackson
32848
32849         * XplatUIX11.cs: Only run the timers when updating the message
32850           queue. This effectively gives X messages a higher priority then
32851           timer messages. Timers still need love though
32852
32853 2004-09-07 14:01  jackson
32854
32855         * XplatUIX11.cs: Do not call XDestroyWindow, X has already done
32856           this for us and the handle is no longer valid.
32857
32858 2004-09-07 13:59  jackson
32859
32860         * HandleData.cs, XplatUIX11.cs: First steps towards a new X event
32861           loop that manages to not crash. TODO: Add poll and cleanup timers
32862
32863 2004-09-07 11:12  jordi
32864
32865         * GroupBox.cs, Theme.cs, ThemeWin32Classic.cs: GroupBox control
32866
32867 2004-09-07 03:40  jordi
32868
32869         * Label.cs, LinkLabel.cs, Theme.cs, ThemeWin32Classic.cs: LinkLabel
32870           fixes, methods, multiple links
32871
32872 2004-09-06 06:55  jordi
32873
32874         * Control.cs: Caches ClientRectangle rectangle value
32875
32876 2004-09-05 02:03  jordi
32877
32878         * ScrollBar.cs, ThemeWin32Classic.cs: fixes bugs, adds flashing on
32879           certain situations
32880
32881 2004-09-04 11:10  jordi
32882
32883         * Label.cs: Refresh when font changed
32884
32885 2004-09-02 16:24  pbartok
32886
32887         * Control.cs:
32888           - Added sanity check to creation of double buffer bitmap
32889
32890 2004-09-02 16:24  pbartok
32891
32892         * ButtonBase.cs:
32893           - Fixed selection of text color
32894           - Fixed handling of resize event; now properly recreates double
32895             buffering bitmap
32896           - Added missing assignment of TextAlignment
32897           - Added proper default for TextAlignment
32898
32899 2004-09-02 14:26  pbartok
32900
32901         * RadioButton.cs:
32902           - Added missing RadioButton.RadioButtonAccessibleObject class
32903
32904 2004-09-02 14:26  pbartok
32905
32906         * Control.cs:
32907           - Added missing Control.ControlAccessibleObject class
32908           - Started to implement Select()ion mechanisms, still very incomplete
32909
32910 2004-09-02 14:25  pbartok
32911
32912         * AccessibleObject.cs:
32913           - Added missing methods
32914
32915 2004-09-02 14:23  pbartok
32916
32917         * AccessibleNavigation.cs, AccessibleSelection.cs:
32918           - Initial check-in
32919
32920 2004-09-02 10:32  jordi
32921
32922         * Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: implements resource
32923           pool for pens, brushes, and hatchbruses
32924
32925 2004-09-01 15:30  jackson
32926
32927         * StatusBar.cs: Fix typo
32928
32929 2004-09-01 14:44  pbartok
32930
32931         * RadioButton.cs:
32932           - Fixed state
32933
32934 2004-09-01 14:39  pbartok
32935
32936         * Button.cs, RadioButton.cs:
32937           - Functional initial check-in
32938
32939 2004-09-01 14:01  pbartok
32940
32941         * CheckBox.cs:
32942           - Added missing default
32943           - Added missing region mark
32944
32945 2004-09-01 09:10  jordi
32946
32947         * Label.cs: fixes method signatures, new methods, events, fixes
32948           autosize
32949
32950 2004-09-01 07:19  jordi
32951
32952         * Control.cs: Init string variables with an empty object
32953
32954 2004-09-01 04:20  jordi
32955
32956         * Control.cs: fires OnFontChanged event
32957
32958 2004-08-31 20:07  pbartok
32959
32960         * ButtonBase.cs:
32961           - Enabled display of strings
32962
32963 2004-08-31 20:05  pbartok
32964
32965         * Form.cs:
32966           - Added (partial) implementation of DialogResult; rest needs to be
32967             implemented when the modal loop code is done
32968
32969 2004-08-31 19:55  pbartok
32970
32971         * CheckBox.cs:
32972           - Fixed to match the removal of the needs_redraw concept
32973
32974 2004-08-31 19:55  pbartok
32975
32976         * ButtonBase.cs:
32977           - Removed the rather odd split between 'needs redraw' and redrawing
32978           - Now handles the events that require regeneration (ambient
32979             properties and size)
32980
32981 2004-08-31 19:41  pbartok
32982
32983         * Control.cs:
32984           - Added firing of BackColorChanged event
32985           - Added TopLevelControl property
32986           - Fixed handling of WM_ERASEBKGRND message
32987
32988 2004-08-31 12:49  pbartok
32989
32990         * ButtonBase.cs:
32991           - Removed debug
32992           - Minor fixes
32993
32994 2004-08-31 12:48  pbartok
32995
32996         * CheckBox.cs:
32997           - Finished (famous last words)
32998
32999 2004-08-31 04:35  jordi
33000
33001         * ScrollBar.cs: adds autorepeat timer, uses a single timer, fixes
33002           scrolling bugs, adds new methods
33003
33004 2004-08-30 14:42  pbartok
33005
33006         * CheckBox.cs:
33007           - Implemented CheckBox drawing code
33008
33009 2004-08-30 14:42  pbartok
33010
33011         * ButtonBase.cs:
33012           - Made Redraw() and CheckRedraw() virtual
33013           - Improved mouse up/down/move logic to properly track buttons
33014
33015 2004-08-30 09:44  pbartok
33016
33017         * CheckBox.cs:
33018           - Updated to fix broken build. Not complete yet.
33019
33020 2004-08-30 09:28  pbartok
33021
33022         * CheckState.cs:
33023           - Initial checkin
33024
33025 2004-08-30 09:17  pbartok
33026
33027         * Appearance.cs:
33028           - Initial check-in
33029
33030 2004-08-27 16:12  ravindra
33031
33032         * ToolBarButton.cs: Added TypeConverter attribute.
33033
33034 2004-08-27 16:07  ravindra
33035
33036         * ImageIndexConverter.cs: Implemented.
33037
33038 2004-08-27 14:17  pbartok
33039
33040         * Control.cs:
33041           - Removed unneeded stack vars
33042           - First attempt to fix sizing issues when layout is suspended
33043
33044 2004-08-25 15:35  jordi
33045
33046         * ScrollBar.cs: more fixes to scrollbar
33047
33048 2004-08-25 14:04  ravindra
33049
33050         * Theme.cs, ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs:
33051           Added the missing divider code and grip for ToolBar Control.
33052
33053 2004-08-25 13:20  pbartok
33054
33055         * Control.cs:
33056           - Control now properly passes the ambient background color to child
33057             controls
33058
33059 2004-08-25 13:20  jordi
33060
33061         * ScrollBar.cs: small bug fix regarding bar position
33062
33063 2004-08-25 12:33  pbartok
33064
33065         * Timer.cs:
33066           - Now only calls SetTimer or KillTimer if the enabled state has
33067           changed
33068
33069 2004-08-25 12:33  pbartok
33070
33071         * XplatUIWin32.cs:
33072           - Fixed timer handling, now seems to work
33073           - Improved error message for window creation
33074
33075 2004-08-25 12:32  pbartok
33076
33077         * Control.cs:
33078           - Fixed generation of MouseUp message
33079
33080 2004-08-25 12:29  jordi
33081
33082         * ProgressBar.cs, ThemeWin32Classic.cs: new methods, properties,
33083           and fixes for progressbar
33084
33085 2004-08-24 18:43  ravindra
33086
33087         * ThemeWin32Classic.cs, ToolBar.cs: Fixed wrapping related issues
33088           in ToolBar control.
33089
33090 2004-08-24 17:15  pbartok
33091
33092         * Panel.cs:
33093           - Added #region
33094           - Added missing events
33095           - Alphabetized
33096
33097 2004-08-24 17:14  pbartok
33098
33099         * StatusBar.cs, PictureBox.cs:
33100           - Now uses Control's CreateParams
33101
33102 2004-08-24 16:36  pbartok
33103
33104         * XplatUIX11.cs:
33105           - Fixed background color handling
33106           - Fixed sending of enter/leave events on a grab
33107
33108 2004-08-24 16:35  pbartok
33109
33110         * X11Structs.cs:
33111           - Refined definitions for CrossingEvent
33112
33113 2004-08-24 12:37  jordi
33114
33115         * ScrollBar.cs, Theme.cs, ThemeGtk.cs, ThemeWin32Classic.cs: fixes
33116           formmating, methods signature, and adds missing events
33117
33118 2004-08-24 12:24  jordi
33119
33120         * Control.cs: fire OnEnabledChanged event
33121
33122 2004-08-24 11:17  pbartok
33123
33124         * XplatUIWin32.cs:
33125           - Implemented SetTimer() and KillTimer()
33126
33127 2004-08-24 11:16  pbartok
33128
33129         * XplatUIX11.cs:
33130           - Now uses Remove instead of Add to kill the timer
33131
33132 2004-08-24 10:16  jackson
33133
33134         * PictureBox.cs, Theme.cs, ThemeWin32Classic.cs: Handle drawing
33135           picture boxes in the theme now. Draw picture box borders and obey
33136           sizing modes
33137
33138 2004-08-24 05:49  jackson
33139
33140         * Timer.cs: Remove top secret debugging code
33141
33142 2004-08-24 05:34  jackson
33143
33144         * PictureBox.cs: Temp hack to make picture boxes draw their full
33145           image
33146
33147 2004-08-24 05:29  jackson
33148
33149         * Timer.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33150           XplatUIX11.cs: Move timers to the driver level. On X they are
33151           queued by the driver and checked on idle.
33152
33153 2004-08-24 01:07  jackson
33154
33155         * XplatUIX11.cs: Use a queue for async messages instead of passing
33156           them as ClientMessages since that was totally broken. Also simply
33157           check for events and return an idle message if none are found. This
33158           gives us an idle handler, and prevents deadlocking when no messages
33159           are in the queue.
33160
33161 2004-08-23 18:19  ravindra
33162
33163         * XplatUIWin32.cs: Removed the unwanted destructor.
33164
33165 2004-08-23 17:27  pbartok
33166
33167         * ButtonBase.cs:
33168           - Finishing touches. Works now, just needs some optimizations.
33169
33170 2004-08-23 16:53  jordi
33171
33172         * ScrollBar.cs: small fix
33173
33174 2004-08-23 16:45  pbartok
33175
33176         * Application.cs:
33177           - Removed debug output
33178           - Simplifications
33179
33180 2004-08-23 16:43  jordi
33181
33182         * ScrollBar.cs: [no log message]
33183
33184 2004-08-23 16:10  pbartok
33185
33186         * Form.cs:
33187           - Fixed handling of WM_CLOSE message
33188           - Removed debug output
33189
33190 2004-08-23 16:09  pbartok
33191
33192         * Application.cs:
33193           - Added handling of Idle event
33194           - Added handling of form closing
33195           - Fixed reporting of MessageLoop property
33196           - Removed some unneeded code, should provide a bit of a speedup
33197
33198 2004-08-23 15:22  pbartok
33199
33200         * Control.cs:
33201           - Added InitLayout() method
33202           - Added code to properly perform layout when Anchor or Dock property
33203             is changed
33204           - Changed 'interpretation' of ResumeLayout. MS seems to have a
33205             LAMESPEC, tried to do it in a way that makes sense
33206
33207 2004-08-23 14:10  jordi
33208
33209         * HScrollBar.cs, ScrollBar.cs, TrackBar.cs, VScrollBar.cs: fixes
33210           properties and methods
33211
33212 2004-08-23 13:55  pbartok
33213
33214         * Control.cs:
33215           - Properly fixed Jordi's last fix
33216           - Now uses Cursor's Position property instead of calling XplatUI
33217           directly
33218
33219 2004-08-23 13:44  jordi
33220
33221         * PaintEventHandler.cs: Adding missing attribute
33222
33223 2004-08-23 13:39  pbartok
33224
33225         * Cursor.cs:
33226           - Implemented Position property
33227
33228 2004-08-23 13:39  pbartok
33229
33230         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
33231           - Added method to move mouse cursor
33232
33233 2004-08-23 13:39  pbartok
33234
33235         * XplatUIX11.cs:
33236           - Fixed setting of background color
33237           - Added method to move mouse cursor
33238
33239 2004-08-23 13:16  jordi
33240
33241         * Control.cs: avoids null exception
33242
33243 2004-08-22 17:46  jackson
33244
33245         * PictureBox.cs, PictureBoxSizeMode.cs: Initial implementation of
33246           PictureBox
33247
33248 2004-08-22 17:40  jackson
33249
33250         * XplatUIX11.cs: Add some missing locks
33251
33252 2004-08-22 15:10  pbartok
33253
33254         * Control.cs, Form.cs:
33255           - Removed OverlappedWindow style from Control, instead it's default
33256             now is child
33257           - Made form windows OverlappedWindow by default
33258
33259 2004-08-22 13:34  jackson
33260
33261         * ScrollBar.cs: Update the position through the Value property so
33262           the OnValueChanged event is raised.
33263
33264 2004-08-22 12:04  pbartok
33265
33266         * SWF.csproj:
33267           - Added Cursor.cs and UserControl.cs
33268
33269 2004-08-22 12:03  pbartok
33270
33271         * Cursor.cs:
33272           - Started implementation, not usable yet
33273
33274 2004-08-22 12:00  pbartok
33275
33276         * UserControl.cs:
33277           - Implemented UserControl (complete)
33278
33279 2004-08-21 19:20  ravindra
33280
33281         * ToolBar.cs: Correcting the formatting mess of VS.NET.
33282
33283 2004-08-21 18:49  ravindra
33284
33285         * ToolBar.cs: Probably this completes the missing attributes in
33286           toolbar control.
33287
33288 2004-08-21 18:03  ravindra
33289
33290         * ToolBar.cs, ToolBarButton.cs, ToolBarButtonClickEventArgs.cs:
33291           Fixed toolbar control signatures.
33292
33293 2004-08-21 16:32  pbartok
33294
33295         * LinkLabel.cs:
33296           - Signature Fixes
33297
33298 2004-08-21 16:30  pbartok
33299
33300         * Label.cs:
33301           - Signature fixes
33302
33303 2004-08-21 16:19  pbartok
33304
33305         * Control.cs, Label.cs:
33306           - Signature fixes
33307
33308 2004-08-21 15:57  pbartok
33309
33310         * ButtonBase.cs:
33311           - Added loads of debug output for development
33312           - Fixed typo in method name
33313
33314 2004-08-21 15:52  pbartok
33315
33316         * ToolBarButtonClickEventArgs.cs:
33317           - Added missing base class
33318
33319 2004-08-21 14:53  pbartok
33320
33321         * Control.cs:
33322           - Updated to match new GrabWindow signature
33323
33324 2004-08-21 14:51  pbartok
33325
33326         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33327           - Added method to get default display size
33328
33329 2004-08-21 14:23  pbartok
33330
33331         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33332           - Added method to query current grab state
33333           - Added argument to allow confining a grab to a window
33334
33335 2004-08-21 14:22  pbartok
33336
33337         * Keys.cs:
33338           - Added [Flags] attribute so that modifiers can be used in bitwise
33339           ops
33340
33341 2004-08-21 14:21  pbartok
33342
33343         * TrackBar.cs, ScrollBar.cs:
33344           - Replaced direct XplatUI calls with their Control counterpart
33345
33346 2004-08-21 13:32  pbartok
33347
33348         * Control.cs:
33349           - Implemented Created property
33350
33351 2004-08-21 13:28  pbartok
33352
33353         * Control.cs:
33354           - Implemented ContainsFocus
33355
33356 2004-08-21 13:26  pbartok
33357
33358         * Control.cs:
33359           - Implemented CausesValidation
33360
33361 2004-08-21 13:21  pbartok
33362
33363         * Control.cs:
33364           - Implemented CanFocus
33365           - Implemented CanSelect
33366           - Implemented Capture
33367
33368 2004-08-21 12:35  pbartok
33369
33370         * XplatUIWin32.cs:
33371           - Fixed bug with Async message handling
33372           - Implemented getting the ModifierKeys
33373
33374 2004-08-21 12:32  jackson
33375
33376         * AsyncMethodResult.cs: Make sure we have the mutex before we
33377           release it. Fixes BeginInvoke on windows
33378
33379 2004-08-21 11:31  pbartok
33380
33381         * XplatUIWin32.cs, XplatUIX11.cs:
33382           - Drivers now return proper mouse state
33383
33384 2004-08-21 10:54  jackson
33385
33386         * Control.cs: Implement EndInvoke
33387
33388 2004-08-21 10:48  jackson
33389
33390         * Timer.cs: Remove unneeded finalizer
33391
33392 2004-08-20 19:52  ravindra
33393
33394         * ThemeWin32Classic.cs, ToolBar.cs, ToolBarButton.cs: Improvments
33395           in mouse event handling in the ToolBar control.
33396
33397 2004-08-20 19:50  ravindra
33398
33399         * ImageList.cs: Changed draw method to use the arguments passed in
33400           to draw the image.
33401
33402 2004-08-20 18:58  pbartok
33403
33404         * XplatUIStructs.cs:
33405           - Added private message for async communication
33406
33407 2004-08-20 17:38  ravindra
33408
33409         * Control.cs: Made RightToLeft property virtual and removed a
33410           Console.WriteLine.
33411
33412 2004-08-20 14:39  jordi
33413
33414         * ThemeGtk.cs: use style_attach
33415
33416 2004-08-20 14:39  pbartok
33417
33418         * XplatUIWin32.cs:
33419           - Added jackson's Async code from X11 to Win32
33420
33421 2004-08-20 14:09  pbartok
33422
33423         * SWF.csproj:
33424           - Added all new files
33425
33426 2004-08-20 14:09  pbartok
33427
33428         * Control.cs:
33429           - Added call to set window background color
33430
33431 2004-08-20 14:03  pbartok
33432
33433         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
33434           - Added method for setting the window background
33435
33436 2004-08-20 14:02  pbartok
33437
33438         * XplatUIWin32.cs:
33439           - Added method for setting the background color
33440           - Added handling for erasing the window background
33441
33442 2004-08-20 13:45  jordi
33443
33444         * TrackBar.cs: fixes timer, new properties and methods
33445
33446 2004-08-20 13:34  jackson
33447
33448         * ScrollBar.cs: Use the SWF timer so callbacks are run in the
33449           correct thread
33450
33451 2004-08-20 13:22  jackson
33452
33453         * Timer.cs: Timer Tick events are now handed through Controls Async
33454           mechanism so the callbacks are executed in the same thread as X
33455
33456 2004-08-20 13:19  jackson
33457
33458         * XplatUIDriver.cs: Expose functionality to send async messages
33459           through the driver
33460
33461 2004-08-20 13:18  jackson
33462
33463         * Control.cs: Implement Begininvoke
33464
33465 2004-08-20 13:14  jackson
33466
33467         * XplatUI.cs, XplatUIWin32.cs: Expose functionality to send async
33468           messages through the driver
33469
33470 2004-08-20 13:12  jackson
33471
33472         * XplatUIX11.cs: Lock before all X operations. Also added Async
33473           method functionality through XSendEvent
33474
33475 2004-08-20 13:11  jackson
33476
33477         * X11Structs.cs: Use IntPtrs for ClientMessage extra data (TODO:
33478           This will screw up on 64 bit systems)
33479
33480 2004-08-20 13:10  jackson
33481
33482         * AsyncMethodData.cs, AsyncMethodResult.cs: Classes for sending
33483           Async messages through X/Win32
33484
33485 2004-08-19 19:39  pbartok
33486
33487         * XplatUIX11.cs:
33488           - Updated code to match new HandleData.DeviceContext type
33489
33490 2004-08-19 19:38  pbartok
33491
33492         * HandleData.cs:
33493           - Made DeviceContext a generic object to allow usage from various
33494           drivers
33495           - Added support for queueing Windows messages
33496
33497 2004-08-19 19:37  pbartok
33498
33499         * XplatUIWin32.cs:
33500           - Added generation of MouseEnter, MouseLeave and MouseHover events
33501           - Added cleanup on EndPaint
33502
33503 2004-08-19 19:17  pbartok
33504
33505         * Control.cs:
33506           - Added handling of WM_MOUSEHOVER
33507           - Worked around 'bug' in Win32 WM_MOUSE_ENTER/WM_MOUSE_LEAVE driver
33508           code
33509
33510 2004-08-19 18:55  jordi
33511
33512         * ThemeGtk.cs: fixes button order
33513
33514 2004-08-19 18:12  jordi
33515
33516         * Theme.cs, ThemeWin32Classic.cs: fixes methods signature
33517
33518 2004-08-19 17:09  pbartok
33519
33520         * Control.cs:
33521           - Added Right property
33522           - Added RightToLeft property
33523
33524 2004-08-19 16:27  jordi
33525
33526         * ThemeGtk.cs: experimental GTK theme support
33527
33528 2004-08-19 16:26  jordi
33529
33530         * ITheme.cs, Theme.cs: move themes from an interface to a class
33531
33532 2004-08-19 16:25  jordi
33533
33534         * Control.cs, ScrollBar.cs, ThemeEngine.cs, ThemeWin32Classic.cs:
33535           theme enhancaments
33536
33537 2004-08-19 16:04  pbartok
33538
33539         * XplatUIX11.cs:
33540           - Added colormap basics
33541           - Added a way to re-initialize with a different display handle
33542           - Fixed setting of the window background color
33543           - Added various X11 imports related to colors and colormaps
33544
33545 2004-08-19 15:51  pbartok
33546
33547         * X11Structs.cs:
33548           - Removed packing hints (Paolo suggested this a while back)
33549           - fixed colormap type
33550           - Added default Atom types
33551           - Added Screen and color structs and enums
33552
33553 2004-08-19 15:39  pbartok
33554
33555         * ImageList.cs:
33556           - Added missing Draw() method
33557           - Added missing RecreateHandle event
33558
33559 2004-08-19 15:30  pbartok
33560
33561         * Form.cs:
33562           - Added handling of WM_CLOSE
33563
33564 2004-08-18 13:16  jordi
33565
33566         * ITheme.cs, ThemeWin32Classic.cs, XplatUIWin32.cs: Move colors to
33567           a table
33568
33569 2004-08-18 09:56  jordi
33570
33571         * ScrollBar.cs: fixes to scrollbar: steps and multiple timers
33572
33573 2004-08-17 15:31  ravindra
33574
33575         * SWF.csproj: Updated project.
33576
33577 2004-08-17 15:25  pbartok
33578
33579         * Control.cs:
33580           - Drawing improvement; don't call UpdateBounds if we are not visible
33581             (or have been minimized)
33582
33583 2004-08-17 15:24  pbartok
33584
33585         * XplatUIWin32.cs:
33586           - Finished IsVisible
33587           - Added Win32GetWindowPlacement
33588
33589 2004-08-17 15:08  jackson
33590
33591         * Panel.cs: Initial checkin of the Panel
33592
33593 2004-08-17 14:25  pbartok
33594
33595         * Control.cs:
33596           - Fixed broken handling of default window sizes
33597
33598 2004-08-17 13:29  jackson
33599
33600         * ThemeWin32Classic.cs: Don't use KnownColor to create colours. It
33601           has a large startup time.
33602
33603 2004-08-17 10:25  jackson
33604
33605         * HandleData.cs: union areas properly
33606
33607 2004-08-17 10:12  jackson
33608
33609         * HandleData.cs: union areas properly
33610
33611 2004-08-16 20:00  ravindra
33612
33613         * ToolBar.cs, ToolBarButton.cs: Added attributes.
33614
33615 2004-08-16 18:48  ravindra
33616
33617         * ToolBar.cs: Added attributes.
33618
33619 2004-08-16 17:17  ravindra
33620
33621         * SWF.csproj: Updated project.
33622
33623 2004-08-16 17:16  jackson
33624
33625         * XplatUIX11.cs: Check for more expose events before sending a
33626           WM_PAINT so they can all be grouped together. This makes dragging a
33627           window across another window redraw in a sane way.
33628
33629 2004-08-16 15:47  pbartok
33630
33631         * Control.cs:
33632           - Added handling of WM_MOUSE_ENTER & WM_MOUSE_LEAVE to
33633             support OnMouseEnter/Leave()
33634           - Added WS_CLIPSIBLINGS and WS_CLIPCHILDREN window styles to improve
33635             exposure handling
33636
33637 2004-08-16 15:46  pbartok
33638
33639         * XplatUIStructs.cs, XplatUIX11.cs:
33640           - Added WM_MOUSE_ENTER & WM_MOUSE_LEAVE to support
33641           OnMouseEnter/Leave()
33642
33643 2004-08-16 15:34  jackson
33644
33645         * XplatUIX11.cs: Group multiple expose events in HandleData, make
33646           sure messages get the message field set to WM_NULL if they are not
33647           handled.
33648
33649 2004-08-16 15:24  jackson
33650
33651         * HandleData.cs: HandleData is used for storing message information
33652           for window handles
33653
33654 2004-08-15 17:23  ravindra
33655
33656         * ColorDepth.cs: Added attribute.
33657
33658 2004-08-15 17:23  ravindra
33659
33660         * SWF.csproj: Updated project for ToolBar Control.
33661
33662 2004-08-15 17:20  ravindra
33663
33664         * ITheme.cs, ThemeWin32Classic.cs: Changes to Theme for ToolBar
33665           control and also dos2unix format.
33666
33667 2004-08-15 17:13  ravindra
33668
33669         * ToolBar.cs, ToolBarAppearance.cs, ToolBarButton.cs,
33670           ToolBarButtonClickEventArgs.cs,
33671           ToolBarButtonClickEventHandler.cs, ToolBarButtonStyle.cs,
33672           ToolBarTextAlign.cs: First Implementation of ToolBar control.
33673
33674 2004-08-15 15:31  pbartok
33675
33676         * ButtonBase.cs:
33677           - First (mostly) working version
33678
33679 2004-08-13 16:15  pbartok
33680
33681         * Control.cs:
33682           - Fixed Anchor default
33683
33684 2004-08-13 15:43  pbartok
33685
33686         * Control.cs:
33687           - Changed GetCursorPos signature
33688
33689 2004-08-13 15:42  pbartok
33690
33691         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs:
33692           - Changed signature for GetCursorPos
33693
33694 2004-08-13 15:25  pbartok
33695
33696         * XplatUIX11.cs:
33697           - Cleanup
33698           - Fixed resizing/exposure handling
33699
33700 2004-08-13 15:22  jordi
33701
33702         * ThemeWin32Classic.cs: removes redundant code and fixes issues
33703           with tickposition
33704
33705 2004-08-13 14:55  jordi
33706
33707         * TrackBar.cs: change from wndproc to events
33708
33709 2004-08-13 13:00  jordi
33710
33711         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33712           XplatUIX11.cs: implements PointToClient (ScreenToClient)
33713
33714 2004-08-13 12:53  pbartok
33715
33716         * XplatUIWin32.cs:
33717           - Changed GetWindowPos to also provide client area size
33718           - Fixed broken prototypes for several win32 functions
33719
33720 2004-08-13 12:53  pbartok
33721
33722         * XplatUI.cs, XplatUIDriver.cs:
33723           - Changed GetWindowPos to also provide client area size
33724
33725 2004-08-13 12:52  pbartok
33726
33727         * XplatUIX11.cs:
33728           - Added generation of WM_POSCHANGED
33729           - Changed GetWindowPos to also provide client area size
33730
33731 2004-08-13 12:52  pbartok
33732
33733         * Control.cs:
33734           - Added Dispose() and destructor
33735           - Fixed resizing and bounds calculation
33736           - Fixed Layout
33737           - Added memory savings for invisible windows
33738
33739 2004-08-13 12:46  jordi
33740
33741         * TrackBar.cs: adds timer and grap window
33742
33743 2004-08-13 10:25  jackson
33744
33745         * Timer.cs: SWF Timer
33746
33747 2004-08-12 16:59  pbartok
33748
33749         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33750           - Implemented method to get current mouse position
33751
33752 2004-08-12 14:29  jordi
33753
33754         * ITheme.cs, ThemeWin32Classic.cs, TrackBar.cs: Trackbar
33755           enhancement, fix mouse problems, highli thumb, etc
33756
33757 2004-08-12 13:31  pbartok
33758
33759         * Control.cs:
33760           - Fixed Anchoring bugs
33761
33762 2004-08-12 13:01  jackson
33763
33764         * StatusBar.cs: Don't forget things
33765
33766 2004-08-12 12:54  jackson
33767
33768         * ThemeWin32Classic.cs: Handle owner draw status bars
33769
33770 2004-08-12 12:54  jackson
33771
33772         * StatusBar.cs: Implement missing properties, events, and methods.
33773           Handle mouse clicking
33774
33775 2004-08-12 10:19  jackson
33776
33777         * StatusBarPanelClickEventArgs.cs,
33778           StatusBarPanelClickEventHandler.cs: Classes for handling status
33779           bar panel click events
33780
33781 2004-08-12 10:10  jackson
33782
33783         * Control.cs: Add missing properties
33784
33785 2004-08-12 09:46  pbartok
33786
33787         * BindingsManagerBase.cs:
33788           - Name changed to BindingManagerBase.cs
33789
33790 2004-08-12 09:25  jordi
33791
33792         * ScrollableControl.cs: calls ctrlbase instead of exeception
33793
33794 2004-08-11 16:28  pbartok
33795
33796         * InputLanguageChangingEventArgs.cs:
33797           - Never check in before compiling. Fixes the last check-in
33798
33799 2004-08-11 16:26  pbartok
33800
33801         * InputLanguageChangingEventArgs.cs:
33802           - More signature fixes
33803
33804 2004-08-11 16:20  pbartok
33805
33806         * BindingManagerBase.cs, BindingMemberInfo.cs, ContainerControl.cs,
33807           Control.cs, ControlEventArgs.cs, ControlPaint.cs, Form.cs,
33808           ImageListStreamer.cs, InputLanguage.cs,
33809           InputLanguageChangedEventArgs.cs,
33810           InputLanguageChangingEventArgs.cs, Keys.cs, LayoutEventArgs.cs,
33811           LinkArea.cs, Message.cs, MouseEventArgs.cs, NativeWindow.cs,
33812           ScrollEventArgs.cs, ScrollableControl.cs, XplatUI.cs,
33813           XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33814           - Signature fixes
33815
33816 2004-08-11 16:16  pbartok
33817
33818         * Application.cs:
33819           - Fixed Signature
33820           - Added .Net 1.1 method
33821
33822 2004-08-11 15:25  pbartok
33823
33824         * SWF.csproj:
33825           - Fixed BindingManagerBase.cs filename
33826
33827 2004-08-11 15:22  pbartok
33828
33829         * BindingManagerBase.cs:
33830           - Was checked in with wrong filename
33831
33832 2004-08-11 14:50  pbartok
33833
33834         * SWF.csproj:
33835           - Updated
33836
33837 2004-08-11 13:41  jordi
33838
33839         * XplatUIWin32.cs: Fixes ClientRect
33840
33841 2004-08-11 13:19  pbartok
33842
33843         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
33844           XplatUIX11.cs:
33845           - We had SetWindowPos and MoveWindow to set window positions and
33846             size, removed MoveWindow. We have GetWindowPos, so it made sense to
33847             keep SetWindowPos as matching counterpart
33848           - Added some X11 sanity checking
33849
33850 2004-08-11 12:59  pbartok
33851
33852         * Control.cs:
33853           - Major cleanup of my SetBounds/SetBoundsCore/UpdateBounds mess
33854             (It seems that SetBounds is just a front for SetBoundsCore and
33855              SetBoundsCore updates the underlying window system and
33856              UpdateBounds is responsible for updating the variables associated
33857              with the Control and sending the events)
33858           - Major cleanup of Size handling; we now have two sizes, client_size
33859             and bounds. Bounds defines the window with decorations, client_size
33860             without them.
33861
33862 2004-08-11 12:55  pbartok
33863
33864         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
33865           - Added method to calculate difference between decorated window and
33866             raw client area
33867
33868 2004-08-11 12:54  pbartok
33869
33870         * Label.cs:
33871           - Forcing redraw on resize
33872
33873 2004-08-11 11:43  pbartok
33874
33875         * ImageList.cs:
33876           - Removed disposing of the actual images when the list is disposed
33877
33878 2004-08-11 09:13  pbartok
33879
33880         * Control.cs:
33881           - Now properly reparents windows
33882
33883 2004-08-11 08:37  pbartok
33884
33885         * Control.cs:
33886           - Duh!
33887
33888 2004-08-11 07:47  pbartok
33889
33890         * Control.cs:
33891           - Rewrote the collection stuff. Might not be as fast now, not
33892             keeping the number of children around and accessible directly, but
33893             it's more straightforward
33894
33895 2004-08-11 07:44  pbartok
33896
33897         * AccessibleObject.cs:
33898           - Fixed to match ControlCollection rewrite
33899
33900 2004-08-11 07:43  pbartok
33901
33902         * ImageList.cs:
33903           - Added missing creation of the collection list
33904
33905 2004-08-10 20:08  jackson
33906
33907         * StatusBar.cs: Get the paint message from WndProc
33908
33909 2004-08-10 19:31  jackson
33910
33911         * ThemeWin32Classic.cs: Create Brushes as little as possible
33912
33913 2004-08-10 19:20  jackson
33914
33915         * UICues.cs: Add Flags attribute
33916
33917 2004-08-10 19:19  jackson
33918
33919         * StatusBarPanel.cs: Signature cleanup
33920
33921 2004-08-10 19:10  jackson
33922
33923         * StatusBarDrawItemEventArgs.cs, StatusBarDrawItemEventHandler.cs:
33924           Initial implementation of status bar item drawing
33925
33926 2004-08-10 17:27  jordi
33927
33928         * TrackBar.cs: add missing methods, properties, and restructure to
33929           hide extra ones
33930
33931 2004-08-10 16:24  jackson
33932
33933         * AccessibleStates.cs, Border3DSide.cs, Border3DStyle.cs,
33934           ButtonState.cs, ControlStyles.cs, DragDropEffects.cs: Add flags
33935           attribute
33936
33937 2004-08-10 13:21  jordi
33938
33939         * ITheme.cs, ScrollBar.cs, ThemeWin32Classic.cs: scrollbar
33940           enhancements and standarize on win colors defaults
33941
33942 2004-08-10 12:52  jackson
33943
33944         * DrawItemEventArgs.cs, DrawItemState.cs, ITheme.cs,
33945           ThemeWin32Classic.cs: Implement DrawItem functionality
33946
33947 2004-08-10 12:47  jordi
33948
33949         * XplatUIWin32.cs: Calls InvalidateRect before UpdateWindow
33950
33951 2004-08-10 12:32  jordi
33952
33953         * Control.cs: throw ontextchange event
33954
33955 2004-08-10 11:43  pbartok
33956
33957         * Control.cs:
33958           - Added more to the still unfinished Dock/Anchor layout code
33959
33960 2004-08-10 11:39  pbartok
33961
33962         * XplatUI.cs, XplatUIDriver.cs, XplatUIX11.cs:
33963           - Added GetWindowPos method
33964
33965 2004-08-10 11:36  pbartok
33966
33967         * XplatUIWin32.cs:
33968           - Implemented several methods
33969
33970 2004-08-10 09:47  jackson
33971
33972         * TrackBar.cs: Allow control to handle buffering
33973
33974 2004-08-10 09:41  jackson
33975
33976         * ProgressBar.cs, ScrollBar.cs: Allow control to handle buffering
33977
33978 2004-08-10 09:24  jackson
33979
33980         * Label.cs, LinkLabel.cs: Let Control handle buffering.
33981
33982 2004-08-10 09:09  jackson
33983
33984         * StatusBar.cs: Let Control handle all the buffering.
33985
33986 2004-08-10 09:08  jackson
33987
33988         * Control.cs: Control will now handle the buffering code, so each
33989           control does not have to implement this.
33990
33991 2004-08-10 08:34  jackson
33992
33993         * XplatUIDriver.cs: Use default colors from the theme
33994
33995 2004-08-09 17:12  pbartok
33996
33997         * ImageList.cs:
33998           - Fixed several bugs Ravindra pointed out
33999
34000 2004-08-09 16:11  pbartok
34001
34002         * Control.cs:
34003           - Added incomplete dock layout code
34004           - Added support for mouse wheel
34005
34006 2004-08-09 16:09  pbartok
34007
34008         * XplatUIX11.cs:
34009           - Added handling for middle and right mousebutton
34010           - Added handling for mouse wheel
34011           - Added handling for key state and mouse state and position
34012           - Now properly generates WM_xBUTTONx messages and WM_MOUSEWHEEL
34013           messages
34014
34015 2004-08-09 15:40  jackson
34016
34017         * StatusBarPanel.cs, StatusBarPanelAutoSize.cs,
34018           StatusBarPanelBorderStyle.cs, StatusBarPanelStyle.cs: Initial
34019           checkin
34020
34021 2004-08-09 15:37  jackson
34022
34023         * StatusBar.cs: Initial implementation of StatusBar
34024
34025 2004-08-09 15:36  jackson
34026
34027         * ITheme.cs: Add support for drawing status bar and getting status
34028           bar item sizes
34029
34030 2004-08-09 15:35  pbartok
34031
34032         * MouseButtons.cs:
34033           - Fixed values
34034
34035 2004-08-09 15:34  jackson
34036
34037         * ThemeWin32Classic.cs: Add support for drawing status bar and get
34038           status bar item sizes
34039
34040 2004-08-09 15:21  jackson
34041
34042         * ThemeWin32Classic.cs: Use known colors for default control
34043           colours
34044
34045 2004-08-09 15:12  jackson
34046
34047         * ThemeWin32Classic.cs: Make the default font static, it is static
34048           in control so this doesn't change functionality and creating fonts
34049           is sloooooow.
34050
34051 2004-08-09 14:56  pbartok
34052
34053         * X11Structs.cs:
34054           - Added GrabMode enum
34055
34056 2004-08-09 14:55  pbartok
34057
34058         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34059           - Removed Run method, was only required for initial development
34060
34061 2004-08-09 14:51  pbartok
34062
34063         * XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs, XplatUIX11.cs:
34064           - Implemented GrabWindow/ReleaseWindow methods to allow pointer
34065           capture
34066
34067 2004-08-09 13:48  pbartok
34068
34069         * XplatUIX11.cs:
34070           - Fixed default sizing for child windows
34071
34072 2004-08-09 12:56  pbartok
34073
34074         * XplatUIX11.cs:
34075           - Added generation of WM_DESTROY message
34076           - Added handling of window manager induced shutdown
34077
34078 2004-08-09 11:31  jackson
34079
34080         * ThemeWin32Classic.cs: New names for control properties
34081
34082 2004-08-09 11:25  jackson
34083
34084         * Control.cs: Use new color names
34085
34086 2004-08-09 11:02  jackson
34087
34088         * XplatUI.cs: Get default window properties from the theme
34089
34090 2004-08-09 11:01  jackson
34091
34092         * ITheme.cs: The theme engine now controls default window
34093           properties
34094
34095 2004-08-09 11:00  jackson
34096
34097         * ThemeWin32Classic.cs: Add default window color properties
34098
34099 2004-08-09 10:17  jackson
34100
34101         * ThemeWin32Classic.cs: Use correct default back color
34102
34103 2004-08-09 10:05  jackson
34104
34105         * XplatUIWin32.cs, XplatUIX11.cs: These properties are handled by
34106           the theme now.
34107
34108 2004-08-09 09:56  jackson
34109
34110         * XplatUI.cs: Remove defaults, these are handled by the theme now.
34111
34112 2004-08-09 09:54  jackson
34113
34114         * Control.cs: Get default properties from the theme.
34115
34116 2004-08-09 09:53  jackson
34117
34118         * ITheme.cs: Themes now handle default control properties
34119
34120 2004-08-09 09:53  jackson
34121
34122         * ThemeWin32Classic.cs: Themes now handle default control
34123           properties so coloring will be consistent
34124
34125 2004-08-08 16:54  jordi
34126
34127         * ITheme.cs, ThemeWin32Classic.cs: Label BorderStyles
34128
34129 2004-08-08 15:08  jordi
34130
34131         * XplatUIX11.cs: fixes keyboard crash
34132
34133 2004-08-08 13:47  jordi
34134
34135         * Label.cs: add cvs header info
34136
34137 2004-08-08 12:09  jackson
34138
34139         * ThemeWin32Classic.cs: Add pen_buttonface
34140
34141 2004-08-08 11:52  jordi
34142
34143         * Label.cs, LinkLabel.cs: [no log message]
34144
34145 2004-08-08 11:34  jordi
34146
34147         * ThemeWin32Classic.cs: Use Windows Standard Colours
34148
34149 2004-08-07 17:32  jordi
34150
34151         * TrackBar.cs: throw exceptions of invalid enums values
34152
34153 2004-08-07 17:31  jordi
34154
34155         * Label.cs, LinkLabel.cs, ThemeWin32Classic.cs: fixes label bug and
34156           draw method name
34157
34158 2004-08-07 16:56  jackson
34159
34160         * HorizontalAlignment.cs: Initial checkin
34161
34162 2004-08-07 13:16  jordi
34163
34164         * Label.cs, LinkLabel.cs: throw exceptions, fixes events, missing
34165           methods
34166
34167 2004-08-07 13:05  jordi
34168
34169         * ITheme.cs, ThemeWin32Classic.cs: Theme colour support and
34170           GetSysColor defines
34171
34172 2004-08-06 18:01  pbartok
34173
34174         * ThemeWin32Classic.cs:
34175           - Fixed some rounding issues with float/int
34176
34177 2004-08-06 18:00  jackson
34178
34179         * DockStyle.cs, AnchorStyles.cs:
34180
34181                   Add flags and serializable attributes.
34182
34183 2004-08-06 17:46  pbartok
34184
34185         * XplatUIX11.cs:
34186           - Implemented GetParent
34187
34188 2004-08-06 17:18  pbartok
34189
34190         * TrackBar.cs:
34191           - Fixed some rounding issues with float/int
34192
34193 2004-08-06 17:17  pbartok
34194
34195         * X11Structs.cs, XplatUIX11.cs:
34196           - Fixed Refresh and Invalidate
34197
34198 2004-08-06 15:30  pbartok
34199
34200         * Control.cs, X11Structs.cs, XplatUIX11.cs:
34201           - Fixed recursive loop when resizing
34202           - Improved/fixed redrawing on expose messages
34203
34204 2004-08-06 09:53  jordi
34205
34206         * Control.cs, X11Structs.cs, XplatUIWin32.cs, XplatUIX11.cs: X11
34207           keyboard navigation
34208
34209 2004-08-06 08:02  pbartok
34210
34211         * X11Structs.cs, XplatUIX11.cs:
34212           - Fixed reparenting
34213           - Fixed window border creation
34214
34215 2004-08-05 15:38  pbartok
34216
34217         * XplatUIX11.cs:
34218           - Attempted fix for reparenting problems
34219
34220 2004-08-04 15:14  pbartok
34221
34222         * Control.cs:
34223           - Fixed Invalidation bug (calculated wrong client area)
34224           - Added ClientSize setter
34225
34226 2004-08-04 15:13  pbartok
34227
34228         * Form.cs:
34229           - Added AutoScale properties
34230
34231 2004-08-04 15:13  pbartok
34232
34233         * SWF.csproj:
34234           - Added latest files
34235
34236 2004-08-04 14:11  pbartok
34237
34238         * Control.cs, XplatUI.cs, XplatUIDriver.cs, XplatUIWin32.cs,
34239           XplatUIX11.cs:
34240           - Added Invalidate handling
34241
34242 2004-08-03 17:09  jordi
34243
34244         * XplatUIDriver.cs: fixes spelling mistake
34245
34246 2004-07-27 09:53  jordi
34247
34248         * TrackBar.cs: fixes trackbar events, def classname, methods
34249           signature
34250
34251 2004-07-27 09:29  jordi
34252
34253         * ScrollBar.cs: fixes scrollbar events
34254
34255 2004-07-27 04:38  jordi
34256
34257         * Control.cs: changes to be able to run winforms samples
34258
34259 2004-07-26 11:42  jordi
34260
34261         * ControlPaint.cs, ITheme.cs, ProgressBar.cs, ScrollBar.cs,
34262           ThemeEngine.cs, ThemeWin32Classic.cs, TrackBar.cs: Theme support
34263
34264 2004-07-26 05:41  jordi
34265
34266         * MessageBox.cs, MessageBoxButtons.cs, MessageBoxDefaultButton.cs,
34267           MessageBoxIcon.cs, MessageBoxOptions.cs: initial messagebox
34268           implementation
34269
34270 2004-07-22 09:22  jordi
34271
34272         * LinkLabel.cs, LinkLabelLinkClickedEventHandler.cs: link label:
34273           check link overlapping, implement events, and fixes
34274
34275 2004-07-21 10:28  jordi
34276
34277         * DialogResult.cs, IButtonControl.cs: fixes comments filenames
34278
34279 2004-07-21 10:19  jordi
34280
34281         * DialogResult.cs, IButtonControl.cs, Label.cs, LinkArea.cs,
34282           LinkBehavior.cs, LinkClickedEventArgs.cs, LinkLabel.cs,
34283           LinkLabelLinkClickedEventArgs.cs,
34284           LinkLabelLinkClickedEventHandler.cs, LinkState.cs,
34285           XplatUIWin32.cs, LinkClickedEventHandler.cs: LinkLabel control
34286           implementation
34287
34288 2004-07-19 13:09  jordi
34289
34290         * Control.cs, Label.cs: label control re-written: added missing
34291           functionlity, events, and properties
34292
34293 2004-07-19 10:49  jordi
34294
34295         * Control.cs: fixes SetBounds logic
34296
34297 2004-07-19 01:29  jordi
34298
34299         * Control.cs: Call RefreshWindow only if the window has created
34300
34301 2004-07-15 14:05  pbartok
34302
34303         * ColorDepth.cs, ImageList.cs, ImageListStreamer.cs, SWF.csproj:
34304           - Implemented ImageList and ImageList.ImageCollection classes
34305           - Added ColorDepth enumeration
34306           - Updated SWF VS.Net project
34307
34308 2004-07-15 11:06  jordi
34309
34310         * XplatUIStructs.cs: added MsgButons enum
34311
34312 2004-07-15 11:03  jordi
34313
34314         * Control.cs: added basic mouse handeling events
34315
34316 2004-07-15 03:38  jordi
34317
34318         * Orientation.cs, TickStyle.cs, TrackBar.cs: Horizontal and
34319           Vertical TrackBar control implementation
34320
34321 2004-07-13 09:33  jordi
34322
34323         * HScrollBar.cs, VScrollBar.cs: vertical and hort. classes commit
34324
34325 2004-07-13 09:31  jordi
34326
34327         * Control.cs, Form.cs: commit: new properties and fixes form size
34328           problems
34329
34330 2004-07-09 14:13  miguel
34331
34332         * ProgressBar.cs: Spelling
34333
34334 2004-07-09 11:25  pbartok
34335
34336         * ProgressBar.cs:
34337           - Removed usage of Rectangle for drawing. Miguel pointed out it's
34338           faster
34339
34340 2004-07-09 11:17  miguel
34341
34342         * ProgressBar.cs: 2004-07-09  Miguel de Icaza  <miguel@ximian.com>
34343
34344                 * ProgressBar.cs: Fixed spelling for `block'
34345
34346                 drawProgressBar: renamed to `DrawProgressBar' to follow the coding
34347                 style guidelines.
34348
34349                 Avoid using the += on rect.X, that exposed a bug in the compiler.
34350
34351 2004-07-08 23:21  pbartok
34352
34353         * AccessibleObject.cs, AccessibleRole.cs, AccessibleStates.cs,
34354           AnchorStyles.cs, Application.cs, ApplicationContext.cs,
34355           BaseCollection.cs, Binding.cs, BindingContext.cs,
34356           BindingMemberInfo.cs, BindingsCollection.cs,
34357           BindingsManagerBase.cs, Border3DSide.cs, Border3DStyle.cs,
34358           BorderStyle.cs, BoundsSpecified.cs, ButtonBorderStyle.cs,
34359           ButtonState.cs, CaptionButton.cs, CheckBox.cs,
34360           ContainerControl.cs, Control.cs, ControlEventArgs.cs,
34361           ControlEventHandler.cs, ControlPaint.cs, ControlStyles.cs,
34362           ConvertEventArgs.cs, ConvertEventHandler.cs, Copyright,
34363           CreateParams.cs, DockStyle.cs, DragAction.cs, DragDropEffects.cs,
34364           DragEventArgs.cs, DragEventHandler.cs, FlatStyle.cs, Form.cs,
34365           FrameStyle.cs, GiveFeedbackEventArgs.cs,
34366           GiveFeedbackEventHandler.cs, HelpEventArgs.cs,
34367           HelpEventHandler.cs, IContainerControl.cs, IDataObject.cs,
34368           IMessageFilter.cs, IWin32Window.cs, ImeMode.cs, InputLanguage.cs,
34369           InputLanguageChangedEventArgs.cs,
34370           InputLanguageChangedEventHandler.cs,
34371           InputLanguageChangingEventArgs.cs,
34372           InputLanguageChangingEventHandler.cs, InputLanguageCollection.cs,
34373           InvalidateEventArgs.cs, InvalidateEventHandler.cs,
34374           KeyEventArgs.cs, KeyEventHandler.cs, KeyPressEventArgs.cs,
34375           KeyPressEventHandler.cs, Keys.cs, Label.cs, LayoutEventArgs.cs,
34376           LayoutEventHandler.cs, MenuGlyph.cs, Message.cs, MouseButtons.cs,
34377           MouseEventArgs.cs, MouseEventHandler.cs, NativeWindow.cs,
34378           PaintEventArgs.cs, PaintEventHandler.cs, ProgressBar.cs,
34379           QueryAccessibilityHelpEventArgs.cs,
34380           QueryAccessibilityHelpEventHandler.cs,
34381           QueryContinueDragEventArgs.cs, QueryContinueDragEventHandler.cs,
34382           RightToLeft.cs, SWF.csproj, SWF.csproj.user, ScrollBar.cs,
34383           ScrollBars.cs, ScrollButton.cs, ScrollEventArgs.cs,
34384           ScrollEventHandler.cs, ScrollEventType.cs, ScrollableControl.cs,
34385           TODO, TODOAttribute.cs, UICues.cs, UICuesEventArgs.cs,
34386           UICuesEventHandler.cs, X11Structs.cs, XplatUI.cs,
34387           XplatUIDriver.cs, XplatUIStructs.cs, XplatUIWin32.cs,
34388           XplatUIX11.cs, lang.cs:
34389           - Initial check-in
34390
34391